title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Python Program for compound interest
16 Jun, 2022 Let us prior discuss the formula for compound interest. The formula to calculate compound interest annually is given by: A = P(1 + R/100) t Compound Interest = A - P Where, A is amount P is the principal amount R is the rate and T is the time span Example: Input : Principle (amount): 1200 Time...
[ { "code": null, "e": 57, "s": 26, "text": " \n16 Jun, 2022\n" }, { "code": null, "e": 179, "s": 57, "text": "Let us prior discuss the formula for compound interest. The formula to calculate compound interest annually is given by: " }, { "code": null, "e": 226, "s"...
Python | Finding frequency in list of tuples
28 Feb, 2019 In python we need to handle various forms of data and one among them is list of tuples in which we may have to perform any kind of operation. This particular article discusses the ways of finding the frequency of the 1st element in list of tuple which can be extended to any index. Let’s discuss certain way...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2019" }, { "code": null, "e": 369, "s": 28, "text": "In python we need to handle various forms of data and one among them is list of tuples in which we may have to perform any kind of operation. This particular article discusses...
MongoDB – Increment Operator ( $inc )
19 Apr, 2020 MongoDB provides different types of field update operators to update the values of the fields of the documents and $inc operator is one of them. This operator is used to increase the values of the fields to the specified amount or to increase the field by the given value. You can also use this operator in ...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Apr, 2020" }, { "code": null, "e": 327, "s": 54, "text": "MongoDB provides different types of field update operators to update the values of the fields of the documents and $inc operator is one of them. This operator is used to incr...
Iterate through List in Java
08 Feb, 2022 Lists in java allow us to maintain an ordered collection of objects. Duplicate elements as well as null elements can also be stored in a List in Java. The List interface is a part of java.util package and it inherits the Collection interface. It preserves the order of insertion. There are several ways to i...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Feb, 2022" }, { "code": null, "e": 308, "s": 28, "text": "Lists in java allow us to maintain an ordered collection of objects. Duplicate elements as well as null elements can also be stored in a List in Java. The List interface is a ...
Difference between Static and Dynamic Hazard
04 May, 2020 1. Static Hazard :Static hazard occur in combinational circuits and can be eliminated by using redundant gates. Static hazard is further classified as: 1. Static-1 hazard 2. Static-0 hazard 2. Dynamic hazard :When the output changes several times then it should change from 1 to 0 or 0 to 1 only once, it i...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 May, 2020" }, { "code": null, "e": 180, "s": 28, "text": "1. Static Hazard :Static hazard occur in combinational circuits and can be eliminated by using redundant gates. Static hazard is further classified as:" }, { "code": n...
SQL | Views
09 Jun, 2022 Views in SQL are kind of virtual tables. A view also has rows and columns as they are in a real table in the database. We can create a view by selecting fields from one or more tables present in the database. A View can either have all the rows of a table or specific rows based on certain condition. In thi...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Jun, 2022" }, { "code": null, "e": 353, "s": 52, "text": "Views in SQL are kind of virtual tables. A view also has rows and columns as they are in a real table in the database. We can create a view by selecting fields from one or mo...
Find k-cores of an undirected graph
30 Jun, 2022 Given a graph G and an integer K, K-cores of the graph are connected components that are left after all vertices of degree less than k have been removed (Source wiki) Example: Input : Adjacency list representation of graph shown on left side of below diagram Output: K-Cores : [2] -> 3 -> 4 -> 6 [...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 219, "s": 52, "text": "Given a graph G and an integer K, K-cores of the graph are connected components that are left after all vertices of degree less than k have been removed (Source wiki)" }, ...
Hardware Synchronization Algorithms : Unlock and Lock, Test and Set, Swap
25 Aug, 2021 Process Synchronization problems occur when two processes running concurrently share the same data or same variable. The value of that variable may not be updated correctly before its being used by a second process. Such a condition is known as Race Around Condition. There are software as well as hardware ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Aug, 2021" }, { "code": null, "e": 520, "s": 52, "text": "Process Synchronization problems occur when two processes running concurrently share the same data or same variable. The value of that variable may not be updated correctly b...
Mathematics | Conditional Probability
28 Jun, 2021 Conditional probability P(A | B) indicates the probability of event ‘A’ happening given that event B happened. We can easily understand the above formula using the below diagram. Since B has already happened, the sample space reduces to B. So the probability of A happening becomes divided by P(B) Ex...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 163, "s": 52, "text": "Conditional probability P(A | B) indicates the probability of event ‘A’ happening given that event B happened." }, { "code": null, "e": 357, "s": 169, "te...
Python | Permutation of a given string using inbuilt function
03 Aug, 2020 A permutation, also called an “arrangement number” or “order”, is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation. Examples: Input : str = 'ABC' Output : ABC ACB BAC BCA CAB...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Aug, 2020" }, { "code": null, "e": 260, "s": 52, "text": "A permutation, also called an “arrangement number” or “order”, is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A strin...
DateTime.CompareTo() Method in C#
The DateTime.CompareTo() method in C# is used to compare the value of this instance to a specified DateTime value. Following is the syntax − public int CompareTo (DateTime val); Above, Val is the date to be compared. It returns an integer value, <0 − If this instance is earlier than Val 0 − If this instance is the same...
[ { "code": null, "e": 1177, "s": 1062, "text": "The DateTime.CompareTo() method in C# is used to compare the value of this instance to a specified DateTime value." }, { "code": null, "e": 1203, "s": 1177, "text": "Following is the syntax −" }, { "code": null, "e": 1240...
How to position horizontal scroll bar at center of DIV?
To position horizontal scroll bar at center of div, use the scrollleft. You can try to run the following code to position horizontal scroll bar in div. The scroll bar is positioned at center of div: Live Demo <html> <head> <title>jQuery Scroll</title> <script src = "https://ajax.googleapis.com/ajax/l...
[ { "code": null, "e": 1214, "s": 1062, "text": "To position horizontal scroll bar at center of div, use the scrollleft. You can try to run the following code to position horizontal scroll bar in div." }, { "code": null, "e": 1261, "s": 1214, "text": "The scroll bar is positioned a...
Latent Semantic Analysis: intuition, math, implementation | by Ioana | Towards Data Science
TL;DR — Text data suffers heavily from high-dimensionality. Latent Semantic Analysis (LSA) is a popular, dimensionality-reduction techniques that follows the same method as Singular Value Decomposition. LSA ultimately reformulates text data in terms of r latent (i.e. hidden) features, where r is less than m, the number...
[ { "code": null, "e": 650, "s": 172, "text": "TL;DR — Text data suffers heavily from high-dimensionality. Latent Semantic Analysis (LSA) is a popular, dimensionality-reduction techniques that follows the same method as Singular Value Decomposition. LSA ultimately reformulates text data in terms of r ...
How to check if a variable is an integer in JavaScript?
To check if a variable is an integer, check the value using parseInt() and check with === operator. You can try to run the following code to check the existence of an integer − Live Demo <html> <head> <script> var a = 10; if (a === parseInt(a, 10)) alert("Integer!") else ...
[ { "code": null, "e": 1162, "s": 1062, "text": "To check if a variable is an integer, check the value using parseInt() and check with === operator." }, { "code": null, "e": 1239, "s": 1162, "text": "You can try to run the following code to check the existence of an integer −" },...
Java - Thread Deadlock
Deadlock describes a situation where two or more threads are blocked forever, waiting for each other. Deadlock occurs when multiple threads need the same locks but obtain them in different order. A Java multithreaded program may suffer from the deadlock condition because the synchronized keyword causes the executing th...
[ { "code": null, "e": 2809, "s": 2377, "text": "Deadlock describes a situation where two or more threads are blocked forever, waiting for each other. Deadlock occurs when multiple threads need the same locks but obtain them in different order. A Java multithreaded program may suffer from the deadlock...
cmp - Unix, Linux Command
cmp - Compare two files, and if they differ, tells the first byte and line number where they differ. cmp options... FromFile [ToFile] 'cmp' reports the differences between two files character by character, instead of line by line. As a result, it is more useful than 'diff' for comparing binary files. For text files, 'c...
[ { "code": null, "e": 10678, "s": 10577, "text": "cmp - Compare two files, and if they differ, tells the first byte and line number where they differ." }, { "code": null, "e": 10711, "s": 10678, "text": "cmp options... FromFile [ToFile]" }, { "code": null, "e": 11386, ...
Apache Commons Collections - Union
CollectionUtils class of Apache Commons Collections library provides various utility methods for common operations covering wide range of use cases. It helps avoid writing boilerplate code. This library is very useful prior to jdk 8 as similar functionalities are now provided in Java 8's Stream API. union() method of C...
[ { "code": null, "e": 2501, "s": 2200, "text": "CollectionUtils class of Apache Commons Collections library provides various utility methods for common operations covering wide range of use cases. It helps avoid writing boilerplate code. This library is very useful prior to jdk 8 as similar functiona...
SAP HANA - SQL Explain Plans
SQL explain plans are used to generate detail explanation of SQL statements. They are used to evaluate execution plan that SAP HANA database follows to execute the SQL statements. The results of explain plan are stored into EXPLAIN_PLAN_TABLE for evaluation. To use Explain Plan, passed SQL query must be a data manipula...
[ { "code": null, "e": 3287, "s": 3107, "text": "SQL explain plans are used to generate detail explanation of SQL statements. They are used to evaluate execution plan that SAP HANA database follows to execute the SQL statements." }, { "code": null, "e": 3448, "s": 3287, "text": "Th...
Facial expression detection using Deepface module in Python - GeeksforGeeks
28 Jul, 2021 In this article, we are going to detect the facial expression of an already existing image using OpenCV, Deepface, and matplotlib modules in python. OpenCV: OpenCV is an open-source library in python which is used for computer vision, machine learning, and image processing. Matplotlib: Matplotlib is a com...
[ { "code": null, "e": 24001, "s": 23970, "text": " \n28 Jul, 2021\n" }, { "code": null, "e": 24150, "s": 24001, "text": "In this article, we are going to detect the facial expression of an already existing image using OpenCV, Deepface, and matplotlib modules in python." }, { ...
Bootstrap Panels
A panel in bootstrap is a bordered box with some padding around its content: Panels are created with the .panel class, and content inside the panel has a .panel-body class: The .panel-default class is used to style the color of the panel. See the last example on this page for more contextual classes. The .panel-headi...
[ { "code": null, "e": 77, "s": 0, "text": "A panel in bootstrap is a bordered box with some padding around its content:" }, { "code": null, "e": 174, "s": 77, "text": "Panels are created with the .panel class, and content inside the panel has a \n.panel-body class:" }, { "...
How to create a multilevel listView using Kotlin?
This example demonstrates how to create a multilevel listView using Kotlin Android. Step 1 − Create a new project in Android Studio, go to File ⇉ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <Ex...
[ { "code": null, "e": 1146, "s": 1062, "text": "This example demonstrates how to create a multilevel listView using Kotlin Android." }, { "code": null, "e": 1275, "s": 1146, "text": "Step 1 − Create a new project in Android Studio, go to File ⇉ New Project and fill all required de...
How to clone an array using spread operator in JavaScript?
Cloning is nothing but copying an array into another array. In olden days, the slice() method is used to clone an array, but ES6 has provided spread operator(...) to make our task easy. Lets' discuss both the methods. In the following example slice() method is used to copy the array. slice() is used to slice the array ...
[ { "code": null, "e": 1280, "s": 1062, "text": "Cloning is nothing but copying an array into another array. In olden days, the slice() method is used to clone an array, but ES6 has provided spread operator(...) to make our task easy. Lets' discuss both the methods." }, { "code": null, "e"...
Create array from JSON object JavaScript
Suppose, we have the following JSON object − const obj = { "test1": [{ "1": { "rssi": -25, } }, { "2": { "rssi": -25, } }], "test2": [{ "15": { "rssi": -10, } }, { "19": { "rssi": -21, } }] }; We are required to write a Java...
[ { "code": null, "e": 1107, "s": 1062, "text": "Suppose, we have the following JSON object −" }, { "code": null, "e": 1351, "s": 1107, "text": "const obj = {\n \"test1\": [{\n \"1\": {\n \"rssi\": -25,\n }\n }, {\n \"2\": {\n \"rssi\": -25,\n }\n ...
Python SQLite - Delete Data
To delete records from a SQLite table, you need to use the DELETE FROM statement. To remove specific records, you need to use WHERE clause along with it. To update specific rows, you need to use the WHERE clause along with it. Following is the syntax of the DELETE query in SQLite − DELETE FROM table_name [WHERE Clause]...
[ { "code": null, "e": 3359, "s": 3205, "text": "To delete records from a SQLite table, you need to use the DELETE FROM statement. To remove specific records, you need to use WHERE clause along with it." }, { "code": null, "e": 3432, "s": 3359, "text": "To update specific rows, you...
ReactJS UI Ant Design Drawer Component - GeeksforGeeks
01 Jun, 2021 Ant Design Library has this component pre-built, and it is very easy to integrate as well. The Drawer component is a panel that slides in from the edge of the screen. We can use the following approach in ReactJS to use the Ant Design Drawer Component. Drawer Props: afterVisibleChange: It is a callback func...
[ { "code": null, "e": 33847, "s": 33819, "text": "\n01 Jun, 2021" }, { "code": null, "e": 34099, "s": 33847, "text": "Ant Design Library has this component pre-built, and it is very easy to integrate as well. The Drawer component is a panel that slides in from the edge of the scre...
Convert Docx to Pdf using docx2pdf Module in Python - GeeksforGeeks
03 Aug, 2021 Tired of having to use online docx to PDF converters with crappy interfaces and conversion limits? Then, look no further than your friendly neighborhood language python’s docx2pdf module. This module is a hidden gem among the many modules for the python language. This module can be used to convert files si...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n03 Aug, 2021" }, { "code": null, "e": 24556, "s": 24292, "text": "Tired of having to use online docx to PDF converters with crappy interfaces and conversion limits? Then, look no further than your friendly neighborhood language p...
Java Program for GCD of more than two (or array) numbers
Following is the Java program for GCD of more than two numbers − Live Demo public class Demo{ static int gcd_of_nums(int val_1, int val_2){ if (val_1 == 0) return val_2; return gcd_of_nums(val_2 % val_1, val_1); } static int find_gcd(int arr[], int no){ int result = arr[0]; for (...
[ { "code": null, "e": 1127, "s": 1062, "text": "Following is the Java program for GCD of more than two numbers −" }, { "code": null, "e": 1138, "s": 1127, "text": " Live Demo" }, { "code": null, "e": 1795, "s": 1138, "text": "public class Demo{\n static int g...
Kotlin Output (Print Text)
The println() function is used to output values/print text: fun main() { println("Hello World") } You can add as many println() functions as you want. Note that it will add a new line for each function: fun main() { println("Hello World!") println("I am learning Kotlin.") println("It is awesome!") } You can als...
[ { "code": null, "e": 60, "s": 0, "text": "The println() function is used to output values/print text:" }, { "code": null, "e": 100, "s": 60, "text": "fun main() {\n println(\"Hello World\")\n}" }, { "code": null, "e": 205, "s": 100, "text": "You can add as ma...
Creating Charts in Google Slides with Python | by Mikey Gracie | Towards Data Science
A common gap data scientists run up against is how to programmatically create simple, elegantly formatted and company-branded visualizations in a slide deck. Leveraging Google APIs and the package gslides you can easily create charts and tables in Google Slides that will impress your audience, all with Python! Whether ...
[ { "code": null, "e": 205, "s": 47, "text": "A common gap data scientists run up against is how to programmatically create simple, elegantly formatted and company-branded visualizations in a slide deck." }, { "code": null, "e": 359, "s": 205, "text": "Leveraging Google APIs and th...
MySQL query to select the values having multiple occurrence and display their count
For this, use GROUP BY HAVING clause. Let us first create a table − mysql> create table DemoTable673( Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, Value int ); Query OK, 0 rows affected (0.59 sec) Insert some records in the table using insert command − mysql> insert into DemoTable673(Value) values(10); Query OK, 1...
[ { "code": null, "e": 1130, "s": 1062, "text": "For this, use GROUP BY HAVING clause. Let us first create a table −" }, { "code": null, "e": 1264, "s": 1130, "text": "mysql> create table DemoTable673(\n Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n Value int\n);\nQuery OK, 0 r...
How to request Location Permission at runtime on Kotlin?
This example demonstrates how to request Location Permission at runtime on 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="utf-8"?> <Rela...
[ { "code": null, "e": 1145, "s": 1062, "text": "This example demonstrates how to request Location Permission at runtime on Kotlin." }, { "code": null, "e": 1273, "s": 1145, "text": "Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required deta...
5 Must-Know SQL Functions For Manipulating Dates | by Soner Yıldırım | Towards Data Science
If you had asked about the most important skill for a data scientist before I got my first job, my answer would certainly be Python. No doubt! I work as a data scientist now and if you ask me the same question, my answer is still Python. However, I have second thoughts. What makes me think twice is SQL. SQL is a must-h...
[ { "code": null, "e": 315, "s": 172, "text": "If you had asked about the most important skill for a data scientist before I got my first job, my answer would certainly be Python. No doubt!" }, { "code": null, "e": 477, "s": 315, "text": "I work as a data scientist now and if you a...
Python – Ways to find Geometric Mean in List
30 Jan, 2020 While working with Python, we can have a problem in which we need to find geometric mean of a list cumulative. This problem is common in Data Science domain. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using loop + formulaThe simpler manner to approach this problem is to emp...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 250, "s": 28, "text": "While working with Python, we can have a problem in which we need to find geometric mean of a list cumulative. This problem is common in Data Science domain. Let’s discuss cer...
Create Dataframe of Unequal Length in R
16 May, 2021 In this article, we will be looking at the approach to create a data frame of unequal length using different functions in R Programming language. To create a data frame of unequal length, we add the NA value at the end of the columns which are smaller in the lengths and makes them equal to the column which...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2021" }, { "code": null, "e": 174, "s": 28, "text": "In this article, we will be looking at the approach to create a data frame of unequal length using different functions in R Programming language." }, { "code": null, ...
How to replace missing values recorded with blank spaces in R with NA or any other value?
Sometimes when we read data in R, the missing values are recorded as blank spaces and it is difficult to replace them with any value. The reason behind this is we need to know how many spaces we have used in place of missing values. If we know that then assigning any value becomes easy. Consider the below data frame of...
[ { "code": null, "e": 1475, "s": 1187, "text": "Sometimes when we read data in R, the missing values are recorded as blank spaces and it is difficult to replace them with any value. The reason behind this is we need to know how many spaces we have used in place of missing values. If we know that then...
TreeMap firstEntry() and firstKey() Method in Java with Examples
20 Nov, 2021 There are two variants of first() in Java.util.TreeMap, both are discussed in this article. It returns a key-value mapping associated with the least key in this map, or null if the map is empty. Syntax: public Map.Entry firstEntry() Return Type: An entry with the least key and null if the map is empty. E...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Nov, 2021" }, { "code": null, "e": 120, "s": 28, "text": "There are two variants of first() in Java.util.TreeMap, both are discussed in this article." }, { "code": null, "e": 224, "s": 120, "text": "It returns a k...
Python | Pandas DataFrame.truncate
21 Feb, 2019 Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). Arithmetic operations align on both row and column labels. It can be thought of as a dict-like container for Series objects. This is the primary data structure of the P...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Feb, 2019" }, { "code": null, "e": 366, "s": 52, "text": "Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). Arithmetic operations align on both...
RxJava - Completable Observable
The Completable class represents deferred response. Completable observable can either indicate a successful completion or error. Following is the declaration for io.reactivex.Completable class − public abstract class Completable extends Object implements CompletableSource Following is the sequential protocol that Comp...
[ { "code": null, "e": 2664, "s": 2535, "text": "The Completable class represents deferred response. Completable observable can either indicate a successful completion or error." }, { "code": null, "e": 2730, "s": 2664, "text": "Following is the declaration for io.reactivex.Complet...
MYSQLdb Connection in Python
23 Nov, 2021 In this article, I have discussed how to connect to MySQL database remotely using python. For any application, it is very important to store the database on a server for easy data access. It is quite complicated to connect to the database remotely because every service provider doesn’t provide remote acces...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Nov, 2021" }, { "code": null, "e": 510, "s": 54, "text": "In this article, I have discussed how to connect to MySQL database remotely using python. For any application, it is very important to store the database on a server for easy...
Program for Shortest Job First (or SJF) CPU Scheduling | Set 1 (Non- preemptive)
26 May, 2022 The shortest job first (SJF) or shortest job next, is a scheduling policy that selects the waiting process with the smallest execution time to execute next. SJN, also known as Shortest Job Next (SJN), can be preemptive or non-preemptive. Characteristics of SJF Scheduling: Shortest Job first has the advan...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 May, 2022" }, { "code": null, "e": 292, "s": 52, "text": "The shortest job first (SJF) or shortest job next, is a scheduling policy that selects the waiting process with the smallest execution time to execute next. SJN, also known a...
BigInteger divide() Method in Java with Examples
07 Jun, 2019 The java.math.BigInteger.divide(BigInteger val) is used to calculate the division of two BigIntegers. BigInteger class internally uses array of integers for processing, the operation on object of BigIntegers are not as fast as on primitives. This method performs an operation upon the current BigInteger by ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jun, 2019" }, { "code": null, "e": 403, "s": 28, "text": "The java.math.BigInteger.divide(BigInteger val) is used to calculate the division of two BigIntegers. BigInteger class internally uses array of integers for processing, the op...
How to submit form on pressing Enter with Angular 9?
05 Nov, 2020 To submit a form in angular we have the following options: Create a button to submit the form.Assign a key to submit the formOr we can do both. Create a button to submit the form. Assign a key to submit the form Or we can do both. In this tutorial, we will see how to use a specific key(Enter in this case) ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Nov, 2020" }, { "code": null, "e": 87, "s": 28, "text": "To submit a form in angular we have the following options:" }, { "code": null, "e": 172, "s": 87, "text": "Create a button to submit the form.Assign a key t...
PHP | array_sum() Function
09 Mar, 2018 The array_sum() function returns the sum of all the values in an array(one dimensional and associative). It takes an array parameter and returns the sum of all the values in it. number array_sum ( $array ) ArgumentThe only argument to the function is the array whose sum needs to be calculated. Return valu...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Mar, 2018" }, { "code": null, "e": 231, "s": 53, "text": "The array_sum() function returns the sum of all the values in an array(one dimensional and associative). It takes an array parameter and returns the sum of all the values in ...
How to Install Apache JMeter on Linux?
06 Oct, 2021 In this article, we will see how to install Apache JMeter in Linux. Here we will use Ubuntu which is a Linux distribution based on Debian and composed mostly of free and open-source software. JMeter is developed by Java so it is necessary to have java 8 or higher version on your computer. Checking Java Ve...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 Oct, 2021" }, { "code": null, "e": 344, "s": 53, "text": "In this article, we will see how to install Apache JMeter in Linux. Here we will use Ubuntu which is a Linux distribution based on Debian and composed mostly of free and ope...
Perl | Comparing Scalars
06 Jan, 2022 Perl has two types of comparison operator sets. Just like other mathematical operators, instead of performing operations, these operators compare scalars. There are two types of sets of Perl comparison operators. One is for numeric scalar values and one is for string scalar values. Both the types are illu...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jan, 2022" }, { "code": null, "e": 242, "s": 28, "text": "Perl has two types of comparison operator sets. Just like other mathematical operators, instead of performing operations, these operators compare scalars. There are two types ...
Dora module in Python
11 Oct, 2020 Dora is a library designed to simplify the exploratory data analysis which is such a painful part. It automates the repetitive tasks that consume most of the time. The library has functions that are very convenient for data cleaning, visualization, feature extraction and selection, visualization. Apart fr...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Oct, 2020" }, { "code": null, "e": 193, "s": 28, "text": "Dora is a library designed to simplify the exploratory data analysis which is such a painful part. It automates the repetitive tasks that consume most of the time. " }, { ...
C++ Program to Find Largest Element of an Array
An array contains multiple elements and the largest element in an array is the one that is greater than other elements. For example. In the above array, 7 is the largest element and it is at index 2. A program to find the largest element of an array is given as follows. Live Demo #include <iostream> using namespace st...
[ { "code": null, "e": 1182, "s": 1062, "text": "An array contains multiple elements and the largest element in an array is the one that is greater than other elements." }, { "code": null, "e": 1195, "s": 1182, "text": "For example." }, { "code": null, "e": 1262, "s...
Area of intersection of two circles | Practice | GeeksforGeeks
Given the coordinates of the centres of two circles (X1, Y1) and (X2, Y2) as well as the radii of the respective circles R1 and R2.Find the floor of the area of their intersection. Note: Use the value of Pi as 3.14 Example 1: Input: X1=0,Y1=0,R1=4 X2=6,Y2=0,R2=4 Output: 7 Explanation: The intersecting area equals 7.252...
[ { "code": null, "e": 441, "s": 226, "text": "Given the coordinates of the centres of two circles (X1, Y1) and (X2, Y2) as well as the radii of the respective circles R1 and R2.Find the floor of the area of their intersection.\nNote: Use the value of Pi as 3.14" }, { "code": null, "e": 45...
Ansible - Quick Guide
Ansible is simple open source IT engine which automates application deployment, intra service orchestration, cloud provisioning and many other IT tools. Ansible is easy to deploy because it does not use any agents or custom security infrastructure. Ansible uses playbook to describe automation jobs, and playbook uses ve...
[ { "code": null, "e": 1944, "s": 1791, "text": "Ansible is simple open source IT engine which automates application deployment, intra service orchestration, cloud provisioning and many other IT tools." }, { "code": null, "e": 2040, "s": 1944, "text": "Ansible is easy to deploy bec...
Tcl - File I/O
Tcl supports file handling with the help of the built in commands open, read, puts, gets, and close. A file represents a sequence of bytes, does not matter if it is a text file or binary file. Tcl uses the open command to open files in Tcl. The syntax for opening a file is as follows − open fileName accessMode Here, f...
[ { "code": null, "e": 2302, "s": 2201, "text": "Tcl supports file handling with the help of the built in commands open, read, puts, gets, and close." }, { "code": null, "e": 2394, "s": 2302, "text": "A file represents a sequence of bytes, does not matter if it is a text file or bi...
Interval List Intersections in C++
Suppose we have two lists of closed intervals, here each list of intervals is pairwise disjoint and in sorted order. We have ti find the intersection of these two interval lists. We know that the closed interval [a, b] is denoted as a <= b. the set of real numbers x with a <= x <= b. The intersection of two closed inte...
[ { "code": null, "e": 1241, "s": 1062, "text": "Suppose we have two lists of closed intervals, here each list of intervals is pairwise disjoint and in sorted order. We have ti find the intersection of these two interval lists." }, { "code": null, "e": 1479, "s": 1241, "text": "We ...
How to inject service in angular 6 component ? - GeeksforGeeks
01 Jul, 2021 Service is a special class in Angular which is primarily used for inter-component communication. Sometimes there are components that need a common pool to interact with each other mostly for data or information procurement. Service makes it possible. The two (or more) components may or may not be related ...
[ { "code": null, "e": 25101, "s": 25070, "text": " \n01 Jul, 2021\n" }, { "code": null, "e": 25496, "s": 25101, "text": "Service is a special class in Angular which is primarily used for inter-component communication. Sometimes there are components that need a common pool to inter...
C library function - asin()
The C library function double asin(double x) returns the arc sine of x in radians. Following is the declaration for asin() function. double asin(double x) x − This is the floating point value in the interval [-1,+1]. x − This is the floating point value in the interval [-1,+1]. This function returns the arc sine of x, ...
[ { "code": null, "e": 2090, "s": 2007, "text": "The C library function double asin(double x) returns the arc sine of x in radians." }, { "code": null, "e": 2140, "s": 2090, "text": "Following is the declaration for asin() function." }, { "code": null, "e": 2162, "s...
Accessing Values of Dictionary in Python
To access dictionary elements, you can use the familiar square brackets along with the key to obtain its value. Following is a simple example − Live Demo #!/usr/bin/python dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'} print "dict['Name']: ", dict['Name'] print "dict['Age']: ", dict['Age'] When the above code is ...
[ { "code": null, "e": 1174, "s": 1062, "text": "To access dictionary elements, you can use the familiar square brackets along with the key to obtain its value." }, { "code": null, "e": 1206, "s": 1174, "text": "Following is a simple example −" }, { "code": null, "e": 1...
Scheduled Web Scraping with Django and Heroku | by GreekDataGuy | Towards Data Science
We often need a lot of training data for machine learning, and web scraping can be a way to acquire it. But in the past, there was a company I really wanted to work for. They didn’t currently have a data science posting but as soon as they did, I wanted to apply. The solution? Scrape their job board daily so I was noti...
[ { "code": null, "e": 276, "s": 172, "text": "We often need a lot of training data for machine learning, and web scraping can be a way to acquire it." }, { "code": null, "e": 436, "s": 276, "text": "But in the past, there was a company I really wanted to work for. They didn’t curr...
.NET Core - Project Files
In this chapter, we will discuss .NET Core project files and how you can add existing files in your project. Let us understand a simple example in which we have some files which are already created; we have to add these files in our FirstApp project. Here is the implementation of the Student.cs file using System; usin...
[ { "code": null, "e": 2495, "s": 2386, "text": "In this chapter, we will discuss .NET Core project files and how you can add existing files in your project." }, { "code": null, "e": 2637, "s": 2495, "text": "Let us understand a simple example in which we have some files which are ...
Generate all distinct subsequences of array using backtracking - GeeksforGeeks
06 Oct, 2021 Given an array arr[] consisting of N positive integers, the task is to generate all distinct subsequences of the array. Examples: Input: arr[] = {1, 2, 2}Output: {} {1} {1, 2} {1, 2, 2} {2} {2, 2}Explanation:The total subsequences of the given array are {}, {1}, {2}, {2}, {1, 2}, {1, 2}, {2, 2}, {1, 2, 2}....
[ { "code": null, "e": 26581, "s": 26553, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26701, "s": 26581, "text": "Given an array arr[] consisting of N positive integers, the task is to generate all distinct subsequences of the array." }, { "code": null, "e": 26711,...
CSS - Fade In Effect
The image come or cause to come gradually into or out of view, or to merge into another shot. @keyframes fadeIn { 0% {opacity: 0;} 100% {opacity: 1;} } Transform − Transform applies to 2d and 3d transformation to an element. Transform − Transform applies to 2d and 3d transformation to an element. Opacity − Opaci...
[ { "code": null, "e": 2720, "s": 2626, "text": "The image come or cause to come gradually into or out of view, or to merge into another shot." }, { "code": null, "e": 2785, "s": 2720, "text": "@keyframes fadeIn {\n 0% {opacity: 0;}\n 100% {opacity: 1;}\n} " }, { "code"...
C++ Program to remove spaces from a string - GeeksforGeeks
17 May, 2018 Given a string, remove all spaces from it. For example “g e e k” should be converted to “geek” and ” g e ” should be converted to “ge”. The idea is to traverse the string from left to right and ignore spaces while traversing. We need to keep track of two indexes, one for current character being red and oth...
[ { "code": null, "e": 26581, "s": 26553, "text": "\n17 May, 2018" }, { "code": null, "e": 26717, "s": 26581, "text": "Given a string, remove all spaces from it. For example “g e e k” should be converted to “geek” and ” g e ” should be converted to “ge”." }, { "code": null,...
Print all paths from a given source to a destination in C++
In this problem we are given a directed graph and we have to print all paths from the source to the destination of the graph. Directed graph is a graph in with edges that are directed from vertex a to b. Let’s take an example to understand the problem Source = K destination = P Output: K -> T -> Y -> A -> P K -> T -> ...
[ { "code": null, "e": 1188, "s": 1062, "text": "In this problem we are given a directed graph and we have to print all paths from the source to the destination of the graph." }, { "code": null, "e": 1266, "s": 1188, "text": "Directed graph is a graph in with edges that are directe...
Nesting Columns in Bootstrap
To nest your content with the default grid, add a new .row and set of .col-md-* columns within an existing .col-md-* column. You can try to run the following code to learn how to implement nesting columns in Bootstrap − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href...
[ { "code": null, "e": 1188, "s": 1062, "text": "To nest your content with the default grid, add a new .row and set of .col-md-* columns within an existing .col-md-* column. " }, { "code": null, "e": 1283, "s": 1188, "text": "You can try to run the following code to learn how to im...
Arguments in Discrete Mathematics - GeeksforGeeks
19 Feb, 2021 Arguments are an important part of logical reasoning and philosophy. It also plays a vital role in mathematical proofs. In this article, we will throw some light on arguments in logical reasoning. Logical proofs can be proven by mathematical logic. The proof is a valid argument that determines the truth va...
[ { "code": null, "e": 26162, "s": 26134, "text": "\n19 Feb, 2021" }, { "code": null, "e": 26688, "s": 26162, "text": "Arguments are an important part of logical reasoning and philosophy. It also plays a vital role in mathematical proofs. In this article, we will throw some light o...
How to detect the version of a browser ? - GeeksforGeeks
18 Nov, 2020 This article includes basic theory and technique of browser detection in JavaScript-enabled web browsers. Description: Even though most of the scripts works on JavaScript-enabled web browser, there are certain things that is not going to work on some browsers i.e. they are browser dependent and in some cas...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n18 Nov, 2020" }, { "code": null, "e": 26245, "s": 26139, "text": "This article includes basic theory and technique of browser detection in JavaScript-enabled web browsers." }, { "code": null, "e": 26797, "s": 2624...
RecyclerView using ListView in Android With Example - GeeksforGeeks
21 Dec, 2020 RecyclerView is more flexible and advanced version of ListView and GridView. RecyclerView is used for providing a limited window to a large data set, which means it is used to display a large amount of data that can be scrolled very efficiently by maintaining a limited number of Views. In RecyclerView we s...
[ { "code": null, "e": 26157, "s": 26129, "text": "\n21 Dec, 2020" }, { "code": null, "e": 26666, "s": 26157, "text": "RecyclerView is more flexible and advanced version of ListView and GridView. RecyclerView is used for providing a limited window to a large data set, which means i...
Passing Vector to a Function in C++ - GeeksforGeeks
11 May, 2022 When we pass an array to a function, a pointer is actually passed. However, to pass a vector there are two ways to do so: Pass By valuePass By Reference Pass By value Pass By Reference When a vector is passed to a function, a copy of the vector is created. This new copy of the vector is then used in the fu...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n11 May, 2022" }, { "code": null, "e": 25434, "s": 25367, "text": "When we pass an array to a function, a pointer is actually passed." }, { "code": null, "e": 25489, "s": 25434, "text": "However, to pass a vect...
PHP | str_shuffle() Function - GeeksforGeeks
20 Aug, 2020 The str_shuffle() function is an inbuilt function in PHP and is used to randomly shuffle all the characters of a string passed to the function as a parameter. When a number is passed, it treats the number as the string and shuffles it. This function does not make any change in the original string or the nu...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n20 Aug, 2020" }, { "code": null, "e": 26678, "s": 26217, "text": "The str_shuffle() function is an inbuilt function in PHP and is used to randomly shuffle all the characters of a string passed to the function as a parameter. When...
Python | Pandas dataframe.filter() - GeeksforGeeks
19 Nov, 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 dataframe.filter() function is used to Subset rows or columns of dataframe according t...
[ { "code": null, "e": 26137, "s": 26109, "text": "\n19 Nov, 2018" }, { "code": null, "e": 26351, "s": 26137, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Replace all ‘0’ with ‘5’ in an input Integer - GeeksforGeeks
23 Jan, 2022 Given an integer as input and replace all the ‘0’ with ‘5’ in the integer. Examples: Input: 102 Output: 152 Explanation: All the digits which are '0' is replaced by '5' Input: 1020 Output: 1525 Explanation: All the digits which are '0' is replaced by '5' Use of array to store all digits is not allowe...
[ { "code": null, "e": 26285, "s": 26257, "text": "\n23 Jan, 2022" }, { "code": null, "e": 26361, "s": 26285, "text": "Given an integer as input and replace all the ‘0’ with ‘5’ in the integer. " }, { "code": null, "e": 26372, "s": 26361, "text": "Examples: " ...
Pairs from an array that satisfy the given condition - GeeksforGeeks
14 Apr, 2021 Given an array arr[], the task is to count all the valid pairs from the array. A pair (arr[i], arr[j]) is said to be valid if func( arr[i] ) + func( arr[j] ) = func( XOR(arr[i], arr[j]) ) where func(x) returns the number of set bits in x. Examples: Input: arr[] = {2, 3, 4, 5, 6} Output: 3 (2, 4), (2, 5) a...
[ { "code": null, "e": 26528, "s": 26500, "text": "\n14 Apr, 2021" }, { "code": null, "e": 26767, "s": 26528, "text": "Given an array arr[], the task is to count all the valid pairs from the array. A pair (arr[i], arr[j]) is said to be valid if func( arr[i] ) + func( arr[j] ) = fun...
Enumeration (or enum) in C - GeeksforGeeks
20 Jul, 2021 Enumeration (or enum) is a user defined data type in C. It is mainly used to assign names to integral constants, the names make a program easy to read and maintain. enum State {Working = 1, Failed = 0}; The keyword ‘enum’ is used to declare new enumeration types in C and C++. Following is an example of en...
[ { "code": null, "e": 25541, "s": 25513, "text": "\n20 Jul, 2021" }, { "code": null, "e": 25706, "s": 25541, "text": "Enumeration (or enum) is a user defined data type in C. It is mainly used to assign names to integral constants, the names make a program easy to read and maintain...
Field equals() method in Java with Examples - GeeksforGeeks
05 Nov, 2019 The equals() method of java.lang.reflect.Field is used to compare two field objects. This method compares two field objects and returns true if both objects are equal otherwise false. The two Field objects are considered equal if and only if when they were declared by the same class and have the same name ...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n05 Nov, 2019" }, { "code": null, "e": 25663, "s": 25225, "text": "The equals() method of java.lang.reflect.Field is used to compare two field objects. This method compares two field objects and returns true if both objects are eq...
reflect.String() Function in Golang with Examples - GeeksforGeeks
05 May, 2020 Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. The reflect.String() Function in Golang is used to get the string v’s underlying value, as a string. To access this function, one ne...
[ { "code": null, "e": 25603, "s": 25575, "text": "\n05 May, 2020" }, { "code": null, "e": 25961, "s": 25603, "text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of refle...
Output of C programs | Set 37 - GeeksforGeeks
08 Aug, 2017 1.) What will be the output of the following code? #include <stdio.h>int main(void){ int y, z; int x = scanf("%d %d", &y, &z); printf("%d", x); return 0;} Input: 12 10 a)12b)2c)Syntax Errord)10 Answer : b Explanation: scanf() returns the number of variables it successfully stored. 2. What wil...
[ { "code": null, "e": 25573, "s": 25545, "text": "\n08 Aug, 2017" }, { "code": null, "e": 25624, "s": 25573, "text": "1.) What will be the output of the following code?" }, { "code": "#include <stdio.h>int main(void){ int y, z; int x = scanf(\"%d %d\", &y, &z); pr...
Python | Pandas DatetimeIndex.year - GeeksforGeeks
24 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 DatetimeIndex.year attribute outputs an Index object containing the value of years pre...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n24 Dec, 2018" }, { "code": null, "e": 25769, "s": 25555, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Check if four segments form a rectangle - GeeksforGeeks
09 Mar, 2022 We are given four segments as a pair of coordinates of their end points. We need to tell whether those four line segments make a rectangle or not. Examples: Input : segments[] = [(4, 2), (7, 5), (2, 4), (4, 2), (2, 4), (5, 7), (5, 7), ...
[ { "code": null, "e": 26701, "s": 26673, "text": "\n09 Mar, 2022" }, { "code": null, "e": 26860, "s": 26701, "text": "We are given four segments as a pair of coordinates of their end points. We need to tell whether those four line segments make a rectangle or not. Examples: " }...
ESLint - Pluggable JavaScript linter - GeeksforGeeks
08 Sep, 2021 Before getting into ESlint first you should be aware of linting. It is the process of checking the code for any errors. A Linter is an automated tool that runs on a static piece of code to find any kind of discrepancy arising due to formatting or due to bad coding practices. Running a Linting tool over the...
[ { "code": null, "e": 26169, "s": 26141, "text": "\n08 Sep, 2021" }, { "code": null, "e": 26547, "s": 26169, "text": "Before getting into ESlint first you should be aware of linting. It is the process of checking the code for any errors. A Linter is an automated tool that runs on ...
PHP | include_once() and require_once() - GeeksforGeeks
08 Mar, 2018 We already have learnt about file inclusion in PHP in the article PHP | (Include and Require). We have discussed about include() and require() functions for file inclusion in our previous article. In this article we will discuss about two more yet useful functions in PHP for file inclusion: include_once() ...
[ { "code": null, "e": 26050, "s": 26022, "text": "\n08 Mar, 2018" }, { "code": null, "e": 26387, "s": 26050, "text": "We already have learnt about file inclusion in PHP in the article PHP | (Include and Require). We have discussed about include() and require() functions for file i...
Switch Expression in C# 8.0 - GeeksforGeeks
11 Dec, 2019 The switch statement is a multiway branch statement. It provides an easy way to forward execution to different parts of code based on the value of the expression. So, with switch statement you always use some repetitive case and break keywords and also use default statement as shown in the below example: E...
[ { "code": null, "e": 25517, "s": 25489, "text": "\n11 Dec, 2019" }, { "code": null, "e": 25823, "s": 25517, "text": "The switch statement is a multiway branch statement. It provides an easy way to forward execution to different parts of code based on the value of the expression. ...
C library function - strcat()
The C library function char *strcat(char *dest, const char *src) appends the string pointed to by src to the end of the string pointed to by dest. Following is the declaration for strcat() function. char *strcat(char *dest, const char *src) dest − This is pointer to the destination array, which should contain a C strin...
[ { "code": null, "e": 2154, "s": 2007, "text": "The C library function char *strcat(char *dest, const char *src) appends the string pointed to by src to the end of the string pointed to by dest." }, { "code": null, "e": 2206, "s": 2154, "text": "Following is the declaration for st...
Detecting arrow key presses in JavaScript?
To detect the arrow key when it is pressed, use onkeydown in JavaScript. The button has key code. As you know the left arrow key has the code 37. The up arrow key has the code 38 and right has the 39 and down has 40. Following is the code − <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name...
[ { "code": null, "e": 1135, "s": 1062, "text": "To detect the arrow key when it is pressed, use onkeydown in JavaScript." }, { "code": null, "e": 1279, "s": 1135, "text": "The button has key code. As you know the left arrow key has the code 37. The up arrow key\nhas the code 38 an...
How to check Android Phone Model programmatically using Kotlin?
This example demonstrates how to check Android Phone Model programmatically 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="utf-8"?...
[ { "code": null, "e": 1152, "s": 1062, "text": "This example demonstrates how to check Android Phone Model programmatically using kotlin." }, { "code": null, "e": 1280, "s": 1152, "text": "Step 1 − Create a new project in Android Studio, go to File? New Project and fill all requir...
How to Create a Correlation Matrix with Too Many Variables in R | by Catherine Williams | Towards Data Science
I used the Kaggle House Prices Dataset which has 79 explanatory variables. In my analysis, I tried to look at correlations between all of the variables and realized there are just too many variables to make sense of any typical visual aid. I tried several different packages and tools and decided that I can manipulate c...
[ { "code": null, "e": 412, "s": 172, "text": "I used the Kaggle House Prices Dataset which has 79 explanatory variables. In my analysis, I tried to look at correlations between all of the variables and realized there are just too many variables to make sense of any typical visual aid." }, { "...
How can we write JSON objects to a file in Java?
The JSON is one of the widely used data-interchange formats and is a lightweight and language independent. The json.simple is a lightweight JSON processing library that can be used to write JSON files and it can be used to encode or decode JSON text and fully compliant with JSON specification(RFC4627). In order to read...
[ { "code": null, "e": 1473, "s": 1062, "text": "The JSON is one of the widely used data-interchange formats and is a lightweight and language independent. The json.simple is a lightweight JSON processing library that can be used to write JSON files and it can be used to encode or decode JSON text and...
Twitter bot for Data Scientists. Ever wonder how to create your... | by Stephen Oni | Towards Data Science
Ever wonder how to create your @Getvideobot @threadreaderapp and the likes Twitter is one of the most widely used social platforms. It’s used by individuals and organizations. It serves as a large pool of information for those whose information (data) drives their lives and work. The existence of twitter API has provid...
[ { "code": null, "e": 247, "s": 172, "text": "Ever wonder how to create your @Getvideobot @threadreaderapp and the likes" }, { "code": null, "e": 453, "s": 247, "text": "Twitter is one of the most widely used social platforms. It’s used by individuals and organizations. It serves ...
E-Mail Sentiment Analysis Using Python and Microsoft Azure — Part 1 | by Ben Prescott | Towards Data Science
What does our e-mail Sent Items folder say about our demeanor? Can we use this and other complementary data to possibly determine trends in happiness or sadness at work? This is Part 1 of a multi-part article. Admitting right off the bat, I’ll consider myself a “noob” when it comes to most things data related. I have a...
[ { "code": null, "e": 341, "s": 171, "text": "What does our e-mail Sent Items folder say about our demeanor? Can we use this and other complementary data to possibly determine trends in happiness or sadness at work?" }, { "code": null, "e": 381, "s": 341, "text": "This is Part 1 o...
How to Install Sublime Text Editor on Ubuntu
Sublime Text is a cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and its functionality can be extended by users with plugins, typically community-built and maintained under free-software licenses. This articl...
[ { "code": null, "e": 1371, "s": 1062, "text": "Sublime Text is a cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and its functionality can be extended by users with plugins, typically commu...
Delete statement in MS SQL Server - GeeksforGeeks
06 Aug, 2020 A database contains many tables that have data stored in order. To delete the rows, the user needs to use a delete statement. 1. To DELETE a single record : Syntax – DELETE FROM table_name WHERE condition; Note –Take care when deleting records from a table. Note that the WHERE clause in the DELETE statem...
[ { "code": null, "e": 24224, "s": 24196, "text": "\n06 Aug, 2020" }, { "code": null, "e": 24350, "s": 24224, "text": "A database contains many tables that have data stored in order. To delete the rows, the user needs to use a delete statement." }, { "code": null, "e": ...
Angular Material - Virtual Repeat
The md-virtual-repeat-container is the scroll container for the md-virtual-repeat component. The following table lists out the parameters and description of the different attributes of md-virtual-repeat-container. md-top-index Binds the index of the item that is at the top of the scroll container to $scope. It can both...
[ { "code": null, "e": 2283, "s": 2190, "text": "The md-virtual-repeat-container is the scroll container for the md-virtual-repeat component." }, { "code": null, "e": 2404, "s": 2283, "text": "The following table lists out the parameters and description of the different attributes ...
How to round off a floating number using Python?
The round() function in Python's library rounds the number to given position. Following are some Examples. >>> round(11.6912,2) # upto second decimal place 11.69 >>> round(11.6912,1) # upto first place after decimal point 11.7 >>> round(11.6912) # rounded to nearest integer 12 >>> round(11.6912,-1)#rounded to ten's pla...
[ { "code": null, "e": 1169, "s": 1062, "text": "The round() function in Python's library rounds the number to given position. Following are some Examples." }, { "code": null, "e": 1390, "s": 1169, "text": ">>> round(11.6912,2) # upto second decimal place\n11.69\n>>> round(11.6912,...
How to check if Location Services are enabled in Android App?
This example demonstrate about How to check if Location Services are enabled in Android App. 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.java <? xml version= "1.0" encoding= "...
[ { "code": null, "e": 1155, "s": 1062, "text": "This example demonstrate about How to check if Location Services are enabled in Android App." }, { "code": null, "e": 1284, "s": 1155, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all re...
Removing Negatives from Array in JavaScript
Given an array arr of multiple values. For example − [-3,5,1,3,2,10] We are required to write a function that removes any negative values in the array. Once the function finishes its execution the array should be composed of just positive numbers. We are required to do this without creating a temporary array and only u...
[ { "code": null, "e": 1115, "s": 1062, "text": "Given an array arr of multiple values. For example −" }, { "code": null, "e": 1131, "s": 1115, "text": "[-3,5,1,3,2,10]" }, { "code": null, "e": 1310, "s": 1131, "text": "We are required to write a function that r...
Flutter – CircleAvatar Widget
22 Feb, 2022 CircleAvatar widget comes built-in with the flutter SDK. It is simply a circle in which we can add background color, background image, or just some text. It usually represents a user with his image or with his initials. Although we can make a similar widget from the ground up, this widget comes in handy in...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Feb, 2022" }, { "code": null, "e": 400, "s": 52, "text": "CircleAvatar widget comes built-in with the flutter SDK. It is simply a circle in which we can add background color, background image, or just some text. It usually represent...
How to delete an item or object from the array using ng-click ?
10 Jun, 2020 The task is to delete the item from the list when the button is clicked. This all should be done by using ng-click. This is done by using the splice() method. The syntax for the method is given below. Syntax for splice() function: array.splice(indexno, noofitems(n), item-1, item-2, ..., item-n) Example fo...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2020" }, { "code": null, "e": 229, "s": 28, "text": "The task is to delete the item from the list when the button is clicked. This all should be done by using ng-click. This is done by using the splice() method. The syntax for t...
R-CNN | Region Based CNNs
01 Mar, 2020 Since Convolution Neural Network (CNN) with a fully connected layer is not able to deal with the frequency of occurrence and multi objects. So, one way could be that we use a sliding window brute force search to select a region and apply the CNN model on that, but the problem of this approach is that the s...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Mar, 2020" }, { "code": null, "e": 592, "s": 28, "text": "Since Convolution Neural Network (CNN) with a fully connected layer is not able to deal with the frequency of occurrence and multi objects. So, one way could be that we use a ...
java.io.UnsupportedEncodingException in Java with Examples
16 Sep, 2021 The java.io.UnsupportedEncodingException occurs when an unsupported character encoding scheme is used in java strings or bytes. The java String getBytes method converts the requested string to bytes in the specified encoding format. If java does not support the encoding format, the method String getBytes t...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Sep, 2021" }, { "code": null, "e": 410, "s": 28, "text": "The java.io.UnsupportedEncodingException occurs when an unsupported character encoding scheme is used in java strings or bytes. The java String getBytes method converts the re...
Find the sum of the first half and second half elements of an array
25 May, 2022 Given an array arr of size N. The task is to find the sum of the first half (N/2) elements and second half elements (N – N/2) of an array.Examples: Input : arr[] = {20, 30, 60, 10, 25, 15, 40} Output : 110, 90 Sum of first N/2 elements 20 + 30 + 60 is 110Input : arr[] = {50, 35, 20, 15} Output : 85, 35 Ap...
[ { "code": null, "e": 53, "s": 25, "text": "\n25 May, 2022" }, { "code": null, "e": 202, "s": 53, "text": "Given an array arr of size N. The task is to find the sum of the first half (N/2) elements and second half elements (N – N/2) of an array.Examples: " }, { "code": nul...
Recurrent Neural Networks Explanation
06 Oct, 2021 Today, different Machine Learning techniques are used to handle different types of data. One of the most difficult types of data to handle and the forecast is sequential data. Sequential data is different from other types of data in the sense that while all the features of a typical dataset can be assumed ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Oct, 2021" }, { "code": null, "e": 816, "s": 28, "text": "Today, different Machine Learning techniques are used to handle different types of data. One of the most difficult types of data to handle and the forecast is sequential data....
Program to Print a New Line in C#
World Stay Safe C# C# Programs Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.
[ { "code": null, "e": 1551, "s": 1511, "text": "World\nStay\nSafe\n" }, { "code": null, "e": 1554, "s": 1551, "text": "C#" }, { "code": null, "e": 1566, "s": 1554, "text": "C# Programs" } ]
Subset sum queries using bitset
06 Jul, 2022 Given an array arr[] and a number of queries, where in each query we have to check whether a subset whose sum is equal to given number exists in the array or not. Examples: Input : arr[] = {1, 2, 3}; query[] = {5, 3, 8} Output : Yes, Yes, No There is a subset with sum 5, subset is {2, 3} There...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Jul, 2022" }, { "code": null, "e": 218, "s": 54, "text": "Given an array arr[] and a number of queries, where in each query we have to check whether a subset whose sum is equal to given number exists in the array or not. " }, { ...
Difference between Half adder and full adder
21 Jun, 2022 1. Half Adder : Half Adder is a combinational logic circuit which is designed by connecting one EX-OR gate and one AND gate. The half adder circuit has two inputs: A and B, which add two input digits and generates a carry and a sum. The output obtained from the EX-OR gate is the sum of the two numbers wh...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 287, "s": 52, "text": "1. Half Adder : Half Adder is a combinational logic circuit which is designed by connecting one EX-OR gate and one AND gate. The half adder circuit has two inputs: A and B, w...