title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Binary Logistic Regression. An overview and implementation in R | by Akanksha Rawat | Towards Data Science
Have you ever come across a situation where you want to predict a binary outcome like: Whether a person is satisfied with a product or not? Whether a candidate will secure admission to a graduate school or not? Of the two presidential candidates who will win the election? If a plane will arrive at its destination at th...
[ { "code": null, "e": 259, "s": 172, "text": "Have you ever come across a situation where you want to predict a binary outcome like:" }, { "code": null, "e": 312, "s": 259, "text": "Whether a person is satisfied with a product or not?" }, { "code": null, "e": 383, ...
Powerful R Markdown for Python Users | by Rahul Bhadani | Towards Data Science
R Markdown is a powerful tool that lets you generate rich PDF using TeX engine. In R Markdown you can integrate prose and your analysis along with code, its outputs, and graphics. However, the use of R Markdown is not limited to the R language itself but a variety of other languages can be integrated. When it comes to ...
[ { "code": null, "e": 475, "s": 172, "text": "R Markdown is a powerful tool that lets you generate rich PDF using TeX engine. In R Markdown you can integrate prose and your analysis along with code, its outputs, and graphics. However, the use of R Markdown is not limited to the R language itself but ...
Implementing the General Tree and Depth-First-Search (DFS) in python! (from scratch) | by Jake | Towards Data Science
Recently, I published a story with Towards Data Science about implementing the Linked List from scratch. Reading that previous story isn’t necessary to absorb the core concepts here, but code used previously will be referenced; as such, I’ll linking GitHub Gists to both the Linked List and General Tree implementations....
[ { "code": null, "e": 493, "s": 172, "text": "Recently, I published a story with Towards Data Science about implementing the Linked List from scratch. Reading that previous story isn’t necessary to absorb the core concepts here, but code used previously will be referenced; as such, I’ll linking GitHu...
Finding the Start Index of the Specified Range in C# - GeeksforGeeks
28 Jun, 2021 The Range Structure is introduced in C# 8.0. It represents a range that has start and end indexes. You are allowed to find the start index of the given range with the help of the Start Property provided by the Range struct.Syntax: public property Index Start { Index get(); }; Here, Index represents the i...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24535, "s": 24302, "text": "The Range Structure is introduced in C# 8.0. It represents a range that has start and end indexes. You are allowed to find the start index of the given range with ...
Python - Make pair from two list such that elements are not same in pairs
In this article, we are going to learn how to make pairs from two lists such that no similar elements make a pair. Follow the below steps to solve the problem. Initialize the lists with elements. Iterate over the lists and append the pair into a list if the corresponding elements from the lists are not same. Print the ...
[ { "code": null, "e": 1222, "s": 1062, "text": "In this article, we are going to learn how to make pairs from two lists such that no similar elements make a pair. Follow the below steps to solve the problem." }, { "code": null, "e": 1258, "s": 1222, "text": "Initialize the lists w...
Java 8 walk How to Read all files in a folder - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws In this tutorial, I am going to show you how ...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
How to set the padding of CheckBox in C#? - GeeksforGeeks
30 Sep, 2021 The CheckBox control is the part of windows form that is used to take input from the user. Or in other words, CheckBox control allows us to select single or multiple elements from the given list. In CheckBox, you are allowed to set the space between the content and the CheckBox boundaries using the Padding...
[ { "code": null, "e": 24070, "s": 24042, "text": "\n30 Sep, 2021" }, { "code": null, "e": 24470, "s": 24070, "text": "The CheckBox control is the part of windows form that is used to take input from the user. Or in other words, CheckBox control allows us to select single or multip...
Tutorial: Building your Own Big Data Infrastructure for Data Science | by Ashton Sidhu | Towards Data Science
Working on your own data science projects are a great opportunity to learn some new skills and hone existing skills, but what if you want to use technologies that you would use in industry such as Hadoop, Spark on a distributed cluster, Hive, etc. and have them all integrated? This is where the value comes from when bu...
[ { "code": null, "e": 524, "s": 172, "text": "Working on your own data science projects are a great opportunity to learn some new skills and hone existing skills, but what if you want to use technologies that you would use in industry such as Hadoop, Spark on a distributed cluster, Hive, etc. and hav...
Android - PHP/MYSQL
In this chapter , we are going to explain, how you can integrate PHP and MYSQL with your android application. This is very useful in case you have a webserver, and you want to access its data on your android application. MYSQL is used as a database at the webserver and PHP is used to fetch data from the database. Our a...
[ { "code": null, "e": 3828, "s": 3607, "text": "In this chapter , we are going to explain, how you can integrate PHP and MYSQL with your android application. This is very useful in case you have a webserver, and you want to access its data on your android application." }, { "code": null, ...
How to implement the listeners using lambda expressions in Java?
When we are using a lambda expression for java listener, we do not have to explicitly implement the ActionListener interface. Instead, we can use the below syntax. button.addActionListener(e -> { // some statements }); An ActionListener interface defines only one method actionPerformed(). It is a functional interface w...
[ { "code": null, "e": 1226, "s": 1062, "text": "When we are using a lambda expression for java listener, we do not have to explicitly implement the ActionListener interface. Instead, we can use the below syntax." }, { "code": null, "e": 1281, "s": 1226, "text": "button.addActionLi...
Difference Between Algorithm and Pseudocode
In this post, we will understand the differences between algorithm and pseudocode − It is defined as a sequence of well-defined steps. These steps provide a solution/ a way to solve a problem in hand. It is a systematic, and a logical approach, where the procedure is defined step-wise. It gives the solution to a specif...
[ { "code": null, "e": 1146, "s": 1062, "text": "In this post, we will understand the differences between algorithm and pseudocode −" }, { "code": null, "e": 1197, "s": 1146, "text": "It is defined as a sequence of well-defined steps." }, { "code": null, "e": 1263, ...
Java Program to convert java.util.Date to ZonedDateTime
Create a Date object − Date date = new Date(); Now, set the ZonedId to default − final ZoneId id = ZoneId.systemDefault(); Convert java.util.date to ZonedDateTime − System.out.println(ZonedDateTime.ofInstant(date.toInstant(), id)); Live Demo import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Dat...
[ { "code": null, "e": 1085, "s": 1062, "text": "Create a Date object −" }, { "code": null, "e": 1109, "s": 1085, "text": "Date date = new Date();" }, { "code": null, "e": 1143, "s": 1109, "text": "Now, set the ZonedId to default −" }, { "code": null, ...
OYO Rooms Interview Experience for SDE-I | On-Campus 2020 - GeeksforGeeks
15 Feb, 2021 OYO visited our campus in the month of November for the SDE-I profile. A total of 1651 students applied. Round 1 (Online Test): The online test was on the HackerEarth platform which consisted of 10 MCQs based on OS, DBMS, and Data Structures followed by 2 programming questions. Smart points collection – ht...
[ { "code": null, "e": 24901, "s": 24873, "text": "\n15 Feb, 2021" }, { "code": null, "e": 25006, "s": 24901, "text": "OYO visited our campus in the month of November for the SDE-I profile. A total of 1651 students applied." }, { "code": null, "e": 25180, "s": 25006...
LISP - Strings
Strings in Common Lisp are vectors, i.e., one-dimensional array of characters. String literals are enclosed in double quotes. Any character supported by the character set can be enclosed within double quotes to make a string, except the double quote character (") and the escape character (\). However, you can include t...
[ { "code": null, "e": 2139, "s": 2060, "text": "Strings in Common Lisp are vectors, i.e., one-dimensional array of characters." }, { "code": null, "e": 2424, "s": 2139, "text": "String literals are enclosed in double quotes. Any character supported by the character set can be encl...
Explain the inference rules for functional dependencies in DBMS
Functional dependencies are the constraints that are derived from the meaning and interrelationship of the data. Let F is a set of all functional dependencies. The set of all dependencies that include F as well as all dependencies that can be inferred from F is called CLOSURE of F denoted by F+. Given below is an examp...
[ { "code": null, "e": 1359, "s": 1062, "text": "Functional dependencies are the constraints that are derived from the meaning and interrelationship of the data. Let F is a set of all functional dependencies. The set of all dependencies that include F as well as all dependencies that can be inferred f...
ruby - Unix, Linux Command
If you want a language for easy object-oriented programming, or you don’t like the Perl ugliness, or you do like the concept of LISP, but don’t like too much parentheses, Ruby may be the language of your choice. #! /usr/local/bin/ruby # This line makes the next one a c...
[ { "code": null, "e": 10791, "s": 10577, "text": "\nIf you want a language for easy object-oriented programming, or you\ndon’t like the Perl ugliness, or you do like the concept of LISP, but\ndon’t like too much parentheses, Ruby may be the language of your\nchoice.\n" }, { "code": null, ...
Solidity - Structs
Struct types are used to represent a record. Suppose you want to keep track of your books in a library. You might want to track the following attributes about each book − Title Author Subject Book ID To define a Struct, you must use the struct keyword. The struct keyword defines a new data type, with more than one memb...
[ { "code": null, "e": 2726, "s": 2555, "text": "Struct types are used to represent a record. Suppose you want to keep track of your books in a library. You might want to track the following attributes about each book −" }, { "code": null, "e": 2732, "s": 2726, "text": "Title" },...
How to change the position of the element dynamically in ReactJS ? - GeeksforGeeks
22 Apr, 2021 In this article we will learn to change the position of an element dynamically using ReactJS Approach: We are going to use following steps: Assume the position of our element is 0 on x-coordinate and 0 on y-coordinate. Then we will add/subtract some value from x/y coordinate depending on the direction we a...
[ { "code": null, "e": 24397, "s": 24369, "text": "\n22 Apr, 2021" }, { "code": null, "e": 24490, "s": 24397, "text": "In this article we will learn to change the position of an element dynamically using ReactJS" }, { "code": null, "e": 24537, "s": 24490, "text"...
Addressing modes in 8086 microprocessor - GeeksforGeeks
23 Feb, 2022 Prerequisite – Addressing modes, Addressing modes in 8085 microprocessorThe way of specifying data to be operated by an instruction is known as addressing modes. This specifies that the given data is an immediate data or an address. It also specifies whether the given operand is register or register pair. ...
[ { "code": null, "e": 24586, "s": 24558, "text": "\n23 Feb, 2022" }, { "code": null, "e": 24893, "s": 24586, "text": "Prerequisite – Addressing modes, Addressing modes in 8085 microprocessorThe way of specifying data to be operated by an instruction is known as addressing modes. T...
Examples of Using Apache Spark with PySpark Using Python | by James Montantes | Towards Data Science
Apache Spark is one of the hottest new trends in the technology domain. It is the framework with probably the highest potential to realize the fruit of the marriage between Big Data and Machine Learning. It runs fast (up to 100x faster than traditional Hadoop MapReduce due to in-memory operation, offers robust, distrib...
[ { "code": null, "e": 375, "s": 171, "text": "Apache Spark is one of the hottest new trends in the technology domain. It is the framework with probably the highest potential to realize the fruit of the marriage between Big Data and Machine Learning." }, { "code": null, "e": 671, "s": ...
Remove All Special Characters from String in R - GeeksforGeeks
23 Aug, 2021 In this article, we are going to remove all special characters from strings in R Programming language. For this, we will use the str_replace_all() method to remove non-alphanumeric and punctuations which is available in stringr package. To install this library type the below command in the terminal. insta...
[ { "code": null, "e": 24523, "s": 24495, "text": "\n23 Aug, 2021" }, { "code": null, "e": 24627, "s": 24523, "text": "In this article, we are going to remove all special characters from strings in R Programming language. " }, { "code": null, "e": 24761, "s": 24627,...
Decision Tree Fundamentals. Learning about Gini Impurity, Entropy... | by Huy Bui | Towards Data Science
When talking about the decision trees, I always imagine a list of questions I would ask my girlfriend when she does not know what she wants for dinner: Do you want to eat something with the noodle? How much do you want to spend? Asian or Western? Healthy or junk food? Making a list of questions to narrow down the optio...
[ { "code": null, "e": 441, "s": 172, "text": "When talking about the decision trees, I always imagine a list of questions I would ask my girlfriend when she does not know what she wants for dinner: Do you want to eat something with the noodle? How much do you want to spend? Asian or Western? Healthy ...
How to create a constructor reference for an array in Java?
A constructor reference is similar to method reference except that the name of a method is new. We can also create a constructor reference with an array type. For instance, if we need to create an integer array by using the constructor reference: int[]:: new, where the parameter is a length of an array. ArrayTypeName[]...
[ { "code": null, "e": 1367, "s": 1062, "text": "A constructor reference is similar to method reference except that the name of a method is new. We can also create a constructor reference with an array type. For instance, if we need to create an integer array by using the constructor reference: int[]:...
Tryit Editor v3.7
Tryit: Using the object-position property
[]
CSS - Fade In Right Effect
The image come or cause to come gradually into or out of view, or to merge into another shot @keyframes fadeInRight { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } } Transform − Transform applies to 2d and 3d transformation to an elem...
[ { "code": null, "e": 2719, "s": 2626, "text": "The image come or cause to come gradually into or out of view, or to merge into another shot" }, { "code": null, "e": 2878, "s": 2719, "text": "@keyframes fadeInRight {\n 0% {\n opacity: 0;\n transform: translateX(20px);\...
What is JSON wire protocol in selenium?
To understand we need to first have a fair idea of what JSON actually is, JSON stands for Java Script Object Notation. Now let's have a look at what a sample JSON input looks like − { "name": "Tutorials Point", "topic": "Selenium", "Address": "India" } JSON today is one of the most widely used and accepted met...
[ { "code": null, "e": 1244, "s": 1062, "text": "To understand we need to first have a fair idea of what JSON actually is, JSON stands for Java Script Object Notation. Now let's have a look at what a sample JSON input looks like −" }, { "code": null, "e": 1324, "s": 1244, "text": "...
Find GCD of two numbers
In mathematics, Greatest Common Divisor (GCD) is the largest possible integer, that divides both of the integers. The condition is that the numbers must be non-zero. We will follow the Euclidean Algorithm to find the GCD of two numbers. Input: Two numbers 51 and 34 Output: The GCD is: 17 findGCD(a, b) Input: Two number...
[ { "code": null, "e": 1228, "s": 1062, "text": "In mathematics, Greatest Common Divisor (GCD) is the largest possible integer, that divides both of the integers. The condition is that the numbers must be non-zero." }, { "code": null, "e": 1299, "s": 1228, "text": "We will follow t...
How to link pages using relative URL in HTML?
To link pages using relative URL in HTML, use the <a> tag with href attribute. Relative URL is used to add a link to a page on the website. For example, /contact, /about_team, etc. Everything inside <a>...</a> tag becomes a hyperlink. Some of the attributes of <a> tag are listed below, You can try to run the following ...
[ { "code": null, "e": 1243, "s": 1062, "text": "To link pages using relative URL in HTML, use the <a> tag with href attribute. Relative URL is used to add a link to a page on the website. For example, /contact, /about_team, etc." }, { "code": null, "e": 1349, "s": 1243, "text": "E...
Check if a PHP cookie exists and if not set its value
Based on the PHP manual, the existence of a cookie can’t be found. A reference from the manual: “Once the cookies have been set, they can be accessed on the next page load with the $_COOKIE or $HTTP_COOKIE_VARS arrays.” The reason being cookies are response headers to the browser and the browser needs to then send them...
[ { "code": null, "e": 1129, "s": 1062, "text": "Based on the PHP manual, the existence of a cookie can’t be found." }, { "code": null, "e": 1282, "s": 1129, "text": "A reference from the manual: “Once the cookies have been set, they can be accessed on the next page load with the $...
Why do we use DOCTYPES in HTML document?
The HTML <doctype> tag is used for specifying which version of HTML the document is using. This is referred to as the document type declaration (DTD). The <!DOCTYPE> declaration is the first thing you can see in the HTML document. It gets added before the <html> tag. The <!DOCTYPE> tag does not have an end tag!. HTML 4...
[ { "code": null, "e": 1213, "s": 1062, "text": "The HTML <doctype> tag is used for specifying which version of HTML the document is using. This is referred to as the document type declaration (DTD)." }, { "code": null, "e": 1376, "s": 1213, "text": "The <!DOCTYPE> declaration is t...
LinkedList in C#
System.Collections.Generic namespace is available in C# for LinkedList. The LinkedList<T> class allows insertion and deletion of elements from the list at a fast pace. C# LinkedList<T> class uses the concept of linked list. It allows us to insert and delete elements fastly. It can have duplicate elements. It is found i...
[ { "code": null, "e": 1230, "s": 1062, "text": "System.Collections.Generic namespace is available in C# for LinkedList. The LinkedList<T> class allows insertion and deletion of elements from the list at a fast pace." }, { "code": null, "e": 1422, "s": 1230, "text": "C# LinkedList<...
Difference between Boxing and Unboxing in C#
Boxing convert value type to an object type whereas unboxing converts object type to the value type. Let us see the difference between Boxing and Unboxing in C#. In boxing, the value stored on the stack is copied to the object stored on heap memory, whereas unboxing is the opposite. In Unboxing, the object's value stor...
[ { "code": null, "e": 1163, "s": 1062, "text": "Boxing convert value type to an object type whereas unboxing converts object type to the value type." }, { "code": null, "e": 1224, "s": 1163, "text": "Let us see the difference between Boxing and Unboxing in C#." }, { "code"...
Sorting array except elements in a subarray
26 May, 2022 Given an array A positive integers, sort the array in ascending order such that element in given subarray (start and end indexes are input) in unsorted array stay unmoved and all other elements are sorted.Examples : Input : arr[] = {10, 4, 11, 7, 6, 20} l = 1, u = 3 Output : arr[] = {6, 4, 11...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 May, 2022" }, { "code": null, "e": 272, "s": 54, "text": "Given an array A positive integers, sort the array in ascending order such that element in given subarray (start and end indexes are input) in unsorted array stay unmoved and...
How to read user or console input in PHP ?
21 May, 2022 In PHP, the console is a command-line interface, which is also called interactive shell. We can access it by typing the following command in a terminal: php -a If we type any PHP code in the shell and hit enter, it is executed directly and displays the output or shows the error messages in case of any err...
[ { "code": null, "e": 53, "s": 25, "text": "\n21 May, 2022" }, { "code": null, "e": 207, "s": 53, "text": "In PHP, the console is a command-line interface, which is also called interactive shell. We can access it by typing the following command in a terminal: " }, { "code"...
Elementwise Matrix Multiplication in R
26 Mar, 2021 In a matrix, as we know rows are the ones that run horizontally and columns are the ones that run vertically. In this article, we are going to perform element-wise matrix multiplication in R programming. Approach Create a matrix Multiply two matrices Verify the result. Element-wise multiplication using “*”...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2021" }, { "code": null, "e": 232, "s": 28, "text": "In a matrix, as we know rows are the ones that run horizontally and columns are the ones that run vertically. In this article, we are going to perform element-wise matrix mult...
Lambda with if but without else in Python
06 Oct, 2021 In Python, Lambda function is an anonymous function, which means that it is a function without a name. It can have any number of arguments but only one expression, which is evaluated and returned. It must have a return value. Since a lambda function must have a return value for every valid input, we cannot...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Oct, 2021" }, { "code": null, "e": 254, "s": 28, "text": "In Python, Lambda function is an anonymous function, which means that it is a function without a name. It can have any number of arguments but only one expression, which is ev...
SciPy Linear Algebra – SciPy Linalg
27 Apr, 2021 The SciPy package includes the features of the NumPy package in Python. It uses NumPy arrays as the fundamental data structure. It has all the features included in the linear algebra of the NumPy module and some extended functionality. It consists of a linalg submodule, and there is an overlap in the funct...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2021" }, { "code": null, "e": 388, "s": 28, "text": "The SciPy package includes the features of the NumPy package in Python. It uses NumPy arrays as the fundamental data structure. It has all the features included in the linear ...
PHP | SimpleXMLElement attributes() Function
13 Aug, 2021 Pre-requisite: Read XML BasicsThe SimpleXMLElement::attributes() function is an inbuilt function in PHP which is used to retrieve the attributes and its value from an XML tag in a SimpleXML object. Syntax: SimpleXMLElement SimpleXMLElement::attributes( $namespace, $is_prefix ) Parameter: This function a...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Aug, 2021" }, { "code": null, "e": 227, "s": 28, "text": "Pre-requisite: Read XML BasicsThe SimpleXMLElement::attributes() function is an inbuilt function in PHP which is used to retrieve the attributes and its value from an XML tag ...
Largest value in each level of Binary Tree
30 Jun, 2021 Given a binary tree, find the largest value in each level.Examples : Input : 1 / \ 2 3 Output : 1 3 Input : 4 / \ 9 2 / \ \ 3 5 7 Output : 4 9 7 Approach: The idea is to recursively traverse tree in a pre-order fashion. Root is considered...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2021" }, { "code": null, "e": 123, "s": 52, "text": "Given a binary tree, find the largest value in each level.Examples : " }, { "code": null, "e": 264, "s": 123, "text": "Input :\n 1\n / \\\n ...
SQL - INSERT Query
The SQL INSERT INTO Statement is used to add new rows of data to a table in the database. There are two basic syntaxes of the INSERT INTO statement which are shown below. INSERT INTO TABLE_NAME (column1, column2, column3,...columnN) VALUES (value1, value2, value3,...valueN); Here, column1, column2, column3,...column...
[ { "code": null, "e": 2677, "s": 2587, "text": "The SQL INSERT INTO Statement is used to add new rows of data to a table in the database." }, { "code": null, "e": 2758, "s": 2677, "text": "There are two basic syntaxes of the INSERT INTO statement which are shown below." }, { ...
How to make bubble background using HTML5 and CSS3?
06 Aug, 2021 Water bubble background animation can easily be generated by using HTML, CSS JavaScript. By using HTML5 we will design the basic body part of the page and by CSS3 we will make the bubbles in the background, And with the help of JavaScript, it will move over the whole page from bottom to up.Approach: The ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Aug, 2021" }, { "code": null, "e": 331, "s": 28, "text": "Water bubble background animation can easily be generated by using HTML, CSS JavaScript. By using HTML5 we will design the basic body part of the page and by CSS3 we will make...
Find the closest element in Binary Search Tree
06 Jul, 2022 Given a binary search tree and a target node K. The task is to find the node with minimum absolute difference with given target value K. Examples: // For above binary search tree Input : k = 4 Output : 4 Input : k = 18 Output : 17 Input : k = 12 Output : 9 A simple solution for this problem i...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Jul, 2022" }, { "code": null, "e": 191, "s": 54, "text": "Given a binary search tree and a target node K. The task is to find the node with minimum absolute difference with given target value K." }, { "code": null, "e": ...
Convert String to UTF-8 bytes in Java
Before converting a String to UTF-8-bytes, let us have a look at UTF-8. UTF-8 is a variable width character encoding. UTF-8 has ability to be as condense as ASCII but can also contain any unicode characters with some increase in the size of the file. UTF stands for Unicode Transformation Format. The '8' signifies that ...
[ { "code": null, "e": 1259, "s": 1187, "text": "Before converting a String to UTF-8-bytes, let us have a look at UTF-8." }, { "code": null, "e": 1629, "s": 1259, "text": "UTF-8 is a variable width character encoding. UTF-8 has ability to be as condense as ASCII but can also contai...
How to implement Options Menu in Android
14 Feb, 2020 In android, there are three types of Menus available to define a set of options and actions in our android applications. The Menus in android applications are the following: Android Options Menu Android Context Menu Android Popup Menu Android Option Menus are the primary menus of android. They can be used ...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Feb, 2020" }, { "code": null, "e": 149, "s": 28, "text": "In android, there are three types of Menus available to define a set of options and actions in our android applications." }, { "code": null, "e": 202, "s": 149...
SQL Query to Convert Month Number to Month Name
16 Dec, 2021 SQL stands for structure query language, which used in the database to retrieve data, update and modify data in relational databases like MySql, Oracle, etc. And a query is a question or request for data from the database, that is if we ask someone any question then the question is the query. Similarly whe...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Dec, 2021" }, { "code": null, "e": 512, "s": 28, "text": "SQL stands for structure query language, which used in the database to retrieve data, update and modify data in relational databases like MySql, Oracle, etc. And a query is a ...
Virtual Circuit in Computer Network
14 May, 2020 Virtual Circuit is the computer network providing connection-oriented service. It is a connection-oriented network. In virtual circuit resource are reserve for the time interval of data transmission between two nodes. This network is a highly reliable medium of transfer. Virtual circuits are costly to impl...
[ { "code": null, "e": 53, "s": 25, "text": "\n14 May, 2020" }, { "code": null, "e": 367, "s": 53, "text": "Virtual Circuit is the computer network providing connection-oriented service. It is a connection-oriented network. In virtual circuit resource are reserve for the time inter...
Ruby Integer to_f function with example
07 Jan, 2020 The to_f function in Ruby converts the value of the number as a float. If it does not fit in float, then it returns infinity. Syntax: number.to_f Parameter: The function takes the integer which is to be converted to float. Return Value: The function returns the float value of the number. Example #1: # Ruby...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jan, 2020" }, { "code": null, "e": 154, "s": 28, "text": "The to_f function in Ruby converts the value of the number as a float. If it does not fit in float, then it returns infinity." }, { "code": null, "e": 174, "s"...
Introduction to JDBC (Java Database Connectivity)
11 Feb, 2022 JDBC or Java Database Connectivity is a Java API to connect and execute the query with the database. It is a specification from Sun microsystems that provides a standard abstraction(API or Protocol) for java applications to communicate with various databases. It provides the language with java database con...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Feb, 2022" }, { "code": null, "e": 619, "s": 54, "text": "JDBC or Java Database Connectivity is a Java API to connect and execute the query with the database. It is a specification from Sun microsystems that provides a standard abst...
Convert Vector to ArrayList in Java - GeeksforGeeks
11 Dec, 2020 There are multiple ways to convert vector to ArrayList, using passing the Vector in ArrayList constructor and by using simple vector traversal and adding values to ArrayList. Approach 1: Create a Vector.Add some values in Vector.Create new ArrayList.Traverse vector from the left side to the right side.Star...
[ { "code": null, "e": 23581, "s": 23553, "text": "\n11 Dec, 2020" }, { "code": null, "e": 23756, "s": 23581, "text": "There are multiple ways to convert vector to ArrayList, using passing the Vector in ArrayList constructor and by using simple vector traversal and adding values to...
How to split a Java String into tokens with StringTokenizer?
The hasMoreTokens() method is used to test if there are more tokens available from this tokenizer's string. Live Demo import java.util.*; public class StringTokenizerDemo { public static void main(String[] args) { // creating string tokenizer StringTokenizer st = new StringTokenizer("Come to learn"); ...
[ { "code": null, "e": 1170, "s": 1062, "text": "The hasMoreTokens() method is used to test if there are more tokens available from this tokenizer's string." }, { "code": null, "e": 1180, "s": 1170, "text": "Live Demo" }, { "code": null, "e": 1525, "s": 1180, "t...
Analysis of NYC Reported Crime Data Using Pandas | by Bruna Mendes | Towards Data Science
While I was learning Data Analysis using Pandas in Python, I decided to analyze the open data about New York City — the largest and most influential American metropolis. New York City is in reality a collection of many neighborhoods scattered among the city’s five boroughs: Manhattan, Brooklyn, the Bronx, Queens, and S...
[ { "code": null, "e": 584, "s": 172, "text": "While I was learning Data Analysis using Pandas in Python, I decided to analyze the open data about New York City — the largest and most influential American metropolis. New York City is in reality a collection of many neighborhoods scattered among the ci...
Matplotlib.pyplot.broken_barh() in Python - GeeksforGeeks
21 Apr, 2020 Matplotlib is one of the most popular Python packages used for data visualization. It is a cross-platform library for making 2D plots from data in arrays. Pyplot is a collection of command style functions that make matplotlib work like MATLAB. The function broken_barh() is used to Plot a horizontal sequenc...
[ { "code": null, "e": 24001, "s": 23973, "text": "\n21 Apr, 2020" }, { "code": null, "e": 24245, "s": 24001, "text": "Matplotlib is one of the most popular Python packages used for data visualization. It is a cross-platform library for making 2D plots from data in arrays. Pyplot i...
How to change the scale of an existing table in Matplotlib?
To change scale of a table, we can use the scale() method. Steps − Create a figure and a set of subplots, nrows=1 and ncols=1. Create a figure and a set of subplots, nrows=1 and ncols=1. Create a random data using numpy. Create a random data using numpy. Make columns value. Make columns value. Make the axis tight and o...
[ { "code": null, "e": 1129, "s": 1062, "text": "To change scale of a table, we can use the scale() method. Steps −" }, { "code": null, "e": 1189, "s": 1129, "text": "Create a figure and a set of subplots, nrows=1 and ncols=1." }, { "code": null, "e": 1249, "s": 118...
Python - DS Environment
Python is available on a wide variety of platforms including Linux and Mac OS X. Let's understand how to set up our Python environment. Open a terminal window and type "python" to find out if it is already installed and which version is installed. Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX, etc.) Win 9x/NT/...
[ { "code": null, "e": 2463, "s": 2327, "text": "Python is available on a wide variety of platforms including Linux and Mac OS X. Let's understand how to set up our Python environment." }, { "code": null, "e": 2575, "s": 2463, "text": "Open a terminal window and type \"python\" to ...
Find smallest and largest elements in singly linked list - GeeksforGeeks
29 Oct, 2021 Given a singly linked list of n nodes and find the smallest and largest elements in linked list.Examples: Input : 15 14 13 22 17 Output : Linked list are: 17 -> 22 -> 13 -> 14 -> 15 -> NULL Maximum element in linked list: 22 Minimum element in linked list: 13 Input : 20 25 23 68 ...
[ { "code": null, "e": 31011, "s": 30983, "text": "\n29 Oct, 2021" }, { "code": null, "e": 31119, "s": 31011, "text": "Given a singly linked list of n nodes and find the smallest and largest elements in linked list.Examples: " }, { "code": null, "e": 31494, "s": 31...
Java Examples - Check port
How to check whether a port is being used or not ? Following example shows how to check whether any port is being used as a server or not by creating a socket object. import java.net.*; import java.io.*; public class Main { public static void main(String[] args) { Socket Skt; String host = "localhost"; ...
[ { "code": null, "e": 2119, "s": 2068, "text": "How to check whether a port is being used or not ?" }, { "code": null, "e": 2235, "s": 2119, "text": "Following example shows how to check whether any port is being used as a server or not by creating a socket object." }, { "...
Knowledge Graph Embedding — A Simplified Version | by Rohith Teja | Towards Data Science
Graphs are one of my favorite data structures to work with. They enable us to represent complex real-world networks like a rapid transit system (eg, Paris metro, New York subway, etc), regional or worldwide air traffic, or something relatable like a social network of a person. They are very flexible and can be easily u...
[ { "code": null, "e": 746, "s": 166, "text": "Graphs are one of my favorite data structures to work with. They enable us to represent complex real-world networks like a rapid transit system (eg, Paris metro, New York subway, etc), regional or worldwide air traffic, or something relatable like a socia...
How to define a table caption using HTML ? - GeeksforGeeks
08 Jun, 2020 In this article, we define a table caption by using the <caption> tag element. The caption element is used to specify the caption of a table. This tag will be inserted just after the Syntax: <caption align="value"> </caption> Example: Output: Supported Browsers are listed below: Google Chrome Internet Expl...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n08 Jun, 2020" }, { "code": null, "e": 26804, "s": 26621, "text": "In this article, we define a table caption by using the <caption> tag element. The caption element is used to specify the caption of a table. This tag will be inse...
How to Connect Paired Points with Lines in Scatterplot in ggplot2 in R? - GeeksforGeeks
05 Oct, 2021 In this article, we will discuss how to connect paired points in scatter plot in ggplot2 in R Programming Language. Scatter plots help us to visualize the change in two more categorical clusters of data. Sometimes, we need to work with paired quantitative variables and try to visualize their relationship. ...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n05 Oct, 2021" }, { "code": null, "e": 26603, "s": 26487, "text": "In this article, we will discuss how to connect paired points in scatter plot in ggplot2 in R Programming Language." }, { "code": null, "e": 26942, ...
Java.io.DataOutputStream in Java - GeeksforGeeks
06 Oct, 2021 A data output stream lets an application write primitive Java data types to an output stream in a portable way. An application can then use a data input stream to read the data back in. Let us do discuss the constructor of this class prior to moving ahead to the methods of this class. Constructor: DataOut...
[ { "code": null, "e": 25609, "s": 25581, "text": "\n06 Oct, 2021" }, { "code": null, "e": 25896, "s": 25609, "text": "A data output stream lets an application write primitive Java data types to an output stream in a portable way. An application can then use a data input stream to ...
Validity of a given Tic-Tac-Toe board configuration - GeeksforGeeks
06 Apr, 2022 A Tic-Tac-Toe board is given after some moves are played. Find out if the given board is valid, i.e., is it possible to reach this board position after some moves or not.Note that every arbitrary filled grid of 9 spaces isn’t valid e.g. a grid filled with 3 X and 6 O isn’t valid situation because each play...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n06 Apr, 2022" }, { "code": null, "e": 26407, "s": 26065, "text": "A Tic-Tac-Toe board is given after some moves are played. Find out if the given board is valid, i.e., is it possible to reach this board position after some moves ...
Maximize count of intersecting line segments - GeeksforGeeks
26 Mar, 2021 Given two arrays X[] and Y[], representing points on X and Y number lines, such that every similar-indexed array element forms a line segment, i.e. X[i] and Y[i] forms a line segment, the task is to find the maximum number of line segments that can be selected from the given array. Examples: Input: X[] = {...
[ { "code": null, "e": 26603, "s": 26575, "text": "\n26 Mar, 2021" }, { "code": null, "e": 26886, "s": 26603, "text": "Given two arrays X[] and Y[], representing points on X and Y number lines, such that every similar-indexed array element forms a line segment, i.e. X[i] and Y[i] f...
std::string::erase in C++ - GeeksforGeeks
28 Mar, 2022 The function erases a part of the string content, shortening the length of the string. The characters affected depend on the member function version used: Return value : erase() returns *this. Time Complexity : O(n) , n=length of string Syntax 1: Erases all characters in a string Syntax 1: Erases all char...
[ { "code": null, "e": 25672, "s": 25644, "text": "\n28 Mar, 2022" }, { "code": null, "e": 25866, "s": 25672, "text": "The function erases a part of the string content, shortening the length of the string. The characters affected depend on the member function version used: Return v...
HTML span Tag - GeeksforGeeks
10 May, 2022 The HTML span element is a generic inline container for inline elements and content. It is used to group elements for styling purposes (by using the class or id attributes), A better way to use it when no other semantic element is available. The span tag is a paired tag means it has both open(<) and closin...
[ { "code": null, "e": 24393, "s": 24365, "text": "\n10 May, 2022" }, { "code": null, "e": 24635, "s": 24393, "text": "The HTML span element is a generic inline container for inline elements and content. It is used to group elements for styling purposes (by using the class or id at...
Program to find the Nth Composite Number - GeeksforGeeks
02 Jul, 2021 Given a positive integer N, the task is to find the Nth Composite Number. Examples: Input: N = 1Output: 4 Input: N = 3 Output: 8 Approach: The given problem can be solved by using the concept of Sieve of Eratosthenes. Follow the steps below to solve the problem: Mark all the Prime Numbers till 105 in a boo...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n02 Jul, 2021" }, { "code": null, "e": 26011, "s": 25937, "text": "Given a positive integer N, the task is to find the Nth Composite Number." }, { "code": null, "e": 26021, "s": 26011, "text": "Examples:" }, ...
Mahotas - Median filter - GeeksforGeeks
01 Dec, 2021 In this article we will see how we can apply median filter to the image in mahotas. The median filter is a non-linear digital filtering technique, often used to remove noise from an image or signal. Such noise reduction is a typical pre-processing step to improve the results of later processing (for exampl...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n01 Dec, 2021" }, { "code": null, "e": 25952, "s": 25537, "text": "In this article we will see how we can apply median filter to the image in mahotas. The median filter is a non-linear digital filtering technique, often used to re...
Combining multiple columns in Pandas groupby with dictionary - GeeksforGeeks
27 Oct, 2021 Let’ see how to combine multiple columns in Pandas using groupby with dictionary with the help of different examples. Example #1: # importing pandas as pd import pandas as pd # Creating a dictionary d = {'id':['1', '2', '3'], 'Column 1.1':[14, 15, 16], 'Column 1.2':[10, 10, 10], 'Column 1.3':...
[ { "code": null, "e": 26199, "s": 26171, "text": "\n27 Oct, 2021" }, { "code": null, "e": 26317, "s": 26199, "text": "Let’ see how to combine multiple columns in Pandas using groupby with dictionary with the help of different examples." }, { "code": null, "e": 26329, ...
Draw a snowman using turtle module in Python - GeeksforGeeks
01 Oct, 2020 Prerequisite: Turtle module, Drawing Shapes There are many modules in python which depicts graphical illustrations, one of them is turtle, it is an in-built module in Python, which lets the user control a pen(turtle) to draw on screen(drawing board). It is mostly used to illustrate figures, shapes, designs...
[ { "code": null, "e": 25877, "s": 25849, "text": "\n01 Oct, 2020" }, { "code": null, "e": 25921, "s": 25877, "text": "Prerequisite: Turtle module, Drawing Shapes" }, { "code": null, "e": 26459, "s": 25921, "text": "There are many modules in python which depicts...
Internal Registers of DMA Controller - GeeksforGeeks
03 Apr, 2020 The internal registers of a Direct Memory Access (DMA) Controller are:- 1. Base Address Register (16 bit) 2. Base Word Count Register (16 bit) 3. Current Address Register (16 bit) 4. Current Word Count Register (16 bit) 5. Temporary Address Register (16 bit) 6. Temporary Word Count Register (16 bit) 7. Sta...
[ { "code": null, "e": 26025, "s": 25997, "text": "\n03 Apr, 2020" }, { "code": null, "e": 26097, "s": 26025, "text": "The internal registers of a Direct Memory Access (DMA) Controller are:-" }, { "code": null, "e": 26493, "s": 26097, "text": "1. Base Address Re...
Automated Certificate generator using Opencv in Python - GeeksforGeeks
10 May, 2020 Prerequisites: Introduction to OpenCV OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a major role in real-time operation which is very important in today’s systems. By using it, one can process images and videos to identify objects, faces...
[ { "code": null, "e": 25893, "s": 25865, "text": "\n10 May, 2020" }, { "code": null, "e": 25931, "s": 25893, "text": "Prerequisites: Introduction to OpenCV" }, { "code": null, "e": 26238, "s": 25931, "text": "OpenCV is the huge open-source library for computer ...
Convert HashSet to array in Java - GeeksforGeeks
11 Dec, 2020 Java HashSet class is used to create a collection that uses a hash table for the storage of elements. It inherits AbstractSet class and implements Set Interface. The key points about HashSet are: HashSet contains unique elements only. HashSet allows null values. The insertion of elements in a HashSet is b...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n11 Dec, 2020" }, { "code": null, "e": 25388, "s": 25225, "text": "Java HashSet class is used to create a collection that uses a hash table for the storage of elements. It inherits AbstractSet class and implements Set Interface. "...
Java.net.Inet4Address class in Java - GeeksforGeeks
24 Mar, 2021 This class extends the InetAddress class and represents an IPv4 address. It provides methods to interpret and display useful information about IP addresses. Methods of this class take input in 4 formats: d.d.d.d: When this format is used as input, each of the given values are assigned to 4 bytes of the IP...
[ { "code": null, "e": 25633, "s": 25605, "text": "\n24 Mar, 2021" }, { "code": null, "e": 25791, "s": 25633, "text": "This class extends the InetAddress class and represents an IPv4 address. It provides methods to interpret and display useful information about IP addresses. " },...
Minimize swaps of pairs of characters required such that no two adjacent characters in the string are same - GeeksforGeeks
07 Dec, 2021 Given a string S consisting of N characters, the task is to find the minimum number of pairs of characters that are required to be swapped such that no two adjacent characters are the same. If it is not possible to do so, then print “-1”. Examples: Input: S = “ABAACD”Output: 1Explanation: Swapping S[3] and...
[ { "code": null, "e": 26511, "s": 26483, "text": "\n07 Dec, 2021" }, { "code": null, "e": 26750, "s": 26511, "text": "Given a string S consisting of N characters, the task is to find the minimum number of pairs of characters that are required to be swapped such that no two adjacen...
Convert the given RGB color code to Hex color code - GeeksforGeeks
17 Nov, 2021 Given three colors, such as R, G, and B, convert these RGB color to a hex color code. If the conversion is not possible, print -1. Examples: Input: R = 0, G = 0, B = 0 Output: #000000 Input: R = 255, G = 255, B = 256 Output: -1 Explanation: A 256 color code is not possible as only the 0-255 range is avail...
[ { "code": null, "e": 26315, "s": 26287, "text": "\n17 Nov, 2021" }, { "code": null, "e": 26446, "s": 26315, "text": "Given three colors, such as R, G, and B, convert these RGB color to a hex color code. If the conversion is not possible, print -1." }, { "code": null, ...
How to make Dropdown Menus in Plotly? - GeeksforGeeks
22 Sep, 2020 A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library. A ...
[ { "code": null, "e": 24887, "s": 24859, "text": "\n22 Sep, 2020" }, { "code": null, "e": 25192, "s": 24887, "text": "A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, ...
Node.js Buffer.concat() Method - GeeksforGeeks
13 Oct, 2021 The Buffer.concat() method is used to concat all buffer objects in a given array into one buffer object. The return value of this method is also a buffer. If length of buffer is not provided then it is calculated from the Buffer instances in list. Syntax: Buffer.concat( list, length ) Parameters: This meth...
[ { "code": null, "e": 26409, "s": 26381, "text": "\n13 Oct, 2021" }, { "code": null, "e": 26657, "s": 26409, "text": "The Buffer.concat() method is used to concat all buffer objects in a given array into one buffer object. The return value of this method is also a buffer. If lengt...
ReactJS Components Complete Reference - GeeksforGeeks
21 Mar, 2022 Components are bits of code that are freelance and reusable. They serve a similar purpose as JavaScript functions. However, work isolation and returns HTML via a render function. A Component is one of the core building blocks of React. In other words, we can say that every application you will develop in R...
[ { "code": null, "e": 25586, "s": 25558, "text": "\n21 Mar, 2022" }, { "code": null, "e": 25765, "s": 25586, "text": "Components are bits of code that are freelance and reusable. They serve a similar purpose as JavaScript functions. However, work isolation and returns HTML via a r...
Apache Hive Installation With Derby Database And Beeline - GeeksforGeeks
29 Jun, 2021 Apache hive is a data warehousing and powerful ETL(Extract Transform And Load) tool built on top of Hadoop that can be used with relational databases for managing and performing the operations on RDBMS. It is written in Java and was released by the Apache Foundation in the year 2012 for the people who are ...
[ { "code": null, "e": 25591, "s": 25563, "text": "\n29 Jun, 2021" }, { "code": null, "e": 26128, "s": 25591, "text": "Apache hive is a data warehousing and powerful ETL(Extract Transform And Load) tool built on top of Hadoop that can be used with relational databases for managing ...
MongoDB Required Constraint using Node.js - GeeksforGeeks
04 Mar, 2021 Mongoose module is one of the most powerful external modules of the node.js.Mongoose is a MongoDB ODM i.e (Object database Modelling) that used to translate the code and its representation from MongoDB to the Node.js server. Mongoose module provides several functions in order to manipulate the documents of...
[ { "code": null, "e": 25779, "s": 25751, "text": "\n04 Mar, 2021" }, { "code": null, "e": 26144, "s": 25779, "text": "Mongoose module is one of the most powerful external modules of the node.js.Mongoose is a MongoDB ODM i.e (Object database Modelling) that used to translate the co...
IP Addressing - GeeksforGeeks
02 Dec, 2021 IPA BITWISE-AND Ms == IPBBITWISE-AND Ms 128.8.129.43 BITWISE-AND 255.255.31.0 = 128.8.1.0 128.8.161.55 BITWISE-AND 255.255.31.0 = 128.8.1.0 List-I List-II A. 128.96.171.92 1. Interface 0 B. 128.96.167.151 2. Interface 1 C. 128.96.163.121 3. R2 D. 128.96.165.121 4. R3 ...
[ { "code": null, "e": 38456, "s": 38428, "text": "\n02 Dec, 2021" }, { "code": null, "e": 38498, "s": 38456, "text": "\tIPA BITWISE-AND Ms == IPBBITWISE-AND Ms\n" }, { "code": null, "e": 38599, "s": 38498, "text": "128.8.129.43 BITWISE-AND 255.255.31.0 = 128.8....
CountDownTimer in Android with Example
19 Feb, 2021 CountDownTimer app is about setting a time that moves in reverse order as it shows the time left in the upcoming event. A CountDownTimer is an accurate timer that can be used for a website or blog to display the count down to any special event, such as a birthday or anniversary. Likewise, here let’s create...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Feb, 2021" }, { "code": null, "e": 489, "s": 54, "text": "CountDownTimer app is about setting a time that moves in reverse order as it shows the time left in the upcoming event. A CountDownTimer is an accurate timer that can be used...
How to Build a Tic Tac Toe Game in Android?
15 Jan, 2021 In this article, we will be building a Tic Tac Toe Game Project using Java and XML in Android. The Tic Tac Toe Game is based on a two-player game. Each player chooses between X and O. Player play one move at a time simultaneously. In a move, a player can choose any position from a 3×3 grid. The goal here i...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jan, 2021" }, { "code": null, "e": 679, "s": 52, "text": "In this article, we will be building a Tic Tac Toe Game Project using Java and XML in Android. The Tic Tac Toe Game is based on a two-player game. Each player chooses between...
Internet of Things (IoT) | Set 2
11 Jul, 2022 Internet of Things (IoT) is a system of interconnected objects, usually called smart devices, through the Internet. The object can be a heart monitor, a remote, or an automobile with built-in sensors. That is objects that have been assigned an IP address and have the capability to collect and transfer data...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jul, 2022" }, { "code": null, "e": 564, "s": 52, "text": "Internet of Things (IoT) is a system of interconnected objects, usually called smart devices, through the Internet. The object can be a heart monitor, a remote, or an automob...
How to Automatically Insert Date and Timestamp in Excel?
27 May, 2021 The Date and Timestamp is a type of data type that determines the date and time of a particular region. It contains some characters along with some encoded data. This format may vary from language to language. Keeping track of date and time helps in managing records of our work as well as segregate the inf...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2021" }, { "code": null, "e": 458, "s": 28, "text": "The Date and Timestamp is a type of data type that determines the date and time of a particular region. It contains some characters along with some encoded data. This format m...
How to redirect browser window back using JavaScript ?
07 Jun, 2022 In this article, we will redirect the browser window back using JavaScript. There are two approaches used to redirect the browser window back. Approach 1: Using history.back() Method: The back() method of the window.history object is used to go back to the previous page in the current session history. In ...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jun, 2022" }, { "code": null, "e": 196, "s": 52, "text": "In this article, we will redirect the browser window back using JavaScript. There are two approaches used to redirect the browser window back. " }, { "code": null, ...
Flutter – Send Data to Screen
12 Jan, 2022 Interaction with the UI is an integral part of any application. But more often than not, the information needs to be sent from one screen to another. For instance, say you need to pass data regarding a selected or tapped component of the UI to another route(ie, page). In this article, we will explore in de...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2022" }, { "code": null, "e": 420, "s": 28, "text": "Interaction with the UI is an integral part of any application. But more often than not, the information needs to be sent from one screen to another. For instance, say you nee...
Minimum edges required to make a Directed Graph Strongly Connected
23 Oct, 2021 Given a Directed graph of N vertices and M edges, the task is to find the minimum number of edges required to make the given graph Strongly Connected. Examples: Input: N = 3, M = 3, source[] = {1, 2, 1}, destination[] = {2, 3, 3} Output: 1 Explanation: Adding a directed edge joining the pair of vertices {...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Oct, 2021" }, { "code": null, "e": 203, "s": 52, "text": "Given a Directed graph of N vertices and M edges, the task is to find the minimum number of edges required to make the given graph Strongly Connected." }, { "code": n...
Output of C++ Program | Set 8
27 Dec, 2016 Predict the output of following C++ programs. Question 1 #include<iostream>using namespace std; class Test1{ int x;public: void show() { }}; class Test2{ int x;public: virtual void show() { }}; int main(void){ cout<<sizeof(Test1)<<endl; cout<<sizeof(Test2)<<endl; return 0;} Output...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Dec, 2016" }, { "code": null, "e": 100, "s": 54, "text": "Predict the output of following C++ programs." }, { "code": null, "e": 111, "s": 100, "text": "Question 1" }, { "code": "#include<iostream>using n...
How to kill all instances of a Node.js process via command line ?
09 Apr, 2021 Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside the browser. It is widely used in developing APIs and microservices from small to large companies. Why we need to kill all the instances? Sometimes there may be some issue with the NodeJS like the server ...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Apr, 2021" }, { "code": null, "e": 255, "s": 53, "text": "Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside the browser. It is widely used in developing APIs and microservices fro...
C Language | Set 8
27 Mar, 2017 Following questions have been asked in GATE CS 2011 exam.1) What does the following fragment of C-program print? char c[] = "GATE2011";char *p =c;printf("%s", p + p[3] - p[1]) ; (A) GATE2011(B) E2011(C) 2011(D) 011 Answer: (C)See comments for explanation. char c[] = "GATE2011"; // p now has the base addre...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Mar, 2017" }, { "code": null, "e": 165, "s": 52, "text": "Following questions have been asked in GATE CS 2011 exam.1) What does the following fragment of C-program print?" }, { "code": "char c[] = \"GATE2011\";char *p =c;pri...
C# | Intersection of two HashSets
01 Feb, 2019 A HashSet is an unordered collection of the unique elements. It is found in System.Collections.Generic namespace. It is used in a situation where we want to prevent duplicates from being inserted in the collection. As far as performance is concerned, it is better in comparison to the list. HashSet.Intersec...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2019" }, { "code": null, "e": 496, "s": 28, "text": "A HashSet is an unordered collection of the unique elements. It is found in System.Collections.Generic namespace. It is used in a situation where we want to prevent duplicates...
How to make a multi-select dropdown using Angular 11/10 ?
07 Oct, 2021 In this article, we will learn to build the multiple selection drop-down menu in Angular. To accomplish this task, we require Angular 10 or the Angular 11 version. Sometimes we need to display dynamically fetched multi-selected data in a drop-down menu, for this, we will use the npm @ng-select/ng-select pa...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Oct, 2021" }, { "code": null, "e": 665, "s": 54, "text": "In this article, we will learn to build the multiple selection drop-down menu in Angular. To accomplish this task, we require Angular 10 or the Angular 11 version. Sometimes ...
How to get the typecode for enum in C#?
23 Jul, 2019 Enum.GetTypeCode Method is used to get the type code of the underlying type of this enumeration member. Syntax: public TypeCode GetTypeCode (); Returns: This method returns type code of the underlying type of this instance. Exception: This method will give InvalidOperationException if the enumeration type ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jul, 2019" }, { "code": null, "e": 132, "s": 28, "text": "Enum.GetTypeCode Method is used to get the type code of the underlying type of this enumeration member." }, { "code": null, "e": 140, "s": 132, "text": "Sy...
SortedSet subSet() method in Java - GeeksforGeeks
30 Sep, 2018 The subSet() method of SortedSet interface in Java is used to return a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive. The set returned by this method is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n30 Sep, 2018" }, { "code": null, "e": 23735, "s": 23557, "text": "The subSet() method of SortedSet interface in Java is used to return a view of the portion of this set whose elements range from fromElement, inclusive, to toEleme...
How to insert date record to the same table with different date formats with MySQL?
For this, you can use the INSERT INTO SELECT statement. To format the date, use the DATE_FORMAT() function. Let us first create a table − mysql> create table DemoTable -> ( -> DateOfJoining datetime, -> JoiningDate text -> ); Query OK, 0 rows affected (0.79 sec) Insert some records in the table using insert...
[ { "code": null, "e": 1325, "s": 1187, "text": "For this, you can use the INSERT INTO SELECT statement. To format the date, use the DATE_FORMAT() function. Let us first create a table −" }, { "code": null, "e": 1462, "s": 1325, "text": "mysql> create table DemoTable\n -> (\n -...
scipy stats.skewtest() function | Python
11 Feb, 2019 scipy.stats.skewtest(array, axis=0) function test whether the skew is different from the normal distribution. This function tests the null hypothesis that the skewness of the population that the sample was drawn from is the same as that of a corresponding normal distribution. Its formula – Parameters :arra...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Feb, 2019" }, { "code": null, "e": 305, "s": 28, "text": "scipy.stats.skewtest(array, axis=0) function test whether the skew is different from the normal distribution. This function tests the null hypothesis that the skewness of the ...
How to get the current date in JavaScript ?
11 Nov, 2021 In this article, we will know how to get the current date using the built-in functions in Javascript & will see their implementation through the examples. There are 2 methods to perform this task: Using Date().toDateString() Method Using their respective method for fetching day, month, year. There are seve...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Nov, 2021" }, { "code": null, "e": 225, "s": 28, "text": "In this article, we will know how to get the current date using the built-in functions in Javascript & will see their implementation through the examples. There are 2 methods ...
Calculating the sum of all columns of a 2D NumPy array
02 Sep, 2020 Let us see how to calculate the sum of all the columns of a 2 dimensional NumPy array. Example : Input : [[1, 2, 3, 4, 5], [5, 6, 7, 8, 9], [2, 1, 5, 7, 8], [2, 9, 3, 1, 0]] Output : [10, 18, 18, 20, 22] Input : [[5, 4, 1, 7], [0, 9, 3, 5], [3, 2, 8, 6]] Output : [8, 15, 12, 18] Appro...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Sep, 2020" }, { "code": null, "e": 115, "s": 28, "text": "Let us see how to calculate the sum of all the columns of a 2 dimensional NumPy array." }, { "code": null, "e": 125, "s": 115, "text": "Example :" }, {...
How to make a smooth image rotation in Android?
This example demonstrates how to make a smooth image rotation in Android. Step 1 - Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 - Add the following code to res/layout/activity_main.xml. <?xml version = "1.0" encoding = "utf-8"?> <LinearLa...
[ { "code": null, "e": 1136, "s": 1062, "text": "This example demonstrates how to make a smooth image rotation in Android." }, { "code": null, "e": 1265, "s": 1136, "text": "Step 1 - Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c...
Finding difference of greatest and the smallest digit in a number - JavaScript
We are required to write a JavaScript function that takes in a number and returns the difference between the greatest and the smallest digit present in it. For example: If the number is 5464676, then the smallest digit here is 4 and the greatest is 7 Hence, our output should be 3 Let’s write the code for this function ...
[ { "code": null, "e": 1218, "s": 1062, "text": "We are required to write a JavaScript function that takes in a number and returns the difference between the greatest and the smallest digit present in it." }, { "code": null, "e": 1313, "s": 1218, "text": "For example: If the number...