title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Unsupervised Learning: Image Compression In 10 Lines of R Code | by Leihua Ye, PhD | Towards Data Science
Principal Component Analysis (PCA) is a powerful Machine Learning tool. As an unsupervised learning technique, it excels in dimension reduction and feature extraction. However, do you know we can use PCA to compress images? In this post, I’ll walk through the process and explain how PCA can compress images in 10 lines ...
[ { "code": null, "e": 340, "s": 172, "text": "Principal Component Analysis (PCA) is a powerful Machine Learning tool. As an unsupervised learning technique, it excels in dimension reduction and feature extraction." }, { "code": null, "e": 396, "s": 340, "text": "However, do you kn...
Angular 6 - Forms
In this chapter, we will see how forms are used in Angular 6. We will discuss two ways of working with forms - template driven form and model driven forms. With a template driven form, most of the work is done in the template; and with the model driven form, most of the work is done in the component class. Let us now c...
[ { "code": null, "e": 2151, "s": 1995, "text": "In this chapter, we will see how forms are used in Angular 6. We will discuss two ways of working with forms - template driven form and model driven forms." }, { "code": null, "e": 2303, "s": 2151, "text": "With a template driven for...
Create a grid of cards using Bootstrap 4 .card-deck class
Use the card-deck class in Bootstrap to form a grid of cards with equal width and height. Set the cards inside the following div − <div class="card-deck"> <! - - deck- - > </div> Let us set the grid of cards now in the card-deck class − <div class="card-deck"> <div class="card bg-primary"> <div class="card-body...
[ { "code": null, "e": 1152, "s": 1062, "text": "Use the card-deck class in Bootstrap to form a grid of cards with equal width and height." }, { "code": null, "e": 1193, "s": 1152, "text": "Set the cards inside the following div −" }, { "code": null, "e": 1243, "s":...
How to convert date to timestamp in MongoDB
To convert date to timestamp in MongoDB, use aggregate(). Let us create a collection with documents − > db.demo93.insertOne({"UserName":"Chris","ArrivalDate":new ISODate("2020-10-01")}); { "acknowledged" : true, "insertedId" : ObjectId("5e2d4b6479799acab037af68") } > db.demo93.insertOne({"UserName":"David","Arriv...
[ { "code": null, "e": 1164, "s": 1062, "text": "To convert date to timestamp in MongoDB, use aggregate(). Let us create a collection with documents −" }, { "code": null, "e": 1504, "s": 1164, "text": "> db.demo93.insertOne({\"UserName\":\"Chris\",\"ArrivalDate\":new ISODate(\"2020...
Python - Tkinter Relief styles
The relief style of a widget refers to certain simulated 3-D effects around the outside of the widget. Here is a screenshot of a row of buttons exhibiting all the possible relief styles − Here is list of possible constants which can be used for relief attribute. FLAT RAISED SUNKEN GROOVE RIDGE from Tkinter import * imp...
[ { "code": null, "e": 2432, "s": 2244, "text": "The relief style of a widget refers to certain simulated 3-D effects around the outside of the widget. Here is a screenshot of a row of buttons exhibiting all the possible relief styles −" }, { "code": null, "e": 2507, "s": 2432, "te...
Python - Tkinter Listbox
The Listbox widget is used to display a list of items from which a user can select a number of items. Here is the simple syntax to create this widget − w = Listbox ( master, option, ... ) master − This represents the parent window. master − This represents the parent window. options − Here is the list of most commonly...
[ { "code": null, "e": 2346, "s": 2244, "text": "The Listbox widget is used to display a list of items from which a user can select a number of items." }, { "code": null, "e": 2396, "s": 2346, "text": "Here is the simple syntax to create this widget −" }, { "code": null, ...
How to tune multiple ML models with GridSearchCV at once? | by Satyam Kumar | Towards Data Science
Model selection is an essential component for a data science model development pipeline. After performing feature engineering the data scientist needs to choose the model with the best set of hyperparameters that performs best for the training dataset. There are various Auto-ML libraries that automate the model selecti...
[ { "code": null, "e": 506, "s": 172, "text": "Model selection is an essential component for a data science model development pipeline. After performing feature engineering the data scientist needs to choose the model with the best set of hyperparameters that performs best for the training dataset. Th...
Solidity - Loop Control
Solidity provides full control to handle loops and switch statements. There may be a situation when you need to come out of a loop without reaching its bottom. There may also be a situation when you want to skip a part of your code block and start the next iteration of the loop. To handle all such situations, Solidity ...
[ { "code": null, "e": 2835, "s": 2555, "text": "Solidity provides full control to handle loops and switch statements. There may be a situation when you need to come out of a loop without reaching its bottom. There may also be a situation when you want to skip a part of your code block and start the n...
Difference between Increment and Decrement Operators - GeeksforGeeks
07 Apr, 2020 Programming languages like C/C++/Java have increment and decrement operators. These are very useful and common operators. Increment Operators: The increment operator is used to increment the value of a variable in an expression. In the Pre-Increment, value is first incremented and then used inside the expr...
[ { "code": null, "e": 25180, "s": 25152, "text": "\n07 Apr, 2020" }, { "code": null, "e": 25302, "s": 25180, "text": "Programming languages like C/C++/Java have increment and decrement operators. These are very useful and common operators." }, { "code": null, "e": 2739...
How to Set the Location of the Label in C#? - GeeksforGeeks
30 Jun, 2019 In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set the location of the Label control using the Location Property in the windows form. This property contains the coordinates of the upper-left corn...
[ { "code": null, "e": 25237, "s": 25209, "text": "\n30 Jun, 2019" }, { "code": null, "e": 25670, "s": 25237, "text": "In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set ...
Python PIL | Image.save() method - GeeksforGeeks
17 Jul, 2019 PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to...
[ { "code": null, "e": 25655, "s": 25627, "text": "\n17 Jul, 2019" }, { "code": null, "e": 25982, "s": 25655, "text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which...
How to Iterate through Collection Objects in Java? - GeeksforGeeks
07 Jan, 2021 Any group of individual objects which are represented as a single unit is known as the Collection of the objects. In Java, a separate framework named the “Collection Framework” has been defined in JDK 1.2 which holds all the collection classes and interface in it. The Collection interface (java.util.Collec...
[ { "code": null, "e": 26107, "s": 26079, "text": "\n07 Jan, 2021" }, { "code": null, "e": 26372, "s": 26107, "text": "Any group of individual objects which are represented as a single unit is known as the Collection of the objects. In Java, a separate framework named the “Collecti...
DecimalFormat setRoundingMode() method in Java - GeeksforGeeks
01 Apr, 2019 The setRoundingMode() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the RoundingMode to be used with this DecimalFormat instance to round-off the decimal digits. Syntax: public void setRoundingMode(RoundingMode roundingMode) Parameters: The function accepts a ...
[ { "code": null, "e": 25823, "s": 25795, "text": "\n01 Apr, 2019" }, { "code": null, "e": 26031, "s": 25823, "text": "The setRoundingMode() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the RoundingMode to be used with this DecimalForm...
How to Remove columns in Numpy array that contains non-numeric values? - GeeksforGeeks
25 Oct, 2020 Many times we have non-numeric values in NumPy array. These values need to be removed, so that array will be free from all these unnecessary values and look more decent. It is possible to remove all columns containing Nan values using the Bitwise NOT operator and np.isnan() function. Example 1: Python3 # I...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n25 Oct, 2020" }, { "code": null, "e": 25822, "s": 25537, "text": "Many times we have non-numeric values in NumPy array. These values need to be removed, so that array will be free from all these unnecessary values and look more d...
numpy.tril_indices() function | Python - GeeksforGeeks
22 Apr, 2020 numpy.tril_indices() function return the indices for the lower-triangle of an (n, m) array. Syntax : numpy.tril_indices(n, k = 0, m = None)Parameters :n : [int] The row dimension of the arrays for which the returned indices will be valid.k : [int, optional] Diagonal offset.m : [int, optional] The column di...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Apr, 2020" }, { "code": null, "e": 25629, "s": 25537, "text": "numpy.tril_indices() function return the indices for the lower-triangle of an (n, m) array." }, { "code": null, "e": 26097, "s": 25629, "text":...
How to select all even/odd rows in table using jQuery ? - GeeksforGeeks
12 Aug, 2021 In this article, we will see how to make a table by selecting the alternate rows i.e. selecting the even or odd rows by clicking on the respective buttons. This feature can be useful at the time of selecting the specific data/elements of either of the rows or to highlight the table of data for display from...
[ { "code": null, "e": 26706, "s": 26678, "text": "\n12 Aug, 2021" }, { "code": null, "e": 27324, "s": 26706, "text": "In this article, we will see how to make a table by selecting the alternate rows i.e. selecting the even or odd rows by clicking on the respective buttons. This fe...
Software Engineering | COCOMO Model - GeeksforGeeks
15 Feb, 2022 Cocomo (Constructive Cost Model) is a regression model based on LOC, i.e number of Lines of Code. It is a procedural cost estimate model for software projects and is often used as a process of reliably predicting the various parameters associated with making a project such as size, effort, cost, time, and ...
[ { "code": null, "e": 28627, "s": 28599, "text": "\n15 Feb, 2022" }, { "code": null, "e": 29074, "s": 28627, "text": "Cocomo (Constructive Cost Model) is a regression model based on LOC, i.e number of Lines of Code. It is a procedural cost estimate model for software projects and ...
JQuery hasData() method - GeeksforGeeks
16 Jul, 2020 This hasData() method in JQuery is used to determine whether an element has any jQuery data associated with it. This data may be text, event associated with element. There are two examples discussed below: Syntax: jQuery.hasData(element) Arguments: element: This parameter is a DOM element which is to be c...
[ { "code": null, "e": 26110, "s": 26082, "text": "\n16 Jul, 2020" }, { "code": null, "e": 26316, "s": 26110, "text": "This hasData() method in JQuery is used to determine whether an element has any jQuery data associated with it. This data may be text, event associated with elemen...
Java Program to Delete a directory - GeeksforGeeks
02 Nov, 2020 The class named java.io.File represents a file or directory (path names) in the system. This class provides methods to perform various operations on files/directories. The delete() method of the File class deletes the files and empty directory represented by the current File object. If a directory is not e...
[ { "code": null, "e": 25250, "s": 25222, "text": "\n02 Nov, 2020" }, { "code": null, "e": 25418, "s": 25250, "text": "The class named java.io.File represents a file or directory (path names) in the system. This class provides methods to perform various operations on files/director...
Java | Functions | Question 3 - GeeksforGeeks
28 Jun, 2021 class Test {public static void swap(Integer i, Integer j) { Integer temp = new Integer(i); i = j; j = temp; } public static void main(String[] args) { Integer i = new Integer(10); Integer j = new Integer(20); swap(i, j); System.out.println("i = " + i + ", j = " + j); ...
[ { "code": null, "e": 25714, "s": 25686, "text": "\n28 Jun, 2021" }, { "code": "class Test {public static void swap(Integer i, Integer j) { Integer temp = new Integer(i); i = j; j = temp; } public static void main(String[] args) { Integer i = new Integer(10); Inte...
Difference between Append, Extend and Insert in Python - GeeksforGeeks
05 Jul, 2021 Lists are just like dynamically sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes it the most powerful tool in Python. A single list may contain DataTypes like Integers, Strings, as well as Objects. Lists are mutable, and henc...
[ { "code": null, "e": 26128, "s": 26100, "text": "\n05 Jul, 2021" }, { "code": null, "e": 26408, "s": 26128, "text": "Lists are just like dynamically sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes i...
How to hide axis titles in plotly express figure with facets in Python? - GeeksforGeeks
28 Nov, 2021 In this article, we will learn how to hide axis titles in a plotly express figure with facets in Python. We can hide the axis by setting the axis title as blank by iterating through for loop. We are hiding the axis only for X-axis and Y-axis so we have to compare this condition in each iteration Syntax: ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25643, "s": 25537, "text": "In this article, we will learn how to hide axis titles in a plotly express figure with facets in Python. " }, { "code": null, "e": 25835, "s": 2564...
Bubble Plots in Matplotlib. Learn to plot bubble plots with... | by Rashida Nasrin Sucky | Towards Data Science
Bubble plots are an improved version of the scatter plot. In a scatter plot, there are two dimensions x, and y. In a bubble plot, there are three dimensions x, y, and z. Where the third dimension z denotes weight. That way, bubble plots give more information visually than a two dimensional scatter plot. For this tutori...
[ { "code": null, "e": 477, "s": 172, "text": "Bubble plots are an improved version of the scatter plot. In a scatter plot, there are two dimensions x, and y. In a bubble plot, there are three dimensions x, y, and z. Where the third dimension z denotes weight. That way, bubble plots give more informat...
Build XGBoost / LightGBM models on large datasets — what are the possible solutions? | by Shiu-Tang Li | Towards Data Science
XGBoost and LightGBM have been dominating all recent kaggle competitions for tabular data. Simply go to any competition page (tabular data) and check out the kernels and you’ll see. In these competitions, the data is not ‘huge’ — well, don’t tell me the data you’re handling is huge if it can be trained on your laptop. ...
[ { "code": null, "e": 581, "s": 171, "text": "XGBoost and LightGBM have been dominating all recent kaggle competitions for tabular data. Simply go to any competition page (tabular data) and check out the kernels and you’ll see. In these competitions, the data is not ‘huge’ — well, don’t tell me the d...
SQL | EXISTS - GeeksforGeeks
27 Apr, 2017 The EXISTS condition in SQL is used to check whether the result of a correlated nested query is empty (contains no tuples) or not. The result of EXISTS is a boolean value True or False. It can be used in a SELECT, UPDATE, INSERT or DELETE statement. Syntax: SELECT column_name(s) FROM table_name WHERE EXIS...
[ { "code": null, "e": 25676, "s": 25648, "text": "\n27 Apr, 2017" }, { "code": null, "e": 25926, "s": 25676, "text": "The EXISTS condition in SQL is used to check whether the result of a correlated nested query is empty (contains no tuples) or not. The result of EXISTS is a boolea...
Predicting Titanic Survivors (A Kaggle Competition) | by Auggie Heschmeyer | Towards Data Science
The purpose of this case study is to document the process I went through to create my predictions for submission in my first Kaggle competition, Titanic: Machine Learning from Disaster. For the uninitiated, Kaggle is a popular data science website that houses thousands of public datasets, offers courses and generally s...
[ { "code": null, "e": 773, "s": 171, "text": "The purpose of this case study is to document the process I went through to create my predictions for submission in my first Kaggle competition, Titanic: Machine Learning from Disaster. For the uninitiated, Kaggle is a popular data science website that ho...
Difference between passing pointer to pointer and address of pointer to any function - GeeksforGeeks
26 Apr, 2021 In this article, the differences between passing “pointer to pointer” and “address of pointer” to a function. In C or C++ Programming Language, it is known that pointers hold the address of the variables or any memory location. If pointers are pointed to the memory location, it can be used to change the va...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n26 Apr, 2021" }, { "code": null, "e": 25695, "s": 25367, "text": "In this article, the differences between passing “pointer to pointer” and “address of pointer” to a function. In C or C++ Programming Language, it is known that po...
How to convert a string in to a function in JavaScript?
To convert a string in to function "eval()" method should be used. This method takes a string as a parameter and converts it into a function. eval(string); In the following example, in a string itself, a property called 'age' is assigned with a function. Later on, using eval() function the property age is converted int...
[ { "code": null, "e": 1204, "s": 1062, "text": "To convert a string in to function \"eval()\" method should be used. This method takes a string as a parameter and converts it into a function." }, { "code": null, "e": 1218, "s": 1204, "text": "eval(string);" }, { "code": nu...
Material Design Lite - Checkboxes
MDL provides a range of CSS classes to apply various predefined visual and behavioral enhancements and display the different types of checkboxes. The following table lists down the available classes and their effects. mdl-checkbox Identifies label as an MDL component and is required on label element. mdl-js-checkbox Se...
[ { "code": null, "e": 2104, "s": 1886, "text": "MDL provides a range of CSS classes to apply various predefined visual and behavioral\nenhancements and display the different types of checkboxes. The following table lists down\nthe available classes and their effects." }, { "code": null, "...
Two water Jug problem | Practice | GeeksforGeeks
You are at the side of a river. You are given a m litre jug and a n litre jug where 0 < m < n. Both the jugs are initially empty. The jugs don’t have markings to allow measuring smaller quantities. You have to use the jugs to measure d litres of water where d < n. Determine the minimum no of operations to be performed ...
[ { "code": null, "e": 637, "s": 238, "text": "You are at the side of a river. You are given a m litre jug and a n litre jug where 0 < m < n. Both the jugs are initially empty. The jugs don’t have markings to allow measuring smaller quantities. You have to use the jugs to measure d litres of water whe...
Sort Dataframe according to row frequency in Pandas
24 Feb, 2021 In this article, we will discuss how to use count() and sort_values() in pandas. So the count in pandas counts the frequency of elements in the dataframe column and then sort sorts the dataframe according to element frequency. count(): This method will show you the number of values for each column in your ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Feb, 2021" }, { "code": null, "e": 255, "s": 28, "text": "In this article, we will discuss how to use count() and sort_values() in pandas. So the count in pandas counts the frequency of elements in the dataframe column and then sort ...
Python NLTK | nltk.tokenizer.word_tokenize()
12 Jun, 2019 With the help of nltk.tokenize.word_tokenize() method, we are able to extract the tokens from string of characters by using tokenize.word_tokenize() method. It actually returns the syllables from a single word. A single word can contain one or two syllables. Syntax : tokenize.word_tokenize()Return : Return...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Jun, 2019" }, { "code": null, "e": 311, "s": 52, "text": "With the help of nltk.tokenize.word_tokenize() method, we are able to extract the tokens from string of characters by using tokenize.word_tokenize() method. It actually retur...
Matplotlib.axes.Axes.remove() in Python
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text...
Express.js req.query Property
08 Jul, 2020 The req.query property is an object containing the property for each query string parameter in the route. Syntax: req.query Parameter: No parameters. Return Value: String Installation of express module: You can visit the link to Install express module. You can install this package by using this command.npm...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2020" }, { "code": null, "e": 158, "s": 52, "text": "The req.query property is an object containing the property for each query string parameter in the route." }, { "code": null, "e": 166, "s": 158, "text": ...
Inshackle – Tool for Instagram Hacks in Kali Linux
13 Jun, 2022 Inshackle – Instagram Hacks: is an open-source intelligence tool available freely on GitHub. Inshackle is written in bash language. Inshackle is used to perform reconnaissance on Instagram accounts and profiles. Inshackle is very helpful when you want to get information about any Instagram profile that ...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 713, "s": 52, "text": "Inshackle – Instagram Hacks: is an open-source intelligence tool available freely on GitHub. Inshackle is written in bash language. Inshackle is used to perform reconnaissa...
HTML DOM Window localStorage Properties
25 Nov, 2021 HTML DOM Window localStorage Properties allow you to store value pairs in web browsers using objects. It is a read-only property. This object is not expired even if the browser is closed. So, the data is never lost. Return Values: It returns a Storage object. Syntax: SAVING data to localStorage using:loca...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Nov, 2021" }, { "code": null, "e": 148, "s": 28, "text": "HTML DOM Window localStorage Properties allow you to store value pairs in web browsers using objects. It is a read-only" }, { "code": null, "e": 244, "s": 148,...
Longest increasing subarray
19 Jan, 2022 Given an array containing n numbers. The problem is to find the length of the longest contiguous subarray such that every element in the subarray is strictly greater than its previous element in the same subarray. Time Complexity should be O(n). Examples: Input : arr[] = {5, 6, 3, 5, 7, 8, 9, 1, 2} Outpu...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jan, 2022" }, { "code": null, "e": 298, "s": 52, "text": "Given an array containing n numbers. The problem is to find the length of the longest contiguous subarray such that every element in the subarray is strictly greater than its...
Extracting Image Metadat using Exif Tool in Linux
12 Mar, 2021 Exif stands for Exchangeable image file format. It is a standard that specifies the formats for images, sound, and ancillary tags used by cameras, scanners, and other systems handling image and sound files recorded by cameras. Developed by Japan Electronic Industries Development Association (JEIDA). Metada...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Mar, 2021" }, { "code": null, "e": 329, "s": 28, "text": "Exif stands for Exchangeable image file format. It is a standard that specifies the formats for images, sound, and ancillary tags used by cameras, scanners, and other systems ...
Generate all rotations of a number
23 Jun, 2022 Given an integer n, the task is to generate all the left shift numbers possible. A left shift number is a number that is generated when all the digits of the number are shifted one position to the left and the digit at the first position is shifted to the last.Examples: Input: n = 123 Output: 231 312Inpu...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 327, "s": 54, "text": "Given an integer n, the task is to generate all the left shift numbers possible. A left shift number is a number that is generated when all the digits of the number are shift...
Python – Escape reserved characters in Strings List
09 Jul, 2021 Given List of Strings, escape reserved characters in each String. Input : test_list = [“Gf-g”, “be)s(t”] Output : [‘Gf\\-g’, ‘be\\)s\\(t’] Explanation : All reserved character elements escaped, by adding double \\. Input : test_list = [“Gf-g”] Output : [‘Gf\\-g’] Explanation : All reserved character elemen...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Jul, 2021" }, { "code": null, "e": 94, "s": 28, "text": "Given List of Strings, escape reserved characters in each String." }, { "code": null, "e": 243, "s": 94, "text": "Input : test_list = [“Gf-g”, “be)s(t”] Out...
How To Reset Identity Column Values In SQL
11 May, 2022 Identity column of a table is a column whose value increases automatically. A user generally cannot insert a value into an identity column. A table can have only one column that is defined with the identity attribute. Syntax : IDENTITY [ ( seed , increment ) ] Default value of identity is IDENTITY (1,1). S...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 May, 2022" }, { "code": null, "e": 270, "s": 52, "text": "Identity column of a table is a column whose value increases automatically. A user generally cannot insert a value into an identity column. A table can have only one column t...
Python | Uncommon elements in Lists of List
16 Aug, 2021 This particular article aims at achieving the task of finding uncommon two list, in which each element is in itself a list. This is also a useful utility as this kind of task can come in life of programmer if he is in the world of development. Lets discuss some ways to achieve this task. Method 1 : Naive M...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Aug, 2021" }, { "code": null, "e": 343, "s": 54, "text": "This particular article aims at achieving the task of finding uncommon two list, in which each element is in itself a list. This is also a useful utility as this kind of task...
Shell Script to Read Data From a File
20 Apr, 2021 File reading is quite an important task in a Programmer’s life as it makes some tasks quite comfortable and automates certain repetitive and time-consuming things. File reading is quite an interesting concept to learn as it gives insight into quite a lot of things that can be done in the Programming world....
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Apr, 2021" }, { "code": null, "e": 433, "s": 53, "text": "File reading is quite an important task in a Programmer’s life as it makes some tasks quite comfortable and automates certain repetitive and time-consuming things. File readi...
SQL Query to Find the Sum of all Values in a Column
13 Apr, 2021 In this article, we will look into the process of querying the sum of all values in a column of a database table. But before finding the sum of all values in a column, let us create a table with some columns and data. In this article, we will be using the Microsoft SQL Server as our database. Use the belo...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Apr, 2021" }, { "code": null, "e": 323, "s": 28, "text": "In this article, we will look into the process of querying the sum of all values in a column of a database table. But before finding the sum of all values in a column, let us ...
Find if a number is part of AP whose first element and difference are given
27 Sep, 2021 Given three non-negative integers a, d and x. Here, a is the first element, d is the difference of an AP (Arithmetic Progression). We need to find if x is part of the given AP or not. Examples : Input : a = 1, d = 3, x = 7 Output : Yes 7 is part of given AP, 1 + 3 + 3 = 7 Input : a = 10, d = 0, x = 10 Ou...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Sep, 2021" }, { "code": null, "e": 236, "s": 52, "text": "Given three non-negative integers a, d and x. Here, a is the first element, d is the difference of an AP (Arithmetic Progression). We need to find if x is part of the given A...
Reverse array in groups | Practice | GeeksforGeeks
Given an array arr[] of positive integers of size N. Reverse every sub-array group of size K. Example 1: Input: N = 5, K = 3 arr[] = {1,2,3,4,5} Output: 3 2 1 5 4 Explanation: First group consists of elements 1, 2, 3. Second group consists of 4,5. Example 2: Input: N = 4, K = 3 arr[] = {5,6,8,9} Output: 8 6 5 9 ...
[ { "code": null, "e": 332, "s": 238, "text": "Given an array arr[] of positive integers of size N. Reverse every sub-array group of size K." }, { "code": null, "e": 345, "s": 334, "text": "Example 1:" }, { "code": null, "e": 488, "s": 345, "text": "Input:\nN = ...
Get name of current method being executed in Java
08 Nov, 2018 Getting name of currently executing method is useful for handling exceptions and debugging purposes.Below are different methods to get currently executing method : Using Throwable Stack Trace :Using Throwable Class : In Java, Throwable class is the superclass of all exceptions and errors in java.lang packa...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Nov, 2018" }, { "code": null, "e": 216, "s": 52, "text": "Getting name of currently executing method is useful for handling exceptions and debugging purposes.Below are different methods to get currently executing method :" }, { ...
Instance variable as final in Java
21 Sep, 2017 Instance variable: As we all know that when the value of variable is varied from object to object then that type of variable is known as instance variable. The instance variable is declared inside a class but not within any method, constructor, block etc. If we don’t initialize an instance variable, then J...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Sep, 2017" }, { "code": null, "e": 572, "s": 52, "text": "Instance variable: As we all know that when the value of variable is varied from object to object then that type of variable is known as instance variable. The instance varia...
Pseudo Random Number Generator (PRNG)
06 Sep, 2019 Pseudo Random Number Generator(PRNG) refers to an algorithm that uses mathematical formulas to produce sequences of random numbers. PRNGs generate a sequence of numbers approximating the properties of random numbers. A PRNG starts from an arbitrary starting state using a seed state. Many numbers are genera...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Sep, 2019" }, { "code": null, "e": 271, "s": 54, "text": "Pseudo Random Number Generator(PRNG) refers to an algorithm that uses mathematical formulas to produce sequences of random numbers. PRNGs generate a sequence of numbers appro...
In-Place Merge Sort
16 Jun, 2022 Implement Merge Sort i.e. standard implementation keeping the sorting algorithm as in-place. In-place means it does not occupy extra memory for merge operation as in the standard case. Examples: Input: arr[] = {2, 3, 4, 1} Output: 1 2 3 4 Input: arr[] = {56, 2, 45} Output: 2 45 56 Approach 1: Maintain tw...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 237, "s": 52, "text": "Implement Merge Sort i.e. standard implementation keeping the sorting algorithm as in-place. In-place means it does not occupy extra memory for merge operation as in the stan...
C# | Operators
09 Jul, 2021 Operators are the foundation of any programming language. Thus the functionality of C# language is incomplete without the use of operators. Operators allow us to perform different kinds of operations on operands. In C#, operators Can be categorized based upon their different functionality : Arithmetic Oper...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jul, 2021" }, { "code": null, "e": 346, "s": 54, "text": "Operators are the foundation of any programming language. Thus the functionality of C# language is incomplete without the use of operators. Operators allow us to perform diff...
How to load external HTML file using jQuery ?
22 Apr, 2021 In this article, we will learn how to load an external HTML file into a div element. The following jQuery functions are used in the example codes. ready(): The ready event occurs when the DOM (document object model) has been loaded. load(): The load() method loads data from a server and gets the returned ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2021" }, { "code": null, "e": 113, "s": 28, "text": "In this article, we will learn how to load an external HTML file into a div element." }, { "code": null, "e": 175, "s": 113, "text": "The following jQuery ...
How to rotate a text 360 degrees on hover using HTML and CSS?
20 May, 2021 The Text can be rotated 360 degrees using basic HTML and CSS, this animation can be used as a heading or subheadings in the website to make it look more attractive. The below sections will guide you on how to create the desired effect. HTML Code: In this section we will create a basic div element which wil...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 May, 2021" }, { "code": null, "e": 290, "s": 54, "text": "The Text can be rotated 360 degrees using basic HTML and CSS, this animation can be used as a heading or subheadings in the website to make it look more attractive. The below...
WheelView in Android
30 Apr, 2021 In this article, WheelView is added in android. WheelView provides a very impressive UI that allows the developer to create a Wheel and add items according to his need. Some important tags provided by WheelView are wheelArcBackgroundColor, wheelAnchorAngle, wheelStartAngle, wheelMode, wheelCenterIcon, and ...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Apr, 2021" }, { "code": null, "e": 593, "s": 52, "text": "In this article, WheelView is added in android. WheelView provides a very impressive UI that allows the developer to create a Wheel and add items according to his need. Some ...
JavaScript | encodeURI(), decodeURI() and its components functions
14 Feb, 2019 Encoding and Decoding URI and URI components is a usual task in web development while making a GET request to API with query params. Many times construct a URL string with query params and in order to understand it, the response server needs to decode this URL. Browsers automatically encode the URL i.e. it...
[ { "code": null, "e": 53, "s": 25, "text": "\n14 Feb, 2019" }, { "code": null, "e": 512, "s": 53, "text": "Encoding and Decoding URI and URI components is a usual task in web development while making a GET request to API with query params. Many times construct a URL string with qu...
Python | Add comma between numbers
01 Jul, 2019 Sometimes, while working with currencies, we need to put commas between numbers to represent a currency, hence given a string, we can have a problem to insert commas into them. Let’s discuss certain ways in which this task can be performed. Method #1 : Using str.format()The string format function can be us...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jul, 2019" }, { "code": null, "e": 293, "s": 52, "text": "Sometimes, while working with currencies, we need to put commas between numbers to represent a currency, hence given a string, we can have a problem to insert commas into the...
Java toRadians() method with Example
11 Aug, 2021 The java.lang.Math.toRadians() is used to convert an angle measured in degrees to an approximately equivalent angle measured in radians. Note: The conversion from degrees to radian is generally inexact. Syntax: public static double toRadians(double deg) Parameter: deg : This parameter is an angle in de...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Aug, 2021" }, { "code": null, "e": 257, "s": 53, "text": "The java.lang.Math.toRadians() is used to convert an angle measured in degrees to an approximately equivalent angle measured in radians. Note: The conversion from degrees to ...
Complement of a number with any base b
07 Jul, 2021 One’s Complement of an Integer 1’s and 2’s complement of a Binary Number In this post, a general method of finding complement with any arbitrary base is discussed.Steps to find (b-1)’s complement: To find (b-1)’s complement, Subtract each digit of the number from the largest number in the number system w...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2021" }, { "code": null, "e": 85, "s": 54, "text": "One’s Complement of an Integer" }, { "code": null, "e": 127, "s": 85, "text": "1’s and 2’s complement of a Binary Number" }, { "code": null, "e...
Validate an IP address using Python without using RegEx
13 Apr, 2022 Given an IP address as input, the task is to write a Python program to check whether the given IP Address is Valid or not without using RegEx. What is an IP (Internet Protocol) Address? Every computer connected to the Internet is identified by a unique four-part string, known as its Internet Protocol (IP) ...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Apr, 2022" }, { "code": null, "e": 196, "s": 53, "text": "Given an IP address as input, the task is to write a Python program to check whether the given IP Address is Valid or not without using RegEx." }, { "code": null, ...
Program to print modified Binary triangle pattern
12 Nov, 2021 Given an integer N, the task is to print the modified binary tree pattern. In Modified Binary Triangle Pattern, the first and last element of a Nth row are 1 and the middle (N – 2) elements are 0. Examples: Input: N = 6 Output: 1 11 101 1001 10001 100001Input: N = 3 Output: 1 11 101 Approach: From t...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Nov, 2021" }, { "code": null, "e": 128, "s": 52, "text": "Given an integer N, the task is to print the modified binary tree pattern. " }, { "code": null, "e": 250, "s": 128, "text": "In Modified Binary Triangle P...
Click button by text using Python and Selenium
03 Mar, 2021 Selenium is a tool that provides APIs to automate a web application to aid in its testing. In this article, we discuss the use of Selenium Python API bindings to access the Selenium WebDrivers to click a button by text present in the button. In the following example, we take the help of Chrome. The method ...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Mar, 2021" }, { "code": null, "e": 549, "s": 52, "text": "Selenium is a tool that provides APIs to automate a web application to aid in its testing. In this article, we discuss the use of Selenium Python API bindings to access the S...
Tailwind CSS Container
23 Mar, 2022 In Tailwind CSS, a container is used to fix the max-width of an element to match the min-width of the breakpoint. It comes very handy when content has to be displayed in a responsive manner to every breakpoint. Breakpoints in tailwind CSS are as follows. Tailwind CSS does not center itself automatically an...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Mar, 2022" }, { "code": null, "e": 263, "s": 52, "text": "In Tailwind CSS, a container is used to fix the max-width of an element to match the min-width of the breakpoint. It comes very handy when content has to be displayed in a re...
Sum of product of all pairs of array elements
14 Aug, 2021 Given an array A[] of integers find sum of product of all pairs of array elements i. e., we need to find of product after execution of following pseudo code product = 0 for i = 1:n for j = i+1:n product = product + A[i]*A[j] Examples: Input : A[] = {1, 3, 4} Output : 19 Possible Pairs : (1,3)...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Aug, 2021" }, { "code": null, "e": 210, "s": 52, "text": "Given an array A[] of integers find sum of product of all pairs of array elements i. e., we need to find of product after execution of following pseudo code " }, { "c...
Finding power of prime number p in n!
23 Jun, 2022 Given a number ‘n’ and a prime number ‘p’. We need to find out the power of ‘p’ in the prime factorization of n!Examples: Input : n = 4, p = 2 Output : 3 Power of 2 in the prime factorization of 2 in 4! = 24 is 3 Input : n = 24, p = 2 Output : 22 Naive approach The naive approach i...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 178, "s": 54, "text": "Given a number ‘n’ and a prime number ‘p’. We need to find out the power of ‘p’ in the prime factorization of n!Examples: " }, { "code": null, "e": 324, "s":...
Difference Between insert(), insertOne(), and insertMany() in Pymongo
19 Jan, 2022 MongoDB is a NoSql Database that can be used to store data required by different applications. Python can be used to access MongoDB databases. Python requires a driver to access the databases. PyMongo enables interacting with MongoDB database from Python applications. The pymongo package acts as a native P...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jan, 2022" }, { "code": null, "e": 571, "s": 28, "text": "MongoDB is a NoSql Database that can be used to store data required by different applications. Python can be used to access MongoDB databases. Python requires a driver to acce...
Insertion Sort Visualization using Matplotlib in Python
28 Jul, 2020 Prerequisites: Insertion Sort, Using Matplotlib for Animations Visualizing algorithms makes it easier to understand them by analyzing and comparing the number of operations that took place to compare and swap the elements. For this we will use matplotlib, to plot bar graphs to represent the elements of the...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2020" }, { "code": null, "e": 91, "s": 28, "text": "Prerequisites: Insertion Sort, Using Matplotlib for Animations" }, { "code": null, "e": 344, "s": 91, "text": "Visualizing algorithms makes it easier to und...
JCL - Conditional Processing
The Job Entry System uses two approaches to perform conditional processing in a JCL. When a job completes, a return code is set based on the status of execution. The return code can be a number between 0 (successful execution) to 4095 (non-zero shows error condition). The most common conventional values are: 0 = Normal...
[ { "code": null, "e": 2174, "s": 1864, "text": "The Job Entry System uses two approaches to perform conditional processing in a JCL. When a job completes, a return code is set based on the status of execution. The return code can be a number between 0 (successful execution) to 4095 (non-zero shows er...
Node.js request.socket Property - GeeksforGeeks
01 Sep, 2020 The request.socket (Added in v0.3.0) property is an inbuilt property of the ‘http’ module which references to the underlying socket and most users don’t get access to this property. Particularly, the socket doesn’t emit ‘readable‘ events but, the socket could be accessed via request.connection. This proper...
[ { "code": null, "e": 25002, "s": 24974, "text": "\n01 Sep, 2020" }, { "code": null, "e": 25402, "s": 25002, "text": "The request.socket (Added in v0.3.0) property is an inbuilt property of the ‘http’ module which references to the underlying socket and most users don’t get access...
How to create the Azure Storage context using PowerShell?
Storage context is helpful when you are working with the Storage accounts in the PowerShell session. It is like authenticating for Azure storage. Generally, we use the Azure storage account key and the connection string to create the Azure storage context. To create a new storage context, we need to use the New-AzStora...
[ { "code": null, "e": 1319, "s": 1062, "text": "Storage context is helpful when you are working with the Storage accounts in the PowerShell session. It is like authenticating for Azure storage. Generally, we use the Azure storage account key and the connection string to create the Azure storage conte...
AWK - Output Redirection
So far, we displayed data on standard output stream. We can also redirect data to a file. A redirection appears after the print or printf statement. Redirections in AWK are written just like redirection in shell commands, except that they are written inside the AWK program. This chapter explains redirection with suitab...
[ { "code": null, "e": 2190, "s": 1857, "text": "So far, we displayed data on standard output stream. We can also redirect data to a file. A redirection appears after the print or printf statement. Redirections in AWK are written just like redirection in shell commands, except that they are written in...
Check if all substrings of length K of a Binary String has equal count of 0s and 1s - GeeksforGeeks
17 May, 2021 Given a binary string S of length N and an even integer K, the task is to check if all substrings of length K contains an equal number of 0s and 1s. If found to be true, print “Yes”. Otherwise, print “No”. Examples: Input: S = “101010”, K = 2Output: YesExplanation:Since all the substrings of length 2 has e...
[ { "code": null, "e": 25294, "s": 25266, "text": "\n17 May, 2021" }, { "code": null, "e": 25500, "s": 25294, "text": "Given a binary string S of length N and an even integer K, the task is to check if all substrings of length K contains an equal number of 0s and 1s. If found to be...
How to get a list of MySQL views?
To get a list of MySQL views, we can use the SELECT command with LIKE operator. Let us see the syntax first. mysql> SELECT TABLE_SCHEMA, TABLE_NAME -> FROM information_schema.tables -> WHERE TABLE_TYPE LIKE 'VIEW'; The following is the output that displays the total number of views. +--------------+--------------...
[ { "code": null, "e": 1171, "s": 1062, "text": "To get a list of MySQL views, we can use the SELECT command with LIKE operator. Let us see the syntax first." }, { "code": null, "e": 1283, "s": 1171, "text": "mysql> SELECT TABLE_SCHEMA, TABLE_NAME\n -> FROM information_schema.tab...
How to Update Data to SQLite Database in Android? - GeeksforGeeks
25 Feb, 2021 We have seen How to Create and Add Data to SQLite Database in Android as well as How to Read Data from SQLite Database in Android. We have performed different SQL queries for reading and writing our data to SQLite database. In this article, we will take a look at updating data to SQLite database in Android...
[ { "code": null, "e": 25142, "s": 25114, "text": "\n25 Feb, 2021" }, { "code": null, "e": 25452, "s": 25142, "text": "We have seen How to Create and Add Data to SQLite Database in Android as well as How to Read Data from SQLite Database in Android. We have performed different SQL ...
Numbers in C++
Normally, when we work with Numbers, we use primitive data types such as int, short, long, float and double, etc. The number data types, their possible values and number ranges have been explained while discussing C++ Data Types. You have already defined numbers in various examples given in previous chapters. Here is a...
[ { "code": null, "e": 2548, "s": 2318, "text": "Normally, when we work with Numbers, we use primitive data types such as int, short, long, float and double, etc. The number data types, their possible values and number ranges have been explained while discussing C++ Data Types." }, { "code": n...
How to Mount a Directory Inside a Docker Container | by Mahbub Zaman | Towards Data Science
It works on my machine, let’s ship your machine then! That’s Docker in a nutshell. It allows us to run an application from a Docker image on any computer by using containerization technology. A Docker container is a package of a Base OS (alpine, ubuntu, etc.) and other necessary software dependencies, which you can def...
[ { "code": null, "e": 754, "s": 171, "text": "It works on my machine, let’s ship your machine then! That’s Docker in a nutshell. It allows us to run an application from a Docker image on any computer by using containerization technology. A Docker container is a package of a Base OS (alpine, ubuntu, e...
Apache Pig - MAX()
The Pig Latin MAX() function is used to calculate the highest value for a column (numeric values or chararrays) in a single-column bag. While calculating the maximum value, the Max() function ignores the NULL values. Note − To get the global maximum value, we need to perform a Group All operation, and calculate the max...
[ { "code": null, "e": 2901, "s": 2684, "text": "The Pig Latin MAX() function is used to calculate the highest value for a column (numeric values or chararrays) in a single-column bag. While calculating the maximum value, the Max() function ignores the NULL values." }, { "code": null, "e":...
Online JSON Editor
Editable JSON Code 12345678910111213141516{ "Company": { "Employee": { "FirstName": "Tanmay", "LastName": "Patil", "ContactNo": "1234567890", "Email": "tanmaypatil@xyz.com", "Address": { "City": "Bangalore", "State": "Karnata...
[ { "code": null, "e": 19, "s": 0, "text": "Editable JSON Code" }, { "code": null, "e": 385, "s": 19, "text": "12345678910111213141516{ \"Company\": { \"Employee\": { \"FirstName\": \"Tanmay\", \"LastName\": \"Patil\", \"ContactNo\": \"123...
Non-negative Integers without Consecutive Ones in C++
Suppose we have a positive integer n. We have to find the non-negative integers less than or equal to n. The constraint is that the binary representation will not contain consecutive ones. So if the input is 7, then the answer will be 5, as binary representation of 5 is 101. To solve this, we will follow these steps − ...
[ { "code": null, "e": 1338, "s": 1062, "text": "Suppose we have a positive integer n. We have to find the non-negative integers less than or equal to n. The constraint is that the binary representation will not contain consecutive ones. So if the input is 7, then the answer will be 5, as binary repre...
An end-to-end machine learning project with Python Pandas, Keras, Flask, Docker and Heroku | by Ryan Lamb | Towards Data Science
At the time of the Rugby World Cup in 2019 I did a small data science project to try and predict rugby match results, which I wrote about here. I’ve expanded this into an example end-to-end machine learning project to demonstrate how to deploy a machine learning model as an interactive web app. To provide a high-level ...
[ { "code": null, "e": 467, "s": 171, "text": "At the time of the Rugby World Cup in 2019 I did a small data science project to try and predict rugby match results, which I wrote about here. I’ve expanded this into an example end-to-end machine learning project to demonstrate how to deploy a machine l...
How to open an activity after receiving a PUSH notification in Android?
This example demonstrate about How to open an activity after receiving a PUSH notification 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 src/MyFirebaseMessagingService.java package app.tutori...
[ { "code": null, "e": 1164, "s": 1062, "text": "This example demonstrate about How to open an activity after receiving a PUSH notification in Android" }, { "code": null, "e": 1293, "s": 1164, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fi...
html.unescape() in Python - GeeksforGeeks
22 Apr, 2020 With the help of html.unescape() method, we can convert the ascii string into html script by replacing ascii characters with special characters by using html.escape() method. Syntax : html.unescape(String) Return : Return a html script. Example #1 :In this example we can see that by using html.unescape() m...
[ { "code": null, "e": 24029, "s": 24001, "text": "\n22 Apr, 2020" }, { "code": null, "e": 24204, "s": 24029, "text": "With the help of html.unescape() method, we can convert the ascii string into html script by replacing ascii characters with special characters by using html.escap...
Python 3 - Exceptions Handling
Python provides two very important features to handle any unexpected error in your Python programs and to add debugging capabilities in them − Exception Handling − This would be covered in this tutorial. Here is a list standard Exceptions available in Python − Standard Exceptions. Exception Handling − This would be cov...
[ { "code": null, "e": 2483, "s": 2340, "text": "Python provides two very important features to handle any unexpected error in your Python programs and to add debugging capabilities in them −" }, { "code": null, "e": 2622, "s": 2483, "text": "Exception Handling − This would be cove...
Minimum characters that are to be inserted such that no three consecutive characters are same - GeeksforGeeks
21 May, 2021 Given a string str and the task is to modify the string such that no three consecutive characters are same. In a single operation, any character can be inserted at any position in the string. Find the minimum number of such operations required.Examples: Input : str = “aabbbcc” Output: 1 “aabbdbcc” is the...
[ { "code": null, "e": 24637, "s": 24609, "text": "\n21 May, 2021" }, { "code": null, "e": 24893, "s": 24637, "text": "Given a string str and the task is to modify the string such that no three consecutive characters are same. In a single operation, any character can be inserted at...
How to plot a smooth 2D color plot for z = f(x, y) in Matplotlib?
To plot a smooth 2D color plot for z = f(x, y) in Matplotlib, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Create x and y data points using numpy. Get z data points using f(x, y). Display the data as an image, i.e., on a 2D regular raster, with z data poi...
[ { "code": null, "e": 1158, "s": 1062, "text": "To plot a smooth 2D color plot for z = f(x, y) in Matplotlib, we can take the following steps −" }, { "code": null, "e": 1234, "s": 1158, "text": "Set the figure size and adjust the padding between and around the subplots." }, { ...
How to Update Your Live Django Website | Towards Data Science
I’ve recently built a web app (see it here) using Django and deployed it through DigitalOcean. There are many wonderful reasons to use DigitalOcean, but updating is not one of them. Because it is a cloud hosting provider and not a PaaS like AWS Elastic Beanstalk, the updating process is 100% your problem. Plus, if you’...
[ { "code": null, "e": 266, "s": 171, "text": "I’ve recently built a web app (see it here) using Django and deployed it through DigitalOcean." }, { "code": null, "e": 478, "s": 266, "text": "There are many wonderful reasons to use DigitalOcean, but updating is not one of them. Beca...
Pandas – Remove special characters from column names
05 Sep, 2020 Let us see how to remove special characters like #, @, &, etc. from column names in the pandas data frame. Here we will use replace function for removing special character. Example 1: remove a special character from column names Python # import pandasimport pandas as pd # create data frameData = {'Name#'...
[ { "code": null, "e": 53, "s": 25, "text": "\n05 Sep, 2020" }, { "code": null, "e": 227, "s": 53, "text": "Let us see how to remove special characters like #, @, &, etc. from column names in the pandas data frame. Here we will use replace function for removing special character."...
GenericIPAddressField – Django Models
12 Feb, 2020 GenericIPAddressField is a field which stores an IPv4 or IPv6 address, in string format (e.g. 192.0.2.30 or 2a02:42fe::4). The default form widget for this field is a TextInput. The IPv6 address normalization follows RFC 4291#section-2.2 section 2.2, including using the IPv4 format suggested in paragraph 3...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Feb, 2020" }, { "code": null, "e": 521, "s": 28, "text": "GenericIPAddressField is a field which stores an IPv4 or IPv6 address, in string format (e.g. 192.0.2.30 or 2a02:42fe::4). The default form widget for this field is a TextInpu...
Writing a Windows batch script
08 Jun, 2022 In Windows, the batch file is a file that stores commands in a serial order. The command line interpreter takes the file as an input and executes in the same order. A batch file is simply a text file saved with the .bat file extension. It can be written using Notepad or any other text editor. A simple batc...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Jun, 2022" }, { "code": null, "e": 376, "s": 53, "text": "In Windows, the batch file is a file that stores commands in a serial order. The command line interpreter takes the file as an input and executes in the same order. A batch f...
String concatenation in Scala
02 Jul, 2021 A string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. when a new string is created by adding two strings is known as a concatenation of strings. Scala provides concat() method to concatenate two strings, this method return...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jul, 2021" }, { "code": null, "e": 453, "s": 28, "text": "A string is a sequence of characters. In Scala, objects of String are immutable which means a constant and cannot be changed once created. when a new string is created by addi...
Seaborn | Regression Plots
09 Dec, 2021 The regression plots in seaborn are primarily intended to add a visual guide that helps to emphasize patterns in a dataset during exploratory data analyses. Regression plots as the name suggests creates a regression line between 2 parameters and helps to visualize their linear relationships. This article d...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Dec, 2021" }, { "code": null, "e": 496, "s": 54, "text": "The regression plots in seaborn are primarily intended to add a visual guide that helps to emphasize patterns in a dataset during exploratory data analyses. Regression plots ...
What is a Web Application Firewall?
07 Jan, 2022 Web Application Firewall protects the web application by filtering, monitoring, and blocking any malicious HTTP/S traffic that might penetrate the web application. In simple words, a Web Application Firewall acts as a shield between a web application and the Internet. This shield protects the web applicati...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jan, 2022" }, { "code": null, "e": 371, "s": 28, "text": "Web Application Firewall protects the web application by filtering, monitoring, and blocking any malicious HTTP/S traffic that might penetrate the web application. In simple w...
Installing OpenVAS on Kali Linux
23 Aug, 2021 OpenVAS, an endpoint scanning application and web application used to identify and detect vulnerabilities. It is widely used by companies as part of their risk mitigation solutions to quickly identify gaps in their production and even development servers or applications. This is not a complete solution, bu...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 418, "s": 28, "text": "OpenVAS, an endpoint scanning application and web application used to identify and detect vulnerabilities. It is widely used by companies as part of their risk mitigation solu...
map::empty() in C++ STL
17 Jan, 2018 Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key values. empty() function is used to check if the map container is empty or not. Syntax : mapname.empty() Parameters : No parameters are passed. Re...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jan, 2018" }, { "code": null, "e": 223, "s": 54, "text": "Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key values." },...
Find maximum points which can be obtained by deleting elements from array - GeeksforGeeks
11 May, 2021 Given an array A having N elements and two integers L and R where, and . You can choose any element of the array (let’s say ax) and delete it, and also delete all elements equal to ax+1, ax+2 ... ax+R and ax-1, ax-2 ... ax-L from the array. This step will cost ax points. The task is to maximize the total c...
[ { "code": null, "e": 24822, "s": 24794, "text": "\n11 May, 2021" }, { "code": null, "e": 25192, "s": 24822, "text": "Given an array A having N elements and two integers L and R where, and . You can choose any element of the array (let’s say ax) and delete it, and also delete all ...
Vim - Plug-Ins
Using plug-ins, we can extends the functionality of Vim. Vim supports many plug-ins and most of them are available freely. This chapter is about Vim plug-ins and we will discuss following items − Plug-in management Some useful plug-ins This section discusses plug-in management. Vim provides various plug-ins managers bu...
[ { "code": null, "e": 2166, "s": 1970, "text": "Using plug-ins, we can extends the functionality of Vim. Vim supports many plug-ins and most of them are available freely. This chapter is about Vim plug-ins and we will discuss following items −" }, { "code": null, "e": 2185, "s": 2166,...
The Top 5 Data Science Qualifications | Towards Data Science
IntroductionProgrammingBusiness Savvy and IntelligenceStatistics and MathematicsMachine LearningVisualizationSummaryReferences Introduction Programming Business Savvy and Intelligence Statistics and Mathematics Machine Learning Visualization Summary References As someone who has interviewed with several companies for D...
[ { "code": null, "e": 299, "s": 172, "text": "IntroductionProgrammingBusiness Savvy and IntelligenceStatistics and MathematicsMachine LearningVisualizationSummaryReferences" }, { "code": null, "e": 312, "s": 299, "text": "Introduction" }, { "code": null, "e": 324, ...
Opencv Python program for Face Detection - GeeksforGeeks
17 Jun, 2017 The objective of the program given is to detect object of interest(face) in real time and to keep tracking of the same object.This is a simple example of how to detect face in Python. You can try to use training samples of any other object of your choice to be detected by training the classifier on require...
[ { "code": null, "e": 24484, "s": 24456, "text": "\n17 Jun, 2017" }, { "code": null, "e": 24802, "s": 24484, "text": "The objective of the program given is to detect object of interest(face) in real time and to keep tracking of the same object.This is a simple example of how to de...
How to trigger setInterval loop immediately using JavaScript ? - GeeksforGeeks
28 Jan, 2020 This article will show some simple ways in which the setInterval() method can be made to execute the function without delay. There are many procedures to do so, below all the procedures are described with the example. Note: In this article setInterval() method will start immediately for the 1st time run. B...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n28 Jan, 2020" }, { "code": null, "e": 24934, "s": 24716, "text": "This article will show some simple ways in which the setInterval() method can be made to execute the function without delay. There are many procedures to do so, be...
ASP.NET - Debugging
Debugging allows the developers to see how the code works in a step-by-step manner, how the values of the variables change, how the objects are created and destroyed, etc. When the site is executed for the first time, Visual Studio displays a prompt asking whether it should be enabled for debugging: When debugging is e...
[ { "code": null, "e": 2519, "s": 2347, "text": "Debugging allows the developers to see how the code works in a step-by-step manner, how the values of the variables change, how the objects are created and destroyed, etc." }, { "code": null, "e": 2648, "s": 2519, "text": "When the s...
Fables of Data Science — Anscombe’s quartet | by dearC | Towards Data Science
..in a land far far away there used to live a man called Francis John “Frank” Anscombe. He was a statistician of great repute. He wandered far and wide meeting many fellow practitioners and sat in the Citadel training young apprentices in the sacred art of statistics. The more he talked and trained people he saw a dang...
[ { "code": null, "e": 299, "s": 172, "text": "..in a land far far away there used to live a man called Francis John “Frank” Anscombe. He was a statistician of great repute." }, { "code": null, "e": 631, "s": 299, "text": "He wandered far and wide meeting many fellow practitioners ...