title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
What is JDBC SQL Escape Syntax Explain?
The escape syntax gives you the flexibility to use database specific features unavailable to you by using standard JDBC methods and properties. The general SQL escape syntax format is as follow: {keyword 'parameters'} Following are various escape syntaxes in JDBC: d, t, ts Keywords: They help identify date, time, and t...
[ { "code": null, "e": 1206, "s": 1062, "text": "The escape syntax gives you the flexibility to use database specific features unavailable to you by using standard JDBC methods and properties." }, { "code": null, "e": 1257, "s": 1206, "text": "The general SQL escape syntax format i...
Program to find wealth of richest customer in Python
Suppose we have a matrix of order m x n called accounts where accounts[i][j] is the amount of money of ith customer present in jth bank. We have to find the wealth that the richest customer has. A customer is richest when he/she has maximum amount considering all banks. So, if the input is like then the output will be ...
[ { "code": null, "e": 1333, "s": 1062, "text": "Suppose we have a matrix of order m x n called accounts where accounts[i][j] is the amount of money of ith customer present in jth bank. We have to find the wealth that the richest customer has. A customer is richest when he/she has maximum amount consi...
Git - How to work on Forked Branch - 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 This example will help illustrate the standar...
[ { "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, ...
Building Python Microservices with Apache Kafka: All Gain, No Pain | by Krasnov Vitaliy | Towards Data Science
Engineers often use Apache Kafka in their everyday work. The major tasks that Kafka performs are: read messages, process messages, write messages to a topic, or aggregate messages for a certain period of time. The window can be fixed (e.g. hourly aggregation) or sliding (e.g. hourly aggregation starting from a certain ...
[ { "code": null, "e": 508, "s": 172, "text": "Engineers often use Apache Kafka in their everyday work. The major tasks that Kafka performs are: read messages, process messages, write messages to a topic, or aggregate messages for a certain period of time. The window can be fixed (e.g. hourly aggregat...
Python Number log() Method
Python number method log() returns natural logarithm of x, for x > 0. Following is the syntax for log() method − import math math.log( x ) Note − This function is not accessible directly, so we need to import math module and then we need to call this function using math static object. x − This is a numeric expression...
[ { "code": null, "e": 2315, "s": 2244, "text": "Python number method log() returns natural logarithm of x, for x > 0." }, { "code": null, "e": 2358, "s": 2315, "text": "Following is the syntax for log() method −" }, { "code": null, "e": 2385, "s": 2358, "text"...
Find average of a list in Java
To find average of a list in Java, the code is as follows - Live Demo import java.util.*; public class Demo { public static void main(String []args){ List<Integer> list = Arrays.asList(10, 20, 50, 100, 130, 150, 200, 250, 500); IntSummaryStatistics summaryStats = list.stream() .mapToInt((a) -> a) ...
[ { "code": null, "e": 1122, "s": 1062, "text": "To find average of a list in Java, the code is as follows -" }, { "code": null, "e": 1133, "s": 1122, "text": " Live Demo" }, { "code": null, "e": 1493, "s": 1133, "text": "import java.util.*;\npublic class Demo {...
Rust - Constant
Constants represent values that cannot be changed. If you declare a constant then there is no way its value changes. The keyword for using constants is const. Constants must be explicitly typed. Following is the syntax to declare a constant. const VARIABLE_NAME:dataType = value; The naming convention for Constants are...
[ { "code": null, "e": 2329, "s": 2087, "text": "Constants represent values that cannot be changed. If you declare a constant then there is no way its value changes. The keyword for using constants is const. Constants must be explicitly typed. Following is the syntax to declare a constant." }, { ...
Enable TLS for MySQL Clients
TLS is also known as SSL (Secure Sockets Layer). It refers to Transport Layer Security. When there is an unencrypted connection between the MySQL client and the server, a person who has access to the network can watch all the traffic and inspect the data that is being sent or received between client and server. When th...
[ { "code": null, "e": 1150, "s": 1062, "text": "TLS is also known as SSL (Secure Sockets Layer). It refers to Transport Layer Security." }, { "code": null, "e": 1496, "s": 1150, "text": "When there is an unencrypted connection between the MySQL client and the server, a person who ...
Java Program to set alignment for text in JLabel
The following is an example to set left alignment for JLabel − import java.awt.Font; import javax.swing.*; public class SwingDemo { public static void main(String args[]) { JFrame frame = new JFrame("Label Demo"); JLabel label; label = new JLabel("Left aligned!", JLabel.LEFT); label.setFont(n...
[ { "code": null, "e": 1125, "s": 1062, "text": "The following is an example to set left alignment for JLabel −" }, { "code": null, "e": 1510, "s": 1125, "text": "import java.awt.Font;\nimport javax.swing.*;\npublic class SwingDemo {\n public static void main(String args[]) {\n ...
CodeIgniter - Sending Email
Sending email in CodeIgniter is much easier. You also configure the preferences regarding email in CodeIgniter. CodeIgniter provides following features for sending emails − Multiple Protocols − Mail, Sendmail, and SMTP TLS and SSL Encryption for SMTP Multiple recipients CC and BCCs HTML or Plaintext email Attachments W...
[ { "code": null, "e": 2492, "s": 2319, "text": "Sending email in CodeIgniter is much easier. You also configure the preferences regarding email in CodeIgniter. CodeIgniter provides following features for sending emails −" }, { "code": null, "e": 2538, "s": 2492, "text": "Multiple ...
Introduction to Lists in R. Lists can hold components of different... | by Linda Ngo | Towards Data Science
Lists can hold components of different types. Learn how to create, name, and subset these lists. There are a couple of data structures that you can use to hold data: Vectors (one dimensional array) — vectors can hold numeric, character, or logical values, but their elements must all be the same data type. Matrices (two...
[ { "code": null, "e": 144, "s": 47, "text": "Lists can hold components of different types. Learn how to create, name, and subset these lists." }, { "code": null, "e": 213, "s": 144, "text": "There are a couple of data structures that you can use to hold data:" }, { "code":...
Julia - REPL - GeeksforGeeks
28 Jul, 2020 REPL stands for read-eval-print-loop. Julia has an inbuilt full-featured command-line built into Julia executable know as REPL. The Julia program starts the repl by default or REPL can be started by simply calling/writing the Julia without any argument. It comes with a lot of features in it which we will d...
[ { "code": null, "e": 25789, "s": 25761, "text": "\n28 Jul, 2020" }, { "code": null, "e": 26201, "s": 25789, "text": "REPL stands for read-eval-print-loop. Julia has an inbuilt full-featured command-line built into Julia executable know as REPL. The Julia program starts the repl b...
unordered set of tuples in C++ with Examples - GeeksforGeeks
19 Dec, 2021 What is a tuple? A tuple in C++ is an object which is used to group elements together. In a tuple, elements can be of the same data type or different data types. The elements of tuples are initialized as in the order in which they will be accessed. Functions associated with a tuple: 1. make_tuple(): make_...
[ { "code": null, "e": 25343, "s": 25315, "text": "\n19 Dec, 2021" }, { "code": null, "e": 25360, "s": 25343, "text": "What is a tuple?" }, { "code": null, "e": 25593, "s": 25360, "text": "A tuple in C++ is an object which is used to group elements together. In ...
DateTime.ToShortTimeString() Method in C# - GeeksforGeeks
30 Jan, 2019 This method is used to convert the value of the current DateTime object to its equivalent short time string representation. Syntax: public string ToShortTimeString (); Return Value: This method returns a string that contains the short time string representation of the current DateTime object. Below program...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n30 Jan, 2019" }, { "code": null, "e": 25671, "s": 25547, "text": "This method is used to convert the value of the current DateTime object to its equivalent short time string representation." }, { "code": null, "e": 25...
Python | Find indices with None values in given list - GeeksforGeeks
27 Mar, 2019 Many times while working in data science domain we need to get the list of all the indices which are None, so that they can be easily be prepossessed. This is quite a popular problem and solution to it comes quite handy. Let’s discuss certain ways in which this can be done. Method #1 : Using list comprehen...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n27 Mar, 2019" }, { "code": null, "e": 25812, "s": 25537, "text": "Many times while working in data science domain we need to get the list of all the indices which are None, so that they can be easily be prepossessed. This is quit...
Python - motion_blur() in Wand - GeeksforGeeks
18 Oct, 2021 Another kind of blur we can perform in Wand is Motion Blur. In this kind a Gaussia blur is performed in a single linear direction and it appears like image is moving in a linear direction. It takes a new angle parameter. Syntax : Python3 wand.image.motion_blur(radius= radius_value, sigma= sigma_value, ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Oct, 2021" }, { "code": null, "e": 25759, "s": 25537, "text": "Another kind of blur we can perform in Wand is Motion Blur. In this kind a Gaussia blur is performed in a single linear direction and it appears like image is movi...
Python | geometry method in Tkinter - GeeksforGeeks
29 Nov, 2021 Tkinter is a Python module that is used to develop GUI (Graphical User Interface) applications. It comes along with Python, so you do not have to install it using the pip command. Tkinter provides many methods; one of them is the geometry() method. This method is used to set the dimensions of the Tkinter w...
[ { "code": null, "e": 25645, "s": 25617, "text": "\n29 Nov, 2021" }, { "code": null, "e": 25825, "s": 25645, "text": "Tkinter is a Python module that is used to develop GUI (Graphical User Interface) applications. It comes along with Python, so you do not have to install it using ...
How to use react-countup module in ReactJS ? - GeeksforGeeks
19 Feb, 2021 In our React app sometimes we want, a number to be displayed in an increasing manner from zero to its original value in these cases react-countup comes into action. It is an npm package we need to install for using countup functionality. Creating React Application And Installing Module: Step 1: Create a Re...
[ { "code": null, "e": 26095, "s": 26067, "text": "\n19 Feb, 2021" }, { "code": null, "e": 26333, "s": 26095, "text": "In our React app sometimes we want, a number to be displayed in an increasing manner from zero to its original value in these cases react-countup comes into action...
Count of all possible pairs of disjoint subsets of integers from 1 to N - GeeksforGeeks
30 Aug, 2019 Given an integer N. Consider the set of first N natural numbers A = {1, 2, 3, ..., N}. Let M and P be two non-empty subsets of A. The task is to count the number of unordered pairs of (M, P) such that M and P are disjoint sets. Note that the order of M and P doesn’t matter. Examples: Input: N = 3Output: 6T...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n30 Aug, 2019" }, { "code": null, "e": 26212, "s": 25937, "text": "Given an integer N. Consider the set of first N natural numbers A = {1, 2, 3, ..., N}. Let M and P be two non-empty subsets of A. The task is to count the number o...
Find a pair of elements swapping which makes sum of two arrays same - GeeksforGeeks
CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data ScienceExplore MoreSelf-PacedDSA- Self PacedCIPJAVA / Python / C+...
[ { "code": null, "e": 419, "s": 0, "text": "CoursesFor Working ProfessionalsLIVEDSA Live ClassesSystem DesignJava Backend DevelopmentFull Stack LIVEExplore MoreSelf-PacedDSA- Self PacedSDE TheoryMust-Do Coding QuestionsExplore MoreFor StudentsLIVECompetitive ProgrammingData Structures with C++Data Sc...
Python - tensorflow.math.reduce_mean() - GeeksforGeeks
11 Aug, 2021 TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks. reduce_mean() is used to find mean of elements across dimensions of a tensor. Syntax: tensorflow.math.reduce_mean( input_tensor, axis, keepdims, name) Parameters: input_tensor:...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n11 Aug, 2021" }, { "code": null, "e": 25668, "s": 25537, "text": "TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks." }, { "code": null, ...
Java Swing | JSpinner - GeeksforGeeks
06 Jul, 2021 JSpinner is a part of javax.swing package. JSpinner contains a single line of input which might be a number or a object from an ordered sequence. The user can manually type in a legal data into the text field of the spinner. The spinner is sometimes preferred because they do not need a drop down list. Spin...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n06 Jul, 2021" }, { "code": null, "e": 25638, "s": 25225, "text": "JSpinner is a part of javax.swing package. JSpinner contains a single line of input which might be a number or a object from an ordered sequence. The user can manu...
Java Program to Implement Playfair Cipher Algorithm - GeeksforGeeks
11 Nov, 2021 Cipher is an algorithm for encryption and decryption. The cipher text is a process that applies to different types of algorithms to convert plain text to coded text. It is referred to as ciphertext. The Playfair cipher was the first practical digraph substitution cipher. The scheme was invented in 1854 by ...
[ { "code": null, "e": 25249, "s": 25221, "text": "\n11 Nov, 2021" }, { "code": null, "e": 26008, "s": 25249, "text": "Cipher is an algorithm for encryption and decryption. The cipher text is a process that applies to different types of algorithms to convert plain text to coded tex...
C++ Program For Finding The Length Of Loop In Linked List - GeeksforGeeks
05 Apr, 2022 Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop. For example, the loop is present in below-linked list and length of the loop is 4. If the loop is not present, then the function should return 0. Approach:...
[ { "code": null, "e": 25421, "s": 25393, "text": "\n05 Apr, 2022" }, { "code": null, "e": 25719, "s": 25421, "text": "Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop. For example...
Java - String toCharArray() Method
This method converts this string to a new character array. Here is the syntax of this method − public char[] toCharArray() Here is the detail of parameters − NA NA It returns a newly allocated character array, whose length is the length of this string and whose contents are initialized to contain the character sequen...
[ { "code": null, "e": 2436, "s": 2377, "text": "This method converts this string to a new character array." }, { "code": null, "e": 2473, "s": 2436, "text": "Here is the syntax of this method −" }, { "code": null, "e": 2502, "s": 2473, "text": "public char[] t...
Get Your System Information - Using Python Script - GeeksforGeeks
25 Sep, 2020 Getting system information for your system can easily be done by the operating system in use, Ubuntu let’s say. But won’t it be fun to get this System information using Python script? In this article, we will look into various ways to derive your system information using Python. There are two ways to get i...
[ { "code": null, "e": 26131, "s": 26103, "text": "\n25 Sep, 2020" }, { "code": null, "e": 26411, "s": 26131, "text": "Getting system information for your system can easily be done by the operating system in use, Ubuntu let’s say. But won’t it be fun to get this System information ...
Count minimum number of moves to front or end to sort an array - GeeksforGeeks
25 Apr, 2022 Given an array arr[] of size N, the task is to find the minimum moves to the beginning or end of the array required to make the array sorted in non-decreasing order. Examples: Input: arr[] = {4, 7, 2, 3, 9} Output: 2 Explanation: Perform the following operations: Step 1: Move the element 3 to the start of...
[ { "code": null, "e": 26251, "s": 26223, "text": "\n25 Apr, 2022" }, { "code": null, "e": 26417, "s": 26251, "text": "Given an array arr[] of size N, the task is to find the minimum moves to the beginning or end of the array required to make the array sorted in non-decreasing orde...
Addition and Subtraction on TimeDelta objects using Pandas - Python - GeeksforGeeks
29 Aug, 2020 TimeDelta module is used to represent the time in the pandas module and can be used in various ways. Performing operations like addition and subtraction are very important for every language but performing these tasks on dates and time can be very valuable. Operations on TimeDelta dataframe or series – 1...
[ { "code": null, "e": 25665, "s": 25637, "text": "\n29 Aug, 2020" }, { "code": null, "e": 25924, "s": 25665, "text": "TimeDelta module is used to represent the time in the pandas module and can be used in various ways. Performing operations like addition and subtraction are very i...
How to Install and Use BpyTop Resource Monitoring Tool in Linux? - GeeksforGeeks
06 Oct, 2021 It’s just as critical for terminal users to be able to keep track of their system’s resource use. Knowing how much of your system’s resources are being used allows you to make more educated decisions about general system maintenance. Top and htop are two choices, but they only show a few device metrics inc...
[ { "code": null, "e": 26774, "s": 26746, "text": "\n06 Oct, 2021" }, { "code": null, "e": 27306, "s": 26774, "text": "It’s just as critical for terminal users to be able to keep track of their system’s resource use. Knowing how much of your system’s resources are being used allows...
Memento Method - Python Design Patterns - GeeksforGeeks
01 Feb, 2022 Memento Method is a Behavioral Design pattern which provides the ability to restore an object to its previous state. Without revealing the details of concrete implementations, it allows you to save and restore the previous version of the object. It tries not to disturb the encapsulation of the code and all...
[ { "code": null, "e": 24086, "s": 24058, "text": "\n01 Feb, 2022" }, { "code": null, "e": 24457, "s": 24086, "text": "Memento Method is a Behavioral Design pattern which provides the ability to restore an object to its previous state. Without revealing the details of concrete impl...
Square root of two Complex Numbers - GeeksforGeeks
14 Jun, 2021 Given two positive integers A and B representing the complex number Z in the form of Z = A + i * B, the task is to find the square root of the given complex number. Examples: Input: A = 0, B =1Output:The Square roots are: 0.707107 + 0.707107*i-0.707107 – 0.707107*i Input: A = 4, B = 0Output:The Square root...
[ { "code": null, "e": 26047, "s": 26019, "text": "\n14 Jun, 2021" }, { "code": null, "e": 26212, "s": 26047, "text": "Given two positive integers A and B representing the complex number Z in the form of Z = A + i * B, the task is to find the square root of the given complex number...
An extensible Evolutionary Algorithm Example in Python | by Dr. Robert Kübler | Towards Data Science
Evolutionary Algorithms are special methods to solve computational problems, such as optimization problems. They often yield very good results in a reasonable amount of time without us having to put a lot of thought into the problem-specific properties. Usually, we only have to adjust some parameters and then let a qui...
[ { "code": null, "e": 624, "s": 172, "text": "Evolutionary Algorithms are special methods to solve computational problems, such as optimization problems. They often yield very good results in a reasonable amount of time without us having to put a lot of thought into the problem-specific properties. U...
Concatenation Operators in VBScript
VBScript supports the following Concatenation operators − Assume variable A holds 5 and variable B holds 10 then − Try the following example to understand the Concatenation operator available in VBScript − <!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> Dim a : a = ...
[ { "code": null, "e": 2272, "s": 2214, "text": "VBScript supports the following Concatenation operators −" }, { "code": null, "e": 2329, "s": 2272, "text": "Assume variable A holds 5 and variable B holds 10 then −" }, { "code": null, "e": 2420, "s": 2329, "text...
Count rows in a matrix that consist of same element - GeeksforGeeks
31 May, 2021 Given a matrix mat[][], the task is to count the number of rows in the matrix that consists of the same elements. Examples: Input: mat[][] = {{1, 1, 1}, {1, 2, 3}, {5, 5, 5}} Output: 2 All the elements of the first row and all the elements of the third row are the same. Input: mat[][] = {{1, 2}, {4, 2}} ...
[ { "code": null, "e": 26629, "s": 26601, "text": "\n31 May, 2021" }, { "code": null, "e": 26744, "s": 26629, "text": "Given a matrix mat[][], the task is to count the number of rows in the matrix that consists of the same elements. " }, { "code": null, "e": 26755, ...
ByteBuffer position() methods in Java with Examples - GeeksforGeeks
27 Jun, 2019 The position(int newPosition) method of java.nio.ByteBuffer Class is used to Sets this buffer’s position. If the mark is defined and larger than the new position then it is discarded. Syntax: public ByteBuffer position(int newPosition) Parameters: This method takes the newPosition as parameter which is the...
[ { "code": null, "e": 25847, "s": 25819, "text": "\n27 Jun, 2019" }, { "code": null, "e": 26031, "s": 25847, "text": "The position(int newPosition) method of java.nio.ByteBuffer Class is used to Sets this buffer’s position. If the mark is defined and larger than the new position t...
HTML Course | Building Header of the Website - GeeksforGeeks
10 Aug, 2021 Course Navigation So far, we have created the navigation bar for the header of our website. The next thing to complete the header is to include the image and text above the image as shown in below screenshot: Let’s again look at the part of the code for the header in our index.html file. The highlighte...
[ { "code": null, "e": 31625, "s": 31597, "text": "\n10 Aug, 2021" }, { "code": null, "e": 31645, "s": 31625, "text": "Course Navigation " }, { "code": null, "e": 31838, "s": 31645, "text": "So far, we have created the navigation bar for the header of our websi...
Find if a string starts and ends with another given string - GeeksforGeeks
07 May, 2021 Given a string str and a corner string cs, we need to find out whether the string str starts and ends with the corner string cs or not.Examples: Input : str = "geeksmanishgeeks", cs = "geeks" Output : Yes Input : str = "shreya dhatwalia", cs = "abc" Output : No Algorithm Find length of given string ...
[ { "code": null, "e": 26421, "s": 26393, "text": "\n07 May, 2021" }, { "code": null, "e": 26568, "s": 26421, "text": "Given a string str and a corner string cs, we need to find out whether the string str starts and ends with the corner string cs or not.Examples: " }, { "c...
Threaded Binary Tree - GeeksforGeeks
12 Apr, 2022 Inorder traversal of a Binary tree can either be done using recursion or with the use of a auxiliary stack. The idea of threaded binary trees is to make inorder traversal faster and do it without stack and without recursion. A binary tree is made threaded by making all right child pointers that would norma...
[ { "code": null, "e": 26167, "s": 26139, "text": "\n12 Apr, 2022" }, { "code": null, "e": 27089, "s": 26167, "text": "Inorder traversal of a Binary tree can either be done using recursion or with the use of a auxiliary stack. The idea of threaded binary trees is to make inorder tr...
Maximum CPU Load from the given list of jobs - GeeksforGeeks
13 Jan, 2022 Given an array of jobs with different time requirements, where each job consists of start time, end time and CPU load. The task is to find the maximum CPU load at any time if all jobs are running on the same machine. Examples: Input: jobs[] = {{1, 4, 3}, {2, 5, 4}, {7, 9, 6}} Output: 7 Explanation: In the...
[ { "code": null, "e": 25733, "s": 25705, "text": "\n13 Jan, 2022" }, { "code": null, "e": 25950, "s": 25733, "text": "Given an array of jobs with different time requirements, where each job consists of start time, end time and CPU load. The task is to find the maximum CPU load at ...
TypeScript | String slice() Method with example - GeeksforGeeks
18 Jun, 2020 The slice() is an inbuilt function in TypeScript which is used to extracts a section of a string and returns a new string. Syntax: string.slice( beginslice [, endSlice] ) Parameter: This method accept two parameter as mentioned above and described below: beginSlice – This parameter is the zero-based inde...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n18 Jun, 2020" }, { "code": null, "e": 26677, "s": 26545, "text": "The slice() is an inbuilt function in TypeScript which is used to extracts a section of a string and returns a new string. Syntax: " }, { "code": null, ...
How to print a variable name in C? - GeeksforGeeks
28 Jun, 2021 How to print and store a variable name in string variable? We strongly recommend you to minimize your browser and try this yourself first In C, there’s a # directive, also called ‘Stringizing Operator’, which does this magic. Basically # directive converts its argument in a string. #include <stdio.h>#defin...
[ { "code": null, "e": 25689, "s": 25661, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25748, "s": 25689, "text": "How to print and store a variable name in string variable?" }, { "code": null, "e": 25827, "s": 25748, "text": "We strongly recommend you to mi...
Program to find second most frequent character - GeeksforGeeks
01 Jun, 2021 Given a string, find the second most frequent character in it. Expected time complexity is O(n) where n is the length of the input string.Examples: Input: str = "aabababa"; Output: Second most frequent character is 'b' Input: str = "geeksforgeeks"; Output: Second most frequent character is 'g' Input: st...
[ { "code": null, "e": 26016, "s": 25988, "text": "\n01 Jun, 2021" }, { "code": null, "e": 26165, "s": 26016, "text": "Given a string, find the second most frequent character in it. Expected time complexity is O(n) where n is the length of the input string.Examples: " }, { ...
Append a digit in the end to make the number equal to the length of the remaining string - GeeksforGeeks
11 Jun, 2021 Given a string str in which an integer is appended in the end (with or without leading zeroes). The task is to find a single digit from the range [0, 9] that must be appended in the end of the integer so that the number becomes equal to the length of remaining string. Print -1 if its not possible.Examples:...
[ { "code": null, "e": 26577, "s": 26549, "text": "\n11 Jun, 2021" }, { "code": null, "e": 26887, "s": 26577, "text": "Given a string str in which an integer is appended in the end (with or without leading zeroes). The task is to find a single digit from the range [0, 9] that must ...
Find the frequency of a digit in a number - GeeksforGeeks
16 Apr, 2021 Given a number N and a digit D. Write a program to find how many times the digit D appears in the number N.Examples : Input: N = 1122322 , D = 2 Output: 4 Input: N = 346488 , D = 9 Output: 0 The idea to solve this problem is to keep extracting digits from the number N and check the extracted digit...
[ { "code": null, "e": 26519, "s": 26491, "text": "\n16 Apr, 2021" }, { "code": null, "e": 26639, "s": 26519, "text": "Given a number N and a digit D. Write a program to find how many times the digit D appears in the number N.Examples : " }, { "code": null, "e": 26717,...
Express.js res.sendStatus() Function - GeeksforGeeks
16 Oct, 2021 The res.sendStatus() function is used to set the response HTTP status code to statusCode and send its string representation as the response body.Syntax: res.sendStatus( statusCode ) Parameter: The statusCode parameter describes the HTTP status code.Returns: It returns an Object.Installation of express mod...
[ { "code": null, "e": 25975, "s": 25947, "text": "\n16 Oct, 2021" }, { "code": null, "e": 26129, "s": 25975, "text": "The res.sendStatus() function is used to set the response HTTP status code to statusCode and send its string representation as the response body.Syntax: " }, {...
reflect.MakeSlice() Function in Golang with Examples - GeeksforGeeks
03 May, 2020 Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package.The reflect.MakeSlice() Function in Golang is used to create new zero-initialized slice value for the specified slice type, length, a...
[ { "code": null, "e": 25587, "s": 25559, "text": "\n03 May, 2020" }, { "code": null, "e": 25989, "s": 25587, "text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of refle...
parent element method - Selenium Python - GeeksforGeeks
30 Apr, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 25929, "s": 25901, "text": "\n30 Apr, 2020" }, { "code": null, "e": 26486, "s": 25929, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi...
Pure Virtual Functions and Abstract Classes in C++ - GeeksforGeeks
12 Oct, 2021 Sometimes implementation of all function cannot be provided in a base class because we don’t know the implementation. Such a class is called abstract class. For example, let Shape be a base class. We cannot provide implementation of function draw() in Shape, but we know every derived class must have implem...
[ { "code": null, "e": 25395, "s": 25367, "text": "\n12 Oct, 2021" }, { "code": null, "e": 26404, "s": 25395, "text": "Sometimes implementation of all function cannot be provided in a base class because we don’t know the implementation. Such a class is called abstract class. For ex...
How can I create MySQL stored procedure with INOUT parameter?
Following example will demonstrate MySQL stored procedure with INOUT parameter − mysql> DELIMITER // ; mysql> Create PROCEDURE counter(INOUT count INT, IN increment INT) -> BEGIN -> SET count = count + increment; -> END // Query OK, 0 rows affected (0.03 sec) Here, ‘count’ is the INOUT parameter, which can ...
[ { "code": null, "e": 1143, "s": 1062, "text": "Following example will demonstrate MySQL stored procedure with INOUT parameter −" }, { "code": null, "e": 1334, "s": 1143, "text": "mysql> DELIMITER // ;\nmysql> Create PROCEDURE counter(INOUT count INT, IN increment INT)\n -> BEG...
How to create JSON format with group-concat in MySQL?
You can create JSON format using group_concat() function from MySQL. The syntax is as follows − SELECT yourColumnName1, GROUP_CONCAT(CONCAT('{anytName:"', yourColumnName, '", anyName:"',yourColunName,'"}')) anyVariableName from yourTableName group by yourColumnName1; To understand the above syntax, let us first c...
[ { "code": null, "e": 1158, "s": 1062, "text": "You can create JSON format using group_concat() function from MySQL. The syntax is as follows −" }, { "code": null, "e": 1336, "s": 1158, "text": "SELECT yourColumnName1,\n GROUP_CONCAT(CONCAT('{anytName:\"', yourColumnName, '\",\n...
Cordova - InAppBrowser
This plugin is used for opening web browser inside Cordova app. We need to install this plugin in command prompt window before we are able to use it. C:\Users\username\Desktop\CordovaProject>cordova plugin add cordova-plugin-inappbrowser We will add one button that will be used for opening inAppBrowser window in index...
[ { "code": null, "e": 2244, "s": 2180, "text": "This plugin is used for opening web browser inside Cordova app." }, { "code": null, "e": 2330, "s": 2244, "text": "We need to install this plugin in command prompt window before we are able to use it." }, { "code": null, ...
What are variable length (Dynamic) Arrays in Java?
In Java, Arrays are of fixed size. The size of the array will be decided at the time of creation. But if you still want to create Arrays of variable length you can do that using collections like array list. import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class AddingItemsDynamical...
[ { "code": null, "e": 1269, "s": 1062, "text": "In Java, Arrays are of fixed size. The size of the array will be decided at the time of creation. But if you still want to create Arrays of variable length you can do that using collections like array list." }, { "code": null, "e": 2116, ...
K-Concatenation Maximum Sum in C++
Suppose we have an integer array arr and one integer k, we have to change the array by repeating it k times. So if arr = [1, 2] and k = 3 then the modified array will be [1, 2, 1, 2, 1, 2]. Now we have to find the maximum sub-array sum in the modified array. Note that the length of the sub-array can be 0 and its sum in...
[ { "code": null, "e": 1252, "s": 1062, "text": "Suppose we have an integer array arr and one integer k, we have to change the array by\nrepeating it k times. So if arr = [1, 2] and k = 3 then the modified array will be [1, 2, 1, 2, 1, 2]." }, { "code": null, "e": 1465, "s": 1252, ...
Largest Fibonacci Subsequence | Practice | GeeksforGeeks
Given an array with positive integers, the task is to find the largest subsequence from the array which contains only Fibonacci numbers. Example 1: Input : arr[] = {1, 4, 3, 9, 10, 13, 7} Output : subset[] = {1, 3, 13} The output three numbers are Fibonacci numbers. Input : arr[] = {0, 2, 8, 5, 2, 1, 4, ...
[ { "code": null, "e": 375, "s": 238, "text": "Given an array with positive integers, the task is to find the largest subsequence from the array which contains only Fibonacci numbers." }, { "code": null, "e": 388, "s": 377, "text": "Example 1:" }, { "code": null, "e": 5...
Largest palindrome not exceeding N which can be expressed as product of two 3-digit numbers - GeeksforGeeks
31 May, 2021 Given a positive integer N, the task is to find the largest palindromic number less than N and it can be expressed as the product of two 3-digit numbers. Examples: Input: N = 101110Output: 101101Explanation: The number 101101 ( = 143 * 707) is the largest palindromic number possible satisfying the conditio...
[ { "code": null, "e": 26433, "s": 26405, "text": "\n31 May, 2021" }, { "code": null, "e": 26587, "s": 26433, "text": "Given a positive integer N, the task is to find the largest palindromic number less than N and it can be expressed as the product of two 3-digit numbers." }, {...
Python | Maximum element in tuple list - GeeksforGeeks
21 Nov, 2019 Sometimes, while working with data in form of records, we can have a problem in which we need to find the maximum element of all the records received. This is a very common application that can occur in Data Science domain. Let’s discuss certain ways in which this task can be performed. Method #1 : Using m...
[ { "code": null, "e": 25837, "s": 25809, "text": "\n21 Nov, 2019" }, { "code": null, "e": 26125, "s": 25837, "text": "Sometimes, while working with data in form of records, we can have a problem in which we need to find the maximum element of all the records received. This is a ve...
Print matrix after applying increment operations in M ranges - GeeksforGeeks
31 May, 2021 Given a 2-D matrix mat[][] of size N * N, initially all the elements of the matrix are 0. A number of queries(M ranges) need to be performed on the matrix where each query consists of four integers X1, Y1, X2 and Y2, the task is to add 1 to all the cells between mat[X1][Y1] and mat[X2][Y2] (including both)...
[ { "code": null, "e": 25943, "s": 25915, "text": "\n31 May, 2021" }, { "code": null, "e": 26319, "s": 25943, "text": "Given a 2-D matrix mat[][] of size N * N, initially all the elements of the matrix are 0. A number of queries(M ranges) need to be performed on the matrix where ea...
AtomicIntegerArray compareAndSet() method in Java with Examples - GeeksforGeeks
27 Feb, 2019 The Java.util.concurrent.atomic.AtomicIntegerArray.compareAndSet() is an inbuilt method in java that atomically sets the element at a position to the given updated value if the current value is equal to the expected value. This method takes the index value, the expected value and the update value as the pa...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n27 Feb, 2019" }, { "code": null, "e": 25608, "s": 25225, "text": "The Java.util.concurrent.atomic.AtomicIntegerArray.compareAndSet() is an inbuilt method in java that atomically sets the element at a position to the given updated...
Count of contiguous subarrays possible for every index by including the element at that index - GeeksforGeeks
24 Feb, 2022 Given a number N which represents the size of the array A[], the task is to find the number of contiguous subarrays that can be formed for every index of the array by including the element at that index in the original array. Examples: Input: N = 4 Output: {4, 6, 6, 4} Explanation: Since the size of the a...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n24 Feb, 2022" }, { "code": null, "e": 26267, "s": 26041, "text": "Given a number N which represents the size of the array A[], the task is to find the number of contiguous subarrays that can be formed for every index of the array...
How to connect mongodb Server with Node.js ? - GeeksforGeeks
25 Oct, 2020 mongodb.connect() method is the method of the MongoDB module of the Node.js which is used to connect the database with our Node.js Application. This is an asynchronous method of the MongoDB module. Syntax: mongodb.connect(path,callbackfunction) Parameters: This method accept two parameters as mentioned ab...
[ { "code": null, "e": 26657, "s": 26629, "text": "\n25 Oct, 2020" }, { "code": null, "e": 26855, "s": 26657, "text": "mongodb.connect() method is the method of the MongoDB module of the Node.js which is used to connect the database with our Node.js Application. This is an asynchro...
Tailwind CSS Drop Shadow - GeeksforGeeks
23 Mar, 2022 The Drop Shadow class is used to apply a filter to the image to set the shadow of the image. This class creates a blurred shadow in a given offset and color. In CSS, we do that by using the CSS drop-shadow() Function. Tailwind CSS newly added feature brightness in 2.1 version. Drop Shadow: drop-shadow-sm: ...
[ { "code": null, "e": 37385, "s": 37357, "text": "\n23 Mar, 2022" }, { "code": null, "e": 37663, "s": 37385, "text": "The Drop Shadow class is used to apply a filter to the image to set the shadow of the image. This class creates a blurred shadow in a given offset and color. In CS...
How to Create a Thread-Safe ConcurrentHashSet in Java? - GeeksforGeeks
23 Mar, 2022 Creating Thread Safe ConcurrentHashSet is not possible before JDK 8 because of the java.util.concurrent package does not have a class called ConcurrentHashSet, but starting with JDK 8, the newly added keySet (the default) and newKeySet() methods to create a ConcurrentHashSet in Java that is supported by Co...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n23 Mar, 2022" }, { "code": null, "e": 25549, "s": 25225, "text": "Creating Thread Safe ConcurrentHashSet is not possible before JDK 8 because of the java.util.concurrent package does not have a class called ConcurrentHashSet, but...
Longest alternating subsequence - GeeksforGeeks
10 Mar, 2022 A sequence {x1, x2, .. xn} is alternating sequence if its elements satisfy one of the following relations : x1 < x2 > x3 < x4 > x5 < .... xn or x1 > x2 < x3 > x4 < x5 > .... xn Examples : Input: arr[] = {1, 5, 4} Output: 3 The whole arrays is of the form x1 < x2 > x3 Input: arr[] = {1, 4, 5} Outpu...
[ { "code": null, "e": 26181, "s": 26153, "text": "\n10 Mar, 2022" }, { "code": null, "e": 26290, "s": 26181, "text": "A sequence {x1, x2, .. xn} is alternating sequence if its elements satisfy one of the following relations : " }, { "code": null, "e": 26364, "s": 2...
HTML | Spell Check - GeeksforGeeks
11 Aug, 2021 The Spell Check feature in HTML is used to detect grammatical or spelling mistakes in the text fields.The Spell Check feature can be applied to HTML forms using the spellcheck attribute. The spellcheck attribute is an enumerated attribute which defines whether the HTML element will be checked for errors or...
[ { "code": null, "e": 31645, "s": 31617, "text": "\n11 Aug, 2021" }, { "code": null, "e": 32017, "s": 31645, "text": "The Spell Check feature in HTML is used to detect grammatical or spelling mistakes in the text fields.The Spell Check feature can be applied to HTML forms using th...
DFA (Recognizer) for valid Pascal identifiers - GeeksforGeeks
29 Jun, 2021 Problem – Implement a recognizer for pascal identifiers based on a DFA that accepts strings belonging to the definition of the language of the same. Here is a regular definition for the set of Pascal identifiers that are defined as the set of strings of letters and digits beginning with a letter. letter : ...
[ { "code": null, "e": 26105, "s": 26077, "text": "\n29 Jun, 2021" }, { "code": null, "e": 26254, "s": 26105, "text": "Problem – Implement a recognizer for pascal identifiers based on a DFA that accepts strings belonging to the definition of the language of the same." }, { ...
Find position of non-attacking Rooks in lexicographic order that can be placed on N*N chessboard - GeeksforGeeks
07 Mar, 2022 Given an integer N and an array arr[] of positions which denotes the positions of already placed non-attacking rooks, the task is to find the positions of non-attacking rooks in lexicographic order that can be placed on N*N chessboard.Movement of Rooks: Any rook can move horizontally or vertically by any n...
[ { "code": null, "e": 26865, "s": 26837, "text": "\n07 Mar, 2022" }, { "code": null, "e": 27201, "s": 26865, "text": "Given an integer N and an array arr[] of positions which denotes the positions of already placed non-attacking rooks, the task is to find the positions of non-atta...
How to dynamically create and apply CSS class in JavaScript ? - GeeksforGeeks
06 Oct, 2021 In this article, we will see how to dynamically create a CSS class and apply to the element dynamically using JavaScript. To do that, first we create a class and assign it to HTML elements on which we want to apply CSS property. We can use className and classList property in JavaScript. Approach: The class...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26909, "s": 26621, "text": "In this article, we will see how to dynamically create a CSS class and apply to the element dynamically using JavaScript. To do that, first we create a class and a...
Run Python Tests on Every Commit Using GitHub Actions. | Towards Data Science
It’s easy to avoid bugs than fix them. Testing is a critical component of every software project. Among several different types of software testing, some need to run at the time of every commit. For instance, developers should run unit tests to ensure their new change doesn’t contradict any previous ones. Yet, it is a ...
[ { "code": null, "e": 205, "s": 166, "text": "It’s easy to avoid bugs than fix them." }, { "code": null, "e": 473, "s": 205, "text": "Testing is a critical component of every software project. Among several different types of software testing, some need to run at the time of every...
Top 10 OpenCV Functions Everyone Has To Know About | Towards Data Science
Computer Vision and Computer Graphics are really popular right now since they are vastly connected to Artificial Intelligence and the main thing they have in common is that they use the same library OpenCV in order to perform high-level understanding from digital images or videos (CV) or generating images (CG). That is...
[ { "code": null, "e": 484, "s": 171, "text": "Computer Vision and Computer Graphics are really popular right now since they are vastly connected to Artificial Intelligence and the main thing they have in common is that they use the same library OpenCV in order to perform high-level understanding from...
Apache/Airflow and PostgreSQL with Docker and Docker Compose | by Ivan Rezic | Towards Data Science
Hello, in this post I will show you how to set up official Apache/Airflow with PostgreSQL and LocalExecutor using docker and docker-compose. In this post, I won’t be going through Airflow, what it is, and how it is used. Please check the official documentation for more information about that. Before setting up and runn...
[ { "code": null, "e": 465, "s": 171, "text": "Hello, in this post I will show you how to set up official Apache/Airflow with PostgreSQL and LocalExecutor using docker and docker-compose. In this post, I won’t be going through Airflow, what it is, and how it is used. Please check the official document...
SQL Tryit Editor v1.6
SELECT 30 / 10; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of the Try-SQL Editor, with a read-onl...
[ { "code": null, "e": 16, "s": 0, "text": "SELECT 30 / 10;" }, { "code": null, "e": 18, "s": 16, "text": "​" }, { "code": null, "e": 81, "s": 18, "text": "Edit the SQL Statement, and click \"Run SQL\" to see the result." }, { "code": null, "e": 141,...
Confidence Intervals with Python | Luis Roque | Towards Data Science
In a series of weekly articles, I will cover some important statistics topics with a twist. The goal is to use Python to help us get intuition on complex concepts, empirically test theoretical proofs, or build algorithms from scratch. In this series, you will find articles covering topics such as random variables, samp...
[ { "code": null, "e": 264, "s": 172, "text": "In a series of weekly articles, I will cover some important statistics topics with a twist." }, { "code": null, "e": 564, "s": 264, "text": "The goal is to use Python to help us get intuition on complex concepts, empirically test theor...
Difference between cout and std::cout in C++ - GeeksforGeeks
01 Aug, 2020 The cout is a predefined object of ostream class, and it is used to print the data on the standard output device. Generally, when we write a program in Linux operating system for G++ compiler, it needs “std” namespace in the program.We use it by writing using namespace std; then we can access any of the ob...
[ { "code": null, "e": 26119, "s": 26091, "text": "\n01 Aug, 2020" }, { "code": null, "e": 26448, "s": 26119, "text": "The cout is a predefined object of ostream class, and it is used to print the data on the standard output device. Generally, when we write a program in Linux opera...
How to Convert a Kotlin Source File to a Java Source File in Android? - GeeksforGeeks
17 Dec, 2021 We use Android Studio to translate our Java code into Kotlin while transitioning from Java to Kotlin. But what if we need to convert a Kotlin file to its Java equivalent? We’ll examine how to convert a Kotlin source file to a Java source file in this blog. Let’s get this party started. Because of its inter...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n17 Dec, 2021" }, { "code": null, "e": 26848, "s": 26381, "text": "We use Android Studio to translate our Java code into Kotlin while transitioning from Java to Kotlin. But what if we need to convert a Kotlin file to its Java equi...
Python - Test if all Values are Same in Dictionary - GeeksforGeeks
01 Aug, 2020 Given a dictionary, test if all its values are same. Input : test_dict = {“Gfg” : 8, “is” : 8, “Best” : 8}Output : TrueExplanation : All element values are same, 8. Input : test_dict = {“Gfg” : 8, “is” : 8, “Best” : 9}Output : FalseExplanation : All element values not same. Method #1 : Using loop This is o...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n01 Aug, 2020" }, { "code": null, "e": 25590, "s": 25537, "text": "Given a dictionary, test if all its values are same." }, { "code": null, "e": 25702, "s": 25590, "text": "Input : test_dict = {“Gfg” : 8, “is” ...
MessageFormat format() method in Java with Example : Set - 2 - GeeksforGeeks
04 Jan, 2022 The format() method of java.text.MessageFormat class is used to get the formatted array of object according to the specified pattern of message format object. new string pattern will be considered while performing the action.Syntax: public static String format(String pattern, ...
[ { "code": null, "e": 26237, "s": 26209, "text": "\n04 Jan, 2022" }, { "code": null, "e": 26472, "s": 26237, "text": "The format() method of java.text.MessageFormat class is used to get the formatted array of object according to the specified pattern of message format object. new ...
Matplotlib.axes.Axes.set_alpha() in Python - GeeksforGeeks
30 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": 25667, "s": 25639, "text": "\n30 Apr, 2020" }, { "code": null, "e": 25967, "s": 25667, "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, ...
Python Program to convert String to Uppercase under the Given Condition - GeeksforGeeks
02 Feb, 2021 Given a String list, the task is to write a Python program to convert uppercase strings if length is greater than K. Examples: Input : test_list = [“Gfg”, “is”, “best”, “for”, “geeks”], K = 3 Output : [‘Gfg’, ‘is’, ‘BEST’, ‘for’, ‘GEEKS’] Explanation : Best has 4 chars, hence BEST is uppercased. Input : te...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n02 Feb, 2021" }, { "code": null, "e": 25679, "s": 25562, "text": "Given a String list, the task is to write a Python program to convert uppercase strings if length is greater than K." }, { "code": null, "e": 25689, ...
Zoho Interview Experience - GeeksforGeeks
06 Jul, 2021 Hii, I have recently attended the Zoho On-Campus interview. ROUND 1(APTITUDE AND C MCQ’S): In the first round, they have conduct the test for 1 hour. In that, they are two parts apditude and C mcqs . It is very easy to clear. then, I have cleared the first round and selected for the second round. ROUND 2...
[ { "code": null, "e": 26261, "s": 26233, "text": "\n06 Jul, 2021" }, { "code": null, "e": 26321, "s": 26261, "text": "Hii, I have recently attended the Zoho On-Campus interview." }, { "code": null, "e": 26412, "s": 26321, "text": "ROUND 1(APTITUDE AND C MCQ’S):...
GATE | GATE-CS-2014-(Set-3) | Question 65 - GeeksforGeeks
22 Jul, 2021 An operating system uses shortest remaining time first scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with their arrival times and CPU burst times (in milliseconds): Process Arrival Time Burst Time P1 0 12 P2 ...
[ { "code": null, "e": 25473, "s": 25445, "text": "\n22 Jul, 2021" }, { "code": null, "e": 25694, "s": 25473, "text": "An operating system uses shortest remaining time first scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with t...
How to Create Reverse Shells with Netcat in Kali Linux? - GeeksforGeeks
30 Jun, 2020 Netcat is a command in Linux which is used to perform port listening, port redirection, port checking, or even network testing. Netcat is also called a swiss army knife of networking tools. This command is also used to create a reverse shell. Before getting in depth of reverse shell one must be aware of wh...
[ { "code": null, "e": 26085, "s": 26057, "text": "\n30 Jun, 2020" }, { "code": null, "e": 26480, "s": 26085, "text": "Netcat is a command in Linux which is used to perform port listening, port redirection, port checking, or even network testing. Netcat is also called a swiss army ...
Sum of alternating sign Squares of first N natural numbers - GeeksforGeeks
08 Apr, 2021 Given a number N, the task is to find the sum of alternating sign squares of first N natural numbers, i.e., 12 – 22 + 32 – 42 + 52 – 62 + .... Examples: Input: N = 2 Output: 5 Explanation: Required sum = 12 - 22 = -1 Input: N = 8 Output: 36 Explanation: Required sum = 12 - 22 + 32 - 42 + 52 - 62 + 7...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n08 Apr, 2021" }, { "code": null, "e": 26046, "s": 25937, "text": "Given a number N, the task is to find the sum of alternating sign squares of first N natural numbers, i.e., " }, { "code": null, "e": 26083, "s": 2...
HTML | DOM Input Date defaultValue Property - GeeksforGeeks
06 Jun, 2021 The Input Date defaultValue Property in HTML DOM is used to set or return the default value of a date field. This property is used to reflect the HTML value attribute. The main difference between the default value and value is that the default value indicate the default value and the value contains the cur...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n06 Jun, 2021" }, { "code": null, "e": 26573, "s": 26139, "text": "The Input Date defaultValue Property in HTML DOM is used to set or return the default value of a date field. This property is used to reflect the HTML value attrib...
Laravel | MySQL Database Connection - GeeksforGeeks
30 Dec, 2019 The database is an important element in any application. Laravel by default provides the support of MySQL. MySQL is a well known, open-source RDBMS (Relational Database Management System). Process for Connecting to the Database: Step 1: First we have to create a database. So, we will start Apache and MySQL...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n30 Dec, 2019" }, { "code": null, "e": 26406, "s": 26217, "text": "The database is an important element in any application. Laravel by default provides the support of MySQL. MySQL is a well known, open-source RDBMS (Relational Dat...
Program to Convert Set of Integer to Array of Integer in Java - GeeksforGeeks
11 Dec, 2018 Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only one null element. A Stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result. Java 8 ...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n11 Dec, 2018" }, { "code": null, "e": 25407, "s": 25225, "text": "Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only...
Python | RecycleView in Kivy
30 Jan, 2020 Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktop applications. RecycleView:Recycleview helps to deal with a large number of data items...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 264, "s": 28, "text": "Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, Linux and Windows, etc. It is basically used to develop the Android application, but it do...
Python | Filtering data with Pandas .query() method
23 Aug, 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 that makes importing and analyzing data much easier. Analyzing data requires a lot of filtering operations. Pandas provide many methods to filter...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Aug, 2019" }, { "code": null, "e": 268, "s": 53, "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 that makes i...
Uninstall Linux completely from a PC with Windows
29 Apr, 2022 We would learn here how to completely uninstall any Linux OS from PC through Windows. This is a procedure that involves to steps-> (i) Delete Linux Partition (ii) Remove Linux OS from EFI System Partition You must be thinking what is EFI System Partition? The EFI system partition (ESP) is a partition on a ...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Apr, 2022" }, { "code": null, "e": 1329, "s": 52, "text": "We would learn here how to completely uninstall any Linux OS from PC through Windows. This is a procedure that involves to steps-> (i) Delete Linux Partition (ii) Remove Lin...
ML | Classifying Data using an Auto-encoder
28 Nov, 2019 Prerequisites: Building an Auto-encoder This article will demonstrate how to use an Auto-encoder to classify data. The data used below is the Credit Card transactions data to predict whether a given transaction is fraudulent or not. The data can be downloaded from here. Step 1: Loading the required librari...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2019" }, { "code": null, "e": 68, "s": 28, "text": "Prerequisites: Building an Auto-encoder" }, { "code": null, "e": 299, "s": 68, "text": "This article will demonstrate how to use an Auto-encoder to classify...
Plotly - Quick Guide
Plotly is a Montreal based technical computing company involved in development of data analytics and visualisation tools such as Dash and Chart Studio. It has also developed open source graphing Application Programming Interface (API) libraries for Python, R, MATLAB, Javascript and other computer programming languages....
[ { "code": null, "e": 2815, "s": 2494, "text": "Plotly is a Montreal based technical computing company involved in development of data analytics and visualisation tools such as Dash and Chart Studio. It has also developed open source graphing Application Programming Interface (API) libraries for Pyth...
Field getDouble() method in Java with Examples
26 Aug, 2019 The getDouble() method of java.lang.reflect.Field used to get the value of double which has to be static or instance field type. This method also used to get the value of another primitive type convertible to type double via a widening conversion. When a class contains a static or instance double field and...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Aug, 2019" }, { "code": null, "e": 433, "s": 28, "text": "The getDouble() method of java.lang.reflect.Field used to get the value of double which has to be static or instance field type. This method also used to get the value of anot...
Scope rules in C
30 Jun, 2022 Scope = Lifetime The area under which a variable is applicable. Strict definition : A block or a region where a variable is declared, defined and used and when a block or a region ends, variable is automatically destroyed. C #include <stdio.h> int main(){ int var = 34; // Scope of this variable is...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 69, "s": 52, "text": "Scope = Lifetime" }, { "code": null, "e": 116, "s": 69, "text": "The area under which a variable is applicable." }, { "code": null, "e": 275, ...
Matplotlib.pyplot.twinx() in Python
11 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. Sample Code # sample codeimport matplotlib.pyplot as plt plt.plot([1, 2, 3, 4], [16, 4, 1, 8]) plt.show() O...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Apr, 2020" }, { "code": null, "e": 223, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MAT...
Saving Text, JSON, and CSV to a File in Python
29 Dec, 2020 Python allows users to handle files (read, write, save and delete files and many more). Because of Python, it is very easy for us to save multiple file formats. Python has in-built functions to save multiple file formats. Opening a file refers to getting the file ready either for reading or for writing. Th...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Dec, 2020" }, { "code": null, "e": 275, "s": 53, "text": "Python allows users to handle files (read, write, save and delete files and many more). Because of Python, it is very easy for us to save multiple file formats. Python has in...
Struct Hack
06 Sep, 2021 What will be the size of following structure? CPP struct employee{ int emp_id; int name_len; char name[0];}; 4 + 4 + 0 = 8 bytes.And what about size of “name[0]”. In gcc, when we create an array of zero length, it is considered as array of incomplete type that’s why gcc reports its siz...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Sep, 2021" }, { "code": null, "e": 99, "s": 52, "text": "What will be the size of following structure? " }, { "code": null, "e": 103, "s": 99, "text": "CPP" }, { "code": "struct employee{ int emp_i...
Sorting algorithm visualization : Insertion Sort
28 Dec, 2021 An algorithm like Insertion Sort can be understood easily by visualizing. In this article, a program that visualizes the Insertion Sort Algorithm has been implemented. The Graphical User Interface(GUI) is implemented in python using pygame library. Approach: Generate random array and fill the pygame wind...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Dec, 2021" }, { "code": null, "e": 289, "s": 28, "text": "An algorithm like Insertion Sort can be understood easily by visualizing. In this article, a program that visualizes the Insertion Sort Algorithm has been implemented. The Gra...
jQuery UI Tooltips close() Method - GeeksforGeeks
05 Feb, 2021 jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQuery UI tooltip widget helps us to adds new themes and allows for customization. In this article, we will see how to use the close option ...
[ { "code": null, "e": 52596, "s": 52568, "text": "\n05 Feb, 2021" }, { "code": null, "e": 52987, "s": 52596, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpag...
Mobile Telephone System - GeeksforGeeks
13 Nov, 2020 Mobile telephone system is used for wide area voice and data communication. Cell phones have gone through three different generations, called 1G, 2G and 3G. The generations are as following: 1. Analog voice 2. Digital voice 3. Digital voice and data These are explained as following below. First generation...
[ { "code": null, "e": 25755, "s": 25727, "text": "\n13 Nov, 2020" }, { "code": null, "e": 25946, "s": 25755, "text": "Mobile telephone system is used for wide area voice and data communication. Cell phones have gone through three different generations, called 1G, 2G and 3G. The ge...
Python program to determine if the given IPv4 Address is reserved using ipaddress module - GeeksforGeeks
10 Jul, 2020 Given a IPv4 Address, the task is to determine whether it is reserved (i.e belongs to class E) or not. What is class E? IP addresses belonging to class E are reserved for experimental and research purposes. IP addresses of class E range from 240.0.0.0 – 255.255.255.254. This class doesn’t have any sub-net ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n10 Jul, 2020" }, { "code": null, "e": 25640, "s": 25537, "text": "Given a IPv4 Address, the task is to determine whether it is reserved (i.e belongs to class E) or not." }, { "code": null, "e": 25657, "s": 25640, ...
Check if a HexaDecimal number is Even or Odd - GeeksforGeeks
28 Apr, 2021 Given a HexaDecimal number, check whether it is even or odd.Examples: Input: N = ABC7787CC87AA Output: Even Input: N = 9322DEFCD Output: Odd Naive Approach: Convert the number from Hexadecimal base to Decimal base. Then check if the number is even or odd, which can be easily checked by dividing by 2...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n28 Apr, 2021" }, { "code": null, "e": 26009, "s": 25937, "text": "Given a HexaDecimal number, check whether it is even or odd.Examples: " }, { "code": null, "e": 26081, "s": 26009, "text": "Input: N = ABC7787...