title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Types of Network Address Translation (NAT)
25 Oct, 2021 Prerequisite – Network address translation (NAT) Network Address Translation (NAT) is a process in which one or more local IP address is translated into one or more Global IP address and vice versa in order to provide Internet access to the local hosts. NAT generally operates on a router or firewall. Netw...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Oct, 2021" }, { "code": null, "e": 357, "s": 54, "text": "Prerequisite – Network address translation (NAT) Network Address Translation (NAT) is a process in which one or more local IP address is translated into one or more Global IP...
Convert Matrix to Vector in R
06 Sep, 2021 In this article, we are going to convert the given matrix into the vector in R programming language. Simply passing the name of the matrix will do the job. Syntax: c(matrix_name) Where matrix_name is the name of the input matrix Example 1: R # create a matrix with 12 elements# with 4 rows and 3 columnsmatr...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Sep, 2021" }, { "code": null, "e": 129, "s": 28, "text": "In this article, we are going to convert the given matrix into the vector in R programming language." }, { "code": null, "e": 184, "s": 129, "text": "Simpl...
PostgreSQL – Interval Data Type
30 Sep, 2021 In PostgreSQL the interval data type is used to store and manipulate a time period. It holds 16 bytes of space and ranging from -178, 000, 000 years to 178, 000, 000 years. It also has additional attribute called “precision (denoted by p)” that can be used to set the level of precision in the query results...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2021" }, { "code": null, "e": 338, "s": 28, "text": "In PostgreSQL the interval data type is used to store and manipulate a time period. It holds 16 bytes of space and ranging from -178, 000, 000 years to 178, 000, 000 years. It...
Variable Shadowing in Python
04 Jan, 2022 In this article, we will understand the concept of variable shadowing in a Python programming language. To understand this concept, we need to be well versed with the scope of a lifetime of variables in python. When we define a function, we can create variables that are scoped only to that function and ar...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jan, 2022" }, { "code": null, "e": 240, "s": 28, "text": "In this article, we will understand the concept of variable shadowing in a Python programming language. To understand this concept, we need to be well versed with the scope of...
BufferedReader close() method in Java with Examples
05 Jun, 2020 The close() method of BufferedReader class in Java is used to close the stream and release all the system resources associated with the stream operations. Syntax: public void close() throws IOException Parameters: This method does not accept any parameter. Return value: This method does not r...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 183, "s": 28, "text": "The close() method of BufferedReader class in Java is used to close the stream and release all the system resources associated with the stream operations." }, { "code"...
How to save file with file name from user using Python?
13 Jan, 2021 Prerequisites: File Handling in Python Reading and Writing to text files in Python Saving a file with the user’s custom name can be achieved using python file handling concepts. Python provides inbuilt functions for working with files. The file can be saved with the user preferred name by creating a new fi...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2021" }, { "code": null, "e": 43, "s": 28, "text": "Prerequisites:" }, { "code": null, "e": 67, "s": 43, "text": "File Handling in Python" }, { "code": null, "e": 111, "s": 67, "text": "Re...
Convert Java Object to Json String using Jackson API
10 May, 2022 JSON stands for JavaScript Object Notation. It’s a standard text-based format that shows structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications. JSON is highly recommended to transmit data between a server and web application. In order to convert a ...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 May, 2022" }, { "code": null, "e": 460, "s": 54, "text": "JSON stands for JavaScript Object Notation. It’s a standard text-based format that shows structured data based on JavaScript object syntax. It is commonly used for transmitti...
How to Display Dynamic AlertDialog in Android using Firebase Firestore?
21 Jan, 2021 Dynamic AlertDialog is used in many different apps which are used to show different messages from dialog to the users. This type of dialog is also used for educating users with so many promotional banners. This type of alert dialog is generally dynamic and it displays images and texts which are dynamic in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jan, 2021" }, { "code": null, "e": 485, "s": 28, "text": "Dynamic AlertDialog is used in many different apps which are used to show different messages from dialog to the users. This type of dialog is also used for educating users wit...
Python | Summation of dictionary list values
28 Aug, 2019 Sometimes, while working with Python dictionaries, we can have it’s values as lists. In this can we can have a problem that we just require the count of elements in those list as a whole. This can be a problem in Data Science in which we need to get total records in observations. Let’s discuss certain ways...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2019" }, { "code": null, "e": 373, "s": 28, "text": "Sometimes, while working with Python dictionaries, we can have it’s values as lists. In this can we can have a problem that we just require the count of elements in those list...
Basic Authentication - Django REST Framework - GeeksforGeeks
14 Sep, 2021 Authentication is a mechanism that provides access control based on the credentials associated with incoming requests. Django REST Framework provides several authentication schemes. In this section, let’s look at the Basic Authentication in Django rest framework, i.e., authenticated against a user’s userna...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n14 Sep, 2021" }, { "code": null, "e": 25971, "s": 25647, "text": "Authentication is a mechanism that provides access control based on the credentials associated with incoming requests. Django REST Framework provides several authe...
YOLO Object Detection with OpenCV and Python | by Arun Ponnusamy | Towards Data Science
If you have been keeping up with the advancements in the area of object detection, you might have got used to hearing this word ‘YOLO’. It has kind of become a buzzword. YOLO (You Only Look Once) is a method / way to do object detection. It is the algorithm /strategy behind how the code is going to detect objects in th...
[ { "code": null, "e": 342, "s": 172, "text": "If you have been keeping up with the advancements in the area of object detection, you might have got used to hearing this word ‘YOLO’. It has kind of become a buzzword." }, { "code": null, "e": 501, "s": 342, "text": "YOLO (You Only L...
Flutter - Tooltip Widget - GeeksforGeeks
22 Feb, 2022 Tooltip is a built-in widget in flutter based on material design, which displays a textual description of the widget in a floating label when a user long-pressed and or hover over the widget. Tooltip widget becomes very useful when the UI of the application is too dense to display all the information at on...
[ { "code": null, "e": 24256, "s": 24228, "text": "\n22 Feb, 2022" }, { "code": null, "e": 25023, "s": 24256, "text": "Tooltip is a built-in widget in flutter based on material design, which displays a textual description of the widget in a floating label when a user long-pressed a...
Minimum rotations required to get the same string - GeeksforGeeks
21 Apr, 2022 Given a string, we need to find the minimum number of rotations required to get the same string.Examples: Input : s = "geeks" Output : 5 Input : s = "aaaa" Output : 1 The idea is based on below post.A Program to check if strings are rotations of each other or notStep 1 : Initialize result = 0 (Here re...
[ { "code": null, "e": 25158, "s": 25130, "text": "\n21 Apr, 2022" }, { "code": null, "e": 25266, "s": 25158, "text": "Given a string, we need to find the minimum number of rotations required to get the same string.Examples: " }, { "code": null, "e": 25328, "s": 25...
Minimum Bitwise AND operations to make any two array elements equal - GeeksforGeeks
07 Sep, 2021 Given an array of integers of size ‘n’ and an integer ‘k’, We can perform the Bitwise AND operation between any array element and ‘k’ any number of times. The task is to print the minimum number of such operations required to make any two elements of the array equal. If it is not possible to make any two e...
[ { "code": null, "e": 24975, "s": 24947, "text": "\n07 Sep, 2021" }, { "code": null, "e": 25374, "s": 24975, "text": "Given an array of integers of size ‘n’ and an integer ‘k’, We can perform the Bitwise AND operation between any array element and ‘k’ any number of times. The task...
Client side validation with HTML and without JavaScript
To display HTML5 client-side validation error bubbles, use the required attribute. You do not need to have javascript for client side validations like empty text box would never be submitted because HTML5 introduced a new attribute called required which would be used as follows and would insist to have a value: <!DOCTY...
[ { "code": null, "e": 1145, "s": 1062, "text": "To display HTML5 client-side validation error bubbles, use the required attribute." }, { "code": null, "e": 1375, "s": 1145, "text": "You do not need to have javascript for client side validations like empty text box would never be s...
SAP ABAP - Case Control Statement
The CASE control statement is used when you need to compare two or more fields. The syntax for CASE control statement is as follows − CASE <field>. WHEN <abc>. <statement block>. WHEN <def>. <tatement block>. WHEN <pqr>. <statement block>. ...... ...... ...... WHEN <xyz>. <statement bloc...
[ { "code": null, "e": 2978, "s": 2898, "text": "The CASE control statement is used when you need to compare two or more fields." }, { "code": null, "e": 3032, "s": 2978, "text": "The syntax for CASE control statement is as follows −" }, { "code": null, "e": 3274, "...
Python program to cyclically rotate an array by one
Given a user input array. Our task is to rotate cyclically means clockwise rotate the value. Input: A=[1,2,3,4,5] Output=[5,1,2,3,4] Step 1: input array element. Step 2: Store the last element in a variable say x. Step 3: Shift all elements one position ahead. Step 4: Replace first element of array with x. # Python p...
[ { "code": null, "e": 1155, "s": 1062, "text": "Given a user input array. Our task is to rotate cyclically means clockwise rotate the value." }, { "code": null, "e": 1196, "s": 1155, "text": "Input: A=[1,2,3,4,5]\nOutput=[5,1,2,3,4]\n" }, { "code": null, "e": 1372, ...
jQuery | focus() with Examples - GeeksforGeeks
03 Aug, 2021 The focus() is an inbuilt method in jQuery which is used to focus on an element. The element get focused by the mouse click or by the tab-navigating button.Syntax: $(selector).focus(function) Here selector is the selected element.Parameter: It accepts an optional parameter “function” which specifies the f...
[ { "code": null, "e": 25708, "s": 25680, "text": "\n03 Aug, 2021" }, { "code": null, "e": 25872, "s": 25708, "text": "The focus() is an inbuilt method in jQuery which is used to focus on an element. The element get focused by the mouse click or by the tab-navigating button.Syntax:...
OpenCV Java example to scale an image.
The resize() method of the Imgproc class resizes the specified image. This method accepts − Two Mat objects representing the source and destination images. Two Mat objects representing the source and destination images. A Size object representing the size of the output image. A Size object representing the size of the ...
[ { "code": null, "e": 1154, "s": 1062, "text": "The resize() method of the Imgproc class resizes the specified image. This method accepts −" }, { "code": null, "e": 1218, "s": 1154, "text": "Two Mat objects representing the source and destination images." }, { "code": null...
Fraction module in Python - GeeksforGeeks
19 Nov, 2020 This module provides support for rational number arithmetic. It allows to create a Fraction instance from integers, floats, numbers, decimals and strings. Fraction Instances : A Fraction instance can be constructed from a pair of integers, from another rational number, or from a string. Fraction instances ...
[ { "code": null, "e": 24576, "s": 24548, "text": "\n19 Nov, 2020" }, { "code": null, "e": 24731, "s": 24576, "text": "This module provides support for rational number arithmetic. It allows to create a Fraction instance from integers, floats, numbers, decimals and strings." }, ...
DSA using C - Recursion
Recursion refers to a technique in a programming language where a function calls itself. The function which calls itself is called a recursive method. A recursive function must posses the following two characteristics. Base Case(s) Base Case(s) Set of rules which leads to base case after reducing the cases. Set of rule...
[ { "code": null, "e": 2242, "s": 2091, "text": "Recursion refers to a technique in a programming language where a function calls itself. The function which calls itself is called a recursive method." }, { "code": null, "e": 2310, "s": 2242, "text": "A recursive function must posse...
abstract keyword in java - GeeksforGeeks
12 Apr, 2022 abstract is a non-access modifier in java applicable for classes, methods but not variables. It is used to achieve abstraction which is one of the pillar of Object Oriented Programming(OOP). Following are different contexts where abstract can be used in Java. Abstract classes The class which is having par...
[ { "code": null, "e": 28559, "s": 28531, "text": "\n12 Apr, 2022" }, { "code": null, "e": 28820, "s": 28559, "text": "abstract is a non-access modifier in java applicable for classes, methods but not variables. It is used to achieve abstraction which is one of the pillar of Object...
Meteor - Package.js
In this chapter, we will learn how to create our own meteor package. Let's add a new folder on the desktop, where the package will be created. We will use the command prompt window. C:\Users\username\Desktop\meteorApp> mkdir packages Now, we can create the package in the folder we have created above. Run the following...
[ { "code": null, "e": 2190, "s": 2121, "text": "In this chapter, we will learn how to create our own meteor package." }, { "code": null, "e": 2303, "s": 2190, "text": "Let's add a new folder on the desktop, where the package will be created. We will use the command prompt window."...
Count distinct pairs with difference k | Practice | GeeksforGeeks
Given an integer array and a non-negative integer k, count all distinct pairs with difference equal to k, i.e., A[ i ] - A[ j ] = k Example 1: Input: array = {1, 5, 4, 1, 2}, k = 0 Output: 1 Explanation: There is only one pair (1, 1) whose difference equal to 0. Example 2; Input: array = {1, 5, 3}, k = 2 Output: 2 E...
[ { "code": null, "e": 372, "s": 238, "text": "Given an integer array and a non-negative integer k, count all distinct pairs with difference equal to k, i.e., A[ i ] - A[ j ] = k\n " }, { "code": null, "e": 383, "s": 372, "text": "Example 1:" }, { "code": null, "e": 504...
Data Retention: Handling Data with Many Missing Values and Less Than 1000 Observations | by Asel Mendis | Towards Data Science
The data used in the current project contains a number of diagnostic measures of type 2 diabetes in women of the Pima Indian heritage, and whether or not the individual has type 2 diabetes. The dataset was obtained from Kaggle at (https://www.kaggle.com/uciml/pima-indians-diabetes-database). There is a total of 768 obs...
[ { "code": null, "e": 552, "s": 171, "text": "The data used in the current project contains a number of diagnostic measures of type 2 diabetes in women of the Pima Indian heritage, and whether or not the individual has type 2 diabetes. The dataset was obtained from Kaggle at (https://www.kaggle.com/u...
Sentiment Analysis using Logistic Regression and Naive Bayes | by Atharva Mashalkar | Towards Data Science
In supervised machine learning, you usually have an input X, which goes into your prediction function to get your Y^. You can then compare your prediction with the true value Y. This gives you your cost which you use to update the parameters θ. Sentiment analysis (also known as opinion mining or emotion AI) refers to t...
[ { "code": null, "e": 417, "s": 172, "text": "In supervised machine learning, you usually have an input X, which goes into your prediction function to get your Y^. You can then compare your prediction with the true value Y. This gives you your cost which you use to update the parameters θ." }, { ...
How to convert InputStream to byte array in Java?
The InputStream class in Java provides read() method. This method accepts a byte array and it reads the contents of the input stream to the given byte array. Live Demo import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; public class StreamToByteArray { public static void main...
[ { "code": null, "e": 1220, "s": 1062, "text": "The InputStream class in Java provides read() method. This method accepts a byte array and it reads the contents of the input stream to the given byte array." }, { "code": null, "e": 1231, "s": 1220, "text": " Live Demo" }, { ...
Apache Arrow: Read DataFrame With Zero Memory | Towards Data Science
Last week I saw a tweet from Wes McKinney, probably best known as the creator of the awesome pandas package: So, when I saw him quoting William Gibson, I thought there must be something amazing going on. I was not disappointed. The tweet at the start of the chain was about Hugging Face, a natural-language processing li...
[ { "code": null, "e": 281, "s": 172, "text": "Last week I saw a tweet from Wes McKinney, probably best known as the creator of the awesome pandas package:" }, { "code": null, "e": 400, "s": 281, "text": "So, when I saw him quoting William Gibson, I thought there must be something ...
How to remove underline from a link in HTML?
To remove underline from a link in HTML, use the CSS property text-decoration. Use it with the style attribute. The style attribute specifies an inline style for an element. Use the style attribute with the CSS property text-decoration to remove underline from a link in HTML. Just keep in mind, the usage of style attri...
[ { "code": null, "e": 1236, "s": 1062, "text": "To remove underline from a link in HTML, use the CSS property text-decoration. Use it with the style attribute. The style attribute specifies an inline style for an element." }, { "code": null, "e": 1501, "s": 1236, "text": "Use the ...
Bootstrap 4 - Borders
Border utility provides style, color and radius of an element's border. The element's border can be added or removed by using additive and subtractive utilities of border as shown below − <html lang = "en"> <head> <!-- Meta tags --> <meta charset = "utf-8"> <meta name = "viewport" content = "width ...
[ { "code": null, "e": 1888, "s": 1816, "text": "Border utility provides style, color and radius of an element's border." }, { "code": null, "e": 2004, "s": 1888, "text": "The element's border can be added or removed by using additive and subtractive utilities of border as shown be...
Python | Animated Banner showing 'GeeksForGeeks' - GeeksforGeeks
14 Jul, 2019 Want to be fancy and create an animated banner? This program is going to print a cool animated banner to the Python console. Initially, it is suitable just for showing ‘GeeksForGeeks’. Consider it as a challenge by adding more characters yourself. IMPORTANT NOTE:- For this to work, you have to open the fil...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n14 Jul, 2019" }, { "code": null, "e": 25803, "s": 25555, "text": "Want to be fancy and create an animated banner? This program is going to print a cool animated banner to the Python console. Initially, it is suitable just for sho...
Python SQLAlchemy - Group_by and return max date - GeeksforGeeks
22 Nov, 2021 In this article, we are going to see how to use Group_by and return max date SQLAlchemy in Python. SQLAlchemy is available via pip install package. pip install sqlalchemy However, if you are using flask you can make use of its own implementation of SQLAlchemy. It can be installed using – pip install flask-...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n22 Nov, 2021" }, { "code": null, "e": 25636, "s": 25537, "text": "In this article, we are going to see how to use Group_by and return max date SQLAlchemy in Python." }, { "code": null, "e": 25685, "s": 25636, ...
How to parse local HTML file in Python? - GeeksforGeeks
16 Mar, 2021 Prerequisites: Beautifulsoup Parsing means dividing a file or input into pieces of information/data that can be stored for our personal use in the future. Sometimes, we need data from an existing file stored on our computers, parsing technique can be used in such cases. The parsing includes multiple techni...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n16 Mar, 2021" }, { "code": null, "e": 25566, "s": 25537, "text": "Prerequisites: Beautifulsoup" }, { "code": null, "e": 26141, "s": 25566, "text": "Parsing means dividing a file or input into pieces of informa...
Columnar Transposition Cipher - GeeksforGeeks
30 Aug, 2019 Given a plain-text message and a numeric key, cipher/de-cipher the given text using Columnar Transposition Cipher The Columnar Transposition Cipher is a form of transposition cipher just like Rail Fence Cipher. Columnar Transposition involves writing the plaintext out in rows, and then reading the cipherte...
[ { "code": null, "e": 25751, "s": 25723, "text": "\n30 Aug, 2019" }, { "code": null, "e": 25865, "s": 25751, "text": "Given a plain-text message and a numeric key, cipher/de-cipher the given text using Columnar Transposition Cipher" }, { "code": null, "e": 26088, "...
Finding a Non Transitive Co-prime Triplet in a Range - GeeksforGeeks
05 May, 2021 Given L and R, find a possible non-transitive triplet (a, b, c) such that pair (a, b) is co-prime and pair (b, c) is co-prime but (a, c) is not co-prime. Eg: (2, 5, 6) is a non-transitive triplet as pair (2, 5) is co-prime and pair (5, 6) is co-prime but pair (2, 6) is not co-prime. Examples: Input : L =...
[ { "code": null, "e": 25963, "s": 25935, "text": "\n05 May, 2021" }, { "code": null, "e": 26247, "s": 25963, "text": "Given L and R, find a possible non-transitive triplet (a, b, c) such that pair (a, b) is co-prime and pair (b, c) is co-prime but (a, c) is not co-prime. Eg: (2, 5...
Python string | strip() - GeeksforGeeks
11 Aug, 2021 strip() is an inbuilt function in Python programming language that returns a copy of the string with both leading and trailing characters removed (based on the string argument passed). Syntax: string.strip([chars]) Parameter: There is only one optional parameter in it: 1)chars - a string specifying the ...
[ { "code": null, "e": 24619, "s": 24591, "text": "\n11 Aug, 2021" }, { "code": null, "e": 24813, "s": 24619, "text": "strip() is an inbuilt function in Python programming language that returns a copy of the string with both leading and trailing characters removed (based on the str...
jQuery UI Datepicker minDate Option - GeeksforGeeks
19 Mar, 2021 jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Datepicker minDate option is used to set the minimum selectable date. If we set it to null, there is no minimum date. Syntax: ...
[ { "code": null, "e": 27144, "s": 27116, "text": "\n19 Mar, 2021" }, { "code": null, "e": 27443, "s": 27144, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpag...
How to use AvatarGroup Component in ReactJS? - GeeksforGeeks
05 Mar, 2021 AvatarGroup Component is used to group multiples of Avatars together. It renders its children as a stack. Material UI for React has this component available for us, and it is very easy to integrate. We can use the AvatarGroup Component in ReactJS using the following approach. Creating React Application And...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n05 Mar, 2021" }, { "code": null, "e": 26348, "s": 26071, "text": "AvatarGroup Component is used to group multiples of Avatars together. It renders its children as a stack. Material UI for React has this component available for us...
Python | Pandas DataFrame.ix[ ] - GeeksforGeeks
28 Dec, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DataFrame.ix[ ] is both Label and Integer based slicing technique. Besides pure label ...
[ { "code": null, "e": 26142, "s": 26114, "text": "\n28 Dec, 2018" }, { "code": null, "e": 26356, "s": 26142, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages a...
Python | Ways to split strings on Uppercase characters - GeeksforGeeks
20 Aug, 2020 Given a string, write a Python program to split strings on Uppercase characters. Let’s discuss a few methods to solve the problem.Method #1: Using re.findall() method Python3 # Python code to demonstrate# to split strings# on uppercase letter import re # Initialising stringini_str = 'GeeksForGeeks' # Pri...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n20 Aug, 2020" }, { "code": null, "e": 26308, "s": 26139, "text": "Given a string, write a Python program to split strings on Uppercase characters. Let’s discuss a few methods to solve the problem.Method #1: Using re.findall() met...
Jacobsthal and Jacobsthal-Lucas numbers - GeeksforGeeks
26 May, 2021 The Jacobsthal sequence is an additive sequence similar to the Fibonacci sequence, defined by the recurrence relation Jn = Jn-1 + 2Jn-2, with initial terms J0 = 0 and J1 = 1. A number in the sequence is called a Jacobsthal number. They are a specific type of Lucas sequence Un(P, Q) for which P = 1 and Q = ...
[ { "code": null, "e": 25948, "s": 25920, "text": "\n26 May, 2021" }, { "code": null, "e": 26260, "s": 25948, "text": "The Jacobsthal sequence is an additive sequence similar to the Fibonacci sequence, defined by the recurrence relation Jn = Jn-1 + 2Jn-2, with initial terms J0 = 0 ...
p5.js | style() Function - GeeksforGeeks
21 Aug, 2019 The style() function is used to set the style property of an element with the given value. If this function contains single parameter then use .style() function to return the value of the given property. Note: This function requires the p5.dom library. So add the following line in the head section of the i...
[ { "code": null, "e": 25497, "s": 25469, "text": "\n21 Aug, 2019" }, { "code": null, "e": 25701, "s": 25497, "text": "The style() function is used to set the style property of an element with the given value. If this function contains single parameter then use .style() function to...
Python | os.set_blocking() method - GeeksforGeeks
18 Jun, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.set_blocking() method in Python is used to set the blocking mode of the specified fil...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Jun, 2019" }, { "code": null, "e": 25756, "s": 25537, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable...
How to debug PHP scripts ? - GeeksforGeeks
25 Jun, 2019 When we write huge lines of code in PHP and then some error occurs then removing that error might be a heck of the task. Some basic errors that programmer do while programming in PHP which are: Missing Semicolon “;” and closing brackets “}”.To debug the above errors, using a good PHP ide will be very helpf...
[ { "code": null, "e": 26039, "s": 26011, "text": "\n25 Jun, 2019" }, { "code": null, "e": 26233, "s": 26039, "text": "When we write huge lines of code in PHP and then some error occurs then removing that error might be a heck of the task. Some basic errors that programmer do while...
Java - ByteArrayOutputStream
The ByteArrayOutputStream class stream creates a buffer in memory and all the data sent to the stream is stored in the buffer. Following is the list of the constructors to be provided by ByteArrayOutputStream class. ByteArrayOutputStream() This constructor creates a ByteArrayOutputStream having buffer of 32 byte. ByteA...
[ { "code": null, "e": 2504, "s": 2377, "text": "The ByteArrayOutputStream class stream creates a buffer in memory and all the data sent to the stream is stored in the buffer." }, { "code": null, "e": 2593, "s": 2504, "text": "Following is the list of the constructors to be provide...
Understanding for-loop in Python - GeeksforGeeks
29 Dec, 2019 A Pythonic for-loop is very different from for-loops of other programming language. A for-loop in Python is used to loop over an iterator however in other languages, it is used to loop over a condition. In this article, we will take a deeper dive into Pythonic for-loop and witness the reason behind this di...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n29 Dec, 2019" }, { "code": null, "e": 25922, "s": 25537, "text": "A Pythonic for-loop is very different from for-loops of other programming language. A for-loop in Python is used to loop over an iterator however in other language...
Output of Java Program | Set 7 - GeeksforGeeks
28 Jun, 2021 Difficulty level : Intermediate Predict the output of following Java Programs. Program 1 : public class Calculator{ int num = 100; public void calc(int num) { this.num = num * 10; } public void printNum() { System.out.println(num); } public static void main(String[] args) { Ca...
[ { "code": null, "e": 25695, "s": 25667, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25727, "s": 25695, "text": "Difficulty level : Intermediate" }, { "code": null, "e": 25774, "s": 25727, "text": "Predict the output of following Java Programs." }, { ...
Send Message on Instagram Using Instabot module in Python - GeeksforGeeks
31 Oct, 2021 In this article, we are going to see how to send messages on Instagram using the Instabot module in Python. Instagram is a nice platform for chatting but when it comes to sending the same message to all friends this is a really boring and time-consuming task especially if you have a large number of followe...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n31 Oct, 2021" }, { "code": null, "e": 25670, "s": 25562, "text": "In this article, we are going to see how to send messages on Instagram using the Instabot module in Python." }, { "code": null, "e": 25996, "s": 25...
PHP | Check if a number is armstrong number - GeeksforGeeks
30 Apr, 2021 Given a number, we need to check whether it is an armstrong number or not in PHP. An Armstrong number is the one whose value is equal to the sum of the cubes of its digits.Examples: Input : 407 Output : Yes 407 = (4*4*4) + (0*0*0) + (7*7*7) = 64 + 0 + 343 = 407 Input : 303 Output : No Ap...
[ { "code": null, "e": 26213, "s": 26185, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26397, "s": 26213, "text": "Given a number, we need to check whether it is an armstrong number or not in PHP. An Armstrong number is the one whose value is equal to the sum of the cubes of it...
Check if binary representation of a number is palindrome - GeeksforGeeks
02 Nov, 2021 Given an integer ‘x’, write a C function that returns true if binary representation of x is palindrome else return false.For example a numbers with binary representation as 10..01 is palindrome and number with binary representation as 10..00 is not palindrome.The idea is similar to checking a string is pal...
[ { "code": null, "e": 26125, "s": 26097, "text": "\n02 Nov, 2021" }, { "code": null, "e": 26562, "s": 26125, "text": "Given an integer ‘x’, write a C function that returns true if binary representation of x is palindrome else return false.For example a numbers with binary represen...
Set containsAll() method in Java with Examples - GeeksforGeeks
31 Dec, 2018 The containsAll() method of Java Set is used to check whether two sets contain the same elements or not. It takes one set as a parameter and returns True if all of the elements of this set is present in the other set. Syntax: public boolean containsAll(Collection C) Parameters: The parameter C is a Collect...
[ { "code": null, "e": 26129, "s": 26101, "text": "\n31 Dec, 2018" }, { "code": null, "e": 26347, "s": 26129, "text": "The containsAll() method of Java Set is used to check whether two sets contain the same elements or not. It takes one set as a parameter and returns True if all of...
CURRENT_USER() Function in SQL Server - GeeksforGeeks
15 Feb, 2021 CURRENT_USER() function :This function in SQL Server is used to return the current user’s name in the database of SQL Server in use. Features : This function is used to find the current user’s name. This function comes under Advanced Functions. This function doesn’t accept any parameter. Syntax : CURRENT_U...
[ { "code": null, "e": 25549, "s": 25521, "text": "\n15 Feb, 2021" }, { "code": null, "e": 25682, "s": 25549, "text": "CURRENT_USER() function :This function in SQL Server is used to return the current user’s name in the database of SQL Server in use." }, { "code": null, ...
How to write the output to HTML file with Python BeautifulSoup? - GeeksforGeeks
08 Apr, 2021 In this article, we are going to write the output to an HTML file with Python BeautifulSoup. BeautifulSoup is a python library majorly used for web scraping but in this article, we will discuss how to write the output to an HTML file. Modules needed and installation: pip install bs4 Approach: We will firs...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n08 Apr, 2021" }, { "code": null, "e": 25773, "s": 25537, "text": "In this article, we are going to write the output to an HTML file with Python BeautifulSoup. BeautifulSoup is a python library majorly used for web scraping but i...
Explain Description Lists in HTML - GeeksforGeeks
04 Jan, 2022 A description list is a list of terms, with a description of each term. Lists in HTML are used for specifying particular information in list form. There are various types of Lists in Html such as Ordered Lists, Unordered Lists, and description Lists. Description Lists are used for: To give definitions to p...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n04 Jan, 2022" }, { "code": null, "e": 26390, "s": 26139, "text": "A description list is a list of terms, with a description of each term. Lists in HTML are used for specifying particular information in list form. There are variou...
LCA for n-ary Tree | Constant Query O(1) - GeeksforGeeks
16 Dec, 2021 We have seen various methods with different Time Complexities to calculate LCA in n-ary tree:-Method 1 : Naive Method ( by calculating root to node path) | O(n) per query Method 2 :Using Sqrt Decomposition | O(sqrt H) Method 3 : Using Sparse Matrix DP approach | O(logn) Lets study another method that has ...
[ { "code": null, "e": 25731, "s": 25703, "text": "\n16 Dec, 2021" }, { "code": null, "e": 26003, "s": 25731, "text": "We have seen various methods with different Time Complexities to calculate LCA in n-ary tree:-Method 1 : Naive Method ( by calculating root to node path) | O(n) pe...
Find smallest positive number Y such that Bitwise AND of X and Y is Zero - GeeksforGeeks
09 Aug, 2021 Given an integer X. The task is to find the smallest positive number Y(> 0) such that X AND Y is zero.Examples: Input : X = 3 Output : 4 4 is the smallest positive number whose bitwise AND with 3 is zero Input : X = 10 Output : 1 Approach : There are 2 cases : If the binary representation of X contai...
[ { "code": null, "e": 26225, "s": 26197, "text": "\n09 Aug, 2021" }, { "code": null, "e": 26339, "s": 26225, "text": "Given an integer X. The task is to find the smallest positive number Y(> 0) such that X AND Y is zero.Examples: " }, { "code": null, "e": 26459, "...
Compact Strings in Java 9 with Examples - GeeksforGeeks
07 Feb, 2020 Prerequisites: String Compact String is one of the performance enhancements introduced in the JVM as part of JDK 9. Till JDK 8, whenever we create one String object then internally it is represented as char[], which consist the characters of the String object. What is the need of Compact String? Till JDK 8...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n07 Feb, 2020" }, { "code": null, "e": 25247, "s": 25225, "text": "Prerequisites: String" }, { "code": null, "e": 25486, "s": 25247, "text": "Compact String is one of the performance enhancements introduced in ...
JavaScript | Focus() - GeeksforGeeks
01 Apr, 2022 JavaScript focus method is used to give focus to a html element. It sets the element as the active element in the current document. It can be applied to one html element at a single time in a current document. The element can either be a button or a text field or a window etc. It is supported by all the br...
[ { "code": null, "e": 27281, "s": 27253, "text": "\n01 Apr, 2022" }, { "code": null, "e": 27603, "s": 27281, "text": "JavaScript focus method is used to give focus to a html element. It sets the element as the active element in the current document. It can be applied to one html e...
Inception V2 and V3 - Inception Network Versions - GeeksforGeeks
02 Aug, 2021 Inception V1 (or GoogLeNet) was the state-of-the-art architecture at ILSRVRC 2014. It has produced the record lowest error at ImageNet classification dataset but there are some points on which improvement can be made to improve the accuracy and decrease the complexity of the model. Problems of Inception V1...
[ { "code": null, "e": 26005, "s": 25977, "text": "\n02 Aug, 2021" }, { "code": null, "e": 27954, "s": 26005, "text": "Inception V1 (or GoogLeNet) was the state-of-the-art architecture at ILSRVRC 2014. It has produced the record lowest error at ImageNet classification dataset but t...
Check if the given string is K-periodic - GeeksforGeeks
02 Aug, 2021 Given a string str and an integer K, the task is to check whether the given string is K-periodic. A string is k-periodic if the string is a repetition of the sub-string str[0 ... k-1] i.e. the string “ababab” is 2-periodic. Print Yes if the given string is k-periodic, else print No. Examples: Input: str ...
[ { "code": null, "e": 26451, "s": 26423, "text": "\n02 Aug, 2021" }, { "code": null, "e": 26735, "s": 26451, "text": "Given a string str and an integer K, the task is to check whether the given string is K-periodic. A string is k-periodic if the string is a repetition of the sub-s...
Python | Append at front and remove from rear - GeeksforGeeks
31 Dec, 2020 Being familiar with the concept of queue, which follows FIFO rule, i.e first in first out, that suggests a front removal and rear insertion. This has been discussed many times. But sometimes we need to perform the exact opposite of this and we need to perform the append at front and remove element from the...
[ { "code": null, "e": 25761, "s": 25733, "text": "\n31 Dec, 2020" }, { "code": null, "e": 26129, "s": 25761, "text": "Being familiar with the concept of queue, which follows FIFO rule, i.e first in first out, that suggests a front removal and rear insertion. This has been discusse...
Python - First K consecutive digits in String - GeeksforGeeks
01 Aug, 2020 Given a String and number K, extract first K consecutive digits making number. Input : test_str = “geeks5geeks43best”, K = 2Output : 43Explanation : 43 is first 2 consecutive digits. Input : test_str = “geeks5gee2ks439best”, K = 3Output : 439Explanation : 439 is first 3 consecutive digits. Method #1 : Usin...
[ { "code": null, "e": 26081, "s": 26053, "text": "\n01 Aug, 2020" }, { "code": null, "e": 26160, "s": 26081, "text": "Given a String and number K, extract first K consecutive digits making number." }, { "code": null, "e": 26264, "s": 26160, "text": "Input : tes...
Check if a large number is divisibility by 15 - GeeksforGeeks
14 Apr, 2021 Given a very large number. Check its divisibility by 15.Examples: Input: 31 Output: No Input : num = "156457463274623847239840239 402394085458848462385346236 482374823647643742374523747 264723762374620" Output: Yes Given number is divisible by 15 A number i...
[ { "code": null, "e": 25961, "s": 25933, "text": "\n14 Apr, 2021" }, { "code": null, "e": 26029, "s": 25961, "text": "Given a very large number. Check its divisibility by 15.Examples: " }, { "code": null, "e": 26256, "s": 26029, "text": "Input: 31\nOutput: No\...
Tcl-Tk - Quick Guide
Tcl is shortened form of Tool Command Language. John Ousterhout of the University of California, Berkeley, designed it. It is a combination of a scripting language and its own interpreter that gets embedded to the application, we develop with it. Tcl was developed initially for Unix. It was then ported to Windows, DOS,...
[ { "code": null, "e": 2448, "s": 2201, "text": "Tcl is shortened form of Tool Command Language. John Ousterhout of the University of California, Berkeley, designed it. It is a combination of a scripting language and its own interpreter that gets embedded to the application, we develop with it." }, ...
How to align text to the left in Tkinter Label?
Tkinter Label widget can be aligned using the anchor attributes. In order to calculate the accommodate spacing and alignment of the widget, anchor would help in a better way. Anchor provides several options such as N, W, S, E, NW, NE. SW, SE which can be defined in the pack manager itself. In the following example, we ...
[ { "code": null, "e": 1353, "s": 1062, "text": "Tkinter Label widget can be aligned using the anchor attributes. In order to calculate the accommodate spacing and alignment of the widget, anchor would help in a better way. Anchor provides several options such as N, W, S, E, NW, NE. SW, SE which can b...
Program to count number of islands in a given matrix in Python
Suppose we have a binary matrix, we have to find number of islands in the matrix. Here 1 is for land and 0 is for water, so an island is a group of 1s that are neighboring and whose perimeter is surrounded by water. Here we are considering neighbors can only be horizontal or vertical, not diagonal. So, if the input is ...
[ { "code": null, "e": 1362, "s": 1062, "text": "Suppose we have a binary matrix, we have to find number of islands in the matrix. Here 1 is for land and 0 is for water, so an island is a group of 1s that are neighboring and whose perimeter is surrounded by water. Here we are considering neighbors can...
Boyer Moore Algorithm
It is another approach of Boyer Moore Algorithm. Sometimes it is called the Good Suffix Heuristic method. For this case, a preprocessing table is created as suffix table. In this procedure, the substring or pattern is searched from the last character of the pattern. When a substring of main string matches with a substr...
[ { "code": null, "e": 1599, "s": 1062, "text": "It is another approach of Boyer Moore Algorithm. Sometimes it is called the Good Suffix Heuristic method. For this case, a preprocessing table is created as suffix table. In this procedure, the substring or pattern is searched from the last character of...
Full-text search with Node.js and ElasticSearch on Docker | by Michele Riva | Towards Data Science
Full-text search can be both scary and exciting. Some popular databases such as MySql and Postgres are an amazing solution for storing data... but when it comes to full-text search performances, there’s no competition with ElasticSearch. For those who don’t know, ElasticSearch is a search engine server built on top of ...
[ { "code": null, "e": 410, "s": 172, "text": "Full-text search can be both scary and exciting. Some popular databases such as MySql and Postgres are an amazing solution for storing data... but when it comes to full-text search performances, there’s no competition with ElasticSearch." }, { "co...
Matching Pair | Practice | GeeksforGeeks
Given a set of numbers from 1 to N, each number is exactly present twice so there are N pairs. In the worst-case scenario, how many numbers X should be picked and removed from the set until we find a matching pair? Example 1: Input: N = 1 Output: 2 Explanation: When N=1 Then there is one pair and a matching pair can ...
[ { "code": null, "e": 453, "s": 238, "text": "Given a set of numbers from 1 to N, each number is exactly present twice so there are N pairs. In the worst-case scenario, how many numbers X should be picked and removed from the set until we find a matching pair?" }, { "code": null, "e": 464...
Monte Carlo Methods and Simulations explained in real-life: modeling insomnia | by Carolina Bento | Towards Data Science
Monte Carlo Methods is a group of algorithms that simulate the behavior of a complex system, or probabilistic phenomena, using inferential statistics. They simulate physical processes that are typically time-consuming, or too expensive to setup and run for a large number times. Since it is a tool to model probabilistic...
[ { "code": null, "e": 326, "s": 47, "text": "Monte Carlo Methods is a group of algorithms that simulate the behavior of a complex system, or probabilistic phenomena, using inferential statistics. They simulate physical processes that are typically time-consuming, or too expensive to setup and run for...
How to filter some fields in objects and fetch a specific subject name value in MongoDB?
To filter and fetch, use projection along with MongoDB $filter and $match. Let us create a collection with documents − > db.demo507.insertOne( ... { ... ... "Information": ... [ ... {"Name":"John","SubjectName":"MySQL"}, ... {"Name":"Bob","SubjectName":"MongoDB"}, ... {"Name":"Chris","SubjectNam...
[ { "code": null, "e": 1181, "s": 1062, "text": "To filter and fetch, use projection along with MongoDB $filter and $match. Let us create a collection with documents −" }, { "code": null, "e": 1549, "s": 1181, "text": "> db.demo507.insertOne(\n... {\n...\n... \"Information\":\n....
CSS Interview Questions
Dear readers, these CSS Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of CSS Language. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions...
[ { "code": null, "e": 3065, "s": 2626, "text": "Dear readers, these CSS Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of CSS Language. As per my experience good interviewers hardly plan to as...
Generating Test Cases (generate() and generate_n() in C++
In this section we will see how we can use C++ STL function to generate test cases. Sometimes generating test cases for array programs can be very complicated and inefficient process. C++ provides two methods to generate test cases. These methods are as follows − The C++ function std::algorithm::generate() assigns the ...
[ { "code": null, "e": 1326, "s": 1062, "text": "In this section we will see how we can use C++ STL function to generate test cases. Sometimes generating test cases for array programs can be very complicated and inefficient process. C++ provides two methods to generate test cases. These methods are as...
Hide Your Secret Keys Using Environment Variables | by AnBento | Towards Data Science
A course I would strongly recommend to my readers: Command Line Automation In Python (DataCamp) → Learn to automate many common file system tasks and be able to manage and communicate with processes. Suppose you were working on a data science project and you decided to pull data from the company database by establishin...
[ { "code": null, "e": 222, "s": 171, "text": "A course I would strongly recommend to my readers:" }, { "code": null, "e": 371, "s": 222, "text": "Command Line Automation In Python (DataCamp) → Learn to automate many common file system tasks and be able to manage and communicate wi...
Cassandra - Create Keyspace
A keyspace in Cassandra is a namespace that defines data replication on nodes. A cluster contains one keyspace per node. Given below is the syntax for creating a keyspace using the statement CREATE KEYSPACE. CREATE KEYSPACE <identifier> WITH <properties> i.e. CREATE KEYSPACE “KeySpace Name” WITH replication = {'class'...
[ { "code": null, "e": 2495, "s": 2287, "text": "A keyspace in Cassandra is a namespace that defines data replication on nodes. A cluster contains one keyspace per node. Given below is the syntax for creating a keyspace using the statement CREATE KEYSPACE." }, { "code": null, "e": 2543, ...
TypeScript - String split()
This method splits a String object into an array of strings by separating the string into substrings. string.split([separator][, limit]); separator − Specifies the character to use for separating the string. If separator is omitted, the array returned contains one element consisting of the entire string. separator − S...
[ { "code": null, "e": 2150, "s": 2048, "text": "This method splits a String object into an array of strings by separating the string into substrings." }, { "code": null, "e": 2187, "s": 2150, "text": "string.split([separator][, limit]);\n" }, { "code": null, "e": 2355,...
Importance of the accumulate() method of JSONObject in Java?
A JSONObject is an unordered collection of a name and value pairs. A few important methods of JSONArray are accumulate(), put(), opt(), append(), write() and etc. The accumulate() method accumulates the values under a key and this method similar to the put() method except if there is an existing object stored under a k...
[ { "code": null, "e": 1532, "s": 1062, "text": "A JSONObject is an unordered collection of a name and value pairs. A few important methods of JSONArray are accumulate(), put(), opt(), append(), write() and etc. The accumulate() method accumulates the values under a key and this method similar to the ...
3 Basic Steps of Stock Market Analysis in Python | by Roman Orac | Towards Data Science
Analyze Tesla stock in Python, calculate Trading Indicators and plot the OHLC chart. Includes a Jupyter Notebook with code examples. I recently started reading Stan Weinstein's Secrets For Profiting in Bull and Bear Markets. In his book, Stan reveals his successful methods for timing investments to produce consistently...
[ { "code": null, "e": 180, "s": 47, "text": "Analyze Tesla stock in Python, calculate Trading Indicators and plot the OHLC chart. Includes a Jupyter Notebook with code examples." }, { "code": null, "e": 388, "s": 180, "text": "I recently started reading Stan Weinstein's Secrets Fo...
Apache IVY - Cachepath Task
cachepath task is used to create an ANT classpath with resolved artifacts present in the cache. As ANT needs jars to be classpath to compile java files, Ivy cachepath builds the classpath. Let's create Tester.java, build.xml and ivy.xml as described in IVY - Resolve Task chapter. Update the build.xml to use the ivy ret...
[ { "code": null, "e": 2193, "s": 2004, "text": "cachepath task is used to create an ANT classpath with resolved artifacts present in the cache. As ANT needs jars to be classpath to compile java files, Ivy cachepath builds the classpath." }, { "code": null, "e": 2285, "s": 2193, "t...
How to make a Tkinter canvas rectangle transparent?
The canvas widget is one of the most versatile widgets in Tkinter Library. Generally, it is used to draw shapes, animate objects, and create complex graphics in any application. To create shapes like Rectangle, we use the create_rectangle(x,y, x+ width, y+ height, **options) method. We can configure the item on the can...
[ { "code": null, "e": 1462, "s": 1062, "text": "The canvas widget is one of the most versatile widgets in Tkinter Library. Generally, it is used to draw shapes, animate objects, and create complex graphics in any application. To create shapes like Rectangle, we use the create_rectangle(x,y, x+ width,...
10 Python Pandas tips to make data analysis faster | by Shiu-Tang Li | Towards Data Science
Have you ever complained about the table output looks boring when you do .head() in Jupyter notebooks? Is there a way not to display indexes (especially when there is already an ID column)? There’re ways to fix these issues. A. Highlight all negative values in a dataframe. (example revised from https://pandas.pydata.or...
[ { "code": null, "e": 397, "s": 172, "text": "Have you ever complained about the table output looks boring when you do .head() in Jupyter notebooks? Is there a way not to display indexes (especially when there is already an ID column)? There’re ways to fix these issues." }, { "code": null, ...
C++ program to Solve Tower of Hanoi Problem using Binary Value
This C++ program displays the solution to the Tower of Hanoi problem using binary value. There is one binary digit for each disk. The most significant bit represents the largest disk. A value of 0 indicates that the largest disk is on the initial peg, while a 1 indicates that it’s on the final peg. The bitstring is rea...
[ { "code": null, "e": 1151, "s": 1062, "text": "This C++ program displays the solution to the Tower of Hanoi problem using binary value." }, { "code": null, "e": 1192, "s": 1151, "text": "There is one binary digit for each disk." }, { "code": null, "e": 1362, "s": ...
Rod Cutting
A rod is given of length n. Another table is also provided, which contains different size and price for each size. Determine the maximum price by cutting the rod and selling them in the market. To get the best price by making a cut at different positions and comparing the prices after cutting the rod. Let the f(n) will...
[ { "code": null, "e": 1256, "s": 1062, "text": "A rod is given of length n. Another table is also provided, which contains different size and price for each size. Determine the maximum price by cutting the rod and selling them in the market." }, { "code": null, "e": 1365, "s": 1256, ...
Visualizing Decision Trees with Python (Scikit-learn, Graphviz, Matplotlib) | by Michael Galarnyk | Towards Data Science
Decision trees are a popular supervised learning method for a variety of reasons. Benefits of decision trees include that they can be used for both regression and classification, they don’t require feature scaling, and they are relatively easy to interpret as you can visualize decision trees. This is not only a powerfu...
[ { "code": null, "e": 654, "s": 171, "text": "Decision trees are a popular supervised learning method for a variety of reasons. Benefits of decision trees include that they can be used for both regression and classification, they don’t require feature scaling, and they are relatively easy to interpre...
Differences between Interface and class in Java
A class is a blueprint from which individual objects are created. A class can contain any of the following variable types. Local variables − Variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and the variable will be destr...
[ { "code": null, "e": 1185, "s": 1062, "text": "A class is a blueprint from which individual objects are created. A class can contain any of the following variable types." }, { "code": null, "e": 1418, "s": 1185, "text": "Local variables − Variables defined inside methods, constru...
Tryit Editor v3.7
CSS Grid Container Tryit: Using justify-content: end
[ { "code": null, "e": 28, "s": 9, "text": "CSS Grid Container" } ]
How to display a pdf document into an Android Webview?
This example demonstrate about How to lock the Android device programmatically. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml <? xml version= "1.0" encoding= "utf-8" ?> <Rel...
[ { "code": null, "e": 1142, "s": 1062, "text": "This example demonstrate about How to lock the Android device programmatically." }, { "code": null, "e": 1271, "s": 1142, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detail...
TensorFlow Performance Analysis. How to Get the Most Value from Your... | by Chaim Rand | Towards Data Science
In previous posts (here and here), I told you about how our team uses the Amazon SageMaker and Amazon s3 services to train our deep neural networks on large quantities of data. In this blog, I would like to discuss how to profile the performance of a DNN training session running in TensorFlow. When speaking of the “per...
[ { "code": null, "e": 349, "s": 172, "text": "In previous posts (here and here), I told you about how our team uses the Amazon SageMaker and Amazon s3 services to train our deep neural networks on large quantities of data." }, { "code": null, "e": 1157, "s": 349, "text": "In this ...
Python program to Remove and print every third from list until it becomes empty?
First we create a list, the index of the starting address is 0 and the position of the first third element is 2 and need to traverse till the list becomes empty and another important work to do every time we have to find the index of the next third element and print the value and after that reduce the length of the lis...
[ { "code": null, "e": 1385, "s": 1062, "text": "First we create a list, the index of the starting address is 0 and the position of the first third element is 2 and need to traverse till the list becomes empty and another important work to do every time we have to find the index of the next third elem...
Speech to Text using AWS Transcribe, S3 and Lambda | by Janitha Tennakoon | Towards Data Science
Speech to text is the process of converting audio to text. For computer software and programs, audio files are near impossible to be used for visualization/analysis or to harvest data out of it in a meaningful way. Therefore there is the need of converting these audio files to text before they can be used for analysis ...
[ { "code": null, "e": 667, "s": 172, "text": "Speech to text is the process of converting audio to text. For computer software and programs, audio files are near impossible to be used for visualization/analysis or to harvest data out of it in a meaningful way. Therefore there is the need of convertin...
Run Python Code on Websites: Exploring Brython | by Kaustubh Gupta | Towards Data Science
Being a follower of Python for a long time, I never stop exploring this language to one level and kept searching for its implementation every day. One fine day I got to know about Brython, which aims to replace Javascript for web scripting. It allows you to directly use Python Scripts on a webpage to handle DOM (Docume...
[ { "code": null, "e": 711, "s": 172, "text": "Being a follower of Python for a long time, I never stop exploring this language to one level and kept searching for its implementation every day. One fine day I got to know about Brython, which aims to replace Javascript for web scripting. It allows you ...
Java - compareTo() Method
The method compares the Number object that invoked the method to the argument. It is possible to compare Byte, Long, Integer, etc. However, two different types cannot be compared, both the argument and the Number object invoking the method should be of the same type. public int compareTo( NumberSubClass referenceName )...
[ { "code": null, "e": 2508, "s": 2377, "text": "The method compares the Number object that invoked the method to the argument. It is possible to compare Byte, Long, Integer, etc." }, { "code": null, "e": 2645, "s": 2508, "text": "However, two different types cannot be compared, bo...
What is the syntax to define enums in javascript?
Enums are not supported in JavaScript natively. We can however create Enums using Object.freeze by creating objects containing all the enumerable properties and then freezing the object so that no new enum can be added to it. const Color = { RED: 1, BLUE: 2, GREEN: 3, YELLOW: 4 }; Object.freeze(Color); // E...
[ { "code": null, "e": 1288, "s": 1062, "text": "Enums are not supported in JavaScript natively. We can however create Enums using Object.freeze by creating objects containing all the enumerable properties and then freezing the object so that no new enum can be added to it." }, { "code": null,...
Priority Queue | Set 1 (Introduction) - GeeksforGeeks
25 Jan, 2022 Priority Queue is an abstract data type, which is similar to a queue, however, in the priority queue, every element has some priority. The priority of the elements in a priority queue determines the order in which elements are removed from the priority queue. Therefore all the elements are either arranged ...
[ { "code": null, "e": 39113, "s": 39085, "text": "\n25 Jan, 2022" }, { "code": null, "e": 39457, "s": 39113, "text": "Priority Queue is an abstract data type, which is similar to a queue, however, in the priority queue, every element has some priority. The priority of the elements...
Accessing elements of a Pandas Series
Pandas series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The elements of a pandas series can be accessed using various methods. Let's first create a pandas series and then access it's elements. A panadas series is created by supplying data in v...
[ { "code": null, "e": 1266, "s": 1062, "text": "Pandas series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The elements of a pandas series can be accessed using various methods." }, { "code": null, "e": 1332, "s...
How to Setup Virtual Hosts with Apache Web Server on Linux
In this article, you will learn about how to set up Apache virtual hosts on an Ubuntu Linux. During this process, you will learn how to serve different sites to different users depending on the domain/site they are requesting. The Apache web server is the most popular and powerful way of serving web sites on the intern...
[ { "code": null, "e": 1289, "s": 1062, "text": "In this article, you will learn about how to set up Apache virtual hosts on an Ubuntu Linux. During this process, you will learn how to serve different sites to different users depending on the domain/site they are requesting." }, { "code": null...
Android Coding Style and Guidelines - GeeksforGeeks
25 Aug, 2021 While you writing code, there are some rules you need to follow to keep code easy to read and clean. If you are not new to coding, you probably already know about coding standards. Coding standards vary from person to person and can be different for different projects. Before starting adding or updating co...
[ { "code": null, "e": 26491, "s": 26463, "text": "\n25 Aug, 2021" }, { "code": null, "e": 27052, "s": 26491, "text": "While you writing code, there are some rules you need to follow to keep code easy to read and clean. If you are not new to coding, you probably already know about ...
Filter Pandas Dataframe with multiple conditions - GeeksforGeeks
16 Mar, 2021 In this article, let’s discuss how to filter pandas dataframe with multiple conditions. There are possibilities of filtering data from Pandas dataframe with multiple conditions during the entire software development. The reason is dataframe may be having multiple columns and multiple rows. Selective displa...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n16 Mar, 2021" }, { "code": null, "e": 24827, "s": 24292, "text": "In this article, let’s discuss how to filter pandas dataframe with multiple conditions. There are possibilities of filtering data from Pandas dataframe with multip...
Tryit Editor v3.7
Tryit: HTML border color
[]
Convert a given Binary Tree to Doubly Linked List (Set 1) in C++
In this tutorial, we will be discussing a program to convert a binary tree to a doubly linked list. For this we will be provided with a binary tree. Our task is to convert it into a doubly linked list such that the left and right pointers become the previous and next pointers. Also the sequential order of the doubly li...
[ { "code": null, "e": 1162, "s": 1062, "text": "In this tutorial, we will be discussing a program to convert a binary tree to a doubly linked list." }, { "code": null, "e": 1451, "s": 1162, "text": "For this we will be provided with a binary tree. Our task is to convert it into a ...