title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Construct DFA which interpreted as binary number is divisible by 2, 3, 4 - GeeksforGeeks
28 Jun, 2020 Prerequisite: Finite Automata Introduction, Designing Finite AutomataProblem-1:Construct DFA, which accepts set of all strings over {0, 1} which interpreted as binary number is divisible by 2. Explanation:Consider the following inputs, {0, 01, 10, 11, 100, 101, 110........} The state transition diagram of ...
[ { "code": null, "e": 26432, "s": 26404, "text": "\n28 Jun, 2020" }, { "code": null, "e": 26625, "s": 26432, "text": "Prerequisite: Finite Automata Introduction, Designing Finite AutomataProblem-1:Construct DFA, which accepts set of all strings over {0, 1} which interpreted as bin...
How to Install FatRat Tool in Kali Linux? - GeeksforGeeks
15 Feb, 2022 The FatRat is a free and open-source tool used as an exploiting tool. The FatRat tool adds malware with a payload and after that, the malware that you have developed can be executed on different types of operating systems such as android, windows, mac, Linux. The FatRat is a powerful tool that can bypass...
[ { "code": null, "e": 26307, "s": 26279, "text": "\n15 Feb, 2022" }, { "code": null, "e": 27010, "s": 26309, "text": "The FatRat is a free and open-source tool used as an exploiting tool. The FatRat tool adds malware with a payload and after that, the malware that you have develop...
How to add one polynomial to another using NumPy in Python? - GeeksforGeeks
29 Aug, 2020 In this article, Let’s see how to add one polynomial to another. Two polynomials are given as input and the result is the addition of two polynomials. The polynomial p(x) = C3 x2 + C2 x + C1 is represented in NumPy as : ( C1, C2, C3 ) { the coefficients (constants)}. Let take two polynomials p(x) and q(x...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n29 Aug, 2020" }, { "code": null, "e": 24363, "s": 24212, "text": "In this article, Let’s see how to add one polynomial to another. Two polynomials are given as input and the result is the addition of two polynomials." }, { ...
Encrypt PDF using Java - GeeksforGeeks
17 Jun, 2021 We can encrypt any PDF using Java by using the external library PDFBox. Inside PDFBox library 2 classes are available StandardProtectionPolicy and AccessPermission Class. Encryption Approach: By using the PDFBox library, you will see how you can encrypt the PDF file. Encryption is used when a user wants th...
[ { "code": null, "e": 25111, "s": 25083, "text": "\n17 Jun, 2021" }, { "code": null, "e": 25282, "s": 25111, "text": "We can encrypt any PDF using Java by using the external library PDFBox. Inside PDFBox library 2 classes are available StandardProtectionPolicy and AccessPermission...
Lowest Common Ancestor in a BST | Practice | GeeksforGeeks
Given a Binary Search Tree (with all values unique) and two node values. Find the Lowest Common Ancestors of the two nodes in the BST. Example 1: Input: 5 / \ 4 6 / \ 3 7 \ 8 n1 = 7, n2 = 8 Output: 7 Ex...
[ { "code": null, "e": 373, "s": 238, "text": "Given a Binary Search Tree (with all values unique) and two node values. Find the Lowest Common Ancestors of the two nodes in the BST." }, { "code": null, "e": 384, "s": 373, "text": "Example 1:" }, { "code": null, "e": 556...
p5.js | loop() Function - GeeksforGeeks
17 Jan, 2020 The loop() function is used to call draw() function continuously. The loop() function can be stopped using noLoop() function. Syntax: loop() Below example illustrates the loop() function in p5.js: Example: let l = 0; function setup() { // Create canvas of given size createCanvas(500, 300); // S...
[ { "code": null, "e": 43301, "s": 43273, "text": "\n17 Jan, 2020" }, { "code": null, "e": 43427, "s": 43301, "text": "The loop() function is used to call draw() function continuously. The loop() function can be stopped using noLoop() function." }, { "code": null, "e": ...
The intuition behind Shannon’s Entropy | by Aerin Kim | Towards Data Science
In Chapter 3.13 Information Theory of The Deep Learning Book by Ian Goodfellow, it says: we define the self-information of an event X = x to be I(x) = −log P (x) Our definition of I(x) is therefore written in units of nats. One nat is the amount of information gained by observing an event of probability 1/e. ... We can...
[ { "code": null, "e": 261, "s": 172, "text": "In Chapter 3.13 Information Theory of The Deep Learning Book by Ian Goodfellow, it says:" }, { "code": null, "e": 316, "s": 261, "text": "we define the self-information of an event X = x to be" }, { "code": null, "e": 334, ...
Java Program to Print Downward Triangle Star Pattern - GeeksforGeeks
17 Mar, 2021 Downward triangle star pattern means we want to print a triangle that is downward facing means base is upwards and by default, orientation is leftwards so the desired triangle to be printed should look like * * * * * * * * * * Example Java // Java Program to Print Lower Star Triangle Pattern // Main class...
[ { "code": null, "e": 23582, "s": 23554, "text": "\n17 Mar, 2021" }, { "code": null, "e": 23789, "s": 23582, "text": "Downward triangle star pattern means we want to print a triangle that is downward facing means base is upwards and by default, orientation is leftwards so the desi...
How to create a hyperlink with a Label in Tkinter?
Tkinter Label widgets are generally used to display text or images. In this example, we will see how to add a hyperlink on a Label widget in an application. In order to add a hyperlink, we can bind the label text with a button that makes it clickable. The open_new(url) method is used to define the function that opens a...
[ { "code": null, "e": 1219, "s": 1062, "text": "Tkinter Label widgets are generally used to display text or images. In this example, we will see how to add a hyperlink on a Label widget in an application." }, { "code": null, "e": 1551, "s": 1219, "text": "In order to add a hyperli...
Java & MySQL - Transactions
If your JDBC Connection is in auto-commit mode, which it is by default, then every SQL statement is committed to the database upon its completion. That may be fine for simple applications, but there are three reasons why you may want to turn off the auto-commit and manage your own transactions − To increase performance...
[ { "code": null, "e": 2833, "s": 2686, "text": "If your JDBC Connection is in auto-commit mode, which it is by default, then every SQL statement is committed to the database upon its completion." }, { "code": null, "e": 2983, "s": 2833, "text": "That may be fine for simple applica...
Check whether a node is a root node or not in JTree
To check whether a node is a root node or not, use the isRoot() method. This returns a boolean value. TRUE if the node is a root node, else FALSE is returned. For example, TRUE is returned since the following node is a root node − node.isRoot() Another example, FALSE is returned since the following node isn’t a root no...
[ { "code": null, "e": 1293, "s": 1062, "text": "To check whether a node is a root node or not, use the isRoot() method. This returns a boolean value. TRUE if the node is a root node, else FALSE is returned. For example, TRUE is returned since the following node is a root node −" }, { "code": ...
How to replace an item from an array in JavaScript? - GeeksforGeeks
26 Jul, 2021 An item can be replaced in an array using two approaches: Method 1: Using splice() methodThe array type in JavaScript provides us with splice() method that helps us in order to replace the items of an existing array by removing and inserting new elements at the required/desired index.Approach:Initialize an...
[ { "code": null, "e": 24479, "s": 24451, "text": "\n26 Jul, 2021" }, { "code": null, "e": 24537, "s": 24479, "text": "An item can be replaced in an array using two approaches:" }, { "code": null, "e": 26664, "s": 24537, "text": "Method 1: Using splice() methodT...
Maximum number of characters between any two same character in a string in C
We are given a string of alphabets. The array can have at least two occurrences of the same character. The task here is to find the maximum number of characters between any two occurrences of a character. If there is no repetition of any character then return -1. Input − string str = “abcdba” Output −Maximum number of ...
[ { "code": null, "e": 1326, "s": 1062, "text": "We are given a string of alphabets. The array can have at least two occurrences of the same character. The task here is to find the maximum number of characters between any two occurrences of a character. If there is no repetition of any character then ...
How to programmatically configure Chrome extension through Selenium WebDriver?
We can programmatically configure Chrome extension through Selenium webdriver. We can have multiple extensions of the Chrome browser while we manually open the browser and work on it. However, while the Chrome browser is opened through Selenium webdriver, those extensions which are available to the local browser will n...
[ { "code": null, "e": 1246, "s": 1062, "text": "We can programmatically configure Chrome extension through Selenium webdriver. We can have multiple extensions of the Chrome browser while we manually open the browser and work on it." }, { "code": null, "e": 1484, "s": 1246, "text":...
How to Test for Statistically Significant Relationships Between Categorical Variables with Chi Square | by Lisa Chen | Towards Data Science
A while back, I was analyzing market research data for a survey my company released to gauge customer sentiments towards a new product idea. Many of the variables were categorical (i.e. male, female, which of these features is most / least appealing) and after some initial research, I decided a chi-squared test for ind...
[ { "code": null, "e": 622, "s": 171, "text": "A while back, I was analyzing market research data for a survey my company released to gauge customer sentiments towards a new product idea. Many of the variables were categorical (i.e. male, female, which of these features is most / least appealing) and ...
Count words present in a string - GeeksforGeeks
30 Jun, 2017 Given an array of words and a string, we need to count all words that are present in given string. Examples: Input : words[] = { "welcome", "to", "geeks", "portal"} str = "geeksforgeeks is a computer science portal for geeks." Output : 2 Two words "portal" and "geeks" is present in str. Inpu...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n30 Jun, 2017" }, { "code": null, "e": 24824, "s": 24725, "text": "Given an array of words and a string, we need to count all words that are present in given string." }, { "code": null, "e": 24834, "s": 24824, ...
C++ Program to Perform Matrix Multiplication
A matrix is a rectangular array of numbers that is arranged in the form of rows and columns. An example of a matrix is as follows. A 3*2 matrix has 3 rows and 2 columns as shown below − 8 1 4 9 5 6 A program that performs matrix multiplication is as follows. Live Demo #include<iostream> using namespace std; int main()...
[ { "code": null, "e": 1155, "s": 1062, "text": "A matrix is a rectangular array of numbers that is arranged in the form of rows and columns." }, { "code": null, "e": 1193, "s": 1155, "text": "An example of a matrix is as follows." }, { "code": null, "e": 1248, "s":...
Construct a special tree from given preorder traversal - GeeksforGeeks
18 Apr, 2022 Given an array ‘pre[]’ that represents Preorder traversal of a special binary tree where every node has either 0 or 2 children. One more array ‘preLN[]’ is given which has only two possible values ‘L’ and ‘N’. The value ‘L’ in ‘preLN[]’ indicates that the corresponding node in Binary Tree is a leaf node an...
[ { "code": null, "e": 24972, "s": 24944, "text": "\n18 Apr, 2022" }, { "code": null, "e": 25415, "s": 24972, "text": "Given an array ‘pre[]’ that represents Preorder traversal of a special binary tree where every node has either 0 or 2 children. One more array ‘preLN[]’ is given w...
Controlling the Web with Python. An adventure in simple web automation | by Will Koehrsen | Towards Data Science
An adventure in simple web automation Problem: Submitting class assignments requires navigating a maze of web pages so complex that several times I’ve turned an assignment in to the wrong place. Also, while this process only takes 1–2 minutes, it sometimes seems like an insurmountable barrier (like when I’ve finished a...
[ { "code": null, "e": 210, "s": 172, "text": "An adventure in simple web automation" }, { "code": null, "e": 567, "s": 210, "text": "Problem: Submitting class assignments requires navigating a maze of web pages so complex that several times I’ve turned an assignment in to the wron...
How to Change the Comparator to Return a Descending Order in Java TreeSet? - GeeksforGeeks
17 Jan, 2022 Comparator interface is used to order the objects of user-defined classes. A comparator object is capable of comparing two objects of two different classes. TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The ordering of the elements is ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n17 Jan, 2022" }, { "code": null, "e": 24155, "s": 23557, "text": "Comparator interface is used to order the objects of user-defined classes. A comparator object is capable of comparing two objects of two different classes. TreeSe...
How to Communicate Between Fragments in Android? - GeeksforGeeks
17 Jan, 2022 Now a day most apps have so many features so for that they use multiple fragments in a single app and communication is one of the important parts of apps for sharing data from one fragment to another because two fragments can’t communicate directly. A Fragment represents a portion of any user interface. Th...
[ { "code": null, "e": 25036, "s": 25008, "text": "\n17 Jan, 2022" }, { "code": null, "e": 25429, "s": 25036, "text": "Now a day most apps have so many features so for that they use multiple fragments in a single app and communication is one of the important parts of apps for shari...
Interactive COVID-19 report with RMarkdown, Plotly, Leaflet and Shiny | by Luis Chaves | Towards Data Science
This post is part 3 of a series of 4 publications. Refer to part 1 for an overview of the series, part 2 for an explanation of the data sources and minor data cleaning, part 3 for the creation of the visualisations, building the report and the deploy the document into ShinyApps.io and part 4 (soon to be ready) for auto...
[ { "code": null, "e": 567, "s": 171, "text": "This post is part 3 of a series of 4 publications. Refer to part 1 for an overview of the series, part 2 for an explanation of the data sources and minor data cleaning, part 3 for the creation of the visualisations, building the report and the deploy the ...
C library function - strncpy()
The C library function char *strncpy(char *dest, const char *src, size_t n) copies up to n characters from the string pointed to, by src to dest. In a case where the length of src is less than that of n, the remainder of dest will be padded with null bytes. Following is the declaration for strncpy() function. char *str...
[ { "code": null, "e": 2265, "s": 2007, "text": "The C library function char *strncpy(char *dest, const char *src, size_t n) copies up to n characters from the string pointed to, by src to dest. In a case where the length of src is less than that of n, the remainder of dest will be padded with null by...
Fortran - File Input Output
Fortran allows you to read data from, and write data into files. In the last chapter, you have seen how to read data from, and write data to the terminal. In this chapter you will study file input and output functionalities provided by Fortran. You can read and write to one or more files. The OPEN, WRITE, READ and CLOS...
[ { "code": null, "e": 2211, "s": 2146, "text": "Fortran allows you to read data from, and write data into files." }, { "code": null, "e": 2391, "s": 2211, "text": "In the last chapter, you have seen how to read data from, and write data to the terminal. In this chapter you will st...
Java Applet Class
22 Apr, 2022 Java Applet is a special type of small Java program embedded in the webpage to generate dynamic content. The specialty of the Java applet is it runs inside the browser and works on the Client side (User interface side). For Creating any applet in Java, we use the java.applet.Applet class. It has four Metho...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2022" }, { "code": null, "e": 248, "s": 28, "text": "Java Applet is a special type of small Java program embedded in the webpage to generate dynamic content. The specialty of the Java applet is it runs inside the browser and wor...
What are the different phases of ReactJS component lifecycle ?
19 Oct, 2021 Lifecycle methods: In ReactJS, the development of each component involves the use of different lifecycle methods. All the lifecycle methods used to create such components, together constitute the component’s lifecycle. They are defined as a series of functions invoked in various stages of a component. Each...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Oct, 2021" }, { "code": null, "e": 537, "s": 28, "text": "Lifecycle methods: In ReactJS, the development of each component involves the use of different lifecycle methods. All the lifecycle methods used to create such components, tog...
Choose element(s) from List with different probability in Python
11 Oct, 2020 Have you ever wondered how to select random elements from a list with different probability in Python? In this article, we will discuss how to do the same. Let’s first consider the below example. Python3 import random sam_Lst = [10, 20, 3, 4, 100]ran = random.choice(sam_Lst)print(ran) In the above example...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Oct, 2020" }, { "code": null, "e": 224, "s": 28, "text": "Have you ever wondered how to select random elements from a list with different probability in Python? In this article, we will discuss how to do the same. Let’s first conside...
Query to find 2nd largest value in a column in Table
11 Jun, 2019 Problem: Write a SQL query to find the 2nd largest value in a column in a table. Examples:In the 1st example find the 2nd largest value in column “Income” and in the 2nd one find the 2nd largest value in “Cost”. Input: Table name- Employee +------+--------+ | Name | Income | +------+--------+ | abc | 4000...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jun, 2019" }, { "code": null, "e": 133, "s": 52, "text": "Problem: Write a SQL query to find the 2nd largest value in a column in a table." }, { "code": null, "e": 264, "s": 133, "text": "Examples:In the 1st exam...
Maximum trains for which stoppage can be provided
21 Nov, 2017 We are given n-platform and two main running railway track for both direction. Trains which needs to stop at your station must occupy one platform for their stoppage and the trains which need not to stop at your station will run away through either of main track without stopping. Now, each train has three ...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Nov, 2017" }, { "code": null, "e": 565, "s": 54, "text": "We are given n-platform and two main running railway track for both direction. Trains which needs to stop at your station must occupy one platform for their stoppage and the ...
Digit DP | Introduction
20 Jun, 2022 Prerequisite : How to solve a Dynamic Programming Problem ?There are many types of problems that ask to count the number of integers ‘x‘ between two integers say ‘a‘ and ‘b‘ such that x satisfies a specific property that can be related to its digits.So, if we say G(x) tells the number of such integers betw...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jun, 2022" }, { "code": null, "e": 632, "s": 52, "text": "Prerequisite : How to solve a Dynamic Programming Problem ?There are many types of problems that ask to count the number of integers ‘x‘ between two integers say ‘a‘ and ‘b‘ ...
YouTube Media/Audio Download using Python – pafy
05 Nov, 2021 This tutorial will help you download youtube video or audio with python using pafy library. Pafy library is used to retrieve YouTube content and metadata. Features of Pafy(i) Retrieve metadata such as viewcount, duration, rating, author, thumbnail, keywords.(ii) Download video or audio at requested resolut...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Nov, 2021" }, { "code": null, "e": 209, "s": 54, "text": "This tutorial will help you download youtube video or audio with python using pafy library. Pafy library is used to retrieve YouTube content and metadata." }, { "code...
How to Load XML Data into MySQL using PHP ?
12 Jul, 2021 In this article, we are going to store data present in XML file into MySQL database using PHP in XAMPP server. XML: Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. The design goals of XML ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jul, 2021" }, { "code": null, "e": 139, "s": 28, "text": "In this article, we are going to store data present in XML file into MySQL database using PHP in XAMPP server." }, { "code": null, "e": 403, "s": 139, "tex...
Concentration of Ore – Definition, Methods of Separation, Examples
28 Nov, 2021 Metals are found in ore in the form of compounds with other elements. Metal extraction is the process of extracting metal from its ore. The techniques for extracting metals from their ores and refining them are referred to as metallurgy. There is no single procedure that can extract all of the metals. The ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2021" }, { "code": null, "e": 549, "s": 28, "text": "Metals are found in ore in the form of compounds with other elements. Metal extraction is the process of extracting metal from its ore. The techniques for extracting metals fr...
What is serialization in C#.NET?
Serialization converts objects into a byte stream and brings it to a form that it can be written on stream. This is done to save it to memory, file or database. Serialization can be performed as − All the members, even members that are read-only, are serialized. It serializes the public fields and properties of an obje...
[ { "code": null, "e": 1348, "s": 1187, "text": "Serialization converts objects into a byte stream and brings it to a form that it can be written on stream. This is done to save it to memory, file or database." }, { "code": null, "e": 1384, "s": 1348, "text": "Serialization can be ...
Python DSA-exercises Archives - GeeksforGeeks
Check for balanced parentheses in Python k-nearest neighbor algorithm in Python Python Program for Tower of Hanoi Generate a graph using Dictionary in Python Python Program to Reverse a linked list Python Library for Linked List Python Program for N Queen Problem | Backtracking-3 Check whether the given string is Palin...
[ { "code": null, "e": 24171, "s": 24130, "text": "Check for balanced parentheses in Python" }, { "code": null, "e": 24210, "s": 24171, "text": "k-nearest neighbor algorithm in Python" }, { "code": null, "e": 24244, "s": 24210, "text": "Python Program for Tower ...
JavaScript localStorage
02 Nov, 2021 JavaScript is one of the world’s most popular lightweight, interpreted compiled programming languages. It is synchronous and single-threaded. In JavaScript, the programs are called scripts. These scripts are executed as plain text. We can write them directly on our HTML page or use an external Javascript...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Nov, 2021" }, { "code": null, "e": 557, "s": 28, "text": "JavaScript is one of the world’s most popular lightweight, interpreted compiled programming languages. It is synchronous and single-threaded. In JavaScript, the programs are ...
PayPal Interview Experience | SDE 1 (On-Campus) - GeeksforGeeks
18 Aug, 2020 Online Assessment: 2 Questions – 120 Minutes Question 1 – Coloring nx3 board with 3 colors An automated painting system needs a program that can paint an n x 3 grid in red, green and blue such that no row or column contains cells that are all the same color. Determine the number of valid patterns that can ...
[ { "code": null, "e": 25174, "s": 25146, "text": "\n18 Aug, 2020" }, { "code": null, "e": 25219, "s": 25174, "text": "Online Assessment: 2 Questions – 120 Minutes" }, { "code": null, "e": 25265, "s": 25219, "text": "Question 1 – Coloring nx3 board with 3 colors...
How to accept all pending connection requests on LinkedIn using JavaScript ? - GeeksforGeeks
24 May, 2021 Many times we get a lot of connection requests over LinkedIn, and we want to accept all of them but for that, we have to click the accept button for each connection request. With the help of the following way, we can accept all of them at once using JavaScript helping us to save our time and effort. Approa...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n24 May, 2021" }, { "code": null, "e": 25601, "s": 25300, "text": "Many times we get a lot of connection requests over LinkedIn, and we want to accept all of them but for that, we have to click the accept button for each connectio...
Count of Subarrays | Practice | GeeksforGeeks
Given an array of N positive integers Arr1, Arr2 ............ Arrn. The value of each contiguous subarray of given array is the maximum element present in that subarray. The task is to return the number of subarrays having value strictly greater than K. Example 1: Input: N = 3, K = 2 Arr[] = {3, 2, 1} Output: 3 Explan...
[ { "code": null, "e": 493, "s": 238, "text": "Given an array of N positive integers Arr1, Arr2 ............ Arrn. The value of each contiguous subarray of given array is the maximum element present in that subarray. The task is to return the number of subarrays having value strictly greater than K."...
Perl | Mutable and Immutable parameters - GeeksforGeeks
07 Jun, 2019 A Perl function or subroutine is a group of statements that together perform a specific task. In every programming language, the user wants to reuse the code. So the user puts the section of code in function or subroutine so that there will be no need to write code again and again. These subroutines contai...
[ { "code": null, "e": 24070, "s": 24042, "text": "\n07 Jun, 2019" }, { "code": null, "e": 24741, "s": 24070, "text": "A Perl function or subroutine is a group of statements that together perform a specific task. In every programming language, the user wants to reuse the code. So t...
How to change the aspect ratio of a plot in ggplot2 in R?
The aspect ratio of a chart can be changed in ggplot2 and this will be useful if we want a smaller image of the chart. Sometimes, we don’t have large space where the chart will be pasted therefore this functionality becomes useful. Mostly, in research reports we see charts that are of small size, hence R becomes helpfu...
[ { "code": null, "e": 1492, "s": 1062, "text": "The aspect ratio of a chart can be changed in ggplot2 and this will be useful if we want a smaller image of the chart. Sometimes, we don’t have large space where the chart will be pasted therefore this functionality becomes useful. Mostly, in research r...
Data Exploration 101 with Pandas. Pandas is one of the most powerful... | by Günter Röhrich | Towards Data Science
If you are new to data science, a student running out of time just ahead of an exam or you simply want to see how others may use Pandas to explore and analyse data, follow me here. For this quick introduction, we will use the daily temperature of major cities dataset which is available through Kaggle.com. As a starting...
[ { "code": null, "e": 479, "s": 172, "text": "If you are new to data science, a student running out of time just ahead of an exam or you simply want to see how others may use Pandas to explore and analyse data, follow me here. For this quick introduction, we will use the daily temperature of major ci...
SAP HANA BI Development - Quick Guide
SAP HANA is an in-memory database which also provides HANA Modeling, Data Provisioning, and BI reporting features in a single application. SAP HANA is mostly used as a Data Warehouse for many organizations with Transaction system. SAP is providing HANA as a backend database for various different ERP and CRM based appli...
[ { "code": null, "e": 2640, "s": 2311, "text": "SAP HANA is an in-memory database which also provides HANA Modeling, Data Provisioning, and BI reporting features in a single application. SAP HANA is mostly used as a Data Warehouse for many organizations with Transaction system. SAP is providing HANA ...
Redis - Server Flushall Command
Redis FLUSHALL deletes all the keys of all the existing databases, not just the currently selected one. This command never fails. String reply. Following is the basic syntax of Redis FLUSHALL command. redis 127.0.0.1:6379> FLUSHALL redis 127.0.0.1:6379> FLUSHALL OK 22 Lectures 40 mins Skillbakerystudi...
[ { "code": null, "e": 2175, "s": 2045, "text": "Redis FLUSHALL deletes all the keys of all the existing databases, not just the currently selected one. This command never fails." }, { "code": null, "e": 2189, "s": 2175, "text": "String reply." }, { "code": null, "e": 2...
Convert String into Binary Sequence - GeeksforGeeks
14 Jul, 2021 Given a string of character the task is to convert each character of a string into the equivalent binary number.Examples : Input : GFG Output : 1000111 1000110 1000111 Input : geeks Output : 1100111 1100101 1100101 1101011 1110011 The idea is to first calculate the length of the string as n and...
[ { "code": null, "e": 24772, "s": 24744, "text": "\n14 Jul, 2021" }, { "code": null, "e": 24897, "s": 24772, "text": "Given a string of character the task is to convert each character of a string into the equivalent binary number.Examples : " }, { "code": null, "e": 2...
Power BI and Synapse, Part 1: The Art of the (Im)possible | by Nikola Ilic | Towards Data Science
By introducing Azure Synapse Analytics in late 2019, a whole new perspective was created when it comes to data treatment. Some core concepts, such as traditional data warehousing, came under more scrutiny, while various fresh approaches started to pop up after data nerds became aware of the new capabilities that Synaps...
[ { "code": null, "e": 515, "s": 171, "text": "By introducing Azure Synapse Analytics in late 2019, a whole new perspective was created when it comes to data treatment. Some core concepts, such as traditional data warehousing, came under more scrutiny, while various fresh approaches started to pop up ...
JavaScript | Proxy() Object - GeeksforGeeks
14 Feb, 2019 The proxy object in JavaScript is used to define the custom behavior of fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc). Syntax: var p = new Proxy(target, handler); Parameter: The proxy object accept two parameters as mentioned above and described below: tar...
[ { "code": null, "e": 24055, "s": 24027, "text": "\n14 Feb, 2019" }, { "code": null, "e": 24225, "s": 24055, "text": "The proxy object in JavaScript is used to define the custom behavior of fundamental operations (e.g. property lookup, assignment, enumeration, function invocation,...
All about Pythonic Class: The Life Cycle | by Farhad Naeem | Towards Data Science
This is the second part of “All about Pythonic Class”. Now, our “Python Data Model” series — Objects, Types, and Values; Python Data Model — Part 1All about Pythonic Class: The Birth and Style; Python Data Model — Part 2[a]All about Pythonic Class: The Life Cycle; Python Data Model — Part 2[b] Objects, Types, and Value...
[ { "code": null, "e": 264, "s": 171, "text": "This is the second part of “All about Pythonic Class”. Now, our “Python Data Model” series —" }, { "code": null, "e": 466, "s": 264, "text": "Objects, Types, and Values; Python Data Model — Part 1All about Pythonic Class: The Birth and...
How to randomize (shuffle) a JavaScript array?
To randomize a JavaScript array to display random elements, you can try to run the following code: Live Demo <html> <body> <script> function randomFunc(myArr) { var l = myArr.length, temp, index; while (l > 0) { index = Math.floor(Ma...
[ { "code": null, "e": 1161, "s": 1062, "text": "To randomize a JavaScript array to display random elements, you can try to run the following code:" }, { "code": null, "e": 1171, "s": 1161, "text": "Live Demo" }, { "code": null, "e": 1760, "s": 1171, "text": "<h...
Spring Boot - Admin Client
For monitoring and managing your microservice application via Spring Boot Admin Server, you should add the Spring Boot Admin starter client dependency and point out the Admin Server URI into the application properties file. Note − For monitoring an application, you should enable the Spring Boot Actuator Endpoints for y...
[ { "code": null, "e": 3249, "s": 3025, "text": "For monitoring and managing your microservice application via Spring Boot Admin Server, you should add the Spring Boot Admin starter client dependency and point out the Admin Server URI into the application properties file." }, { "code": null, ...
Python program to find Least Frequent Character in a String
When it is required to find the least frequent character in a string, ‘Counter’ is used to get the count of letters. The ‘min’ method is used to get the minimum of values in the string, i.e every letter’s count is stored along with the letter. The minimum is obtained. Below is a demonstration of the same from collectio...
[ { "code": null, "e": 1331, "s": 1062, "text": "When it is required to find the least frequent character in a string, ‘Counter’ is used to get the count of letters. The ‘min’ method is used to get the minimum of values in the string, i.e every letter’s count is stored along with the letter. The minim...
Rexx - TIME
This method returns the local time in the 24-hour clock format as shown in the following program. hh:mm:ss (hours, minutes, and seconds) TIME(options) Options − This is the options for formatting the time value. They can be anyone of the following options − Civil − This parameter returns the time in the format () wh...
[ { "code": null, "e": 2437, "s": 2339, "text": "This method returns the local time in the 24-hour clock format as shown in the following program." }, { "code": null, "e": 2478, "s": 2437, "text": "hh:mm:ss (hours, minutes, and seconds) \n" }, { "code": null, "e": 2493,...
How to pass an arrayList to another activity using intents in Android?
This example demonstrates how do I pass an arrayList to another activity using intends in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encodin...
[ { "code": null, "e": 1161, "s": 1062, "text": "This example demonstrates how do I pass an arrayList to another activity using intends in android." }, { "code": null, "e": 1290, "s": 1161, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill ...
Greatest Common Divisor of Strings in Python
Suppose there are two strings A and B. We can say that A is divisible by B, when A is created by concatenating B one or more times. So if A = “abcabc”, and B = “abc”, then A is divisible by B. In this section, we will see what is the greatest common divisor of a String. So return the largest string that divides both of...
[ { "code": null, "e": 1462, "s": 1062, "text": "Suppose there are two strings A and B. We can say that A is divisible by B, when A is created by concatenating B one or more times. So if A = “abcabc”, and B = “abc”, then A is divisible by B. In this section, we will see what is the greatest common div...
Redis - Keys Type Command
Redis TYPE command is used to get the data type of the value stored in the key. String reply, data type of the value stored in the key or none. Following is the basic syntax of Redis TYPE command. redis 127.0.0.1:6379> TYPE KEY_NAME First, create some keys in Redis and set some values in it. redis 127.0.0.1:6379> SET...
[ { "code": null, "e": 2125, "s": 2045, "text": "Redis TYPE command is used to get the data type of the value stored in the key." }, { "code": null, "e": 2189, "s": 2125, "text": "String reply, data type of the value stored in the key or none." }, { "code": null, "e": 2...
What are event attributes in jQuery?
jQuery events have attributes such as for keyup and keydown events, if the Ctrl key was pressed, timestamp when the event created, etc. The following are some of the event properties/attributes available: You can try to run the following code to learn how to work with jQuery event attributes: Live Demo <html> <head...
[ { "code": null, "e": 1198, "s": 1062, "text": "jQuery events have attributes such as for keyup and keydown events, if the Ctrl key was pressed, timestamp when the event created, etc." }, { "code": null, "e": 1267, "s": 1198, "text": "The following are some of the event properties...
Implementation of Stack in JavaScript
Following is the code to implement stack in JavaScript − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }...
[ { "code": null, "e": 1119, "s": 1062, "text": "Following is the code to implement stack in JavaScript −" }, { "code": null, "e": 1130, "s": 1119, "text": " Live Demo" }, { "code": null, "e": 3204, "s": 1130, "text": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>...
How to check if a process is exited from the system after executing Stop-Process command in PowerShell?
After killing the process using Stop-Process command in PowerShell, you can determine if the process is really terminated from the system with HasExited function. For example, we will kill Notepad process and check if Notepad process still exists in the system? $notepad = Get-Process notepad | Stop-Process if($notepad....
[ { "code": null, "e": 1225, "s": 1062, "text": "After killing the process using Stop-Process command in PowerShell, you can determine if the process is really terminated from the system with HasExited function." }, { "code": null, "e": 1324, "s": 1225, "text": "For example, we wil...
Python Tutorial
Python is a popular programming language. Python can be used on a server to create web applications. With our "Try it Yourself" editor, you can edit Python code and view the result. Click on the "Try it Yourself" button to see how it works. In our File Handling section you will learn how to open, read, write, and dele...
[ { "code": null, "e": 42, "s": 0, "text": "Python is a popular programming language." }, { "code": null, "e": 101, "s": 42, "text": "Python can be used on a server to create web applications." }, { "code": null, "e": 182, "s": 101, "text": "With our \"Try it Yo...
Find if an array of strings can be chained to form a circle | Set 2 - GeeksforGeeks
07 Mar, 2022 Given an array of strings, find if the given strings can be chained to form a circle. A string X can be put before another string Y in a circle if the last character of X is the same as the first character of Y. Examples: Input: arr[] = {"geek", "king"} Output: Yes, the given strings can be chained. Note ...
[ { "code": null, "e": 26269, "s": 26241, "text": "\n07 Mar, 2022" }, { "code": null, "e": 26481, "s": 26269, "text": "Given an array of strings, find if the given strings can be chained to form a circle. A string X can be put before another string Y in a circle if the last charact...
Find distinct characters in distinct substrings of a string - GeeksforGeeks
07 Sep, 2021 Given a string str, the task is to find the count of distinct characters in all the distinct sub-strings of the given string.Examples: Input: str = “ABCA” Output: 18 Hence, 1 + 2 + 3 + 3 + 1 + 2 + 3 + 1 + 2 = 18Input: str = “AAAB” Output: 10 Approach: Take all possible sub-strings of the given stri...
[ { "code": null, "e": 26833, "s": 26805, "text": "\n07 Sep, 2021" }, { "code": null, "e": 26970, "s": 26833, "text": "Given a string str, the task is to find the count of distinct characters in all the distinct sub-strings of the given string.Examples: " }, { "code": null...
How to List values for each Pandas group? - GeeksforGeeks
20 Aug, 2020 In this article, we’ll see how we can display all the values of each group in which a dataframe is divided. The dataframe is first divided into groups using the DataFrame.groupby() method. Then we modify it such that each group contains the values in a list. First, Let’s create a Dataframe: Python3 # impor...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n20 Aug, 2020" }, { "code": null, "e": 25906, "s": 25647, "text": "In this article, we’ll see how we can display all the values of each group in which a dataframe is divided. The dataframe is first divided into groups using the Da...
Python | Accordion in kivy - GeeksforGeeks
04 Mar, 2022 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 Desktops applications. Kivy Tutorial – Learn Kivy with Examples. Accordion: The Accordion widg...
[ { "code": null, "e": 26070, "s": 26042, "text": "\n04 Mar, 2022" }, { "code": null, "e": 26306, "s": 26070, "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...
C# - Passing Arrays as Function Arguments
You can pass an array as a function argument in C#. The following example demonstrates this − using System; namespace ArrayApplication { class MyArray { double getAverage(int[] arr, int size) { int i; double avg; int sum = 0; for (i = 0; i < size; ++i) { ...
[ { "code": null, "e": 2364, "s": 2270, "text": "You can pass an array as a function argument in C#. The following example demonstrates this −" }, { "code": null, "e": 3141, "s": 2364, "text": "using System;\n\nnamespace ArrayApplication {\n class MyArray {\n double getAvera...
How to get the number of occurrences of each letter in specified string in JavaScript ? - GeeksforGeeks
28 Sep, 2021 Given a string, our task is finding the occurrence of a character in the string with the help of user-defined function. Example: Input : "hello" Output : h occur 1 times e occur 1 times l occur 2 times o occur 1 times Explanation : here "hello" have 1 h, so it have 1 value. ...
[ { "code": null, "e": 38042, "s": 38011, "text": " \n28 Sep, 2021\n" }, { "code": null, "e": 38162, "s": 38042, "text": "Given a string, our task is finding the occurrence of a character in the string with the help of user-defined function." }, { "code": null, "e": 384...
Count number of rows within each group in R DataFrame - GeeksforGeeks
30 May, 2021 DataFrame in R Programming Language may contain columns where not all values are unique. The duplicate values in the dataframe can be sectioned together into one group. The frequencies corresponding to the same columns’ sequence can be captured using various external packages in R programming language. The...
[ { "code": null, "e": 25965, "s": 25937, "text": "\n30 May, 2021" }, { "code": null, "e": 26269, "s": 25965, "text": "DataFrame in R Programming Language may contain columns where not all values are unique. The duplicate values in the dataframe can be sectioned together into one g...
Distance of nearest cell having 1 in a binary matrix - GeeksforGeeks
23 Mar, 2022 Given a binary matrix of N x M, containing at least a value 1. The task is to find the distance of nearest 1 in the matrix for each cell. The distance is calculated as |i1 – i2| + |j1 – j2|, where i1, j1 are the row number and column number of the current cell and i2, j2 are the row number and column numbe...
[ { "code": null, "e": 25068, "s": 25040, "text": "\n23 Mar, 2022" }, { "code": null, "e": 25413, "s": 25068, "text": "Given a binary matrix of N x M, containing at least a value 1. The task is to find the distance of nearest 1 in the matrix for each cell. The distance is calculate...
How To Visualize KPI Progress — Bullet Graph With 3 Measures | by Kiril Yunakov | Towards Data Science
Acouple of months ago, I was tasked to create a new dashboard for my team where the aim was to see what is the status for several key performance metrics compared to our plans and to a forecast. This is how I found the bullet chart type and made some modifications for the purpose of our business case. I believe that, e...
[ { "code": null, "e": 668, "s": 172, "text": "Acouple of months ago, I was tasked to create a new dashboard for my team where the aim was to see what is the status for several key performance metrics compared to our plans and to a forecast. This is how I found the bullet chart type and made some modi...
Tryit Editor v3.7
CSS Grid Item Tryit: The grid-area property
[ { "code": null, "e": 23, "s": 9, "text": "CSS Grid Item" } ]
Print all neighbour nodes within distance K - GeeksforGeeks
15 Nov, 2021 Given a graph of N nodes, E edges, a node X and a distance K. The task is to print all the nodes within the distance K from X. Input: Output: 4 5 2 7 3Neighbour nodes within distance 2 of node 4 are: 4 5 2 7 3 Approach: To print all the nodes that are at distance K or less than K. We can do it by apply...
[ { "code": null, "e": 24675, "s": 24647, "text": "\n15 Nov, 2021" }, { "code": null, "e": 24802, "s": 24675, "text": "Given a graph of N nodes, E edges, a node X and a distance K. The task is to print all the nodes within the distance K from X." }, { "code": null, "e":...
Skewed Binary Tree - GeeksforGeeks
22 Jul, 2021 A skewed binary tree is a type of binary tree in which all the nodes have only either one child or no child. Types of Skewed Binary trees There are 2 special types of skewed tree: 1. Left Skewed Binary Tree: These are those skewed binary trees in which all the nodes are having a left child or no child at...
[ { "code": null, "e": 25017, "s": 24989, "text": "\n22 Jul, 2021" }, { "code": null, "e": 25126, "s": 25017, "text": "A skewed binary tree is a type of binary tree in which all the nodes have only either one child or no child." }, { "code": null, "e": 25156, "s": 2...
How to copy items from one location to another location using PowerShell?
To copy items in PowerShell, one needs to use the Copy-Item cmdlet. When you use the Copy-Item, you need to provide the source file name and the destination file or folder name. In the below example, we will copy a single file from the D:\Temp to the D:\Temp1 location. Copy-Item -Path D:\Temp\PowerShellcommands.csv -De...
[ { "code": null, "e": 1240, "s": 1062, "text": "To copy items in PowerShell, one needs to use the Copy-Item cmdlet. When you use the Copy-Item, you need to provide the source file name and the destination file or folder name." }, { "code": null, "e": 1332, "s": 1240, "text": "In t...
PDFBox - Adding Text
In the previous chapter, we discussed how to add pages to a PDF document. In this chapter, we will discuss how to add text to an existing PDF document. You can add contents to a document using the PDFBox library, this provides you a class named PDPageContentStream which contains the required methods to insert text, ima...
[ { "code": null, "e": 2179, "s": 2027, "text": "In the previous chapter, we discussed how to add pages to a PDF document. In this chapter, we will discuss how to add text to an existing PDF document." }, { "code": null, "e": 2408, "s": 2179, "text": "You can add contents to a docu...
jQuery - Theming
Jquery has two different styling themes as A And B.Each with different colors for buttons, bars, content blocks, and so on. The syntax of J query theming as shown below − <div data-role = "page" data-theme = "a|b"> A Simple of A theming Example as shown below − <!DOCTYPE html> <html> <head> <meta name = "view...
[ { "code": null, "e": 2446, "s": 2322, "text": "Jquery has two different styling themes as A And B.Each with different colors for buttons, bars, content blocks, and so on." }, { "code": null, "e": 2493, "s": 2446, "text": "The syntax of J query theming as shown below −" }, { ...
Assign value to unique number in list in Python
Many times we need to identify the elements in a list uniquely. For that we need to assign unique IDs to each element in the list. This can be achieved by the following two approaches using different inbuilt functions available in Python. The enumerate function assigns unique ids to each element. But if the list alread...
[ { "code": null, "e": 1301, "s": 1062, "text": "Many times we need to identify the elements in a list uniquely. For that we need to assign unique IDs to each element in the list. This can be achieved by the following two approaches using different inbuilt functions available in Python." }, { ...
Commonly used String functions in C/C++ with Examples - GeeksforGeeks
29 Aug, 2021 Strings in C: Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character ‘\0’. Some of the most commonly used String functions are: strcat: The strcat() function will append a copy of the source string to the end...
[ { "code": null, "e": 24352, "s": 24324, "text": "\n29 Aug, 2021" }, { "code": null, "e": 24579, "s": 24352, "text": "Strings in C: Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special chara...
Python program to check if the string is pangram
In this tutorial, we are going to write a program that checks whether a string is a pangram or not. Let's start the tutorial by talking about the pangram. If a string contains all the alphabets whether small or caps then, the string is called panagram. We can achieve the goal in different ways. Let's see two of them in...
[ { "code": null, "e": 1217, "s": 1062, "text": "In this tutorial, we are going to write a program that checks whether a string is a pangram or not. Let's start the tutorial by talking about the pangram." }, { "code": null, "e": 1315, "s": 1217, "text": "If a string contains all th...
What is NgStyle in Angular 10 ? - GeeksforGeeks
30 Apr, 2021 In this article, we are going to see what is NgStyle in Angular 10 and how to use it. NgStyle is used to add some style to an HTML element Syntax: <element [ngStyle] = "typescript_property"> Approach: Create the Angular app to be used In app.component.html make an element and sets its class using ngStyle ...
[ { "code": null, "e": 25109, "s": 25081, "text": "\n30 Apr, 2021" }, { "code": null, "e": 25195, "s": 25109, "text": "In this article, we are going to see what is NgStyle in Angular 10 and how to use it." }, { "code": null, "e": 25248, "s": 25195, "text": "NgSt...
Android App Development Fundamentals for Beginners - GeeksforGeeks
25 May, 2021 Android is an operating system that is built basically for Mobile phones. It is based on the Linux Kernel and other open-source software and is developed by Google. It is used for touchscreen mobile devices such as smartphones and tablets. But nowadays these are used in Android Auto cars, TV, watches, came...
[ { "code": null, "e": 25138, "s": 25110, "text": "\n25 May, 2021" }, { "code": null, "e": 25920, "s": 25138, "text": "Android is an operating system that is built basically for Mobile phones. It is based on the Linux Kernel and other open-source software and is developed by Google...
C++ String Library - insert
It inserts additional characters into the string right before the character indicated by pos. Following is the declaration for std::string::insert. string& insert (size_t pos, const string& str); string& insert (size_t pos, const string& str); string& insert (size_t pos, const string& str); pos − It is an insertion poi...
[ { "code": null, "e": 2697, "s": 2603, "text": "It inserts additional characters into the string right before the character indicated by pos." }, { "code": null, "e": 2751, "s": 2697, "text": "Following is the declaration for std::string::insert." }, { "code": null, "e...
Mastering the Bar Plot in Python. In this tutorial, let us learn the “Bar... | by Tanu N Prabhu | Towards Data Science
The data visualization is one of the most important fundamental toolkits of a data scientist. A good visualization is very hard to produce. Often during a presentation, people don’t understand well enough the data, or the statistics involved but showing them a good visualization will help them understand the story we a...
[ { "code": null, "e": 575, "s": 172, "text": "The data visualization is one of the most important fundamental toolkits of a data scientist. A good visualization is very hard to produce. Often during a presentation, people don’t understand well enough the data, or the statistics involved but showing t...
Python Program to get number of consecutive repeated substring - GeeksforGeeks
06 Jun, 2021 Given a substring K, the task is to write a Python Program to find the repetition of K string in each consecutive occurrence of K. Example Input : test_str = ‘geeksgeeks are geeksgeeksgeeks for all geeks’, K = “geeks” Output : [2, 3, 1] Explanation : First consecution of ‘geeks’ is 2. Input : test_str = ‘...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n06 Jun, 2021" }, { "code": null, "e": 24423, "s": 24292, "text": "Given a substring K, the task is to write a Python Program to find the repetition of K string in each consecutive occurrence of K." }, { "code": null, ...
Construct Pushdown Automata for given languages
22 Nov, 2021 Prerequisite – Pushdown Automata, Pushdown Automata Acceptance by Final State A push down automata is similar to deterministic finite automata except that it has a few more properties than a DFA.The data structure used for implementing a PDA is stack. A PDA has an output associated with every input. All th...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Nov, 2021" }, { "code": null, "e": 729, "s": 54, "text": "Prerequisite – Pushdown Automata, Pushdown Automata Acceptance by Final State A push down automata is similar to deterministic finite automata except that it has a few more p...
Lexicographically next string
09 Jun, 2022 Given a string, find lexicographically next string.Examples: Input : geeks Output : geekt The last character 's' is changed to 't'. Input : raavz Output : raawz Since we can't increase last character, we increment previous character. Input : zzz Output : zzza If string is empty, we return ‘a’. If s...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Jun, 2022" }, { "code": null, "e": 115, "s": 52, "text": "Given a string, find lexicographically next string.Examples: " }, { "code": null, "e": 318, "s": 115, "text": "Input : geeks\nOutput : geekt\nThe last ch...
Shell Script to Perform Operations on a File
12 Dec, 2021 Most of the time, we use shell scripting to interact with the files. Shell scripting offers some operators as well as some commands to check and perform different properties and functionalities associated with the file. For our convenience, we create a file named ‘geeks.txt’ and another .sh file (or simpl...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Dec, 2021" }, { "code": null, "e": 274, "s": 54, "text": "Most of the time, we use shell scripting to interact with the files. Shell scripting offers some operators as well as some commands to check and perform different properties ...
Python | Remove all values from a list present in other list
20 Aug, 2020 Sometimes we need to perform the operation of removing all the items from the lists that are present in another list, i.e we are given some of the invalid numbers in one list which needs to be get ridden from the original list. Let’s discuss various ways in which this can be performed.Method #1: Using list...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Aug, 2020" }, { "code": null, "e": 495, "s": 28, "text": "Sometimes we need to perform the operation of removing all the items from the lists that are present in another list, i.e we are given some of the invalid numbers in one list ...
std::string::clear in C++
06 Jul, 2017 The string content is set to an empty string, erasing any previous content and thus leaving its size at 0 characters.Parameters: noneReturn Value: none void string ::clear () - Removes all characters (makes string empty) - Doesn't throw any error - Receives no parameters and returns nothing // CPP code to ...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 Jul, 2017" }, { "code": null, "e": 205, "s": 53, "text": "The string content is set to an empty string, erasing any previous content and thus leaving its size at 0 characters.Parameters: noneReturn Value: none" }, { "code": ...
How addEventListener works for keydown on HTML 5 Canvas ?
30 Jan, 2020 The addEventListener() method is an inbuilt function in JavaScript which takes the event to listen for. The second argument to be called whenever the described event gets fired means the keydown event is fired whenever a key is pressed. This article explains the working of a keydown event listener on a can...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 340, "s": 28, "text": "The addEventListener() method is an inbuilt function in JavaScript which takes the event to listen for. The second argument to be called whenever the described event gets fire...
JavaScript While Loop
15 Nov, 2021 A While Loop in Javascript is a control flow statement that allows the code to be executed repeatedly based on the given boolean condition. The while loop can be thought of as a repeating if statement. The loop can be used to execute the specific block of code multiple times until it failed to match the co...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Nov, 2021" }, { "code": null, "e": 230, "s": 28, "text": "A While Loop in Javascript is a control flow statement that allows the code to be executed repeatedly based on the given boolean condition. The while loop can be thought of as...
ReactJS Reactstrap Media Component
28 Jul, 2021 Reactstrap is a bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will see how to use the Media Component in Reactstrap. The media component is used to add some media to our project. Properties: Tag: In ReactStrap Me...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2021" }, { "code": null, "e": 165, "s": 28, "text": "Reactstrap is a bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component." }, { "code": null, "e": 3...
Node.js URLsearchParams API
10 Jul, 2020 Node.js is an open-source project widely used for the development of dynamic web applications. The URLSearchParams API in Node.js allows read and write operations on the URL query. The URLSearchParams class is a global object and used with one of the four following constructors. Constructors: new URLSearch...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 Jul, 2020" }, { "code": null, "e": 234, "s": 53, "text": "Node.js is an open-source project widely used for the development of dynamic web applications. The URLSearchParams API in Node.js allows read and write operations on the URL ...
Java Program To Merge K Sorted Linked Lists Using Min Heap - Set 2 - GeeksforGeeks
10 Jan, 2022 Given k linked lists each of size n and each list is sorted in non-decreasing order, merge them into a single sorted (non-decreasing order) linked list and print the sorted linked list as output.Examples: Input: k = 3, n = 4 list1 = 1->3->5->7->NULL list2 = 2->4->6->8->NULL list3 = 0->9->10->11->NULL Ou...
[ { "code": null, "e": 26447, "s": 26419, "text": "\n10 Jan, 2022" }, { "code": null, "e": 26653, "s": 26447, "text": "Given k linked lists each of size n and each list is sorted in non-decreasing order, merge them into a single sorted (non-decreasing order) linked list and print t...
Difference between SHA1 and SHA256 - GeeksforGeeks
28 Dec, 2020 1. SHA1 (Secure Hash Algorithm 1) :SHA1 refers to a cryptographic hash function that is proposed by United States National Security Agency. It takes an input and produces a output of 160 bits hash value. Furthermore the output produced by this function is converted into a 40 digits long hexadecimal number....
[ { "code": null, "e": 25755, "s": 25727, "text": "\n28 Dec, 2020" }, { "code": null, "e": 26198, "s": 25755, "text": "1. SHA1 (Secure Hash Algorithm 1) :SHA1 refers to a cryptographic hash function that is proposed by United States National Security Agency. It takes an input and p...
Python program to find occurrence to each character in given string - GeeksforGeeks
20 May, 2019 Given a string, the task is to write a program in Python which prints the number of occurrences of each character in a string. There are multiple ways in Python, we can do this task. Let’s discuss a few of them. Method #1: Using set() + count() Iterate over the set converted string and get the count of eac...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n20 May, 2019" }, { "code": null, "e": 25690, "s": 25563, "text": "Given a string, the task is to write a program in Python which prints the number of occurrences of each character in a string." }, { "code": null, "e":...
JvmStatic, JvmOverloads, and JvmField in Kotlin - GeeksforGeeks
19 Sep, 2021 In this article, we’ll look at how to utilize Kotlin code in our current Java code using @JvmStatic, @JvmOverloads, and @JvmField in Kotlin. You may invoke Kotlin code from Java code and vice versa. This blog will concentrate on invoking Kotlin code from Java code. Kotlin Java // Kotlin Classclass Geeksfor...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n19 Sep, 2021" }, { "code": null, "e": 26647, "s": 26381, "text": "In this article, we’ll look at how to utilize Kotlin code in our current Java code using @JvmStatic, @JvmOverloads, and @JvmField in Kotlin. You may invoke Kotlin ...
How to use Fade Component in ReactJS ? - GeeksforGeeks
22 Feb, 2021 Fade Component adds a fade animation to a child element or component. Material UI for React has this component available for us, and it is very easy to integrate. We can use the Fade Component in ReactJS using the following approach. Popper Transitions: The Transition component is used as an animated featu...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n22 Feb, 2021" }, { "code": null, "e": 26305, "s": 26071, "text": "Fade Component adds a fade animation to a child element or component. Material UI for React has this component available for us, and it is very easy to integrate. ...
MIS - Quick Guide
Information can be defined as meaningfully interpreted data. If we give you a number 1-212-290-4700, it does not make any sense on its own. It is just a raw data. However if we say Tel: +1-212-290-4700, it starts making sense. It becomes a telephone number. If I gather some more data and record it meaningfully like − A...
[ { "code": null, "e": 2643, "s": 2324, "text": "Information can be defined as meaningfully interpreted data. If we give you a number 1-212-290-4700, it does not make any sense on its own. It is just a raw data. However if we say Tel: +1-212-290-4700, it starts making sense. It becomes a telephone num...
Check given matrix is magic square or not in C++
Here we will see, if a matrix is magic square or not, a magic square is a square matrix, where the sum of each row, each column, and each diagonal are same. Suppose a matrix is like below − This is a magic square, if we see, the sum of each row, column and diagonals are 15. To check whether a matrix is magic square or ...
[ { "code": null, "e": 1219, "s": 1062, "text": "Here we will see, if a matrix is magic square or not, a magic square is a square matrix, where the sum of each row, each column, and each diagonal are same." }, { "code": null, "e": 1252, "s": 1219, "text": "Suppose a matrix is like ...
How to create a JMenuBar Component in Java?
To create a JMenuBar component, use the JMenuBar class − JMenuBar menuBar = new JMenuBar(); Now, create menus inside the MenuBar − JMenu fileMenu = new JMenu("File"); Add the above menu to the MenuBar − menuBar.add(fileMenu); The following is an example to create a JMenuBar Component in Java − package my; import java.a...
[ { "code": null, "e": 1119, "s": 1062, "text": "To create a JMenuBar component, use the JMenuBar class −" }, { "code": null, "e": 1154, "s": 1119, "text": "JMenuBar menuBar = new JMenuBar();" }, { "code": null, "e": 1193, "s": 1154, "text": "Now, create menus i...
I Used Code to Create Animation. Here’s How. | by Matt Przybyla | Towards Data Science
IntroductionProcessingCodingExampleSummaryReferences Introduction Processing Coding Example Summary References From my article you will learn two main takeaways: 1. What the Processing software platform is. 2. How to execute code to create an entertaining and beautiful animation. You do not need to be an expert coder o...
[ { "code": null, "e": 224, "s": 171, "text": "IntroductionProcessingCodingExampleSummaryReferences" }, { "code": null, "e": 237, "s": 224, "text": "Introduction" }, { "code": null, "e": 248, "s": 237, "text": "Processing" }, { "code": null, "e": 255...