title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
jMeter - Database Test Plan | In this chapter, we will see how to create a simple test plan to test the database server. For our test purpose we use the MYSQL database server. You can use any other database for testing. For installation and table creation in MYSQL please refer MYSQL Tutorial.
Once MYSQL is installed, follow the steps below to setup... | [
{
"code": null,
"e": 2169,
"s": 1905,
"text": "In this chapter, we will see how to create a simple test plan to test the database server. For our test purpose we use the MYSQL database server. You can use any other database for testing. For installation and table creation in MYSQL please refer MYSQL... |
Min Number of Flips | Practice | GeeksforGeeks | Given a binary string, that is it contains only 0s and 1s. We need to make this string a sequence of alternate characters by flipping some of the bits, our goal is to minimize the number of bits to be flipped.
Example 1:
Input:
S = "001"
Output: 1
Explanation:
We can flip the 0th bit to 1 to have
101.
Example 2:
In... | [
{
"code": null,
"e": 448,
"s": 238,
"text": "Given a binary string, that is it contains only 0s and 1s. We need to make this string a sequence of alternate characters by flipping some of the bits, our goal is to minimize the number of bits to be flipped."
},
{
"code": null,
"e": 459,
... |
Python Overview and Installation | Python is an open source scripting language which is high-level, interpreted, interactive and object-oriented. It is designed to be highly readable. The syntax of Python language is easy to understand and uses English keywords frequently.
Python provides the following major features −
Python is processed at runtime usi... | [
{
"code": null,
"e": 2531,
"s": 2292,
"text": "Python is an open source scripting language which is high-level, interpreted, interactive and object-oriented. It is designed to be highly readable. The syntax of Python language is easy to understand and uses English keywords frequently."
},
{
... |
Code a Deep Neural Network. Hands on Practice of Building a Deep... | by Jeremy Zhang | Towards Data Science | In last post, we’ve built a 1-hidden layer neural network with basic functions in python. To generalize and empower our network, in this post, we will build a n-layer neural network to do a binary classification task, in which n is customisable (it is recommended to go over my last introduction of neural network as the... | [
{
"code": null,
"e": 538,
"s": 171,
"text": "In last post, we’ve built a 1-hidden layer neural network with basic functions in python. To generalize and empower our network, in this post, we will build a n-layer neural network to do a binary classification task, in which n is customisable (it is rec... |
Operating Systems | Set 8 - GeeksforGeeks | 27 Mar, 2017
Following questions have been asked in GATE 2009 CS exam.
1) In which one of the following page replacement policies, Belady’s anomaly may occur?(A) FIFO(B) Optimal(C) LRU(D) MRU
Answer (A)Belady’s anomaly proves that it is possible to have more page faults when increasing the number of page frames while u... | [
{
"code": null,
"e": 25265,
"s": 25237,
"text": "\n27 Mar, 2017"
},
{
"code": null,
"e": 25323,
"s": 25265,
"text": "Following questions have been asked in GATE 2009 CS exam."
},
{
"code": null,
"e": 25444,
"s": 25323,
"text": "1) In which one of the following... |
W3Schools Code Game | W3Schools is optimized for learning, testing, and training.
Examples might be simplified to improve reading and basic understanding.
Tutorials, references, and examples are constantly reviewed to avoid errors,
but we cannot warrant full correctness of all content.
While using this site, you agree to hav... | [] |
Create your own smart baby monitor with a RaspberryPi and Tensorflow | by Fabio Manganiello | Towards Data Science | An updated version of this story is available on the Platypush blog.
Some of you may have noticed that it’s been a while since my last article. That’s because I’ve become a dad in the meantime, and I’ve had to take a momentary break from my projects to deal with some parental tasks that can’t (yet) be automated.
Or, ca... | [
{
"code": null,
"e": 241,
"s": 172,
"text": "An updated version of this story is available on the Platypush blog."
},
{
"code": null,
"e": 486,
"s": 241,
"text": "Some of you may have noticed that it’s been a while since my last article. That’s because I’ve become a dad in the me... |
Gulp - Installation | This article provides a step-by-step procedure of Gulp installation.
Operating System − Cross-platform
Operating System − Cross-platform
Browser Support − IE (Internet Explorer 8+), Firefox, Google Chrome, Safari, Opera
Browser Support − IE (Internet Explorer 8+), Firefox, Google Chrome, Safari, Opera
Step 1 − We need ... | [
{
"code": null,
"e": 1885,
"s": 1816,
"text": "This article provides a step-by-step procedure of Gulp installation."
},
{
"code": null,
"e": 1919,
"s": 1885,
"text": "Operating System − Cross-platform"
},
{
"code": null,
"e": 1953,
"s": 1919,
"text": "Operatin... |
Line detection in python with OpenCV? | In this post, we are going to learn, how to detect lines in an image, with the help of a technique called Hough transform.
Hough transform is a feature extraction method to detect any simple shape, if you can represent that shape in mathematical form. It somehow manage to detect the shape even if it is broken or distor... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "In this post, we are going to learn, how to detect lines in an image, with the help of a technique called Hough transform."
},
{
"code": null,
"e": 1437,
"s": 1185,
"text": "Hough transform is a feature extraction method to detect an... |
Find sum of all Boundary and Diagonal element of a Matrix - GeeksforGeeks | 14 Dec, 2021
Given a 2D array arr[][] of order NxN, the task is to find the sum of all the elements present in both the diagonals and boundary elements of the given arr[][]. Examples:
Input: arr[][] = { {1, 2, 3, 4}, {1, 2, 3, 4}, {1, 2, 3, 4}, {1, 2, 3, 4} } Output: 40 Explanation: The Sum of elements on the boundar... | [
{
"code": null,
"e": 24821,
"s": 24793,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 24994,
"s": 24821,
"text": "Given a 2D array arr[][] of order NxN, the task is to find the sum of all the elements present in both the diagonals and boundary elements of the given arr[][]. Ex... |
N meetings in one room | Practice | GeeksforGeeks | There is one meeting room in a firm. There are N meetings in the form of (start[i], end[i]) where start[i] is start time of meeting i and end[i] is finish time of meeting i.
What is the maximum number of meetings that can be accommodated in the meeting room when only one meeting can be held in the meeting room at a par... | [
{
"code": null,
"e": 573,
"s": 238,
"text": "There is one meeting room in a firm. There are N meetings in the form of (start[i], end[i]) where start[i] is start time of meeting i and end[i] is finish time of meeting i.\nWhat is the maximum number of meetings that can be accommodated in the meeting r... |
What is STORED PROCEDURE in a DB2? How will you create a new stored procedure? | The DB2 STORED PROCEDURE are the programs which are directly managed by DBMS. The STORED PROCEDURE generally contains SQLs and they can be called by application programs. The STORED PROCEDURE processes the query and returns the result to the application program. The STORED PROCEDURES can be used for the SQLs which are ... | [
{
"code": null,
"e": 1491,
"s": 1062,
"text": "The DB2 STORED PROCEDURE are the programs which are directly managed by DBMS. The STORED PROCEDURE generally contains SQLs and they can be called by application programs. The STORED PROCEDURE processes the query and returns the result to the application... |
Bitwise XOR of a Binary array - GeeksforGeeks | 21 May, 2021
Given a binary array arr[], the task is to calculate the bitwise XOR of all the elements in this array and print it.
Examples:
Input: arr[] = {“100”, “1001”, “0011”} Output: 1110 0100 XOR 1001 XOR 0011 = 1110
Input: arr[] = {“10”, “11”, “1000001”} Output: 1000000
Approach:
Step 1: First find the maximum... | [
{
"code": null,
"e": 24792,
"s": 24764,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 24909,
"s": 24792,
"text": "Given a binary array arr[], the task is to calculate the bitwise XOR of all the elements in this array and print it."
},
{
"code": null,
"e": 24920,
... |
Different Types of Time Series Decomposition | by Andrew Plummer | Towards Data Science | Abraham Maslow writes, “I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail”.
This is the situation that aspiring data scientists find themselves in when analyzing time series data. The seasonal_decompose function from Python’s Statsmodels library is the hammer, and... | [
{
"code": null,
"e": 304,
"s": 172,
"text": "Abraham Maslow writes, “I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail”."
},
{
"code": null,
"e": 538,
"s": 304,
"text": "This is the situation that aspiring data scientists fi... |
Building a Conversational Chatbot for Slack using Rasa and Python -Part 2 | by Parul Pandey | Towards Data Science | Note: This article was written long ago and there may be changes in RASA which haven’t been incorporated into the article. It is advised to go to their official documentation site for the latest details.
“Slack went down again, so the colleagues had to talk to each other”.
When slack went down momentarily during mid-20... | [
{
"code": null,
"e": 376,
"s": 172,
"text": "Note: This article was written long ago and there may be changes in RASA which haven’t been incorporated into the article. It is advised to go to their official documentation site for the latest details."
},
{
"code": null,
"e": 446,
"s": ... |
Python | Sort dictionary by value list length - GeeksforGeeks | 11 May, 2020
While working with Python, one might come to a problem in which one needs to perform a sort on dictionary list value length. This can be typically in case of scoring or any type of count algorithm. Let’s discuss a method by which this task can be performed.
Method : Using sorted() + join() + lambdaThe comb... | [
{
"code": null,
"e": 26355,
"s": 26327,
"text": "\n11 May, 2020"
},
{
"code": null,
"e": 26613,
"s": 26355,
"text": "While working with Python, one might come to a problem in which one needs to perform a sort on dictionary list value length. This can be typically in case of scori... |
Machine Learning Project 9 — Predict weight based on height and gender | by Omair Aasim | Towards Data Science | Today I am going to be working on this Kaggle dataset. This dataset has 10,000 rows and provides the weight, height and gender of the person. We have to build and train a model on this dataset so it can predict the weight of a person given their gender and height. This is the first project that we are working on that h... | [
{
"code": null,
"e": 547,
"s": 171,
"text": "Today I am going to be working on this Kaggle dataset. This dataset has 10,000 rows and provides the weight, height and gender of the person. We have to build and train a model on this dataset so it can predict the weight of a person given their gender an... |
Using DDL Statements Questions | 1.What is the full form of DDL in Oracle DB?
Data Deleting Language
Data Definition Language
Data Delegating Language
Dummy Data Language
Data Deleting Language
Data Definition Language
Data Delegating Language
Dummy Data Language
Answer: B. DDL is one of the categories of SQL which stands for Data Definition Languag... | [
{
"code": null,
"e": 2642,
"s": 2597,
"text": "1.What is the full form of DDL in Oracle DB?"
},
{
"code": null,
"e": 2737,
"s": 2642,
"text": "\nData Deleting Language\nData Definition Language\nData Delegating Language\nDummy Data Language\n"
},
{
"code": null,
"e": ... |
An Interesting Method to Generate Binary Numbers from 1 to n | 23 Jun, 2022
Given a number n, write a function that generates and prints all binary numbers with decimal values from 1 to n.
Examples:
Input: n = 2
Output: 1, 10
Input: n = 5
Output: 1, 10, 11, 100, 101
Naive Method:
A simple method is to run a loop from 1 to n, call decimal to binary inside the loop.
Efficient Me... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 168,
"s": 54,
"text": "Given a number n, write a function that generates and prints all binary numbers with decimal values from 1 to n. "
},
{
"code": null,
"e": 179,
"s": 168,
... |
Print Stack Elements from Bottom to Top | 06 Aug, 2021
Given a stack s, the task is to print the elements of the stack from bottom to top, such that the elements are still present in the stack without their order being changed in the stack.
Examples:
Input :
| 4 |
| 3 |
| 2 |
| 1 |
|________|
Output :1 2 3 4
Approach 1 (R... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 240,
"s": 54,
"text": "Given a stack s, the task is to print the elements of the stack from bottom to top, such that the elements are still present in the stack without their order being changed in... |
iText - Formatting the Borders of a Cell | In this chapter, we will see how to format the borders of a cell in a table using iText library.
You can create an empty PDF Document by instantiating the Document class. While instantiating this class, you need to pass a PdfDocument object as a parameter to its constructor.
Then, to add a table to the document, you ne... | [
{
"code": null,
"e": 2599,
"s": 2502,
"text": "In this chapter, we will see how to format the borders of a cell in a table using iText library."
},
{
"code": null,
"e": 2778,
"s": 2599,
"text": "You can create an empty PDF Document by instantiating the Document class. While insta... |
Sum of all odd natural numbers in range L and R | 11 Jul, 2022
Given two integers L and R, the task is to find the sum of all odd natural numbers in range L and R inclusive. Examples:
Input: L = 2, R = 5
Output: 8
3 + 5 = 8
Input: L = 7, R = 13
Output: 40
A naive approach is to traverse from L to R and summate the elements to get the answer. An efficient approach is... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jul, 2022"
},
{
"code": null,
"e": 150,
"s": 28,
"text": "Given two integers L and R, the task is to find the sum of all odd natural numbers in range L and R inclusive. Examples: "
},
{
"code": null,
"e": 223,
"s": 15... |
HTML | Layout | 15 Jun, 2022
Page layout is the part of graphic design that deals with the arrangement of visual elements on a page. Page layout is used to make the web pages look better. It establishes the overall appearance, relative importance, and relationships between the graphic elements to achieve a smooth flow of information a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Jun, 2022"
},
{
"code": null,
"e": 415,
"s": 54,
"text": "Page layout is the part of graphic design that deals with the arrangement of visual elements on a page. Page layout is used to make the web pages look better. It establishes ... |
Why Transition properties does not work with display properties ? | 21 Dec, 2020
When we want to use transition for display:none to display:block, transition properties do not work. The reason for this is, display:none property is used for removing block and display:block property is used for displaying block. A block cannot be partly displayed. Either it is available or unavailable. T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Dec, 2020"
},
{
"code": null,
"e": 385,
"s": 28,
"text": "When we want to use transition for display:none to display:block, transition properties do not work. The reason for this is, display:none property is used for removing block a... |
Generating random Id’s in Python | 28 Sep, 2021
In python there are different ways to generate id’s. Let’s see how different types of Id’s can be generated using python without using inbuilt Python libraries.
Code #1 : Print 10 random values of numbers between 1 and 100.
Python3
# Python3 code to demonstrate the# random generation of Integer id's imp... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Sep, 2021"
},
{
"code": null,
"e": 215,
"s": 53,
"text": "In python there are different ways to generate id’s. Let’s see how different types of Id’s can be generated using python without using inbuilt Python libraries. "
},
{
... |
How to zoom-in and zoom-out image using ReactJS? | 03 Dec, 2021
React is a JavaScript library for building user interfaces. React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
In ReactJS whatever we write that looks like ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 290,
"s": 28,
"text": "React is a JavaScript library for building user interfaces. React makes it painless to create interactive UIs. Design simple views for each state in your application, and Reac... |
What are Events in Solidity? | 24 Jun, 2022
Solidity Events are the same as events in any other programming language. An event is an inheritable member of the contract, which stores the arguments passed in the transaction logs when emitted. Generally, events are used to inform the calling application about the current state of the contract, with the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 534,
"s": 52,
"text": "Solidity Events are the same as events in any other programming language. An event is an inheritable member of the contract, which stores the arguments passed in the transact... |
Python | All possible N combination tuples | 11 Jan, 2022
Sometimes, while working with Python tuples, we might have a problem in which we need to generate all possible combination pairs till N. This can have application in mathematics domain. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using list comprehension + product()This task... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jan, 2022"
},
{
"code": null,
"e": 278,
"s": 28,
"text": "Sometimes, while working with Python tuples, we might have a problem in which we need to generate all possible combination pairs till N. This can have application in mathemati... |
jQuery | [attribute] Selector | 12 Mar, 2019
The [attribute] Selector is an inbuilt selector in jQuery, used to select all the elements with the specified attribute.
Syntax:
$("[attribute_name]")
Parameter:
attribute_name: It is the required parameter which specify the attribute to be select.
Example-1:
<!DOCTYPE html><html> <head> <script src="... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Mar, 2019"
},
{
"code": null,
"e": 173,
"s": 52,
"text": "The [attribute] Selector is an inbuilt selector in jQuery, used to select all the elements with the specified attribute."
},
{
"code": null,
"e": 181,
"s": 17... |
How to use Pickle to save and load Variables in Python? | 25 Feb, 2021
Serialization is a technique used to save the state of an object from any process. We can later use this state by deserialization, to continue the process. Pickle is a python module that makes it easy to serialize or save variables and load them when needed. Unlike JSON serialization, Pickle converts the o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Feb, 2021"
},
{
"code": null,
"e": 674,
"s": 52,
"text": "Serialization is a technique used to save the state of an object from any process. We can later use this state by deserialization, to continue the process. Pickle is a python... |
Extract numbers from a text file and add them using Python - GeeksforGeeks | 19 May, 2021
Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files. Data file handling in Python is done in two types of files:
Text file (.txt extension)
Binary file (.bin extension)
Here we are operating... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 24127,
"s": 23901,
"text": "Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files.... |
Computer Vision for Beginners: Part 4 | by Jiwon Jeong | Towards Data Science | There are lots of ways out there one can adapt to make learning progress efficiently. As for me, combining studies with a little bit of fun is the best strategy. In this series of tutorials, many images have been used to demonstrate image processing concepts. It might interest you to note that people enjoyed the parts ... | [
{
"code": null,
"e": 614,
"s": 172,
"text": "There are lots of ways out there one can adapt to make learning progress efficiently. As for me, combining studies with a little bit of fun is the best strategy. In this series of tutorials, many images have been used to demonstrate image processing conce... |
How to handle date in JDBC? | You can insert date values in SQL using the date datatype, The java.sql.Date class maps to the SQL DATE type.
The PreparedStatement interface provides a method named setDate(). Using this you can insert date into a table. This method accepts two parameters −
An integer representing the parameter index of the place hold... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "You can insert date values in SQL using the date datatype, The java.sql.Date class maps to the SQL DATE type."
},
{
"code": null,
"e": 1321,
"s": 1172,
"text": "The PreparedStatement interface provides a method named setDate(). Using... |
How to Find the Length of a String in Dart? - GeeksforGeeks | 15 Jul, 2020
To find a length of a string in the dart, we make use of length property of a string class in Dart. This method returns the length of string which in integer.
Syntax: string_name.length
Return Type: integer
Example: Finding the length of the string in Dart.
Dart
// Main functionmain() { // Declaring a... | [
{
"code": null,
"e": 23645,
"s": 23617,
"text": "\n15 Jul, 2020"
},
{
"code": null,
"e": 23804,
"s": 23645,
"text": "To find a length of a string in the dart, we make use of length property of a string class in Dart. This method returns the length of string which in integer."
}... |
Abstract Classes in Scala - GeeksforGeeks | 31 Oct, 2019
Abstraction is the process to hide the internal details and showing only the functionality. In Scala, abstraction is achieved by using an abstract class. The working of the Scala abstract class is similar to Java abstract class. In Scala, an abstract class is constructed using the abstract keyword. It cont... | [
{
"code": null,
"e": 23441,
"s": 23413,
"text": "\n31 Oct, 2019"
},
{
"code": null,
"e": 23885,
"s": 23441,
"text": "Abstraction is the process to hide the internal details and showing only the functionality. In Scala, abstraction is achieved by using an abstract class. The worki... |
R and Python Plotting in Google Sheets | by Sam Terfa | Towards Data Science | This is part 2 in my n-part series on using R and Python functions inside Google Sheets formulas. If you haven’t read part 1, Using R and Python in Google Sheets Formulas, I suggest doing so to see all the magic available to you. In summary, you can use R and Python code to power custom Google Sheets cell formulas by s... | [
{
"code": null,
"e": 683,
"s": 172,
"text": "This is part 2 in my n-part series on using R and Python functions inside Google Sheets formulas. If you haven’t read part 1, Using R and Python in Google Sheets Formulas, I suggest doing so to see all the magic available to you. In summary, you can use R... |
Elixir - Bitwise Operators | Bitwise operators work on bits and perform bit by bit operation. Elixir provides bitwise modules as part of the package Bitwise, so in order to use these, you need to use the bitwise module. To use it, enter the following comand in your shell −
use Bitwise
Assume A to be 5 and B to be 6 for the following examples −
T... | [
{
"code": null,
"e": 2427,
"s": 2182,
"text": "Bitwise operators work on bits and perform bit by bit operation. Elixir provides bitwise modules as part of the package Bitwise, so in order to use these, you need to use the bitwise module. To use it, enter the following comand in your shell −"
},
... |
Optimizing Hyperparameters in Random Forest Classification | by Reilly Meinert | Towards Data Science | In this post, I will be taking an in-depth look at hyperparameter tuning for Random Forest Classification models using several of scikit-learn’s packages for classification and model selection. I will be analyzing the wine quality datasets from the UCI Machine Learning Repository. For the purpose of this post, I have c... | [
{
"code": null,
"e": 912,
"s": 171,
"text": "In this post, I will be taking an in-depth look at hyperparameter tuning for Random Forest Classification models using several of scikit-learn’s packages for classification and model selection. I will be analyzing the wine quality datasets from the UCI Ma... |
HTML | <source> media Attribute - GeeksforGeeks | 13 Dec, 2021
The HTML source media attribute accepts any valid media query that would normally be defined in a CSS. This attribute can accept several values.
Syntax:
<source media="media_query">
Possible Operators:
Devices:
Values:
Note: Prefixes like “min-“ and “max-“ can be used.
Example:
<!DOCTYPE html><html> <head... | [
{
"code": null,
"e": 25591,
"s": 25563,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 25736,
"s": 25591,
"text": "The HTML source media attribute accepts any valid media query that would normally be defined in a CSS. This attribute can accept several values."
},
{
"cod... |
Check if the given point lies inside given N points of a Convex Polygon - GeeksforGeeks | 08 Jul, 2020
Given coordinates of the N points of a Convex Polygon. The task is to check if the given point (X, Y) lies inside the polygon.
Examples:
Input: N = 7, Points: {(1, 1), (2, 1), (3, 1), (4, 1), (4, 2), (4, 3), (4, 4)}, Query: X = 3, Y = 2Below is the image of plotting of the given points:Output: YES
Input: N... | [
{
"code": null,
"e": 26587,
"s": 26559,
"text": "\n08 Jul, 2020"
},
{
"code": null,
"e": 26714,
"s": 26587,
"text": "Given coordinates of the N points of a Convex Polygon. The task is to check if the given point (X, Y) lies inside the polygon."
},
{
"code": null,
"e":... |
Find total no of collisions taking place between the balls in which initial direction of each ball is given - GeeksforGeeks | 24 Nov, 2021
Given N balls in a line. The initial direction of each ball is represented by the string consists of only ‘L’ and ‘R’ for the left and right direction respectively. It is given that both the balls reverse their direction after the collision and speed will remain the same before and after the collision. Cal... | [
{
"code": null,
"e": 25062,
"s": 25034,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 25438,
"s": 25062,
"text": "Given N balls in a line. The initial direction of each ball is represented by the string consists of only ‘L’ and ‘R’ for the left and right direction respectively... |
XAML - Dialog Box | All standalone applications have a main window that exposes some functionality and displays some data over which the application operates through its GUI. An application may also display additional windows to do the following −
To display some specific information to users.
To gather useful information from users.
To b... | [
{
"code": null,
"e": 2151,
"s": 1923,
"text": "All standalone applications have a main window that exposes some functionality and displays some data over which the application operates through its GUI. An application may also display additional windows to do the following −"
},
{
"code": nul... |
Extract given rows and columns from a given dataframe in R - GeeksforGeeks | 26 Mar, 2021
Extraction of given rows and columns has always been one of the most important tasks which are especially required while working on data cleaning activities. In this article, we will be discussing all the sets of commands which are used to extract given rows and columns from a given dataframe in the R prog... | [
{
"code": null,
"e": 26308,
"s": 26280,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 26633,
"s": 26308,
"text": "Extraction of given rows and columns has always been one of the most important tasks which are especially required while working on data cleaning activities. In th... |
OAuth 2.0 - Quick Guide | OAuth is an open authorization protocol, which allows accessing the resources of the resource owner by enabling the client applications on HTTP services such as Facebook, GitHub, etc. It allows sharing of resources stored on one site to another site without using their credentials. It uses username and password tokens ... | [
{
"code": null,
"e": 2114,
"s": 1785,
"text": "OAuth is an open authorization protocol, which allows accessing the resources of the resource owner by enabling the client applications on HTTP services such as Facebook, GitHub, etc. It allows sharing of resources stored on one site to another site wit... |
How do I get SUM function in MySQL to return '0' if no values are found? | To return Sum as ‘0’ if no values are found, use IFNULL or COALESCE commands.
The following is the syntax for IFNULL.
SELECT IFNULL(SUM(NULL), 0) AS aliasName;
Let us now implement the above syntax in the following query.
mysql> SELECT IFNULL(SUM(NULL), 0) AS SUMOFTWO;
The following is the output of the above query, w... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "To return Sum as ‘0’ if no values are found, use IFNULL or COALESCE commands."
},
{
"code": null,
"e": 1180,
"s": 1140,
"text": "The following is the syntax for IFNULL."
},
{
"code": null,
"e": 1223,
"s": 1180,
"t... |
System() Function in C/C++ | Given the task is to show the working of system() in C/C++.
The system() function is a part of the C/C++ standard library. It is used to pass the commands that can be executed in the command processor or the terminal of the operating system, and finally returns the command after it has been completed.
<stdlib.h> or <cs... | [
{
"code": null,
"e": 1122,
"s": 1062,
"text": "Given the task is to show the working of system() in C/C++."
},
{
"code": null,
"e": 1365,
"s": 1122,
"text": "The system() function is a part of the C/C++ standard library. It is used to pass the commands that can be executed in the... |
LISP - Set | Common Lisp does not provide a set data type. However, it provides number of functions that allows set operations to be performed on a list.
You can add, remove, and search for items in a list, based on various criteria. You can also perform various set operations like: union, intersection, and set difference.
Sets, li... | [
{
"code": null,
"e": 2201,
"s": 2060,
"text": "Common Lisp does not provide a set data type. However, it provides number of functions that allows set operations to be performed on a list."
},
{
"code": null,
"e": 2372,
"s": 2201,
"text": "You can add, remove, and search for items... |
Change a Binary Tree so that every node stores sum of all nodes in left subtree - GeeksforGeeks | 28 Feb, 2022
Given a Binary Tree, change the value in each node to sum of all the values in the nodes in the left subtree including its own.Examples:
Input :
1
/ \
2 3
Output :
3
/ \
2 3
Input
1
/ \
2 3
/ \ \
4 5 6
Output:
12
/ \
6 3
... | [
{
"code": null,
"e": 35848,
"s": 35820,
"text": "\n28 Feb, 2022"
},
{
"code": null,
"e": 35986,
"s": 35848,
"text": "Given a Binary Tree, change the value in each node to sum of all the values in the nodes in the left subtree including its own.Examples: "
},
{
"code": nul... |
How to Execute Commands Remotely via SSH in Android? - GeeksforGeeks | 23 Feb, 2021
The SSH protocol uses encryption to secure the connection between a client and a server. All user authentication, commands, output, and file transfers are encrypted to protect against attacks in the network. More often than not you would need to SSH into your cloud Virtual Machines or a remote shell. Usual... | [
{
"code": null,
"e": 25116,
"s": 25088,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 25621,
"s": 25116,
"text": "The SSH protocol uses encryption to secure the connection between a client and a server. All user authentication, commands, output, and file transfers are encrypte... |
DATE/TIME Functions in SQL. Tutorial on how to use CAST, EXTRACT... | by Jason Lee | Towards Data Science | Working with dates and times is a common practice when working in SQL. Using dates, we can calculate changes over time, trends in the data, perform interval arithmetic. To better understand the impacts of the underlying business problem.
“time-series data” as a sequence of data points, measuring the same thing over tim... | [
{
"code": null,
"e": 410,
"s": 172,
"text": "Working with dates and times is a common practice when working in SQL. Using dates, we can calculate changes over time, trends in the data, perform interval arithmetic. To better understand the impacts of the underlying business problem."
},
{
"co... |
Interactive Ternary Plots with Plotly | by Soner Yıldırım | Towards Data Science | Plotly Python (plotly.py) is an open-source plotting library built on plotly javascript (plotly.js). One of the things I like about plotly.py is that it offers a high-level API (plotly express) and a low level API (graph objects) to create visualizations. With plotly express, we can create a dynamic and informative plo... | [
{
"code": null,
"e": 506,
"s": 47,
"text": "Plotly Python (plotly.py) is an open-source plotting library built on plotly javascript (plotly.js). One of the things I like about plotly.py is that it offers a high-level API (plotly express) and a low level API (graph objects) to create visualizations. ... |
Apache Presto - concat(string1, ..., stringN) | presto:default> select concat('tut','orials','point') as string_concat;
string_concat
----------------
tutorialspoint
The above output is concatenation of the given strings.
46 Lectures
3.5 hours
Arnab Chakraborty
23 Lectures
1.5 hours
Mukund Kumar Mishra
16 Lectures
1 hour... | [
{
"code": null,
"e": 2079,
"s": 2006,
"text": "presto:default> select concat('tut','orials','point') as string_concat; "
},
{
"code": null,
"e": 2131,
"s": 2079,
"text": " string_concat \n---------------- \n tutorialspoint \n"
},
{
"code": null,
"e": 2187,
"s": 21... |
Setup and use Jupyter (IPython) Notebooks on AWS | by Michael Galarnyk | Towards Data Science | A while ago, I wrote a post, “Start a Jupyter (IPython) Notebook Server on AWS”. While that approach allows for multiple people to access the server with just a password, it suffers from being complicated to setup. Most people just want to use a Jupyter Notebook using their AWS resources without the hassle. With that, ... | [
{
"code": null,
"e": 514,
"s": 171,
"text": "A while ago, I wrote a post, “Start a Jupyter (IPython) Notebook Server on AWS”. While that approach allows for multiple people to access the server with just a password, it suffers from being complicated to setup. Most people just want to use a Jupyter N... |
Node.js - Domain Module | Node.js domain module is used to intercept unhandled error. These unhandled error can be intercepted using internal binding or external binding. If errors are not handled at all, then they will simply crash the Node application.
Internal Binding − Error emitter is executing its code within the run method of a domain.
I... | [
{
"code": null,
"e": 2247,
"s": 2018,
"text": "Node.js domain module is used to intercept unhandled error. These unhandled error can be intercepted using internal binding or external binding. If errors are not handled at all, then they will simply crash the Node application."
},
{
"code": nu... |
Explain Merge Sort in Python | Merge sort is a sorting technique. It is an efficient sorting algorithm with a time complexity of (n logn) where n is the length of the array to be sorted.
Merge sort is an algorithm that follows the Divide and Conquers paradigm. It continuously divides the array into two equal halves. Later it starts sorting the lists... | [
{
"code": null,
"e": 1218,
"s": 1062,
"text": "Merge sort is a sorting technique. It is an efficient sorting algorithm with a time complexity of (n logn) where n is the length of the array to be sorted."
},
{
"code": null,
"e": 1487,
"s": 1218,
"text": "Merge sort is an algorithm... |
How to get the value of custom attribute in jQuery? | To get the value in jQuery, use the data-attributes with the data() method. You can try to run the following code to implement how to get the value of custom attribute:
Live Demo
<html>
<head>
<title>Selector Example</title>
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"... | [
{
"code": null,
"e": 1231,
"s": 1062,
"text": "To get the value in jQuery, use the data-attributes with the data() method. You can try to run the following code to implement how to get the value of custom attribute:"
},
{
"code": null,
"e": 1241,
"s": 1231,
"text": "Live Demo"
... |
How to Change Axis Scales in R Plots? - GeeksforGeeks | 19 Dec, 2021
In this article, we will learn how to change Axis Scales in the R Programming Language.
To change the axis scales on a plot in base R Language, we can use the xlim() and ylim() functions. The xlim() and ylim() functions are convenience functions that set the limit of the x-axis and y-axis respectively. Thi... | [
{
"code": null,
"e": 24672,
"s": 24644,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 24760,
"s": 24672,
"text": "In this article, we will learn how to change Axis Scales in the R Programming Language."
},
{
"code": null,
"e": 25089,
"s": 24760,
"text": "To... |
World Population from 1955 to 2020 Bar Chart Race | by Durgesh Samariya | Towards Data Science | Welcome back to my 100 Days of Data Science Challenge Journey. On day 6, I worked on Bar Chart Race Animation using Python. For today’s task, I will be using the Countries Population from 1955 to 2020 dataset available on Kaggle.
You can read my previous days stories here:
towardsdatascience.com
Recently, I come across... | [
{
"code": null,
"e": 402,
"s": 172,
"text": "Welcome back to my 100 Days of Data Science Challenge Journey. On day 6, I worked on Bar Chart Race Animation using Python. For today’s task, I will be using the Countries Population from 1955 to 2020 dataset available on Kaggle."
},
{
"code": nul... |
How to create "next" and "previous" buttons with CSS? | Following is the code to create next and previous buttons with CSS −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
a {
text-decoration: none;
display: inline-block;
padding: 20px;
font-size: 35px;
width: 40px;
text-align: center... | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "Following is the code to create next and previous buttons with CSS −"
},
{
"code": null,
"e": 1142,
"s": 1131,
"text": " Live Demo"
},
{
"code": null,
"e": 1832,
"s": 1142,
"text": "<!DOCTYPE html>\n<html>\n<head>... |
Java byte Keyword | ❮ Java Keywords
byte myNum = 100;
System.out.println(myNum);
Try it Yourself »
The byte keyword is a data type that can store whole numbers from -128 to 127.
Read more about data types in our Java Data Types Tutorial.
❮ Java Keywords
We just launchedW3Schools videos
Get certifiedby completinga course today!
If yo... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 64,
"s": 18,
"text": "byte myNum = 100;\nSystem.out.println(myNum);\n"
},
{
"code": null,
"e": 84,
"s": 64,
"text": "\nTry it Yourself »\n"
},
{
"code": null,
"e... |
Python 3 - os.chdir() Method | The method chdir() changes the current working directory to the given path.It returns None in all the cases.
Following is the syntax for chdir() method −
os.chdir(path)
path − This is complete path of the directory to be changed to a new location.
This method does not return any value. It throws FileNotFoundError if s... | [
{
"code": null,
"e": 2449,
"s": 2340,
"text": "The method chdir() changes the current working directory to the given path.It returns None in all the cases."
},
{
"code": null,
"e": 2494,
"s": 2449,
"text": "Following is the syntax for chdir() method −"
},
{
"code": null,
... |
Apache Derby - Procedures | This chapter teaches you how to create and drop procedures in Derby.
You can create a procedure using the CREATE PROCEDURE statement.
Following is the syntax of the CREATE PROCEDURE statement.
CREATE PROCEDURE procedure_name (parameter_type parameter_name1, parameter_type
parameter_name2 . . . .) parameter_style;
Supp... | [
{
"code": null,
"e": 2249,
"s": 2180,
"text": "This chapter teaches you how to create and drop procedures in Derby."
},
{
"code": null,
"e": 2314,
"s": 2249,
"text": "You can create a procedure using the CREATE PROCEDURE statement."
},
{
"code": null,
"e": 2373,
"... |
Calculate the Cumulative Minima of a Vector in R Programming - cummin() Function - GeeksforGeeks | 15 Jun, 2020
cummin() function in R Language is used to calculate the cumulative minima of the values of vector passed as arguments.
Syntax: cummin(x)
Parameters:x: numeric object
Example 1:
# R program to cumulative minima # Calling cummin() functioncummin(2:6)cummin(-2:-6)cummin(1.8:4.2)
Output:
[1] 2 2 2 2 2
[1] -2... | [
{
"code": null,
"e": 25771,
"s": 25743,
"text": "\n15 Jun, 2020"
},
{
"code": null,
"e": 25891,
"s": 25771,
"text": "cummin() function in R Language is used to calculate the cumulative minima of the values of vector passed as arguments."
},
{
"code": null,
"e": 25909,... |
Convert large list to dataframe in R - GeeksforGeeks | 18 Jul, 2021
In this article, we will discuss how to convert a large list to a dataframe in the R Programming Language.
First, create a large list. Then use the Map function on the list and convert it to dataframe using the as.data.frame function in R. The map function applies a function and transforms the given input... | [
{
"code": null,
"e": 25340,
"s": 25312,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 25448,
"s": 25340,
"text": "In this article, we will discuss how to convert a large list to a dataframe in the R Programming Language. "
},
{
"code": null,
"e": 25796,
"s": 25... |
PyQt5 – Block signals of push button - GeeksforGeeks | 22 Apr, 2020
In this article we will see how we can block the signals of the button, blocking signals means stopping the button to do his assigned task. It is used to make a button deactive.
In order to do this we will use blockSignals method which belongs to QObject class.
Syntax : button.blockSignals(True)
Argument :... | [
{
"code": null,
"e": 24514,
"s": 24486,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 24692,
"s": 24514,
"text": "In this article we will see how we can block the signals of the button, blocking signals means stopping the button to do his assigned task. It is used to make a bu... |
Array sum after replacing all occurrences of X by Y for Q queries - GeeksforGeeks | 27 May, 2021
Given an integer array arr[] and Q queries, the task is to find the sum of the array for each query of the following type:
Each query contains 2 integers X and Y, where all the occurrences of X in arr[] are to be replaced by Y.
After each query, they print the sum of the array.
Examples:
Input: arr[] = { ... | [
{
"code": null,
"e": 26157,
"s": 26129,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 26281,
"s": 26157,
"text": "Given an integer array arr[] and Q queries, the task is to find the sum of the array for each query of the following type: "
},
{
"code": null,
"e": 26... |
Algorithms | Analysis of Algorithms | Question 1 - GeeksforGeeks | 28 Jun, 2021
What is time complexity of fun()?
int fun(int n){ int count = 0; for (int i = n; i > 0; i /= 2) for (int j = 0; j < i; j++) count += 1; return count;}
(A) O(n^2)(B) O(nLogn)(C) O(n)(D) O(nLognLogn)Answer: (C)Explanation: For a input integer n, the innermost statement of fun() is executed foll... | [
{
"code": null,
"e": 24958,
"s": 24930,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24992,
"s": 24958,
"text": "What is time complexity of fun()?"
},
{
"code": "int fun(int n){ int count = 0; for (int i = n; i > 0; i /= 2) for (int j = 0; j < i; j++) cou... |
Deploying a Text Classification Model in Python | by Miguel Fernández Zafra | Towards Data Science | This article is the last of a series in which I cover the whole process of developing a machine learning project. If you have not read the previous two articles, I strongly encourage you to do it here and here.
The project involves the creation of a real-time web application that gathers data from several newspapers an... | [
{
"code": null,
"e": 383,
"s": 172,
"text": "This article is the last of a series in which I cover the whole process of developing a machine learning project. If you have not read the previous two articles, I strongly encourage you to do it here and here."
},
{
"code": null,
"e": 581,
... |
Generating Random id's using UUID in Python | UUID is having the full form Universal Unique Identifier, it is a python library which supports 128 bits ids for generating random objects.
As discussed, we can use it to generate unique random id for random objects.
For cryptography and hashing applications, this id can be used.
For generating random documents and als... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "UUID is having the full form Universal Unique Identifier, it is a python library which supports 128 bits ids for generating random objects."
},
{
"code": null,
"e": 1279,
"s": 1202,
"text": "As discussed, we can use it to generate un... |
JSP - Expression Language (EL) | JSP Expression Language (EL) makes it possible to easily access application data stored in JavaBeans components. JSP EL allows you to create expressions both (a) arithmetic and (b) logical. Within a JSP EL expression, you can use integers, floating point numbers, strings, the built-in constants true and false for boole... | [
{
"code": null,
"e": 2580,
"s": 2239,
"text": "JSP Expression Language (EL) makes it possible to easily access application data stored in JavaBeans components. JSP EL allows you to create expressions both (a) arithmetic and (b) logical. Within a JSP EL expression, you can use integers, floating poin... |
Auto-HMM in Python. Automatic Model selection, training... | by MANIE TADAYON | Towards Data Science | During my Ph.D. at UCLA, I developed various models for sequential and time-series data. The hidden Markov model (HMM) was one of the earliest models I used, which worked quite well. I could not find any tutorial or any working codes on the HMM in Python/MATLAB/R. I am releasing the Auto-HMM, which is a python package ... | [
{
"code": null,
"e": 579,
"s": 171,
"text": "During my Ph.D. at UCLA, I developed various models for sequential and time-series data. The hidden Markov model (HMM) was one of the earliest models I used, which worked quite well. I could not find any tutorial or any working codes on the HMM in Python/... |
Softmax Regression in Python: Multi-class Classification | by Suraj Verma | Towards Data Science | In this article, we are going to look at the Softmax Regression which is used for multi-class classification problems, and implement it on the MNIST hand-written digit recognition dataset.
First, we will build on Logistic Regression to understand the Softmax function, then we will look at the Cross-entropy loss, one-ho... | [
{
"code": null,
"e": 361,
"s": 172,
"text": "In this article, we are going to look at the Softmax Regression which is used for multi-class classification problems, and implement it on the MNIST hand-written digit recognition dataset."
},
{
"code": null,
"e": 633,
"s": 361,
"text"... |
Keras - Reshape Layers | Reshape is used to change the shape of the input. For example, if reshape with argument (2,3) is applied to layer having input shape as (batch_size, 3, 2), then the output shape of the layer will be (batch_size, 2, 3)
Reshape has one argument as follows −
keras.layers.v(target_shape)
A simple example to use Reshape la... | [
{
"code": null,
"e": 2269,
"s": 2051,
"text": "Reshape is used to change the shape of the input. For example, if reshape with argument (2,3) is applied to layer having input shape as (batch_size, 3, 2), then the output shape of the layer will be (batch_size, 2, 3)"
},
{
"code": null,
"e"... |
Count zero, NULL and distinct values except zero and NULL with a single MySQL query | Let us first create a table −
mysql> create table DemoTable(
Value int
);
Query OK, 0 rows affected (1.35 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values(10);
Query OK, 1 row affected (0.30 sec)
mysql> insert into DemoTable values(NULL);
Query OK, 1 row affected (0.29... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1176,
"s": 1092,
"text": "mysql> create table DemoTable(\n Value int\n);\nQuery OK, 0 rows affected (1.35 sec)"
},
{
"code": null,
"e": 1232,
"s": 1176,
"te... |
Dynamic Segment Trees : Online Queries for Range Sum with Point Updates - GeeksforGeeks | 12 May, 2022
Prerequisites: Segment TreeGiven a number N which represents the size of the array initialized to 0 and Q queries to process where there are two types of queries:
1 P V: Put the value V at position P.2 L R: Output the sum of values from L to R.
1 P V: Put the value V at position P.
2 L R: Output the sum o... | [
{
"code": null,
"e": 25733,
"s": 25705,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 25897,
"s": 25733,
"text": "Prerequisites: Segment TreeGiven a number N which represents the size of the array initialized to 0 and Q queries to process where there are two types of queries: ... |
Profit and loss | Set-2 - GeeksforGeeks | 26 Jul, 2020
Question 1: The cost price of 12 books is equal to the selling price of 10 books. The gain percent is :Solution : Given 12 CP = 10 SPCP/SP = 10/12 = 5/6Profit = SP – CP=> 6 – 5 = 1Profit (%) = profit/CP x 100=> 1/5 x 100=> 20 %
Question 2: If the loss% on article is 15%. Then the ratio of cost price and se... | [
{
"code": null,
"e": 25365,
"s": 25337,
"text": "\n26 Jul, 2020"
},
{
"code": null,
"e": 25593,
"s": 25365,
"text": "Question 1: The cost price of 12 books is equal to the selling price of 10 books. The gain percent is :Solution : Given 12 CP = 10 SPCP/SP = 10/12 = 5/6Profit = SP... |
Draw a car using Turtle in Python - GeeksforGeeks | 12 Jan, 2022
Prerequisite: Turtle module, Drawing Shapes
There are many modules in python which depict graphical illustrations, one of them is a turtle, it is an in-built module in Python, which lets the user control a pen(turtle) to draw on the screen(drawing board). It is mostly used to illustrate figures, shapes, de... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n12 Jan, 2022"
},
{
"code": null,
"e": 25607,
"s": 25563,
"text": "Prerequisite: Turtle module, Drawing Shapes"
},
{
"code": null,
"e": 25958,
"s": 25607,
"text": "There are many modules in python which depict ... |
C# Program to Read a String and Find the Sum of all Digits - GeeksforGeeks | 19 Oct, 2021
Given a string, our task is to first read this string from the user then find the sum of all the digits present in the given string.
Examples
Input : abc23d4
Output: 9
Input : 2a3hd5j
Output: 10
Approach:
To reada String and find the sum of all digits present in the string follow the following steps:
Firs... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 25680,
"s": 25547,
"text": "Given a string, our task is to first read this string from the user then find the sum of all the digits present in the given string."
},
{
"code": null,
... |
How to click anywhere on the page except one element using jQuery ? - GeeksforGeeks | 20 Dec, 2019
A web-page containing many elements and the task is to click anywhere on the page except one element using jQuery. There are two methods to solve this problem which are discussed below:
Approach 1:
This approach calls a function when a click event happens.
First check the id of the targeted element and ret... | [
{
"code": null,
"e": 26570,
"s": 26542,
"text": "\n20 Dec, 2019"
},
{
"code": null,
"e": 26756,
"s": 26570,
"text": "A web-page containing many elements and the task is to click anywhere on the page except one element using jQuery. There are two methods to solve this problem whic... |
LINQ | Equality Operator | SequenceEqual - GeeksforGeeks | 22 May, 2019
The equality operator is used to check whether the given two sequences are identically equal or not. In LINQ, the equality operation contains only one operator that is known as SequenceEqual. It is used to check whether the given elements in the sequence or collection are equal or not. If the given sequenc... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n22 May, 2019"
},
{
"code": null,
"e": 25927,
"s": 25547,
"text": "The equality operator is used to check whether the given two sequences are identically equal or not. In LINQ, the equality operation contains only one operator tha... |
How to Find Hidden Web Directories with Dirsearch - GeeksforGeeks | 28 Jul, 2021
Dirsearch tool is a Python language-based tool, which is command-line only. Dirsearch lights when it comes to recursive scanning, so for every directory it identifies, it will go back through and crawl the directory for some additional directories. Dirsearch tool is an advanced command-line tool designed t... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 26284,
"s": 25651,
"text": "Dirsearch tool is a Python language-based tool, which is command-line only. Dirsearch lights when it comes to recursive scanning, so for every directory it identif... |
Python | Create simple animation for console-based application - GeeksforGeeks | 17 Apr, 2019
As we know Python is a scripting language, and can be easily used to automate simple tasks. In this article, we will learn how to create a simple console-based animation, which can be used while developing a console based project as a utility.
We will try to replicate the loading animation as shown below:
... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n17 Apr, 2019"
},
{
"code": null,
"e": 25807,
"s": 25563,
"text": "As we know Python is a scripting language, and can be easily used to automate simple tasks. In this article, we will learn how to create a simple console-based ani... |
Execute main() multiple times without using any other function or condition or recursion in Java - GeeksforGeeks | 01 Apr, 2019
Given task is to execute main() multiple times without using any other function and without recursion() and without error. Given condition is that if executing main() n times then you can only call him (n-1) times.
Solution:
class Test { // static block static { main(new String[] { "Hello... | [
{
"code": null,
"e": 26273,
"s": 26245,
"text": "\n01 Apr, 2019"
},
{
"code": null,
"e": 26488,
"s": 26273,
"text": "Given task is to execute main() multiple times without using any other function and without recursion() and without error. Given condition is that if executing mai... |
numpy.negative() in Python - GeeksforGeeks | 28 Nov, 2018
numpy.negative() function is used when we want to compute the negative of array elements. It returns element-wise negative value of an array or negative value of a scalar.
Syntax : numpy.negative(arr, /, out=None, *, where=True, casting=’same_kind’, order=’K’, dtype=None, subok=True[, signature, extobj], u... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 25709,
"s": 25537,
"text": "numpy.negative() function is used when we want to compute the negative of array elements. It returns element-wise negative value of an array or negative value of a... |
Levels in a File Management System - GeeksforGeeks | 02 Mar, 2020
Prerequisite – File SystemThe management of files and the management of device are interlinked with each other. Given below is an hierarchy used to perform the required functions of an I/O system efficiently.
The highest level module called Basic File System passes the information given to it to Logical Fi... | [
{
"code": null,
"e": 25627,
"s": 25599,
"text": "\n02 Mar, 2020"
},
{
"code": null,
"e": 25836,
"s": 25627,
"text": "Prerequisite – File SystemThe management of files and the management of device are interlinked with each other. Given below is an hierarchy used to perform the req... |
Sorting DataFrame in R using Dplyr - GeeksforGeeks | 28 Jul, 2021
In this article, we will discuss about how to sort a dataframe in R programming language using Dplyr package. The package Dplyr in R programming language provides a function called arrange() function which is useful for sorting the dataframe.
Syntax :
arrange(.data, ...)
The methods given below show how t... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 26730,
"s": 26487,
"text": "In this article, we will discuss about how to sort a dataframe in R programming language using Dplyr package. The package Dplyr in R programming language provides ... |
Implement Interface using Abstract Class in Java - GeeksforGeeks | 09 Feb, 2021
Interface contains only abstract methods that can’t be instantiated and it is declared by keyword interface. A class that is declared with the abstract keyword is known as an abstract class in Java. This is a class that usually contains at least one abstract method which can’t be instantiated and It is als... | [
{
"code": null,
"e": 25251,
"s": 25223,
"text": "\n09 Feb, 2021"
},
{
"code": null,
"e": 25662,
"s": 25251,
"text": "Interface contains only abstract methods that can’t be instantiated and it is declared by keyword interface. A class that is declared with the abstract keyword is ... |
Shutil Module in Python - GeeksforGeeks | 07 Oct, 2021
Shutil module offers high-level operation on a file like a copy, create, and remote operation on the file. It comes under Python’s standard utility modules. This module helps in automating the process of copying and removal of files and directories. In this article, we will learn this module.
shutil.copy()... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 25831,
"s": 25537,
"text": "Shutil module offers high-level operation on a file like a copy, create, and remote operation on the file. It comes under Python’s standard utility modules. This m... |
fdisk command in Linux with examples - GeeksforGeeks | 20 Jan, 2021
fdisk also known as format disk is a dialog-driven command in Linux used for creating and manipulating disk partition table. It is used for the view, create, delete, change, resize, copy and move partitions on a hard drive using the dialog-driven interface. fdisk allows you to create a maximum of four prim... | [
{
"code": null,
"e": 25253,
"s": 25225,
"text": "\n20 Jan, 2021"
},
{
"code": null,
"e": 25684,
"s": 25253,
"text": "fdisk also known as format disk is a dialog-driven command in Linux used for creating and manipulating disk partition table. It is used for the view, create, delet... |
Array formed using sum of absolute differences of that element with all other elements - GeeksforGeeks | 18 May, 2021
Given a sorted array arr[] of N distinct positive integers. The task is to generate an array such that the element at each index in the new array is the sum of absolute differences of the corresponding element with all other elements of the given array.
Input: arr[] = [2, 3, 5]Output: [4, 3, 5]Explanation:... | [
{
"code": null,
"e": 26441,
"s": 26413,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 26695,
"s": 26441,
"text": "Given a sorted array arr[] of N distinct positive integers. The task is to generate an array such that the element at each index in the new array is the sum of abs... |
How to detect touch screen device using JavaScript? - GeeksforGeeks | 24 Jan, 2022
Sometimes you might be looking for some features to include into your web-app that should only be available to devices with a touch screen. You may need this detection while introducing newer smarter controls for touch screen users in the game app or a GPS and navigation application. While there are many J... | [
{
"code": null,
"e": 26313,
"s": 26285,
"text": "\n24 Jan, 2022"
},
{
"code": null,
"e": 27130,
"s": 26313,
"text": "Sometimes you might be looking for some features to include into your web-app that should only be available to devices with a touch screen. You may need this detec... |
How to break _.each() function in Underscore.js ? - GeeksforGeeks | 02 Jun, 2020
It is not possible to break the _.each function. The reason is that the _.each function works similarly to the forEach function and imitates its native behavior. It does not allow us to break the loop or escape from it except by throwing an exception. However, one can use different methods like:
Throw Exce... | [
{
"code": null,
"e": 34847,
"s": 34819,
"text": "\n02 Jun, 2020"
},
{
"code": null,
"e": 35144,
"s": 34847,
"text": "It is not possible to break the _.each function. The reason is that the _.each function works similarly to the forEach function and imitates its native behavior. I... |
How to use Thread in Tkinter Python - GeeksforGeeks | 17 Dec, 2020
Prerequisite:
Python GUI – tkinter
multithreading
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter is the fast... | [
{
"code": null,
"e": 25562,
"s": 25534,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 25577,
"s": 25562,
"text": "Prerequisite: "
},
{
"code": null,
"e": 25598,
"s": 25577,
"text": "Python GUI – tkinter"
},
{
"code": null,
"e": 25613,
"s": 2... |
Find sum of non-repeating (distinct) elements in an array - GeeksforGeeks | 24 May, 2021
Given an integer array with repeated elements, the task is to find sum of all distinct elements in array.Examples:
Input : arr[] = {12, 10, 9, 45, 2, 10, 10, 45,10};
Output : 78
Here we take 12, 10, 9, 45, 2 for sum
because it's distinct elements
Input : arr[] = {1, 10, 9, 4, 2, 10, 10, 45 , 4};
Output... | [
{
"code": null,
"e": 25990,
"s": 25962,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 26106,
"s": 25990,
"text": "Given an integer array with repeated elements, the task is to find sum of all distinct elements in array.Examples: "
},
{
"code": null,
"e": 26303,
... |
How to use conditional operator in jQuery a template? - GeeksforGeeks | 23 Apr, 2021
In this article, we will learn to use ternary or conditional operator in jQuery.
The Ternary or Conditional operator takes three operands, a condition followed by question mark followed by two expressions to execute with a semicolon (:) in between the two expressions.
Syntax:
condition ? expression1 : expr... | [
{
"code": null,
"e": 26980,
"s": 26952,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 27061,
"s": 26980,
"text": "In this article, we will learn to use ternary or conditional operator in jQuery."
},
{
"code": null,
"e": 27249,
"s": 27061,
"text": "The Terna... |
Batch Script - CD | This batch command helps in making changes to a different directory, or displays the current directory.
cd
The following example shows how the cd command can be used in a variety of ways.
@echo off
Rem The cd without any parameters is used to display the current working directory
cd
Rem Changing the path to Program Fi... | [
{
"code": null,
"e": 2273,
"s": 2169,
"text": "This batch command helps in making changes to a different directory, or displays the current directory."
},
{
"code": null,
"e": 2277,
"s": 2273,
"text": "cd\n"
},
{
"code": null,
"e": 2358,
"s": 2277,
"text": "Th... |
Sum of all substrings of a number | Practice | GeeksforGeeks | Given an integer S represented as a string, the task is to get the sum of all possible sub-strings of this string.
As the answer will be large, print it modulo 10^9+7.
Example 1:
Input:
S = 1234
Output: 1670
Explanation: Sum = 1 + 2 + 3 + 4 + 12 +
23 + 34 + 123 + 234 + 1234 = 1670
Example 2:
Input:
S = 421
Output: 491... | [
{
"code": null,
"e": 406,
"s": 238,
"text": "Given an integer S represented as a string, the task is to get the sum of all possible sub-strings of this string.\nAs the answer will be large, print it modulo 10^9+7."
},
{
"code": null,
"e": 417,
"s": 406,
"text": "Example 1:"
},
... |
SQL Window Function — Demonstrated with Real Interview Questions from Leetcode | by Sherwin Zheng | Towards Data Science | By Sherwin Zheng
The window function is a must know in SQL interviews now, though it has just been available on, for example, MySQL 8.0 since its release on 19 April 2018.
Readers of this article are assumed to know SQL window functions other than basic SQL syntax. If you are not familiar with it and want to learn more... | [
{
"code": null,
"e": 189,
"s": 172,
"text": "By Sherwin Zheng"
},
{
"code": null,
"e": 344,
"s": 189,
"text": "The window function is a must know in SQL interviews now, though it has just been available on, for example, MySQL 8.0 since its release on 19 April 2018."
},
{
... |
Deep Learning #3: More on CNNs & Handling Overfitting | by Rutger Ruizendaal | Towards Data Science | This post is part of a series on deep learning. Check-out part 1 and part 2.
Welcome to the third entry in this series on deep learning! This week I will explore some more parts of the Convolutional Neural Network (CNN) and will also discuss how to deal with underfitting and overfitting.
So what exactly is a convolutio... | [
{
"code": null,
"e": 249,
"s": 172,
"text": "This post is part of a series on deep learning. Check-out part 1 and part 2."
},
{
"code": null,
"e": 461,
"s": 249,
"text": "Welcome to the third entry in this series on deep learning! This week I will explore some more parts of the C... |
Why do we use question mark literal in Python regular expression? | The question mark literal is used in different ways in Python Regular Expressions
As a special character '?' causes the resulting RE to match 0 or 1 repetitions of the preceding RE. ab? will match either ‘a’ or ‘ab’
The question mark literal '?' is used following ways as per Python docs.
*?, +?, ??
The '*', '+', and '?... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "The question mark literal is used in different ways in Python Regular Expressions"
},
{
"code": null,
"e": 1278,
"s": 1144,
"text": "As a special character '?' causes the resulting RE to match 0 or 1 repetitions of the preceding RE. ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.