title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Guide to Car Detection using YOLO | by Bryan Tan | Towards Data Science | You are working on a self-driving car. As a critical component of this project, you’d like to first build a car detection system. To collect data, you’ve mounted a camera to the hood of the car, which takes pictures of the road ahead every few seconds while you drive around.
You’ve gathered all these images into a fold... | [
{
"code": null,
"e": 447,
"s": 171,
"text": "You are working on a self-driving car. As a critical component of this project, you’d like to first build a car detection system. To collect data, you’ve mounted a camera to the hood of the car, which takes pictures of the road ahead every few seconds whi... |
Data Structures | Heap | Question 5 - GeeksforGeeks | 28 Jun, 2021
Consider a binary max-heap implemented using an array. Which one of the following array represents a binary max-heap? (GATE CS 2009)(A) 25,12,16,13,10,8,14(B) 25,12,16,13,10,8,14(C) 25,14,16,13,10,8,12(D) 25,14,12,13,10,8,16Answer: (C)Explanation: A tree is max-heap if data at every node in the tree is gre... | [
{
"code": null,
"e": 24816,
"s": 24788,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25168,
"s": 24816,
"text": "Consider a binary max-heap implemented using an array. Which one of the following array represents a binary max-heap? (GATE CS 2009)(A) 25,12,16,13,10,8,14(B) 25,1... |
Fetching top news using news API in Python | News API is very famous API for searching and fetching news articles from any web site, using this API anyone can fetch top 10 heading line of news from any web site.
But using this API, one thing is required which is the API key.
import requests
def Topnews():
# BBC news api
my_api_key="Api_number”
my_url... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "News API is very famous API for searching and fetching news articles from any web site, using this API anyone can fetch top 10 heading line of news from any web site."
},
{
"code": null,
"e": 1293,
"s": 1229,
"text": "But using this ... |
How to create Text to Speech in an Android App using Kotlin? | This example demonstrates how to create Text to Speech in an Android App using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "This example demonstrates how to create Text to Speech in an Android App using Kotlin."
},
{
"code": null,
"e": 1277,
"s": 1149,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒New Project and fill all required ... |
How to change the partial plot background using ggplot2 in R? | To change the partial plot background, we can create a rectangle using geom_rect function by defining both the axes values and alpha for transparency, the color will be changed by using fill argument. The value of alpha will completely hide the grey background and we can play with its value based on our need.
Live Dem... | [
{
"code": null,
"e": 1373,
"s": 1062,
"text": "To change the partial plot background, we can create a rectangle using geom_rect function by defining both the axes values and alpha for transparency, the color will be changed by using fill argument. The value of alpha will completely hide the grey bac... |
How to detect if a specific key pressed using Python? - GeeksforGeeks | 02 Dec, 2020
In this article, we will learn how can we detect if a specific key is pressed by the user or not. Detecting a key is very important for a coder, as the whole execution of the program is just dependent on a single/pattern key press. You may experience in your day-to-day life that the whole ATM transaction ... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 24956,
"s": 24318,
"text": "In this article, we will learn how can we detect if a specific key is pressed by the user or not. Detecting a key is very important for a coder, as the whole exec... |
Arrow operator -> in C/C++ with Examples - GeeksforGeeks | 06 Sep, 2021
An Arrow operator in C/C++ allows to access elements in Structures and Unions. It is used with a pointer variable pointing to a structure or union. The arrow operator is formed by using a minus sign, followed by the greater than symbol as shown below. Syntax:
(pointer_name)->(variable_name)
Operation: Th... | [
{
"code": null,
"e": 24324,
"s": 24296,
"text": "\n06 Sep, 2021"
},
{
"code": null,
"e": 24586,
"s": 24324,
"text": "An Arrow operator in C/C++ allows to access elements in Structures and Unions. It is used with a pointer variable pointing to a structure or union. The arrow opera... |
How to set the margins of a Matplotlib figure? | To set the margins of a matplotlib figure, we can use margins() method.
Set the figure size and adjust the padding between and around the subplots.
Create t and y data points using numpy.
Add a subplot to the current figure at index 1.
Plot t and y data points using plot() method.
Set the title of the plot.
Add a subpl... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To set the margins of a matplotlib figure, we can use margins() method."
},
{
"code": null,
"e": 1210,
"s": 1134,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null,
"e... |
How to initialize an array using lambda expression in Java? | An array is a fixed size element of the same type. The lambda expressions can also be used to initialize arrays in Java. But generic array initializes cannot be used.
interface Algebra {
int operate(int a, int b);
}
public class LambdaWithArray1 {
public static void main(String[] args) {
// Initialization o... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "An array is a fixed size element of the same type. The lambda expressions can also be used to initialize arrays in Java. But generic array initializes cannot be used."
},
{
"code": null,
"e": 2058,
"s": 1229,
"text": "interface Algeb... |
Insert Data from Database to Spreadsheet | How to insert data from a database to a spread sheet using Java.
Following is the program to insert data from a database to a spread sheet using Java.
import java.io.File;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
... | [
{
"code": null,
"e": 2133,
"s": 2068,
"text": "How to insert data from a database to a spread sheet using Java."
},
{
"code": null,
"e": 2219,
"s": 2133,
"text": "Following is the program to insert data from a database to a spread sheet using Java."
},
{
"code": null,
... |
Natural Sort in JavaScript | We have an array that contains some numbers and some strings, we are required to sort the
array such that the numbers get sorted and get placed before every string and then the string
should be placed sorted alphabetically.
Let’s say this is our array −
const arr = [1, 'fdf', 'afv', 6, 47, 7, 'svd', 'bdf', 9];
The outp... | [
{
"code": null,
"e": 1286,
"s": 1062,
"text": "We have an array that contains some numbers and some strings, we are required to sort the\narray such that the numbers get sorted and get placed before every string and then the string\nshould be placed sorted alphabetically."
},
{
"code": null,... |
Is it possible to select text boxes with JavaScript? | Yes, select text box with JavaScript using the select() method. At first, let us create an input
text −
Enter your Name:<input type="text" id="txtName" value="John">
<br>
<button type="button" onclick="check()">Select Text Box</button>
Now, let us select the text box on button click −
Live Demo
<!DOCTYPE html>
<html l... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "Yes, select text box with JavaScript using the select() method. At first, let us create an input\ntext −"
},
{
"code": null,
"e": 1298,
"s": 1166,
"text": "Enter your Name:<input type=\"text\" id=\"txtName\" value=\"John\">\n<br>\n<b... |
PyQt5 - How to hide the items from drop down box in Combo Box - GeeksforGeeks | 22 Apr, 2020
In this article we will see how we can hide the items of the combo box from the drop down box i.e from view box. In order to do so we have to get the view object of combo box and had to hide it.
In order to hide the items we have to do the following steps –
1. Create Combo box2. Add items to the combo box3... | [
{
"code": null,
"e": 26259,
"s": 26231,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 26454,
"s": 26259,
"text": "In this article we will see how we can hide the items of the combo box from the drop down box i.e from view box. In order to do so we have to get the view object o... |
Box Stacking Problem | DP-22 - GeeksforGeeks | 30 Jun, 2021
You are given a set of n types of rectangular 3-D boxes, where the i^th box has height h(i), width w(i) and depth d(i) (all real numbers). You want to create a stack of boxes which is as tall as possible, but you can only stack a box on top of another box if the dimensions of the 2-D base of the lower box ... | [
{
"code": null,
"e": 26499,
"s": 26471,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 27137,
"s": 26499,
"text": "You are given a set of n types of rectangular 3-D boxes, where the i^th box has height h(i), width w(i) and depth d(i) (all real numbers). You want to create a sta... |
Bind function and placeholders in C++ - GeeksforGeeks | 28 Jun, 2021
Sometimes we need to manipulate the operation of a function according to the need, i.e changing some arguments to default etc. Predefining a function to have default arguments restricts the versatility of a function and forces us to use the default arguments and that too with similar value each time. From ... | [
{
"code": null,
"e": 25831,
"s": 25803,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 26214,
"s": 25831,
"text": "Sometimes we need to manipulate the operation of a function according to the need, i.e changing some arguments to default etc. Predefining a function to have defau... |
Bootstrap 5 Collapse - GeeksforGeeks | 05 May, 2022
Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Collapse is used to toggle the visibility of content across your project with a few classes and the JavaScript plugins which comes with Bootstrap 5. The working of collapse component is based o... | [
{
"code": null,
"e": 29710,
"s": 29682,
"text": "\n05 May, 2022"
},
{
"code": null,
"e": 30182,
"s": 29710,
"text": "Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Collapse is used to toggle the visibility of cont... |
Min Cost Path | DP-6 - GeeksforGeeks | 21 Oct, 2021
Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m, n) from (0, 0). Each cell of the matrix represents a cost to traverse through that cell. The total cost of a path to reach (m, n) is the sum of all the costs on that path (in... | [
{
"code": null,
"e": 35839,
"s": 35811,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 36408,
"s": 35839,
"text": "Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m, n) from (0, 0). Each cell of t... |
Python Program to Filter Rows with a specific Pair Sum - GeeksforGeeks | 12 Nov, 2020
Given Matrix, the following program shows how to extract all rows which have a pair such that their sum is equal to a specific number, here denoted as K.
Input : test_list = [[1, 5, 3, 6], [4, 3, 2, 1], [7, 2, 4, 5], [6, 9, 3, 2]], k = 8 Output : [[1, 5, 3, 6], [6, 9, 3, 2]] Explanation : 5 + 3 = 8 and 6 +... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n12 Nov, 2020"
},
{
"code": null,
"e": 25691,
"s": 25537,
"text": "Given Matrix, the following program shows how to extract all rows which have a pair such that their sum is equal to a specific number, here denoted as K."
},
{... |
How to show legend in heatmap in R? - GeeksforGeeks | 23 Feb, 2021
A heat map is a graphical representation of data where each data value is represented in terms of color value. Heatmap is created using heatmap() function in R. Legend associated with histogram makes it easy to understand what the color values mean. Legend is shown with histogram using legend() function in... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 26798,
"s": 26487,
"text": "A heat map is a graphical representation of data where each data value is represented in terms of color value. Heatmap is created using heatmap() function in R. Le... |
Python | Sort list of numbers by sum of their digits - GeeksforGeeks | 11 May, 2020
Given a list of non-negative numbers, the task is to sort these integers according to the sum of their digits.
Examples:
Input : [12, 10, 106, 31, 15]
Output : [10, 12, 31, 15, 106]
Input : [1111, 19, 29, 11, 12, 9]
Output : [11, 12, 1111, 9, 19, 29]
Let’s discuss few Pythonic ways to do this task.
Appro... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n11 May, 2020"
},
{
"code": null,
"e": 25648,
"s": 25537,
"text": "Given a list of non-negative numbers, the task is to sort these integers according to the sum of their digits."
},
{
"code": null,
"e": 25658,
"s":... |
Python | sympy.sec() method - GeeksforGeeks | 02 Aug, 2019
With the help of sympy.sec() method, we are able to find the value of sec theta using sympy.sec() function.
Syntax : sympy.sec()Return : Return value of sec theta.
Example #1 :In this example we can see that by using sympy.sec() method, we can find the value of sec theta.
# import sympyfrom sympy import * ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 25645,
"s": 25537,
"text": "With the help of sympy.sec() method, we are able to find the value of sec theta using sympy.sec() function."
},
{
"code": null,
"e": 25701,
"s": 25... |
How to Use Select Case Statement in Excel VBA? - GeeksforGeeks | 19 Jul, 2021
VBA in Excel stands for Visual Basic for Applications which is Microsoft’s programming language. To optimize the performance and reduce the time in Excel we need Macros and VBA is the tool used in the backend.
Some helpful links to get more insights about Macros, VBA in Excel :
Record Macros in Excel.How ... | [
{
"code": null,
"e": 26289,
"s": 26261,
"text": "\n19 Jul, 2021"
},
{
"code": null,
"e": 26500,
"s": 26289,
"text": "VBA in Excel stands for Visual Basic for Applications which is Microsoft’s programming language. To optimize the performance and reduce the time in Excel we need M... |
Product of Array except itself - GeeksforGeeks | 22 Feb, 2022
Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. Solve it without division operator in O(n) time.
Example :
Input: arr[] = {10, 3, 5, 6, 2}
Output: prod[] = {180, 600, 360, 300, 900}
... | [
{
"code": null,
"e": 42521,
"s": 42493,
"text": "\n22 Feb, 2022"
},
{
"code": null,
"e": 42740,
"s": 42521,
"text": "Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except a... |
Array of Linked Lists in C/C++ - GeeksforGeeks | 11 Oct, 2021
An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using indices of an array. They can be used to store the collection of primitive data types such as int, float, double, char, etc of any ... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 26540,
"s": 26065,
"text": "An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed ran... |
Bitmap Indexing in DBMS - GeeksforGeeks | 11 Apr, 2022
Bitmap Indexing is a special type of database indexing that uses bitmaps. This technique is used for huge databases, when column is of low cardinality and these columns are most frequently used in the query.
Need of Bitmap Indexing – The need of Bitmap Indexing will be clear through the below given exampl... | [
{
"code": null,
"e": 25659,
"s": 25631,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 25868,
"s": 25659,
"text": "Bitmap Indexing is a special type of database indexing that uses bitmaps. This technique is used for huge databases, when column is of low cardinality and these co... |
SVG font-size Attribute - GeeksforGeeks | 31 Mar, 2022
The font-size attribute refers to the size of the font from baseline when multiple lines of text are set solid in a multiline layout environment.
Syntax:
font-size="size"
Attribute Values:
length: Length at which we want to set the size.
percentage: Percentage at which we want to set the size.
We will use ... | [
{
"code": null,
"e": 29899,
"s": 29871,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 30045,
"s": 29899,
"text": "The font-size attribute refers to the size of the font from baseline when multiple lines of text are set solid in a multiline layout environment."
},
{
"co... |
Minimize the sum of roots of a given polynomial - GeeksforGeeks | 03 Jun, 2021
Given an array whose elements represent the coefficients of a polynomial of degree n, if the polynomial has a degree n then the array will have n+1 elements (one extra for the constant of a polynomial). Swap some elements of the array and print the resulting array such that the sum of the roots of the give... | [
{
"code": null,
"e": 26041,
"s": 26013,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 26558,
"s": 26041,
"text": "Given an array whose elements represent the coefficients of a polynomial of degree n, if the polynomial has a degree n then the array will have n+1 elements (one e... |
How to Convert Models Data into JSON in Django ? - GeeksforGeeks | 16 Mar, 2021
Django is a high-level Python based Web Framework that allows rapid development and clean, pragmatic design. It is also called batteries included framework because Django provides built-in features for everything including Django Admin Interface, default database SQLlite3, etc.
How to Convert Models Data ... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 25835,
"s": 25555,
"text": "Django is a high-level Python based Web Framework that allows rapid development and clean, pragmatic design. It is also called batteries included framework becaus... |
Designing Finite Automata from Regular Expression (Set 3) - GeeksforGeeks | 20 Nov, 2019
Prerequisite: Finite automata, Regular expressions, grammar and language, Designing finite automata from Regular expression (Set 2)
In the below article, we shall see some Designing of Finite Automata form the given Regular Expression.
Regular Expression 1: ‘ab*’ (‘a’ followed by any number of ‘b’). The la... | [
{
"code": null,
"e": 24546,
"s": 24518,
"text": "\n20 Nov, 2019"
},
{
"code": null,
"e": 24678,
"s": 24546,
"text": "Prerequisite: Finite automata, Regular expressions, grammar and language, Designing finite automata from Regular expression (Set 2)"
},
{
"code": null,
... |
Selenium WebDriver Error: AttributeError: 'list' object has no attribute 'click' | We can get the Selenium webdriver error: AttributeError: 'list' object has no attribute 'click' while working on a test. Let us see an example of code where we have encountered such an error.
Code Implementation
from selenium import webdriver
driver = webdriver.Chrome(executable_path='../drivers/chromedriver')
#implici... | [
{
"code": null,
"e": 1254,
"s": 1062,
"text": "We can get the Selenium webdriver error: AttributeError: 'list' object has no attribute 'click' while working on a test. Let us see an example of code where we have encountered such an error."
},
{
"code": null,
"e": 1274,
"s": 1254,
... |
Convert decimal fraction to binary number - GeeksforGeeks | 01 Jun, 2021
Given a fraction decimal number n and integer k, convert decimal number n into equivalent binary number up-to k precision after decimal point. Examples:
Input: n = 2.47, k = 5
Output: 10.01111
Input: n = 6.986 k = 8
Output: 110.11111100
A) Convert the integral part of decimal to binary equivalent
Di... | [
{
"code": null,
"e": 24932,
"s": 24904,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 25087,
"s": 24932,
"text": "Given a fraction decimal number n and integer k, convert decimal number n into equivalent binary number up-to k precision after decimal point. Examples: "
},
... |
Why main() method must be static in java? | Static − If you declare a method, subclass, block, or a variable static it is loaded along with the class.
In Java whenever we need to call an (instance) method we should instantiate the class (containing it) and call it. If we need to call a method without instantiation it should be static. Moreover, static methods ar... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "Static − If you declare a method, subclass, block, or a variable static it is loaded along with the class."
},
{
"code": null,
"e": 1429,
"s": 1169,
"text": "In Java whenever we need to call an (instance) method we should instantiate... |
Practical AI : Automatically Generate Multiple Choice Questions (MCQs) from any content with BERT Summarizer, Wordnet and Conceptnet | by Ramsri Goutham | Towards Data Science | If you want to try a live demo of MCQ generation in action, please visit https://questgen.ai/
In this post we will see how to automatically generate Multiple Choice Questions (MCQs) from any story or article. This is one step towards automatically generating those MCQs you see in Middle school/ High school.
Input: The ... | [
{
"code": null,
"e": 141,
"s": 47,
"text": "If you want to try a live demo of MCQ generation in action, please visit https://questgen.ai/"
},
{
"code": null,
"e": 356,
"s": 141,
"text": "In this post we will see how to automatically generate Multiple Choice Questions (MCQs) from ... |
Adding elements in a vector in R programming - append() method - GeeksforGeeks | 10 May, 2020
append() method in R programming is used to append the different types of integer values into a vector in the last.
Syntax: append(x, value, index(optional))
Return: Returns the new vector after appending given value.
Example 1:
x <- rep(1:5) # Using rep() methodgfg <- append(x, 10) print(gfg)
Output:
[1... | [
{
"code": null,
"e": 24231,
"s": 24203,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24347,
"s": 24231,
"text": "append() method in R programming is used to append the different types of integer values into a vector in the last."
},
{
"code": null,
"e": 24389,
... |
Enumerated Types or Enums in C++ | In this tutorial, we will be discussing a program to understand Enumerated types or Enums in C++.
Enumerated types are user-defined data types in which the user can specify a limited number of values that can be allocated to the variable.
Live Demo
#include <bits/stdc++.h>
using namespace std;
int main(){
//definin... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to understand Enumerated types or Enums in C++."
},
{
"code": null,
"e": 1301,
"s": 1160,
"text": "Enumerated types are user-defined data types in which the user can specify a limited... |
Binary array to corresponding decimal in JavaScript | We are required to write a JavaScript function that takes in a binary array (consisting of only 0 and 1).
Our function should first join all the bits in the array and then return the decimal number corresponding to that binary.
Following is the code −
Live Demo
const arr = [1, 0, 1, 1];
const binaryArrayToNumber = arr... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a binary array (consisting of only 0 and 1)."
},
{
"code": null,
"e": 1290,
"s": 1168,
"text": "Our function should first join all the bits in the array and then return the... |
Adding a column that doesn't exist in a query? | Add a column that does not exist in a query, with the help of AS keyword. The syntax is as follows −
SELECT yourColumnName1,yourColumnName2,....N,yourValue AS yourColumnName,....N' FROM yourTableName;
To understand the above syntax, let us create a table. The query to create a table is as follows −
mysql> create table ... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "Add a column that does not exist in a query, with the help of AS keyword. The syntax is as follows −"
},
{
"code": null,
"e": 1263,
"s": 1163,
"text": "SELECT yourColumnName1,yourColumnName2,....N,yourValue AS yourColumnName,....N' F... |
How to run an external application through a C# application? | An external application can be run from a C# application using Process. A process is a program that is running on your computer. This can be anything from a small background task, such as a spell-checker or system events handler to a full-blown application like Notepad etc.
Each process provides the resources needed to... | [
{
"code": null,
"e": 1337,
"s": 1062,
"text": "An external application can be run from a C# application using Process. A process is a program that is running on your computer. This can be anything from a small background task, such as a spell-checker or system events handler to a full-blown applicat... |
JavaFX Effects - Shadow | This effect creates a duplicate of the specified node with blurry edges.
The class named Shadow of the package javafx.scene.effect represents the sepia tone effect. This class contains six properties, which are −
color − This property is of Color type represents the color of the shadow.
color − This property is of Colo... | [
{
"code": null,
"e": 1973,
"s": 1900,
"text": "This effect creates a duplicate of the specified node with blurry edges."
},
{
"code": null,
"e": 2113,
"s": 1973,
"text": "The class named Shadow of the package javafx.scene.effect represents the sepia tone effect. This class contai... |
How to use a pipe with Linux find command? | Linux find statement is one of the most widely used statements that allows us to walk a file hierarchy. It is used to mostly find a specific file or directories and we can also append different other Linux statements or flags along with it to enhance or do a complex operation.
Let’s explore an example of a find stateme... | [
{
"code": null,
"e": 1340,
"s": 1062,
"text": "Linux find statement is one of the most widely used statements that allows us to walk a file hierarchy. It is used to mostly find a specific file or directories and we can also append different other Linux statements or flags along with it to enhance or... |
HTML | <li> type Attribute | 08 Mar, 2022
The <li> type attribute in HTML is used to specify the type of a list items. This attribute also defines the style of the bullet point of the list items.
Syntax:
<li type="1|a|A|i|I|disc|circle|square">
Attribute Values: For ordered list items:
1: It is the default value. It is used to specify the nume... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Mar, 2022"
},
{
"code": null,
"e": 183,
"s": 28,
"text": "The <li> type attribute in HTML is used to specify the type of a list items. This attribute also defines the style of the bullet point of the list items. "
},
{
"code"... |
How to set the Alignment of the Text in the TextBox in C#? | 29 Nov, 2019
In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In TextBox, you are allowed to set the alignment of the text present in the TextBox by using the TextAlign Property of the TextBox. The d... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2019"
},
{
"code": null,
"e": 460,
"s": 28,
"text": "In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In Te... |
How to fill NAN values with mean in Pandas? | 24 Jan, 2021
It is a quite compulsory process to modify the data we have as the computer will show you an error of invalid input as it is quite impossible to process the data having ‘NaN’ with it and it is not quite practically possible to manually change the ‘NaN’ to its mean. Therefore, to resolve this problem we pro... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 524,
"s": 52,
"text": "It is a quite compulsory process to modify the data we have as the computer will show you an error of invalid input as it is quite impossible to process the data having ‘NaN’... |
Missing ranges of numbers | Practice | GeeksforGeeks | Given an array Arr of N positive integers, find the missing elements (if any) in the range 0 to max of Arri.
Example 1:
Input:
N = 5
Arr[] = {62, 8, 34, 5, 332}
Output: 0-4 6-7 9-33 35-61 63-331
Explanation: Elements in the range 0-4, 6-7,
9-33, 35-61 and 63-331 are not present.
Example 2:
Input:
N = 4
Arr[] = {13... | [
{
"code": null,
"e": 348,
"s": 226,
"text": "Given an array Arr of N positive integers, find the missing elements (if any) in the range 0 to max of Arri. \n\nExample 1:"
},
{
"code": null,
"e": 510,
"s": 348,
"text": "Input:\nN = 5\nArr[] = {62, 8, 34, 5, 332}\nOutput: 0-4 6-7 9-... |
How to create customized Buttons in Android with different shapes and colors | 19 Feb, 2021
A Button is a user interface that are used to perform some action when clicked or tapped.
Default Shape of Button
In this article, we will try to change the shape and color of Button to various designs, like:
Oval Button
Rectangular Button
Cylindrical Button
Below are the various steps to created customize... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 142,
"s": 52,
"text": "A Button is a user interface that are used to perform some action when clicked or tapped."
},
{
"code": null,
"e": 166,
"s": 142,
"text": "Default Shape o... |
Python – String Integer Product | 25 Jun, 2020
Sometimes, while working with data, we can have a problem in which we receive a series of lists with data in string format, which we wish to find the product of each string list integer. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using loop + int()This is the brute force me... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2020"
},
{
"code": null,
"e": 279,
"s": 28,
"text": "Sometimes, while working with data, we can have a problem in which we receive a series of lists with data in string format, which we wish to find the product of each string li... |
NestedScrollView in Android with Example | 18 Feb, 2021
NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. It is enabled by default. NestedScrollView is used when there is a need for a scrolling view inside another scrolling view. You have seen this in many apps f... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 687,
"s": 52,
"text": "NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. It is enabled by default... |
Integer.valueOf() vs Integer.parseInt() with Examples | 26 Nov, 2019
Integer.parseInt():
While operating upon strings, there are times when we need to convert a number represented as a string into an integer type. The method generally used to convert String to Integer in Java is parseInt(). This method belongs to Integer class in java.lang package. It takes a valid string a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 72,
"s": 52,
"text": "Integer.parseInt():"
},
{
"code": null,
"e": 549,
"s": 72,
"text": "While operating upon strings, there are times when we need to convert a number represen... |
PHP | strip_tags() Function | 02 Nov, 2020
The strip_tags() function is an inbuilt function in PHP which is used to strips a string from HTML, and PHP tags. This function returns a string with all NULL bytes, HTML, and PHP tags stripped from a given $str.
Syntax:
string strip_tags( $str, $allowable_tags )
Parameters: This function accepts two... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Nov, 2020"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "The strip_tags() function is an inbuilt function in PHP which is used to strips a string from HTML, and PHP tags. This function returns a string with all NULL bytes, HTML, and... |
How to delete columns by their name in data.table in R? | We can do this by setting the column to NULL
> library(data.table)
> df <- data.frame(numbers = 1:10, x = runif(10,25,75))
> data_table <- data.table(df)
To delete one column x
> data_table[, x:=NULL]
> data_table
numbers
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
10: 10
To delete two columns
> df <- data.frame(numbe... | [
{
"code": null,
"e": 1107,
"s": 1062,
"text": "We can do this by setting the column to NULL"
},
{
"code": null,
"e": 1216,
"s": 1107,
"text": "> library(data.table)\n> df <- data.frame(numbers = 1:10, x = runif(10,25,75))\n> data_table <- data.table(df)"
},
{
"code": null... |
Time Series Forecasting with Splunk. Part I. Intro & Kalman Filter. | by Nikolay Ryabykh | Towards Data Science | Time series forecasting is a quite typical task in data analysis. Splunk ML Toolkit provides a couple of well-known methods for this task: Kalman filter and ARIMA. Unfortunately, these methods sometimes fail when encountering a real-world problems. So, let’s take a closer look on them and then consider a couple of othe... | [
{
"code": null,
"e": 543,
"s": 172,
"text": "Time series forecasting is a quite typical task in data analysis. Splunk ML Toolkit provides a couple of well-known methods for this task: Kalman filter and ARIMA. Unfortunately, these methods sometimes fail when encountering a real-world problems. So, le... |
Spring - Quick Guide | Spring is the most popular application development framework for enterprise Java. Millions of developers around the world use Spring Framework to create high performing, easily testable, and reusable code.
Spring framework is an open source Java platform. It was initially written by Rod Johnson and was first released u... | [
{
"code": null,
"e": 2498,
"s": 2292,
"text": "Spring is the most popular application development framework for enterprise Java. Millions of developers around the world use Spring Framework to create high performing, easily testable, and reusable code."
},
{
"code": null,
"e": 2654,
... |
Introduction to Apache POI - GeeksforGeeks | 10 Dec, 2021
Apache POI is an open-source java library to create and manipulate various file formats based on Microsoft Office. Using POI, one should be able to perform create, modify and display/read operations on the following file formats. For Example, Java doesn’t provide built-in support for working with excel fil... | [
{
"code": null,
"e": 24558,
"s": 24530,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 24923,
"s": 24558,
"text": "Apache POI is an open-source java library to create and manipulate various file formats based on Microsoft Office. Using POI, one should be able to perform create,... |
Program to find largest rectangle area under histogram in python | Suppose we have a list of numbers representing heights of bars in a histogram. We have to find area of the largest rectangle that can be formed under the bars.
So, if the input is like nums = [3, 2, 5, 7]
then the output will be 10
To solve this, we will follow these steps −
stk := a stack and initially insert -1 into ... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "Suppose we have a list of numbers representing heights of bars in a histogram. We have to find area of the largest rectangle that can be formed under the bars."
},
{
"code": null,
"e": 1267,
"s": 1222,
"text": "So, if the input is li... |
Print nodes of linked list at given indexes - GeeksforGeeks | 15 Sep, 2021
Given a singly linked list which is sorted in ascending order and another singly linked list which is unsorted. The task is to print the elements of the second linked list according to the position pointed out by the data in the nodes of the first linked list. For example, if the first linked list is 1->2-... | [
{
"code": null,
"e": 24567,
"s": 24539,
"text": "\n15 Sep, 2021"
},
{
"code": null,
"e": 24957,
"s": 24567,
"text": "Given a singly linked list which is sorted in ascending order and another singly linked list which is unsorted. The task is to print the elements of the second lin... |
Data Transformation. How to apply modern Machine Learning on... | by Ke Gui | Towards Data Science | Warning: There is no magical formula or Holy Grail here, though a new world might open the door for you.
Identifying OutliersIdentifying Outliers — Part TwoIdentifying Outliers — Part ThreeStylized FactsFeature Engineering & Feature SelectionData TransformationFractionally Differentiated FeaturesData LabellingMeta-labe... | [
{
"code": null,
"e": 277,
"s": 172,
"text": "Warning: There is no magical formula or Holy Grail here, though a new world might open the door for you."
},
{
"code": null,
"e": 510,
"s": 277,
"text": "Identifying OutliersIdentifying Outliers — Part TwoIdentifying Outliers — Part Th... |
Clustering Product Names with Python — Part 1 | by Lily Wu | Towards Data Science | Natural Language Processing (NLP) refers to the automatic computational processing of human language like text and speech.
It is particularly useful for analysing large amounts of unlabelled text to quickly extract meaning which is exactly the problem when it comes to categorising eCommerce products. Products can be ei... | [
{
"code": null,
"e": 294,
"s": 171,
"text": "Natural Language Processing (NLP) refers to the automatic computational processing of human language like text and speech."
},
{
"code": null,
"e": 623,
"s": 294,
"text": "It is particularly useful for analysing large amounts of unlabe... |
Cucumber - Environment | In this chapter, we will see the environment setup for Cucumber with Selenium WebDriver and Java, on Windows Machine.
Following are the prerequisites required to set up with −
Why we need − Java is a robust programming language. Cucumber supports Java platform for the execution.
How to install −
Step 1 − Download jdk a... | [
{
"code": null,
"e": 2080,
"s": 1962,
"text": "In this chapter, we will see the environment setup for Cucumber with Selenium WebDriver and Java, on Windows Machine."
},
{
"code": null,
"e": 2138,
"s": 2080,
"text": "Following are the prerequisites required to set up with −"
},
... |
How do I write class names in Java? | While writing class names you need to keep the following points in mind.
You shouldn’t use predefined or existing class names as the name of the current class.
You shouldn’t use any Java keywords as class name (with the same case).
The First letter of the class name should be capital and remaining letters should be sma... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "While writing class names you need to keep the following points in mind."
},
{
"code": null,
"e": 1222,
"s": 1135,
"text": "You shouldn’t use predefined or existing class names as the name of the current class."
},
{
"code": ... |
Using Prophet after COVID? Read this first. | by JZ Lu | Towards Data Science | Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data ... | [
{
"code": null,
"e": 553,
"s": 171,
"text": "Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and sever... |
Simple abstractive text summarization with pretrained T5 — Text-To-Text Transfer Transformer | by Ramsri Goutham | Towards Data Science | T5 is a new transformer model from Google that is trained in an end-to-end manner with text as input and modified text as output. You can read more about it here.
It achieves state-of-the-art results on multiple NLP tasks like summarization, question answering, machine translation etc using a text-to-text transformer t... | [
{
"code": null,
"e": 335,
"s": 172,
"text": "T5 is a new transformer model from Google that is trained in an end-to-end manner with text as input and modified text as output. You can read more about it here."
},
{
"code": null,
"e": 523,
"s": 335,
"text": "It achieves state-of-th... |
ASP.NET MVC - Data Model | In this chapter, we will discuss about building models in an ASP.NET MVC Framework application. A model stores data that is retrieved according to the commands from the Controller and displayed in the View.
Model is a collection of classes wherein you will be working with data and business logic. Hence, basically model... | [
{
"code": null,
"e": 2476,
"s": 2269,
"text": "In this chapter, we will discuss about building models in an ASP.NET MVC Framework application. A model stores data that is retrieved according to the commands from the Controller and displayed in the View."
},
{
"code": null,
"e": 2746,
... |
COBOL - Data Layout | COBOL layout is the description of use of each field and the values present in it. Following are the data description entries used in COBOL −
Redefines Clause
Renames Clause
Usage Clause
Copybooks
Redefines clause is used to define a storage with different data description. If one or more data items are not used simult... | [
{
"code": null,
"e": 2164,
"s": 2022,
"text": "COBOL layout is the description of use of each field and the values present in it. Following are the data description entries used in COBOL −"
},
{
"code": null,
"e": 2181,
"s": 2164,
"text": "Redefines Clause"
},
{
"code": n... |
Dividing two lists in Python | The elements in tow lists can be involved in a division operation for some data manipulation activity using python. In this article we will see how this can be achieved.
The zip function can pair up the two given lists element wise. The we apply the division mathematical operator to each pair of these elements. Storing... | [
{
"code": null,
"e": 1232,
"s": 1062,
"text": "The elements in tow lists can be involved in a division operation for some data manipulation activity using python. In this article we will see how this can be achieved."
},
{
"code": null,
"e": 1411,
"s": 1232,
"text": "The zip func... |
With JavaScript how to change the width of a table border? | To change the width of a table border, use the DOM border property. You can try to run the following code to change the width of a table border in JavaScript −
<!DOCTYPE html>
<html>
<head>
<script>
function borderFunc(x) {
document.getElementById(x).style.border = "5px dashed blue";
... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "To change the width of a table border, use the DOM border property. You can try to run the following code to change the width of a table border in JavaScript −"
},
{
"code": null,
"e": 1893,
"s": 1222,
"text": "<!DOCTYPE html>\n<html... |
CSS | Shorthand Properties - GeeksforGeeks | 27 Apr, 2020
Shorthand properties allow us to write multiple properties in a single line and in a compact way. They are useful as they provide clean code and also decrease the LOC (Line of Code).
The Shorthand properties we will be covering:
BackgroundFontBorderOutlineMarginPaddingList
Background
Font
Border
Outline
Ma... | [
{
"code": null,
"e": 25376,
"s": 25348,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 25559,
"s": 25376,
"text": "Shorthand properties allow us to write multiple properties in a single line and in a compact way. They are useful as they provide clean code and also decrease the ... |
Breadth First Search on Matrix in Python | In a given matrix, there are four objects to analyze the element position: left, right, bottom, and top.
Breadth First Search is nothing but finding the shortest distance between the two elements of a given 2-D Matrix. Thus, in each cell, there are four operations we can perform which can be expressed in four numerals ... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "In a given matrix, there are four objects to analyze the element position: left, right, bottom, and top."
},
{
"code": null,
"e": 1391,
"s": 1167,
"text": "Breadth First Search is nothing but finding the shortest distance between the... |
VBA - Space | The Space function fills a string with a specific number of spaces.
space(number)
Number − A required parameter. The number of spaces that we want to add to the given string.
Private Sub Constant_demo_Click()
Dim var1 as Variant
var1 = "Microsoft"
Dim var2 as Variant
var2 = "VBScript"
msgbox(var... | [
{
"code": null,
"e": 2003,
"s": 1935,
"text": "The Space function fills a string with a specific number of spaces."
},
{
"code": null,
"e": 2018,
"s": 2003,
"text": "space(number)\n"
},
{
"code": null,
"e": 2111,
"s": 2018,
"text": "Number − A required paramet... |
ES6 - Classes | Object Orientation is a software development paradigm that follows real-world modelling. Object Orientation, considers a program as a collection of objects that communicates with each other via mechanism called methods. ES6 supports these object-oriented components too.
To begin with, let us understand
Object − An obje... | [
{
"code": null,
"e": 2548,
"s": 2277,
"text": "Object Orientation is a software development paradigm that follows real-world modelling. Object Orientation, considers a program as a collection of objects that communicates with each other via mechanism called methods. ES6 supports these object-oriente... |
Real-time Object Detection Without Machine Learning | by Jamie Bullock | Towards Data Science | Earlier this year Nick Bourdakos, a software developer at IBM posted a series of videos demoing real-time object detection in a web browser. One of his early videos went viral, receiving over 16,000 likes and 900+ comments on LinkedIn. Here’s the original post:
www.linkedin.com
The video shows three bottles (Coke, Peps... | [
{
"code": null,
"e": 434,
"s": 172,
"text": "Earlier this year Nick Bourdakos, a software developer at IBM posted a series of videos demoing real-time object detection in a web browser. One of his early videos went viral, receiving over 16,000 likes and 900+ comments on LinkedIn. Here’s the original... |
Java Program to convert String to Double | To convert String to Double in Java, you can use the following three examples. Two of them are using in-built methods parseDouble() and valueOf(). However, one of the method isn’t using a method.
Let us work through them one by one.
The following is an example to convert String to Double without using a method −
Live ... | [
{
"code": null,
"e": 1258,
"s": 1062,
"text": "To convert String to Double in Java, you can use the following three examples. Two of them are using in-built methods parseDouble() and valueOf(). However, one of the method isn’t using a method."
},
{
"code": null,
"e": 1295,
"s": 1258,... |
Permutation hypothesis test in R. Exploring a powerful simulation... | by Serafim Petrov | Towards Data Science | To compare outcomes in experiments, we often use Student’s t-test. It assumes that data are randomly selected from the population, arrived in large samples (>30), or normally distributed with equal variances between groups.If we do not happen to meet these assumptions, we may use one of the simulation tests. In this ar... | [
{
"code": null,
"e": 539,
"s": 172,
"text": "To compare outcomes in experiments, we often use Student’s t-test. It assumes that data are randomly selected from the population, arrived in large samples (>30), or normally distributed with equal variances between groups.If we do not happen to meet thes... |
What are Closures in Lua Programming? | In Lua, any function is a closure. In a narrower sense, a closure is an anonymous function like the returned function in your example.
Closures are first-class: they can be assigned to variables, passed to functions and returned from them. They can be both keys and values in Lua tables.
Unlike C++ or PHP, closures in L... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "In Lua, any function is a closure. In a narrower sense, a closure is an anonymous function like the returned function in your example."
},
{
"code": null,
"e": 1350,
"s": 1197,
"text": "Closures are first-class: they can be assigned ... |
Binary literals in C++14 with Examples - GeeksforGeeks | 28 Jan, 2021
In this article, we will discuss Binary literals in C++14.
While writing programs which involve mathematical evaluations or various types of number, we usually like to specify each digit type with specific prefix i.e., For Hexadecimal number use the prefix ‘0x’ and for Octal number use the prefix ‘0’. Belo... | [
{
"code": null,
"e": 24124,
"s": 24096,
"text": "\n28 Jan, 2021"
},
{
"code": null,
"e": 24183,
"s": 24124,
"text": "In this article, we will discuss Binary literals in C++14."
},
{
"code": null,
"e": 24472,
"s": 24183,
"text": "While writing programs which in... |
NewYork Taxi demand forecasting with SARIMAX using weather data | by Abdelkader BOUREGAG | Towards Data Science | Taxi demands prediction has become extremely important for taxi-hailing (and e-haling) companies as a way to understand their demand and to optimize their fleet management.
In this article, we will present a method for predicting the number of taxi pickups in a certain region of NewYork. We will perform spatiotemporal ... | [
{
"code": null,
"e": 345,
"s": 172,
"text": "Taxi demands prediction has become extremely important for taxi-hailing (and e-haling) companies as a way to understand their demand and to optimize their fleet management."
},
{
"code": null,
"e": 629,
"s": 345,
"text": "In this artic... |
What happens if we re-declare a variable in JavaScript? | On re-declaring a variable in JavaScript, the variable value still remains the same.
Let’s see an example. Here, we are declaring the variable age −
<html>
<body>
<script>
<!--
var age = 20;
var age;
if( age > 18 ){
document.write("Qualifies for drivi... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "On re-declaring a variable in JavaScript, the variable value still remains the same."
},
{
"code": null,
"e": 1211,
"s": 1147,
"text": "Let’s see an example. Here, we are declaring the variable age −"
},
{
"code": null,
"... |
Array to Stream in Java - GeeksforGeeks | 11 Dec, 2018
Prerequisite : Stream In Java
Using Arrays.stream() :
Syntax :
public static <T> Stream<T> getStream(T[] arr)
{
return Arrays.stream(arr);
}
where, T represents generic type.
Example 1 : Arrays.stream() to convert string array to stream.
// Java code for converting string array// to stream using Arrays... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 23978,
"s": 23948,
"text": "Prerequisite : Stream In Java"
},
{
"code": null,
"e": 24002,
"s": 23978,
"text": "Using Arrays.stream() :"
},
{
"code": null,
"e":... |
Find sum of product of number in given series - GeeksforGeeks | 26 May, 2021
Given two numbers N and T where, and . The task is to find the value of .Since sum can be large, output it modulo 109+7.Examples:
Input : 3 2
Output : 38
2*3 + 3*4 + 4*5 = 38
Input : 4 2
Output : 68
In the Given Sample Case n = 3 and t = 2.sum = 2*3+3*4+4*5. Notice that:
So each term is of the form... | [
{
"code": null,
"e": 25452,
"s": 25424,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 25584,
"s": 25452,
"text": "Given two numbers N and T where, and . The task is to find the value of .Since sum can be large, output it modulo 109+7.Examples: "
},
{
"code": null,
... |
Building a Chatbot with Rasa. Getting Started | by Aniruddha Karajgi | Towards Data Science | Chatbots are programs that simulate human conversation. These can range from simple rule-based chatbots, where the user is limited to clicking on buttons or suggested replies that the bot provides, all the way to fully-fledged bots that can handle context, chitchat, and other complex things, which are otherwise very co... | [
{
"code": null,
"e": 520,
"s": 172,
"text": "Chatbots are programs that simulate human conversation. These can range from simple rule-based chatbots, where the user is limited to clicking on buttons or suggested replies that the bot provides, all the way to fully-fledged bots that can handle context... |
Computer Programming - Strings | During our discussion about characters, we learnt that character data type deals with a single character and you can assign any character from your keyboard to a character type variable.
Now, let's move a little bit ahead and consider a situation where we need to store more than one character in a variable. We have see... | [
{
"code": null,
"e": 2327,
"s": 2140,
"text": "During our discussion about characters, we learnt that character data type deals with a single character and you can assign any character from your keyboard to a character type variable."
},
{
"code": null,
"e": 2644,
"s": 2327,
"tex... |
Create red neon glow shadow using CSS | To create red neon glow shadow, use the text-shadow property. You can try to run the following code to achieve this
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-shadow: 0 0 4px #FF0000;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Above he... | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "To create red neon glow shadow, use the text-shadow property. You can try to run the following code to achieve this"
},
{
"code": null,
"e": 1188,
"s": 1178,
"text": "Live Demo"
},
{
"code": null,
"e": 1447,
"s": 1188... |
Graph Data Structure in Javascript | A graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. The interconnected objects are represented by points termed as vertices, and the links that connect the vertices are called edges.
Formally, a graph is a pair of sets (V, E), where V is the set of vertices and ... | [
{
"code": null,
"e": 1303,
"s": 1062,
"text": "A graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. The interconnected objects are represented by points termed as vertices, and the links that connect the vertices are called edges."
},
{
... |
Understand how to transfer your paragraph to vector by doc2vec | by Edward Ma | Towards Data Science | In previous story, mentioned word2vec is introduced by Mikolov et al. (2013). Mikolov and Le released sentence/ document vectors transformation. It is another breakthrough on embeddings such that we can use vector to represent a sentence or document. Mikolov et al. call it as “Paragraph Vector”.
After reading this arti... | [
{
"code": null,
"e": 468,
"s": 171,
"text": "In previous story, mentioned word2vec is introduced by Mikolov et al. (2013). Mikolov and Le released sentence/ document vectors transformation. It is another breakthrough on embeddings such that we can use vector to represent a sentence or document. Miko... |
Can't find my.ini in MySQL directory? | The my.ini is in hidden folder of program data. First go to C: drive and then hidden folder of program data. From that, move to the MySQL version directory.
Here is the snapshot of the C: drive −
Click on C drive. The snapshot is as follows. Here, you can see the Program Data folder −
Now go to MySQL under Program Data... | [
{
"code": null,
"e": 1219,
"s": 1062,
"text": "The my.ini is in hidden folder of program data. First go to C: drive and then hidden folder of program data. From that, move to the MySQL version directory."
},
{
"code": null,
"e": 1258,
"s": 1219,
"text": "Here is the snapshot of t... |
iOS - In-App Purchase | In-App purchase is used to purchase additional content or upgrade features with respect to an application.
Step 1 − In iTunes connect, ensure that you have a unique App ID and when we create the application update with the bundle ID and code signing in Xcode with corresponding provisioning profile.
Step 2 − Create a ne... | [
{
"code": null,
"e": 2198,
"s": 2091,
"text": "In-App purchase is used to purchase additional content or upgrade features with respect to an application."
},
{
"code": null,
"e": 2391,
"s": 2198,
"text": "Step 1 − In iTunes connect, ensure that you have a unique App ID and when w... |
Method Overriding in Dart - GeeksforGeeks | 20 Jul, 2020
Method overriding occurs in dart when a child class tries to override the parent class’s method. When a child class extends a parent class, it gets full access to the methods of the parent class and thus it overrides the methods of the parent class. It is achieved by re-defining the same method present in ... | [
{
"code": null,
"e": 23956,
"s": 23928,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 24281,
"s": 23956,
"text": "Method overriding occurs in dart when a child class tries to override the parent class’s method. When a child class extends a parent class, it gets full access to ... |
Counting elements in two arrays | Practice | GeeksforGeeks | Given two unsorted arrays arr1[] and arr2[]. They may contain duplicates. For each element in arr1[] count elements less than or equal to it in array arr2[].
Example 1:
Input:
m = 6, n = 6
arr1[] = {1,2,3,4,7,9}
arr2[] = {0,1,2,1,1,4}
Output: 4 5 5 6 6 6
Explanation: Number of elements less than
or equal to 1, 2, 3, 4,... | [
{
"code": null,
"e": 396,
"s": 238,
"text": "Given two unsorted arrays arr1[] and arr2[]. They may contain duplicates. For each element in arr1[] count elements less than or equal to it in array arr2[]."
},
{
"code": null,
"e": 407,
"s": 396,
"text": "Example 1:"
},
{
"co... |
CNN-LSTM-Based Models for Multiple Parallel Input and Multi-Step Forecast | by Halil Ertan | Towards Data Science | Time series forecasting is a very popular field of machine learning. The reason behind this is the widespread usage of time series in daily life in almost every domain. Going into details for time series forecasting, we encounter lots of different kinds of sub-fields and approaches. In this writing, I will focus on a s... | [
{
"code": null,
"e": 774,
"s": 172,
"text": "Time series forecasting is a very popular field of machine learning. The reason behind this is the widespread usage of time series in daily life in almost every domain. Going into details for time series forecasting, we encounter lots of different kinds o... |
Markov Chain Monte Carlo in Python | by Will Koehrsen | Towards Data Science | A Complete Real-World Implementation
The past few months, I encountered one term again and again in the data science world: Markov Chain Monte Carlo. In my research lab, in podcasts, in articles, every time I heard the phrase I would nod and think that sounds pretty cool with only a vague idea of what anyone was talkin... | [
{
"code": null,
"e": 208,
"s": 171,
"text": "A Complete Real-World Implementation"
},
{
"code": null,
"e": 708,
"s": 208,
"text": "The past few months, I encountered one term again and again in the data science world: Markov Chain Monte Carlo. In my research lab, in podcasts, in ... |
MongoDB Insert() Method - db.Collection.insert() - GeeksforGeeks | 28 Jan, 2021
In MongoDB, the insert() method inserts a document or documents into the collection. It takes two parameters, the first parameter is the document or array of the document that we want to insert and the remaining are optional.
Using this method you can also create a collection by inserting documents.
You ca... | [
{
"code": null,
"e": 25066,
"s": 25038,
"text": "\n28 Jan, 2021"
},
{
"code": null,
"e": 25292,
"s": 25066,
"text": "In MongoDB, the insert() method inserts a document or documents into the collection. It takes two parameters, the first parameter is the document or array of the d... |
Center element of matrix equals sums of half diagonals - GeeksforGeeks | 26 Apr, 2021
Given a matrix of odd order i.e(5*5). Task is to check if the center element of the matrix is equal to the individual sum of all the half diagonals.
Examples:
Input : mat[][] = { 2 9 1 4 -2
6 7 2 11 4
4 2 9 2 4
1 ... | [
{
"code": null,
"e": 26370,
"s": 26342,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 26521,
"s": 26370,
"text": "Given a matrix of odd order i.e(5*5). Task is to check if the center element of the matrix is equal to the individual sum of all the half diagonals. "
},
{
... |
End-to-end breast cancer detection with Python — Part 1 | by Jordan Van Eetveldt | Towards Data Science | According to cancer.org, breast cancer is the most common cancer in American women. In the US, there is a 1 in 8 chance that a woman will develop breast cancer. In this series of articles we will show how deep learning and image processing can be applied to detect malignant breast masses. We will first focus on detecti... | [
{
"code": null,
"e": 628,
"s": 172,
"text": "According to cancer.org, breast cancer is the most common cancer in American women. In the US, there is a 1 in 8 chance that a woman will develop breast cancer. In this series of articles we will show how deep learning and image processing can be applied ... |
Python Syntax | As we learned in the previous page, Python syntax can be executed by writing directly in the Command Line:
Or by creating a python file on the server, using the .py file extension, and running it in the Command Line:
Indentation refers to the spaces at the beginning of a code line.
Where in other programming languages ... | [
{
"code": null,
"e": 107,
"s": 0,
"text": "As we learned in the previous page, Python syntax can be executed by writing directly in the Command Line:"
},
{
"code": null,
"e": 217,
"s": 107,
"text": "Or by creating a python file on the server, using the .py file extension, and run... |
Calculating and Setting Thresholds to Optimise Logistic Regression Performance | by Graham Harrison | Towards Data Science | I had learned about logistic regression, confusion matrices, ROC curves, thresholds etc. on the various data science courses I have undertaken but I never fully understood them and wanted to explore them in more detail.
Also, I had seen various examples online about how to recalculate the true and false classifications... | [
{
"code": null,
"e": 391,
"s": 171,
"text": "I had learned about logistic regression, confusion matrices, ROC curves, thresholds etc. on the various data science courses I have undertaken but I never fully understood them and wanted to explore them in more detail."
},
{
"code": null,
"e"... |
How to subtract one data frame from another in R? | If we have two data frames with same number of columns of same data type and equal number of rows then we might want to find the difference between the corresponding values of the data frames. To do this, we simply need to use minus sign. For example, if we have data-frames df1 and df2 then the subtraction can be found... | [
{
"code": null,
"e": 1395,
"s": 1062,
"text": "If we have two data frames with same number of columns of same data type and equal number of rows then we might want to find the difference between the corresponding values of the data frames. To do this, we simply need to use minus sign. For example, i... |
A Simple Guide to Using Keras Pretrained Models | by Shiva Verma | Towards Data Science | Keras contains 10 pretrained models for image classification which are trained on Imagenet data. Imagenet is a large collection of image data containing 1000 categories of images. These pretrained models are capable of classifying any image that falls into these 1000 categories of images.
This guide will cover the foll... | [
{
"code": null,
"e": 462,
"s": 172,
"text": "Keras contains 10 pretrained models for image classification which are trained on Imagenet data. Imagenet is a large collection of image data containing 1000 categories of images. These pretrained models are capable of classifying any image that falls int... |
Tailwind CSS Table Layout | 23 Mar, 2022
This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can set the display of the layout of the table. In CSS, we do that by using the CSS table-layout property.
Table Layout classes:
table-auto
table-fixed
table-auto: This class is us... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 288,
"s": 54,
"text": "This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can set the display of the layout of the table.... |
Python | Pandas Series.reset_index() | 10 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.reset_index() function generate a ne... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Feb, 2019"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index... |
Prototypal Inheritance using __proto__ in JavaScript | 02 Jun, 2020
Every object with its methods and properties contains an internal and hidden property known as [[Prototype]]. The Prototypal Inheritance is a feature in javascript used to add methods and properties in objects. It is a method by which an object can inherit the properties and methods of another object. Trad... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jun, 2020"
},
{
"code": null,
"e": 545,
"s": 52,
"text": "Every object with its methods and properties contains an internal and hidden property known as [[Prototype]]. The Prototypal Inheritance is a feature in javascript used to ad... |
Reverse the order of all nodes at even position in given Linked List | 07 Mar, 2022
Given a linked list A[] of N integers, the task is to reverse the order of all integers at an even position.
Examples:
Input: A[] = 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> NULLOutput: 1 6 3 4 5 2Explanation: Nodes at even position in the given linked list are 2, 4 and 6. So, after reversing there order, the new lin... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Mar, 2022"
},
{
"code": null,
"e": 161,
"s": 52,
"text": "Given a linked list A[] of N integers, the task is to reverse the order of all integers at an even position."
},
{
"code": null,
"e": 171,
"s": 161,
"text... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.