title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
AngularJS | angular.lowercase() Function - GeeksforGeeks
22 Apr, 2019 The angular.lowercase() Function in AngularJS is used to convert the string into lowercase. It can be used when user wants to show the text in lowercase instead of uppercase or one wants to compare two strings.Syntax: angular.lowercase(string) Example: In this example the string is converted into lowercase...
[ { "code": null, "e": 29493, "s": 29465, "text": "\n22 Apr, 2019" }, { "code": null, "e": 29711, "s": 29493, "text": "The angular.lowercase() Function in AngularJS is used to convert the string into lowercase. It can be used when user wants to show the text in lowercase instead of...
Minimum cost to connect all cities - GeeksforGeeks
08 Jun, 2021 There are n cities and there are roads in between some of the cities. Somehow all the roads are damaged simultaneously. We have to repair the roads to connect the cities again. There is a fixed cost to repair a particular road. Find out the minimum cost to connect all the cities by repairing roads. Input i...
[ { "code": null, "e": 26411, "s": 26383, "text": "\n08 Jun, 2021" }, { "code": null, "e": 27033, "s": 26411, "text": "There are n cities and there are roads in between some of the cities. Somehow all the roads are damaged simultaneously. We have to repair the roads to connect the ...
GATE | GATE CS 2013 | Question 7 - GeeksforGeeks
28 Jun, 2021 Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?(A) O(1)(B) O(Logn)(C) O(n)(D) O(nLogn)Answer: (C)Explanation: To insert an element, we need to search for its place first. The search operation may take O(...
[ { "code": null, "e": 25877, "s": 25849, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26221, "s": 25877, "text": "Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?(A) O(1)(B) ...
Function Arguments in Golang - GeeksforGeeks
13 Aug, 2019 A function in Golang is a collection of statements which is used to perform specific task and return the result to the caller. A function can also perform some specific task without returning anything. Golang supports two different ways to pass arguments to the function i.e. Pass by Value or Call by Value ...
[ { "code": null, "e": 25777, "s": 25749, "text": "\n13 Aug, 2019" }, { "code": null, "e": 26213, "s": 25777, "text": "A function in Golang is a collection of statements which is used to perform specific task and return the result to the caller. A function can also perform some spe...
Pandas - Number of Months Between Two Dates - GeeksforGeeks
18 Dec, 2021 In this article, we are going to find the number of months between two dates in pandas using Python. Example 1: We will take a dataframe and have two columns for the dates between which we want to get the difference. Use df.dates1-df.dates2 to find the difference between the two dates and then convert the...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Dec, 2021" }, { "code": null, "e": 25639, "s": 25537, "text": "In this article, we are going to find the number of months between two dates in pandas using Python. " }, { "code": null, "e": 25650, "s": 25639, ...
get_cookies driver method - Selenium Python - GeeksforGeeks
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n15 May, 2020" }, { "code": null, "e": 26276, "s": 25537, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi...
modinfo command in Linux with Examples - GeeksforGeeks
23 May, 2019 modinfo command in Linux system is used to display the information about a Linux Kernel module. This command extracts the information from the Linux kernel modules given on the command line. If the module name is not a file name, then the /lib/modules/kernel-version directory is searched by default. modinf...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n23 May, 2019" }, { "code": null, "e": 26026, "s": 25651, "text": "modinfo command in Linux system is used to display the information about a Linux Kernel module. This command extracts the information from the Linux kernel modules...
Data Structures | Queue | Question 11 - GeeksforGeeks
28 Nov, 2021 Consider the following pseudo code. Assume that IntQueue is an integer queue. What does the function fun do? void fun(int n){ IntQueue q = new IntQueue(); q.enqueue(0); q.enqueue(1); for (int i = 0; i < n; i++) { int a = q.dequeue(); int b = q.dequeue(); q.enqueue(b); ...
[ { "code": null, "e": 26293, "s": 26265, "text": "\n28 Nov, 2021" }, { "code": null, "e": 26402, "s": 26293, "text": "Consider the following pseudo code. Assume that IntQueue is an integer queue. What does the function fun do?" }, { "code": "void fun(int n){ IntQueue q ...
Remove the common nodes in two Singly Linked Lists - GeeksforGeeks
29 Oct, 2021 Given two Linked Lists L1 and L2, the task is to generate a new linked list with no common elements from the given two linked lists. Example: Input: L1 = 10 -> 15 -> 5 -> 20, L2 = 8 -> 5 -> 20 -> 10 Output: 8 -> 15 Explanation: Since both the linked list has 5, 10 and 20 in common. Therefore these elemen...
[ { "code": null, "e": 26179, "s": 26151, "text": "\n29 Oct, 2021" }, { "code": null, "e": 26312, "s": 26179, "text": "Given two Linked Lists L1 and L2, the task is to generate a new linked list with no common elements from the given two linked lists." }, { "code": null, ...
Python | Find Dissimilar Elements in Tuples - GeeksforGeeks
11 Nov, 2019 Sometimes, while working with tuples, we can have a problem in which we need dissimilar features of two records. This type of application can come in Data Science domain. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using set() + "^" operator This task can be performed using ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n11 Nov, 2019" }, { "code": null, "e": 25772, "s": 25537, "text": "Sometimes, while working with tuples, we can have a problem in which we need dissimilar features of two records. This type of application can come in Data Science ...
Statement, Indentation and Comment in Python - GeeksforGeeks
09 Aug, 2021 Instructions written in the source code for execution are called statements. There are different types of statements in the Python programming language like Assignment statements, Conditional statements, Looping statements, etc. These all help the user to get the required output. For example, n = 50 is an ...
[ { "code": null, "e": 42675, "s": 42647, "text": "\n09 Aug, 2021" }, { "code": null, "e": 43332, "s": 42675, "text": "Instructions written in the source code for execution are called statements. There are different types of statements in the Python programming language like Assign...
Python | Sort Flatten list of list - GeeksforGeeks
11 May, 2020 The flattening of list of lists has been discussed earlier, but sometimes, in addition to flattening, it is also required to get the string in a sorted manner. Let’s discuss certain ways in which this can be done. Method #1 : Using sorted() + list comprehensionThis idea is similar to flattening a list of l...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n11 May, 2020" }, { "code": null, "e": 25751, "s": 25537, "text": "The flattening of list of lists has been discussed earlier, but sometimes, in addition to flattening, it is also required to get the string in a sorted manner. Let...
Java Program to Find Sum of N Numbers Using Recursion - GeeksforGeeks
26 May, 2021 Recursion is a process by which a function calls itself repeatedly till it falls under the base condition and our motive is achieved. To solve any problem using recursion, we should simply follow the below steps: Assume/Identify the smaller problem from the problem which is similar to the bigger/original p...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n26 May, 2021" }, { "code": null, "e": 25359, "s": 25225, "text": "Recursion is a process by which a function calls itself repeatedly till it falls under the base condition and our motive is achieved." }, { "code": null, ...
How To Make Ridgeline plot in Python with Seaborn? - GeeksforGeeks
12 Nov, 2020 Prerequisite: Seaborn Ridgeline plot is a set of overlapped density plots that help in comparing multiple distributions among datasets. The Ridgeline plots look like a mountain range, they can be quite useful for visualizing changes in distributions over time or space. Sometimes it is also known as “joyplo...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n12 Nov, 2020" }, { "code": null, "e": 25559, "s": 25537, "text": "Prerequisite: Seaborn" }, { "code": null, "e": 26008, "s": 25559, "text": "Ridgeline plot is a set of overlapped density plots that help in com...
Mongoose | deleteOne() Function - GeeksforGeeks
20 May, 2020 The deleteOne() function is used to delete the first document that matches the conditions from the collection. It behaves like the remove() function but deletes at most one document regardless of the single option. Installation of mongoose module: You can visit the link to Install mongoose module. You can ...
[ { "code": null, "e": 25373, "s": 25345, "text": "\n20 May, 2020" }, { "code": null, "e": 25588, "s": 25373, "text": "The deleteOne() function is used to delete the first document that matches the conditions from the collection. It behaves like the remove() function but deletes at...
How to Build a Restaurant Recommendation System Using Latent Factor Collaborative Filtering | by Theo Jeremiah | Towards Data Science
I usually watch youtube when I am taking a break from my work. I commit to myself to watch Youtube only for 5 to 10 minutes to rest my mind. Here is what usually happens, after I finished watching one video, the next video pops out from Youtube recommendations and I click on that video. When I take a look again at my w...
[ { "code": null, "e": 447, "s": 47, "text": "I usually watch youtube when I am taking a break from my work. I commit to myself to watch Youtube only for 5 to 10 minutes to rest my mind. Here is what usually happens, after I finished watching one video, the next video pops out from Youtube recommendat...
Difference between Function and Predicate in Java 8
Function and Predicate both functional interface was introduced in Java 8 to implement functional programming in Java. Function interface is used to do the transformation.It can accepts one argument and produces a result. On the other side, Predicate can also accept only one argument but it can only return boolean valu...
[ { "code": null, "e": 1181, "s": 1062, "text": "Function and Predicate both functional interface was introduced in Java 8 to implement functional programming in Java." }, { "code": null, "e": 1419, "s": 1181, "text": "Function interface is used to do the transformation.It can acce...
Tryit Editor v3.7
CSS 2D Transforms Tryit: The rotate() method
[ { "code": null, "e": 27, "s": 9, "text": "CSS 2D Transforms" } ]
IS vs AS Operators in C#
The "is" operator in C# checks whether the run-time type of an object is compatible with a given type or not. The following is the syntax − expr is type Here, expr is the expression type is the name of the type The following is an example showing the usage of is operator in C# &minis; Live Demo using System; class On...
[ { "code": null, "e": 1172, "s": 1062, "text": "The \"is\" operator in C# checks whether the run-time type of an object is compatible with a given type or not." }, { "code": null, "e": 1202, "s": 1172, "text": "The following is the syntax −" }, { "code": null, "e": 121...
Customer Segmentation Data Science | by Arun Jagota | Towards Data Science
In marketing, customer segmentation is the process of grouping customers by common traits. Discerning buying habits by customer type helps to market appropriately. For instance, it reveals the sizes of the various segments, how much we make from them, etc. This can help decide how to apportion the marketing budget. In ...
[ { "code": null, "e": 363, "s": 46, "text": "In marketing, customer segmentation is the process of grouping customers by common traits. Discerning buying habits by customer type helps to market appropriately. For instance, it reveals the sizes of the various segments, how much we make from them, etc....
Python 3 - Files I/O
This chapter covers all the basic I/O functions available in Python 3. For more functions, please refer to the standard Python documentation. The simplest way to produce output is using the print statement where you can pass zero or more expressions separated by commas. This function converts the expressions you pass i...
[ { "code": null, "e": 2482, "s": 2340, "text": "This chapter covers all the basic I/O functions available in Python 3. For more functions, please refer to the standard Python documentation." }, { "code": null, "e": 2727, "s": 2482, "text": "The simplest way to produce output is us...
How can I create a simple message box in Tkinter?
Tkinter is a popular Python library for creating and developing applications. It has various methods and functions that can be used for adding multiple features in an application. Using Tkinter, we can create dialogue boxes and other widgets. In this article, we will see how we can create a simple message box that will...
[ { "code": null, "e": 1305, "s": 1062, "text": "Tkinter is a popular Python library for creating and developing applications. It has\nvarious methods and functions that can be used for adding multiple features in an\napplication. Using Tkinter, we can create dialogue boxes and other widgets." }, ...
Array Copying in Python - GeeksforGeeks
11 Aug, 2021 Let us see how to copy arrays in Python. There are 3 ways to copy arrays : Simply using the assignment operator. Shallow Copy Deep Copy We can create a copy of an array by using the assignment operator (=). Syntax : new_arr = old_ arr In Python, Assignment statements do not copy objects, they create bin...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n11 Aug, 2021" }, { "code": null, "e": 24392, "s": 24316, "text": "Let us see how to copy arrays in Python. There are 3 ways to copy arrays : " }, { "code": null, "e": 24430, "s": 24392, "text": "Simply using t...
How do I create a popup window using Tkinter?
Tkinter supports toplevel classes, and these classes contain toplevel window. Toplevel window is also known as child window. We can create a toplevel window by creating the object of Toplevel(parent). The toplevel window inherits all the properties of Tkinter's parent object. It can contain widgets, frames, canvas and ...
[ { "code": null, "e": 1263, "s": 1062, "text": "Tkinter supports toplevel classes, and these classes contain toplevel window. Toplevel window is also known as child window. We can create a toplevel window by creating the object of Toplevel(parent)." }, { "code": null, "e": 1405, "s": ...
How to make an Android Spinner with initial default text using Kotlin?
This example demonstrates how to make an Android Spinner with initial default text using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding=...
[ { "code": null, "e": 1159, "s": 1062, "text": "This example demonstrates how to make an Android Spinner with initial default text using Kotlin." }, { "code": null, "e": 1288, "s": 1159, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill al...
Group by element in array JavaScript
Suppose, we have an array of objects like this − const arr = [ {"name": "toto", "uuid": 1111}, {"name": "tata", "uuid": 2222}, {"name": "titi", "uuid": 1111} ]; We are required to write a JavaScript function that splits the objects into separate array of arrays that have the similar values for the uuid propert...
[ { "code": null, "e": 1111, "s": 1062, "text": "Suppose, we have an array of objects like this −" }, { "code": null, "e": 1232, "s": 1111, "text": "const arr = [\n {\"name\": \"toto\", \"uuid\": 1111},\n {\"name\": \"tata\", \"uuid\": 2222},\n {\"name\": \"titi\", \"uuid\": ...
Creating a Docker Image with Git Installed - GeeksforGeeks
29 Oct, 2020 Version control is one of the most important aspects of any software development project and when we talk about version control, there is no better tool than Git. The majority of the developers depend upon Git to manage and share their project components among the team members. Even if you are running you...
[ { "code": null, "e": 24276, "s": 24248, "text": "\n29 Oct, 2020" }, { "code": null, "e": 24556, "s": 24276, "text": "Version control is one of the most important aspects of any software development project and when we talk about version control, there is no better tool than Git. ...
Number of distinct permutation a String can have - GeeksforGeeks
27 Jan, 2022 We are given a string having only lowercase alphabets. The task is to find out total number of distinct permutation can be generated by that string.Examples: Input : aab Output : 3 Different permutations are "aab", "aba" and "baa". Input : ybghjhbuytb Output : 1663200 A simple solution is to find all ...
[ { "code": null, "e": 26425, "s": 26397, "text": "\n27 Jan, 2022" }, { "code": null, "e": 26585, "s": 26425, "text": "We are given a string having only lowercase alphabets. The task is to find out total number of distinct permutation can be generated by that string.Examples: " ...
chsh command in Linux with examples - GeeksforGeeks
26 Aug, 2021 chsh command in Linux is used to change the user’s login shell(currently login shell). Shell is an interactive user interface with an operating system and can be considered an outer layer of the operating system. The bash shell is one of the most widely used login shells in Linux. This command allows the u...
[ { "code": null, "e": 24326, "s": 24298, "text": "\n26 Aug, 2021" }, { "code": null, "e": 24828, "s": 24326, "text": "chsh command in Linux is used to change the user’s login shell(currently login shell). Shell is an interactive user interface with an operating system and can be c...
Check if a number can be expressed as a sum of consecutive numbers - GeeksforGeeks
21 Jan, 2022 Given a number n, the task is to check whether it can be expressed as a sum of two or more consecutive numbers or not. Examples: Input : n = 10 Output : true It can be expressed as sum of two consecutive numbers 1 + 2 + 3 + 4. Input : n = 16 Output : false It cannot be expressed as sum of two conse...
[ { "code": null, "e": 25276, "s": 25248, "text": "\n21 Jan, 2022" }, { "code": null, "e": 25407, "s": 25276, "text": "Given a number n, the task is to check whether it can be expressed as a sum of two or more consecutive numbers or not. Examples: " }, { "code": null, ...
Removing Spikes from Raman Spectra with Anomaly Detection: Whitaker-Hayes algorithm in Python | by Nicolas Coca, PhD | Towards Data Science
Abstract. In this article, I would like to comment on a new approach to remove spikes from Raman spectra, presented in the Chemometrics and Intelligent Laboratory Systems journal by D. Whitaker and K. Hayes1. In their publication, the authors use a modified Z-scores outlier detection based algorithm to locate such spik...
[ { "code": null, "e": 867, "s": 172, "text": "Abstract. In this article, I would like to comment on a new approach to remove spikes from Raman spectra, presented in the Chemometrics and Intelligent Laboratory Systems journal by D. Whitaker and K. Hayes1. In their publication, the authors use a modifi...
Comparison of boolean data type in C++ and Java - GeeksforGeeks
12 Jun, 2017 The Boolean data type is one of the primitive data types in both C++ and Java. Although, it may seem to be the easiest of all the data types, as it can have only two values – true or false, but it surely is a tricky one as there are certain differences in its usage in both Java and C++, which if not taken ...
[ { "code": null, "e": 25369, "s": 25341, "text": "\n12 Jun, 2017" }, { "code": null, "e": 25755, "s": 25369, "text": "The Boolean data type is one of the primitive data types in both C++ and Java. Although, it may seem to be the easiest of all the data types, as it can have only t...
How to create a data frame with a column having repeated values in R?
To create a data frame with a column having repeated values, we simply need to use rep function and we can repeat the values in a sequence of the values passed or repeating each value a particular number of times. For example, if we have three values 1, 2, 3 then the data frame can be created by repeating these values ...
[ { "code": null, "e": 1475, "s": 1062, "text": "To create a data frame with a column having repeated values, we simply need to use rep function and we can repeat the values in a sequence of the values passed or repeating each value a particular number of times. For example, if we have three values 1,...
How to Resample Time Series Data in Python?
19 Dec, 2021 In time series, data consistency is of prime importance, resampling ensures that the data is distributed with a consistent frequency. Resampling can also provide a different perception of looking at the data, in other words, it can add additional insights about the data based on the resampling frequency. r...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Dec, 2021" }, { "code": null, "e": 360, "s": 54, "text": "In time series, data consistency is of prime importance, resampling ensures that the data is distributed with a consistent frequency. Resampling can also provide a different ...
Find frequency of each word in a string in Python
31 Mar, 2020 Write a python code to find the frequency of each word in a given string. Examples: Input : str[] = "Apple Mango Orange Mango Guava Guava Mango" Output : frequency of Apple is : 1 frequency of Mango is : 3 frequency of Orange is : 1 frequency of Guava is : 2 Input : str = "Tr...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 Mar, 2020" }, { "code": null, "e": 127, "s": 53, "text": "Write a python code to find the frequency of each word in a given string." }, { "code": null, "e": 137, "s": 127, "text": "Examples:" }, { "code":...
How to add a class to DOM element in JavaScript?
03 Jan, 2022 DOM (Document Object Model) is a way of manipulating the document (HTML document). This article will deal with how to access and set class names to the DOM elements. In DOM, all HTML elements are defined as objects. We will be using Javascript against CSS to manipulate them. Following are the properties of...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jan, 2022" }, { "code": null, "e": 304, "s": 28, "text": "DOM (Document Object Model) is a way of manipulating the document (HTML document). This article will deal with how to access and set class names to the DOM elements. In DOM, a...
Powershell - Logical Operators Examples
The following scripts demonstrates the logical operators. > $a = 10 > $b = 20 > $a -AND $b True > $a -OR $b True > -NOT ($a -AND $b)
[ { "code": null, "e": 2226, "s": 2168, "text": "The following scripts demonstrates the logical operators." } ]
Modify given array by incrementing first occurrence of every element by K
01 Jul, 2022 Given an array arr[] consisting of N integers, read every element of the array one by one and perform the following operations: If the current element arr[i] had previously occurred in the array, increase its first occurrence by K. Otherwise, insert arr[i] into the sequence The task is to print the final s...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jul, 2022" }, { "code": null, "e": 180, "s": 52, "text": "Given an array arr[] consisting of N integers, read every element of the array one by one and perform the following operations:" }, { "code": null, "e": 284, ...
Python program to Increment Suffix Number in String
02 Dec, 2020 Given a String, the task is to write a Python program to increment the number which is at end of the string. Input : test_str = ‘geeks006’ Output : geeks7 Explanation : Suffix 006 incremented to 7. Input : test_str = ‘geeks007’ Output : geeks8 Explanation : Suffix 007 incremented to 8. Method #1 : Using ...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Dec, 2020" }, { "code": null, "e": 137, "s": 28, "text": "Given a String, the task is to write a Python program to increment the number which is at end of the string." }, { "code": null, "e": 226, "s": 137, "text"...
Levene’s Test in R Programming
25 Aug, 2020 In statistics, Levene’s test is an inferential statistic used to evaluate the equality of variances for a variable determined for two or more groups. Some standard statistical procedures find that variances of the populations from which various samples are formed are equal. Levene’s test assesses this assu...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2020" }, { "code": null, "e": 742, "s": 28, "text": "In statistics, Levene’s test is an inferential statistic used to evaluate the equality of variances for a variable determined for two or more groups. Some standard statistical...
Zoho Off Campus Drive | Set 26 (Software Developer)
04 Dec, 2018 Round 1: Written test The first round comprised of 40 one mark questions (without options) from C output questions and flow chart questions (Test Duration: 2 hour) :- C output questions part covered questions from iterations, pointers, array and data structures. Suggestion: I would suggest to do quizzes fr...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Dec, 2018" }, { "code": null, "e": 74, "s": 52, "text": "Round 1: Written test" }, { "code": null, "e": 219, "s": 74, "text": "The first round comprised of 40 one mark questions (without options) from C output qu...
Length of diagonal of a parallelogram using adjacent sides and angle between them
08 Apr, 2021 Given two integers a and b where a and b represents the length of adjacent sides of a parallelogram and an angle 0 between them, the task is to find the length of diagonal of the parallelogram. Examples: Input: a = 6, b = 10, 0=30Output: 6.14 Input: a = 3, b = 5, 0=45Output: 3.58 Approach: Consider a para...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Apr, 2021" }, { "code": null, "e": 222, "s": 28, "text": "Given two integers a and b where a and b represents the length of adjacent sides of a parallelogram and an angle 0 between them, the task is to find the length of diagonal of ...
How to convert a String to an Int in Java?
28 Aug, 2019 Given String str containing digits as characters, the task is to convert this given string to integer in Java. Examples: Input: str = "1234" Output: 1234 Input: str = "213s" Output: 0 Since the String contains other than digits, hence the integer value will be 0 Method 1: Use Integer.parseInt() methodThi...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Aug, 2019" }, { "code": null, "e": 163, "s": 52, "text": "Given String str containing digits as characters, the task is to convert this given string to integer in Java." }, { "code": null, "e": 173, "s": 163, "te...
How to sort rows in a table using JavaScript?
28 Jun, 2019 Since JavaScript doesn’t provide any inbuilt functions to sort a table we will be required to use native methods to sort a given table. We will look into the methods in this article. Approach:A basic algorithm and similar approach will be used for both of the following examples. Loop the program to switch ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2019" }, { "code": null, "e": 211, "s": 28, "text": "Since JavaScript doesn’t provide any inbuilt functions to sort a table we will be required to use native methods to sort a given table. We will look into the methods in this a...
HTTP status codes | Server Error Responses
15 Jul, 2020 HTTP status codes is a conversation between your browser and the site server. The server gives responses to the browser’s request in the form of a three-digit code known as HTTP status codes. Categories of HTTP status codes are. Informational responses (100–199) Successful responses (200–299) Redirects (30...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2020" }, { "code": null, "e": 257, "s": 28, "text": "HTTP status codes is a conversation between your browser and the site server. The server gives responses to the browser’s request in the form of a three-digit code known as HT...
BigDecimal abs() Method in Java
04 Dec, 2018 The java.math.BigDecimal.abs() is used to return a BigDecimal whose value is the absolute value of the BigDecimal and whose scale is this.scale().Syntax :public BigDecimal abs()Parameters: The method does not accept any parameters.Return Value: Returns a BigDecimal whose value is the absolute value of this...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Dec, 2018" }, { "code": null, "e": 3262, "s": 28, "text": "The java.math.BigDecimal.abs() is used to return a BigDecimal whose value is the absolute value of the BigDecimal and whose scale is this.scale().Syntax :public BigDecimal ab...
Setting up local DNS server between client-server machines
05 Mar, 2021 In this, article you will see the overview of DNS server and how to set up the local DNS server between the client and server machines. And here we will use Wireshark. Let’s discuss it one by one. Introduction :A DNS server is computer server that contains a database of public IP addresses and their assoc...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Mar, 2021" }, { "code": null, "e": 250, "s": 52, "text": "In this, article you will see the overview of DNS server and how to set up the local DNS server between the client and server machines. And here we will use Wireshark. Let’s ...
Minimum value of distance of farthest node in a Graph
09 Aug, 2021 Given an acyclic undirected graph having N nodes and N-1 edges in the form of a 2D array arr[][] in which every row consists of two numbers L and R which denotes the edge between L and R. For every node X in the tree, let dis(X) denotes the number of edges from X to the farthest node. The task is to find t...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Aug, 2021" }, { "code": null, "e": 407, "s": 52, "text": "Given an acyclic undirected graph having N nodes and N-1 edges in the form of a 2D array arr[][] in which every row consists of two numbers L and R which denotes the edge bet...
Turning a Dictionary into XML in Python
01 Sep, 2021 XML stands for Extensible Markup Language. XML was designed to be self-descriptive and to store and transport data. XML tags are used to identify, store and organize the data. The basic building block of an XML document is defined by tags. An element has a beginning tag and an ending tag. All elements in a...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Sep, 2021" }, { "code": null, "e": 407, "s": 28, "text": "XML stands for Extensible Markup Language. XML was designed to be self-descriptive and to store and transport data. XML tags are used to identify, store and organize the data....
Sorting a Hashmap according to values
06 Apr, 2022 Given marks scored out of 100 by a student in subjects where the name of the subject is key and marks scored is the value. Our task is to sort the hashmap according to values i.e. according to marks.Example: Input : Key = Math, Value = 98 Key = Data Structure, Value = 85 Key = Database, V...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Apr, 2022" }, { "code": null, "e": 262, "s": 52, "text": "Given marks scored out of 100 by a student in subjects where the name of the subject is key and marks scored is the value. Our task is to sort the hashmap according to values...
How to display black navigation bar in Bootstrap ?
24 Aug, 2021 A navigation bar is used in every website to make it more user-friendly so that the navigation through the website becomes easy and the user can directly search for the topic of their interest. There are two following ways to display a black navigation bar. Using .navbar-dark and .bg-dark classes: The .nav...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Aug, 2021" }, { "code": null, "e": 286, "s": 28, "text": "A navigation bar is used in every website to make it more user-friendly so that the navigation through the website becomes easy and the user can directly search for the topic ...
How to generate an XML file dynamically using PHP?
13 Apr, 2021 A file can be generated using PHP from the database, and it can be done by the static or dynamic method in PHP. Static methods can be called directly – without creating an instance of a class. Here we are going to discuss how to create an XML file dynamically. The first thing we need to do is fetch the da...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Apr, 2021" }, { "code": null, "e": 290, "s": 28, "text": "A file can be generated using PHP from the database, and it can be done by the static or dynamic method in PHP. Static methods can be called directly – without creating an ins...
Interchange elements of first and last rows in matrix - GeeksforGeeks
06 May, 2021 Given a 4 x 4 matrix, we have to interchange the elements of first and last row and show the resulting matrix.Examples : Input : 3 4 5 0 2 6 1 2 2 7 1 2 2 1 1 2 Output : 2 1 1 2 2 6 1 2 2 7 1 2 3 4 5 0 Input : 9 7 5 1 2 3 4 1 5 6 6 5 ...
[ { "code": null, "e": 24654, "s": 24626, "text": "\n06 May, 2021" }, { "code": null, "e": 24777, "s": 24654, "text": "Given a 4 x 4 matrix, we have to interchange the elements of first and last row and show the resulting matrix.Examples : " }, { "code": null, "e": 250...
Python calendar module | isleap() method - GeeksforGeeks
22 Oct, 2018 Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions. In Python, calendar.isleap() is a f...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n22 Oct, 2018" }, { "code": null, "e": 24173, "s": 23901, "text": "Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calenda...
How to read the data from a file in Java?
The read(byte[] b) method of the FileInputStream class reads up to the b.length from this file input stream to the array of bytes. The method blocks until some input is available. import java.io.File; import java.io.FileInputStream; public class Sample { public static void main(String args[]) throws Exception { ...
[ { "code": null, "e": 1242, "s": 1062, "text": "The read(byte[] b) method of the FileInputStream class reads up to the b.length from this file input stream to the array of bytes. The method blocks until some input is available." }, { "code": null, "e": 1711, "s": 1242, "text": "im...
Anomaly Detection in Time Series Sensor Data | by Bauyrjan Jyenis | Towards Data Science
Anomaly detection involves identifying the differences, deviations, and exceptions from the norm in a dataset. It’s sometimes referred to as outlier detection. Anomaly detection is not a new concept or technique, it has been around for a number of years and is a common application of Machine Learning. The real world ex...
[ { "code": null, "e": 332, "s": 172, "text": "Anomaly detection involves identifying the differences, deviations, and exceptions from the norm in a dataset. It’s sometimes referred to as outlier detection." }, { "code": null, "e": 661, "s": 332, "text": "Anomaly detection is not a...
Minimum Number of Refueling Stops in C++
Suppose there is a car, that travels from a starting position to a destination which is t miles east of the starting position. Now along the way, there are many gas stations. So each station[i] represents a gas station that is station[i][0] miles east of the starting position, and that station has station[i][1] liters ...
[ { "code": null, "e": 1189, "s": 1062, "text": "Suppose there is a car, that travels from a starting position to a destination which is t miles east of the starting position." }, { "code": null, "e": 1390, "s": 1189, "text": "Now along the way, there are many gas stations. So each...
Introduction to Trees
Tree is a discrete structure that represents hierarchical relationships between individual elements or nodes. A tree in which a parent has no more than two children is called a binary tree. Definition − A Tree is a connected acyclic undirected graph. There is a unique path between every pair of vertices in G. A tree wi...
[ { "code": null, "e": 2414, "s": 2224, "text": "Tree is a discrete structure that represents hierarchical relationships between individual elements or nodes. A tree in which a parent has no more than two children is called a binary tree." }, { "code": null, "e": 2774, "s": 2414, "...
Bootstrap 4 .border-danger class
Use the border-danger class to set a red border to an element. Set the border-danger class to an element as if we include any other class − <div class="new border border-danger"> Red Border </div> Above, we have also set another class “new”, to style the element − <style> .new { width: 120px; height: 120px; mar...
[ { "code": null, "e": 1125, "s": 1062, "text": "Use the border-danger class to set a red border to an element." }, { "code": null, "e": 1202, "s": 1125, "text": "Set the border-danger class to an element as if we include any other class −" }, { "code": null, "e": 1261,...
Connectivity in a directed graph
To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected. For the directed graph, we will start traversing from all nodes to check connectivity. Sometimes one edge can ha...
[ { "code": null, "e": 1270, "s": 1062, "text": "To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected." }, { "code": null, "e": 1488, ...
Find all collections in MongoDB with specific field?
Let us implement the above syntax in order to find all documents in MongoDB with field name “StudentFirstName”. The query is as follows − > db.getCollectionNames().forEach(function(myCollectionName) { ... var frequency = db[myCollectionName].find({"StudentFirstName": {$exists: true}}).count(); ... if (frequency >...
[ { "code": null, "e": 1200, "s": 1062, "text": "Let us implement the above syntax in order to find all documents in MongoDB with field name “StudentFirstName”. The query is as follows −" }, { "code": null, "e": 1440, "s": 1200, "text": "> db.getCollectionNames().forEach(function(m...
SIP - The Offer/Answer Model
The use of SDP with SIP is given in the SDP offer answer RFC 3264. The default message body type in SIP is application/sdp. The calling party lists the media capabilities that they are willing to receive in SDP, usually in either an INVITE or in an ACK. The calling party lists the media capabilities that they are willi...
[ { "code": null, "e": 1974, "s": 1850, "text": "The use of SDP with SIP is given in the SDP offer answer RFC 3264. The default message body type in SIP is application/sdp." }, { "code": null, "e": 2104, "s": 1974, "text": "The calling party lists the media capabilities that they a...
Java program to count the number of consonants in a given sentence
To count the number of consonants in a given sentence: Read a sentence from the user. Create a variable (count) initialize it with 0; Compare each character in the sentence with the characters {'a', 'e', 'i', 'o', 'u' } If match doesn't occurs increment the count. Finally print count. import java.util.Scanner; publ...
[ { "code": null, "e": 1117, "s": 1062, "text": "To count the number of consonants in a given sentence:" }, { "code": null, "e": 1149, "s": 1117, "text": " Read a sentence from the user." }, { "code": null, "e": 1198, "s": 1149, "text": " Create a variable (coun...
C++ Utility Library - swap Function
It exchanges the values of a and b. Following is the declaration for std::swap function. template <class T> void swap (T& a, T& b); template <class T> void swap (T& a, T& b) noexcept (is_nothrow_move_constructible<T>::value && is_nothrow_move_assignable<T>::value); a, b − These are two objects. none Basic guarantee ...
[ { "code": null, "e": 2639, "s": 2603, "text": "It exchanges the values of a and b." }, { "code": null, "e": 2692, "s": 2639, "text": "Following is the declaration for std::swap function." }, { "code": null, "e": 2735, "s": 2692, "text": "template <class T> voi...
How to convert a single char into an int in C++
The following is an example to convert a character into int. Live Demo #include <iostream> using namespace std; int main() { char c = '8'; int i = c - 48; cout << i; i = c - '0'; cout <<"\t" << i; return 0; } 8 8 In the above program, a character ‘c’ is initialized with a value. The character is conv...
[ { "code": null, "e": 1123, "s": 1062, "text": "The following is an example to convert a character into int." }, { "code": null, "e": 1134, "s": 1123, "text": " Live Demo" }, { "code": null, "e": 1290, "s": 1134, "text": "#include <iostream>\nusing namespace st...
Turning a Raspberry Pi 3B+ into a powerful object recognition edge server with Intel Movidius NCS2 | by Alexey Györi | Towards Data Science
In this part, we are going to use a readily compiled neural network in the Intel Neural Compute stick in order for it to be able to receive Base64 encoded images and turn them into bounding-box predictions. Additionally, an example for a front-end that sends camera input to the PI will be provided. Please make sure to ...
[ { "code": null, "e": 579, "s": 172, "text": "In this part, we are going to use a readily compiled neural network in the Intel Neural Compute stick in order for it to be able to receive Base64 encoded images and turn them into bounding-box predictions. Additionally, an example for a front-end that se...
The system() Function in Perl
You can use system() Perl function to execute any Unix command, whose output will go to the output of the perl script. By default, it is the screen, i.e., STDOUT, but you can redirect it to any file by using redirection operator > − #!/usr/bin/perl system( "ls -l") 1; When above code is executed, it lists down all the ...
[ { "code": null, "e": 1295, "s": 1062, "text": "You can use system() Perl function to execute any Unix command, whose output will go to the output of the perl script. By default, it is the screen, i.e., STDOUT, but you can redirect it to any file by using redirection operator > −" }, { "code"...
Convolutional Neural Networks for Beginners using Keras & TensorFlow 2 | by Jordi TORRES.AI | Towards Data Science
This is the updated version of a previous post introducing Convolutional Neural Networks that I wrote two years ago. In this post I update the Kera’s code that we use to explain the concepts. Since then, Keras has become TensorFlow’s high-level API for building and training deep learning models. I will use this update ...
[ { "code": null, "e": 519, "s": 172, "text": "This is the updated version of a previous post introducing Convolutional Neural Networks that I wrote two years ago. In this post I update the Kera’s code that we use to explain the concepts. Since then, Keras has become TensorFlow’s high-level API for bu...
How do I create a java.sql.Date object in Java?
The java.sql.Date represents the date value in JDBC. The constructor of this class accepts a long value representing the desired date and creates respective Date object. Date(long date) You can create this object using this constructor. Live Demo import java.text.ParseException; import java.text.SimpleDateFormat; publi...
[ { "code": null, "e": 1232, "s": 1062, "text": "The java.sql.Date represents the date value in JDBC. The constructor of this class accepts a long value representing the desired date and creates respective Date object." }, { "code": null, "e": 1248, "s": 1232, "text": "Date(long da...
Windows 10 Development - SQLite Database
In many applications, there are certain types of data, which have some sort of relationship to each other. These types of data, which are difficult to store in a file, can be stored in a database. If you are familiar with the types of databases, such as SQL server or Oracle databases in any application, then it is very...
[ { "code": null, "e": 2481, "s": 2284, "text": "In many applications, there are certain types of data, which have some sort of relationship to each other. These types of data, which are difficult to store in a file, can be stored in a database." }, { "code": null, "e": 2641, "s": 2481...
Python - Element wise Matrix Difference - GeeksforGeeks
25 Oct, 2021 Given two Matrixes, the task is to write a Python program to perform element-wise difference. Examples: Input : test_list1 = [[2, 4, 5], [5, 4, 2], [1, 2, 3]], test_list2 = [[6, 4, 6], [9, 6, 3], [7, 5, 4]] Output : [[4, 0, 1], [4, 2, 1], [6, 3, 1]] Explanation : 6 – 2 = 4, 4 – 4 = 0, 6 – 5 = 1. And so on....
[ { "code": null, "e": 25537, "s": 25509, "text": "\n25 Oct, 2021" }, { "code": null, "e": 25631, "s": 25537, "text": "Given two Matrixes, the task is to write a Python program to perform element-wise difference." }, { "code": null, "e": 25641, "s": 25631, "text...
Biopython - Sequence Alignment - GeeksforGeeks
11 Oct, 2020 Sequence alignment is a process in which two or more DNA, RNA or Protein sequences are arranged in order specifically to identify the region of similarity among them. Identification of similar provides a lot of information about what traits are conserved among species, how much close are different species ...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n11 Oct, 2020" }, { "code": null, "e": 25970, "s": 25555, "text": "Sequence alignment is a process in which two or more DNA, RNA or Protein sequences are arranged in order specifically to identify the region of similarity among th...
Iterative Quick Sort - GeeksforGeeks
06 Sep, 2021 Following is a typical recursive implementation of Quick Sort that uses last element as pivot. C++ Java Python3 C# PHP Javascript // CPP code for recursive function of Quicksort#include <bits/stdc++.h> using namespace std; // Function to swap numbersvoid swap(int* a, int* b){ int temp = *a; *a = *b...
[ { "code": null, "e": 35841, "s": 35813, "text": "\n06 Sep, 2021" }, { "code": null, "e": 35938, "s": 35841, "text": "Following is a typical recursive implementation of Quick Sort that uses last element as pivot. " }, { "code": null, "e": 35942, "s": 35938, "t...
Port scanner using 'python-nmap' - GeeksforGeeks
21 Apr, 2020 In this article, we will learn how to program a port scanner using the ‘nmap‘ module in Python. The program will take a range of port numbers as input and print the state (open or closed) of all the ports in that range. Nmap: Nmap is a free and open-source network scanning tool. To run the program discusse...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n21 Apr, 2020" }, { "code": null, "e": 25757, "s": 25537, "text": "In this article, we will learn how to program a port scanner using the ‘nmap‘ module in Python. The program will take a range of port numbers as input and print th...
Count of equal value pairs from given two Arrays such that a[i] equals b[j] - GeeksforGeeks
13 Dec, 2021 Given two arrays a[] and b[] of length N and M respectively, sorted in non-decreasing order. The task is to find the number of pairs (i, j) such that, a[i] equals b[j]. Examples: Input: a[] = {1, 1, 3, 3, 3, 5, 8, 8}, b[] = {1, 3, 3, 4, 5, 5, 5}Output: 11Explanation: Following are the 11 pairs with given c...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n13 Dec, 2021" }, { "code": null, "e": 26210, "s": 26041, "text": "Given two arrays a[] and b[] of length N and M respectively, sorted in non-decreasing order. The task is to find the number of pairs (i, j) such that, a[i] equals ...
Selecting only numeric or string columns names from PySpark DataFrame - GeeksforGeeks
30 Apr, 2021 In this article, we will discuss how to select only numeric or string column names from a Spark DataFrame. createDataFrame: This method is used to create a spark DataFrame. isinstance: This is a Python function used to check if the specified object is of the specified type. dtypes: It returns a list of tup...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n30 Apr, 2021" }, { "code": null, "e": 25644, "s": 25537, "text": "In this article, we will discuss how to select only numeric or string column names from a Spark DataFrame." }, { "code": null, "e": 25710, "s": 256...
JavaScript | padStart() Method - GeeksforGeeks
07 Nov, 2019 The padStart() method in JavaScript is used to pad a string with another string until it reaches the given length. The padding is applied from the left end of the string. Syntax: string.padStart(targetLength, padString) Parameters: This method accepts two parameters as mentioned above and described below: ...
[ { "code": null, "e": 26131, "s": 26103, "text": "\n07 Nov, 2019" }, { "code": null, "e": 26302, "s": 26131, "text": "The padStart() method in JavaScript is used to pad a string with another string until it reaches the given length. The padding is applied from the left end of the ...
Sum of all the factors of a number - 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...
Python - Convert Lists to Nested Dictionary - GeeksforGeeks
14 May, 2020 Sometimes, while working with Python dictionaries, we can have a problem in which we need to convert list to nestings, i.e each list values representing new nested level. This kind of problem can have application in many domains including web development. Lets discuss certain way in which this task can be ...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n14 May, 2020" }, { "code": null, "e": 25907, "s": 25589, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to convert list to nestings, i.e each list values representing new nested...
Print all perfect squares from the given range - GeeksforGeeks
08 Apr, 2021 Given a range [L, R], the task is to print all the perfect squares from the given range.Examples: Input: L = 2, R = 24 Output: 4 9 16Input: L = 1, R = 100 Output: 1 4 9 16 25 36 49 64 81 100 Naive approach: Starting from L to R check whether the current element is a perfect square or not. If yes then...
[ { "code": null, "e": 26524, "s": 26496, "text": "\n08 Apr, 2021" }, { "code": null, "e": 26624, "s": 26524, "text": "Given a range [L, R], the task is to print all the perfect squares from the given range.Examples: " }, { "code": null, "e": 26719, "s": 26624, ...
What is NULL ? Give an example to illustrate testing for NULL in SQL. What is dangling tuple problem ? - GeeksforGeeks
03 Nov, 2021 What is NULL ?In Structured Query Language Null Or NULL is a special type of marker which is used to tell us about that a data value does not present in the database. In Structured Query Language (SQL) Null is a predefined word which is used to identity this marker. It is very important to understand that ...
[ { "code": null, "e": 25575, "s": 25547, "text": "\n03 Nov, 2021" }, { "code": null, "e": 25935, "s": 25575, "text": "What is NULL ?In Structured Query Language Null Or NULL is a special type of marker which is used to tell us about that a data value does not present in the databa...
Java Program to Print the ASCII Value - GeeksforGeeks
28 Dec, 2021 ASCII is an acronym that stands for American Standard Code for Information Interchange. In ASCII, a specific numerical value is given to different characters and symbols, for computers to store and manipulate, and while storing and manipulating the electronic device always works with the binary value of th...
[ { "code": null, "e": 25250, "s": 25222, "text": "\n28 Dec, 2021" }, { "code": null, "e": 25632, "s": 25250, "text": "ASCII is an acronym that stands for American Standard Code for Information Interchange. In ASCII, a specific numerical value is given to different characters and s...
ListWheelScrollView Widget in Flutter - GeeksforGeeks
14 Feb, 2022 ListWheelScrollView is a flutter widget that is used to build ListView with 3D-effect. We can also use ListView to create a list of items but we can’t add a 3D effect to it plus it also comes with a constrain that all the children inside this widget must be of the same size along the strolling axis. Flutte...
[ { "code": null, "e": 25197, "s": 25169, "text": "\n14 Feb, 2022" }, { "code": null, "e": 25782, "s": 25197, "text": "ListWheelScrollView is a flutter widget that is used to build ListView with 3D-effect. We can also use ListView to create a list of items but we can’t add a 3D eff...
DateTime.GetTypeCode() Method in C# - GeeksforGeeks
05 Feb, 2019 This method is used to return the TypeCode for value type DateTime. Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant, DateTime. Below programs illustrate the use of DateTime.GetTypeCode() Method Example 1: // C# program to demonstrate the// DateTime.GetTypeC...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n05 Feb, 2019" }, { "code": null, "e": 23979, "s": 23911, "text": "This method is used to return the TypeCode for value type DateTime." }, { "code": null, "e": 24019, "s": 23979, "text": "Syntax: public TypeCod...
How to align button to right side of text box in Bootstrap? - GeeksforGeeks
18 Aug, 2021 Bootstrap allows us to align elements by using the utility class float. As we want to align the button to the right side of the text box, we have to use the float-right class. Syntax: <button class="btn btn-success btn-lg float-right" type="submit">Submit</button> Example: html <!DOCTYPE html><html> <h...
[ { "code": null, "e": 24239, "s": 24211, "text": "\n18 Aug, 2021" }, { "code": null, "e": 24425, "s": 24239, "text": "Bootstrap allows us to align elements by using the utility class float. As we want to align the button to the right side of the text box, we have to use the float-...
Java program to check for URL in a String
A program can be created to check if a string is a correct URL or not. An example of an URL is given as follows − String = https://www.wikipedia.org/ The above string is a valid URL A program that demonstrates this is given as follows. Live Demo import java.net.URL; public class Example { public static boolean chec...
[ { "code": null, "e": 1176, "s": 1062, "text": "A program can be created to check if a string is a correct URL or not. An example of an URL is given as follows −" }, { "code": null, "e": 1244, "s": 1176, "text": "String = https://www.wikipedia.org/\nThe above string is a valid URL...
Generating Modern Art using Generative Adversarial Network(GAN) on Spell | by Anish Shrestha | Towards Data Science
You need to have a good understanding of: Image processingPython Programming LanguageNumpy — Scientific Computing LibraryKeras — Deep Learning Library Image processing Python Programming Language Numpy — Scientific Computing Library Keras — Deep Learning Library And some basic knowledge of: Generative Adversarial Netwo...
[ { "code": null, "e": 214, "s": 172, "text": "You need to have a good understanding of:" }, { "code": null, "e": 323, "s": 214, "text": "Image processingPython Programming LanguageNumpy — Scientific Computing LibraryKeras — Deep Learning Library" }, { "code": null, "e"...
io.popen() function in Lua Programming
Sometimes we want to execute the system's command and then make use of whatever was returned by them, and in order to do that we simply can either make use of the os.execute() function or io.popen() function. The difference between the os.execute() function and the io.popen() function is that the output value of the os...
[ { "code": null, "e": 1271, "s": 1062, "text": "Sometimes we want to execute the system's command and then make use of whatever was returned by them, and in order to do that we simply can either make use of the os.execute() function or io.popen() function." }, { "code": null, "e": 1569, ...
Hierarchical Linear Modeling: A Step by Step Guide | by Kay Chansiri | Towards Data Science
In most cases, data tends to be clustered. Hierarchical Linear Modeling (HLM) enables you to explore and understand your data and decreases Type I error rates. This tutorial uses R to demonstrate the basic steps of HLM in social science research. Before beginning the analysis, let’s briefly talk about what is HLM first...
[ { "code": null, "e": 418, "s": 171, "text": "In most cases, data tends to be clustered. Hierarchical Linear Modeling (HLM) enables you to explore and understand your data and decreases Type I error rates. This tutorial uses R to demonstrate the basic steps of HLM in social science research." }, ...
jQuery Effects - Sliding
The jQuery slide methods slide elements up and down. Click to slide down/up the panel Because time is valuable, we deliver quick and easy learning. At W3Schools, you can study everything you need to learn, in an accessible and handy format. jQuery slideDown() Demonstrates the jQuery slideDown() method. jQuery slideUp()...
[ { "code": null, "e": 53, "s": 0, "text": "The jQuery slide methods slide elements up and down." }, { "code": null, "e": 86, "s": 53, "text": "Click to slide down/up the panel" }, { "code": null, "e": 148, "s": 86, "text": "Because time is valuable, we deliver ...
How to build your own dataset for Data Science projects | by Rashi Desai | Towards Data Science
When we talk about Data Science, the thing that precedes is data. When I started my Data Science journey, it was the Chicago Crime Dataset or Wine Quality or Walmart sales — the common project datasets that I could get my hands on. Next, when I did IBM Data Science Professional Certification, I learned about APIs and a...
[ { "code": null, "e": 238, "s": 172, "text": "When we talk about Data Science, the thing that precedes is data." }, { "code": null, "e": 547, "s": 238, "text": "When I started my Data Science journey, it was the Chicago Crime Dataset or Wine Quality or Walmart sales — the common p...
Merge objects in array with similar key JavaScript
Let’s say, we have the following array of objects − const arr = [ {id: 1, h1: 'Daily tests'}, {id: 2, h1: 'Details'}, {id: 1, h2: 'Daily classes'}, {id: 3, h2: 'Results'}, {id: 2, h3: 'Admissions'}, {id: 1, h4: 'Students'}, {id: 2, h5: 'Alumni'}, {id: 3, h3: 'Appreciations'}, {id: 1, h5: 'Tin...
[ { "code": null, "e": 1114, "s": 1062, "text": "Let’s say, we have the following array of objects −" }, { "code": null, "e": 1421, "s": 1114, "text": "const arr = [\n {id: 1, h1: 'Daily tests'},\n {id: 2, h1: 'Details'},\n {id: 1, h2: 'Daily classes'},\n {id: 3, h2: 'Resul...
CodeIgniter - Quick Guide
CodeIgniter is an application development framework, which can be used to develop websites, using PHP. It is an Open Source framework. It has a very rich set of functionality, which will increase the speed of website development work. If you know PHP well, then CodeIgniter will make your task easier. It has a very rich...
[ { "code": null, "e": 2554, "s": 2319, "text": "CodeIgniter is an application development framework, which can be used to develop websites, using PHP. It is an Open Source framework. It has a very rich set of functionality, which will increase the speed of website development work." }, { "cod...
Shuffling Rows in Pandas DataFrames | by Giorgos Myrianthous | Towards Data Science
Data shuffling is a common task usually performed prior to model training in order to create more representative training and testing sets. For instance, consider that your original dataset is sorted based on a specific column. If you split the data then the resulting sets won’t represent the true distribution of the d...
[ { "code": null, "e": 400, "s": 172, "text": "Data shuffling is a common task usually performed prior to model training in order to create more representative training and testing sets. For instance, consider that your original dataset is sorted based on a specific column." }, { "code": null,...
JavaScript | Events
10 Feb, 2022 Javascript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model(DOM). These events by default use bubbling propagation i.e, upwards in the DOM from children to parent. We can bind events either as inline or in an external script. These are...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Feb, 2022" }, { "code": null, "e": 519, "s": 54, "text": "Javascript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model(DOM). These events by default use bubbling...
Field getInt() method in Java with Examples
26 Aug, 2019 The getInt() method of java.lang.reflect.Field used to get the value of int which has to be static or instance field type. This method also used to get the value of another primitive type convertible to type int via a widening conversion. When a class contains a static or instance int field and we want to ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Aug, 2019" }, { "code": null, "e": 421, "s": 28, "text": "The getInt() method of java.lang.reflect.Field used to get the value of int which has to be static or instance field type. This method also used to get the value of another pr...
How to make a HTML div responsive using CSS ?
30 Sep, 2020 The CSS Media Query can be used to make an HTML “div” responsive. The media queries allow the users to change or customize the web pages for many devices like desktops, mobile phones, tablets, etc without changing the markups. Using the media query, the user can change the style of a particular element for...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Sep, 2020" }, { "code": null, "e": 387, "s": 52, "text": "The CSS Media Query can be used to make an HTML “div” responsive. The media queries allow the users to change or customize the web pages for many devices like desktops, mobil...
C++ String Library - find
It searches the string for the first occurrence of the sequence specified by its arguments. Following is the declaration for std::string::find. size_t find (const string& str, size_t pos = 0) const; size_t find (const string& str, size_t pos = 0) const noexcept; size_t find (const string& str, size_t pos = 0) const noe...
[ { "code": null, "e": 2695, "s": 2603, "text": "It searches the string for the first occurrence of the sequence specified by its arguments." }, { "code": null, "e": 2747, "s": 2695, "text": "Following is the declaration for std::string::find." }, { "code": null, "e": 2...
Monitoring and Retraining Your Machine Learning Models | by Felipe de Pontes Adachi | Towards Data Science
Like everything in life, machine learning models go stale. In a world of ever-changing, non-stationary data, everyone needs to go back to school and recycle itself once in a while, and your model is no different. Well, we know that retraining our model is important, but when exactly should we do it? If we do it too fre...
[ { "code": null, "e": 384, "s": 171, "text": "Like everything in life, machine learning models go stale. In a world of ever-changing, non-stationary data, everyone needs to go back to school and recycle itself once in a while, and your model is no different." }, { "code": null, "e": 753, ...
XPath For Python | The RegEx of Web | Towards Data Science
XML path language (XPath) is a massively underappreciated tool in the world of web scraping and automation. Imagine RegEx, but for webpages — that is XPath. Every element of a webpage is organized by the Document Object Model (DOM). The DOM is a tree-like structure, where each element represents a node, with paths to p...
[ { "code": null, "e": 329, "s": 172, "text": "XML path language (XPath) is a massively underappreciated tool in the world of web scraping and automation. Imagine RegEx, but for webpages — that is XPath." }, { "code": null, "e": 515, "s": 329, "text": "Every element of a webpage is...