title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Difference between __dirname and ./ in Node.js - GeeksforGeeks
14 Feb, 2020 Working with any technology requires to interact with files and directories. Files and directories maintain a tree structure for easy access. Working with Node.js also requires accessing files using the file path which can be obtained using different commands. There are two ways of getting the current dire...
[ { "code": null, "e": 24577, "s": 24549, "text": "\n14 Feb, 2020" }, { "code": null, "e": 24954, "s": 24577, "text": "Working with any technology requires to interact with files and directories. Files and directories maintain a tree structure for easy access. Working with Node.js ...
Feature Engineering on Date-Time Data | by Pararawendy Indarjo | Towards Data Science
According to Wikipedia, feature engineering refers to the process of using domain knowledge to extract features from raw data via data mining techniques. These features can then be used to improve the performance of machine learning algorithms. Feature engineering does not necessarily have to be fancy though. One simpl...
[ { "code": null, "e": 417, "s": 172, "text": "According to Wikipedia, feature engineering refers to the process of using domain knowledge to extract features from raw data via data mining techniques. These features can then be used to improve the performance of machine learning algorithms." }, { ...
GWT - Create Application
As power of GWT lies in Write in Java, Run in JavaScript, we'll be using Java IDE Eclipse to demonstrate our examples. Let's start with a simple HelloWorld application − The first step is to create a simple Web Application Project using Eclipse IDE. Launch project wizard using the option Google Icon > New Web Applicat...
[ { "code": null, "e": 2142, "s": 2023, "text": "As power of GWT lies in Write in Java, Run in JavaScript, we'll be using Java IDE Eclipse to demonstrate our examples." }, { "code": null, "e": 2193, "s": 2142, "text": "Let's start with a simple HelloWorld application −" }, { ...
Instance Segmentation with Mask R-CNN | Towards Data Science
Object Detection models such as YOLO, R-CNN help us to draw a bounding box surrounding the objects, and the Instance Segmentation provides us the pixel-wise masks for each object in the image. One question may arise that why we need pixel by pixel location? If we just use object detection in the self -driving cars then...
[ { "code": null, "e": 430, "s": 172, "text": "Object Detection models such as YOLO, R-CNN help us to draw a bounding box surrounding the objects, and the Instance Segmentation provides us the pixel-wise masks for each object in the image. One question may arise that why we need pixel by pixel locatio...
AI-powered Indian license plate detector. | by Sarthak Vajpayee | Towards Data Science
Inspiration: The guy who hit my car and got away with it! Backstory: After a memorable evening with friends as we were about to leave for our home there was something that made that evening even more memorable, a huge dent in my car’s front bumper, seemed it was hit by another vehicle, but who to blame? There was no on...
[ { "code": null, "e": 229, "s": 171, "text": "Inspiration: The guy who hit my car and got away with it!" }, { "code": null, "e": 898, "s": 229, "text": "Backstory: After a memorable evening with friends as we were about to leave for our home there was something that made that even...
Java Program to display a prime number less than the given number
Let’s say the value you have set is 20 and you have to display a prime number less than this value i.e. 19 in this case. The following is an example that displays a prime number less than the given number − Live Demo public class Demo { public static void main(String[] args) { int val = 20; boolean[] is...
[ { "code": null, "e": 1183, "s": 1062, "text": "Let’s say the value you have set is 20 and you have to display a prime number less than this value i.e. 19 in this case." }, { "code": null, "e": 1269, "s": 1183, "text": "The following is an example that displays a prime number less...
Requests - SSL Certification
SSL certificate is a security feature that comes with secure urls. When you use Requests library, it also verifies SSL certificates for the https URL given. SSL verification is enabled by default in the requests module and will throw an error if the certificate is not present. Following is the example of working with s...
[ { "code": null, "e": 2466, "s": 2188, "text": "SSL certificate is a security feature that comes with secure urls. When you use Requests library, it also verifies SSL certificates for the https URL given. SSL verification is enabled by default in the requests module and will throw an error if the cer...
Plotting in parallel with matplotlib and python | by Paul Gavrikov | Towards Data Science
This is yet another post on how to speed up matplotlib. And it’s not like I am ranting against matplotlib. In fact, it is a daily driver in my projects. But sometimes you need that little extra performance. Here’s one example. For one of my studies, I had to create plenty of violin plots. For those unfamiliar with them...
[ { "code": null, "e": 379, "s": 172, "text": "This is yet another post on how to speed up matplotlib. And it’s not like I am ranting against matplotlib. In fact, it is a daily driver in my projects. But sometimes you need that little extra performance." }, { "code": null, "e": 1238, "...
Deep Quantile Regression in Tensorflow | by Jacob Zweig | Towards Data Science
A key challenge in deep learning is how to get estimates on the bounds of predictors. Quantile regression, first introduced in the 70’s by Koenker and Bassett [1], allows us to estimate percentiles of the underlying conditional data distribution even in cases where they are asymmetric, giving us insight on the relation...
[ { "code": null, "e": 550, "s": 172, "text": "A key challenge in deep learning is how to get estimates on the bounds of predictors. Quantile regression, first introduced in the 70’s by Koenker and Bassett [1], allows us to estimate percentiles of the underlying conditional data distribution even in c...
DAX Text - VALUE function
Converts a text string that represents a number to a number in numeric data type. VALUE (<text>) text The text to be converted. A number. The text parameter for the DAX VALUE function can be a constant, a number, a date, or a time in DAX data types. If the text is not in one of these following formats, DAX VALUE func...
[ { "code": null, "e": 2083, "s": 2001, "text": "Converts a text string that represents a number to a number in numeric data type." }, { "code": null, "e": 2100, "s": 2083, "text": "VALUE (<text>) \n" }, { "code": null, "e": 2105, "s": 2100, "text": "text" }, ...
JOGL Graphical Shapes
This tutorial describes drawing a straight line and various shapes using straight line. OpenGL API has provided primitive methods for drawing basic graphical elements such as point, vertex, line etc. Using these methods, you can develop shapes such as triangle, polygon and circle. In both, 2D and 3D dimensions. To acce...
[ { "code": null, "e": 2332, "s": 2019, "text": "This tutorial describes drawing a straight line and various shapes using straight line. OpenGL API has provided primitive methods for drawing basic graphical elements such as point, vertex, line etc. Using these methods, you can develop shapes such as t...
Creating a simple statistical learning model from scratch: emphasizing prediction in regression | by Alex daSilva | Towards Data Science
Learning about statistical/machine learning can be intimidating, especially if you’re like me and coming from another field (eg., social sciences, life sciences, business, etc). There are hundreds of complex models to choose from and numerous schemes to validate your data. Here, we’re going to take a closer look at a s...
[ { "code": null, "e": 774, "s": 172, "text": "Learning about statistical/machine learning can be intimidating, especially if you’re like me and coming from another field (eg., social sciences, life sciences, business, etc). There are hundreds of complex models to choose from and numerous schemes to v...
C# | Get the number of elements in the SortedSet - GeeksforGeeks
01 Feb, 2019 SortedSet class represents the collection of objects in sorted order. This class comes under the System.Collections.Generic namespace. SortedSet<T>.Count Property is used to get the number of elements in the SortedSet. Properties: In C#, SortedSet class can be used to store, remove or view elements. It mai...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24521, "s": 24302, "text": "SortedSet class represents the collection of objects in sorted order. This class comes under the System.Collections.Generic namespace. SortedSet<T>.Count Property ...
Python math library | exp() method - GeeksforGeeks
06 Jan, 2019 Python has math library and has many functions regarding it. One such function is exp(). This method is used to calculate the power of e i.e. e^y or we can say exponential of y. The value of e is approximately equal to 2.71828..... Syntax : math.exp(y) Parameters :y [Required] – It is any valid python numb...
[ { "code": null, "e": 24104, "s": 24076, "text": "\n06 Jan, 2019" }, { "code": null, "e": 24336, "s": 24104, "text": "Python has math library and has many functions regarding it. One such function is exp(). This method is used to calculate the power of e i.e. e^y or we can say exp...
How to Build a Simple Machine Learning Web App in Python | by Chanin Nantasenamat | Towards Data Science
In this article, I will show you how to build a simple machine learning powered data science web app in Python using the streamlit library in less than 50 lines of code. (Quick Note: You might also want to check out Part 1 of this streamlit tutorial series on building your first web app. Shoutout to Simon for suggestin...
[ { "code": null, "e": 342, "s": 172, "text": "In this article, I will show you how to build a simple machine learning powered data science web app in Python using the streamlit library in less than 50 lines of code." }, { "code": null, "e": 518, "s": 342, "text": "(Quick Note: You...
Count NaN or missing values in Pandas DataFrame - GeeksforGeeks
02 Jul, 2020 In this article, we will see how to Count NaN or missing values in Pandas DataFrame using isnull() and sum() method of the DataFrame. Pandas isnull() function detect missing values in the given object. It return a boolean same-sized object indicating if the values are NA. Missing values gets mapped to True...
[ { "code": null, "e": 24638, "s": 24610, "text": "\n02 Jul, 2020" }, { "code": null, "e": 24772, "s": 24638, "text": "In this article, we will see how to Count NaN or missing values in Pandas DataFrame using isnull() and sum() method of the DataFrame." }, { "code": null, ...
XML - CDATA Sections
In this chapter, we will discuss XML CDATA section. The term CDATA means, Character Data. CDATA is defined as blocks of text that are not parsed by the parser, but are otherwise recognized as markup. The predefined entities such as &lt;, &gt;, and &amp; require typing and are generally difficult to read in the markup. ...
[ { "code": null, "e": 2161, "s": 1961, "text": "In this chapter, we will discuss XML CDATA section. The term CDATA means, Character Data. CDATA is defined as blocks of text that are not parsed by the parser, but are otherwise recognized as markup." }, { "code": null, "e": 2479, "s": 2...
Check if Table, View, Trigger, etc present in Oracle - GeeksforGeeks
10 Jan, 2018 Sometimes while working in SQL we often forget the names of the view or sequence or index or synonyms or trigger we earlier created. Also it may happen that we want to verify them in future. Verifying means that we are checking for all the present database object or Trigger in that particular schema.This c...
[ { "code": null, "e": 24304, "s": 24276, "text": "\n10 Jan, 2018" }, { "code": null, "e": 24495, "s": 24304, "text": "Sometimes while working in SQL we often forget the names of the view or sequence or index or synonyms or trigger we earlier created. Also it may happen that we wan...
How to remove duplicate elements of an array in java?
To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements in case of a match you got your duplicate element. One solution to do so you need to use two loops (nested) where the inner loop starts with i+1 (where i is the variable of the outer loop) to avoid rep...
[ { "code": null, "e": 1232, "s": 1062, "text": "To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements in case of a match you got your duplicate element." }, { "code": null, "e": 1392, "s": 1232, "text": "One solution...
Python Number hypot() Method
Python number method hypot() return the Euclidean norm, sqrt(x*x + y*y). Following is the syntax for hypot() method − hypot(x, y) 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 must be a numeric value. x − Thi...
[ { "code": null, "e": 2318, "s": 2244, "text": "Python number method hypot() return the Euclidean norm, sqrt(x*x + y*y)." }, { "code": null, "e": 2363, "s": 2318, "text": "Following is the syntax for hypot() method −" }, { "code": null, "e": 2376, "s": 2363, "...
How to Create an Empty Figure with Matplotlib in Python? - GeeksforGeeks
11 Dec, 2020 Creating a figure explicitly is an object-oriented style of interfacing with matplotlib. The figure is a basic building block of creating a plot as Matplotlib graphs our data on figures. This figure keeps track of all other components such as child axes, legends, title, axis, etc. Steps to create an empty ...
[ { "code": null, "e": 25060, "s": 25032, "text": "\n11 Dec, 2020" }, { "code": null, "e": 25342, "s": 25060, "text": "Creating a figure explicitly is an object-oriented style of interfacing with matplotlib. The figure is a basic building block of creating a plot as Matplotlib grap...
show.bs.tab event in Bootstrap
The show.bs.event fires when the tab is about to be displayed. Display the tab using the nav-tabs class − <ul class="nav nav-tabs"> <li class="active"><a href="#home">Home</a></li> <li><a href="#two">Java</a></li> <li><a href="#three">CSS</a></li> <li><a href="#four">Bootstrap</a></li> <li><a href="#five">jQu...
[ { "code": null, "e": 1125, "s": 1062, "text": "The show.bs.event fires when the tab is about to be displayed." }, { "code": null, "e": 1168, "s": 1125, "text": "Display the tab using the nav-tabs class −" }, { "code": null, "e": 1401, "s": 1168, "text": "<ul c...
MVVM – Dependency Injection
In this chapter, we will briefly discuss about dependency injection. We have already covered data binding decouples Views and ViewModels from each other that allows them to communicate without knowing explicitly what is going on at the other end of the communication. Now we need something similar to decouple our ViewMo...
[ { "code": null, "e": 2210, "s": 1942, "text": "In this chapter, we will briefly discuss about dependency injection. We have already covered data binding decouples Views and ViewModels from each other that allows them to communicate without knowing explicitly what is going on at the other end of the ...
Generate Captcha Using Python - GeeksforGeeks
08 Oct, 2021 In this article, we are going to see how to generate a captcha using Python package captcha to generate our own CAPTCHA (Completely Automated Public Turing Test to Tell Computers and Humans Apart) in picture form. CAPTCHA is a form of challenge-response authentication security mechanism. CAPTCHA prevents a...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n08 Oct, 2021" }, { "code": null, "e": 24670, "s": 24292, "text": "In this article, we are going to see how to generate a captcha using Python package captcha to generate our own CAPTCHA (Completely Automated Public Turing Test to...
Convert Hex to RGBa for background opacity using SASS - GeeksforGeeks
19 Aug, 2020 Sass rgba function uses Red-green-blue-alpha model to describe colours where alpha is used to add opacity to the color. It’s value ranges between 0.0 (completely transparent) to 1.0 (completely opaque). The function takes two input values- the hex color code and alpha and converts Hex code to RGBa format. ...
[ { "code": null, "e": 25254, "s": 25226, "text": "\n19 Aug, 2020" }, { "code": null, "e": 25561, "s": 25254, "text": "Sass rgba function uses Red-green-blue-alpha model to describe colours where alpha is used to add opacity to the color. It’s value ranges between 0.0 (completely t...
Lua - Object Oriented
Object Oriented Programming (OOP), is one the most used programming technique that is used in the modern era of programming. There are a number of programming languages that support OOP which include, C++ Java Objective-C Smalltalk C# Ruby Class − A class is an extensible template for creating objects, providing initia...
[ { "code": null, "e": 2304, "s": 2103, "text": "Object Oriented Programming (OOP), is one the most used programming technique that is used in the modern era of programming. There are a number of programming languages that support OOP which include," }, { "code": null, "e": 2308, "s": ...
AWK - Ternary Operator
We can easily implement a condition expression using ternary operator. The following example demonstrates this − condition expression ? statement1 : statement2 When the condition expression returns true, statement1 gets executed; otherwise statement2 is executed. For instance, the following example finds the largest n...
[ { "code": null, "e": 1970, "s": 1857, "text": "We can easily implement a condition expression using ternary operator. The following example demonstrates this −" }, { "code": null, "e": 2018, "s": 1970, "text": "condition expression ? statement1 : statement2\n" }, { "code"...
Construct a Turing Machine for language L = {wwr | w ∈ {0, 1}} - GeeksforGeeks
08 May, 2018 Prerequisite – Turing MachineThe language L = {wwr | w ∈ {0, 1}} represents a kind of language where you use only 2 character, i.e., 0 and 1. The first part of language can be any string of 0 and 1. The second part is the reverse of the first part. Combining both these parts out string will be formed. Any ...
[ { "code": null, "e": 29756, "s": 29728, "text": "\n08 May, 2018" }, { "code": null, "e": 30192, "s": 29756, "text": "Prerequisite – Turing MachineThe language L = {wwr | w ∈ {0, 1}} represents a kind of language where you use only 2 character, i.e., 0 and 1. The first part of lan...
Types of Software Testing
24 Jun, 2022 Testing is the process of executing a program to find errors. To make our software perform well it should be error-free. If testing is done successfully it will remove all the errors from the software. (i) All the tests should meet the customer requirements.(ii) To make our software testing should be perf...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 255, "s": 52, "text": "Testing is the process of executing a program to find errors. To make our software perform well it should be error-free. If testing is done successfully it will remove all th...
Java Program to Print the Elements of an Array
12 Nov, 2020 An array is to be created in java and elements will be stored in it. After successful insertion, all the elements of the array are printed present in the array. Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. Users can access the elemen...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Nov, 2020" }, { "code": null, "e": 189, "s": 28, "text": "An array is to be created in java and elements will be stored in it. After successful insertion, all the elements of the array are printed present in the array." }, { ...
for loop – Django Template Tags
11 Jan, 2022 A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenience to rendering data in a template. Django templates not only allow passing data from view to template, but also provides some limited...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jan, 2022" }, { "code": null, "e": 590, "s": 52, "text": "A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenienc...
Check for possible path in 2D matrix
22 Feb, 2022 Given a 2D array(m x n). The task is to check if there is any path from top left to bottom right. In the matrix, -1 is considered as blockage (can’t go through this cell) and 0 is considered path cell (can go through it). Note: Top left cell always contains 0 Examples: Input : arr[][] = {{ 0, 0, 0, -1, 0}...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Feb, 2022" }, { "code": null, "e": 276, "s": 54, "text": "Given a 2D array(m x n). The task is to check if there is any path from top left to bottom right. In the matrix, -1 is considered as blockage (can’t go through this cell) and...
Java Program to Extract Digits from A Given Integer
24 Feb, 2022 Problem Statement: For any random number taken into consideration the goal is to access every digit of the number. Illustration: Simply taking two numbers be it, 12345 and 110102 absolutely random pick over which computation takes place as illustrated: Input: 12345 Output: 1 // 1 digit 2 // Digit...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Feb, 2022" }, { "code": null, "e": 169, "s": 52, "text": "Problem Statement: For any random number taken into consideration the goal is to access every digit of the number. " }, { "code": null, "e": 308, "s": 169, ...
Node.js crypto.pbkdf2Sync() Method
23 May, 2022 The crypto.pbkdf2Sync() method gives a synchronous Password-Based Key Derivation Function 2 i.e, (PBKDF2) implementation. Moreover, a particular HMAC digest algorithm which is defined by digest is implemented to derive a key of the required byte length (keylen) from the stated password, salt, and iteration...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2022" }, { "code": null, "e": 339, "s": 28, "text": "The crypto.pbkdf2Sync() method gives a synchronous Password-Based Key Derivation Function 2 i.e, (PBKDF2) implementation. Moreover, a particular HMAC digest algorithm which is...
Create login in SQL Server
18 Aug, 2020 A login is an user account that you can use to access the SQL server. Logins are attached to users by the security identifier (SID). Permissions to create login :Users with membership in the security-admin or sysadmin fixed server role can create logins on the server. Creating a login with a password :Synt...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Aug, 2020" }, { "code": null, "e": 161, "s": 28, "text": "A login is an user account that you can use to access the SQL server. Logins are attached to users by the security identifier (SID)." }, { "code": null, "e": 297, ...
NLP | Proper Noun Extraction
26 Feb, 2019 Chunking all proper nouns (tagged with NNP) is a very simple way to perform named entity extraction. A simple grammar that combines all proper nouns into a NAME chunk can be created using the RegexpParser class. Then, we can test this on the first tagged sentence of treebank_chunk to compare the results wi...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Feb, 2019" }, { "code": null, "e": 240, "s": 28, "text": "Chunking all proper nouns (tagged with NNP) is a very simple way to perform named entity extraction. A simple grammar that combines all proper nouns into a NAME chunk can be c...
Time Formatting in Golang
17 May, 2020 Golang supports time formatting and parsing via pattern-based layouts. To format time, we use the Format() method which formats a time.Time object. Syntax: func (t Time) Format(layout string) string We can either provide custom format or predefined date and timestamp format constants are also available whi...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 May, 2020" }, { "code": null, "e": 202, "s": 54, "text": "Golang supports time formatting and parsing via pattern-based layouts. To format time, we use the Format() method which formats a time.Time object." }, { "code": null...
Regular Expression in grep
30 Jan, 2019 Prerequisite: grep Basic Regular Expression Regular Expression provides an ability to match a “string of text” in a very flexible and concise manner. A “string of text” can be further defined as a single character, word, sentence or particular pattern of characters. Like the shell’s wild–cards which match ...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jan, 2019" }, { "code": null, "e": 71, "s": 52, "text": "Prerequisite: grep" }, { "code": null, "e": 96, "s": 71, "text": "Basic Regular Expression" }, { "code": null, "e": 319, "s": 96, "text...
Python | SMS Bomber using Selenium
26 May, 2021 Here, we are going to learn a simple SMS bomber trick (for fun and educational purpose). Selenium is a free tool for automated testing across different browsers. In this tutorial, we will learn to send automatically number of spam SMS for given number of frequency and interval.Requirement: You need to inst...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 May, 2021" }, { "code": null, "e": 438, "s": 54, "text": "Here, we are going to learn a simple SMS bomber trick (for fun and educational purpose). Selenium is a free tool for automated testing across different browsers. In this tuto...
Get Financial Data from Yahoo Finance with Python
16 Jun, 2021 In this article, we will see how to get financial data from Yahoo Finance using Python. We can retrieve company financial information (e.g. financial ratios), as well as historical market data by using this. Installation: Let us install them via pip commands pip install yfinance Once it is installed, we c...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jun, 2021" }, { "code": null, "e": 237, "s": 28, "text": "In this article, we will see how to get financial data from Yahoo Finance using Python. We can retrieve company financial information (e.g. financial ratios), as well as histo...
PyQt5 – Changing background color of Push Button when mouse hover over it
22 Apr, 2020 In this article we will see how to set background color to a push button when mouse hover. It gets back to its default color when cursor is not on the push button. In order to do this we have to change the style sheet and had to add background color of push button when mouse hover over it. Below is the sty...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 192, "s": 28, "text": "In this article we will see how to set background color to a push button when mouse hover. It gets back to its default color when cursor is not on the push button." }, { ...
CSS Introduction
07 Jun, 2022 Cascading Style Sheets, fondly referred to as CSS, is a simply designed language intended to simplify the process of making web pages presentable. CSS allows you to apply styles to web pages. More importantly, CSS enables you to do this independent of the HTML that makes up each web page. It describes how...
[ { "code": null, "e": 57, "s": 26, "text": " \n07 Jun, 2022\n" }, { "code": null, "e": 611, "s": 57, "text": "Cascading Style Sheets, fondly referred to as CSS, is a simply designed language intended to simplify the process of making web pages presentable. CSS allows you to apply ...
Output of C Programs | Set 5
17 May, 2021 Predict the output of below programs Question 1 c int main(){ while(1){ if(printf("%d",printf("%d"))) break; else continue; } return 0;} Output: Can’t be predictedExplanation: The condition in while loop is 1 so at first shot it looks infinite loop. Then there...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 May, 2021" }, { "code": null, "e": 102, "s": 52, "text": "Predict the output of below programs Question 1 " }, { "code": null, "e": 104, "s": 102, "text": "c" }, { "code": "int main(){ while(1){ ...
Slicing, Indexing, Manipulating and Cleaning Pandas Dataframe
05 Sep, 2020 With the help of Pandas, we can perform many functions on data set like Slicing, Indexing, Manipulating, and Cleaning Data frame. Case 1: Slicing Pandas Data frame using DataFrame.iloc[] Example 1: Slicing Rows Python3 # importing pandas libraryimport pandas as pd # Initializing the nested list with Dat...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Sep, 2020" }, { "code": null, "e": 185, "s": 54, "text": "With the help of Pandas, we can perform many functions on data set like Slicing, Indexing, Manipulating, and Cleaning Data frame. " }, { "code": null, "e": 242, ...
How to Setup Handlebars View Engine in Node.js ?
27 Apr, 2020 Handlebars is a template engine that is widely used and easy to use. The pages contain .hbs extension and there are many other template engines in the market like EJS, Mustache, etc. Installation of hbs module: You can visit the link Install hbs module. You can install this package by using this command.np...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Apr, 2020" }, { "code": null, "e": 237, "s": 54, "text": "Handlebars is a template engine that is widely used and easy to use. The pages contain .hbs extension and there are many other template engines in the market like EJS, Mustac...
Setup Terraform On Linux and Windows Machine
30 Jun, 2020 Before learning about Multicloud, we must know what is a cloud?. Cloud is a name given to groups of different kinds of services provided by the server and is available over the internet. Example: Compute Units, Storage Units (like google drive).Different companies have built their own data centers to provi...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2020" }, { "code": null, "e": 528, "s": 28, "text": "Before learning about Multicloud, we must know what is a cloud?. Cloud is a name given to groups of different kinds of services provided by the server and is available over th...
How to use ngIf without an extra element in Angular2?
29 Jul, 2020 In order to use *ngIf without an extra element in Angular 2+, we can use either <ng-container> or <ng-template>But in many cases, <ng-container> is recommended.The best scenario regarding the usage of with *ngIf without an extra element is mentioned below. app.component.ts: import { Component } from '@angu...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jul, 2020" }, { "code": null, "e": 285, "s": 28, "text": "In order to use *ngIf without an extra element in Angular 2+, we can use either <ng-container> or <ng-template>But in many cases, <ng-container> is recommended.The best scenar...
memcpy() in C/C++
06 Sep, 2021 memcpy() is used to copy a block of memory from a location to another. It is declared in string.h // Copies "numBytes" bytes from address "from" to address "to" void * memcpy(void *to, const void *from, size_t numBytes); Below is a sample C program to show working of memcpy(). C /* A C program to demonstra...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 Sep, 2021" }, { "code": null, "e": 151, "s": 53, "text": "memcpy() is used to copy a block of memory from a location to another. It is declared in string.h" }, { "code": null, "e": 274, "s": 151, "text": "// Copi...
C | Data Types | Question 7
12 Dec, 2018 Assume that the size of char is 1 byte and negatives are stored in 2’s complement form #include<stdio.h>int main(){ char c = 125; c = c+10; printf("%d", c); return 0;} (A) 135(B) +INF(C) -121(D) -8Answer: (C)Explanation: 125 is represented as 01111101 in binary and when we add 10 i.e 1010 in bi...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Dec, 2018" }, { "code": null, "e": 139, "s": 52, "text": "Assume that the size of char is 1 byte and negatives are stored in 2’s complement form" }, { "code": "#include<stdio.h>int main(){ char c = 125; c = c+10; pr...
UUID and Timeuuid functions in Cassandra
19 May, 2021 Prerequisite – Cassandra In this article, we are going to discuss uuid() function which is very important to insert value and to uniquely generates “guaranteed unique” UID value Universally. One of the reason of using uuid() function to generate Unique ID which helps in avoiding collisions. The uuid() fun...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 May, 2021" }, { "code": null, "e": 220, "s": 28, "text": "Prerequisite – Cassandra In this article, we are going to discuss uuid() function which is very important to insert value and to uniquely generates “guaranteed unique” UID val...
HTML <input type="hidden"> - GeeksforGeeks
29 May, 2019 The HTML <input type=”hidden”> is used to define a input Hidden field. A hidden field also includes those data that could not be seen or modified by the users when submitted the form. A hidden field only stores those database records that need to be updated when submitting the form. Syntax: <input type="hi...
[ { "code": null, "e": 25026, "s": 24998, "text": "\n29 May, 2019" }, { "code": null, "e": 25310, "s": 25026, "text": "The HTML <input type=”hidden”> is used to define a input Hidden field. A hidden field also includes those data that could not be seen or modified by the users when...
How to display Y-axis with Euro sign using ggplot2 in R?
When we have a Euro currency column in an R data frame as a response variable then we might to display the Euro sign in the plot created by using ggplot2 package. For this purpose, we can use scales package and the scale for Y axis will be changed by using the command scale_y_continuous(labels=dollar_format(suffix="€",...
[ { "code": null, "e": 1415, "s": 1062, "text": "When we have a Euro currency column in an R data frame as a response variable then we might to display the Euro sign in the plot created by using ggplot2 package. For this purpose, we can use scales package and the scale for Y axis will be changed by us...
SQL Tryit Editor v1.6
SELECT * FROM Products WHERE Price BETWEEN 10 AND 20; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version ...
[ { "code": null, "e": 23, "s": 0, "text": "SELECT * FROM Products" }, { "code": null, "e": 54, "s": 23, "text": "WHERE Price BETWEEN 10 AND 20;" }, { "code": null, "e": 56, "s": 54, "text": "​" }, { "code": null, "e": 119, "s": 56, "text": "...
How to convert a class to another class type in C++?
In this tutorial, we will be discussing a program to understand how to convert a class to another class type in C/C++. Class conversion can be done with the help of operator overloading. This allows data of one class type to be assigned to the object of another class type. Live Demo #include <bits/stdc++.h> using name...
[ { "code": null, "e": 1181, "s": 1062, "text": "In this tutorial, we will be discussing a program to understand how to convert a class to another class type in C/C++." }, { "code": null, "e": 1336, "s": 1181, "text": "Class conversion can be done with the help of operator overload...
How to create a DataBlock for Multispectral Satellite Image Segmentation with the Fastai-v2 | by Maurício Cordeiro | Towards Data Science
For information about the course Introduction to Python for Scientists (available on YouTube) and other articles like this, please visit my website cordmaur.carrd.co. Fastai is an open source deep learning library that adds higher level functionalities to PyTorch and makes it easier to achieve state-of-the-art results ...
[ { "code": null, "e": 339, "s": 172, "text": "For information about the course Introduction to Python for Scientists (available on YouTube) and other articles like this, please visit my website cordmaur.carrd.co." }, { "code": null, "e": 512, "s": 339, "text": "Fastai is an open s...
Static NAT (on ASA) - GeeksforGeeks
25 Oct, 2021 Prerequisite – Adaptive security appliance (ASA), Network address translation (NAT)ASA is a Cisco security device which has classic firewall capabilities like static packet filtering, stateful packet filtering with VPN, antivirus and intrusion prevention capabilities.Network Address Translation (NAT) is a ...
[ { "code": null, "e": 24774, "s": 24746, "text": "\n25 Oct, 2021" }, { "code": null, "e": 25239, "s": 24774, "text": "Prerequisite – Adaptive security appliance (ASA), Network address translation (NAT)ASA is a Cisco security device which has classic firewall capabilities like stat...
Check whether frequency of characters in a string makes Fibonacci Sequence - GeeksforGeeks
26 Nov, 2021 Given a string with lowercase English alphabets. The task is to check whether the frequency of the characters in the string can be arranged as a Fibonacci series. If yes, print “YES”, otherwise print “NO”.Note: Frequencies can be arranged in any way to form Fibonacci Series. The Fibonacci Series starts f...
[ { "code": null, "e": 24828, "s": 24800, "text": "\n26 Nov, 2021" }, { "code": null, "e": 25041, "s": 24828, "text": "Given a string with lowercase English alphabets. The task is to check whether the frequency of the characters in the string can be arranged as a Fibonacci series. ...
C# | Get an enumerator that iterates through the List - GeeksforGeeks
01 Feb, 2019 List<T>.GetEnumerator Method is used to returns an enumerator that iterates through the List<T>. Syntax: public System.Collections.Generic.List<T>.Enumerator GetEnumerator (); Return Value: It returns an List<T>Enumerator for the List<T>. Below programs illustrate the use of List<T>.GetEnumerator Method: E...
[ { "code": null, "e": 24674, "s": 24646, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24771, "s": 24674, "text": "List<T>.GetEnumerator Method is used to returns an enumerator that iterates through the List<T>." }, { "code": null, "e": 24779, "s": 24771, "t...
Java Concurrency - AtomicIntegerArray Class
A java.util.concurrent.atomic.AtomicIntegerArray class provides operations on underlying int array that can be read and written atomically, and also contains advanced atomic operations. AtomicIntegerArray supports atomic operations on underlying int array variable. It have get and set methods that work like reads and w...
[ { "code": null, "e": 3177, "s": 2657, "text": "A java.util.concurrent.atomic.AtomicIntegerArray class provides operations on underlying int array that can be read and written atomically, and also contains advanced atomic operations. AtomicIntegerArray supports atomic operations on underlying int arr...
C# | Type.GetEnumValues() Method - GeeksforGeeks
27 Aug, 2021 Type.GetEnumValues() Method is used to return an array of the values of the constants in the current enumeration type.Syntax: public virtual Array GetEnumValues (); Return Value: This method returns an array which contains the values. The elements of the array are sorted by the binary values i.e. the unsi...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n27 Aug, 2021" }, { "code": null, "e": 24429, "s": 24302, "text": "Type.GetEnumValues() Method is used to return an array of the values of the constants in the current enumeration type.Syntax: " }, { "code": null, "e":...
Tryit Editor v3.7
CSS Grid Item Tryit: Using grid-area to name grid items
[ { "code": null, "e": 23, "s": 9, "text": "CSS Grid Item" } ]
Human Resource analytics — Can we predict Employee Turnover with caret in R? | by Hannah Roos | Towards Data Science
People are the key factors for success to every organization — nothing else produces such a big value like skilled minds in the right time and place. This is why organizations all over the world make tremendous efforts to find and — maybe even more importantly — to maintain valuable talents. In a world of data, HR mana...
[ { "code": null, "e": 773, "s": 172, "text": "People are the key factors for success to every organization — nothing else produces such a big value like skilled minds in the right time and place. This is why organizations all over the world make tremendous efforts to find and — maybe even more import...
Dart Programming - Collection
Dart, unlike other programming languages, doesn’t support arrays. Dart collections can be used to replicate data structures like an array. The dart:core library and other classes enable Collection support in Dart scripts. Dart collections can be basically classified as − A List is simply an ordered group of objects. T...
[ { "code": null, "e": 2748, "s": 2525, "text": "Dart, unlike other programming languages, doesn’t support arrays. Dart collections can be used to replicate data structures like an array. The dart:core library and other classes enable Collection support in Dart scripts." }, { "code": null, ...
Tryit Editor v3.7
Tryit: HTML paragraphs ignore spaces
[]
Tryit Editor v3.6 - Show Python
c = camelcase.CamelCase() ​ txt = "lorem ipsum dolor sit amet" ​ print(c.hump(txt)) ​ #This method capitalizes the first letter of each word.
[ { "code": null, "e": 45, "s": 19, "text": "c = camelcase.CamelCase()" }, { "code": null, "e": 47, "s": 45, "text": "​" }, { "code": null, "e": 82, "s": 47, "text": "txt = \"lorem ipsum dolor sit amet\"" }, { "code": null, "e": 84, "s": 82, ...
Linked List Program in C
A linked list is a sequence of data structures, which are connected together via links. Linked List is a sequence of links which contains items. Each link contains a connection to another link. Linked list is the second most-used data structure after array. #include <stdio.h> #include <string.h> #include <stdlib.h> #in...
[ { "code": null, "e": 2838, "s": 2580, "text": "A linked list is a sequence of data structures, which are connected together via links. Linked List is a sequence of links which contains items. Each link contains a connection to another link. Linked list is the second most-used data structure after ar...
Maximum triplet sum in array - GeeksforGeeks
05 Nov, 2021 Given an array, the task is to find the maximum triplet sum in the array.Examples : Input : arr[] = {1, 2, 3, 0, -1, 8, 10} Output : 21 10 + 8 + 3 = 21 Input : arr[] = {9, 8, 20, 3, 4, -1, 0} Output : 37 20 + 9 + 8 = 37 Naive approach: In this method, we simply run three-loop and one by one add three...
[ { "code": null, "e": 40884, "s": 40856, "text": "\n05 Nov, 2021" }, { "code": null, "e": 40970, "s": 40884, "text": "Given an array, the task is to find the maximum triplet sum in the array.Examples : " }, { "code": null, "e": 41108, "s": 40970, "text": "Inpu...
Beautiful Soup - Souping the Page
In the previous code example, we parse the document through beautiful constructor using a string method. Another way is to pass the document through open filehandle. from bs4 import BeautifulSoup with open("example.html") as fp: soup = BeautifulSoup(fp) soup = BeautifulSoup("<html>data</html>") First the document is...
[ { "code": null, "e": 2151, "s": 1985, "text": "In the previous code example, we parse the document through beautiful constructor using a string method. Another way is to pass the document through open filehandle." }, { "code": null, "e": 2284, "s": 2151, "text": "from bs4 import ...
What happens if try to access an element with an index greater than the size of the array in Java?
An array is a data structure/container/object that stores a fixed-size sequential collection of elements of the same type. The size/length of the array is determined at the time of creation. The position of the elements in the array is called as index or subscript. The first element of the array is stored at the index ...
[ { "code": null, "e": 1253, "s": 1062, "text": "An array is a data structure/container/object that stores a fixed-size sequential collection of elements of the same type. The size/length of the array is determined at the time of creation." }, { "code": null, "e": 1437, "s": 1253, ...
LISP - If Construct
The if macro is followed by a test clause that evaluates to t or nil. If the test clause is evaluated to the t, then the action following the test clause is executed. If it is nil, then the next clause is evaluated. Syntax for if − (if (test-clause) (action1) (action2)) Create a new source code file named main.lisp an...
[ { "code": null, "e": 2276, "s": 2060, "text": "The if macro is followed by a test clause that evaluates to t or nil. If the test clause is evaluated to the t, then the action following the test clause is executed. If it is nil, then the next clause is evaluated." }, { "code": null, "e": ...
PHP File Handling
File handling is an important part of any web application. You often need to open and process a file for different tasks. PHP has several functions for creating, reading, uploading, and editing files. Be careful when manipulating files! You can do a lot of damage if you do something wrong. Common errors are: editin...
[ { "code": null, "e": 123, "s": 0, "text": "File handling is an important part of any web application. You \noften need to open and process a file for different tasks." }, { "code": null, "e": 202, "s": 123, "text": "PHP has several functions for creating, reading, uploading, and ...
JavaScript String - substring() Method
This method returns a subset of a String object. The syntax to use substr() is as follows − string.substring(indexA, [indexB]) indexA − An integer between 0 and one less than the length of the string. indexA − An integer between 0 and one less than the length of the string. indexB − (optional) An integer between 0 and...
[ { "code": null, "e": 2515, "s": 2466, "text": "This method returns a subset of a String object." }, { "code": null, "e": 2558, "s": 2515, "text": "The syntax to use substr() is as follows −" }, { "code": null, "e": 2594, "s": 2558, "text": "string.substring(in...
How to sort an ArrayList in Ascending Order in Java
To sort an ArrayList in ascending order, the easiest way is to the Collections.sort() method. With this method, you just need to set the ArrayList as the parameter as shown below − Collections.sort(ArrayList) Let us now see an example to sort an ArrayList un ascending order. Here, we are sorting ArrayList with integer ...
[ { "code": null, "e": 1243, "s": 1062, "text": "To sort an ArrayList in ascending order, the easiest way is to the Collections.sort() method. With this method, you just need to set the ArrayList as the parameter as shown below −" }, { "code": null, "e": 1271, "s": 1243, "text": "C...
Exception propagation in Java
Exception propagation in Java occurs when an exception thrown from the top of the stack. When it is not caught, the exception drops down the call stack of the preceding method. If it is not caught there, it further drops down to the previous method. This continues until the method reaches the bottom of the call stack o...
[ { "code": null, "e": 1416, "s": 1062, "text": "Exception propagation in Java occurs when an exception thrown from the top of the stack. When it is not caught, the exception drops down the call stack of the preceding method. If it is not caught there, it further drops down to the previous method. Thi...
C Program to insert an array element using pointers.
Write a C program to insert the elements into an array at runtime by the user and the result to be displayed on the screen after insertion. If the inserted element is greater than the size of an array, then, we need to display Invalid Input. An array is used to hold the group of common elements under one name. The arra...
[ { "code": null, "e": 1304, "s": 1062, "text": "Write a C program to insert the elements into an array at runtime by the user and the result to be displayed on the screen after insertion. If the inserted element is greater than the size of an array, then, we need to display Invalid Input." }, { ...
XPath - Attribute Node
This attribute can be easily retrieved and checked by using the @attribute-name of the element. @name − get the value of attribute "name". <td><xsl:value-of select = "@rollno"/></td> Attribute can be used to compared using operators. @rollno = 493 − get the text value of attribute "rollno" and compare with a value. <xs...
[ { "code": null, "e": 1825, "s": 1729, "text": "This attribute can be easily retrieved and checked by using the @attribute-name of the element." }, { "code": null, "e": 1868, "s": 1825, "text": "@name − get the value of attribute \"name\"." }, { "code": null, "e": 1912...
Classification of Signature and Text images using CNN and Deploying the model on Google Cloud ML Engine | by Krishna Parekh | Towards Data Science
As we know for any document of legal importance, may it be a contract, a consignment or a simple form, signature is a substantial part. Signature provides an identification as well as a confirmation. Currently, the model that identifies signature from printed text data is not available. So the work here presented is ab...
[ { "code": null, "e": 539, "s": 172, "text": "As we know for any document of legal importance, may it be a contract, a consignment or a simple form, signature is a substantial part. Signature provides an identification as well as a confirmation. Currently, the model that identifies signature from pri...
Create and display a one-dimensional array-like object using Pandas in Python - GeeksforGeeks
18 Aug, 2020 Series() is a function present in the Pandas library that creates a one-dimensional array and can hold any type of objects or data in it. In this article, let us learn the syntax, create and display one-dimensional array-like object containing an array of data using Pandas library. Syntax : pandas.Series(p...
[ { "code": null, "e": 24621, "s": 24593, "text": "\n18 Aug, 2020" }, { "code": null, "e": 24904, "s": 24621, "text": "Series() is a function present in the Pandas library that creates a one-dimensional array and can hold any type of objects or data in it. In this article, let us l...
Pandas Sidetable: A Smarter Way of Using Pandas | by Soner Yıldırım | Towards Data Science
Pandas is a very powerful and versatile Python data analysis library that expedites the preprocessing steps of data science projects. It provides numerous functions and methods that are quite useful in data analysis. Although the built-in functions of Pandas are capable of performing efficient data analysis, custom mad...
[ { "code": null, "e": 388, "s": 171, "text": "Pandas is a very powerful and versatile Python data analysis library that expedites the preprocessing steps of data science projects. It provides numerous functions and methods that are quite useful in data analysis." }, { "code": null, "e": 5...
QlikView - Rank Function
The Rank() function in QlikView is used to display the rank of the values in a field as well as return rows with specific rank value. So it is used in two scenarios. First scenario is in QlikView charts to display the ranks of the values in the field and second is in Aggregate function to display only the rows, which h...
[ { "code": null, "e": 3267, "s": 2920, "text": "The Rank() function in QlikView is used to display the rank of the values in a field as well as return rows with specific rank value. So it is used in two scenarios. First scenario is in QlikView charts to display the ranks of the values in the field an...
25 Questions to Ask as You Clean Data | by Rose Day | Towards Data Science
I work as a software engineer and data scientist with my code both in notebooks and software packages. If you haven’t heard it yet, you should stop and think before you code, and the same concept applies to data cleaning. It has been valuable to step back from the initial work and begin to think about the problem at ha...
[ { "code": null, "e": 829, "s": 172, "text": "I work as a software engineer and data scientist with my code both in notebooks and software packages. If you haven’t heard it yet, you should stop and think before you code, and the same concept applies to data cleaning. It has been valuable to step back...
Modeling, Visualizing, and Navigating a Transportation Network with Memgraph | by Barbara Prkacin | Towards Data Science
If riding a bike or walking is not an option, using public transport is the most eco-friendly way to travel around a city. Navigating a public transportation system can be confusing and complicated. As a passenger, you usually want to know how to get from one station to another and where to change lines to make your jo...
[ { "code": null, "e": 371, "s": 172, "text": "If riding a bike or walking is not an option, using public transport is the most eco-friendly way to travel around a city. Navigating a public transportation system can be confusing and complicated." }, { "code": null, "e": 841, "s": 371, ...
Prophet-able Forecasting. Getting started with Prophet... | by Werlindo Mangrobang | Towards Data Science
If you google “time-series forecasting”, most of the first search results you’ll get will involve autoregressive integrated moving average modeling (ARIMA) or exponential smoothing (ETS). And with good reason! There are popular options available for performing applying these time-series forecasting methods, both in R a...
[ { "code": null, "e": 663, "s": 172, "text": "If you google “time-series forecasting”, most of the first search results you’ll get will involve autoregressive integrated moving average modeling (ARIMA) or exponential smoothing (ETS). And with good reason! There are popular options available for perfo...
Hands-on guide to Python Optimal Transport toolbox: Part 1 | by Aurelie Boisbunon | Towards Data Science
As a follow-up of the introductory article on optimal transport by Ievgen Redko, I will present below how you can solve Optimal Transport (OT) in practice using the Python Optimal Transport (POT) toolbox. To start with, let us install POT using pip from the terminal by simply running pip3 install pot Or with conda cond...
[ { "code": null, "e": 377, "s": 172, "text": "As a follow-up of the introductory article on optimal transport by Ievgen Redko, I will present below how you can solve Optimal Transport (OT) in practice using the Python Optimal Transport (POT) toolbox." }, { "code": null, "e": 457, "s":...
The Most Awesome Loss Function. Paper Review: General and Adaptive... | by Saptashwa Bhattacharyya | Towards Data Science
Recently, I came across the amazing paper presented in CVPR 2019 by Jon Barron about developing a robust and adaptive loss function for Machine Learning problems. This post is a review of that paper along with some necessary concepts and, it will also contain an implementation of the loss function on a simple regressio...
[ { "code": null, "e": 503, "s": 172, "text": "Recently, I came across the amazing paper presented in CVPR 2019 by Jon Barron about developing a robust and adaptive loss function for Machine Learning problems. This post is a review of that paper along with some necessary concepts and, it will also con...
Power BI Connects to Azure Databricks | Towards Data Science
Microsoft PowerBI is becoming more and more popular recently as a Data Analytics tool. Also, It is ubiquitous for a company to have a whole bucket of Microsoft products that include Azure. Azure Databricks is one of the most popular services in the Azure platform. It leverages Apache Spark to process data in a distribu...
[ { "code": null, "e": 360, "s": 171, "text": "Microsoft PowerBI is becoming more and more popular recently as a Data Analytics tool. Also, It is ubiquitous for a company to have a whole bucket of Microsoft products that include Azure." }, { "code": null, "e": 790, "s": 360, "text"...
How to create transparent Status Bar and Navigation Bar in iOS?
You might have come across many application where the screen extends to complete screen i.e transparent Status Bar and transparent navigation bar. Here we will be seeing how to create an application where the you’ll be having transparent status and navigation bar. So let’s get started Step 1 − Open Xcode → New Project ...
[ { "code": null, "e": 1209, "s": 1062, "text": "You might have come across many application where the screen extends to complete screen i.e transparent Status Bar and transparent navigation bar." }, { "code": null, "e": 1327, "s": 1209, "text": "Here we will be seeing how to creat...
Perl | keys() Function - GeeksforGeeks
25 Jun, 2019 keys() function in Perl returns all the keys of the HASH as a list. Order of elements in the List need not to be same always, but, it matches to the order returned by values and each function. Syntax: keys(HASH) Parameter:HASH: Hash whose keys are to be printed Return: For scalar context, it returns the nu...
[ { "code": null, "e": 23679, "s": 23651, "text": "\n25 Jun, 2019" }, { "code": null, "e": 23872, "s": 23679, "text": "keys() function in Perl returns all the keys of the HASH as a list. Order of elements in the List need not to be same always, but, it matches to the order returned...
How to center canvas in HTML5?
To center canvas in HTML 5, include the canvas tag in div tag. Then we can center align the div tag. By doing so, the canvas is also center aligned. <!DOCTYPE html>. <html> <body> <div style = "text-align:center;"> <canvas style = "background-color:GREEN;">This is my canvas</canvas> </div> </...
[ { "code": null, "e": 1211, "s": 1062, "text": "To center canvas in HTML 5, include the canvas tag in div tag. Then we can center align the div tag. By doing so, the canvas is also center aligned." }, { "code": null, "e": 1396, "s": 1211, "text": "<!DOCTYPE html>.\n<html>\n <bod...
Sum of maximum of all subarrays by adding even frequent maximum twice - GeeksforGeeks
07 Feb, 2022 Given an array arr[] consisting of N integers (All array elements are a perfect power of 2), the task is to calculate the sum of the maximum elements in all the subarrays. Note: If the frequency of the maximum element in a subarray is even, add twice the value of that element to the sum. Examples: Input:...
[ { "code": null, "e": 24785, "s": 24754, "text": " \n07 Feb, 2022\n" }, { "code": null, "e": 24958, "s": 24785, "text": "Given an array arr[] consisting of N integers (All array elements are a perfect power of 2), the task is to calculate the sum of the maximum elements in all the...
Reverse a Doubly linked list using recursion - GeeksforGeeks
25 Oct, 2021 Given a doubly linked list. Reverse it using recursion. Original Doubly linked list Reversed Doubly linked list We have discussed Iterative solution to reverse a Doubly Linked ListAlgorithm 1) If list is empty, return 2) Reverse head by swapping head->prev and head->next 3) If prev = NULL it mea...
[ { "code": null, "e": 24569, "s": 24541, "text": "\n25 Oct, 2021" }, { "code": null, "e": 24626, "s": 24569, "text": "Given a doubly linked list. Reverse it using recursion. " }, { "code": null, "e": 24655, "s": 24626, "text": "Original Doubly linked list " }...
Understanding Explicit vs Implicit measures in Power BI | by Nikola Ilic | Towards Data Science
One of the most challenging concepts for new Power BI users is to understand the difference between Measures and Calculated Columns. Or, to be more specific, the concept itself is not a big issue, but the most daunting thing for Power BI rookies is to understand when to use which. Since I’ve already written about the u...
[ { "code": null, "e": 454, "s": 172, "text": "One of the most challenging concepts for new Power BI users is to understand the difference between Measures and Calculated Columns. Or, to be more specific, the concept itself is not a big issue, but the most daunting thing for Power BI rookies is to und...
PDFBox - Adding Pages
In the previous chapter, we have seen how to create a PDF document. After creating a PDF document, you need to add pages to it. Let us now understand how to add pages in a PDF document. You can create an empty page by instantiating the PDPage class and add it to the PDF document using the addPage() method of the PDDocu...
[ { "code": null, "e": 2213, "s": 2027, "text": "In the previous chapter, we have seen how to create a PDF document. After creating a PDF document, you need to add pages to it. Let us now understand how to add pages in a PDF document." }, { "code": null, "e": 2359, "s": 2213, "text...
C++ String Library - begin
It returns an iterator pointing to the first character of the string. Following is the declaration for std::string::begin. iterator begin(); const_iterator begin() const; iterator begin() noexcept; const_iterator begin() const noexcept; none It returns an iterator to the beginning of the string. Never throw any e...
[ { "code": null, "e": 2673, "s": 2603, "text": "It returns an iterator pointing to the first character of the string." }, { "code": null, "e": 2726, "s": 2673, "text": "Following is the declaration for std::string::begin." }, { "code": null, "e": 2777, "s": 2726, ...
CSS overflow: auto
The CSS overflow: auto, adds a scrollbar only when it's needed, unlike overflow:scroll. You can try to run the following code to implement CSS overflow: auto property: Live Demo <!DOCTYPE html> <html> <head> <style> div { background-color: orange; width: 250px; heig...
[ { "code": null, "e": 1230, "s": 1062, "text": "The CSS overflow: auto, adds a scrollbar only when it's needed, unlike overflow:scroll. You can try to run the following code to implement CSS overflow: auto property:" }, { "code": null, "e": 1240, "s": 1230, "text": "Live Demo" }...
Don’t Panic If You Ever Make the Wrong Git Commit. I’ve Got You Covered | by Taylor Zhancher | Towards Data Science
5 months ago when I first started contributing to open source, something made me nervous all the time. Every single commit message on the branch had to follow a format, or your pull request doesn’t get merged. Specifically, it should be: “PREFIX: Summary of what this commit is about”. What happens if you have worked on...
[ { "code": null, "e": 274, "s": 171, "text": "5 months ago when I first started contributing to open source, something made me nervous all the time." }, { "code": null, "e": 381, "s": 274, "text": "Every single commit message on the branch had to follow a format, or your pull requ...
Tryit Editor v3.7
Tryit: HTML RGB color values
[]
Check horizontal and vertical symmetry in binary matrix
13 Jun, 2022 Given a 2D binary matrix of N rows and M columns. The task is to check whether the matrix is horizontal symmetric, vertical symmetric, or both. The matrix is said to be horizontal symmetric if the first row is the same as the last row, the second row is the same as the second last row, and so on. And the m...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 712, "s": 52, "text": "Given a 2D binary matrix of N rows and M columns. The task is to check whether the matrix is horizontal symmetric, vertical symmetric, or both. The matrix is said to be horiz...
unsigned char in C with Examples
06 Aug, 2020 char is the most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers. Now character datatype can be divided into 2 types: signed charunsigned char signed char unsigned char unsigned char is a character datatype where the variable consumes all the ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Aug, 2020" }, { "code": null, "e": 182, "s": 52, "text": "char is the most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers." }, { "code": null, "e": 234, ...
read command in Linux with Examples
24 May, 2019 read command in Linux system is used to read from a file descriptor. Basically, this command read up the total number of bytes from the specified file descriptor into the buffer. If the number or count is zero then this command may detect the errors. But on success, it returns the number of bytes read. Zer...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 May, 2019" }, { "code": null, "e": 434, "s": 53, "text": "read command in Linux system is used to read from a file descriptor. Basically, this command read up the total number of bytes from the specified file descriptor into the buf...