title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Web Scraping Google Sheets with RSelenium | by Matt.0 | Towards Data Science | I love to learn new things and one of ways I learn best is by doing. Also it’s been said that you never fully understand a topic until you are able to explain it , I think blogging is a low barrier to explaining things.
Someone I met at a local data science meetup in Montréal wanted help web scraping to get team stand... | [
{
"code": null,
"e": 392,
"s": 172,
"text": "I love to learn new things and one of ways I learn best is by doing. Also it’s been said that you never fully understand a topic until you are able to explain it , I think blogging is a low barrier to explaining things."
},
{
"code": null,
"e"... |
Types of pragma directives in C - GeeksforGeeks | 04 Apr, 2021
Pragma Directives: The pragma directive is used to control the actions of the compiler in a particular portion of a program without affecting the program as a whole.
Pragma directives are included in the C program to take effect.
The effect of pragma will be applied from the point where it is included to... | [
{
"code": null,
"e": 25639,
"s": 25608,
"text": " \n04 Apr, 2021\n"
},
{
"code": null,
"e": 25806,
"s": 25639,
"text": "Pragma Directives: The pragma directive is used to control the actions of the compiler in a particular portion of a program without affecting the program as a w... |
PHP | SplFileInfo getFileInfo() Function - GeeksforGeeks | 17 Dec, 2018
The SplFileInfo::getFileInfo() function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get the file information of the file.
Syntax:
SplFileInfo::getFileInfo( $class )
Parameters: This function accepts single parameter $class which is optional. It is used to specify the name o... | [
{
"code": null,
"e": 25057,
"s": 25029,
"text": "\n17 Dec, 2018"
},
{
"code": null,
"e": 25212,
"s": 25057,
"text": "The SplFileInfo::getFileInfo() function is an inbuilt function of Standard PHP Library (SPL) in PHP which is used to get the file information of the file."
},
... |
What is BPDU Guard and How to Configure BPDU Guard? - GeeksforGeeks | 27 Dec, 2021
Bridge Protocol Data Unit (BPDU) is a spanning tree protocol (STP) message unit which describes the switch port attributes such as MAC address, priority, and cost to achieve which allow switches to participate in the Spanning Tree Protocol to collect information from each other.
BPDU Guard is a feature tha... | [
{
"code": null,
"e": 24119,
"s": 24091,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 24399,
"s": 24119,
"text": "Bridge Protocol Data Unit (BPDU) is a spanning tree protocol (STP) message unit which describes the switch port attributes such as MAC address, priority, and cost ... |
Plotting Google Map using folium package? | Folium is a very powerful python library which let you create seveal kind of Leaflet maps. As Leaflet/folium maps are interactive, so they are ideal for making dashborad building.
Installing folium is very easy using pip −
$pip install folium
Like you can see from the below screenshot, you just need to type above comma... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "Folium is a very powerful python library which let you create seveal kind of Leaflet maps. As Leaflet/folium maps are interactive, so they are ideal for making dashborad building."
},
{
"code": null,
"e": 1285,
"s": 1242,
"text": "In... |
Pandas DataFrame: A lightweight Intro | by Deepak K Gupta (DAKSH) | Towards Data Science | Pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.
The Data Structures provided by Pandas are of two distinct types
Pandas DataFrame &Pandas Series
Pandas DataFrame &
Pandas Series
We’ll look in Pandas DataF... | [
{
"code": null,
"e": 210,
"s": 46,
"text": "Pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language."
},
{
"code": null,
"e": 275,
"s": 210,
"text": "The Data Structures pro... |
Complement of Base 10 Integer in Python | Suppose we have a number in decimal number system. We have to get the complement of the number in binary form, then again change it to decimal and return the result. So if the number is 20, then the binary form will be 10100, the complement will be 01011, this is 11 in decimal
To solve this, we will follow these steps ... | [
{
"code": null,
"e": 1340,
"s": 1062,
"text": "Suppose we have a number in decimal number system. We have to get the complement of the number in binary form, then again change it to decimal and return the result. So if the number is 20, then the binary form will be 10100, the complement will be 0101... |
How to dynamically update a ListView on Android | This example demonstrates How to dynamically update a ListView on Android
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-8"?>
<LinearLa... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "This example demonstrates How to dynamically update a ListView on Android"
},
{
"code": null,
"e": 1265,
"s": 1136,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c... |
Holiday calendars with Pandas. It’s very common to hear that a data... | by Francisco Gárate | Towards Data Science | It’s very common to hear that a data scientist is a statistician who works with Python on Mac. In part, that’s correct. However, anyone who has worked within the academic world knows that, for a statistician, cows are spherical and months have 365.25/12 days. Instead, in the real world, neither two cows are the same no... | [
{
"code": null,
"e": 526,
"s": 171,
"text": "It’s very common to hear that a data scientist is a statistician who works with Python on Mac. In part, that’s correct. However, anyone who has worked within the academic world knows that, for a statistician, cows are spherical and months have 365.25/12 d... |
How can we implement a rounded JTextField in Java? | A JTextField is a subclass of JTextComponent class and it is one of the most important components that allow the user to an input text value in a single-line format. A JTextField class will generate an ActionListener interface when we trying to enter some input inside it. The important methods of a JTextField class are... | [
{
"code": null,
"e": 1609,
"s": 1062,
"text": "A JTextField is a subclass of JTextComponent class and it is one of the most important components that allow the user to an input text value in a single-line format. A JTextField class will generate an ActionListener interface when we trying to enter so... |
A Practical Introduction to Pandas Series | by B. Chen | Towards Data Science | DataFrame and Series are two core data structures in Pandas. DataFrame is a 2-dimensional labeled data with rows and columns. It is like a spreadsheet or SQL table. Series is a 1-dimensional labeled array. It is sort of like a more powerful version of the Python list. Understanding Series is very important, not only be... | [
{
"code": null,
"e": 595,
"s": 171,
"text": "DataFrame and Series are two core data structures in Pandas. DataFrame is a 2-dimensional labeled data with rows and columns. It is like a spreadsheet or SQL table. Series is a 1-dimensional labeled array. It is sort of like a more powerful version of the... |
Find the last element of a list in scala | Suppose we have a list in Scala, this list is defined under scala.collection.immutable package. As we know, a list is a collection of same type elements which contains immutable (cannot be changed) data. We generally apply last function to show last element of a list.
The following Scala code is showing how to print th... | [
{
"code": null,
"e": 1331,
"s": 1062,
"text": "Suppose we have a list in Scala, this list is defined under scala.collection.immutable package. As we know, a list is a collection of same type elements which contains immutable (cannot be changed) data. We generally apply last function to show last ele... |
Bootstrap 4 | Spinners - GeeksforGeeks | 23 Jul, 2021
Bootstrap provides various classes for creating different styles of “spinner” to display the loading state of projects. These classes are inbuilt with HTML and CSS so no need to write any JavaScript to create them. We can also modify the appearance, size, and placement of the spinners with the classes prov... | [
{
"code": null,
"e": 28360,
"s": 28332,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 28705,
"s": 28360,
"text": "Bootstrap provides various classes for creating different styles of “spinner” to display the loading state of projects. These classes are inbuilt with HTML and CSS... |
How to list temporary table columns in MySQL? | To list temporary table columns in MySQL, let us first create a temporary table.
Here’s an example. We have created a temporary table with some columns that includes the details of a student −
mysql> CREATE TEMPORARY TABLE DemoTable745 (
StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
StudentName varchar(100),... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To list temporary table columns in MySQL, let us first create a temporary table."
},
{
"code": null,
"e": 1255,
"s": 1143,
"text": "Here’s an example. We have created a temporary table with some columns that includes the details of a... |
Getting Started with NLP with spaCy 3.0 | by Lars Nielsen | Towards Data Science | This article is part of the supporting material for the story — ‘Understanding NLP — from TF-IDF to transformers’
This article goes in detail on how to get started with spaCy. We will be focusing on the internals and not just writing some code and executing it. It means — we will be trying to delve a little deeper on w... | [
{
"code": null,
"e": 285,
"s": 171,
"text": "This article is part of the supporting material for the story — ‘Understanding NLP — from TF-IDF to transformers’"
},
{
"code": null,
"e": 544,
"s": 285,
"text": "This article goes in detail on how to get started with spaCy. We will be... |
Print all odd numbers and their sum from 1 to n in PL/SQL - GeeksforGeeks | 02 Jul, 2018
Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.
Given a number N, the task is to display all the odd numbers fr... | [
{
"code": null,
"e": 25209,
"s": 25181,
"text": "\n02 Jul, 2018"
},
{
"code": null,
"e": 25453,
"s": 25209,
"text": "Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part,... |
Draw Plot with two Y-Axes in R - GeeksforGeeks | 29 Jun, 2021
In this article, we are going to discuss how to create y-axes of both sides of a plot in R programming language.
Sometimes for quick data analysis, it is required to create a single graph having two data variables with different scales. To do that in R language we use the following steps.
First, we create ... | [
{
"code": null,
"e": 26513,
"s": 26485,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 26626,
"s": 26513,
"text": "In this article, we are going to discuss how to create y-axes of both sides of a plot in R programming language."
},
{
"code": null,
"e": 26803,
"s... |
How to make PUT request using XMLHttpRequest by making Custom HTTP library ? - GeeksforGeeks | 06 Sep, 2021
The task is to show how the XMLHttpRequest can be used to PUT/Update data to an API by making custom HTTP library. We will be taking a fake API which will contain Array of objects as an example and from that API we will show to PUT data by XMLHttpRequest method by making a custom HTTP library.Used API: htt... | [
{
"code": null,
"e": 26401,
"s": 26373,
"text": "\n06 Sep, 2021"
},
{
"code": null,
"e": 27316,
"s": 26401,
"text": "The task is to show how the XMLHttpRequest can be used to PUT/Update data to an API by making custom HTTP library. We will be taking a fake API which will contain ... |
isblank() in C/C++ - GeeksforGeeks | 26 Apr, 2018
The isblank()function returns non-zero if ch is a character for which isspace() returns true and is used to separate words. Thus for English, the blank characters are space and horizontal tab.
Header File :
ctype.h
Declaration :
int isblank(int ch)
difference between isblank() and isspace()The isspace(... | [
{
"code": null,
"e": 25479,
"s": 25451,
"text": "\n26 Apr, 2018"
},
{
"code": null,
"e": 25672,
"s": 25479,
"text": "The isblank()function returns non-zero if ch is a character for which isspace() returns true and is used to separate words. Thus for English, the blank characters ... |
Differences Between Scala and Golang - GeeksforGeeks | 21 Apr, 2022
Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriented programming language that also provides support to the functional programming approach. Scala programs can convert to bytecodes and can run on the JVM (Java Virtual Machine). Scala stands for Scalable ... | [
{
"code": null,
"e": 26103,
"s": 26075,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 26459,
"s": 26103,
"text": "Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriented programming language that also provides support to the fu... |
Python | Convert a nested list into a flat list - GeeksforGeeks | 10 Sep, 2018
The task is to convert a nested list into a single list in python i.e no matter how many levels of nesting is there in python list, all the nested has to be removed in order to convert it to a single containing all the values of all the lists inside the outermost brackets but without any brackets inside.
E... | [
{
"code": null,
"e": 25519,
"s": 25491,
"text": "\n10 Sep, 2018"
},
{
"code": null,
"e": 25825,
"s": 25519,
"text": "The task is to convert a nested list into a single list in python i.e no matter how many levels of nesting is there in python list, all the nested has to be remove... |
C | Functions | Question 9 - GeeksforGeeks | 28 Jun, 2021
What is the meaning of using static before function declaration?
For example following function sum is made static
static int sum(int x, int y, int z)
{
return (x + y + z);
}
(A) Static means nothing, sum() is same without static keyword.(B) Function need not to be declared before its use(C) Access to ... | [
{
"code": null,
"e": 25694,
"s": 25666,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25759,
"s": 25694,
"text": "What is the meaning of using static before function declaration?"
},
{
"code": null,
"e": 25809,
"s": 25759,
"text": "For example following fun... |
Kali Linux - Cisco-Torch Tool - GeeksforGeeks | 01 Feb, 2021
Cisco-Torch is one of the best penetration testing and scanning tool. It is a mass scanning and exploitation tool. Which was written while working on the edition of “Hacking Exposed Cisco Networks”.
Installation: It comes pre-installed in Kali-Linux but if not then just type the given command in the termin... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 25850,
"s": 25651,
"text": "Cisco-Torch is one of the best penetration testing and scanning tool. It is a mass scanning and exploitation tool. Which was written while working on the edition o... |
Bubble Sort | Practice | GeeksforGeeks | Given an Integer N and a list arr. Sort the array using bubble sort algorithm.
Example 1:
Input:
N = 5
arr[] = {4, 1, 3, 9, 7}
Output:
1 3 4 7 9
Example 2:
Input:
N = 10
arr[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1}
Output:
1 2 3 4 5 6 7 8 9 10
Constraints:
1 <= N <= 103
1 <= arr[i] <= 103
0
akasksingh08016 hours ago
... | [
{
"code": null,
"e": 328,
"s": 238,
"text": "Given an Integer N and a list arr. Sort the array using bubble sort algorithm.\nExample 1:"
},
{
"code": null,
"e": 386,
"s": 328,
"text": "Input: \nN = 5\narr[] = {4, 1, 3, 9, 7}\nOutput: \n1 3 4 7 9\n"
},
{
"code": null,
... |
Replace every array element by multiplication of previous and next - GeeksforGeeks | 08 Mar, 2022
Given an array of integers, update every element with multiplication of previous and next elements with following exceptions. a) First element is replaced by multiplication of first and second. b) Last element is replaced by multiplication of last and second last.
Example:
Input: arr[] = {2, 3, 4, 5, 6}
... | [
{
"code": null,
"e": 42519,
"s": 42491,
"text": "\n08 Mar, 2022"
},
{
"code": null,
"e": 42784,
"s": 42519,
"text": "Given an array of integers, update every element with multiplication of previous and next elements with following exceptions. a) First element is replaced by multi... |
Map Values() Method in Java With Examples - GeeksforGeeks | 10 Sep, 2020
Map Values() method returns the Collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa.
Syntax:
map.values()
Parameter: This method does not take any parameter.
Return value: It returns a collection vi... | [
{
"code": null,
"e": 25449,
"s": 25421,
"text": "\n10 Sep, 2020"
},
{
"code": null,
"e": 25643,
"s": 25449,
"text": "Map Values() method returns the Collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in th... |
Java Program to convert LocalDateTime to LocalDate and LocalTime | At first set a LocalDateTime:
LocalDate date = LocalDate.now();
LocalTime time = LocalTime.now();
LocalDateTime dateTime = LocalDateTime.of(date, time);
Now, convert the LocalDateTime to LocalDate and LocalTime:
LocalDate localDate = LocalDateTime.now().toLocalDate();
LocalTime localTime = LocalDateTime.now().toLocalTi... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "At first set a LocalDateTime:"
},
{
"code": null,
"e": 1215,
"s": 1092,
"text": "LocalDate date = LocalDate.now();\nLocalTime time = LocalTime.now();\nLocalDateTime dateTime = LocalDateTime.of(date, time);"
},
{
"code": null,... |
Apex - Security | Apex security refers to the process of applying security settings and enforcing the sharing rules on running code. Apex classes have security setting that can be controlled via two keywords.
Apex generally runs in system context, that is, the current user's permissions. Field-level security, and sharing rules are not t... | [
{
"code": null,
"e": 2243,
"s": 2052,
"text": "Apex security refers to the process of applying security settings and enforcing the sharing rules on running code. Apex classes have security setting that can be controlled via two keywords."
},
{
"code": null,
"e": 2511,
"s": 2243,
... |
A guide to Face Detection in Python (With Code) | by Maël Fabien | Towards Data Science | In this tutorial, we’ll see how to create and launch a face detection algorithm in Python using OpenCV and Dlib. We’ll also add some features to detect eyes and mouth on multiple faces at the same time. This article will go through the most basic implementations of face detection including Cascade Classifiers, HOG wind... | [
{
"code": null,
"e": 519,
"s": 171,
"text": "In this tutorial, we’ll see how to create and launch a face detection algorithm in Python using OpenCV and Dlib. We’ll also add some features to detect eyes and mouth on multiple faces at the same time. This article will go through the most basic implemen... |
Circle Detection using OpenCV | Python - GeeksforGeeks | 14 Jul, 2019
Circle detection finds a variety of uses in biomedical applications, ranging from iris detection to white blood cell segmentation. The technique followed is similar to the one used to detect lines, as discussed in this article.
Basics of Circle Detection
A circle can be described by the following equation:... | [
{
"code": null,
"e": 25749,
"s": 25721,
"text": "\n14 Jul, 2019"
},
{
"code": null,
"e": 25977,
"s": 25749,
"text": "Circle detection finds a variety of uses in biomedical applications, ranging from iris detection to white blood cell segmentation. The technique followed is simila... |
Convert an ArrayList to HashSet in Java | To convert ArrayList to HashSet, firstly create an ArrayList −
List<String> l = new ArrayList<String>();
Add elements to the ArrayList −
l.add("Accent");
l.add("Speech");
l.add("Diction");
l.add("Tone");
l.add("Pronunciation");
Now convert the ArrayList to HashSet −
Set<String> s = new HashSet<String>(l);
The following... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "To convert ArrayList to HashSet, firstly create an ArrayList −"
},
{
"code": null,
"e": 1167,
"s": 1125,
"text": "List<String> l = new ArrayList<String>();"
},
{
"code": null,
"e": 1199,
"s": 1167,
"text": "Add el... |
Try TextHero: The Absolute Simplest way to Clean and Analyze Text in Pandas | by Eric Kleppen | Towards Data Science | I am always on the lookout for new tools to help me simplify my natural language processing pipelines, so when I stumbled upon a short video clip showing Texthero’s functionality I knew I had to try it right away. Texthero is designed as a Pandas wrapper, so it makes it easier than ever to preprocess and analyze text b... | [
{
"code": null,
"e": 651,
"s": 171,
"text": "I am always on the lookout for new tools to help me simplify my natural language processing pipelines, so when I stumbled upon a short video clip showing Texthero’s functionality I knew I had to try it right away. Texthero is designed as a Pandas wrapper,... |
Batch Script - Align Right | This used to align text to the right, which is normally used to improve readability of number columns.
@echo off
set x = 1000
set y = 1
set y = %y%
echo %x%
set y = %y:~-4%
echo %y%
A few key things to note about the above program is −
Spaces are added to the variable of y, in this case we are adding 9 spaces to... | [
{
"code": null,
"e": 2272,
"s": 2169,
"text": "This used to align text to the right, which is normally used to improve readability of number columns."
},
{
"code": null,
"e": 2358,
"s": 2272,
"text": "@echo off \nset x = 1000 \nset y = 1 \nset y = %y% \necho %x% \n\nset y = %y:~-... |
Create Left to Right slide animation in Android? | This example demonstrates how do I create left to right side animation in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<Rel... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "This example demonstrates how do I create left to right side animation in android."
},
{
"code": null,
"e": 1274,
"s": 1145,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required det... |
How to write a comment in a JSP page? | JSP comment marks to text or statements that the JSP container should ignore. A JSP comment is useful when you want to hide or "comment out", a part of your JSP page.
Following is the syntax of the JSP comments −
<%-- This is JSP comment --%>
Following example shows the JSP Comments −
<html>
<head>
<title>A Co... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "JSP comment marks to text or statements that the JSP container should ignore. A JSP comment is useful when you want to hide or \"comment out\", a part of your JSP page."
},
{
"code": null,
"e": 1275,
"s": 1229,
"text": "Following is ... |
How to Run 30 Machine Learning Models with a Few Lines of Code | by Ismael Araujo | Towards Data Science | When starting a new supervised Machine Learning project, one of the first steps is to analyze the data, understand what we are trying to accomplish, and which machine learning algorithms could help us achieve our goals. While the scikit-learn library makes our lives easier by making possible to run models with a few li... | [
{
"code": null,
"e": 762,
"s": 172,
"text": "When starting a new supervised Machine Learning project, one of the first steps is to analyze the data, understand what we are trying to accomplish, and which machine learning algorithms could help us achieve our goals. While the scikit-learn library make... |
Divide array into increasing and decreasing subsequence without changing the order - GeeksforGeeks | 14 Sep, 2021
Given a merged sequence which consists of two sequences which got merged, one of them was strictly increasing and the other was strictly decreasing. Elements of increasing sequence were inserted between elements of the decreasing one without changing the order.
Sequences [1, 3, 4] and [10, 4, 2] can produc... | [
{
"code": null,
"e": 25498,
"s": 25470,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 25760,
"s": 25498,
"text": "Given a merged sequence which consists of two sequences which got merged, one of them was strictly increasing and the other was strictly decreasing. Elements of in... |
How to stretch and scale background image using CSS? - GeeksforGeeks | 27 Feb, 2019
The background-size property is used to stretch and scale background image. This property set the size of background image. Here we will see all possible examples of background-size and background-scale property.
Syntax:
background-size: auto|length|cover|contain|initial|inherit;
cover: This property value... | [
{
"code": null,
"e": 24506,
"s": 24478,
"text": "\n27 Feb, 2019"
},
{
"code": null,
"e": 24719,
"s": 24506,
"text": "The background-size property is used to stretch and scale background image. This property set the size of background image. Here we will see all possible examples ... |
Destructuring of Props in ReactJS - GeeksforGeeks | 24 May, 2021
Destructuring is a simple property that is used to make code much clear and readable, mainly when we pass props in React.
What is Destructuring?
Destructuring is a characteristic of JavaScript, It is used to take out sections of data from an array or objects, We can assign them to new own variables created... | [
{
"code": null,
"e": 25312,
"s": 25284,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 25434,
"s": 25312,
"text": "Destructuring is a simple property that is used to make code much clear and readable, mainly when we pass props in React."
},
{
"code": null,
"e": 2545... |
PHP for loops | The for loop - Loops through a block of code a specified number of times.
The for loop is used when you know in advance how many times the script should run.
Parameters:
init counter: Initialize the loop counter value
test counter: Evaluated for each loop iteration. If it evaluates to TRUE, the loop continues. If it ev... | [
{
"code": null,
"e": 74,
"s": 0,
"text": "The for loop - Loops through a block of code a specified number of times."
},
{
"code": null,
"e": 158,
"s": 74,
"text": "The for loop is used when you know in advance how many times the script should run."
},
{
"code": null,
... |
Django Form submission without Page Reload - GeeksforGeeks | 16 Feb, 2021
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
In this ... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n16 Feb, 2021"
},
{
"code": null,
"e": 24617,
"s": 24318,
"text": "Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much o... |
Boolean parseBoolean() method in Java with examples - GeeksforGeeks | 01 Oct, 2018
The parseBoolean() method of Boolean Class is a built in static method of the class java.lang.Boolean which is used to convert a given string to its boolean value.
Syntax:
Boolean.parseBoolean(String value)
Parameters: It takes one parameter value of type string which contains the value which is to be conv... | [
{
"code": null,
"e": 25237,
"s": 25209,
"text": "\n01 Oct, 2018"
},
{
"code": null,
"e": 25401,
"s": 25237,
"text": "The parseBoolean() method of Boolean Class is a built in static method of the class java.lang.Boolean which is used to convert a given string to its boolean value.... |
How to Convert Title to URL Slug using JavaScript ? - GeeksforGeeks | 10 Oct, 2021
Given a title and the task is to convert title into URL slug using JavaScript. In this article, we will use HTML to design the basic structure of body, CSS is used to set the style of body and JavaScript is used to implement the logic structure.
Prerequisite:
HTML Basics
JavaScript Basics
Basically be... | [
{
"code": null,
"e": 24254,
"s": 24226,
"text": "\n10 Oct, 2021"
},
{
"code": null,
"e": 24501,
"s": 24254,
"text": "Given a title and the task is to convert title into URL slug using JavaScript. In this article, we will use HTML to design the basic structure of body, CSS is used... |
Minimum operations required to set all elements of binary matrix - GeeksforGeeks | 22 Apr, 2021
Given a binary matrix of N rows and M columns. The operation allowed on the matrix is to choose any index (x, y) and toggle all the elements between the rectangle having top-left as (0, 0) and bottom-right as (x-1, y-1). Toggling the element means changing 1 to 0 and 0 to 1. The task is to find minimum ope... | [
{
"code": null,
"e": 25086,
"s": 25058,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 25492,
"s": 25086,
"text": "Given a binary matrix of N rows and M columns. The operation allowed on the matrix is to choose any index (x, y) and toggle all the elements between the rectangle ... |
C# | Searching the index of specified object in Collection<T> - GeeksforGeeks | 01 Feb, 2019
Collection<T>.IndexOf(T) method is used to search for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>.
Syntax:
public int IndexOf (T item);
Here, item is the object to locate in the List<T>. The value can be null for reference types.
Return Val... | [
{
"code": null,
"e": 25657,
"s": 25629,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 25822,
"s": 25657,
"text": "Collection<T>.IndexOf(T) method is used to search for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>... |
p5.js | draw() Function - GeeksforGeeks | 23 Aug, 2019
The draw() function is called after setup() function. The draw() function is used to executes the code inside the block until the program is stopped or noLoop() is called. If the program does not contain noLoop() function within setup() function then draw() function will still be executed once before stopp... | [
{
"code": null,
"e": 43612,
"s": 43584,
"text": "\n23 Aug, 2019"
},
{
"code": null,
"e": 44004,
"s": 43612,
"text": "The draw() function is called after setup() function. The draw() function is used to executes the code inside the block until the program is stopped or noLoop() is... |
Git Staging Environment | One of the core functions of Git is the concepts of the Staging Environment, and the Commit.
As you are working, you may be adding, editing and removing files. But
whenever you hit a milestone or finish a part of the work, you should add the
files to a Staging Environment.
Staged files are files that are ready to be ... | [
{
"code": null,
"e": 93,
"s": 0,
"text": "One of the core functions of Git is the concepts of the Staging Environment, and the Commit."
},
{
"code": null,
"e": 276,
"s": 93,
"text": "As you are working, you may be adding, editing and removing files. But \nwhenever you hit a miles... |
JavaFX example to set action to the "exit" MenuItem | A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items.
You can create a menu item by instantiating the javafx.scene.control.MenuItem class.
The Menu class inherits a property named onAction from the javafx.sc... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items."
},
{
"code": null,
"e": 1314,
"s": 1229,
"text": "You can create ... |
Java String equals() Method | ❮ String Methods
Compare strings to find out if they are equal:
String myStr1 = "Hello";
String myStr2 = "Hello";
String myStr3 = "Another String";
System.out.println(myStr1.equals(myStr2)); // Returns true because they are equal
System.out.println(myStr1.equals(myStr3)); // false
Try it Yourself »
The equals() meth... | [
{
"code": null,
"e": 19,
"s": 0,
"text": "\n❮ String Methods\n"
},
{
"code": null,
"e": 66,
"s": 19,
"text": "Compare strings to find out if they are equal:"
},
{
"code": null,
"e": 284,
"s": 66,
"text": "String myStr1 = \"Hello\";\nString myStr2 = \"Hello\";\... |
Random String Generator using JavaScript - GeeksforGeeks | 23 Nov, 2021
JavaScript is a lightweight, cross-platform, interpreted scripting language. It is well-known for the development of web pages, many non-browser environments also use it. JavaScript can be used for Client-side developments as well as Server-side developments.
In this article, we need to create a Random Str... | [
{
"code": null,
"e": 26165,
"s": 26137,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 26425,
"s": 26165,
"text": "JavaScript is a lightweight, cross-platform, interpreted scripting language. It is well-known for the development of web pages, many non-browser environments also ... |
A simple, but strong AI bot for Tron/Lightriders on a hexagonal grid | by Gilles Vandewiele | Towards Data Science | A new academic year, which means a new batch of bright students taking their first steps in their engineering career. As last year, three of my fellow course assistants (Elias, Pieter and Ozan) and I created a platform for an AI bot competition, to be hosted during the course of Informatics (in which they learn to prog... | [
{
"code": null,
"e": 665,
"s": 171,
"text": "A new academic year, which means a new batch of bright students taking their first steps in their engineering career. As last year, three of my fellow course assistants (Elias, Pieter and Ozan) and I created a platform for an AI bot competition, to be hos... |
Minimum K such that sum of array elements after division by K does not exceed S | 01 Feb, 2022
Given an array arr[] of N elements and an integer S. The task is to find the minimum number K such that the sum of the array elements does not exceed S after dividing all the elements by K. Note: Consider integer division.Examples:
Input: arr[] = {10, 7, 8, 10, 12, 19}, S = 27 Output: 3 After dividing by ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 287,
"s": 54,
"text": "Given an array arr[] of N elements and an integer S. The task is to find the minimum number K such that the sum of the array elements does not exceed S after dividing all the... |
How to Serialize HashMap in Java? | 08 Dec, 2020
Serialization is the process by which we convert an object into a stream of bytes and store these bytes in file systems/databases or put them on the network to move from one location to another.
Deserialization is the reverse process of serialization. Deserialization consists of retrieving the objects from... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Dec, 2020"
},
{
"code": null,
"e": 247,
"s": 52,
"text": "Serialization is the process by which we convert an object into a stream of bytes and store these bytes in file systems/databases or put them on the network to move from one ... |
Check if a given number is factorial of any number | 26 May, 2022
Given a number n, the task is to determine whether n can be a factorial of some number xExamples:
Input: N = 24
Output: Yes
Explanation: 4! = 24
Input: N = 25
Output: No
Approach: Below is the implementation of the above approach:
C++
C
Java
Python3
C#
Javascript
// C++ implementation for// the above... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 May, 2022"
},
{
"code": null,
"e": 152,
"s": 52,
"text": "Given a number n, the task is to determine whether n can be a factorial of some number xExamples: "
},
{
"code": null,
"e": 225,
"s": 152,
"text": "Input... |
How to Add Fade and Shrink Animation in RecyclerView in Android? | 12 Apr, 2021
In this article, we are going to show the fade and shrink animation in RecyclerView. When we move downward then the item at the top will be fading out and then it will shrink. In the output, we can see how it is happening. We will be implementing this Java programming language.
Step 1: Create a new Project... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Apr, 2021"
},
{
"code": null,
"e": 307,
"s": 28,
"text": "In this article, we are going to show the fade and shrink animation in RecyclerView. When we move downward then the item at the top will be fading out and then it will shrink.... |
\d vs \D in JavaScript? | There is a lot of difference between \d and \D in which the former results in the digits and the latter results in the non-digits such as e,^, etc. These are used along with global object "g" so that all the digits and non-digits across a text will be displayed in the output. Let's discuss it in detail.
new RegExp("\\d... | [
{
"code": null,
"e": 1367,
"s": 1062,
"text": "There is a lot of difference between \\d and \\D in which the former results in the digits and the latter results in the non-digits such as e,^, etc. These are used along with global object \"g\" so that all the digits and non-digits across a text will ... |
Connect Django Project to MongoDB - GeeksforGeeks | 26 Nov, 2021
Djongo is a SQL to mongodb query transpiler. Using djongo we can use MongoDB as a backend database for our Django project. We don’t even need to change the Django ORM. The best part is that we can setup Django with MongoDB by adding just one line of code. There is no need to change serializers, views, or a... | [
{
"code": null,
"e": 23985,
"s": 23957,
"text": "\n26 Nov, 2021"
},
{
"code": null,
"e": 24310,
"s": 23985,
"text": "Djongo is a SQL to mongodb query transpiler. Using djongo we can use MongoDB as a backend database for our Django project. We don’t even need to change the Django ... |
Add a new column in Pandas Data Frame Using a Dictionary - GeeksforGeeks | 09 Nov, 2018
Pandas is basically the library in Python used for Data Analysis and Manipulation. To add a new Column in the data frame we have a variety of methods. But here in this post, we are discussing adding a new column by using the dictionary.
Let’s take Example!
# Python program to illustrate# Add a new column ... | [
{
"code": null,
"e": 24928,
"s": 24900,
"text": "\n09 Nov, 2018"
},
{
"code": null,
"e": 25165,
"s": 24928,
"text": "Pandas is basically the library in Python used for Data Analysis and Manipulation. To add a new Column in the data frame we have a variety of methods. But here in ... |
Deadlock with mutex locks | Deadlock can be occurred in a multithreaded Pthread program using mutex locks. Let’s see how it can be occurred. An unlocked mutex is initialized by the pthread_mutex_init() function.
Using pthread_mutex_lock() and pthread_mutex_unlock() Mutex locks are acquired and released. If a thread try to acquire a locked mutex, ... | [
{
"code": null,
"e": 1246,
"s": 1062,
"text": "Deadlock can be occurred in a multithreaded Pthread program using mutex locks. Let’s see how it can be occurred. An unlocked mutex is initialized by the pthread_mutex_init() function."
},
{
"code": null,
"e": 1499,
"s": 1246,
"text":... |
Puppet - Classes | Puppet classes are defined as a collection of resources, which are grouped together in order to get a target node or machine in a desired state. These classes are defined inside Puppet manifest files which is located inside Puppet modules. The main purpose of using a class is to reduce the same code repetition inside a... | [
{
"code": null,
"e": 2536,
"s": 2173,
"text": "Puppet classes are defined as a collection of resources, which are grouped together in order to get a target node or machine in a desired state. These classes are defined inside Puppet manifest files which is located inside Puppet modules. The main purp... |
Fastest Way to multiply two Numbers | Two numbers are given as a binary string, our task is to find the result of multiplication for those numbers in a faster and efficient way.
Using the Divide and Conquer strategy, we can solve the problem, in a very efficient manner. We will split the numbers into two halves.
let Xleft and Xright are two parts of first ... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "Two numbers are given as a binary string, our task is to find the result of multiplication for those numbers in a faster and efficient way."
},
{
"code": null,
"e": 1338,
"s": 1202,
"text": "Using the Divide and Conquer strategy, we ... |
Python Number floor() Method | Python number method floor() returns floor of x - the largest integer not greater than x.
Following is the syntax for floor() method −
import math
math.floor( x )
Note − This function is not accessible directly, so we need to import math module and then we need to call this function using math static object.
x − This... | [
{
"code": null,
"e": 2335,
"s": 2244,
"text": "Python number method floor() returns floor of x - the largest integer not greater than x."
},
{
"code": null,
"e": 2380,
"s": 2335,
"text": "Following is the syntax for floor() method −"
},
{
"code": null,
"e": 2409,
... |
Allowed Functional Dependencies (FD) in Various Normal Forms (NF) - GeeksforGeeks | 18 May, 2021
Prerequisite – Functional Dependency and Attribute Closure
We all know the following:
2 NF does not allow partial dependency.
3NF does not allow transitive dependency.
BCNF does not allow anything other than super key as determinant.
Let’s check all possible functional dependencies to find out what is al... | [
{
"code": null,
"e": 25575,
"s": 25547,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 25635,
"s": 25575,
"text": "Prerequisite – Functional Dependency and Attribute Closure "
},
{
"code": null,
"e": 25663,
"s": 25635,
"text": "We all know the following: "
... |
Static and non static blank final variables in Java - GeeksforGeeks | 08 Nov, 2017
A variable provides us with named storage that our programs can manipulate. There are two types of data variables in a class:Instance variables : Instance variables are declared in a class, but outside a method, constructor or any block. When a space is allocated for an object in the heap, a slot for each ... | [
{
"code": null,
"e": 25671,
"s": 25643,
"text": "\n08 Nov, 2017"
},
{
"code": null,
"e": 26223,
"s": 25671,
"text": "A variable provides us with named storage that our programs can manipulate. There are two types of data variables in a class:Instance variables : Instance variable... |
Node.js Stream readable.setEncoding() Method - GeeksforGeeks | 12 Oct, 2021
The readable.setEncoding() method in a Readable Stream is used to set the encoding of the data read.
Syntax:
readable.setEncoding( encoding )
Parameters: This method accepts single parameter encoding which holds the encoding type.
Return Value: It returns the data in the encoded form.
Below examples illust... | [
{
"code": null,
"e": 25869,
"s": 25841,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 25970,
"s": 25869,
"text": "The readable.setEncoding() method in a Readable Stream is used to set the encoding of the data read."
},
{
"code": null,
"e": 25978,
"s": 25970,
... |
Random sampling in numpy | random() function - GeeksforGeeks | 26 Feb, 2019
numpy.random.random() is one of the function for doing random sampling in numpy. It returns an array of specified shape and fills it with random floats in the half-open interval [0.0, 1.0).
Syntax : numpy.random.random(size=None)
Parameters :size : [int or tuple of ints, optional] Output shape. If the give... | [
{
"code": null,
"e": 26185,
"s": 26157,
"text": "\n26 Feb, 2019"
},
{
"code": null,
"e": 26375,
"s": 26185,
"text": "numpy.random.random() is one of the function for doing random sampling in numpy. It returns an array of specified shape and fills it with random floats in the half... |
Selection Sort - GeeksforGeeks | 09 May, 2022
The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning. The algorithm maintains two subarrays in a given array.
The subarray which is already sorted.
Remaining subarray which is unsorted.
In eve... | [
{
"code": null,
"e": 25105,
"s": 25077,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 25329,
"s": 25105,
"text": "The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginn... |
AngularJS | angular.isNumber() Function - GeeksforGeeks | 12 Apr, 2019
The angular.isNumber() function in AngularJS is used to determine the parameter inside isNumber function is a number or not. It returns true if the reference is a number otherwise returns false.
Syntax:
angular.isNumber( value )
Return Value: It returns true if the passed value is a number else false.
Exam... | [
{
"code": null,
"e": 29516,
"s": 29488,
"text": "\n12 Apr, 2019"
},
{
"code": null,
"e": 29711,
"s": 29516,
"text": "The angular.isNumber() function in AngularJS is used to determine the parameter inside isNumber function is a number or not. It returns true if the reference is a ... |
Java.io.PushbackInputStream class in Java - GeeksforGeeks | 14 Mar, 2022
Pushback is used on an input stream to allow a byte to be read and then returned (i.e, “pushed back”) to the stream. The PushbackInputStream class implements this idea. It provides a mechanism “peek” at what is coming from an input stream without disrupting it. It extends FilterInputStream.Fields:
protect... | [
{
"code": null,
"e": 24204,
"s": 24176,
"text": "\n14 Mar, 2022"
},
{
"code": null,
"e": 24504,
"s": 24204,
"text": "Pushback is used on an input stream to allow a byte to be read and then returned (i.e, “pushed back”) to the stream. The PushbackInputStream class implements this ... |
C# | Adding an element into the Hashtable - GeeksforGeeks | 01 Feb, 2019
The Hashtable class represents a collection of key-and-value pairs that are organized based on the hash code of the key. The key is used to access the items in the collection. Hashtable.Add(Object, Object) Method is used to adds an element with the specified key and value into the Hashtable.
Syntax:
public... | [
{
"code": null,
"e": 24333,
"s": 24305,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24626,
"s": 24333,
"text": "The Hashtable class represents a collection of key-and-value pairs that are organized based on the hash code of the key. The key is used to access the items in the... |
File.ReadAllText(String, Encoding) Method in C# with Examples - GeeksforGeeks | 09 Mar, 2021
File.ReadAllText(String, Encoding) is an inbuilt File class method that is used to open a text file then reads all the text in the file with the specified encoding and then closes the file.Syntax:
public static string ReadAllText (string path, System.Text.Encoding encoding);
Parameter: This function acce... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n09 Mar, 2021"
},
{
"code": null,
"e": 24110,
"s": 23911,
"text": "File.ReadAllText(String, Encoding) is an inbuilt File class method that is used to open a text file then reads all the text in the file with the specified encoding... |
atexit() function in C/C++ | The function atexit() is used to call the function after the normal exit of program. The program is called without any parameters. The function atexit() is called after exit(). The termination function can be called anywhere in the program. This function is declared in “stdlib.h” header file.
Here is the syntax of atex... | [
{
"code": null,
"e": 1356,
"s": 1062,
"text": "The function atexit() is used to call the function after the normal exit of program. The program is called without any parameters. The function atexit() is called after exit(). The termination function can be called anywhere in the program. This functio... |
\vartheta - Tex Command | \vartheta - Used to create vartheta symbol.
{ \vartheta}
\vartheta command draws vartheta symbol.
\vartheta
θ
\vartheta
θ
\vartheta
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
... | [
{
"code": null,
"e": 8030,
"s": 7986,
"text": "\\vartheta - Used to create vartheta symbol."
},
{
"code": null,
"e": 8043,
"s": 8030,
"text": "{ \\vartheta}"
},
{
"code": null,
"e": 8084,
"s": 8043,
"text": "\\vartheta command draws vartheta symbol."
},
{
... |
Xstream - Quick Guide | XStream is a simple Java-based library to serialize Java objects to XML and vice versa.
Easy to use − XStream API provides a high-level facade to simplify common use cases.
Easy to use − XStream API provides a high-level facade to simplify common use cases.
No need to create mapping − XStream API provides default mappi... | [
{
"code": null,
"e": 1846,
"s": 1758,
"text": "XStream is a simple Java-based library to serialize Java objects to XML and vice versa."
},
{
"code": null,
"e": 1931,
"s": 1846,
"text": "Easy to use − XStream API provides a high-level facade to simplify common use cases."
},
{... |
Groovy - Nested Switch Statement | It is also possible to have a nested set of switch statements. The general form of the statement is shown below −
switch(expression) {
case expression #1:
statement #1
...
case expression #2:
statement #2
...
case expression #N:
statement #N
...
default:
statement #Default
... | [
{
"code": null,
"e": 2352,
"s": 2238,
"text": "It is also possible to have a nested set of switch statements. The general form of the statement is shown below −"
},
{
"code": null,
"e": 2567,
"s": 2352,
"text": "switch(expression) { \n case expression #1: \n statement #1 \n ... |
Solidity - For Loop | The for loop is the most compact form of looping. It includes the following three important parts −
The loop initialization where we initialize our counter to a starting value. The initialization statement is executed before the loop begins.
The loop initialization where we initialize our counter to a starting value. T... | [
{
"code": null,
"e": 2655,
"s": 2555,
"text": "The for loop is the most compact form of looping. It includes the following three important parts −"
},
{
"code": null,
"e": 2797,
"s": 2655,
"text": "The loop initialization where we initialize our counter to a starting value. The i... |
Perl require Function | This function then it demands that the script requires the specified version of Perl in order to continue if EXPR is numeric. If EXPR or $_ are not numeric, it assumes that the name is the name of a library file to be included. You cannot include the same file with this function twice. The included file must return a t... | [
{
"code": null,
"e": 2573,
"s": 2220,
"text": "This function then it demands that the script requires the specified version of Perl in order to continue if EXPR is numeric. If EXPR or $_ are not numeric, it assumes that the name is the name of a library file to be included. You cannot include the sa... |
Convert covariance matrix to correlation matrix using Python - GeeksforGeeks | 08 Oct, 2021
In this article, we will be discussing the relationship between Covariance and Correlation and program our own function for calculating covariance and correlation using python.
It tells us how two quantities are related to one another say we want to calculate the covariance between x and y the then the ou... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 24470,
"s": 24292,
"text": "In this article, we will be discussing the relationship between Covariance and Correlation and program our own function for calculating covariance and correlation ... |
XAML - ProgressRing | A ProgressRing is a control that indicates an ongoing operation. The typical visual appearance is a ring-shaped "spinner" that cycles an animation as the progress continues. An important point here is that WPF projects do not support ProgressRing. So for this control, we will work on Windows Store App. The hierarchical... | [
{
"code": null,
"e": 2294,
"s": 1923,
"text": "A ProgressRing is a control that indicates an ongoing operation. The typical visual appearance is a ring-shaped \"spinner\" that cycles an animation as the progress continues. An important point here is that WPF projects do not support ProgressRing. So ... |
Ensemble Learning case study: Running XGBoost on Google Colab free GPU | by Gabriel Signoretti | Towards Data Science | This article is the second part of a case study where we are exploring the 1994 census income dataset. In the first part, we took a deeper look at the dataset, compared the performance of some ensemble methods and then explored some tools to help with the model interpretability.
In this second part, we will explore a t... | [
{
"code": null,
"e": 327,
"s": 47,
"text": "This article is the second part of a case study where we are exploring the 1994 census income dataset. In the first part, we took a deeper look at the dataset, compared the performance of some ensemble methods and then explored some tools to help with the ... |
Getting Started with Apache Kafka and Apache Flume (Import data to HDFS) | by Hadi Fadlallah | Towards Data Science | This article contains a complete guide for Apache Kafka installation, creating Kafka topics, publishing and subscribing Topic messages. In addition, it contains Apache Flume installation guide and how to import Kafka topic messages into HDFS using Apache Flume.
Hadoop Version: 3.1.0
Apache Kafka Version: 1.1.1
Apache F... | [
{
"code": null,
"e": 433,
"s": 171,
"text": "This article contains a complete guide for Apache Kafka installation, creating Kafka topics, publishing and subscribing Topic messages. In addition, it contains Apache Flume installation guide and how to import Kafka topic messages into HDFS using Apache ... |
Python - Output Formatting | There are several ways to present the output of a program, data can be printed in a human-readable form, or written to a file for future use. Sometimes user often wants more control the formatting of output than simply printing space-separated values. There are several ways to format output.
To use formatted string lit... | [
{
"code": null,
"e": 1355,
"s": 1062,
"text": "There are several ways to present the output of a program, data can be printed in a human-readable form, or written to a file for future use. Sometimes user often wants more control the formatting of output than simply printing space-separated values. T... |
Tutorial: Uncertainty estimation with CatBoost | by Liudmila Prokhorenkova | Towards Data Science | This tutorial covers the following topics:
What is predictive uncertainty and why should you care about it?
What are the two sources of uncertainty?
How to estimate uncertainty for regression problems using the CatBoost gradient boosting library
You can follow all steps using this Jupyter Notebook.
Machine learning has... | [
{
"code": null,
"e": 89,
"s": 46,
"text": "This tutorial covers the following topics:"
},
{
"code": null,
"e": 154,
"s": 89,
"text": "What is predictive uncertainty and why should you care about it?"
},
{
"code": null,
"e": 195,
"s": 154,
"text": "What are the... |
How to sort a Python date string list? | To sort a Python date string list using the sort function, you'll have to convert the dates in objects and apply the sort on them. For this you can use the key named attribute of the sort function and provide it a lambda that creates a datetime object for each date and compares them based on this date object.
from dat... | [
{
"code": null,
"e": 1374,
"s": 1062,
"text": "To sort a Python date string list using the sort function, you'll have to convert the dates in objects and apply the sort on them. For this you can use the key named attribute of the sort function and provide it a lambda that creates a datetime object f... |
Count number of occurrences (or frequency) in a sorted array in C++ | We are given a sorted array of integer type elements and the number let’s say, num and the task is to calculate the count of the number of times the given element num is appearing in an array.
Input − int arr[] = {1, 1, 1,2, 3, 4}, num = 1
Output − Count of number of occurrences (or frequency) in a sorted array are − 3... | [
{
"code": null,
"e": 1255,
"s": 1062,
"text": "We are given a sorted array of integer type elements and the number let’s say, num and the task is to calculate the count of the number of times the given element num is appearing in an array."
},
{
"code": null,
"e": 1302,
"s": 1255,
... |
How to read the data from a CSV file in Java?
| A CSV stands for Comma Separated Values. In a CSV file, each line contains words that are separated with a comma(,) and it is stored with a .csv extension.
We can read a CSV file line by line using the readLine() method of BufferedReader class. Split each line on comma character to get the words of the line into an arr... | [
{
"code": null,
"e": 1218,
"s": 1062,
"text": "A CSV stands for Comma Separated Values. In a CSV file, each line contains words that are separated with a comma(,) and it is stored with a .csv extension."
},
{
"code": null,
"e": 1491,
"s": 1218,
"text": "We can read a CSV file lin... |
quotactl() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
Linear Regression Using Least Squares | by Adarsh Menon | Towards Data Science | Linear Regression is the simplest form of machine learning out there. In this post, we will see how linear regression works and implement it in Python from scratch. This is the written version of the above video. Watch it if you prefer that.
In statistics, linear regression is a linear approach to modelling the relatio... | [
{
"code": null,
"e": 413,
"s": 171,
"text": "Linear Regression is the simplest form of machine learning out there. In this post, we will see how linear regression works and implement it in Python from scratch. This is the written version of the above video. Watch it if you prefer that."
},
{
... |
Public vs Protected vs Package vs Private Access Modifier in Java - GeeksforGeeks | 02 Mar, 2022
Whenever we are writing our classes we have to provide some information about our classes to the JVM like whether this class can be accessible from anywhere or not, whether child class creation is possible or not, whether object creation is possible or not etc. we can specify this information by using an a... | [
{
"code": null,
"e": 24858,
"s": 24830,
"text": "\n02 Mar, 2022"
},
{
"code": null,
"e": 25307,
"s": 24858,
"text": "Whenever we are writing our classes we have to provide some information about our classes to the JVM like whether this class can be accessible from anywhere or not... |
How to check Leap Year in Java 8 How to get current timestamp in Java 8? | The java.time package of Java provides API’s for dates, times, instances and durations. It provides various classes like Clock, LocalDate, LocalDateTime, LocalTime, MonthDay,Year, YearMonth etc. Using classes of this package you can get details related to date and time in much simpler way compared to previous alternati... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "The java.time package of Java provides API’s for dates, times, instances and durations. It provides various classes like Clock, LocalDate, LocalDateTime, LocalTime, MonthDay,Year, YearMonth etc. Using classes of this package you can get details related ... |
High-quality slow-motion videos in 5 minutes with Deep Learning | by Dimitris Poulopoulos | Towards Data Science | We can all agree that slow-motion videos create this dramatic effect, which certainly adds an extra flavor to specific scenes. On the other hand, slowing down a video might create several unwanted artifacts, which could deem it unwatchable. But what makes a slow-motion video great?
Let’s use Deep Learning for free, to ... | [
{
"code": null,
"e": 455,
"s": 172,
"text": "We can all agree that slow-motion videos create this dramatic effect, which certainly adds an extra flavor to specific scenes. On the other hand, slowing down a video might create several unwanted artifacts, which could deem it unwatchable. But what makes... |
Real Time Prediction using ResNet Model | ResNet is a pre-trained model. It is trained using ImageNet. ResNet model weights pre-trained on ImageNet. It has the following syntax −
keras.applications.resnet.ResNet50 (
include_top = True,
weights = 'imagenet',
input_tensor = None,
input_shape = None,
pooling = None,
classes = 1000
)
Here,
i... | [
{
"code": null,
"e": 2188,
"s": 2051,
"text": "ResNet is a pre-trained model. It is trained using ImageNet. ResNet model weights pre-trained on ImageNet. It has the following syntax −"
},
{
"code": null,
"e": 2364,
"s": 2188,
"text": "keras.applications.resnet.ResNet50 (\n incl... |
Essential Python Coding Questions for Data Science Interviews | by Leihua Ye, PhD | Towards Data Science | 1
2
3
4
5
6
7
8
9
10
Powered by Play.ht
Create audio with Play.ht
Powered by Play.ht
As the engineering culture keeps growing, Data Scientists often team up with other engineers to build pipelines and perform a ton of soft engineering stuff. Job candidates are expected to face extensive coding challenges in R/Python an... | [
{
"code": null,
"e": 174,
"s": 172,
"text": "1"
},
{
"code": null,
"e": 176,
"s": 174,
"text": "2"
},
{
"code": null,
"e": 178,
"s": 176,
"text": "3"
},
{
"code": null,
"e": 180,
"s": 178,
"text": "4"
},
{
"code": null,
"e": 182... |
AngularJS | SQL - GeeksforGeeks | 14 Aug, 2020
In any web application we need to save, update, insert and fetch data to and from a database. AngularJS is a JavaScript MVC or Model-View-Controller framework developed by Google. It helps developers to build well structured, easily testable, and maintainable front-end applications.
Features Important conc... | [
{
"code": null,
"e": 29540,
"s": 29512,
"text": "\n14 Aug, 2020"
},
{
"code": null,
"e": 29824,
"s": 29540,
"text": "In any web application we need to save, update, insert and fetch data to and from a database. AngularJS is a JavaScript MVC or Model-View-Controller framework deve... |
How to select first object in object in AngularJS? - GeeksforGeeks | 31 Oct, 2019
The main problem that we are dealing with is that for an object of objects reading the object of a particular index position is not as simple as a list. We cannot loop over it using ngFor as an object is not considered an iterable. The importance of this issue may arise when the data received from any sour... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n31 Oct, 2019"
},
{
"code": null,
"e": 26935,
"s": 26354,
"text": "The main problem that we are dealing with is that for an object of objects reading the object of a particular index position is not as simple as a list. We cannot ... |
How to remove non-word characters in JavaScript? | To remove non-word characters we need to use regular expressions. The logic behind removing non-word characters is that just replace the non-word characters with nothing('').
In the following example there are many non-word characters and in between them there exists a text named "Tutorix is the best e-learning platfor... | [
{
"code": null,
"e": 1237,
"s": 1062,
"text": "To remove non-word characters we need to use regular expressions. The logic behind removing non-word characters is that just replace the non-word characters with nothing('')."
},
{
"code": null,
"e": 1518,
"s": 1237,
"text": "In the ... |
Delays in Computer Network - GeeksforGeeks | 27 Sep, 2021
The delays, here, means the time for which the processing of a particular packet takes place. We have the following types of delays in computer networks:
1. Transmission Delay: The time taken to transmit a packet from the host to the transmission medium is called Transmission delay.
For example, if bandw... | [
{
"code": null,
"e": 24144,
"s": 24116,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 24299,
"s": 24144,
"text": "The delays, here, means the time for which the processing of a particular packet takes place. We have the following types of delays in computer networks: "
},
... |
Keras - Flatten Layers | Flatten is used to flatten the input. For example, if flatten is applied to layer having input shape as (batch_size, 2,2), then the output shape of the layer will be (batch_size, 4)
Flatten has one argument as follows
keras.layers.Flatten(data_format = None)
data_format is an optional argument and it is used to preser... | [
{
"code": null,
"e": 2233,
"s": 2051,
"text": "Flatten is used to flatten the input. For example, if flatten is applied to layer having input shape as (batch_size, 2,2), then the output shape of the layer will be (batch_size, 4)"
},
{
"code": null,
"e": 2269,
"s": 2233,
"text": "... |
How to copy the text to the clipboard in JavaScript? - GeeksforGeeks | 20 Mar, 2019
In order to copy the text to the clipboard in javascript we use document.execCommand() method . This can be done in two stepsStep1 : Write HTML code:
<!-- The text field --><input type="text" value="GeeksForGeeks" id="GfGInput"> <!-- The button used to copy the text --><button onclick="GeeksForGeeks()">Co... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 25059,
"s": 24909,
"text": "In order to copy the text to the clipboard in javascript we use document.execCommand() method . This can be done in two stepsStep1 : Write HTML code:"
},
{
... |
Convert string to objectid in MongoDB? | To convert string to objectid in MongoDB, use $toObjectId. Let us create a collection with documents −
> db.demo95.insertOne({"Id":"5ab9cbe531c2ab715d42129a"});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e2d5ef5b8903cdd865577ac")
}
Display all documents from a collection with the help of find() method −
>... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "To convert string to objectid in MongoDB, use $toObjectId. Let us create a collection with documents −"
},
{
"code": null,
"e": 1308,
"s": 1165,
"text": "> db.demo95.insertOne({\"Id\":\"5ab9cbe531c2ab715d42129a\"});\n{\n \"acknowle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.