title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Spring MVC - Hidden Field Example
The following example describes how to use a Hidden Field in forms using the Spring Web MVC framework. To start with, let us have a working Eclipse IDE in place and consider the following steps to develop a Dynamic Form based Web Application using Spring Web Framework. package com.tutorialspoint; public class Student ...
[ { "code": null, "e": 3061, "s": 2791, "text": "The following example describes how to use a Hidden Field in forms using the Spring Web MVC framework. To start with, let us have a working Eclipse IDE in place and consider the following steps to develop a Dynamic Form based Web Application using Sprin...
Connecting MongoDB with NodeJS
This method is used to connect the Mongo DB server with our Node application. This is an asynchronous method from MongoDB module. mongodb.connect(path[, callback]) •path – The server path where the MongoDB server is actually running along with its port. •path – The server path where the MongoDB server is actually runni...
[ { "code": null, "e": 1192, "s": 1062, "text": "This method is used to connect the Mongo DB server with our Node application. This is an asynchronous method from MongoDB module." }, { "code": null, "e": 1226, "s": 1192, "text": "mongodb.connect(path[, callback])" }, { "cod...
GWT - ScrollPanel Widget
The ScrollPanel widget represents a simple panel that wraps its contents in a scrollable area. Following is the declaration for com.google.gwt.user.client.ui.ScrollPanel class − public class ScrollPanel extends SimplePanel implements SourcesScrollEvents, HasScrollHandlers, RequiresResize, ProvidesResi...
[ { "code": null, "e": 2118, "s": 2023, "text": "The ScrollPanel widget represents a simple panel that wraps its contents in a scrollable area." }, { "code": null, "e": 2201, "s": 2118, "text": "Following is the declaration for com.google.gwt.user.client.ui.ScrollPanel class −" }...
How to find the longest common substring from more than two strings in Python?
Common dynamic programming implementations for the Longest Common Substring algorithm runs in O(nm) time. The following is an implementation of the longest common substring algorithm: def longest_common_substring(s1, s2): m = [[0] * (1 + len(s2)) for i in xrange(1 + len(s1))] longest, x_longest = 0, 0 for x in...
[ { "code": null, "e": 1246, "s": 1062, "text": "Common dynamic programming implementations for the Longest Common Substring algorithm runs in O(nm) time. The following is an implementation of the longest common substring algorithm:" }, { "code": null, "e": 1782, "s": 1246, "text":...
Matcher group() method in Java with Examples
The java.util.regex.Matcher class represents an engine that performs various match operations. There is no constructor for this class, you can create/obtain an object of this class using the matches() method of the class java.util.regex.Pattern. The group() method of this (Matcher) class returns the matched input subse...
[ { "code": null, "e": 1308, "s": 1062, "text": "The java.util.regex.Matcher class represents an engine that performs various match operations. There is no constructor for this class, you can create/obtain an object of this class using the matches() method of the class java.util.regex.Pattern." }, ...
Deleting all rows older than 5 days in MySQL
To delete all rows older than 5 days, you can use the following syntax − delete from yourTableName where datediff(now(), yourTableName.yourDateColumnName) > 5; Note − Let’s say the current date is 2019-03-10. To understand the concept, let us create a table. The query to create a table is as follows − mysql> create ...
[ { "code": null, "e": 1135, "s": 1062, "text": "To delete all rows older than 5 days, you can use the following syntax −" }, { "code": null, "e": 1225, "s": 1135, "text": "delete from yourTableName\n where datediff(now(), yourTableName.yourDateColumnName) > 5;" }, { "cod...
Basic Sentiment Analysis using NLTK | by Samira Munir | Towards Data Science
“Your most unhappy customers are your greatest source of learning.” — Bill Gates So what does the customer say? In today’s context, it turns out A LOT. Social media has opened the floodgates of customer opinions and it is now free-flowing in mammoth proportions for businesses to analyze. Today, using machine learning c...
[ { "code": null, "e": 253, "s": 172, "text": "“Your most unhappy customers are your greatest source of learning.” — Bill Gates" }, { "code": null, "e": 284, "s": 253, "text": "So what does the customer say?" }, { "code": null, "e": 752, "s": 284, "text": "In to...
Bootstrap - Environment Setup
It is very easy to setup and start using Bootstrap. This chapter will explain how to download and setup Bootstrap. We will also discuss the Bootstrap file structure, and demonstrate its usage with an example. You can download the latest version of Bootstrap from https://getbootstrap.com/. When you click on this link, ...
[ { "code": null, "e": 3541, "s": 3331, "text": "It is very easy to setup and start using Bootstrap. This chapter will explain how to download and setup Bootstrap. We will also discuss the Bootstrap file structure, and demonstrate its usage with an example." }, { "code": null, "e": 3691, ...
Find length of one array element in bytes and total bytes consumed by the elements in Numpy - GeeksforGeeks
23 Jul, 2021 In NumPy we can find the length of one array element in a byte with the help of itemsize . It will return the length of the array in integer. And in the numpy for calculating total bytes consumed by the elements with the help of nbytes. Syntax: array.itemsize Return :It will return length(int) of the arr...
[ { "code": null, "e": 25026, "s": 24998, "text": "\n23 Jul, 2021" }, { "code": null, "e": 25263, "s": 25026, "text": "In NumPy we can find the length of one array element in a byte with the help of itemsize . It will return the length of the array in integer. And in the numpy for ...
Wide char and library functions in C++
In this section we will see what is the wide character in C++. We will also see some functions that are used to handle wide characters. Wide characters are similar to character datatype. The main difference is that char takes 1-byte space, but wide character takes 2-bytes (sometimes 4-byte depending on compiler) of spa...
[ { "code": null, "e": 1198, "s": 1062, "text": "In this section we will see what is the wide character in C++. We will also see some\nfunctions that are used to handle wide characters." }, { "code": null, "e": 1649, "s": 1198, "text": "Wide characters are similar to character data...
How to Avoid ConcurrentModificationException in Java? - GeeksforGeeks
16 Jun, 2021 ConcurrentModificationException is a predefined Exception in Java, which occurs while we are using Java Collections, i.e whenever we try to modify an object concurrently without permission ConcurrentModificationException occurs which is present in java.util package. Procedure: Some steps are required in...
[ { "code": null, "e": 24580, "s": 24549, "text": " \n16 Jun, 2021\n" }, { "code": null, "e": 24849, "s": 24580, "text": "ConcurrentModificationException is a predefined Exception in Java, which occurs while we are using Java Collections, i.e whenever we try to modify an object co...
Tryit Editor v3.7
Tryit: HSLA color values
[]
Fix navbar to the bottom of the page with Bootstrap
To fix navbar to the bottom, use the navbar-fixed-bottom class: Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap....
[ { "code": null, "e": 1126, "s": 1062, "text": "To fix navbar to the bottom, use the navbar-fixed-bottom class:" }, { "code": null, "e": 1136, "s": 1126, "text": "Live Demo" }, { "code": null, "e": 2005, "s": 1136, "text": "<!DOCTYPE html>\n<html>\n <head>\n ...
Pandas - All combinations of two columns - GeeksforGeeks
15 Mar, 2021 In this article, we will see how to get the combination of two columns of a DataFrame. First, let’s create a sample DataFrame. Code: An example code to create a data frame using dictionary. Python3 # importing pandas module for the # data frameimport pandas as pd # creating data frame for student details...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n15 Mar, 2021" }, { "code": null, "e": 25774, "s": 25647, "text": "In this article, we will see how to get the combination of two columns of a DataFrame. First, let’s create a sample DataFrame." }, { "code": null, "e":...
PHP 7 - Quick Guide
PHP 7 is a major release of PHP programming language and is touted to be a revolution in the way web applications can be developed and delivered for mobile to enterprises and the cloud. This release is considered to be the most important change for PHP after the release of PHP 5 in 2004. There are dozens of features ad...
[ { "code": null, "e": 2366, "s": 2077, "text": "PHP 7 is a major release of PHP programming language and is touted to be a revolution in the way web applications can be developed and delivered for mobile to enterprises and the cloud. This release is considered to be the most important change for PHP ...
AtomicBoolean compareAndSet() method in Java with Examples - GeeksforGeeks
27 Feb, 2019 The java.util.concurrent.atomic.AtomicBoolean.compareAndSet() is an inbuilt method in java that sets the value to the passed value in the parameter if the current value is equal to the expected value which is also passed in the parameter. The function returns a boolean value which gives us an idea if the u...
[ { "code": null, "e": 26095, "s": 26067, "text": "\n27 Feb, 2019" }, { "code": null, "e": 26425, "s": 26095, "text": "The java.util.concurrent.atomic.AtomicBoolean.compareAndSet() is an inbuilt method in java that sets the value to the passed value in the parameter if the current ...
Python | Data Comparison and Selection in Pandas - GeeksforGeeks
17 Sep, 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. The most important thing in Data Analysis is comparing values and selecting data accordingly...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n17 Sep, 2018" }, { "code": null, "e": 24531, "s": 24316, "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, ...
C# Program to Get the Operating System Version of Computer using Environment Class - GeeksforGeeks
24 Oct, 2021 In C#, Environment Class provides information about the current platform and manipulates, the current platform. It is useful for getting and setting various operating system-related information. We can use it in such a way that it retrieves command-line arguments information, exit codes information, enviro...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n24 Oct, 2021" }, { "code": null, "e": 26407, "s": 25547, "text": "In C#, Environment Class provides information about the current platform and manipulates, the current platform. It is useful for getting and setting various operat...
Show or hide children components in Angular 10 - GeeksforGeeks
25 Jan, 2021 Prerequisites: Angular must be installed In this article, we will see how we can show or hide the child components in Angular. Lets start by creating a new project. Create a new folder and initialize a new angular project. Run the project to verify it is working. ng new myProject ng serve -o This wil...
[ { "code": null, "e": 26206, "s": 26178, "text": "\n25 Jan, 2021" }, { "code": null, "e": 26249, "s": 26206, "text": "Prerequisites: Angular must be installed " }, { "code": null, "e": 26337, "s": 26249, "text": "In this article, we will see how we can show or...
Java Basic Data Types | Practice | GeeksforGeeks
Read a value and store it in the appropriate Java Data Type. Example 1: Input: 18 abc 9.9876 Output: 18 abc 9.9876 Explanation: The three inputs are stored in approriate data types and then printed in order. Your Task: Your task is to complete each of the given functions javaIntType() : read an integer in...
[ { "code": null, "e": 288, "s": 226, "text": "Read a value and store it in the appropriate Java Data Type. " }, { "code": null, "e": 300, "s": 288, "text": "\nExample 1:" }, { "code": null, "e": 445, "s": 300, "text": "Input: \n18 \nabc \n9.9876 \nOutput:\n18 \...
Factorial of Large numbers using Logarithmic identity - GeeksforGeeks
01 Jun, 2020 Given a very large number N, the task is to find the factorial of the number using Log. Factorial of a non-negative integer is the multiplication of all integers smaller than or equal to N. We have previously discussed a simple program to find the factorial in this article. Here, we will discuss an efficie...
[ { "code": null, "e": 24177, "s": 24149, "text": "\n01 Jun, 2020" }, { "code": null, "e": 24265, "s": 24177, "text": "Given a very large number N, the task is to find the factorial of the number using Log." }, { "code": null, "e": 24367, "s": 24265, "text": "Fa...
10 Python mini-projects that everyone should build (with codes) | by Abhay Parashar | Towards Data Science
Hi there, I am Abhay We are in 2020. we all know that the industry is growing day by day. if you see from 2013 to 2019 the growth of python in the industry is around 40% and it is said that it will grow up to 20% more in the next few years. the increased rate of python developers is increased by 30% in the past few yea...
[ { "code": null, "e": 193, "s": 172, "text": "Hi there, I am Abhay" }, { "code": null, "e": 606, "s": 193, "text": "We are in 2020. we all know that the industry is growing day by day. if you see from 2013 to 2019 the growth of python in the industry is around 40% and it is said t...
Program for sum of geometric series in C
Given three inputs first one is “a” which is for the first term of geometric series second is “r” which is the common ratio and “n” which are the number of series whose sum we have to find. Geometric series is a series which have a constant ratio between its successive terms. Using the above stated inputs “a”, “r” and ...
[ { "code": null, "e": 1252, "s": 1062, "text": "Given three inputs first one is “a” which is for the first term of geometric series second is “r” which is the common ratio and “n” which are the number of series whose sum we have to find." }, { "code": null, "e": 1508, "s": 1252, "...
Clojure - Functions with Multiple Arguments
Clojure functions can be defined with zero or more parameters. The values you pass to functions are called arguments, and the arguments can be of any type. The number of parameters is the function’s arity. This chapter discusses some function definitions with different arities. In the following example, the function de...
[ { "code": null, "e": 2653, "s": 2374, "text": "Clojure functions can be defined with zero or more parameters. The values you pass to functions are called arguments, and the arguments can be of any type. The number of parameters is the function’s arity. This chapter discusses some function definition...
Kotlin – Property initialization using "by lazy" vs. "lateinit"
Kotlin library provides two different access modifiers for property declaration. In this article, we will highlight the difference between these two access modifiers and how we can use them in our application. In order to create a "lateInit" variable, we just need to add the keyword "lateInit" as an access modifier of ...
[ { "code": null, "e": 1143, "s": 1062, "text": "Kotlin library provides two different access modifiers for property declaration." }, { "code": null, "e": 1272, "s": 1143, "text": "In this article, we will highlight the difference between these two access\nmodifiers and how we can ...
Arduino - If statement
It takes an expression in parenthesis and a statement or block of statements. If the expression is true then the statement or block of statements gets executed otherwise these statements are skipped. Form 1 if (expression) statement; You can use the if statement without braces { } if you have one statement. Form 2 ...
[ { "code": null, "e": 3070, "s": 2870, "text": "It takes an expression in parenthesis and a statement or block of statements. If the expression is true then the statement or block of statements gets executed otherwise these statements are skipped." }, { "code": null, "e": 3077, "s": 3...
MySQL Tryit Editor v1.0
SELECT CONCAT("SQL ", "Tutorial ", "is ", "fun!") AS ConcatenatedString; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your ar...
[ { "code": null, "e": 73, "s": 0, "text": "SELECT CONCAT(\"SQL \", \"Tutorial \", \"is \", \"fun!\") AS ConcatenatedString;" }, { "code": null, "e": 75, "s": 73, "text": "​" }, { "code": null, "e": 147, "s": 84, "text": "Edit the SQL Statement, and click \"Run ...
Software Testing Tools - GeeksforGeeks
30 Jan, 2020 Software Testing tools are the tools which are used for the testing of software. Software testing tools are often used to assure firmness, thoroughness and performance in testing software products. Unit testing and subsequent integration testing can be performed by software testing tools. These tools are u...
[ { "code": null, "e": 24948, "s": 24920, "text": "\n30 Jan, 2020" }, { "code": null, "e": 25484, "s": 24948, "text": "Software Testing tools are the tools which are used for the testing of software. Software testing tools are often used to assure firmness, thoroughness and perform...
Multi-Line Statements in Python
Statements in Python typically end with a new line. Python does, however, allow the use of the line continuation character (\) to denote that the line should continue. For example − total = item_one + \ item_two + \ item_three Statements contained within the [], {}, or () brackets do not need to use the...
[ { "code": null, "e": 1244, "s": 1062, "text": "Statements in Python typically end with a new line. Python does, however, allow the use of the line continuation character (\\) to denote that the line should continue. For example −" }, { "code": null, "e": 1305, "s": 1244, "text": ...
Maximum Collatz sequence length | Practice | GeeksforGeeks
Starting with any positive integer N, we define the Collatz sequence corresponding to N as the numbers formed by the following operations: If N is even, N→ N/2 if N is odd, N→ 3N+ 1 It is conjectured but not yet proven that no matter which positive integer we start with; we always end up with 1. For example, 10 → 5 ...
[ { "code": null, "e": 675, "s": 226, "text": "Starting with any positive integer N, we define the Collatz sequence corresponding to N as the numbers formed by the following operations:\nIf N is even, N→ N/2\nif N is odd, N→ 3N+ 1\nIt is conjectured but not yet proven that no matter which positive i...
SAP Ariba - Quick Guide
SAP Ariba is a cloud-based innovative solution that allows suppliers and buyers to connect and do business on a single platform. It improves over all vendor management system of an organization by providing less costly ways of procurement and making business simple. Ariba acts as supply chain, procurement service to do...
[ { "code": null, "e": 2673, "s": 2238, "text": "SAP Ariba is a cloud-based innovative solution that allows suppliers and buyers to connect and do business on a single platform. It improves over all vendor management system of an organization by providing less costly ways of procurement and making bus...
Which anime is the best?. Using data visualization show how... | by Mubarak Ganiyu | Towards Data Science
Anime is a form of Japanese-made cartoon that is very popular around the world. Different anime series have been released over the past twenty years, some of which have made a massive impact in the TV culture. Naruto is an example of one of the these influential anime series. It has the ability to make anyone who sits ...
[ { "code": null, "e": 382, "s": 172, "text": "Anime is a form of Japanese-made cartoon that is very popular around the world. Different anime series have been released over the past twenty years, some of which have made a massive impact in the TV culture." }, { "code": null, "e": 728, ...
How to access JavaScript properties?
There are three ways to access JavaScript properties − Using dot property access: object.property Using square brackets notation: object[‘property’] Using object destructuring: let {property} = object Following is the code for accessing JavaScript object properties − Live Demo <!DOCTYPE html> <html lang="en"> <head> <...
[ { "code": null, "e": 1117, "s": 1062, "text": "There are three ways to access JavaScript properties −" }, { "code": null, "e": 1160, "s": 1117, "text": "Using dot property access: object.property" }, { "code": null, "e": 1211, "s": 1160, "text": "Using square ...
iOS - GameKit
Gamekit is a framework that provides leader board, achievements, and more features to an iOS application. In this tutorial, we will be explaining the steps involved in adding a leader board and updating the score. Step 1 − In iTunes connect, ensure that you have a unique App ID and when we create the application update...
[ { "code": null, "e": 2305, "s": 2091, "text": "Gamekit is a framework that provides leader board, achievements, and more features to an iOS application. In this tutorial, we will be explaining the steps involved in adding a leader board and updating the score." }, { "code": null, "e": 24...
Anonymous object in Java
Yes, we can use a method on an object without assigning it to any reference. Live Demo public class Tester { public String message(){ return "Hello World!"; } public static void main(String[] args) { System.out.println(new Tester().message()); } } Here we've used message() method on new Tes...
[ { "code": null, "e": 1140, "s": 1062, "text": "Yes, we can use a method on an object without assigning it to any reference. " }, { "code": null, "e": 1150, "s": 1140, "text": "Live Demo" }, { "code": null, "e": 1339, "s": 1150, "text": "public class Tester {\n...
F# - Bitwise Operators
Bitwise operators work on bits and perform bit-by-bit operation. The truth tables for &&& (bitwise AND), ||| (bitwise OR), and ^^^ (bitwise exclusive OR) are as follows − Assume if A = 60; and B = 13; now in binary format they will be as follows − A = 0011 1100 B = 0000 1101 A&&&B = 0000 1100 A|||B = 0011 1101 A^^^B = ...
[ { "code": null, "e": 2332, "s": 2161, "text": "Bitwise operators work on bits and perform bit-by-bit operation. The truth tables for &&& (bitwise AND), ||| (bitwise OR), and ^^^ (bitwise exclusive OR) are as follows −" }, { "code": null, "e": 2409, "s": 2332, "text": "Assume if A...
Downcasting in Java
Yes, a variable can be downcast to its lower range substitute by casting. It may lead to data loss although. See the example below − Live Demo public class Tester { public static void main(String[] args) { int a = 300; byte b = (byte)a; System.out.println(b); } } It will print output as 44
[ { "code": null, "e": 1195, "s": 1062, "text": "Yes, a variable can be downcast to its lower range substitute by casting. It may lead to data loss although. See the example below −" }, { "code": null, "e": 1206, "s": 1195, "text": " Live Demo" }, { "code": null, "e": 1...
XSD - Complex Empty Element
Complex Empty Element can only have attribute, but no content. See the following example − <student rollno = "393" /> We can declare Complex Empty elements using the following methods − Define a complex type element "StudentType" and then create element student of type "StudentType". <xs:complexType name = "StudentTyp...
[ { "code": null, "e": 1795, "s": 1704, "text": "Complex Empty Element can only have attribute, but no content. See the following example −" }, { "code": null, "e": 1823, "s": 1795, "text": "<student rollno = \"393\" />\n" }, { "code": null, "e": 1891, "s": 1823, ...
Bootstrap Navigation Bar
A navigation bar is a navigation header that is placed at the top of the page: Home Page 1 Page 2 Page 3 With Bootstrap, a navigation bar can extend or collapse, depending on the screen size. A standard navigation bar is created with <nav class="navbar navbar-default">. The following example shows how to add a naviga...
[ { "code": null, "e": 80, "s": 0, "text": "A navigation bar is a navigation header that is placed at the top of the \npage:" }, { "code": null, "e": 85, "s": 80, "text": "Home" }, { "code": null, "e": 92, "s": 85, "text": "Page 1" }, { "code": null, ...
Get a list of a particular column values of a Pandas DataFrame - GeeksforGeeks
28 Jul, 2020 In this article, we’ll see how to get all values of a column in a pandas dataframe in the form of a list. This can be very useful in many situations, suppose we have to get marks of all the students in a particular subject, get phone numbers of all employees, etc. Let’s see how we can achieve this with the...
[ { "code": null, "e": 24990, "s": 24962, "text": "\n28 Jul, 2020" }, { "code": null, "e": 25321, "s": 24990, "text": "In this article, we’ll see how to get all values of a column in a pandas dataframe in the form of a list. This can be very useful in many situations, suppose we ha...
How to use distinct and count in Android sqlite?
Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you d...
[ { "code": null, "e": 1457, "s": 1062, "text": "Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the re...
How Do Machines Learn?. Machine Learning Concept Explained for... | by Ali Masri | Towards Data Science
Recently, there has been a lot of fuss about the word Learning. We always hear about machine learning, deep learning, learning algorithms, etc. But what does this really mean? Did scientists find a way to create a brain-like component and implement it inside machines? Is it just a marketing word used to sell software a...
[ { "code": null, "e": 579, "s": 171, "text": "Recently, there has been a lot of fuss about the word Learning. We always hear about machine learning, deep learning, learning algorithms, etc. But what does this really mean? Did scientists find a way to create a brain-like component and implement it ins...
C# Aggregate() method
The Aggregate() method applies an accumulator function over a sequence. The following is our array − string[] arr = { "DemoOne", "DemoTwo", "DemoThree", "DemoFour"}; Now use the Aggregate() method. We have set the ssed value as “DemoFive” for comparison. string res = arr.AsQueryable().Aggregate("DemoFive", (longest, ne...
[ { "code": null, "e": 1134, "s": 1062, "text": "The Aggregate() method applies an accumulator function over a sequence." }, { "code": null, "e": 1163, "s": 1134, "text": "The following is our array −" }, { "code": null, "e": 1228, "s": 1163, "text": "string[] a...
Linear Diophantine Equations | Practice | GeeksforGeeks
A Diophantine equation is a polynomial equation, usually in two or more unknowns, such that only the integral solutions are required. An Integral solution is a solution such that all the unknown variables take only integer values. Given three integers A, B, C representing a linear equation of the form: Ax + By = C. Det...
[ { "code": null, "e": 469, "s": 238, "text": "A Diophantine equation is a polynomial equation, usually in two or more unknowns, such that only the integral solutions are required. An Integral solution is a solution such that all the unknown variables take only integer values." }, { "code": nu...
Hide Bootstrap Modal
The .modal(“hide”) method hides the modal on button click. Firstly, generate the modal and display it − $("#newModal").modal("show"); After that, use the modal(“hide”) method on a button to hide the modal on button click − $("#button1").click(function(){ $("#newModal").modal("hide"); }); Let us see an example of the ...
[ { "code": null, "e": 1121, "s": 1062, "text": "The .modal(“hide”) method hides the modal on button click." }, { "code": null, "e": 1166, "s": 1121, "text": "Firstly, generate the modal and display it −" }, { "code": null, "e": 1196, "s": 1166, "text": "$(\"#ne...
How to extract tables from PDF using Python Pandas and tabula-py | by Angelica Lo Duca | Towards Data Science
This tutorial is an improvement of my previous post, where I extracted multiple tables without Python pandas. In this tutorial, I will use the same PDF file, as that used in my previous post, with the difference that I manipulate the extracted tables with Python pandas. The code of this tutorial can be downloaded from ...
[ { "code": null, "e": 443, "s": 172, "text": "This tutorial is an improvement of my previous post, where I extracted multiple tables without Python pandas. In this tutorial, I will use the same PDF file, as that used in my previous post, with the difference that I manipulate the extracted tables with...
Concatenate columns from different tables in MySQL
You can use CONCAT(). Let us first create a table − mysql> create table DemoTable1 -> ( -> FirstName varchar(20) -> ); Query OK, 0 rows affected (0.90 sec) Insert some records in the table using insert command − mysql> insert into DemoTable1 values('Chris'); Query OK, 1 row affected (0.12 sec) mysql> insert in...
[ { "code": null, "e": 1114, "s": 1062, "text": "You can use CONCAT(). Let us first create a table −" }, { "code": null, "e": 1227, "s": 1114, "text": "mysql> create table DemoTable1\n -> (\n -> FirstName varchar(20)\n -> );\nQuery OK, 0 rows affected (0.90 sec)" }, { ...
Android | build.gradle - GeeksforGeeks
14 Sep, 2021 Gradle is a build system (open source) that is used to automate building, testing, deployment, etc. “build.gradle” are scripts where one can automate the tasks. For example, the simple task to copy some files from one directory to another can be performed by the Gradle build script before the actual build ...
[ { "code": null, "e": 24608, "s": 24580, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24933, "s": 24608, "text": "Gradle is a build system (open source) that is used to automate building, testing, deployment, etc. “build.gradle” are scripts where one can automate the tasks. Fo...
How to create clickable areas in an image in HTML?
To create clickable areas in an image, create an image map, with clickable areas. For example, on clicking a box, the different website opens and on clicking a triangle in the same image, a different website opens. The <area> tag defines an area inside an image-and nested inside a <map> tag. The following are the attri...
[ { "code": null, "e": 1277, "s": 1062, "text": "To create clickable areas in an image, create an image map, with clickable areas. For example, on clicking a box, the different website opens and on clicking a triangle in the same image, a different website opens." }, { "code": null, "e": 1...
<mat-menu> in Angular Material - GeeksforGeeks
25 Feb, 2021 Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it.The <mat-menu> ...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n25 Feb, 2021" }, { "code": null, "e": 26763, "s": 26354, "text": "Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to in...
Rotate a matrix clockwise by 90 degree without using any extra space | Set 3 - GeeksforGeeks
09 Jul, 2021 Given a rectangular matrix mat[][] with N rows and M columns, the task is to rotate the matrix by 90 degrees in a clockwise direction without using extra space. Examples: Input: mat[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}}Output: 10 7 4 1 11 8 5 2 12 9 6 3 Inp...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n09 Jul, 2021" }, { "code": null, "e": 26228, "s": 26067, "text": "Given a rectangular matrix mat[][] with N rows and M columns, the task is to rotate the matrix by 90 degrees in a clockwise direction without using extra space." ...
How to add a Pie Chart into an Android Application - GeeksforGeeks
13 May, 2020 Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio Android | How to Create/Start a New Project in Android Studio? Android | Running your first Android app A pie chart is a circular statistical graphic, which is divided into slices to illustrate num...
[ { "code": null, "e": 26123, "s": 26095, "text": "\n13 May, 2020" }, { "code": null, "e": 26139, "s": 26123, "text": "Pre-requisites:" }, { "code": null, "e": 26190, "s": 26139, "text": "Android App Development Fundamentals for Beginners" }, { "code": n...
Matplotlib - Rectangle Selector - GeeksforGeeks
16 Jul, 2021 Matplotlib is a python library for visualization. It provides various widgets to make the visualization of data simple. There are some cases when there is a need of selection of particular region of a graph. For this interactivity, Matplotlib provides RectangleSelector widget. This widget helps to select a...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n16 Jul, 2021" }, { "code": null, "e": 25950, "s": 25537, "text": "Matplotlib is a python library for visualization. It provides various widgets to make the visualization of data simple. There are some cases when there is a need o...
Minimum number of moves required to reach the destination by the king in a chess board - GeeksforGeeks
17 Jan, 2022 Given four integers sourceX, sourceY, destinationX and destinationY which represent the source and destination coordinates on a chessboard. The task is to find the minimum number of moves required by the king to reach from source to destination. A king can move to the square that has a common side or a com...
[ { "code": null, "e": 26525, "s": 26497, "text": "\n17 Jan, 2022" }, { "code": null, "e": 26942, "s": 26525, "text": "Given four integers sourceX, sourceY, destinationX and destinationY which represent the source and destination coordinates on a chessboard. The task is to find the...
GATE | Gate IT 2005 | Question 50 - GeeksforGeeks
28 Jun, 2021 In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most 2. If the height of the tree is h > 0, then the minimum number of nodes in the tree is:(A) 2h – 1(B) 2h – 1 + 1(C) 2h – 1(D) 2hAnswer: (B)Explanation: Let there be n(h) nodes at height h. ...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25926, "s": 25657, "text": "In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most 2. If the height of the tree is h > 0, then t...
How to Solve Java List UnsupportedOperationException? - GeeksforGeeks
09 Mar, 2021 The UnsupportedOperationException is one of the common exceptions that occur when we are working with some API of list implementation. It is thrown to indicate that the requested operation is not supported. This class is a member of the Java Collections Framework. All java errors implement the java.lang.Th...
[ { "code": null, "e": 25251, "s": 25223, "text": "\n09 Mar, 2021" }, { "code": null, "e": 25458, "s": 25251, "text": "The UnsupportedOperationException is one of the common exceptions that occur when we are working with some API of list implementation. It is thrown to indicate tha...
How to create Header in React.js ? - GeeksforGeeks
13 Dec, 2021 The Header is an important element of a website’s design. It’s the first impression of the website. It provides useful links to other areas of the website that the user may want to visit. In this article, we will create a functioning Header using React.js and Material UI. Approach: First we will create a b...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n13 Dec, 2021" }, { "code": null, "e": 26344, "s": 26071, "text": "The Header is an important element of a website’s design. It’s the first impression of the website. It provides useful links to other areas of the website that the...
Internal Structure of Python Dictionary - GeeksforGeeks
22 Nov, 2021 Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only a single value as an element, Dictionary holds key:value pair. Key-value is provided in the dictionary to make it more optimized The dictionary consists of a nu...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Nov, 2021" }, { "code": null, "e": 25813, "s": 25537, "text": "Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only a single value a...
Sort a nearly sorted array using STL - GeeksforGeeks
30 Jun, 2021 Given an array of n elements, where each element is at most k away from its target position, devise an algorithm that sorts in O(n log k) time. For example, let us consider k is 2, an element at index 7 in the sorted array, can be at indexes 5, 6, 7, 8, 9 in the given array. It may be assumed that k < n. E...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n30 Jun, 2021" }, { "code": null, "e": 26371, "s": 26065, "text": "Given an array of n elements, where each element is at most k away from its target position, devise an algorithm that sorts in O(n log k) time. For example, let us...
Scala Int toString() method with example - GeeksforGeeks
04 Feb, 2020 The toString() method is utilized to return the string representation of the specified value. Method Definition: def toString(): String Return Type: It returns the string representation of the specified value. Example #1: // Scala program of Int toString()// method // Creating object object GfG { /...
[ { "code": null, "e": 25127, "s": 25099, "text": "\n04 Feb, 2020" }, { "code": null, "e": 25221, "s": 25127, "text": "The toString() method is utilized to return the string representation of the specified value." }, { "code": null, "e": 25263, "s": 25221, "text...
Lodash _.size() Method - GeeksforGeeks
10 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, collection, strings, objects, numbers etc.The _.size() method gets the size of collection by returning its length for array such as values or the number of own enumerable string keyed properties for ...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n10 Sep, 2020" }, { "code": null, "e": 26861, "s": 26545, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, collection, strings, objects, numbers etc.The _.size() ...
Longest palindromic string formed by concatenation of prefix and suffix of a string
14 Mar, 2022 Given string str, the task is to find the longest palindromic substring formed by the concatenation of the prefix and suffix of the given string str. Examples: Input: str = “rombobinnimor” Output: rominnimor Explanation: The concatenation of string “rombob”(prefix) and “mor”(suffix) is “rombobmor” which i...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Mar, 2022" }, { "code": null, "e": 202, "s": 52, "text": "Given string str, the task is to find the longest palindromic substring formed by the concatenation of the prefix and suffix of the given string str." }, { "code": nu...
UGC-NET | UGC NET CS 2016 Aug – III | Question 24
05 Aug, 2021 Consider the following identities for regular expressions:(a) (r + s)* = (s + r)*(b) (r*)* = r*(c) (r* s*)* = (r + s)*Which of the above identities are true?(A) (a) and (b) only(B) (b) and (c) only(C) (c) and (a) only(D) (a), (b) and (c)Answer: (D)Explanation: (r + s)* will generate any strings containing ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Aug, 2021" }, { "code": null, "e": 289, "s": 28, "text": "Consider the following identities for regular expressions:(a) (r + s)* = (s + r)*(b) (r*)* = r*(c) (r* s*)* = (r + s)*Which of the above identities are true?(A) (a) and (b) on...
Output of C Program | Set 17
31 Jul, 2018 Predict the output of following C programs. Question 1 #include<stdio.h> #define R 10#define C 20 int main(){ int (*p)[R][C]; printf("%d", sizeof(*p)); getchar(); return 0;} Output: 10*20*sizeof(int) which is “800” for compilers with integer size as 4 bytes.The pointer p is de-referenced, hence ...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 Jul, 2018" }, { "code": null, "e": 98, "s": 54, "text": "Predict the output of following C programs." }, { "code": null, "e": 109, "s": 98, "text": "Question 1" }, { "code": "#include<stdio.h> #define R ...
How to remove text from a string in JavaScript?
22 Nov, 2019 There are three methods to remove the text from a string which are listed below: Method 1: Using replace() method: The replace method can be used to replace the specified string with another string. It takes two parameters, first is the string to be replaced and the second is the string which is replacing ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2019" }, { "code": null, "e": 109, "s": 28, "text": "There are three methods to remove the text from a string which are listed below:" }, { "code": null, "e": 518, "s": 109, "text": "Method 1: Using replace()...
Primitive root of a prime number n modulo n
08 Mar, 2022 Given a prime number n, the task is to find its primitive root under modulo n. The primitive root of a prime number n is an integer r between[1, n-1] such that the values of r^x(mod n) where x is in the range[0, n-2] are different. Return -1 if n is a non-prime number. Examples: Input : 7 Output : Smalle...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Mar, 2022" }, { "code": null, "e": 322, "s": 52, "text": "Given a prime number n, the task is to find its primitive root under modulo n. The primitive root of a prime number n is an integer r between[1, n-1] such that the values of ...
Strategy Method – Python Design Patterns
15 Dec, 2021 The strategy method is Behavioral Design pattern that allows you to define the complete family of algorithms, encapsulates each one and putting each of them into separate classes and also allows to interchange there objects. It is implemented in Python by dynamically replacing the content of a method defin...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Dec, 2021" }, { "code": null, "e": 508, "s": 28, "text": "The strategy method is Behavioral Design pattern that allows you to define the complete family of algorithms, encapsulates each one and putting each of them into separate clas...
Strings from an array which are not prefix of any other string
31 May, 2022 Given an array arr[] of strings, the task is to print the strings from the array which are not prefix of any other string from the same array.Examples: Input: arr[] = {“apple”, “app”, “there”, “the”, “like”} Output: apple like there Here “app” is a prefix of “apple” Hence, it is not printed and “the” is ...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 May, 2022" }, { "code": null, "e": 208, "s": 54, "text": "Given an array arr[] of strings, the task is to print the strings from the array which are not prefix of any other string from the same array.Examples: " }, { "code"...
How to serialize an object to query string using jQuery ?
10 Dec, 2019 Given a jQuery object and the task is to serialize the object element into the query string using JQuery. Approach 1: Declare an object and store it into the variable. Use JSON.stringify() method to convert the object into strings and display the string contents. Use param() method to serialize the object ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2019" }, { "code": null, "e": 134, "s": 28, "text": "Given a jQuery object and the task is to serialize the object element into the query string using JQuery." }, { "code": null, "e": 146, "s": 134, "text": "...
Implementation of Array class in JavaScript
27 Feb, 2019 This article implementing Arrays using JavaScript. An Array is a simple data Structure, in which elements are stored in contiguous memory locations. Implementation of arrays performs various operations like push (adding element), pop (deleting element) element at the end of the array, getting the element f...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Feb, 2019" }, { "code": null, "e": 411, "s": 28, "text": "This article implementing Arrays using JavaScript. An Array is a simple data Structure, in which elements are stored in contiguous memory locations. Implementation of arrays p...
Create Address Book in Python – Using Tkinter
28 Apr, 2021 Prerequisite: Tkinter In this article, we will discuss how to create an address book in Tkinter using Python. Step 1: Creating GUI. In this, we will add all the GUI Components like labels, text area and buttons. Python3 # Import Modulefrom tkinter import * # Create Objectroot = Tk() # Set geometryroot.ge...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Apr, 2021" }, { "code": null, "e": 50, "s": 28, "text": "Prerequisite: Tkinter" }, { "code": null, "e": 138, "s": 50, "text": "In this article, we will discuss how to create an address book in Tkinter using Python...
fmt.Scanf() Function in Golang With Examples
26 Feb, 2021 In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Scanf() function in Go language scans the input texts which is given in the standard input, reads from there and stores the successive space-separated values into successive arguments...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Feb, 2021" }, { "code": null, "e": 508, "s": 28, "text": "In Go language, fmt package implements formatted I/O with functions analogous to C’s printf() and scanf() function. The fmt.Scanf() function in Go language scans the input tex...
How to Install PHP on AWS EC2?
30 Nov, 2021 AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual computer o...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Nov, 2021" }, { "code": null, "e": 525, "s": 54, "text": "AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Comput...
How to Generate a Random Password using JavaScript ?
25 Apr, 2022 The task is to generate a random password that may consist of alphabets, numbers, and special characters. This can be achieved in various ways in this article we will discuss the most popular two methods which are discussed below to solve the problem. Approach 1: Make a string consist of Alphabets(lowercas...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Apr, 2022" }, { "code": null, "e": 306, "s": 54, "text": "The task is to generate a random password that may consist of alphabets, numbers, and special characters. This can be achieved in various ways in this article we will discuss...
Protecting Excel Worksheets and Workbooks
29 Jun, 2021 Sometimes while sharing your spreadsheets you may not want the receiver to change the content of your worksheet or perhaps change only specific content and leave the rest untouched. To protect your worksheet from being edited by other people, Excel offers a protection feature. By following a couple of step...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2021" }, { "code": null, "e": 374, "s": 28, "text": "Sometimes while sharing your spreadsheets you may not want the receiver to change the content of your worksheet or perhaps change only specific content and leave the rest unto...
How do we use checkbox buttons in HTML forms?
Using HTML forms, you can easily take user input. The <form> tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc. Let’s learn about how to use radio checkbox in HTML forms to get user input. Checkboxes are used when more...
[ { "code": null, "e": 1401, "s": 1187, "text": "Using HTML forms, you can easily take user input. The <form> tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc." }, { "code": null, "e": 16...
Differences between SQL and SQLite
13 Aug, 2020 1. Structured Query Language (SQL) :SQL stands for Structured Query Language. SQL can access, created and manage databases. SQL has became standard of American National Standards Institute. 2. SQLite :SQLite is software which provides relational database management system. SQLite lightweight in terms of se...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Aug, 2020" }, { "code": null, "e": 243, "s": 53, "text": "1. Structured Query Language (SQL) :SQL stands for Structured Query Language. SQL can access, created and manage databases. SQL has became standard of American National Stand...
Python – Filter list elements starting with given Prefix
30 Jun, 2020 Sometimes, we need to filter the list with the first character of each string in the list. This type of task has many applications in day-day programming and even in the competitive programming domain. Let’s discuss certain ways in which this task can be performed. Method #1 : Using list comprehension + st...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2020" }, { "code": null, "e": 294, "s": 28, "text": "Sometimes, we need to filter the list with the first character of each string in the list. This type of task has many applications in day-day programming and even in the compe...
Fibonacci modulo p - GeeksforGeeks
24 Mar, 2021 The Fibonacci sequence is defined as = + where = 1 and = 1 are the seeds. For a given prime number p, consider a new sequence which is (Fibonacci sequence) mod p. For example for p = 5, the new sequence would be 1, 1, 2, 3, 0, 3, 3, 1, 4, 0, 4, 4 ... The minimal zero of the new sequence is defined as the f...
[ { "code": null, "e": 25886, "s": 25858, "text": "\n24 Mar, 2021" }, { "code": null, "e": 26340, "s": 25886, "text": "The Fibonacci sequence is defined as = + where = 1 and = 1 are the seeds. For a given prime number p, consider a new sequence which is (Fibonacci sequence) mod p. ...
Python - Facial and hand recognition using MediaPipe Holistic - GeeksforGeeks
03 Nov, 2021 Object Detection is one of the leading and most popular use cases in the domain of computer vision. Several object detection models are used worldwide for their particular use case applications. Many of these models have been used as an independent solution to a single computer vision task with its own fix...
[ { "code": null, "e": 26123, "s": 26095, "text": "\n03 Nov, 2021" }, { "code": null, "e": 26560, "s": 26123, "text": "Object Detection is one of the leading and most popular use cases in the domain of computer vision. Several object detection models are used worldwide for their pa...
Sum of Factors of a Number using Prime Factorization - GeeksforGeeks
19 May, 2021 Given a number N. The task is to find the sum of all factors of the given number N. Examples: Input : N = 12 Output : 28 All factors of 12 are: 1,2,3,4,6,12 Input : 60 Output : 168 Approach: Suppose N = 1100, the idea is to first find the prime factorization of the given number N. Therefore, the prime ...
[ { "code": null, "e": 25911, "s": 25883, "text": "\n19 May, 2021" }, { "code": null, "e": 25995, "s": 25911, "text": "Given a number N. The task is to find the sum of all factors of the given number N." }, { "code": null, "e": 26007, "s": 25995, "text": "Exampl...
map::at() in C++ STL - GeeksforGeeks
28 Sep, 2021 Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key values. at() function is used to reference the element mapped to the key value given as the parameter to the function. For example, if we have a s...
[ { "code": null, "e": 25369, "s": 25341, "text": "\n28 Sep, 2021" }, { "code": null, "e": 25538, "s": 25369, "text": "Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key va...
How to Create Animated Loader Ring using HTML and CSS? - GeeksforGeeks
11 May, 2020 The Loader Ring can be easily generated using HTML and CSS. The Loader Ring displays when the browsers are loading web pages. To create a loader ring, we will make the use of CSS animations that allows animation of HTML elements. HTML Code is used to create a basic structure of the animated loader ring and...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n11 May, 2020" }, { "code": null, "e": 26851, "s": 26621, "text": "The Loader Ring can be easily generated using HTML and CSS. The Loader Ring displays when the browsers are loading web pages. To create a loader ring, we will make...
JavaScript ReferenceError - variable is not defined - GeeksforGeeks
31 Jul, 2020 This JavaScript exception variable is not defined occurs if there is a non-existent variable that is referenced somewhere. Message: ReferenceError: "x" is not defined Error Type: ReferenceError Cause of Error: There is a non-existent variable that is referenced somewhere in the script. That variable has ...
[ { "code": null, "e": 26543, "s": 26515, "text": "\n31 Jul, 2020" }, { "code": null, "e": 26666, "s": 26543, "text": "This JavaScript exception variable is not defined occurs if there is a non-existent variable that is referenced somewhere." }, { "code": null, "e": 266...
Express.js res.jsonp() Function - GeeksforGeeks
19 Aug, 2021 The res.jsonp() function is used to send a JSON response with JSONP support and this function is similar to the res.json() function except that it opts-in to the support of JSONP callback. Syntax: res.jsonp( [body] ) Parameter: The body parameter describes the body type which can be sent in response.Retur...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n19 Aug, 2021" }, { "code": null, "e": 26456, "s": 26267, "text": "The res.jsonp() function is used to send a JSON response with JSONP support and this function is similar to the res.json() function except that it opts-in to the s...
Java.net.NetworkInterface class in Java - GeeksforGeeks
12 Feb, 2022 This class represents network interface, both software as well as hardware, its name, list of IP addresses assigned to it, and all related information. It can be used in cases when we want to specifically use a particular interface for transmitting our packet on a system with multiple NICs. What is a Netwo...
[ { "code": null, "e": 25597, "s": 25569, "text": "\n12 Feb, 2022" }, { "code": null, "e": 26180, "s": 25597, "text": "This class represents network interface, both software as well as hardware, its name, list of IP addresses assigned to it, and all related information. It can be u...
Turn a Matrix into a Row Vector in MATLAB - GeeksforGeeks
04 Jul, 2021 Conversion of a Matrix into a Row Vector. This conversion can be done using reshape() function along with the Transpose operation. This reshape() function is used to reshape the specified matrix using the given size vector. reshape(A, sz) Parameters: This function accepts two parameters, which are illustra...
[ { "code": null, "e": 25777, "s": 25749, "text": "\n04 Jul, 2021" }, { "code": null, "e": 26001, "s": 25777, "text": "Conversion of a Matrix into a Row Vector. This conversion can be done using reshape() function along with the Transpose operation. This reshape() function is used ...
Launching an EC2 instance using AWS CLI - GeeksforGeeks
26 Aug, 2020 In this article, we will look into the process of launching instances that is through AWS CLI(Command Line Interface). AWS CLI is a unified tool for running and managing your various AWS services. Just download and install the tool and you will be able to control multiple AWS services from the command lin...
[ { "code": null, "e": 25653, "s": 25625, "text": "\n26 Aug, 2020" }, { "code": null, "e": 25773, "s": 25653, "text": "In this article, we will look into the process of launching instances that is through AWS CLI(Command Line Interface). " }, { "code": null, "e": 26025,...
Keep your Notebooks Consistent with JupyterLab Templates | by Luke Gloege, Ph.D. | Towards Data Science
I spend most of my day working in JupyterLab and each notebook I create tends to have a similar structure. Instead of copy and pasting notebooks, the JupyterLab Templates extension is a solution that allows you to create notebooks you can reuse. This short post will outline how to install and set up this extension. Ins...
[ { "code": null, "e": 418, "s": 172, "text": "I spend most of my day working in JupyterLab and each notebook I create tends to have a similar structure. Instead of copy and pasting notebooks, the JupyterLab Templates extension is a solution that allows you to create notebooks you can reuse." }, {...
Java else Keyword
❮ Java Keywords Use the else statement to specify a block of code to be executed if the condition is false. int time = 20; if (time < 18) { System.out.println("Good day."); } else { System.out.println("Good evening."); } // Outputs "Good evening." Try it Yourself » The else statement specifies a block of Java c...
[ { "code": null, "e": 18, "s": 0, "text": "\n❮ Java Keywords\n" }, { "code": null, "e": 110, "s": 18, "text": "Use the else statement to specify a block of code to be executed if the condition is false." }, { "code": null, "e": 255, "s": 110, "text": "int time ...
Better, Faster, Stronger Python Exploratory Data Analysis (EDA) | by Philippe Bouaziz,Data Scientist at Africa4Data,PhD | Towards Data Science
Exploratory data analysis (EDA) is a fundamental step in the understanding of most data science projects whether your developing machine learning models or business analytics. This process consists of handling missing data, coding data types (continuous, categorical), calculate associations-correlations between feature...
[ { "code": null, "e": 997, "s": 172, "text": "Exploratory data analysis (EDA) is a fundamental step in the understanding of most data science projects whether your developing machine learning models or business analytics. This process consists of handling missing data, coding data types (continuous, ...
How to Insert Hyperlink in HTML Page?
With HTML, easily add hyperlinks to any HTML page. Link team page, about page, or even a test by creating it a hyperlink. You can also create a hyperlink for an external website. To make a hyperlink in an HTML page, use the <a> and </a> tags, which are the tags used to define the links. The <a> tag indicates where the ...
[ { "code": null, "e": 1350, "s": 1062, "text": "With HTML, easily add hyperlinks to any HTML page. Link team page, about page, or even a test by creating it a hyperlink. You can also create a hyperlink for an external website. To make a hyperlink in an HTML page, use the <a> and </a> tags, which are ...
Why training set should always be smaller than test set | by Gianluca Malato | Towards Data Science
In the machine learning world, data scientists are often told to train a supervised model on a large training dataset and test it on a smaller amount of data. The reason why training dataset is always chosen larger than the test one is that somebody says that the larger the data used for training, the better the model ...
[ { "code": null, "e": 499, "s": 171, "text": "In the machine learning world, data scientists are often told to train a supervised model on a large training dataset and test it on a smaller amount of data. The reason why training dataset is always chosen larger than the test one is that somebody says ...
Get the sum only from specific cells in MySQL?
For only specific cells, set a condition with WHERE and use aggregate function SUM() to add. Let us first create a table − mysql> create table DemoTable1370 -> ( -> StudentName varchar(20), -> Marks int -> ); Query OK, 0 rows affected (0.87 sec) Insert some records in the table using insert command − mysql>...
[ { "code": null, "e": 1185, "s": 1062, "text": "For only specific cells, set a condition with WHERE and use aggregate function SUM() to add. Let us first create a table −" }, { "code": null, "e": 1320, "s": 1185, "text": "mysql> create table DemoTable1370\n -> (\n -> StudentNa...
What is the difference between DB2 JOIN and UNION? Explain with the help of an example
Both JOIN and UNION are used to combine the data from one or more tables. In case of JOIN, the additional data appears in column while in case of UNION additional data appears in rows. For example, Suppose we have two DB2 tables, ORDERS and TRANSACTIONS. We have to extract TRANSACTION_ID for each ORDER_ID, then we will...
[ { "code": null, "e": 1247, "s": 1062, "text": "Both JOIN and UNION are used to combine the data from one or more tables. In case of JOIN, the additional data appears in column while in case of UNION additional data appears in rows." }, { "code": null, "e": 1260, "s": 1247, "text"...
How to iterate over a callback n times in JavaScript ?
17 Feb, 2022 Given a callback function we have to iterate over a callback n times. The callback is a function that is passed as an argument. for iterate over callback function, we have to run callback function n time. Approach 1: We use recursion to iterate n times callback function. First create callback function fact...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Feb, 2022" }, { "code": null, "e": 233, "s": 28, "text": "Given a callback function we have to iterate over a callback n times. The callback is a function that is passed as an argument. for iterate over callback function, we have to ...
Python | Check if all elements in a list are identical
18 Jan, 2019 Given a list, write a Python program to check if all the elements in that list are identical. Examples: Input : ['a', 'b', 'c'] Output : False Input : [1, 1, 1, 1] Output : True Approach #1 : Using loopStart a for loop and check if first element is identical to all other elements in the list. This approa...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jan, 2019" }, { "code": null, "e": 122, "s": 28, "text": "Given a list, write a Python program to check if all the elements in that list are identical." }, { "code": null, "e": 132, "s": 122, "text": "Examples:" ...
numpy.ix_() function | Python
22 Apr, 2020 numpy.ix_() function construct an open mesh from multiple sequences. This function takes N 1-D sequences and returns N outputs with N dimensions each, such that the shape is 1 in all but one dimension and the dimension with the non-unit shape value cycles through all N dimensions. Syntax : numpy.ix_(args)P...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 310, "s": 28, "text": "numpy.ix_() function construct an open mesh from multiple sequences. This function takes N 1-D sequences and returns N outputs with N dimensions each, such that the shape is 1...
D3.js | d3.map.values() Function
28 Jun, 2019 The map.values() function in D3.js used to return an array of values for every entry in the created map. The order of the returned values are arbitrary. Syntax: d3.map.values() Parameters: This function does not accept any parameters. Return Value: This function returns an array of values for every entry i...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2019" }, { "code": null, "e": 181, "s": 28, "text": "The map.values() function in D3.js used to return an array of values for every entry in the created map. The order of the returned values are arbitrary." }, { "code": ...
Chain of Pointers in C with Examples
18 Jan, 2022 Prerequisite: Pointers in C, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable. A pointer stores the address of a variable.Similarly, a chain of pointers is when there are multiple levels of pointers. Simplifying, a pointer points to address of a variable...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Jan, 2022" }, { "code": null, "e": 455, "s": 52, "text": "Prerequisite: Pointers in C, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable. A pointer stores the address of a variable...