title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
C++ Program to Implement Counting Sort
Counting sort is a stable sorting technique, which is used to sort objects according the keys that are small numbers. It counts the number of keys whose key values are same. This sorting technique is efficient when difference between different keys are not so big, otherwise it can increase the space complexity. Time Co...
[ { "code": null, "e": 1375, "s": 1062, "text": "Counting sort is a stable sorting technique, which is used to sort objects according the keys that are small numbers. It counts the number of keys whose key values are same. This sorting technique is efficient when difference between different keys are ...
Sum of two numbers modulo M
23 Apr, 2021 Given three numbers A, B, and M. The task is to print the sum of A and B under modulo M. Examples: Input: a = 10, b = 20, m = 3 Output: 0 Explanation: 10+20 = 30 % 3 = 0 Input: a = 100, b = 13, m = 107 Output: 6 Approach: Add the two given numbers A and B and print their sum under modulo M. Belo...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Apr, 2021" }, { "code": null, "e": 118, "s": 28, "text": "Given three numbers A, B, and M. The task is to print the sum of A and B under modulo M. " }, { "code": null, "e": 129, "s": 118, "text": "Examples: " },...
Data Warehousing - Partitioning Strategy
Partitioning is done to enhance performance and facilitate easy management of data. Partitioning also helps in balancing the various requirements of the system. It optimizes the hardware performance and simplifies the management of data warehouse by partitioning each fact table into multiple separate partitions. In thi...
[ { "code": null, "e": 2494, "s": 2112, "text": "Partitioning is done to enhance performance and facilitate easy management of data. Partitioning also helps in balancing the various requirements of the system. It optimizes the hardware performance and simplifies the management of data warehouse by par...
Java Swing | JMenuBar
20 May, 2022 JMenuBar, JMenu and JMenuItems are a part of Java Swing package. JMenuBar is an implementation of menu bar . the JMenuBar contains one or more JMenu objects, when the JMenu objects are selected they display a popup showing one or more JMenuItems . JMenu basically represents a menu . It contains several JMe...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 May, 2022" }, { "code": null, "e": 439, "s": 53, "text": "JMenuBar, JMenu and JMenuItems are a part of Java Swing package. JMenuBar is an implementation of menu bar . the JMenuBar contains one or more JMenu objects, when the JMenu o...
Setting up a C++ Competitive Programming Environment
11 May, 2022 In this article, we will learn about how to setup all in one Competitive Programming Environment It is always recommended to use a Linux based OS. It is so because not only you will learn some better know-hows of the system but also will be able to get some pre-installed coding tools.I would highly recomme...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 May, 2022" }, { "code": null, "e": 151, "s": 54, "text": "In this article, we will learn about how to setup all in one Competitive Programming Environment" }, { "code": null, "e": 567, "s": 151, "text": "It is al...
ClassNotFoundException Vs NoClassDefFoundError in Java
08 Nov, 2021 Both of the exceptions that are ClassNotFoundException and NoClassDefFoundError occur when the class is not found at runtime. They are related to the Java classpath. ClassNotFoundException ClassNotFoundException occurs when you try to load a class at runtime using Class.forName() or loadClass() methods an...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Nov, 2021" }, { "code": null, "e": 221, "s": 54, "text": "Both of the exceptions that are ClassNotFoundException and NoClassDefFoundError occur when the class is not found at runtime. They are related to the Java classpath. " }, ...
Serial I/O Lines in 8085 Microprocessor
24 Jan, 2020 The 8085 Microprocessor has Serial Input/Output lines consisting of two pins as follows: 1. Serial Output Data (SOD) 2. Serial Input Data (SID) They both are specially made for Input/Output which is further controlled by software. The transfer of data is controlled with the help of two instructions, i.e, ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jan, 2020" }, { "code": null, "e": 141, "s": 52, "text": "The 8085 Microprocessor has Serial Input/Output lines consisting of two pins as follows:" }, { "code": null, "e": 197, "s": 141, "text": "1. Serial Output...
Features & Components of Private Cloud
10 Sep, 2020 Private clouds are distributed systems that work on private infrastructure and providing the users with dynamic provisioning of computing resources. A private cloud is generally used within an organization. This helps to avoid the complexities and time associated with the purchase and cloud implementation ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Sep, 2020" }, { "code": null, "e": 492, "s": 28, "text": "Private clouds are distributed systems that work on private infrastructure and providing the users with dynamic provisioning of computing resources. A private cloud is general...
How to validate identifier using Regular Expression in Java
24 Dec, 2021 Given a string str, the task is to check whether the string is a valid identifier or not using the Regular Expression. The valid rules for defining Java identifiers are: It must start with either lower case alphabet[a-z] or upper case alphabet[A-Z] or underscore(_) or a dollar sign($). It should be a sing...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Dec, 2021" }, { "code": null, "e": 224, "s": 53, "text": "Given a string str, the task is to check whether the string is a valid identifier or not using the Regular Expression. The valid rules for defining Java identifiers are: " ...
numpy.nanstd() function – Python
11 Jun, 2020 numpy.nanstd() function compute the standard deviation along the specified axis, while ignoring NaNs. Syntax : numpy.nanstd(arr, axis = None, dtype = None, out = None, ddof = 0, keepdims) Parameters :arr : [array_like] Calculate the standard deviation of the non-NaN values.axis : [{int, tuple of int, None}...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jun, 2020" }, { "code": null, "e": 130, "s": 28, "text": "numpy.nanstd() function compute the standard deviation along the specified axis, while ignoring NaNs." }, { "code": null, "e": 216, "s": 130, "text": "Synt...
How to upload file without form using JavaScript ?
12 Jul, 2021 There are several approaches to upload a file without using the form in JavaScript: Approach 1: This approach is to use FormData that can upload a file without using any kind of form. The special thing about this is that network methods, such as fetch, can accept a FormData object as a body. It’s encoded a...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jul, 2021" }, { "code": null, "e": 112, "s": 28, "text": "There are several approaches to upload a file without using the form in JavaScript:" }, { "code": null, "e": 388, "s": 112, "text": "Approach 1: This appro...
Tailwind CSS Word Break
23 Mar, 2022 This class accepts more than one value in tailwind CSS. All the properties are covered in class form. It is the alternative to the CSS word-break property. This class is used to specify how to break the word when the word reached at end of the line. The line breaks in the text can occur in certain spaces, ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2022" }, { "code": null, "e": 375, "s": 28, "text": "This class accepts more than one value in tailwind CSS. All the properties are covered in class form. It is the alternative to the CSS word-break property. This class is used ...
Comparing two data sets in R
13 Jan, 2022 There may be a situation where we have to compare datasets to do data analysis, with having the same structure but differences in the data. So to identify what is changed in the dataset and to get a summary to which extent it is changed. We can use the compare package in R. We can easily use this package t...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2022" }, { "code": null, "e": 417, "s": 28, "text": "There may be a situation where we have to compare datasets to do data analysis, with having the same structure but differences in the data. So to identify what is changed in t...
Difference Between Serializable and Externalizable in Java Serialization
02 Mar, 2022 The process of writing the state of an object to a file is called serialization, but strictly speaking, it is the process of converting an object from java supported form into a file-supported form or network-supported form by using fileOutputStream and objectOutputStream classes we can implement serializa...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Mar, 2022" }, { "code": null, "e": 366, "s": 52, "text": "The process of writing the state of an object to a file is called serialization, but strictly speaking, it is the process of converting an object from java supported form int...
HTML <label> Tag
16 May, 2022 The <label> tag in HTML is used to provide a usability improvement for mouse users i.e, if a user clicks on the text within the <label> element, it toggles the control. The <label> tag defines the label for <button>, <input>, <meter>, <output>, <progress>, <select>, or <textarea> element. The <label> tag c...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 May, 2022" }, { "code": null, "e": 343, "s": 53, "text": "The <label> tag in HTML is used to provide a usability improvement for mouse users i.e, if a user clicks on the text within the <label> element, it toggles the control. The <...
How to change the font-color of disabled input using CSS ?
08 Aug, 2021 In this article, we are going to learn how to change the font-color of disabled input. There is a method to solve this problem, which is discussed below: Approach: With adding basic CSS property we are able to change the font-color of a disabled input. The disabled input element is unusable and un-clickabl...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Aug, 2021" }, { "code": null, "e": 208, "s": 54, "text": "In this article, we are going to learn how to change the font-color of disabled input. There is a method to solve this problem, which is discussed below:" }, { "code"...
Shell Script to Display Name & Size of a File Whose Size is Greater than 1000 Bytes
20 Apr, 2021 We must have in situations at least once where we need to list files for their particular size maybe in bytes, kilobytes and so on, there comes a need to minimize tedious task to save time and focus on the required things. So we need certain tools or scripts to do this for us, here’s where Linux and shell ...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Apr, 2021" }, { "code": null, "e": 535, "s": 52, "text": "We must have in situations at least once where we need to list files for their particular size maybe in bytes, kilobytes and so on, there comes a need to minimize tedious tas...
Perfect Sum Problem (Print all subsets with given sum)
01 Jul, 2022 Given an array of integers and a sum, the task is to print all subsets of the given array with a sum equal to a given sum.Examples: Input : arr[] = {2, 3, 5, 6, 8, 10} sum = 10 Output : 5 2 3 2 8 10 Input : arr[] = {1, 2, 3, 4, 5} sum = 10 Output : 4 3 2 1 5 3 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jul, 2022" }, { "code": null, "e": 185, "s": 52, "text": "Given an array of integers and a sum, the task is to print all subsets of the given array with a sum equal to a given sum.Examples: " }, { "code": null, "e": 378,...
Python | Remove elements of list that are repeated less than k times
15 Apr, 2019 Given a list of integers (elements may be repeated), write a Python program to remove the elements that are repeated less than k times. Examples: Input : lst = ['a', 'a', 'a', 'b', 'b', 'c'], k = 2 Output : ['a', 'a', 'a', 'b', 'b'] Input : lst = [1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4], k = 3 Output : [1, 1, 1,...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2019" }, { "code": null, "e": 164, "s": 28, "text": "Given a list of integers (elements may be repeated), write a Python program to remove the elements that are repeated less than k times." }, { "code": null, "e": 17...
Python | Removing dictionary from list of dictionaries
03 Jan, 2019 The common utility to remove the dictionary corresponding to particular key in a list of dictionaries is also a problem whose concise version is always helpful. This has application in web development due to the introduction of No-SQL databases, which work mostly on Key-Value pairs. Let’s discuss certain w...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Jan, 2019" }, { "code": null, "e": 401, "s": 53, "text": "The common utility to remove the dictionary corresponding to particular key in a list of dictionaries is also a problem whose concise version is always helpful. This has appl...
java.time.LocalDate Class
The java.time.LocalDate class represents a date without a time-zone in the ISO-8601 calendar system, such as 2007-12-03. Following is the declaration for java.time.LocalDate class − public final class LocalDate extends Object implements Temporal, TemporalAdjuster, ChronoLocalDate, Serializable Following are t...
[ { "code": null, "e": 2170, "s": 2049, "text": "The java.time.LocalDate class represents a date without a time-zone in the ISO-8601 calendar system, such as 2007-12-03." }, { "code": null, "e": 2231, "s": 2170, "text": "Following is the declaration for java.time.LocalDate class −"...
PostgreSQL – Cursor
01 May, 2021 A Cursor in PostgreSQL is used to process large tables. Suppose if a table has 10 million or billion rows. While performing a SELECT operation on the table it will take some time to process the result and most likely give an “out of memory” error and the program will be terminated. A Cursor can only be dec...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 May, 2021" }, { "code": null, "e": 311, "s": 28, "text": "A Cursor in PostgreSQL is used to process large tables. Suppose if a table has 10 million or billion rows. While performing a SELECT operation on the table it will take some t...
strconv package in Golang
28 Jul, 2020 Go language provides a strconv package that implements conversions to and from string representations of basic data types. To access the functions of the strconv package you need to import the strconv package in your program with the help of the import keyword. Example 1: // Golang program to illustrate th...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2020" }, { "code": null, "e": 290, "s": 28, "text": "Go language provides a strconv package that implements conversions to and from string representations of basic data types. To access the functions of the strconv package you n...
Difference between Abstract Class and Concrete Class in Java
05 Apr, 2022 Abstract Class: An abstract class is a type of class in Java that is declared by the abstract keyword. An abstract class cannot be instantiated directly, i.e. the object of such class cannot be created directly using the new keyword. An abstract class can be instantiated either by a concrete subclass or by...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Apr, 2022" }, { "code": null, "e": 889, "s": 54, "text": "Abstract Class: An abstract class is a type of class in Java that is declared by the abstract keyword. An abstract class cannot be instantiated directly, i.e. the object of s...
Interview Questions for Java Professionals
20 May, 2021 Q1. Explain JVM, JRE and JDK? JVM (Java Virtual Machine): JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a Java code. JVM is a part of JRE(Java Runtime Environment).JRE (Java Runtime Environment): JRE refers to a r...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 May, 2021" }, { "code": null, "e": 3418, "s": 52, "text": "Q1. Explain JVM, JRE and JDK? JVM (Java Virtual Machine): JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls th...
Python How to read input from keyboard - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In these tutorials, we will see how to read i...
[ { "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, ...
Setting MySQL Environment Variables on Linux
Let us understand how to set environment variables on Linux for MySQL − Environment variables can be set at the command prompt. This is done to affect the current invocation of the command processor, or to permanently set to affect the future invocations. To set a variable permanently, it can be set in a startup file o...
[ { "code": null, "e": 1134, "s": 1062, "text": "Let us understand how to set environment variables on Linux for MySQL −" }, { "code": null, "e": 1318, "s": 1134, "text": "Environment variables can be set at the command prompt. This is done to affect the current invocation of the c...
Program to merge strings alternately using Python
Suppose we have two strings s and t. We have to merge them by adding letters in alternating fashion, starting from s. If s and t are not of same length, add the extra letters onto the end of the merged string. So, if the input is like s = "major" t = "general", then the output will be "mgaejnoerral", as t is larger tha...
[ { "code": null, "e": 1272, "s": 1062, "text": "Suppose we have two strings s and t. We have to merge them by adding letters in alternating fashion, starting from s. If s and t are not of same length, add the extra letters onto the end of the merged string." }, { "code": null, "e": 1433, ...
How to print all the values of a dictionary in Python?
Dictionary object possesses values() method which does this job for us. >>> D1 = {1:'a', 2:'b', 3:'c'} >>> D1.values() dict_values(['a', 'b', 'c']) >>> list(D1.values()) ['a', 'b', 'c'] You can also get corresponding value by iterating through lidt of keys returned by keys() method of dictionary >>> L1 = list(D1.keys()...
[ { "code": null, "e": 1134, "s": 1062, "text": "Dictionary object possesses values() method which does this job for us." }, { "code": null, "e": 1248, "s": 1134, "text": ">>> D1 = {1:'a', 2:'b', 3:'c'}\n>>> D1.values()\ndict_values(['a', 'b', 'c'])\n>>> list(D1.values())\n['a', 'b...
Immediate Smaller Element | Practice | GeeksforGeeks
Given an integer array Arr of size N. For each element in the array, check whether the right adjacent element (on the next immediate position) of the array is smaller. If next element is smaller, update the current index to that element. If not, then -1. Example 1: Input: N = 5 Arr[] = {4, 2, 1, 5, 3} Output: 2 1 -1 3...
[ { "code": null, "e": 482, "s": 226, "text": "Given an integer array Arr of size N. For each element in the array, check whether the right adjacent element (on the next immediate position) of the array is smaller. If next element is smaller, update the current index to that element. If not, then -1....
Automatic Update of Django Models from a Google Spreadsheet | by Angelica Lo Duca | Towards Data Science
Often Data Model definition and Data Model Implementation are performed by different people and a little change in Data Model definition should be transformed into an implemented model as soon as possible. The speed with which changes in the model can be translated into implementation depends on how definition and impl...
[ { "code": null, "e": 378, "s": 172, "text": "Often Data Model definition and Data Model Implementation are performed by different people and a little change in Data Model definition should be transformed into an implemented model as soon as possible." }, { "code": null, "e": 530, "s"...
How to find all solutions to the SUBSET-SUM problem | by Trevor Phillips | Towards Data Science
The SUBSET-SUM problem involves determining whether or not a subset from a list of integers can sum to a target value. For example, consider the list of nums = [1, 2, 3, 4]. If the target = 7, there are two subsets that achieve this sum: {3, 4} and {1, 2, 4}. If target = 11, there are no solutions. In general, determin...
[ { "code": null, "e": 472, "s": 172, "text": "The SUBSET-SUM problem involves determining whether or not a subset from a list of integers can sum to a target value. For example, consider the list of nums = [1, 2, 3, 4]. If the target = 7, there are two subsets that achieve this sum: {3, 4} and {1, 2,...
Node.js unshift() function - GeeksforGeeks
14 Oct, 2021 unshift() is an array function from Node.js that is used to insert element to the front of an array. Syntax: array_name.unshift(element) Parameter: This function takes parameter that has to be added to the array. It can take multiple elements also as parameter. Return type: The function returns the a...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n14 Oct, 2021" }, { "code": null, "e": 26368, "s": 26267, "text": "unshift() is an array function from Node.js that is used to insert element to the front of an array." }, { "code": null, "e": 26376, "s": 26368, ...
Maximum equilibrium sum in an array - GeeksforGeeks
CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+...
[ { "code": null, "e": 419, "s": 0, "text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc...
Sort an array of pairs using Java Pair and Comparator - GeeksforGeeks
02 Mar, 2022 Given an array of pairs of integers. The task is to sort the array with respect to the second element of the pair.Examples: Input: [(1, 2), (3, 5), (2, 6), (1, 7)] Output: [(1, 2), (3, 5), (2, 6), (1, 7)] Input: [(10, 20), (20, 30), (5, 6), (2, 5)] Output: [(2, 5), (5, 6), (10, 20), (20, 30)] Approach: ...
[ { "code": null, "e": 25764, "s": 25736, "text": "\n02 Mar, 2022" }, { "code": null, "e": 25889, "s": 25764, "text": "Given an array of pairs of integers. The task is to sort the array with respect to the second element of the pair.Examples: " }, { "code": null, "e": 2...
SQL | TRANSACTIONS - GeeksforGeeks
14 Aug, 2020 What are Transactions? Transactions group a set of tasks into a single execution unit. Each transaction begins with a specific task and ends when all the tasks in the group successfully complete. If any of the tasks fail, the transaction fails. Therefore, a transaction has only two results: success or fail...
[ { "code": null, "e": 25029, "s": 25001, "text": "\n14 Aug, 2020" }, { "code": null, "e": 25052, "s": 25029, "text": "What are Transactions?" }, { "code": null, "e": 25342, "s": 25052, "text": "Transactions group a set of tasks into a single execution unit. Eac...
PostgreSQL - CREATE SEQUENCE - GeeksforGeeks
28 Aug, 2020 A sequence in PostgreSQL is a user-defined schema-bound object that yields a sequence of integers based on a specified specification. The CREATE SEQUENCE statement is used to create sequences in PostgreSQL. Syntax: CREATE SEQUENCE [ IF NOT EXISTS ] sequence_name [ AS { SMALLINT | INT | BIGINT } ] [...
[ { "code": null, "e": 29245, "s": 29217, "text": "\n28 Aug, 2020" }, { "code": null, "e": 29452, "s": 29245, "text": "A sequence in PostgreSQL is a user-defined schema-bound object that yields a sequence of integers based on a specified specification. The CREATE SEQUENCE statement...
Reading and Writing Properties File in Java - GeeksforGeeks
29 Nov, 2021 The property file is a file we use in the Java Programming language to keep the configuration parameters. These files we called Resource Bundle because it is a bundle of resources that we are going to use in the application. What are the configuration parameters? Configuration parameters are the parameters...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n29 Nov, 2021" }, { "code": null, "e": 25450, "s": 25225, "text": "The property file is a file we use in the Java Programming language to keep the configuration parameters. These files we called Resource Bundle because it is a bun...
How to create a food recipe app using ReactJS ? - GeeksforGeeks
31 Aug, 2021 We are going to make a food recipe app using React.js. React hooks React components JavaScript ES6 API CSS Approach: Here in this app we should have a component where we are going to show our food recipes. And we need to fetch all the required food recipes using a food recipe API. We will fetch the API da...
[ { "code": null, "e": 26059, "s": 26031, "text": "\n31 Aug, 2021" }, { "code": null, "e": 26114, "s": 26059, "text": "We are going to make a food recipe app using React.js." }, { "code": null, "e": 26126, "s": 26114, "text": "React hooks" }, { "code": n...
Generate Infinite Stream of Integers in Java - GeeksforGeeks
11 Dec, 2018 Given the task is to generate an infinite sequential unordered stream of integers in Java. This can be done in following ways: Using IntStream.iterate():Using the IntStream.iterate() method, iterate the IntStream with i by incrementing the value with 1.Print the IntStream with the help of forEach() method....
[ { "code": null, "e": 25621, "s": 25593, "text": "\n11 Dec, 2018" }, { "code": null, "e": 25712, "s": 25621, "text": "Given the task is to generate an infinite sequential unordered stream of integers in Java." }, { "code": null, "e": 25748, "s": 25712, "text": ...
Lodash _.maxBy() Method - GeeksforGeeks
02 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.maxBy() method is used to compute the maximum value from the original array by iterating over each element in the array using the Iteratee function. It is almost...
[ { "code": null, "e": 38681, "s": 38653, "text": "\n02 Sep, 2020" }, { "code": null, "e": 38821, "s": 38681, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc." }, { "code": n...
CASE() Function in MySQL - GeeksforGeeks
08 Feb, 2021 CASE() function in MySQL is used to find a value by passing over conditions whenever any condition satisfies the given statement otherwise it returns the statement in an else part. However, when a condition is satisfied it stops reading further and returns the output. Features: This function returns the st...
[ { "code": null, "e": 25538, "s": 25510, "text": "\n08 Feb, 2021" }, { "code": null, "e": 25807, "s": 25538, "text": "CASE() function in MySQL is used to find a value by passing over conditions whenever any condition satisfies the given statement otherwise it returns the statement...
Parsing and Processing URL using Python - Regex - GeeksforGeeks
02 Sep, 2020 Prerequisite: Regular Expression in Python URL or Uniform Resource Locator consists of many information parts, such as the domain name, path, port number etc. Any URL can be processed and parsed using Regular Expression. So for using Regular Expression we have to use re library in Python. Example: URL: htt...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n02 Sep, 2020" }, { "code": null, "e": 25580, "s": 25537, "text": "Prerequisite: Regular Expression in Python" }, { "code": null, "e": 25827, "s": 25580, "text": "URL or Uniform Resource Locator consists of man...
How least squares regression estimates are actually calculated | by Christian Lee | Towards Data Science
Ordinary least squares is a method used by linear regression to get parameter estimates. This entails fitting a line so that the sum of the squared distance from each point to the regression line (residual) is minimized. Let’s visualize this in the diagram below where the red line is the regression line and the blue li...
[ { "code": null, "e": 515, "s": 172, "text": "Ordinary least squares is a method used by linear regression to get parameter estimates. This entails fitting a line so that the sum of the squared distance from each point to the regression line (residual) is minimized. Let’s visualize this in the diagra...
Multiplication of two numbers with shift operator - GeeksforGeeks
05 Mar, 2021 For any given two numbers n and m, you have to find n*m without using any multiplication operator. Examples : Input: n = 25 , m = 13 Output: 325 Input: n = 50 , m = 16 Output: 800 We can solve this problem with the shift operator. The idea is based on the fact that every number can be represented in b...
[ { "code": null, "e": 24631, "s": 24603, "text": "\n05 Mar, 2021" }, { "code": null, "e": 24743, "s": 24631, "text": "For any given two numbers n and m, you have to find n*m without using any multiplication operator. Examples : " }, { "code": null, "e": 24814, "s"...
Simple Search Engine with Elastic Search | by Vivek Vinushanth Christopher | Towards Data Science
Elastic Stack is a group of open source products from Elastic, designed to help users to take data from any type of source and in any format and search, analyze, and visualize that data in real-time. Elasticsearch is a RESTful distributed search engine. It is Java-based and can search and index document files in divers...
[ { "code": null, "e": 372, "s": 172, "text": "Elastic Stack is a group of open source products from Elastic, designed to help users to take data from any type of source and in any format and search, analyze, and visualize that data in real-time." }, { "code": null, "e": 503, "s": 372,...
Android | AdMob Banner Ads for Android Studio - GeeksforGeeks
05 Nov, 2020 Banner ads are a rectangular image or text ads that occupy a spot within an app’s layout. If you’re new to mobile advertising, banner ads are the easiest to implement. This article shows you how to integrate banner ads from AdMob into an Android app.Example: First, create a new project in Android Studio a...
[ { "code": null, "e": 24592, "s": 24564, "text": "\n05 Nov, 2020" }, { "code": null, "e": 24852, "s": 24592, "text": "Banner ads are a rectangular image or text ads that occupy a spot within an app’s layout. If you’re new to mobile advertising, banner ads are the easiest to implem...
How to select/deselect multiple options in dropdown using jQuery ?
06 Jun, 2022 To select and deselect multiple options in a drop-down menu, we will use the HTML and CSS codes. HTML code helps to define the basic structure of the webpage and CSS will benefit in designing the web page. Some essential properties used in the code are as follows- <div> – This is a division tag that helps ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2022" }, { "code": null, "e": 234, "s": 28, "text": "To select and deselect multiple options in a drop-down menu, we will use the HTML and CSS codes. HTML code helps to define the basic structure of the webpage and CSS will bene...
How To Follow Links With Python Scrapy ?
21 Jul, 2021 In this article, we will use Scrapy, for scraping data, presenting on linked webpages, and, collecting the same. We will scrape data from the website ‘https://quotes.toscrape.com/’. Scrapy comes with an efficient command-line tool, also called the ‘Scrapy tool’. Commands are used for different purposes and...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2021" }, { "code": null, "e": 210, "s": 28, "text": "In this article, we will use Scrapy, for scraping data, presenting on linked webpages, and, collecting the same. We will scrape data from the website ‘https://quotes.toscrape....
Firebase Authentication with Phone Number OTP in Android
13 May, 2022 Many apps require their users to be authenticated. So for the purpose of authenticating the apps uses phone number authentication inside their apps. In phone authentication, the user has to verify his identity with his phone number. Inside the app user has to enter his phone number after that he will recei...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 May, 2022" }, { "code": null, "e": 741, "s": 53, "text": "Many apps require their users to be authenticated. So for the purpose of authenticating the apps uses phone number authentication inside their apps. In phone authentication, ...
C# - Classes
When you define a class, you define a blueprint for a data type. This does not actually define any data, but it does define what the class name means. That is, what an object of the class consists of and what operations can be performed on that object. Objects are instances of a class. The methods and variables that co...
[ { "code": null, "e": 2774, "s": 2404, "text": "When you define a class, you define a blueprint for a data type. This does not actually define any data, but it does define what the class name means. That is, what an object of the class consists of and what operations can be performed on that object. ...
Python – Access Parent Class Attribute
02 Jul, 2020 A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have attributes attached to it for...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jul, 2020" }, { "code": null, "e": 471, "s": 54, "text": "A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class cre...
Special prime numbers
01 Apr, 2021 Given two numbers n and k, find whether there exist at least k Special prime numbers or not from 2 to n inclusively. A prime number is said to be Special prime number if it can be expressed as the sum of three integer numbers: two neighboring prime numbers and 1. For example, 19 = 7 + 11 + 1, or 13 = 5 + 7...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Apr, 2021" }, { "code": null, "e": 477, "s": 54, "text": "Given two numbers n and k, find whether there exist at least k Special prime numbers or not from 2 to n inclusively. A prime number is said to be Special prime number if it c...
Wave Array | Practice | GeeksforGeeks
Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array(In Place). In other words, arrange the elements into a sequence such that arr[1] >= arr[2] <= arr[3] >= arr[4] <= arr[5]..... If there are multiple solutions, find the lexicographically smallest one. Example 1: Input: n = 5 arr[] = {...
[ { "code": null, "e": 451, "s": 238, "text": "Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array(In Place).\nIn other words, arrange the elements into a sequence such that arr[1] >= arr[2] <= arr[3] >= arr[4] <= arr[5]....." }, { "code": null, "e": 525,...
Node.js process.pid Property
12 Oct, 2021 The process.pid property is an inbuilt application programming interface of the process module which is used to get the PID of the process. Syntax: process.pid Return Value: This property returns an integer value specifying the PID of the process. Below examples illustrate the use of process.pid property i...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 168, "s": 28, "text": "The process.pid property is an inbuilt application programming interface of the process module which is used to get the PID of the process." }, { "code": null, "e"...
Subzy – Subdomain takeover Vulnerability Checker Tool
23 Aug, 2021 Subzy is the tool that identifies or checks the subdomain takeover on the target domain or multiple subdomains. Subzy is the Golang language based-tool. Subdomain takeover tool, which works based on matching response fingerprints from can-i-take-over-xyz. This automated scanner can help you in bug bounty p...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 714, "s": 28, "text": "Subzy is the tool that identifies or checks the subdomain takeover on the target domain or multiple subdomains. Subzy is the Golang language based-tool. Subdomain takeover too...
Python | Pandas Index.get_duplicates()
17 Dec, 2018 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 Index.get_duplicates() function extract duplicated index elements. This function retur...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
AKTU 1st Year Sem 1 Solved Paper 2017-18 | COMP. SYSTEM & C PROGRAMMING | Sec A
30 Jan, 2019 Paper download link: Paper | Sem 1 | 2017-18 Time: 3hrsTotal Marks: 100 Note:- There are three sections. Section A carries 20 marks, Section B carries 30 marks and Section C carries 50 marks. Attempt all questions. Marks are indicated against each question. Assume suitable data wherever necessary. 1. Attem...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Jan, 2019" }, { "code": null, "e": 98, "s": 53, "text": "Paper download link: Paper | Sem 1 | 2017-18" }, { "code": null, "e": 125, "s": 98, "text": "Time: 3hrsTotal Marks: 100" }, { "code": null, "e"...
How to clamp floating numbers in Python?
Clamp function limits a value to a given range. Python doesn't have such a function in built. You can create this function like def clamp(num, min_value, max_value): return max(min(num, max_value), min_value) print(clamp(5, 1, 20)) print(clamp(1, 10, 20)) print(clamp(20, 1, 10)) This will give the output 5 10 10
[ { "code": null, "e": 1315, "s": 1187, "text": "Clamp function limits a value to a given range. Python doesn't have such a function in built. You can create this function like" }, { "code": null, "e": 1470, "s": 1315, "text": "def clamp(num, min_value, max_value):\n return max(m...
Execute a String of Code in Python
04 May, 2022 Given few lines of code inside a string variable and execute the code inside the string. Examples: Input: code = """ a = 6+5 print(a)""" Output: 11 Explanation: Mind it that "code" is a variable and not python code. It contains another code, which we need to execute. Input: code = """ def fa...
[ { "code": null, "e": 53, "s": 25, "text": "\n04 May, 2022" }, { "code": null, "e": 154, "s": 53, "text": "Given few lines of code inside a string variable and execute the code inside the string. Examples: " }, { "code": null, "e": 662, "s": 154, "text": "Inpu...
HTML | <audio> autoplay Attribute
28 Jun, 2019 The HTML <audio> autoplay attribute is used to specify that the audio should automatically start playing as soon as it is loaded. It is a Boolean attribute. Syntax: <audio autoplay> Below example illustrates the <audio> autoplay attribute in HTML: Example: <!DOCTYPE html> <html> <head> <title> ...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jun, 2019" }, { "code": null, "e": 210, "s": 53, "text": "The HTML <audio> autoplay attribute is used to specify that the audio should automatically start playing as soon as it is loaded. It is a Boolean attribute." }, { "co...
How to change the position of legend using Plotly Python?
28 Nov, 2021 In this article, we will discuss how to change the position of the legend in Plotly using Python. The legend appears by default when variation in one object has to be depicted with reference to the other. Legend makes it easier to read a graph since it contains descriptions for the color code or keys used....
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2021" }, { "code": null, "e": 126, "s": 28, "text": "In this article, we will discuss how to change the position of the legend in Plotly using Python." }, { "code": null, "e": 553, "s": 126, "text": "The lege...
Find top three repeated in array
04 May, 2022 Given an array of size N with repeated numbers, You Have to Find the top three repeated numbers. Note : If Number comes same number of times then our output is one who comes first in array Examples: Input : arr[] = {3, 4, 2, 3, 16, 3, 15, 16, 15, 15, 16, 2, 3} Output : Three largest elements are 3 16 15 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 May, 2022" }, { "code": null, "e": 255, "s": 54, "text": "Given an array of size N with repeated numbers, You Have to Find the top three repeated numbers. Note : If Number comes same number of times then our output is one who comes ...
Find x and y satisfying ax + by = n
08 Jun, 2022 Given a, b and n. Find x and y that satisfies ax + by = n. Print any of the x and y satisfying the equationExamples : Input : n=7 a=2 b=3 Output : x=2, y=1 Explanation: here x and y satisfies the equation Input : 4 2 7 Output : No solution We can check if any solutions exists or not using Linear Dio...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jun, 2022" }, { "code": null, "e": 172, "s": 52, "text": "Given a, b and n. Find x and y that satisfies ax + by = n. Print any of the x and y satisfying the equationExamples : " }, { "code": null, "e": 297, "s": 172...
PHP | imagecopy() Function
23 Aug, 2019 The imagecopy() function is an inbuilt function in PHP which is used to copy the image or part of image. This function returns true on success or false on failure. Syntax: bool imagecopy ( $dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h ) Parameters: This function accepts eight para...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2019" }, { "code": null, "e": 192, "s": 28, "text": "The imagecopy() function is an inbuilt function in PHP which is used to copy the image or part of image. This function returns true on success or false on failure." }, { ...
TypeScript | Array reduce() Method
18 Jun, 2020 The Array.reduce() is an inbuilt TypeScript function which is used to apply a function against two values of the array as to reduce it to a single value. Syntax: array.reduce(callback[, initialValue]) Parameter: This method accept two parameter as mentioned and described below: callback : This parameter i...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2020" }, { "code": null, "e": 190, "s": 28, "text": "The Array.reduce() is an inbuilt TypeScript function which is used to apply a function against two values of the array as to reduce it to a single value. Syntax:" }, { ...
Construct Special Binary Tree from given Inorder traversal
17 Jun, 2022 Given Inorder Traversal of a Special Binary Tree in which key of every node is greater than keys in left and right children, construct the Binary Tree and return root. Examples: Chapters descriptions off, selected captions settings, opens captions settings dialog captions off, selected English This is a m...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jun, 2022" }, { "code": null, "e": 222, "s": 54, "text": "Given Inorder Traversal of a Special Binary Tree in which key of every node is greater than keys in left and right children, construct the Binary Tree and return root." }, ...
Mongoose | findOne() Function
20 May, 2020 The findOne() function is used to find one document according to the condition. If multiple documents match the condition, then it returns the first document satisfying the condition. Installation of mongoose module: You can visit the link to Install mongoose module. You can install this package by using t...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 May, 2020" }, { "code": null, "e": 212, "s": 28, "text": "The findOne() function is used to find one document according to the condition. If multiple documents match the condition, then it returns the first document satisfying the co...
Extracting an attribute value with beautifulsoup in Python
29 Dec, 2020 Prerequisite: Beautifulsoup Installation Attributes are provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. A tag may have any number of attributes. For example, the tag <b...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2020" }, { "code": null, "e": 69, "s": 28, "text": "Prerequisite: Beautifulsoup Installation" }, { "code": null, "e": 469, "s": 69, "text": "Attributes are provided by Beautiful Soup which is a web scraping f...
PHP | sort() Function
28 Aug, 2020 The sort() function is an inbuilt function in PHP and is used to sort an array in ascending order i.e, smaller to greater. It sorts the actual array and hence changes are reflected in the original array itself. The function provides us with 6 sorting types, according to which the array can be sorted. Synta...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 330, "s": 28, "text": "The sort() function is an inbuilt function in PHP and is used to sort an array in ascending order i.e, smaller to greater. It sorts the actual array and hence changes are refl...
How to assign values to variables in Python and other languages
31 May, 2022 This article discusses methods to assign values to variables. In this method, you will directly assign the value in python but in other programming languages like C, C++, you have to first initialise the data type of variable. So, In Python, there is no need of explicit declaration in variables as compar...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 May, 2022" }, { "code": null, "e": 116, "s": 53, "text": "This article discusses methods to assign values to variables. " }, { "code": null, "e": 450, "s": 116, "text": "In this method, you will directly assign t...
SAS | How to read character using Ampersand(&)
23 Jul, 2019 We can use ampersand (&) to notify SAS to read the variable until there are two or more spaces encounter as a delimiter. This technique is always useful when the variable contains two or more words. For example: Actual Input: "Geeks for Geeks" Expected Input: "GeeksforGeeks" Example 1: There are 2 spaces...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jul, 2019" }, { "code": null, "e": 227, "s": 28, "text": "We can use ampersand (&) to notify SAS to read the variable until there are two or more spaces encounter as a delimiter. This technique is always useful when the variable cont...
Switch Case in Python (Replacement)
In this tutorial, we are going to write a program that acts as a switch case in Python. Other programming languages like C, C++, Java, etc.., have switch whereas Python doesn't. Let's write a program that acts as a switch case in Python. We are going to use the dict data structure for writing the switch case in Python....
[ { "code": null, "e": 1150, "s": 1062, "text": "In this tutorial, we are going to write a program that acts as a switch case in Python." }, { "code": null, "e": 1300, "s": 1150, "text": "Other programming languages like C, C++, Java, etc.., have switch whereas Python doesn't. Let'...
D3.js - Introduction to SVG
SVG stands for Scalable Vector Graphics. SVG is an XML-based vector graphics format. It provides options to draw different shapes such as Lines, Rectangles, Circles, Ellipses, etc. Hence, designing visualizations with SVG gives you more power and flexibility. Some of the salient features of SVG are as follows − SVG is ...
[ { "code": null, "e": 2390, "s": 2130, "text": "SVG stands for Scalable Vector Graphics. SVG is an XML-based vector graphics format. It provides options to draw different shapes such as Lines, Rectangles, Circles, Ellipses, etc. Hence, designing visualizations with SVG gives you more power and flexib...
A Beginner’s Guide to Grabbing and Analyzing Salary Data in Python | by Matt Grierson | Towards Data Science
When I first started learning Python, one of the resources I wish I had were really simple, practical examples of how to grab and analyze data. For years I clung to Excel simply because I could do everything relatively fast and it seemed like Python was a lot of learning for a questionable benefit at the time. Below, I...
[ { "code": null, "e": 358, "s": 46, "text": "When I first started learning Python, one of the resources I wish I had were really simple, practical examples of how to grab and analyze data. For years I clung to Excel simply because I could do everything relatively fast and it seemed like Python was a ...
How to shift each letter in the given string N places down in the alphabet in JavaScript?
We are given a string of alphabets. Our task is to replace each of its alphabets with the alphabet that is n alphabets away from it in the English alphabet; i.e. if n = 1, replace a with b, replace b with c, etc (z would be replaced by a). For example − const str = "crazy"; const n = 1; the output should be − alphabeti...
[ { "code": null, "e": 1219, "s": 1062, "text": "We are given a string of alphabets. Our task is to replace each of its alphabets with the alphabet that is n alphabets away from it in the English alphabet;" }, { "code": null, "e": 1224, "s": 1219, "text": "i.e." }, { "code"...
Python Program to Check If Two Numbers are Amicable Numbers
Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. When it is required to check if two numbers are amicable numbers, a method can be defined that iterates over the number, and uses the modulus operator. Another method is defined that calls the...
[ { "code": null, "e": 1460, "s": 1062, "text": "Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. When it is required to check if two numbers are amicable numbers, a method can be defined that iterates over the number, and ...
Optimized Algorithm for Pattern Searching - GeeksforGeeks
13 Apr, 2022 Question: We have discussed Naive String matching algorithm here. Consider a situation where all characters of pattern are different. Can we modify the original Naive String Matching algorithm so that it works better for these types of patterns. If we can, then what are the changes to original algorithm? S...
[ { "code": null, "e": 34594, "s": 34566, "text": "\n13 Apr, 2022" }, { "code": null, "e": 34900, "s": 34594, "text": "Question: We have discussed Naive String matching algorithm here. Consider a situation where all characters of pattern are different. Can we modify the original Na...
Custom Template Filters in Django - GeeksforGeeks
01 Feb, 2021 Django is a Python-based web framework that allows you to quickly create efficient web applications. It is also called batteries included framework because Django provides built-in features for everything including Django Admin Interface, default database – SQLlite3, etc. Before move to see the how to mak...
[ { "code": null, "e": 24294, "s": 24266, "text": "\n01 Feb, 2021" }, { "code": null, "e": 24568, "s": 24294, "text": "Django is a Python-based web framework that allows you to quickly create efficient web applications. It is also called batteries included framework because Django ...
How to extract string before slash from a vector in R?
If a vector contains string values and they are separated with a special character (This special character can be anything, also it is not necessarily to be a special character) and we want to extract only the values that exists before that special then we can use gsub function. For example, if we have a vector x that ...
[ { "code": null, "e": 1465, "s": 1062, "text": "If a vector contains string values and they are separated with a special character (This special character can be anything, also it is not necessarily to be a special character) and we want to extract only the values that exists before that special then...
Software Engineering | Software Quality Assurance (SQA) Set 2 - GeeksforGeeks
12 Aug, 2021 Software Quality Assurance (SQA) consists of a set of activities that monitor the software engineering processes and methods used to ensure quality. Software Quality Assurance (SQA) encompasses: A quality management approach. Effective software engineering technology (methods and tools). Some formal tech...
[ { "code": null, "e": 24948, "s": 24920, "text": "\n12 Aug, 2021" }, { "code": null, "e": 25098, "s": 24948, "text": "Software Quality Assurance (SQA) consists of a set of activities that monitor the software engineering processes and methods used to ensure quality. " }, { ...
Bubble Sort On Doubly Linked List - GeeksforGeeks
25 Jun, 2021 Sort the given doubly linked list using bubble sort. Examples: Input : 5 4 3 2 1 Output : 1 2 3 4 5 Input : 2 1 3 5 4 Output :1 2 3 4 5 As we do in the bubble sort, here also we check elements of two adjacent node whether they are in ascending order or not, if not then we swap the ele...
[ { "code": null, "e": 24958, "s": 24930, "text": "\n25 Jun, 2021" }, { "code": null, "e": 25023, "s": 24958, "text": "Sort the given doubly linked list using bubble sort. Examples: " }, { "code": null, "e": 25114, "s": 25023, "text": "Input : 5 4 3 2 1\nO...
Extract Keywords from Audio files with Natural Language processing(NLP) | by Manmohan Singh | Towards Data Science
The latest version of HuggingFace transformers introduces a model, Wav2Vec 2.0, which has the potential to solve audio-related Natural Language Processing (NLP) tasks. And now, one of the tasks you can solve is how to extract keywords from audio. A Wav2Vec 2.0 model is an automatic speech recognition model released by ...
[ { "code": null, "e": 293, "s": 46, "text": "The latest version of HuggingFace transformers introduces a model, Wav2Vec 2.0, which has the potential to solve audio-related Natural Language Processing (NLP) tasks. And now, one of the tasks you can solve is how to extract keywords from audio." }, {...
Facade Method - Python Design Patterns - GeeksforGeeks
15 Sep, 2021 Facade Method is a Structural Design pattern that provides a simpler unified interface to a more complex system. The word Facade means the face of a building or particularly an outer lying interface of a complex system, consists of several sub-systems. It is an essential part Gang of Four design patterns. ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n15 Sep, 2021" }, { "code": null, "e": 24704, "s": 24292, "text": "Facade Method is a Structural Design pattern that provides a simpler unified interface to a more complex system. The word Facade means the face of a building or pa...
How to Install Python Pandas on MacOS? - GeeksforGeeks
22 Sep, 2021 In this article, we will learn how to install Pandas in Python on MacOS. Pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series. Follow the below s...
[ { "code": null, "e": 24776, "s": 24748, "text": "\n22 Sep, 2021" }, { "code": null, "e": 25065, "s": 24776, "text": "In this article, we will learn how to install Pandas in Python on MacOS. Pandas is a software library written for the Python programming language for data manipula...
Music Feature Extraction in Python | by Sanket Doshi | Towards Data Science
Extraction of features is a very important part in analyzing and finding relations between different things. The data provided of audio cannot be understood by the models directly to convert them into an understandable format feature extraction is used. It is a process that explains most of the data but in an understan...
[ { "code": null, "e": 471, "s": 47, "text": "Extraction of features is a very important part in analyzing and finding relations between different things. The data provided of audio cannot be understood by the models directly to convert them into an understandable format feature extraction is used. It...
Sass - Nested Rules
Nesting is combining of different logic structures. Using SASS, we can combine multiple CSS rules within one another. If you are using multiple selectors, then you can use one selector inside another to create compound selectors. The following example describes the use of nested rules in the SCSS file − <html> <head...
[ { "code": null, "e": 2082, "s": 1852, "text": "Nesting is combining of different logic structures. Using SASS, we can combine multiple CSS rules within one another. If you are using multiple selectors, then you can use one selector inside another to create compound selectors." }, { "code": n...
I Made a Dating Algorithm with Machine Learning and AI | Towards Data Science
Dating is rough for the single person. Dating apps can be even rougher. The algorithms dating apps use are largely kept private by the various companies that use them. Today, we will try to shed some light on these algorithms by building a dating algorithm using AI and Machine Learning. More specifically, we will be ut...
[ { "code": null, "e": 556, "s": 171, "text": "Dating is rough for the single person. Dating apps can be even rougher. The algorithms dating apps use are largely kept private by the various companies that use them. Today, we will try to shed some light on these algorithms by building a dating algorith...
How to make a singleton enum in Java?
The singleton pattern restricts the instantiation of a class to one object. INSTANCE is a public static final field that represents the enum instance. We can get the instance of the class with the EnumSingleton.INSTANCE but it is better to encapsulate it in a getter in case if we want to change the implementation. Ther...
[ { "code": null, "e": 1378, "s": 1062, "text": "The singleton pattern restricts the instantiation of a class to one object. INSTANCE is a public static final field that represents the enum instance. We can get the instance of the class with the EnumSingleton.INSTANCE but it is better to encapsulate i...
PLSQL | LENGTH Function - GeeksforGeeks
23 Sep, 2019 The PLSQL LENGTH function is used for returning the length of the specified string, in other words, it returns the length of char. The char accepted by the LENGTH function in PLSQL can be of any of the datatypes such as CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB. The value returned by the LENGTH func...
[ { "code": null, "e": 23539, "s": 23511, "text": "\n23 Sep, 2019" }, { "code": null, "e": 23809, "s": 23539, "text": "The PLSQL LENGTH function is used for returning the length of the specified string, in other words, it returns the length of char. The char accepted by the LENGTH ...
JavaScript Array fill() function
The fill() method of JavaScript is used to fill the elements in an array with a static value. The syntax is as follows − array.fill(val, start, end) Above, val is the value to fill the array, start is the index to begin filling the array, whereas end is the index to stop filling the array. Let us now implement the fill...
[ { "code": null, "e": 1156, "s": 1062, "text": "The fill() method of JavaScript is used to fill the elements in an array with a static value." }, { "code": null, "e": 1183, "s": 1156, "text": "The syntax is as follows −" }, { "code": null, "e": 1211, "s": 1183, ...
Implementing ML Systems tutorial: Server-side or Client-side models? | by Mostafa Ibrahim | Towards Data Science
Developing machine learning models is all fun and good, but after developing them you will probably be looking into deploying them into an app to use them. The question is should you put them on the client-side (which is probably the mobile) or should you put the model on a server, send the data to the server and get t...
[ { "code": null, "e": 608, "s": 172, "text": "Developing machine learning models is all fun and good, but after developing them you will probably be looking into deploying them into an app to use them. The question is should you put them on the client-side (which is probably the mobile) or should you...
Connecting and interpolating POIs to a road network | by Yuwen Chang | Towards Data Science
This article discusses the process of handling the integration of point geometries and a geospatial network. You may find a demonstration Jupyter Notebook and the script of the function here. When we work with network analysis, our objects of analysis (represented as nodes or vertices) should be connected through a gra...
[ { "code": null, "e": 364, "s": 172, "text": "This article discusses the process of handling the integration of point geometries and a geospatial network. You may find a demonstration Jupyter Notebook and the script of the function here." }, { "code": null, "e": 697, "s": 364, "te...
HTML onclick Event Attribute
The HTML onclick attribute is triggered when you mouse click on an HTML element in an HTML document. Following is the syntax − <tagname onclick=”script”></tagname> Let us see an example of HTML onclick event Attribute − Live Demo <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-s...
[ { "code": null, "e": 1163, "s": 1062, "text": "The HTML onclick attribute is triggered when you mouse click on an HTML element in an HTML document." }, { "code": null, "e": 1189, "s": 1163, "text": "Following is the syntax −" }, { "code": null, "e": 1226, "s": 118...
MongoEngine - Aggregation
The term ‘aggregation’ is used for the operation that processes data and returns computed result. Finding sum, count and average on one or more fields of documents in a collection can be called as aggregation functions. MongoEngine provides aggregate() function that encapsulates PyMongo’s aggregation framework. Aggrega...
[ { "code": null, "e": 2530, "s": 2310, "text": "The term ‘aggregation’ is used for the operation that processes data and returns computed result. Finding sum, count and average on one or more fields of documents in a collection can be called as aggregation functions." }, { "code": null, "...
Convert Hexadecimal value String to ASCII value String in C++
In this tutorial, we will be discussing a program to convert hexadecimal value string to ASCII value string. For this we will be provided with a string with some hexadecimal values. Our task is to get that hexadecimal value and convert it into equivalent ASCII values. Live Demo #include <bits/stdc++.h> using namespace...
[ { "code": null, "e": 1171, "s": 1062, "text": "In this tutorial, we will be discussing a program to convert hexadecimal value string to ASCII value string." }, { "code": null, "e": 1331, "s": 1171, "text": "For this we will be provided with a string with some hexadecimal values. ...
Basics of Batch Scripting - GeeksforGeeks
10 Jul, 2020 Batch Scripting consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. It is not commonly used as a programming language and so it is not commonly practiced and is not trending but its control and dominance in the Windows environment can never be negle...
[ { "code": null, "e": 24040, "s": 24012, "text": "\n10 Jul, 2020" }, { "code": null, "e": 24489, "s": 24040, "text": "Batch Scripting consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. It is not commonly used as a programm...
How to select an empty result set in MySQL?
Select an empty result set with the help of dummy table ‘dual’ from MySQL. The query is as follows − mysql> select 1 from dual where false; Empty set (0.00 sec) In the above query, “dual” is a dummy table and the above condition false. Therefore, it returns empty set. Let us check with true condition. It will return th...
[ { "code": null, "e": 1163, "s": 1062, "text": "Select an empty result set with the help of dummy table ‘dual’ from MySQL. The query is as follows −" }, { "code": null, "e": 1223, "s": 1163, "text": "mysql> select 1 from dual where false;\nEmpty set (0.00 sec)" }, { "code"...
How to set JavaScript object values dynamically?
Following is the code for setting JavaScript object values dynamically − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, ...
[ { "code": null, "e": 1135, "s": 1062, "text": "Following is the code for setting JavaScript object values dynamically −" }, { "code": null, "e": 1146, "s": 1135, "text": " Live Demo" }, { "code": null, "e": 2271, "s": 1146, "text": "<!DOCTYPE html>\n<html lang...
MongoDB query to skip first 5 records and display only the last 5 of them
To skip records in MongoDB, use skip(). With that, to display only a specific number of records, use limit(). Let us create a collection with documents − > db.demo275.insertOne({"Number":10}); { "acknowledged" : true, "insertedId" : ObjectId("5e48eac4dd099650a5401a43") } > db.demo275.insertOne({"Number":12}); { ...
[ { "code": null, "e": 1172, "s": 1062, "text": "To skip records in MongoDB, use skip(). With that, to display only a specific number of records, use limit()." }, { "code": null, "e": 1216, "s": 1172, "text": "Let us create a collection with documents −" }, { "code": null, ...