title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Python Remove Duplicates from a List - GeeksforGeeks | 19 Dec, 2020
The job is simple. We need to take a list, with duplicate elements in it and generate another list which only contains the element without the duplicates in them.
Examples:
Input : [2, 4, 10, 20, 5, 2, 20, 4]
Output : [2, 4, 10, 20, 5]
Input : [28, 42, 28, 16, 90, 42, 42, 28]
Output : [28, 42, 16, 90]
W... | [
{
"code": null,
"e": 26485,
"s": 26457,
"text": "\n19 Dec, 2020"
},
{
"code": null,
"e": 26648,
"s": 26485,
"text": "The job is simple. We need to take a list, with duplicate elements in it and generate another list which only contains the element without the duplicates in them."... |
An Uncommon representation of array elements - GeeksforGeeks | 09 Nov, 2020
Consider the below program.
int main( ){ int arr[2] = {0,1}; printf("First Element = %d\n",arr[0]); getchar(); return 0;}
Pretty Simple program.. huh... Output will be 0.
Now if you replace arr[0] with 0[arr], the output would be same. Because compiler converts the array operation in pointers before ac... | [
{
"code": null,
"e": 25985,
"s": 25957,
"text": "\n09 Nov, 2020"
},
{
"code": null,
"e": 26013,
"s": 25985,
"text": "Consider the below program."
},
{
"code": "int main( ){ int arr[2] = {0,1}; printf(\"First Element = %d\\n\",arr[0]); getchar(); return 0;}",
"e": ... |
XMPP Protocol - GeeksforGeeks | 21 Mar, 2018
XMPP is a short form for Extensible Messaging Presence Protocol. It’s protocol for streaming XML elements over a network in order to exchange messages and presence information in close to real time. This protocol is mostly used by instant messaging applications like WhatsApp.
Let’s dive into each character... | [
{
"code": null,
"e": 26195,
"s": 26167,
"text": "\n21 Mar, 2018"
},
{
"code": null,
"e": 26472,
"s": 26195,
"text": "XMPP is a short form for Extensible Messaging Presence Protocol. It’s protocol for streaming XML elements over a network in order to exchange messages and presence... |
Apex - Classes | A class is a template or blueprint from which objects are created. An object is an instance of a class. This is the standard definition of Class. Apex Classes are similar to Java Classes.
For example, InvoiceProcessor class describes the class which has all the methods and actions that can be performed on the Invoice. ... | [
{
"code": null,
"e": 2240,
"s": 2052,
"text": "A class is a template or blueprint from which objects are created. An object is an instance of a class. This is the standard definition of Class. Apex Classes are similar to Java Classes."
},
{
"code": null,
"e": 2486,
"s": 2240,
"te... |
Make an image responsive with Bootstrap | To make an image responsive in Bootstrap, add a class .img-responsive to the <img> tag. This class applies max-width: 100%; and height: auto; to the image so that it scales nicely to the parent element.
The following is how you can simply make an image responsive −
Live Demo
<!DOCTYPE html>
<html>
<head>
<tit... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "To make an image responsive in Bootstrap, add a class .img-responsive to the <img> tag. This class applies max-width: 100%; and height: auto; to the image so that it scales nicely to the parent element."
},
{
"code": null,
"e": 1328,
"s"... |
Python - Next N elements from K value - GeeksforGeeks | 11 Oct, 2020
Given a List, get next N values from occurrence of K value in List.
Input : test_list = [3, 4, 6, 7, 8, 4, 7, 2, 1, 8, 4, 2, 3, 9], N = 1, K = 4 Output : [6, 7, 2] Explanation : All successive elements to 4 are extracted as N = 1.
Input : test_list = [3, 4, 6, 7, 8, 4, 7, 2, 1, 8, 4, 2, 3, 9], N = 2, K = 7... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n11 Oct, 2020"
},
{
"code": null,
"e": 24280,
"s": 24212,
"text": "Given a List, get next N values from occurrence of K value in List."
},
{
"code": null,
"e": 24443,
"s": 24280,
"text": "Input : test_list = [3... |
Create Dashboards in Python for Data Science Projects | Towards Data Science | I don’t have to convince you why we need an interactive dashboard. But what most people don’t know is that they don’t have to buy expensive licenses of Tableau or PowerBI. You don’t have to enroll in a JavaScript course either.
Dash apps allow you to build interactive dashboards purely in Python. Interestingly, it coul... | [
{
"code": null,
"e": 399,
"s": 171,
"text": "I don’t have to convince you why we need an interactive dashboard. But what most people don’t know is that they don’t have to buy expensive licenses of Tableau or PowerBI. You don’t have to enroll in a JavaScript course either."
},
{
"code": null,... |
Create a list with random values in R - GeeksforGeeks | 02 Sep, 2021
In this article, we are going to see how to create a list with random values in R programming language.
The list can store data of multiple data type. A List can store multiple R objects like different types of atomic vectors such as character, numeric, logical. We can create a list using list() function. ... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 25346,
"s": 25242,
"text": "In this article, we are going to see how to create a list with random values in R programming language."
},
{
"code": null,
"e": 25590,
"s": 25346,... |
Python | Pattern Generation using time() module - GeeksforGeeks | 08 Jun, 2020
This article aims to print patterns using the time() module in python.Examples:
Input :5Output :5 patterns using time with 5 rows
Input :4Output :5 patterns using time with 4 rows, but for diamond if youwill enter even number of rows, it will automatically do (row+1)
Code : Python program to generate patte... | [
{
"code": null,
"e": 24517,
"s": 24489,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 24597,
"s": 24517,
"text": "This article aims to print patterns using the time() module in python.Examples:"
},
{
"code": null,
"e": 24647,
"s": 24597,
"text": "Input :5Ou... |
Tryit Editor v3.6 - Show React | import ReactDOM from "react-dom/client";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Layout from "./pages/Layout";
import Home from "./pages/Home";
import Blogs from "./pages/Blogs";
import Contact from "./pages/Contact";
import NoPage from "./pages/NoPage";
export default function App() {
... | [
{
"code": null,
"e": 771,
"s": 0,
"text": "\nimport ReactDOM from \"react-dom/client\";\nimport { BrowserRouter, Routes, Route } from \"react-router-dom\";\nimport Layout from \"./pages/Layout\";\nimport Home from \"./pages/Home\";\nimport Blogs from \"./pages/Blogs\";\nimport Contact from \"./pages... |
A data structure for n elements and O(1) operations - GeeksforGeeks | 08 May, 2017
Propose a data structure for the following:The data structure would hold elements from 0 to n-1. There is no order on the elements (no ascending/descending order requirement)
The complexity of the operations should be as follows:* Insertion of an element – O(1)* Deletion of an element – O(1)* Finding an el... | [
{
"code": null,
"e": 24820,
"s": 24792,
"text": "\n08 May, 2017"
},
{
"code": null,
"e": 24995,
"s": 24820,
"text": "Propose a data structure for the following:The data structure would hold elements from 0 to n-1. There is no order on the elements (no ascending/descending order r... |
Algorithms from Scratch: Decision Tree | by Kurtis Pykes | Towards Data Science | Those of you familiar with my earlier writings would recall that I once wrote an overview of the Random Forest algorithm. A solid foundation on Decision trees is a prerequisite to understanding the inner workings of Random Forest; The Random forest builds multiple Decision tree’s and outputs the average over the predic... | [
{
"code": null,
"e": 635,
"s": 172,
"text": "Those of you familiar with my earlier writings would recall that I once wrote an overview of the Random Forest algorithm. A solid foundation on Decision trees is a prerequisite to understanding the inner workings of Random Forest; The Random forest builds... |
How to catch OverflowError Exception in Python? | When an arithmetic operation exceeds the limits of the variable type, an OverflowError is raised. Long integers allocate more space as values grow, so they end up raising MemoryError. Floating point exception handling is not standardized, however. Regular integers are converted to long values as needed.
Given code is r... | [
{
"code": null,
"e": 1367,
"s": 1062,
"text": "When an arithmetic operation exceeds the limits of the variable type, an OverflowError is raised. Long integers allocate more space as values grow, so they end up raising MemoryError. Floating point exception handling is not standardized, however. Regul... |
How to use Boto3 to paginate through all objects of a S3 bucket present in AWS Glue | Problem Statement: Use boto3 library in Python to paginate through all objects of a S3 bucket from AWS Glue Data Catalog that is created in your account
Step 1: Import boto3 and botocore exceptions to handle exceptions.
Step 1: Import boto3 and botocore exceptions to handle exceptions.
Step 2:
max_items, page_size and ... | [
{
"code": null,
"e": 1215,
"s": 1062,
"text": "Problem Statement: Use boto3 library in Python to paginate through all objects of a S3 bucket from AWS Glue Data Catalog that is created in your account"
},
{
"code": null,
"e": 1282,
"s": 1215,
"text": "Step 1: Import boto3 and boto... |
Handling Multi-Collinearity in ML Models | by Vishwa Pardeshi | Towards Data Science | Multiple linear regression models are used to model relationship between response/dependent variables and explanatory/independent variables. However, several problems such as multi-collinearity, correlation of variance of error terms, non-linearity impact the model’s interpretability. In this article, multi-collinearit... | [
{
"code": null,
"e": 556,
"s": 171,
"text": "Multiple linear regression models are used to model relationship between response/dependent variables and explanatory/independent variables. However, several problems such as multi-collinearity, correlation of variance of error terms, non-linearity impact... |
Build a Simple Neural Network using Numpy | by Ramesh Paudel, Ph.D. | Towards Data Science | In this article, we will discuss how to make a simple neural network using NumPy.
Import Libraries
Import Libraries
First, we will import all the packages that we will need. We will need numpy, h5py (for loading dataset stored in H5 file), and matplotlib (for plotting).
import numpy as npimport matplotlib.pyplot as plt... | [
{
"code": null,
"e": 254,
"s": 172,
"text": "In this article, we will discuss how to make a simple neural network using NumPy."
},
{
"code": null,
"e": 271,
"s": 254,
"text": "Import Libraries"
},
{
"code": null,
"e": 288,
"s": 271,
"text": "Import Libraries"
... |
Convert HTML table to array in JavaScript? | Get data from tag using find() and store that data into array using push(). Let’s say the following is our table −
<table id="details">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr><td>John</td><td>23</td>
<tr><td>David</td><td>26</td>
</tbody>
</table>
Let’s fetch the data from <td> and store in ... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "Get data from tag using find() and store that data into array using push(). Let’s say the following is our table −"
},
{
"code": null,
"e": 1338,
"s": 1177,
"text": "<table id=\"details\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Age</th>\... |
Python read values from dict - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
The values() method returns a new view of the... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Files Class writeString() Method in Java with Examples - GeeksforGeeks | 05 Feb, 2021
The writeString() method of File Class in Java is used to write contents to the specified file.
Syntax:
Files.writeString(path, string, options)
Parameters:
path – File path with data type as Path
string – a specified string which will enter in the file with return type String.
options – Different options... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n05 Feb, 2021"
},
{
"code": null,
"e": 24044,
"s": 23948,
"text": "The writeString() method of File Class in Java is used to write contents to the specified file."
},
{
"code": null,
"e": 24052,
"s": 24044,
"te... |
Evaluating linear relationships. How to use scatterplots, correlation... | by Emily A. Halford | Towards Data Science | One of the most common analyses conducted by data scientists is the evaluation of linear relationships between numeric variables. These relationships can be visualized using scatterplots, and this step should be taken regardless of any further analyses that are conducted. Regression analyses and correlation coefficient... | [
{
"code": null,
"e": 651,
"s": 172,
"text": "One of the most common analyses conducted by data scientists is the evaluation of linear relationships between numeric variables. These relationships can be visualized using scatterplots, and this step should be taken regardless of any further analyses th... |
JQuery | Get the text of a span element - GeeksforGeeks | 03 Aug, 2021
Given an HTML document and the task is to get the text of a <span> tag using JQuery.
Method 1: Using jQuery text() Method: This method is used to set or return the text content of specified elements. If this method is used to return content, it returns the text content of all matched elements (HTML tags wi... | [
{
"code": null,
"e": 24435,
"s": 24407,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 24520,
"s": 24435,
"text": "Given an HTML document and the task is to get the text of a <span> tag using JQuery."
},
{
"code": null,
"e": 24848,
"s": 24520,
"text": "Metho... |
Using SAP ABAP, how can I read content of CSV files in a directory to an internal table? | There are many functions that can be used to read csv however many are broken and read part of content. You need to go through each file and then process the file content. I would prefer to perform this manually.
You can use the READ DATASET to read data from a file on the application server. Below is the syntax:
READ ... | [
{
"code": null,
"e": 1275,
"s": 1062,
"text": "There are many functions that can be used to read csv however many are broken and read part of content. You need to go through each file and then process the file content. I would prefer to perform this manually."
},
{
"code": null,
"e": 137... |
Fade in tab with Bootstrap | Use the .in class in Bootstrap to fade in the tab.
You can try to run the following code to fade in tab −
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>
... | [
{
"code": null,
"e": 1113,
"s": 1062,
"text": "Use the .in class in Bootstrap to fade in the tab."
},
{
"code": null,
"e": 1168,
"s": 1113,
"text": "You can try to run the following code to fade in tab −"
},
{
"code": null,
"e": 1178,
"s": 1168,
"text": "Live ... |
Firebase (sign in with Google) Authentication in Node.js using Firebase UI and Cookie Sessions - GeeksforGeeks | 26 Aug, 2020
Firebase Authentication provides the backend services that are easy-to-use SDKs and ready-made UI libraries to authenticate users to your app.
Prerequisites: Basic knowledge of node, JavaScript and firebase.
Setup: First we need to create a Firebase Project, head over to firebase Console and create a new p... | [
{
"code": null,
"e": 24928,
"s": 24900,
"text": "\n26 Aug, 2020"
},
{
"code": null,
"e": 25071,
"s": 24928,
"text": "Firebase Authentication provides the backend services that are easy-to-use SDKs and ready-made UI libraries to authenticate users to your app."
},
{
"code"... |
DateTime.AddMonths() Method in C# - GeeksforGeeks | 18 Jan, 2019
This method is used to return a new DateTime that adds the specified number of months to the value of this instance.
Syntax:
public DateTime AddMonths (int months);
Here, months is the number of months. The months parameter can be negative or positive.
Return Value: This method returns an object whose valu... | [
{
"code": null,
"e": 24504,
"s": 24476,
"text": "\n18 Jan, 2019"
},
{
"code": null,
"e": 24621,
"s": 24504,
"text": "This method is used to return a new DateTime that adds the specified number of months to the value of this instance."
},
{
"code": null,
"e": 24629,
... |
Scrapy - Extracting Items | For extracting data from web pages, Scrapy uses a technique called selectors based on XPath and CSS expressions. Following are some examples of XPath expressions −
/html/head/title − This will select the <title> element, inside the <head> element of an HTML document.
/html/head/title − This will select the <title> elem... | [
{
"code": null,
"e": 2401,
"s": 2237,
"text": "For extracting data from web pages, Scrapy uses a technique called selectors based on XPath and CSS expressions. Following are some examples of XPath expressions −"
},
{
"code": null,
"e": 2505,
"s": 2401,
"text": "/html/head/title −... |
How to implement an instance method of an arbitrary object using method reference in Java? | A method reference is a new feature in Java 8, which is related to Lambda Expression. It can allow us to reference constructors or methods without executing them. The method references and lambda expressions are similar in that they both require a target type that consists of a compatible functional interface.
Class ::... | [
{
"code": null,
"e": 1374,
"s": 1062,
"text": "A method reference is a new feature in Java 8, which is related to Lambda Expression. It can allow us to reference constructors or methods without executing them. The method references and lambda expressions are similar in that they both require a targe... |
Composite Design Pattern in C++ | Composite pattern is used where we need to treat a group of objects in similar way as a single object. Composite pattern composes objects in term of a tree structure to represent part as well as whole hierarchy. This type of design pattern comes under structural pattern as this pattern creates a tree structure of group... | [
{
"code": null,
"e": 1395,
"s": 1062,
"text": "Composite pattern is used where we need to treat a group of objects in similar way as a single object. Composite pattern composes objects in term of a tree structure to represent part as well as whole hierarchy. This type of design pattern comes under s... |
Selenium Webdriver - Identify Multiple Elements | In this chapter, we will learn how to identify multiple elements by various options. Let us begin by understanding identifying multiple elements by Id.
It is not recommended to identify multiple elements by the locator id, since the value of an id attribute is unique to an element and is applicable to a single element ... | [
{
"code": null,
"e": 2355,
"s": 2203,
"text": "In this chapter, we will learn how to identify multiple elements by various options. Let us begin by understanding identifying multiple elements by Id."
},
{
"code": null,
"e": 2536,
"s": 2355,
"text": "It is not recommended to ident... |
The potato train — using Python with extremely large numbers and arbitrary precision for binomial probability | by Florin Andrei | Towards Data Science | Math is hard, let’s go shopping — for tutorials, that is. I definitely wish I had read this tutorial before trying some things in Python that involve extremely large numbers (binomial probability for large values of n) and my code started to crash.
But wait, I hear you saying, Python can handle arbitrarily large number... | [
{
"code": null,
"e": 420,
"s": 171,
"text": "Math is hard, let’s go shopping — for tutorials, that is. I definitely wish I had read this tutorial before trying some things in Python that involve extremely large numbers (binomial probability for large values of n) and my code started to crash."
},
... |
Find repeated character present first in a string - GeeksforGeeks | 14 Feb, 2022
Given a string, find the repeated character present first in the string.(Not the first repeated character, found here.)
Examples:
Input : geeksforgeeks
Output : g
(mind that it will be g, not e.)
Asked in: Goldman Sachs internship
Simple Solution using O(N^2) complexity The solution is to loop through ... | [
{
"code": null,
"e": 24874,
"s": 24846,
"text": "\n14 Feb, 2022"
},
{
"code": null,
"e": 24995,
"s": 24874,
"text": "Given a string, find the repeated character present first in the string.(Not the first repeated character, found here.) "
},
{
"code": null,
"e": 25006... |
JavaFX - 3D Shapes | In the earlier chapters, we have seen how to draw 2D shapes on an XY plane. In addition to these 2D shapes, we can draw several other 3D shapes as well using JavaFX.
In general, a 3D shape is a geometrical figure that can be drawn on the XYZ plane. These include a Cylinder, Sphere and a Box.
Each of the above mentioned... | [
{
"code": null,
"e": 2066,
"s": 1900,
"text": "In the earlier chapters, we have seen how to draw 2D shapes on an XY plane. In addition to these 2D shapes, we can draw several other 3D shapes as well using JavaFX."
},
{
"code": null,
"e": 2193,
"s": 2066,
"text": "In general, a 3D... |
Angular 10 formatNumber() Method - GeeksforGeeks | 02 Jun, 2021
In this article, we are going to see what is formatNumber in Angular 10 and how to use it.
formatNumber is used to format a number based on our requirement in decimal form.
Syntax:
formatNumber(value, locale, digitsInfo)
Parameters:
value: The number to format.
locale: A locale code for the locale format.
... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n02 Jun, 2021"
},
{
"code": null,
"e": 25200,
"s": 25109,
"text": "In this article, we are going to see what is formatNumber in Angular 10 and how to use it."
},
{
"code": null,
"e": 25282,
"s": 25200,
"text": ... |
Sankey Diagram Basics with Python’s Plotly | by Thiago Carvalho | Towards Data Science | In this article, I’ll go through the basics of using Plotly and Python for drawing Sankey Diagrams.
They’re a convenient chart for visualizing any kind of measurable flow — Some examples are the flow of travelers, spellers, and money.
The creation of this diagram is credited to the Irish Captain Matthew H. P. R. Sankey... | [
{
"code": null,
"e": 272,
"s": 172,
"text": "In this article, I’ll go through the basics of using Plotly and Python for drawing Sankey Diagrams."
},
{
"code": null,
"e": 407,
"s": 272,
"text": "They’re a convenient chart for visualizing any kind of measurable flow — Some examples... |
Check if an array is empty or not in JavaScript - GeeksforGeeks | 20 Jul, 2021
Method 1: Using Array.isArray() method and array.length property: The array can be check if it is actually an array and it exists by the Array.isArray() method. This method returns true if the Object passed as a parameter is an array. It also checks for the case if the array is undefined or null.
The array... | [
{
"code": null,
"e": 30060,
"s": 30032,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 30358,
"s": 30060,
"text": "Method 1: Using Array.isArray() method and array.length property: The array can be check if it is actually an array and it exists by the Array.isArray() method. Th... |
Functions Overview | In programming terms, a function is a block of statements that performs a specific task. Functions accept data, process it, and return a result. Functions are written primarily to support the concept of reusability. Once a function is written, it can be called easily, without having to write the same code again and aga... | [
{
"code": null,
"e": 2145,
"s": 1821,
"text": "In programming terms, a function is a block of statements that performs a specific task. Functions accept data, process it, and return a result. Functions are written primarily to support the concept of reusability. Once a function is written, it can be... |
PyQt - QLineEdit Widget | QLineEdit object is the most commonly used input field. It provides a box in which one line of text can be entered. In order to enter multi-line text, QTextEdit object is required.
The following table lists a few important methods of QLineEdit class −
Given below are the most commonly used methods of QLineEdit.
setAlig... | [
{
"code": null,
"e": 2107,
"s": 1926,
"text": "QLineEdit object is the most commonly used input field. It provides a box in which one line of text can be entered. In order to enter multi-line text, QTextEdit object is required."
},
{
"code": null,
"e": 2178,
"s": 2107,
"text": "T... |
Deep Q-Learning - GeeksforGeeks | 18 Jun, 2019
Prerequisites: Q-Learning
The process of Q-Learning creates an exact matrix for the working agent which it can “refer to” to maximize its reward in the long run. Although this approach is not wrong in itself, this is only practical for very small environments and quickly loses it’s feasibility when the num... | [
{
"code": null,
"e": 24220,
"s": 24192,
"text": "\n18 Jun, 2019"
},
{
"code": null,
"e": 24246,
"s": 24220,
"text": "Prerequisites: Q-Learning"
},
{
"code": null,
"e": 24583,
"s": 24246,
"text": "The process of Q-Learning creates an exact matrix for the workin... |
C++ Program for Common Divisors of Two Numbers - GeeksforGeeks | 04 Dec, 2018
Given two integer numbers, the task is to find the count of all common divisors of given numbers.
Input : a = 12, b = 24
Output: 6
// all common divisors are 1, 2, 3,
// 4, 6 and 12
Input : a = 3, b = 17
Output: 1
// all common divisors are 1
Input : a = 20, b = 36
Output: 3
// all common divisors are 1... | [
{
"code": null,
"e": 24632,
"s": 24604,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 24730,
"s": 24632,
"text": "Given two integer numbers, the task is to find the count of all common divisors of given numbers."
},
{
"code": null,
"e": 24947,
"s": 24730,
"... |
Best Simple Python Projects for Beginners | Towards Data Science | Hello readers, in this story, let’s talk about making some fun Python Projects to have a better understanding of Python and to have some fun playing with Python and its amazing libraries.
These projects are small and you can easily do these within 1–2 hours. These will help you understand Python and its various librari... | [
{
"code": null,
"e": 359,
"s": 171,
"text": "Hello readers, in this story, let’s talk about making some fun Python Projects to have a better understanding of Python and to have some fun playing with Python and its amazing libraries."
},
{
"code": null,
"e": 595,
"s": 359,
"text":... |
Teradata - Views | Views are database objects that are built by the query. Views can be built using a single table or multiple tables by way of join. Their definition is stored permanently in data dictionary but they don't store copy of the data. Data for the view is built dynamically.
A view may contain a subset of rows of the table or ... | [
{
"code": null,
"e": 2898,
"s": 2630,
"text": "Views are database objects that are built by the query. Views can be built using a single table or multiple tables by way of join. Their definition is stored permanently in data dictionary but they don't store copy of the data. Data for the view is buil... |
Polygon Filling Algorithm | Polygon is an ordered list of vertices as shown in the following figure. For filling polygons with particular colors, you need to determine the pixels falling on the border of the polygon and those which fall inside the polygon. In this chapter, we will see how we can fill polygons using different techniques.
This algo... | [
{
"code": null,
"e": 2230,
"s": 1919,
"text": "Polygon is an ordered list of vertices as shown in the following figure. For filling polygons with particular colors, you need to determine the pixels falling on the border of the polygon and those which fall inside the polygon. In this chapter, we will... |
Sentence Scoring Based on Noun and Numerical Values | by Mofiz Mojib Haider | Towards Data Science | Sentence scoring is one of the most used processes in the area of Natural Language Processing (NLP) while working on textual data. It is a process to associate a numerical value with a sentence based on the used algorithm’s priority.
This process is highly used especially on text summarization. There are many popular m... | [
{
"code": null,
"e": 405,
"s": 171,
"text": "Sentence scoring is one of the most used processes in the area of Natural Language Processing (NLP) while working on textual data. It is a process to associate a numerical value with a sentence based on the used algorithm’s priority."
},
{
"code":... |
Swift - Break Statement | The break statement in C programming language has the following two usages −
When a break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop.
When a break statement is encountered inside a loop, the loop is immediately term... | [
{
"code": null,
"e": 2330,
"s": 2253,
"text": "The break statement in C programming language has the following two usages −"
},
{
"code": null,
"e": 2492,
"s": 2330,
"text": "When a break statement is encountered inside a loop, the loop is immediately terminated and the program c... |
How will you keep the CURSOR open after firing COMMIT in a COBOL-DB2 program? | Whenever we issue a COMMIT statement, all the open cursors will get closed. This is a very common case when we have to frequently use the commit statement after a UPDATE while working with a cursor. In this case we can use the “WITH HOLD” clause during the cursor declaration.
The “WITH HOLD” clause will keep the cursor... | [
{
"code": null,
"e": 1339,
"s": 1062,
"text": "Whenever we issue a COMMIT statement, all the open cursors will get closed. This is a very common case when we have to frequently use the commit statement after a UPDATE while working with a cursor. In this case we can use the “WITH HOLD” clause during ... |
Tryit Editor v3.7 | HTML Input attributes
Tryit: The autocomplete attribute | [
{
"code": null,
"e": 32,
"s": 10,
"text": "HTML Input attributes"
}
] |
io.MultiWriter() Function in Golang with Examples - GeeksforGeeks | 05 May, 2020
In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of primitives. The MultiWriter() function in Go language is used to create a writer that copies its writes to each and every given writers, which is ... | [
{
"code": null,
"e": 24310,
"s": 24282,
"text": "\n05 May, 2020"
},
{
"code": null,
"e": 24868,
"s": 24310,
"text": "In Go language, io packages supply fundamental interfaces to the I/O primitives. And its principal job is to enclose the ongoing implementations of such king of pr... |
Enhance your Python code’s readability with pycodestyle | by Kenneth Leung | Towards Data Science | Programming is an indispensable skill of a data practitioner’s toolkit, and while it is easy to create a script to execute basic functions, writing good readable code at scale requires more work and thought.
Given Python’s popularity in data science, I will be delving into the use of pycodestyle for style guide checkin... | [
{
"code": null,
"e": 379,
"s": 171,
"text": "Programming is an indispensable skill of a data practitioner’s toolkit, and while it is easy to create a script to execute basic functions, writing good readable code at scale requires more work and thought."
},
{
"code": null,
"e": 548,
"... |
Data analysis and Visualization with Python - GeeksforGeeks | 21 Feb, 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. In this article, I have used Pandas to analyze data on Country Data.csv file from UN public ... | [
{
"code": null,
"e": 24974,
"s": 24946,
"text": "\n21 Feb, 2018"
},
{
"code": null,
"e": 25515,
"s": 24974,
"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, ... |
How to merge arrays and preserve the keys in PHP ? - GeeksforGeeks | 07 Jul, 2020
Arrays in PHP are created using array() function. Arrays are variable that can hold more than one values at a time. There are three types of arrays:
Indexed ArraysAssociative ArraysMultidimensional Arrays
Indexed Arrays
Associative Arrays
Multidimensional Arrays
Each and every value in an array has a name ... | [
{
"code": null,
"e": 24499,
"s": 24471,
"text": "\n07 Jul, 2020"
},
{
"code": null,
"e": 24648,
"s": 24499,
"text": "Arrays in PHP are created using array() function. Arrays are variable that can hold more than one values at a time. There are three types of arrays:"
},
{
... |
Complete Beginner’s Guide to Processing Whatsapp Data with Python | by Bobby Muljono | Towards Data Science | From texting your loved ones, sending memes and professional usage, Whatsapp has been dominating the messenger market worldwide with 1.5 billion active monthly users. When it comes to complex NLP modelling, free text is black gold.
NLP for businesses provide enhanced user experience ranging from spell-checks, feedback ... | [
{
"code": null,
"e": 279,
"s": 47,
"text": "From texting your loved ones, sending memes and professional usage, Whatsapp has been dominating the messenger market worldwide with 1.5 billion active monthly users. When it comes to complex NLP modelling, free text is black gold."
},
{
"code": nu... |
How to create a Zebra Stripes table effect using jQuery ? - GeeksforGeeks | 24 Jan, 2021
Given an HTML document with a table and the task is to create a Zebra Stripes table effect on the table using jQuery.
Approach : To achieve the Zebra Stripes table effect, use the below code snippet:
$(function() {
$("table tr:nth-child(odd)").addClass("zebrastripe");
});
In the above function, zebrast... | [
{
"code": null,
"e": 25461,
"s": 25433,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 25579,
"s": 25461,
"text": "Given an HTML document with a table and the task is to create a Zebra Stripes table effect on the table using jQuery."
},
{
"code": null,
"e": 25661,
... |
C program to input an array from a sequence of space-separated integers - GeeksforGeeks | 15 Jul, 2021
Given a string S consisting of space-separated integers, the task is to write a C program to take the integers as input from the string S and store them in an array arr[].
Examples:
Input: S = “1 2 3 4”Output: {1, 2, 3, 4}
Input: S = “32 12”Output: {32, 12}
Approach: The idea is to solve the given problem ... | [
{
"code": null,
"e": 24796,
"s": 24768,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 24968,
"s": 24796,
"text": "Given a string S consisting of space-separated integers, the task is to write a C program to take the integers as input from the string S and store them in an arra... |
Python Assert Statement — Everything You Need To Know Explained in 5 Minutes | by Dario Radečić | Towards Data Science | Being an interpreted and dynamically-typed language, Python has a bad reputation for unexpected and hard-to-track bugs. The assert statement could save you a nerve or two. It’s a go-to way of catching things that shouldn’t happen early on, most likely at the beginning of a function.
It’s a simple boolean expression tha... | [
{
"code": null,
"e": 331,
"s": 47,
"text": "Being an interpreted and dynamically-typed language, Python has a bad reputation for unexpected and hard-to-track bugs. The assert statement could save you a nerve or two. It’s a go-to way of catching things that shouldn’t happen early on, most likely at t... |
Find all pairs that sum to a target value in JavaScript | We are required to write a JavaScript function that takes in an array of numbers as the first argument and a target sum number as the second argument.
The function should return an array of all those pair of numbers from the array that add up to the target sum specified by the second argument.
We will use a map object ... | [
{
"code": null,
"e": 1213,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an array of numbers as the first argument and a target sum number as the second argument."
},
{
"code": null,
"e": 1357,
"s": 1213,
"text": "The function should return an a... |
What is a copy constructor in C#? | Copy Constructor creates an object by copying variables from another object.
Let us see an example −
using System;
namespace Demo {
class Student {
private string name;
private int rank;
public Student(Student s) {
name = s.name;
rank = s.rank;
}
public Student(strin... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "Copy Constructor creates an object by copying variables from another object."
},
{
"code": null,
"e": 1163,
"s": 1139,
"text": "Let us see an example −"
},
{
"code": null,
"e": 1875,
"s": 1163,
"text": "using Syst... |
MySQL Tryit Editor v1.0 | SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
FROM Orders
INNER JOIN Customers
ON Orders.CustomerID=Customers.CustomerID;
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 mod... | [
{
"code": null,
"e": 64,
"s": 0,
"text": "SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate"
},
{
"code": null,
"e": 76,
"s": 64,
"text": "FROM Orders"
},
{
"code": null,
"e": 97,
"s": 76,
"text": "INNER JOIN Customers"
},
{
"code": null,... |
Move all special char to the end of the String - GeeksforGeeks | 07 May, 2021
In this article, we will learn how to move all special char to the end of the String.Examples:
Input : !@$%^&*AJAY Output :AJAY!@$%^&*Input :Geeksf!@orgeek@s A#$ c%o^mputer s****cience p#o@rtal fo@r ge%eks Output :Geeksforgeeks A computer science portal for geeks!@@#$%^****#@@%
Prerequisite : Regular E... | [
{
"code": null,
"e": 24537,
"s": 24509,
"text": "\n07 May, 2021"
},
{
"code": null,
"e": 24634,
"s": 24537,
"text": "In this article, we will learn how to move all special char to the end of the String.Examples: "
},
{
"code": null,
"e": 24818,
"s": 24634,
"t... |
Check if a number can be expressed as sum of two Perfect powers - GeeksforGeeks | 02 Dec, 2021
Given a positive number N, the task is to check whether the given number N can be expressed in the form of ax + by where x and y > 1 and a and b > 0. If N can be expressed in the given form then print true otherwise print false.
Examples:
Input: N = 5Output: trueExplanation:5 can be expressed as 22+12
In... | [
{
"code": null,
"e": 26537,
"s": 26509,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 26766,
"s": 26537,
"text": "Given a positive number N, the task is to check whether the given number N can be expressed in the form of ax + by where x and y > 1 and a and b > 0. If N can be e... |
Image Segmentation using K Means Clustering - GeeksforGeeks | 21 Jul, 2021
Image Segmentation: In computer vision, image segmentation is the process of partitioning an image into multiple segments. The goal of segmenting an image is to change the representation of an image into something that is more meaningful and easier to analyze. It is usually used for locating objects and c... | [
{
"code": null,
"e": 25655,
"s": 25627,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 25983,
"s": 25655,
"text": " Image Segmentation: In computer vision, image segmentation is the process of partitioning an image into multiple segments. The goal of segmenting an image is to c... |
Generating subarrays using recursion - GeeksforGeeks | 19 Apr, 2022
Given an array, generate all the possible subarrays of the given array using recursion.
Examples:
Input : [1, 2, 3]
Output : [1], [1, 2], [2], [1, 2, 3], [2, 3], [3]
Input : [1, 2]
Output : [1], [1, 2], [2]
We have discussed iterative program to generate all subarrays. In this post, recursive is discusse... | [
{
"code": null,
"e": 26453,
"s": 26425,
"text": "\n19 Apr, 2022"
},
{
"code": null,
"e": 26541,
"s": 26453,
"text": "Given an array, generate all the possible subarrays of the given array using recursion."
},
{
"code": null,
"e": 26552,
"s": 26541,
"text": "Ex... |
ByteBuffer getFloat() method in Java with Examples - GeeksforGeeks | 17 Jun, 2019
The getFloat() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into a float value according to the current byte order, and then increments the position by four.
Syntax:
public abstract float getFloat()
Return Value: This method retur... | [
{
"code": null,
"e": 25827,
"s": 25799,
"text": "\n17 Jun, 2019"
},
{
"code": null,
"e": 26062,
"s": 25827,
"text": "The getFloat() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into a float value accordi... |
Explain the importance of Doctype in HTML ? - GeeksforGeeks | 20 Aug, 2021
Doctype in HTML: HTML Doctype is most often written at the very first element of the entire HTML document. It remains wrapped inside angle brackets but it is not a tag. It is a statement or declaration. Doctype stands for Document Type. It is a statement to declare the type of the document. With the help ... | [
{
"code": null,
"e": 26139,
"s": 26111,
"text": "\n20 Aug, 2021"
},
{
"code": null,
"e": 26549,
"s": 26139,
"text": "Doctype in HTML: HTML Doctype is most often written at the very first element of the entire HTML document. It remains wrapped inside angle brackets but it is not a... |
How to print range of basic data types without any library function and constant in C? - GeeksforGeeks | 25 Aug, 2021
How to write C code to print range of basic data types like int, char, short int, unsigned int, unsigned char etc? It is assumed that signed numbers are stored in 2’s complement form. We strongly recommend to minimize the browser and try this yourself first.
Following are the steps to be followed for unsig... | [
{
"code": null,
"e": 25477,
"s": 25449,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 25736,
"s": 25477,
"text": "How to write C code to print range of basic data types like int, char, short int, unsigned int, unsigned char etc? It is assumed that signed numbers are stored in ... |
Print n x n spiral matrix using O(1) extra space - GeeksforGeeks | 15 May, 2022
Given a number n, print a n x n spiral matrix (of numbers from 1 to n x n) in clockwise direction using O(1) space.
Example :
Input: n = 5
Output:
25 24 23 22 21
10 9 8 7 20
11 2 1 6 19
12 3 4 5 18
13 14 15 16 17
We strongly recommend you to minimize your browser and try this yourself first.The ... | [
{
"code": null,
"e": 26165,
"s": 26137,
"text": "\n15 May, 2022"
},
{
"code": null,
"e": 26282,
"s": 26165,
"text": "Given a number n, print a n x n spiral matrix (of numbers from 1 to n x n) in clockwise direction using O(1) space. "
},
{
"code": null,
"e": 26293,
... |
GATE | GATE CS 2019 | Question 49 - GeeksforGeeks | 02 Dec, 2019
Consider the following statements:
I. The smallest element in a max-heap is always at a leaf node.
II. The second largest element in a max-heap is always a child of the root node.
III. A max-heap can be constructed from a binary search tree in Θ(n) time.
IV. A binary search tree can be constructed from a m... | [
{
"code": null,
"e": 25735,
"s": 25707,
"text": "\n02 Dec, 2019"
},
{
"code": null,
"e": 25770,
"s": 25735,
"text": "Consider the following statements:"
},
{
"code": null,
"e": 25834,
"s": 25770,
"text": "I. The smallest element in a max-heap is always at a le... |
All possible numbers of N digits and base B without leading zeros - GeeksforGeeks | 25 May, 2021
Given a number of digits ‘N’ and base ‘B’, the task is to count all the ‘N’ digit numbers without leading zeros that are in base ‘B’.
Examples:
Input: N = 2, B = 2
Output: 2
All possible numbers without
leading zeros are 10 and 11.
Input: N = 5, B = 8
Output: 28672
Approach:
If the base is ‘B’ then e... | [
{
"code": null,
"e": 26129,
"s": 26101,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 26263,
"s": 26129,
"text": "Given a number of digits ‘N’ and base ‘B’, the task is to count all the ‘N’ digit numbers without leading zeros that are in base ‘B’."
},
{
"code": null,
... |
Python | Handling no element found in index() - GeeksforGeeks | 27 Sep, 2019
Sometimes, while working with Python lists, we are confronted with a problem in which we need to check whether an element is present in a list and also where exactly, which index it occurs. The convenient solution of it is to use index(). But problem with this can come that sometimes, the desired element m... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n27 Sep, 2019"
},
{
"code": null,
"e": 25940,
"s": 25537,
"text": "Sometimes, while working with Python lists, we are confronted with a problem in which we need to check whether an element is present in a list and also where exact... |
What is dynamic binding in Java? | In dynamic binding, the method call is bonded to the method body at runtime. This is also known as late binding. This is done using instance methods.
class Super {
public void sample() {
System.out.println("This is the method of super class");
}
}
Public class extends Super {
Public static void sample()... | [
{
"code": null,
"e": 1337,
"s": 1187,
"text": "In dynamic binding, the method call is bonded to the method body at runtime. This is also known as late binding. This is done using instance methods."
},
{
"code": null,
"e": 1653,
"s": 1337,
"text": "class Super {\n public void sa... |
PHP 7 - Installation on Windows with Apache | To install Apache with PHP 5 on Windows follow the given steps. If your PHP and Apache versions are different then please take care accordingly.
Download Apache server from www.apache.org/dist/httpd/binaries/win32. You want the current stable release version with the no_src.msi extension. Double-click the installer fil... | [
{
"code": null,
"e": 2356,
"s": 2211,
"text": "To install Apache with PHP 5 on Windows follow the given steps. If your PHP and Apache versions are different then please take care accordingly."
},
{
"code": null,
"e": 2787,
"s": 2356,
"text": "Download Apache server from www.apach... |
Communication Technologies - Web Services | Let us discuss some terms commonly used with regard to the Internet.
WWW is the acronym for World Wide Web. WWW is an information space inhabited by interlinked documents and other media that can be accessed via the Internet. WWW was invented by British scientist Tim Berners-Lee in 1989 and developed the first web brow... | [
{
"code": null,
"e": 2090,
"s": 2021,
"text": "Let us discuss some terms commonly used with regard to the Internet."
},
{
"code": null,
"e": 2434,
"s": 2090,
"text": "WWW is the acronym for World Wide Web. WWW is an information space inhabited by interlinked documents and other m... |
NoSQL Data Architecture Patterns | 21 Sep, 2021
Architecture Pattern is a logical way of categorizing data that will be stored on the Database. NoSQL is a type of database which helps to perform operations on big data and store it in a valid format. It is widely used because of its flexibility and a wide variety of services.
Architecture Patterns of No... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 308,
"s": 28,
"text": "Architecture Pattern is a logical way of categorizing data that will be stored on the Database. NoSQL is a type of database which helps to perform operations on big data and s... |
Python | Count number of items in a dictionary value that is a list | 04 Jun, 2022
In Python, dictionary is a collection which is unordered, changeable and indexed. Dictionaries are written with curly brackets, and they have keys and values. It is used to hash a particular key. A dictionary has multiple key:value pairs. There can be multiple pairs where value corresponding to a key is a ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jun, 2022"
},
{
"code": null,
"e": 483,
"s": 28,
"text": "In Python, dictionary is a collection which is unordered, changeable and indexed. Dictionaries are written with curly brackets, and they have keys and values. It is used to ha... |
numpy.quantile() in Python | 29 Nov, 2018
numpy.quantile(arr, q, axis = None) : Compute the qth quantile of the given data (array elements) along the specified axis.
Quantile plays a very important role in Statistics when one deals with the Normal Distribution.In the figure given above, Q2 is the median of the normally distributed data. Q3 - Q2 re... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 152,
"s": 28,
"text": "numpy.quantile(arr, q, axis = None) : Compute the qth quantile of the given data (array elements) along the specified axis."
},
{
"code": null,
"e": 390,
"s": ... |
How to Push Notification in Android? | 21 Dec, 2020
Notification is a message which appears outside of our Application’s normal UI. A notification can appear in different formats and locations such as an icon in the status bar, a more detailed entry in the notification drawer, etc. Through the notification, we can notify users about any important updates, e... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Dec, 2020"
},
{
"code": null,
"e": 514,
"s": 53,
"text": "Notification is a message which appears outside of our Application’s normal UI. A notification can appear in different formats and locations such as an icon in the status bar... |
Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged | 07 May, 2021
Given an alphanumeric string str, the task is to sort the string in such a way that if a position is occupied by an alphabet it must be occupied by an alphabet after sorting and if occupied by a number it must be occupied by a number after sorting.Examples:
Input: str = “geeks12for32geeks” Output: eeeef1... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 May, 2021"
},
{
"code": null,
"e": 314,
"s": 54,
"text": "Given an alphanumeric string str, the task is to sort the string in such a way that if a position is occupied by an alphabet it must be occupied by an alphabet after sorting ... |
Chaining Commands in Linux | 14 Oct, 2020
Chaining commands in Linux allows us to execute multiple commands at the same time and directly through the terminal. It’s like short shell scripts that can be executed through the terminal directly. Linux command chaining is a technique of merging several commands such that each of them can execute in seq... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 545,
"s": 52,
"text": "Chaining commands in Linux allows us to execute multiple commands at the same time and directly through the terminal. It’s like short shell scripts that can be executed throu... |
Overriding in Java programming | The benefit of overriding is: ability to define a behavior that's specific to the subclass type, which means a subclass can implement a parent class method based on its requirement.
In object-oriented terms, overriding means to override the functionality of an existing method.
Live Demo
class Animal {
public void m... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "The benefit of overriding is: ability to define a behavior that's specific to the subclass type, which means a subclass can implement a parent class method based on its requirement."
},
{
"code": null,
"e": 1340,
"s": 1244,
"text": "... |
Given a number N in decimal base, find the sum of digits in any base B - GeeksforGeeks | 06 Nov, 2021
Given a number N in decimal base, the task is to find the sum of digits of the number in any base B. Examples:
Input: N = 100, B = 8 Output: 9 Explanation: (100)8 = 144 Sum(144) = 1 + 4 + 4 = 9Input: N = 50, B = 2 Output: 3 Explanation: (50)2 = 110010 Sum(110010) = 1 + 1 + 0 + 0 + 1 + 0 = 3
Approach:... | [
{
"code": null,
"e": 24325,
"s": 24297,
"text": "\n06 Nov, 2021"
},
{
"code": null,
"e": 24438,
"s": 24325,
"text": "Given a number N in decimal base, the task is to find the sum of digits of the number in any base B. Examples: "
},
{
"code": null,
"e": 24621,
"s... |
GATE | GATE-CS-2003 | Question 86 - GeeksforGeeks | 28 Jun, 2021
Consider the set of relations shown below and the SQL query that follows.
Students: (Roll_number, Name, Date_of_birth)
Courses: (Course number, Course_name, Instructor)
Grades: (Roll_number, Course_number, Grade)
select distinct Name
from Students, Courses, Grades
where Students. Rol... | [
{
"code": null,
"e": 24491,
"s": 24463,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24565,
"s": 24491,
"text": "Consider the set of relations shown below and the SQL query that follows."
},
{
"code": null,
"e": 24708,
"s": 24565,
"text": "Students: (Roll_... |
Servlets - File Uploading | A Servlet can be used with an HTML form tag to allow users to upload files to the server. An uploaded file could be a text file or image file or any document.
The following HTM code below creates an uploader form. Following are the important points to be noted down −
The form method attribute should be set to POST meth... | [
{
"code": null,
"e": 2344,
"s": 2185,
"text": "A Servlet can be used with an HTML form tag to allow users to upload files to the server. An uploaded file could be a text file or image file or any document."
},
{
"code": null,
"e": 2453,
"s": 2344,
"text": "The following HTM code ... |
Dockerizing Airflow. Apache Airflow on Docker for local... | by Shah Newaz Khan | Towards Data Science | Airflow is the de facto ETL orchestration tool in most data engineers tool box. It provides an intuitive web interface for a powerful backend to schedule and manage dependencies for your ETL workflows.
In my day to day work-flow, I use it to maintain and curate a data lake built on top of AWS S3. Nodes in my Airflow DA... | [
{
"code": null,
"e": 249,
"s": 47,
"text": "Airflow is the de facto ETL orchestration tool in most data engineers tool box. It provides an intuitive web interface for a powerful backend to schedule and manage dependencies for your ETL workflows."
},
{
"code": null,
"e": 491,
"s": 249... |
Create a GUI to extract Lyrics from song Using Python - GeeksforGeeks | 08 Dec, 2021
In this article, we are going to write a python script to extract lyrics from the song and bind with its GUI application. We will use lyrics-extractor to get lyrics of a song just by passing in the song name, it extracts and returns the song’s title and song lyrics from various websites. Before starting, i... | [
{
"code": null,
"e": 23927,
"s": 23899,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 24307,
"s": 23927,
"text": "In this article, we are going to write a python script to extract lyrics from the song and bind with its GUI application. We will use lyrics-extractor to get lyric... |
Where should I put <script> tags in HTML markup? | The JavaScript code should be inserted between <script> and </script> tags in HTML. You can place the <script> tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the <head> tags.
The <script> tag alerts the browser program to start interpreting... | [
{
"code": null,
"e": 1317,
"s": 1062,
"text": "The JavaScript code should be inserted between <script> and </script> tags in HTML. You can place the <script> tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the <head> tags... |
How do you find the length of an array in C#? | To find the length of an array, use the Array.Length() method.
Let us see an example −
Live Demo
using System;
class Program {
static void Main(){
int[] arr = new int[10];
// finding length
int arrLength = arr.Length;
Console.WriteLine("Length of the array: "+arrLength);
}
}
Length of the... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "To find the length of an array, use the Array.Length() method."
},
{
"code": null,
"e": 1149,
"s": 1125,
"text": "Let us see an example −"
},
{
"code": null,
"e": 1160,
"s": 1149,
"text": " Live Demo"
},
{
... |
jQuery - Widget accordion | The Widget accordion function can be used with widgets in JqueryUI.Accordion is same like as Tabs,When user click headers to expand content that is broken into logical sections.
Here is the simple syntax to use Accordion −
$(function() {
$( "#accordion" ).accordion();
});
Following is a simple example showing the u... | [
{
"code": null,
"e": 2500,
"s": 2322,
"text": "The Widget accordion function can be used with widgets in JqueryUI.Accordion is same like as Tabs,When user click headers to expand content that is broken into logical sections."
},
{
"code": null,
"e": 2545,
"s": 2500,
"text": "Here... |
Transpose of Matrix | Practice | GeeksforGeeks | Write a program to find the transpose of a square matrix of size N*N. Transpose of a matrix is obtained by changing rows to columns and columns to rows.
Example 1:
Input:
N = 4
mat[][] = {{1, 1, 1, 1},
{2, 2, 2, 2}
{3, 3, 3, 3}
{4, 4, 4, 4}}
Output:
{{1, 2, 3, 4},
{1, 2, 3, 4}
{... | [
{
"code": null,
"e": 391,
"s": 226,
"text": "Write a program to find the transpose of a square matrix of size N*N. Transpose of a matrix is obtained by changing rows to columns and columns to rows.\n\nExample 1:"
},
{
"code": null,
"e": 575,
"s": 391,
"text": "Input:\nN = 4\nmat[... |
Progress Bars in Python. When dealing with large data, even... | by Sam Wilkinson | Towards Data Science | Just like a watched pot never boils, a watched for loop never ends. When dealing with large datasets, even the simplest operations can take hours. Progress bars can help make data processing jobs less of a headache because:
You get a reliable estimate of how long it will take.You can see immediately if it’s gotten stuc... | [
{
"code": null,
"e": 271,
"s": 47,
"text": "Just like a watched pot never boils, a watched for loop never ends. When dealing with large datasets, even the simplest operations can take hours. Progress bars can help make data processing jobs less of a headache because:"
},
{
"code": null,
... |
How can I save HTML locally with JavaScript? | To save HTML locally with JavaScript, create an HTML file and save the following code in it. The code is for cookies in JavaScript −
<!DOCTYPE html>
<html>
<body>
<p id="visits"></p>
<script>
var visits = parseInt(document.cookie.split("=")[1]);
if (isNaN(visits)) visits = 0;
v... | [
{
"code": null,
"e": 1195,
"s": 1062,
"text": "To save HTML locally with JavaScript, create an HTML file and save the following code in it. The code is for cookies in JavaScript −"
},
{
"code": null,
"e": 1573,
"s": 1195,
"text": "<!DOCTYPE html>\n<html>\n <body>\n <p id=\... |
Understanding a TensorFlow program in simple steps. | by Nidhin Mahesh | Towards Data Science | TensorFlow is a library which can be applied to all the machine learning algorithms especially deep learning with neural network. Machine learning is simply those programs which are written to deal with large data-sets to find patterns in them and extract information. It actually learn from data to make accurate or som... | [
{
"code": null,
"e": 676,
"s": 172,
"text": "TensorFlow is a library which can be applied to all the machine learning algorithms especially deep learning with neural network. Machine learning is simply those programs which are written to deal with large data-sets to find patterns in them and extract... |
Puppet - Agent Setup | Puppet agent is a software application, provided by Puppet labs, which runs on any node in Puppet cluster. If one wants to manage any server using the Puppet master, the Puppet agent software needs to be installed on that particular server. In general, the Puppet agent will be installed on all the machines excluding th... | [
{
"code": null,
"e": 2741,
"s": 2173,
"text": "Puppet agent is a software application, provided by Puppet labs, which runs on any node in Puppet cluster. If one wants to manage any server using the Puppet master, the Puppet agent software needs to be installed on that particular server. In general, ... |
VBA - Sub Procedure | Sub Procedures are similar to functions, however there are a few differences.
Sub procedures DO NOT Return a value while functions may or may not return a value.
Sub procedures DO NOT Return a value while functions may or may not return a value.
Sub procedures CAN be called without a call keyword.
Sub procedures CAN be... | [
{
"code": null,
"e": 2013,
"s": 1935,
"text": "Sub Procedures are similar to functions, however there are a few differences."
},
{
"code": null,
"e": 2097,
"s": 2013,
"text": "Sub procedures DO NOT Return a value while functions may or may not return a value."
},
{
"code"... |
A Comprehensive Tutorial to Rust Operators for Beginners | by Shinichi Okada | Towards Data Science | Table of ContentsIntroduction🦀 Arithmetic Operators🦀 Comparison Operators🦀 Logical Operators🦀 Bitwise Operators🦀 Compound Assignment Operators🦀 Operator Overloading🦀 XOR and Bitwise Operators Truth Table🦀 Problem 1: Single Number🦀 Python Solution🦀 Rust Code🦀 Method and Associated Functions🦀 Solution Using a... | [
{
"code": null,
"e": 567,
"s": 172,
"text": "Table of ContentsIntroduction🦀 Arithmetic Operators🦀 Comparison Operators🦀 Logical Operators🦀 Bitwise Operators🦀 Compound Assignment Operators🦀 Operator Overloading🦀 XOR and Bitwise Operators Truth Table🦀 Problem 1: Single Number🦀 Python Solution... |
GATE | GATE-CS-2015 (Set 3) | Question 65 - GeeksforGeeks | 19 Nov, 2018
Consider the following code sequence having five instructions I1 to I5. Each of these instructions has the following format.
OP Ri, Rj, Rk
where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.
I1 : ADD R1, R2, R3
I2 : MUL R7, R1, R3
I3 : S... | [
{
"code": null,
"e": 24462,
"s": 24434,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 24587,
"s": 24462,
"text": "Consider the following code sequence having five instructions I1 to I5. Each of these instructions has the following format."
},
{
"code": null,
"e": 2... |
Explainable AI: Interpretation & Trust in Machine Learning Models - Lime | Towards Data Science | Why should we trust a machine learning model blindly? Wouldn’t it be wonderful if we can get a better insight into model predictions and improve our decision making? With the advent of explainable AI techniques such as LIME and SHAP, it is no longer a challenge. Nowadays, machine learning models are ubiquitous and beco... | [
{
"code": null,
"e": 1006,
"s": 172,
"text": "Why should we trust a machine learning model blindly? Wouldn’t it be wonderful if we can get a better insight into model predictions and improve our decision making? With the advent of explainable AI techniques such as LIME and SHAP, it is no longer a ch... |
JSF - template tags | Templates in a web application defines a common interface layout and style. For example, a same banner, logo in common header and copyright information in footer. JSF provides following facelet tags to provide a standard web interface layout.
ui:insert
Used in template file. It defines contents to be placed in a templa... | [
{
"code": null,
"e": 2195,
"s": 1952,
"text": "Templates in a web application defines a common interface layout and style. For example, a same banner, logo in common header and copyright information in footer. JSF provides following facelet tags to provide a standard web interface layout."
},
{
... |
Count subsequences having odd Bitwise OR values in an array - GeeksforGeeks | 11 Feb, 2022
Given an array arr[] consisting of N positive integers, the task is to find the number of subsequences from the given array whose Bitwise OR value is odd.
Examples:
Input: arr = [2, 4, 1]Output: 4Explanation: Subsequences with odd Bitwise OR values are {1}, {2, 1}, {4, 1}, {2, 4, 1}
Input: arr = [1, 3, 4]O... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n11 Feb, 2022"
},
{
"code": null,
"e": 24560,
"s": 24405,
"text": "Given an array arr[] consisting of N positive integers, the task is to find the number of subsequences from the given array whose Bitwise OR value is odd."
},
... |
Calculate the total fine to be collected - GeeksforGeeks | 31 Mar, 2021
Given a date and an array of integer containing the numbers of the cars traveling on that date(an integer), the task is to calculate the total fine collected based on the following rules:
Odd numbered cars can travel on only odd dates.
Even numbered cars on only even dates.
Otherwise a car would be fined... | [
{
"code": null,
"e": 24820,
"s": 24792,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 25010,
"s": 24820,
"text": "Given a date and an array of integer containing the numbers of the cars traveling on that date(an integer), the task is to calculate the total fine collected based... |
Building a Recommendation System with Spark ML and Elasticsearch | by Lijo Abraham | Towards Data Science | While working in search teams of different product companies, there was always a constant demand for building a recommendation system for users. We have build with popular search engines like Elasticsearch, SOLR, and tried perfecting the search relevance. But there was always a limit when it comes to doing search relev... | [
{
"code": null,
"e": 791,
"s": 171,
"text": "While working in search teams of different product companies, there was always a constant demand for building a recommendation system for users. We have build with popular search engines like Elasticsearch, SOLR, and tried perfecting the search relevance.... |
String Concatenation in Java | You can concatenate two strings in Java either by using the concat() method or by using the ‘+’ , the “concatenation” operator.
The concat() method appends one String to the end of another. This method returns a String with the value of the String passed into the method, appended to the end of the String, used to invok... | [
{
"code": null,
"e": 1190,
"s": 1062,
"text": "You can concatenate two strings in Java either by using the concat() method or by using the ‘+’ , the “concatenation” operator."
},
{
"code": null,
"e": 1397,
"s": 1190,
"text": "The concat() method appends one String to the end of a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.