title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Exposing Localhost Server over Internet Using ngrok and VS Code
07 Aug, 2020 We setup and build many projects but before moving them to the production server, we always test the project, and we share the project among our team to share the progress, we share our project code on GitHub as it supports version control system and, but what if we do not want to share the code, but we on...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Aug, 2020" }, { "code": null, "e": 629, "s": 28, "text": "We setup and build many projects but before moving them to the production server, we always test the project, and we share the project among our team to share the progress, we...
GTest Framework
28 Jan, 2021 It is a test framework i.e., a software tool for writing and running unit tests. It is a library for writing C++ tests. It is based on xUnit architecture which is a set of “Frameworks” for programming and automated execution of test cases. Googletest helps us to write better C++ tests. Independent and Repe...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jan, 2021" }, { "code": null, "e": 134, "s": 53, "text": "It is a test framework i.e., a software tool for writing and running unit tests." }, { "code": null, "e": 173, "s": 134, "text": "It is a library for writ...
How to remove extension from string in PHP?
16 Feb, 2019 There are three ways of removing an extension from string. They are as follows Using an inbuilt function pathinfo Using an inbuilt function basename Using an string functions substr and strrpos Using pathinfo() Function: The pathinfo() function returns an array containing the directory name, basename, exte...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Feb, 2019" }, { "code": null, "e": 107, "s": 28, "text": "There are three ways of removing an extension from string. They are as follows" }, { "code": null, "e": 142, "s": 107, "text": "Using an inbuilt function p...
How to create a table with clickable hyperlink to a local file in Pandas?
15 Mar, 2021 If you are familiar with Data Science or Machine Learning field then we can definitely say that we are going to learn something new from this article, So let’s begin. Here in this article, we will learn how to create a clickable hyperlink of the local file path using pandas. It is not a very complicated ta...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Mar, 2021" }, { "code": null, "e": 441, "s": 28, "text": "If you are familiar with Data Science or Machine Learning field then we can definitely say that we are going to learn something new from this article, So let’s begin. Here in ...
NaN in C++ – What is it and How to Check For it?
06 Jan, 2022 NaN, an acronym for Not a Number is an exception that usually occurs in the cases when an expression results in a number that is undefined or can’t be represented. It is used for floating-point operations. For example: The square root of negative numbers Division by zero Taking the log of zero or a negativ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jan, 2022" }, { "code": null, "e": 271, "s": 52, "text": "NaN, an acronym for Not a Number is an exception that usually occurs in the cases when an expression results in a number that is undefined or can’t be represented. It is used...
Check whether an array can be made strictly increasing by modifying atmost one element - GeeksforGeeks
29 Apr, 2021 Given an array arr[] of positive integers, the task is to find whether it is possible to make this array strictly increasing by modifying atmost one element.Examples: Input: arr[] = {2, 4, 8, 6, 9, 12} Output: Yes By modifying 8 to 5, array will become strictly increasing. i.e. {2, 4, 5, 6, 9, 12}Input: ...
[ { "code": null, "e": 25224, "s": 25196, "text": "\n29 Apr, 2021" }, { "code": null, "e": 25393, "s": 25224, "text": "Given an array arr[] of positive integers, the task is to find whether it is possible to make this array strictly increasing by modifying atmost one element.Exampl...
Product of middle row and column in an odd square matrix in C
Given a square matrix, mat[row][column] where row and column are equal and are of odd length means the number of row and column must me odd, i.e, not divisible by 2, the task is to find the product of middle row and middle column of that matrix. Like in the given figure below − Matrix must be a square matrix. Matrix mu...
[ { "code": null, "e": 1308, "s": 1062, "text": "Given a square matrix, mat[row][column] where row and column are equal and are of odd length means the number of row and column must me odd, i.e, not divisible by 2, the task is to find the product of middle row and middle column of that matrix." }, ...
Ext.js - First Program
This chapter lists down the steps to write the first Hello World program in Ext JS. Create an index.htm page in the editor of our choice. Include the required library files in the head section of html page as follows. <!DOCTYPE html> <html> <head> <link href = "https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0....
[ { "code": null, "e": 2107, "s": 2023, "text": "This chapter lists down the steps to write the first Hello World program in Ext JS." }, { "code": null, "e": 2241, "s": 2107, "text": "Create an index.htm page in the editor of our choice. Include the required library files in the he...
Plotly - Slider Control
Plotly has a convenient Slider that can be used to change the view of data/style of a plot by sliding a knob on the control which is placed at the bottom of rendered plot. Slider control is made up of different properties which are as follows − steps property is required for defining sliding positions of knob over the ...
[ { "code": null, "e": 2532, "s": 2360, "text": "Plotly has a convenient Slider that can be used to change the view of data/style of a plot by sliding a knob on the control which is placed at the bottom of rendered plot." }, { "code": null, "e": 2605, "s": 2532, "text": "Slider con...
How to print current date and time in a JSP page?
With JSP program, it is very easy to get the current date and the time. You can use a simple Date object with the toString() method to print the current date and the time as follows − Live Demo <%@ page import = "java.io.*,java.util.*, javax.servlet.*" %> <html> <head> <title>Display Current Date & Time</titl...
[ { "code": null, "e": 1246, "s": 1062, "text": "With JSP program, it is very easy to get the current date and the time. You can use a simple Date object with the toString() method to print the current date and the time as follows −" }, { "code": null, "e": 1257, "s": 1246, "text":...
ML | Log Loss and Mean Squared Error - GeeksforGeeks
20 Jun, 2019 It is the evaluation measure to check the performance of the classification model. It measures the amount of divergence of predicted probability with the actual label. So lesser the log loss value, more the perfectness of model. For a perfect model, log loss value = 0. For instance, as accuracy is the coun...
[ { "code": null, "e": 24600, "s": 24572, "text": "\n20 Jun, 2019" }, { "code": null, "e": 25098, "s": 24600, "text": "It is the evaluation measure to check the performance of the classification model. It measures the amount of divergence of predicted probability with the actual la...
Understanding the ROC Curve and AUC | by Doug Steen | Towards Data Science
The receiver operating characteristic (ROC) curve is frequently used for evaluating the performance of binary classification algorithms. It provides a graphical representation of a classifier’s performance, rather than a single value like most other metrics. First, let’s establish that in binary classification, there a...
[ { "code": null, "e": 431, "s": 172, "text": "The receiver operating characteristic (ROC) curve is frequently used for evaluating the performance of binary classification algorithms. It provides a graphical representation of a classifier’s performance, rather than a single value like most other metri...
Decision Tree: build, prune and visualize it using Python | by Gustavo Hideo | Towards Data Science
Binary Tree is one of the most common and powerful data structures of the computing world. The main reason machine learning engineers like decision trees so much is that it has a low cost to process and it’s really easy to understand (it’s transparent, in opposition to the “black box” from the neural network). It uses ...
[ { "code": null, "e": 734, "s": 171, "text": "Binary Tree is one of the most common and powerful data structures of the computing world. The main reason machine learning engineers like decision trees so much is that it has a low cost to process and it’s really easy to understand (it’s transparent, in...
VB.Net - Classes & Objects
When you define a class, you define a blueprint for a data type. This doesn't actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an object. Objects are instances of a class. The methods and variables t...
[ { "code": null, "e": 2559, "s": 2300, "text": "When you define a class, you define a blueprint for a data type. This doesn't actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an ob...
How to install a Python package into a different directory using pip?
You can specify the install-option CLI argument to set the prefix path of the installation directory while installing a new module. For example, if you want to install your package to /tmp, then run the following command − pip install --install-option="--prefix=/tmp" package_name
[ { "code": null, "e": 1285, "s": 1062, "text": "You can specify the install-option CLI argument to set the prefix path of the installation directory while installing a new module. For example, if you want to install your package to /tmp, then run the following command −" }, { "code": null, ...
Exposed Drop-Down Menu in Android - GeeksforGeeks
23 Jun, 2021 The Exposed Drop-Down menu is the replacement for Spinner in Android because Spinner is not that customizable like the new exposed Drop-Down menu. Below is the sample GIF to give an idea of what we are going to build. Note that we are going to implement this project using the Kotlin language. Step 1: Creat...
[ { "code": null, "e": 25070, "s": 25042, "text": "\n23 Jun, 2021" }, { "code": null, "e": 25364, "s": 25070, "text": "The Exposed Drop-Down menu is the replacement for Spinner in Android because Spinner is not that customizable like the new exposed Drop-Down menu. Below is the sam...
How to convert a String to an InputStream object in Java?
A ByteArrayInputStream is a subclass of InputStream class and it contains an internal buffer that contains bytes that may be read from the stream. We can convert a String to an InputStream object by using the ByteArrayInputStream class. This class constructor takes the string byte array which can be done by calling the...
[ { "code": null, "e": 1420, "s": 1062, "text": "A ByteArrayInputStream is a subclass of InputStream class and it contains an internal buffer that contains bytes that may be read from the stream. We can convert a String to an InputStream object by using the ByteArrayInputStream class. This class const...
Solidity - Deploy a Smart Contract for Marks Management System - GeeksforGeeks
22 Sep, 2021 Solidity is a high-level language. The structure of smart contracts in solidity is very similar to the structure of classes in object-oriented languages. The solidity file has an extension .sol. What are Smart Contracts? Solidity’s code is encapsulated in contracts which means a contract in Solidity is a ...
[ { "code": null, "e": 25931, "s": 25903, "text": "\n22 Sep, 2021" }, { "code": null, "e": 26127, "s": 25931, "text": "Solidity is a high-level language. The structure of smart contracts in solidity is very similar to the structure of classes in object-oriented languages. The solid...
Remove Axis Labels using ggplot2 in R - GeeksforGeeks
06 Jun, 2021 In this article, we are going to see how to remove axis labels of the ggplot2 plot in the R programming language. We will use theme() function from ggplot2 package. In this approach to remove the ggplot2 plot labels, the user first has to import and load the ggplot2 package in the R console, which is a pre...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n06 Jun, 2021" }, { "code": null, "e": 26601, "s": 26487, "text": "In this article, we are going to see how to remove axis labels of the ggplot2 plot in the R programming language." }, { "code": null, "e": 27073, "...
Carpet Plots using Plotly in Python - GeeksforGeeks
01 Oct, 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 c...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n01 Oct, 2020" }, { "code": null, "e": 25841, "s": 25537, "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, ...
Julia Constructors - GeeksforGeeks
26 Mar, 2020 Constructors in Julia are functions that are used to create objects. They are specifically used to create instances of objects of Composite Types. A composite type is a collection of named fields, which can also be treated as single values. Julia allows creating type objects as constructors when they are a...
[ { "code": null, "e": 25521, "s": 25493, "text": "\n26 Mar, 2020" }, { "code": null, "e": 26049, "s": 25521, "text": "Constructors in Julia are functions that are used to create objects. They are specifically used to create instances of objects of Composite Types. A composite type...
JavaScript Course | Interaction With User - GeeksforGeeks
29 Apr, 2019 Previous article: JavaScript Course | Practice Quiz-1Javascript allows us the privilege with which we can interact with the user and respond accordingly. It includes several user-interface functions which help in the interaction. Let’s take a look at them one by one. alertsimply creates an alert box which ...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n29 Apr, 2019" }, { "code": null, "e": 26813, "s": 26545, "text": "Previous article: JavaScript Course | Practice Quiz-1Javascript allows us the privilege with which we can interact with the user and respond accordingly. It includ...
Reversing a Queue using another Queue - GeeksforGeeks
28 Dec, 2021 Given a queue. The task is to reverse the queue using another another empty queue. Examples: Input: queue[] = {1, 2, 3, 4, 5} Output: 5 4 3 2 1 Input: queue[] = {10, 20, 30, 40} Output: 40 30 20 10 Approach: Given a queue and an empty queue. The last element of the queue should be the first element of ...
[ { "code": null, "e": 26357, "s": 26329, "text": "\n28 Dec, 2021" }, { "code": null, "e": 26440, "s": 26357, "text": "Given a queue. The task is to reverse the queue using another another empty queue." }, { "code": null, "e": 26451, "s": 26440, "text": "Example...
Collections synchronizedMap() method in Java with Examples - GeeksforGeeks
06 May, 2020 The synchronizedMap() method of java.util.Collections class is used to return a synchronized (thread-safe) map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map. Syntax: public static <K, V> Map<K, V>...
[ { "code": null, "e": 25846, "s": 25818, "text": "\n06 May, 2020" }, { "code": null, "e": 26115, "s": 25846, "text": "The synchronizedMap() method of java.util.Collections class is used to return a synchronized (thread-safe) map backed by the specified map. In order to guarantee s...
How to Abort a Command Execution in Command Prompt? - GeeksforGeeks
17 Sep, 2021 Command Prompt is an interpreter which helps us to execute various commands and functions. These commands may include diskpart, install, cls, etc. Using Command Prompt, we can perform a variety of functions, eg, formatting any drive/Pendrive or compiling any file, or getting IP address using ip-config. But...
[ { "code": null, "e": 26097, "s": 26069, "text": "\n17 Sep, 2021" }, { "code": null, "e": 26401, "s": 26097, "text": "Command Prompt is an interpreter which helps us to execute various commands and functions. These commands may include diskpart, install, cls, etc. Using Command Pr...
How to set & unset session variable in codeigniter ? - GeeksforGeeks
07 Jan, 2022 The session class in CodeIgniter allows the user to maintain a user’s “state” and track their activity while browsing the website. The session can be initialized using the library and auto-loaded in the environment using the following command. $this->load->library('session'); Set the session variable: Sess...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n07 Jan, 2022" }, { "code": null, "e": 26461, "s": 26217, "text": "The session class in CodeIgniter allows the user to maintain a user’s “state” and track their activity while browsing the website. The session can be initialized u...
Minimum number of swaps required to sort an array - GeeksforGeeks
28 Mar, 2022 Given an array of n distinct elements, find the minimum number of swaps required to sort the array. Examples: Input: {4, 3, 2, 1} Output: 2 Explanation: Swap index 0 with 3 and 1 with 2 to form the sorted array {1, 2, 3, 4}. Input: {1, 5, 4, 3, 2} Output: 2 This can be easily done by visua...
[ { "code": null, "e": 26315, "s": 26287, "text": "\n28 Mar, 2022" }, { "code": null, "e": 26415, "s": 26315, "text": "Given an array of n distinct elements, find the minimum number of swaps required to sort the array." }, { "code": null, "e": 26426, "s": 26415, ...
How to use Zoom Component in ReactJS ? - GeeksforGeeks
22 Feb, 2021 Zoom Component adds a Zoom animation to a child element or component. Material UI for React has this component available for us, and it is very easy to integrate. We can use the Zoom Component in ReactJS using the following approach. Creating React Application And Installing Module: Step 1: Create a React ...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n22 Feb, 2021" }, { "code": null, "e": 26305, "s": 26071, "text": "Zoom Component adds a Zoom animation to a child element or component. Material UI for React has this component available for us, and it is very easy to integrate. ...
What does immutable mean? Which Python types are mutable and which are not?
In Python, there are two types of Objects. Mutable Object Immutable Object Mutable: Mutable objects are modified, (i.e) objects are a changeable list, set, dict, etc are mutable. mutable objects are easy to change. list =["Tutorials ","Point", "Pvt","Ltd"] list[2]= 'Tutorix' list ['Tutorials ', 'Point', 'Tutorix', 'Ltd...
[ { "code": null, "e": 1105, "s": 1062, "text": "In Python, there are two types of Objects." }, { "code": null, "e": 1120, "s": 1105, "text": "Mutable Object" }, { "code": null, "e": 1137, "s": 1120, "text": "Immutable Object" }, { "code": null, "e":...
How to generate Unique ID of device for iPhone/iPad using Swift?
UDID(Unique Device Identifier) − A sequence of 40 hexadecimal characters that uniquely identify an iOS device. Since from iOS 5, Apple has deprecated the UIDevice unique identifier, that means the traditional way of getting the unique id. Apple removed the truly unique identifier and introduced an identifier for each v...
[ { "code": null, "e": 1173, "s": 1062, "text": "UDID(Unique Device Identifier) − A sequence of 40 hexadecimal characters that uniquely identify an iOS device." }, { "code": null, "e": 1514, "s": 1173, "text": "Since from iOS 5, Apple has deprecated the UIDevice unique identifier, ...
How do you create a legend for a contour plot in Matplotlib?
To create a legend for a contour plot in matplotlib, we can take the following steps− Create x, y and z data points to plot the contour function. To create a 3D filled contour plot, we can use contourf() method with x, y, z and different levels. Make a list of rectangle with the returned contour signature collection an...
[ { "code": null, "e": 1148, "s": 1062, "text": "To create a legend for a contour plot in matplotlib, we can take the following steps−" }, { "code": null, "e": 1208, "s": 1148, "text": "Create x, y and z data points to plot the contour function." }, { "code": null, "e":...
Display Content on hovering Card using CSS - GeeksforGeeks
01 Sep, 2021 In this article, we will see how we can create a card which displays content on hovering using the hover property using HTML and CSS. HTML Code: In this section, we will create the structure of our HTML card. Create a “div” with class name “card”.Create another “div” inside the main “div” with class name...
[ { "code": null, "e": 24985, "s": 24957, "text": "\n01 Sep, 2021" }, { "code": null, "e": 25119, "s": 24985, "text": "In this article, we will see how we can create a card which displays content on hovering using the hover property using HTML and CSS." }, { "code": null, ...
C Program - Sum of digits of given number till single digit - 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 C Program to print the sum of digits till sin...
[ { "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, ...
Simulating Monopoly: Finding the Best Properties Using MATLAB | by Jake Mitchell | Towards Data Science
With 40 spaces, and 28 different properties, Monopoly may seem completely random at first, but there are certain properties that can be more beneficial to you over the course of a game. I wanted to find which properties these were using a MATLAB simulation of 10,000,000 dice rolls. I simulate two dice being rolled usin...
[ { "code": null, "e": 455, "s": 172, "text": "With 40 spaces, and 28 different properties, Monopoly may seem completely random at first, but there are certain properties that can be more beneficial to you over the course of a game. I wanted to find which properties these were using a MATLAB simulatio...
Tcl - Logical Operators
Following table shows all the logical operators supported by Tcl language. Assume variable A holds 1 and variable B holds 0, then − Try the following example to understand all the logical operators available in Tcl language − #!/usr/bin/tclsh set a 5 set b 20 if { $a && $b } { puts "Line 1 - Condition is true\n" ...
[ { "code": null, "e": 2333, "s": 2201, "text": "Following table shows all the logical operators supported by Tcl language. Assume variable A holds 1 and variable B holds 0, then −" }, { "code": null, "e": 2427, "s": 2333, "text": "Try the following example to understand all the lo...
Remove Duplicates from Sorted Array II in C++
Suppose we have a sorted array nums, we have to remove the duplicates in-place such that duplicates elements will appear at most twice and return the new length. To do this task we cannot take extra space. We have to solve this with O(1) amount of space. For example, if the array is like [0,0,0,1,1,1,1,2,3,3], then the...
[ { "code": null, "e": 1431, "s": 1062, "text": "Suppose we have a sorted array nums, we have to remove the duplicates in-place such that duplicates elements will appear at most twice and return the new length. To do this task we cannot take extra space. We have to solve this with O(1) amount of space...
Unix / Linux - User Administration
In this chapter, we will discuss in detail about user administration in Unix. There are three types of accounts on a Unix system − This is also called superuser and would have complete and unfettered control of the system. A superuser can run any commands without any restriction. This user should be assumed as a system...
[ { "code": null, "e": 2825, "s": 2747, "text": "In this chapter, we will discuss in detail about user administration in Unix." }, { "code": null, "e": 2878, "s": 2825, "text": "There are three types of accounts on a Unix system −" }, { "code": null, "e": 3083, "s":...
How to Convert Vector to Array in Java? - GeeksforGeeks
15 Nov, 2021 As we all know an array is a group of liked-typed variables that are referred to by a common name while on the other hand vectors basically fall in legacy classes but now it is fully compatible with collections. It is found in java.util package and implement the List interface which gives a superior advant...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n15 Nov, 2021" }, { "code": null, "e": 24858, "s": 24316, "text": "As we all know an array is a group of liked-typed variables that are referred to by a common name while on the other hand vectors basically fall in legacy classes ...
Filter Python list by Predicate in Python - GeeksforGeeks
19 Dec, 2021 In this article, we will discuss how to filter a python list by using predicate. Filter function is used to filter the elements in the given list of elements with the help of a predicate. A predicate is a function that always returns True or False by performing some condition operations in a filter method ...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n19 Dec, 2021" }, { "code": null, "e": 24626, "s": 24318, "text": "In this article, we will discuss how to filter a python list by using predicate. Filter function is used to filter the elements in the given list of elements with ...
Merge two sorted linked lists using C++.
Given 2 sorted singly linked list. Write a function to merge given two sorted linked lists List1: 10->15->17->20 List2: 5->9->13->19 Result: 5->9->10->13->15->17->19->20 1. Traverse both lists 1.1. If list1->data < list2->data 1.1.1 Add list1->data to new list and increment list1 pointer 1.2 If list2->data ...
[ { "code": null, "e": 1153, "s": 1062, "text": "Given 2 sorted singly linked list. Write a function to merge given two sorted linked lists" }, { "code": null, "e": 1232, "s": 1153, "text": "List1: 10->15->17->20\nList2: 5->9->13->19\nResult: 5->9->10->13->15->17->19->20" }, { ...
chvt command in Linux with examples - GeeksforGeeks
15 May, 2019 chvt command in Linux systems is used to switch between the different TTY (TeleTYpewriter) terminals available. These are essentially Virtual Terminals, which are toggled when the keys Ctrl + Alt + FunKey(1-6) are pressed. There are usually 6 TTY terminals, and the chvt command is used to switch between th...
[ { "code": null, "e": 24406, "s": 24378, "text": "\n15 May, 2019" }, { "code": null, "e": 24762, "s": 24406, "text": "chvt command in Linux systems is used to switch between the different TTY (TeleTYpewriter) terminals available. These are essentially Virtual Terminals, which are ...
Powershell - Start-Sleep Cmdlet
Start-Sleep cmdlet suspends the activity in a script or session for the particular period of time. In these examples, we're see the Start-Sleep cmdlet in action. In this example, we'll suspend the current process for 15 seconds. Start-Sleep -s 15 You can see PowerShell console resumes after 15 seconds. In this example,...
[ { "code": null, "e": 2133, "s": 2034, "text": "Start-Sleep cmdlet suspends the activity in a script or session for the particular period of time." }, { "code": null, "e": 2196, "s": 2133, "text": "In these examples, we're see the Start-Sleep cmdlet in action." }, { "code"...
Convert DateTime Value into String in MySQL?
To convert the DateTime value into string in MySQL, you can use the DATE_FORMAT() function. The syntax is as follows − select date_format(yourColumnName, ‘%d %m %y’) as anyVariableName from yourTableName; To understand the above concept, let us create a table. The query to create a table is as follows − mysql> create t...
[ { "code": null, "e": 1181, "s": 1062, "text": "To convert the DateTime value into string in MySQL, you can use the DATE_FORMAT() function. The syntax is as follows −" }, { "code": null, "e": 1267, "s": 1181, "text": "select date_format(yourColumnName, ‘%d %m %y’) as anyVariableNa...
Python - First occurrence of one list in another - GeeksforGeeks
24 Feb, 2021 Given two lists, the task is to write a Python program to extract the first element that occurs in list 1 from list 2. Examples: Input : test_list1 = [1, 6, 3, 7, 8, 9, 2], test_list2 = [4, 10, 8, 2, 0, 11] Output : 8 Explanation : 8 is first element from list 2, that occurs in list 1, in 5th index. Input ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n24 Feb, 2021" }, { "code": null, "e": 24411, "s": 24292, "text": "Given two lists, the task is to write a Python program to extract the first element that occurs in list 1 from list 2." }, { "code": null, "e": 24421, ...
Tk - Spinbox Widget
Spinbox widget allows users to choose numbers or arbitrary values. The syntax for spinbox widget is shown below. spinbox spinboxName options The options available for the spinbox widget are listed below in table. -background color Used to set background color for widget. -borderwidth width Used to draw with border in...
[ { "code": null, "e": 2315, "s": 2201, "text": "Spinbox widget allows users to choose numbers or arbitrary values. The syntax for spinbox widget is shown below." }, { "code": null, "e": 2344, "s": 2315, "text": "spinbox spinboxName options\n" }, { "code": null, "e": 2...
Maven - Snapshots
A large software application generally consists of multiple modules and it is common scenario where multiple teams are working on different modules of same application. For example, consider a team is working on the front end of the application as app-ui project (app-ui.jar:1.0) and they are using data-service project ...
[ { "code": null, "e": 2404, "s": 2060, "text": "A large software application generally consists of multiple modules and it is common scenario where multiple teams are working on different modules of same application. For example, consider a team is working on the front end of the application as app-u...
Perl return Function
This function returns EXPR at the end of a subroutine, block, or do function. EXPR may be a scalar, array, or hash value; context will be selected at execution time. If no EXPR is given, returns an empty list in list context, undef in scalar context, or nothing in a void context. Following is the simple syntax for this...
[ { "code": null, "e": 2501, "s": 2220, "text": "This function returns EXPR at the end of a subroutine, block, or do function. EXPR may be a scalar, array, or hash value; context will be selected at execution time. If no EXPR is given, returns an empty list in list context, undef in scalar context, or...
Block-level Elements and Block Boxes in CSS
Block-level elements have their CSS display property set to either ‘block’, ‘list-item’, or ‘table’ and these elements force a line break above and below themselves. Block-level boxes are generated by each block-level element which is a part of the positioning scheme as well as contains child boxes. Block container box...
[ { "code": null, "e": 1363, "s": 1062, "text": "Block-level elements have their CSS display property set to either ‘block’, ‘list-item’, or ‘table’ and these elements force a line break above and below themselves. Block-level boxes are generated by each block-level element which is a part of the posi...
Git Branch
In Git, a branch is a new/separate version of the main repository. Let's say you have a large project, and you need to update the design on it. How would that work without and with Git: Without Git: Make copies of all the relevant files to avoid impacting the live version Start working with the design and find that cod...
[ { "code": null, "e": 67, "s": 0, "text": "In Git, a branch is a new/separate version of the main repository." }, { "code": null, "e": 144, "s": 67, "text": "Let's say you have a large project, and you need to update the design on it." }, { "code": null, "e": 186, ...
How to get creation and modification date/time of a file using Python?
To get the creation time of a file, you can use the os.path.getctime(file_path) on windows. On UNIX systems, you cant use the same function as it returns the last time that the file's attributes or content were changed. To get the creation time on UNIX based systems, use the st_birthtime attribute of the stat tuple. On...
[ { "code": null, "e": 1380, "s": 1062, "text": "To get the creation time of a file, you can use the os.path.getctime(file_path) on windows. On UNIX systems, you cant use the same function as it returns the last time that the file's attributes or content were changed. To get the creation time on UNIX ...
Java Program to Sort a HashMap by Keys and Values - GeeksforGeeks
08 Jun, 2021 HashMap<K, V> is a Java Collection and is a part of java.util package. It provides the basic implementation of the Map interface of Java. It stores the data in the form of Key, Value pairs, where the keys must be unique but there is no restriction for values. If we try to insert the duplicate key, it will ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n08 Jun, 2021" }, { "code": null, "e": 23910, "s": 23557, "text": "HashMap<K, V> is a Java Collection and is a part of java.util package. It provides the basic implementation of the Map interface of Java. It stores the data in the...
What is the difference between ODBC and JDBC
Both ODBC and JDBC are the programming interface that is required by the applications at the client side to access the database at server side. Basically both are known as drivers to get connected with a database and are provided by the vendors of RDBMS. The following are the important differences between ODBC and JDBC...
[ { "code": null, "e": 1317, "s": 1062, "text": "Both ODBC and JDBC are the programming interface that is required by the applications at the client side to access the database at server side. Basically both are known as drivers to get connected with a database and are provided by the vendors of RDBMS...
Circular Linked List Program in C
Circular Linked List is a variation of Linked list in which the first element points to the last element and the last element points to the first element. Both Singly Linked List and Doubly Linked List can be made into a circular linked list. #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool....
[ { "code": null, "e": 2823, "s": 2580, "text": "Circular Linked List is a variation of Linked list in which the first element points to the last element and the last element points to the first element. Both Singly Linked List and Doubly Linked List can be made into a circular linked list." }, { ...
Back-off Algorithm for CSMA/CD
Back Off Algorithm is an algorithm used for collision resolution. It works as, When this collision occurs, both the devices wait for a random amount of time before retransmitting the signal again, they keep on trying until the data is transferred successfully. This is called back off, since the nodes ‘back-off’ for a c...
[ { "code": null, "e": 1141, "s": 1062, "text": "Back Off Algorithm is an algorithm used for collision resolution. It works as," }, { "code": null, "e": 1558, "s": 1141, "text": "When this collision occurs, both the devices wait for a random amount of time before retransmitting the...
How to get time difference between two timestamps in seconds?
To get the time difference between two timestamps, try to run the following code. Here, we are calculating the total number of hours, minutes and seconds between two timestamps − Live Demo <html> <head> <title>JavaScript Dates</title> </head> <body> <script> var date1, date2; ...
[ { "code": null, "e": 1241, "s": 1062, "text": "To get the time difference between two timestamps, try to run the following code. Here, we are calculating the total number of hours, minutes and seconds between two timestamps −" }, { "code": null, "e": 1251, "s": 1241, "text": "Liv...
How to combine multiple columns into one in R data frame without using column names?
To combine multiple columns into one in R data frame without using column names, we can follow the below steps − First of all, create a data frame. Then, convert the data frame into a single column data frame. Again, convert the data frame into a single column without column names displayed in rows using row.names func...
[ { "code": null, "e": 1175, "s": 1062, "text": "To combine multiple columns into one in R data frame without using column names, we\ncan follow the below steps −" }, { "code": null, "e": 1210, "s": 1175, "text": "First of all, create a data frame." }, { "code": null, "...
nCr | Practice | GeeksforGeeks
Given two integers n and r, find nCr. Since the answer may be very large, calculate the answer modulo 109+7. Example 1: Input: n = 3, r = 2 Output: 3 Explaination: 3C2 = 3. Example 2: Input: n = 2, r = 4 Output: 0 Explaination: r is greater than n. Your Task: You do not need to take input or print anything. Your tas...
[ { "code": null, "e": 347, "s": 238, "text": "Given two integers n and r, find nCr. Since the answer may be very large, calculate the answer modulo 109+7." }, { "code": null, "e": 358, "s": 347, "text": "Example 1:" }, { "code": null, "e": 412, "s": 358, "text"...
How to check if two data frames same or not in R?
Two data frames can be same if the column names, row names and all the values in the data frame are exactly same. We might to check this for data frames that we expect to be same, for example, if we have two data sets each one of have same number of rows, same number of columns, same data type for each of the columns, ...
[ { "code": null, "e": 1558, "s": 1062, "text": "Two data frames can be same if the column names, row names and all the values in the data frame are exactly same. We might to check this for data frames that we expect to be same, for example, if we have two data sets each one of have same number of row...
String getBytes(String charsetName)
This method encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array. Here is the syntax of this method − public byte[] getBytes(String charsetName) throws UnsupportedEncodingException Here is the detail of parameters − charsetName − the name of a supported charset...
[ { "code": null, "e": 2501, "s": 2377, "text": "This method encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array." }, { "code": null, "e": 2537, "s": 2501, "text": "Here is the syntax of this method −" }, { "code": ...
Ruby on Rails - Session and Cookies
To save data across multiple requests, you can use either the session or the flash hashes. A flash stores a value (normally text) until the next request, while a session stores data during the complete session. session[:user] = @user flash[:message] = "Data was saved successfully" <%= link_to "login", :action => 'logi...
[ { "code": null, "e": 2314, "s": 2103, "text": "To save data across multiple requests, you can use either the session or the flash hashes. A flash stores a value (normally text) until the next request, while a session stores data during the complete session." }, { "code": null, "e": 2522,...
Writing a custom data augmentation layer in Keras | by Lak Lakshmanan | Towards Data Science
Data augmentation can help an image ML model learn to handle variations of the image that are not in the training dataset. For example, it is likely that photographs provided to an ML model (especially if these are photographs by amateur photographers) will vary quite considerably in terms of lighting. We can therefore...
[ { "code": null, "e": 705, "s": 172, "text": "Data augmentation can help an image ML model learn to handle variations of the image that are not in the training dataset. For example, it is likely that photographs provided to an ML model (especially if these are photographs by amateur photographers) wi...
Extraction of Tweets using Tweepy - GeeksforGeeks
30 May, 2018 Introduction: Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secr...
[ { "code": null, "e": 25955, "s": 25927, "text": "\n30 May, 2018" }, { "code": null, "e": 26369, "s": 25955, "text": "Introduction: Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Twe...
C# | Replacing the value at a specific index in a SortedList object - GeeksforGeeks
01 Feb, 2019 SortedList.SetByIndex(Int32, Object) Method is used to replace the value at a specific index in a SortedList object. Syntax: public virtual void SetByIndex (int index, object value); Parameters: index: It is the zero-based index at which to save value. value: It is the Object to save into the SortedList ob...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n01 Feb, 2019" }, { "code": null, "e": 25664, "s": 25547, "text": "SortedList.SetByIndex(Int32, Object) Method is used to replace the value at a specific index in a SortedList object." }, { "code": null, "e": 25672, ...
How to add Matplotlib graph in Kivy ? - GeeksforGeeks
05 Apr, 2021 In this article, we will discuss how to add matplotlib graph in the kivy app. Import matplotlib pyplot Import numpy Import FigureCanvas KivyAgg Import kivy app Import kivy builder Create App class Return builder string Run an instance of the class Below is the Implementation. Python3 # im...
[ { "code": null, "e": 25635, "s": 25604, "text": " \n05 Apr, 2021\n" }, { "code": null, "e": 25713, "s": 25635, "text": "In this article, we will discuss how to add matplotlib graph in the kivy app." }, { "code": null, "e": 25738, "s": 25713, "text": "Import ma...
GATE CS 2021 | Set 1 - GeeksforGeeks
17 Sep, 2021 (i) Everybody in the class is prepared for the exam. (ii) Babu invited Danish to his home because he enjoys playing chess. Pillar in Y-axis is longer than pillar in X-axis Pillar in Y is horizontal and pillar in Y is vertical Profit% = ((Selling price – Cost)/Cost)×100 Statement 1: All bacteria are microo...
[ { "code": null, "e": 28855, "s": 28827, "text": "\n17 Sep, 2021" }, { "code": null, "e": 28908, "s": 28855, "text": "(i) Everybody in the class is prepared for the exam." }, { "code": null, "e": 28978, "s": 28908, "text": "(ii) Babu invited Danish to his home ...
Repunit numbers - GeeksforGeeks
16 Jul, 2021 A number is a Repunit in base B if it can be represented as a string of three or more 1’s in a base >= 2. Given an integer N, the task is to check if N is a Repunit number in base B.Examples: Input: N = 31, B = 5 Output: Yes 31 can be written as 111 base in 5Input: N = 5, B = 2 Output: No 5 is 101 in ba...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n16 Jul, 2021" }, { "code": null, "e": 26044, "s": 25937, "text": "A number is a Repunit in base B if it can be represented as a string of three or more 1’s in a base >= 2. " }, { "code": null, "e": 26132, "s": 260...
Greatest Integer Function - GeeksforGeeks
19 May, 2021 The greatest Integer Function [X] indicates an integral part of the real number which is the nearest and smaller integer to . It is also known as the floor of X.[x]=the largest integer that is less than or equal to x.In general: If, <= < . Then, This means if X lies in [n, n+1), then the Greatest Integer F...
[ { "code": null, "e": 25962, "s": 25934, "text": "\n19 May, 2021" }, { "code": null, "e": 26295, "s": 25962, "text": "The greatest Integer Function [X] indicates an integral part of the real number which is the nearest and smaller integer to . It is also known as the floor of X.[x...
Underscore.js _.union() Function - GeeksforGeeks
24 Nov, 2021 The Underscore.js is a JavaScript library that provides a lot of useful functions like the map, filter, invoke etc even without using any built-in objects.The _.union() function is used to take n number of arrays and return a new array with the unique terms in all those arrays (union of all array). In the ...
[ { "code": null, "e": 34847, "s": 34819, "text": "\n24 Nov, 2021" }, { "code": null, "e": 35321, "s": 34847, "text": "The Underscore.js is a JavaScript library that provides a lot of useful functions like the map, filter, invoke etc even without using any built-in objects.The _.un...
Node.js MySQL Insert into Table - GeeksforGeeks
07 Oct, 2021 NodeJs: An open-source platform for executing javascript code on the server side. Also, a javascript runtime built on Chrome’s V8 JavaScript engine. It can be downloaded from here. Mysql An open-source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). It is the most ...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n07 Oct, 2021" }, { "code": null, "e": 26749, "s": 26267, "text": "NodeJs: An open-source platform for executing javascript code on the server side. Also, a javascript runtime built on Chrome’s V8 JavaScript engine. It can be down...
random.normalvariate() function in Python - GeeksforGeeks
26 May, 2020 random module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these randomly generated numbers can be determined. normalvariate() is an inbuilt method of the random module. It is used to return a random floating poi...
[ { "code": null, "e": 25047, "s": 25019, "text": "\n26 May, 2020" }, { "code": null, "e": 25253, "s": 25047, "text": "random module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these ran...
Python | List frequency of elements - GeeksforGeeks
18 Jan, 2022 Sometimes we have the utility in which we require to find the frequency of elements in the list and the solution to this problem has been discussed many times. But sometimes we come across the task in which we require to find the number of lists that particular elements occur. Let’s discuss certain shortha...
[ { "code": null, "e": 26093, "s": 26065, "text": "\n18 Jan, 2022" }, { "code": null, "e": 26432, "s": 26093, "text": "Sometimes we have the utility in which we require to find the frequency of elements in the list and the solution to this problem has been discussed many times. But...
Sum of fourth powers of the first n natural numbers - GeeksforGeeks
31 Mar, 2021 Write a program to find the sum of fourth powers of the first n natural numbers 14 + 24 + 34 + 44 + .......+ n4 till n-th term.Examples : Input : 4 Output : 354 14 + 24 + 34 + 44 = 354 Input : 6 Output : 2275 14 + 24 + 34 + 44+ 54+ 64 = 2275 Naive Approach :- Simple finding the fourth powers of the ...
[ { "code": null, "e": 26771, "s": 26743, "text": "\n31 Mar, 2021" }, { "code": null, "e": 26911, "s": 26771, "text": "Write a program to find the sum of fourth powers of the first n natural numbers 14 + 24 + 34 + 44 + .......+ n4 till n-th term.Examples : " }, { "code": n...
C Program for Naive algorithm for Pattern Searching - GeeksforGeeks
11 Dec, 2018 Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m. Examples: Input: txt[] = "THIS IS A TEST TEXT" pat[] = "TEST" Output: Pattern found at index 10 Input: txt[] = "AABAACAAD...
[ { "code": null, "e": 25839, "s": 25811, "text": "\n11 Dec, 2018" }, { "code": null, "e": 26013, "s": 25839, "text": "Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume t...
R - Check if a Directory Exists and Create if It does not - GeeksforGeeks
30 Apr, 2021 Directories and sub-directories are accessed by their corresponding paths in R Programming Language. It is easy to work with these in R and perform operations related to the creation, copy, and movement of folders and sub-folders within the system. In this article, we will see how to check if a directory e...
[ { "code": null, "e": 25883, "s": 25855, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26281, "s": 25883, "text": "Directories and sub-directories are accessed by their corresponding paths in R Programming Language. It is easy to work with these in R and perform operations rela...
Matplotlib.axes.Axes.get_xscale() in Python - GeeksforGeeks
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n19 Apr, 2020" }, { "code": null, "e": 25837, "s": 25537, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ...
Implementing PCA in Python with scikit-learn - GeeksforGeeks
23 Sep, 2021 In this article, we will learn about PCA (Principal Component Analysis) in Python with scikit-learn. Let’s start our learning step by step. WHY PCA? When there are many input attributes, it is difficult to visualize the data. There is a very famous term ‘Curse of dimensionality in the machine learning doma...
[ { "code": null, "e": 25615, "s": 25587, "text": "\n23 Sep, 2021" }, { "code": null, "e": 25755, "s": 25615, "text": "In this article, we will learn about PCA (Principal Component Analysis) in Python with scikit-learn. Let’s start our learning step by step." }, { "code": n...
How to Check if the Battery is Charging or Not in Android Programmatically? - GeeksforGeeks
23 Feb, 2021 The charging status can change as quickly as a device can be plugged in, so it’s crucial to monitor the charging state for changes and alter your refresh rate accordingly. The BatteryManager broadcasts an action whenever the device is connected or disconnected from power. It is important to receive these e...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n23 Feb, 2021" }, { "code": null, "e": 27236, "s": 26381, "text": "The charging status can change as quickly as a device can be plugged in, so it’s crucial to monitor the charging state for changes and alter your refresh rate acco...
PHP | Reverse a String
31 Dec, 2017 PHP serves us with many built-in methods which can be used to manipulate strings. In this article, we will learn about how to reverse a string using various methods available in PHP. Examples: Input : GeeksforGeeks Output : skeeGrofskeeG Input : 12485 Output : 58421 Below we have discussed about three ba...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Dec, 2017" }, { "code": null, "e": 211, "s": 28, "text": "PHP serves us with many built-in methods which can be used to manipulate strings. In this article, we will learn about how to reverse a string using various methods available ...
How to Create Options Menu for RecyclerView in Android using Kotlin?
24 Mar, 2021 RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 support packages. It has been created to make possible construction of any lists with XML layouts as an item that can be customized va...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Mar, 2021" }, { "code": null, "e": 895, "s": 28, "text": "RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 su...
Python – Sympy Polygon.intersection() Method
01 Aug, 2020 In Sympy, the function Polygon.intersection() is used to get the intersection of a given polygon and the given geometry entity. The geometry entity can be a point, line, polygon, or other geometric figures. The intersection may be empty if the polygon and the given geometry entity are not intersected anywh...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2020" }, { "code": null, "e": 424, "s": 28, "text": "In Sympy, the function Polygon.intersection() is used to get the intersection of a given polygon and the given geometry entity. The geometry entity can be a point, line, polyg...
Program to get the Sum of series: 1 – x^2/2! + x^4/4! -.... upto nth term
03 Jun, 2022 This is a mathematical series program where a user must enter the number of terms up to which the sum of the series is to be found. Following this, we also need the value of x, which forms the base of the series. Examples: Input : x = 9, n = 10 Output : -5.1463 Input : x = 5, n = 15 Output : 0.2837 Simp...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Jun, 2022" }, { "code": null, "e": 267, "s": 53, "text": "This is a mathematical series program where a user must enter the number of terms up to which the sum of the series is to be found. Following this, we also need the value of ...
How to reload the current page without losing any form data with HTML?
The easiest way to reload the current page without losing form data, use WebStorage where you have -persistent storage (localStorage) or session-based (sessionStorage) which remains in memory until your web browser is closed. Try this when the page is about to reload, window.onbeforeunload = function() { localStorag...
[ { "code": null, "e": 1413, "s": 1187, "text": "The easiest way to reload the current page without losing form data, use WebStorage where you have -persistent storage (localStorage) or session-based (sessionStorage) which remains in memory until your web browser is closed." }, { "code": null,...
Maximum absolute difference between distinct elements in an Array
18 May, 2021 Given an array arr[] of N integers, the task is to find the maximum absolute difference between distinct elements of the array.Examples: Input: arr[] = {12, 10, 9, 45, 2, 10, 10, 45, 10} Output: 10 Explanation: Distinct elements of given array are 12, 9, 2. Therefore, the maximum absolute difference betwe...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 May, 2021" }, { "code": null, "e": 166, "s": 28, "text": "Given an array arr[] of N integers, the task is to find the maximum absolute difference between distinct elements of the array.Examples: " }, { "code": null, "e": ...
Python | Pandas Timestamp.to_julian_date
27 Jan, 2019 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 Timestamp.to_julian_date() function convert the given TimeStamp to a Julian Date. The ...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jan, 2019" }, { "code": null, "e": 242, "s": 28, "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 and makes imp...
GATE | GATE-CS-2015 (Set 2) | Question 65
02 May, 2019 A computer system implements a 40 bit virtual address, page size of 8 kilobytes, and a 128-entry translation look-aside buffer (TLB) organized into 32 sets each having four ways. Assume that the TLB tag does not store any process id. Theminimum length of the TLB tag in bits is _________(A) 20(B) 10(C) 11(D...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 May, 2019" }, { "code": null, "e": 389, "s": 54, "text": "A computer system implements a 40 bit virtual address, page size of 8 kilobytes, and a 128-entry translation look-aside buffer (TLB) organized into 32 sets each having four w...
Method Hiding in C#
19 Mar, 2019 As we already know about polymorphism and method overriding in C#. C# also provides a concept to hide the methods of the base class from derived class, this concept is known as Method Hiding. It is also known as Method Shadowing. In method hiding, you can hide the implementation of the methods of a base cl...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Mar, 2019" }, { "code": null, "e": 541, "s": 54, "text": "As we already know about polymorphism and method overriding in C#. C# also provides a concept to hide the methods of the base class from derived class, this concept is known ...
Pandas – Rolling mean by time interval
24 Oct, 2021 In this article, we will be looking at how to calculate the rolling mean of a dataframe by time interval using Pandas in Python. Pandas dataframe.rolling() is a function that helps us to make calculations on a rolling window. In other words, we take a window of a fixed size and perform some mathematical c...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Oct, 2021" }, { "code": null, "e": 182, "s": 52, "text": " In this article, we will be looking at how to calculate the rolling mean of a dataframe by time interval using Pandas in Python." }, { "code": null, "e": 378, ...
Instant plus() method in Java with Examples
27 Dec, 2018 In Instant class, there are two types of plus() method depending upon the parameters passed to it. plus() method of a Instant class used to return a copy of this instant with the specified amount of unit added.If it is not possible to add the amount, because the unit is not supported or for some other reas...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2018" }, { "code": null, "e": 127, "s": 28, "text": "In Instant class, there are two types of plus() method depending upon the parameters passed to it." }, { "code": null, "e": 426, "s": 127, "text": "plus() ...
Dilated Convolution
02 Mar, 2022 Prerequisite: Convolutional Neural Networks Dilated Convolution: It is a technique that expands the kernel (input) by inserting holes between its consecutive elements. In simpler terms, it is the same as convolution but it involves pixel skipping, so as to cover a larger area of the input. An additional p...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Mar, 2022" }, { "code": null, "e": 72, "s": 28, "text": "Prerequisite: Convolutional Neural Networks" }, { "code": null, "e": 320, "s": 72, "text": "Dilated Convolution: It is a technique that expands the kernel (...
Iterative Letter Combinations of a Phone Number
10 Dec, 2021 Given an integer array containing digits from [0, 9], the task is to print all possible letter combinations that the numbers could represent. A mapping of digit to letters (just like on the telephone buttons) is being followed. Note that 0 and 1 do not map to any letters. All the mapping are shown in the ...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Dec, 2021" }, { "code": null, "e": 197, "s": 54, "text": "Given an integer array containing digits from [0, 9], the task is to print all possible letter combinations that the numbers could represent. " }, { "code": null, ...
IntroSort or Introspective sort
25 Nov, 2021 Introsort(Introspective sort) is a comparison based sort that consists of three sorting phases. They are Quicksort, Heapsort, and Insertion sort. Basic concepts of Introsort and the C++ code are available hereThe following section shows how the Introsort algorithm is formulated, after reviewing the pros an...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Nov, 2021" }, { "code": null, "e": 399, "s": 54, "text": "Introsort(Introspective sort) is a comparison based sort that consists of three sorting phases. They are Quicksort, Heapsort, and Insertion sort. Basic concepts of Introsort ...
NLP | Sequence to Sequence Networks| Part 2|Seq2seq Model (EncoderDecoder Model) | by Mohammed AL-Ma'amari | Towards Data Science
In [NLP | Sequence to Sequence Networks| Part 1| Processing text data] we learnt how to process text data, In this part we will create the model which will take the data we processed and use it to train to translate English sentences to French. We will use an architecture called (seq2seq) or ( Encoder Decoder), It is a...
[ { "code": null, "e": 417, "s": 172, "text": "In [NLP | Sequence to Sequence Networks| Part 1| Processing text data] we learnt how to process text data, In this part we will create the model which will take the data we processed and use it to train to translate English sentences to French." }, { ...
Find N from the value of N! - GeeksforGeeks
16 Aug, 2021 Given a number K which represents the factorial of a number N, the task is to find the value of N. Note: K < 1018Examples: Input: K = 120 Output: 5 Explanation: 5! = 1 * 2 * 3 * 4 * 5 = 120Input: K = 6 Output: 3 Explanation: 3! = 1 * 2 * 3 = 6 Approach: It is given that the value of N! is less than 1...
[ { "code": null, "e": 24692, "s": 24664, "text": "\n16 Aug, 2021" }, { "code": null, "e": 24817, "s": 24692, "text": "Given a number K which represents the factorial of a number N, the task is to find the value of N. Note: K < 1018Examples: " }, { "code": null, "e": 2...
Loading Custom Image Dataset for Deep Learning Models: Part 1 | by Renu Khandelwal | Towards Data Science
In this article, you will learn how to load and create image train and test dataset from custom data as an input for Deep learning models. You will learn to load the dataset using. Open CV2 PIL The dataset used here is Intel Image Classification from Kaggle. Intel Image classification dataset is already split into trai...
[ { "code": null, "e": 228, "s": 47, "text": "In this article, you will learn how to load and create image train and test dataset from custom data as an input for Deep learning models. You will learn to load the dataset using." }, { "code": null, "e": 237, "s": 228, "text": "Open C...
Python - 3D Charts
Python is also capable of creating 3d charts. It involves adding a subplot to an existing two-dimensional plot and assigning the projection parameter as 3d. 3dPlot is drawn by mpl_toolkits.mplot3d to add a subplot to an existing 2d plot. from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt chart...
[ { "code": null, "e": 2688, "s": 2529, "text": "Python is also capable of creating 3d charts. It involves adding a subplot to an existing two-dimensional plot and assigning the projection parameter as 3d. " }, { "code": null, "e": 2770, "s": 2688, "text": "3dPlot is drawn by mpl_...
JOGL - Drawing Basics
OpenGL API has provided primitive methods for drawing basic graphical elements such as point, vertex, line etc. Using these methods, you can develop shapes such as triangle, polygon and circle. In both, 2D and 3D dimensions. This chapter teaches you how to draw a basic line using JOGL in a Java program. To access progr...
[ { "code": null, "e": 2324, "s": 2019, "text": "OpenGL API has provided primitive methods for drawing basic graphical elements such as point, vertex, line etc. Using these methods, you can develop shapes such as triangle, polygon and circle. In both, 2D and 3D dimensions. This chapter teaches you how...
Combinational Circuits - GeeksforGeeks
19 Nov, 2018 In the 1st column there are 4 NOR Gates, number them as 1 to 4 ( top to down). In the 2nd column there are 2 NOR Gates, number them as 5 and 6 ( top to down). In the 3rd column there is only 1 NOR Gate, number it as 7. 1st numbered Gate gives output as : ( P + Q )' 2nd numbered Gate gives output as :...
[ { "code": null, "e": 27219, "s": 27191, "text": "\n19 Nov, 2018" }, { "code": null, "e": 28132, "s": 27219, "text": "In the 1st column there are 4 NOR Gates, \nnumber them as 1 to 4 ( top to down).\n\nIn the 2nd column there are 2 NOR Gates, \nnumber them as 5 and 6 ( top to down...
Git - Online Repositories
GitHub is a web-based hosting service for software development projects that uses the Git revision control system. It also has their standard GUI application available for download (Windows, Mac, GNU/ Linux) directly from the service's website. But in this session, we will see only CLI part. Go to github.com. If you al...
[ { "code": null, "e": 2338, "s": 2045, "text": "GitHub is a web-based hosting service for software development projects that uses the Git revision control system. It also has their standard GUI application available for download (Windows, Mac, GNU/ Linux) directly from the service's website. But in t...
R - Matrices
Matrices are the R objects in which the elements are arranged in a two-dimensional rectangular layout. They contain elements of the same atomic types. Though we can create a matrix containing only characters or only logical values, they are not of much use. We use matrices containing numeric elements to be used in math...
[ { "code": null, "e": 2745, "s": 2402, "text": "Matrices are the R objects in which the elements are arranged in a two-dimensional rectangular layout. They contain elements of the same atomic types. Though we can create a matrix containing only characters or only logical values, they are not of much ...
swap() function in C++
The swap() function is used to swap two numbers. By using this function, you do not need any third variable to swap two numbers. Here is the syntax of swap() in C++ language, void swap(int variable_name1, int variable_name2); If we assign the values to variables or pass user-defined values, it will swap the values of v...
[ { "code": null, "e": 1191, "s": 1062, "text": "The swap() function is used to swap two numbers. By using this function, you do not need any third variable to swap two numbers." }, { "code": null, "e": 1237, "s": 1191, "text": "Here is the syntax of swap() in C++ language," }, ...