title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Cryptography Introduction - GeeksforGeeks
13 Feb, 2020 Cryptography is the study and practice of techniques for secure communication in the presence of third parties called adversaries. It deals with developing and analyzing protocols which prevents malicious third parties from retrieving information being shared between two entities thereby following the vari...
[ { "code": null, "e": 24456, "s": 24428, "text": "\n13 Feb, 2020" }, { "code": null, "e": 24800, "s": 24456, "text": "Cryptography is the study and practice of techniques for secure communication in the presence of third parties called adversaries. It deals with developing and ana...
C++ Program to Implement the Rabin-Miller Primality Test to Check if a Given Number is Prime
Rabin-Miller Primality Test is used to check if a given Number is Prime or not. It is similar to the format primality and the Solovay-Stressen test. this test first was discovered by Russian Mathematician M. M. Artjuhov. Begin ll mulmod(ll a, ll b, ll m) ll x = 0,y = a mod m while (b > 0) if (b mod 2 == ...
[ { "code": null, "e": 1283, "s": 1062, "text": "Rabin-Miller Primality Test is used to check if a given Number is Prime or not. It is similar to the format primality and the Solovay-Stressen test. this test first was discovered by Russian Mathematician M. M. Artjuhov." }, { "code": null, ...
Android | How to Change Toast font? - GeeksforGeeks
17 Sep, 2019 A Toast is a feedback message. It takes a very little space for displaying while overall activity is interactive and visible to the user. It disappears after a few seconds. It disappears automatically. If user wants permanent visible message, Notification can be used. Toast disappears automatically based o...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n17 Sep, 2019" }, { "code": null, "e": 24217, "s": 23948, "text": "A Toast is a feedback message. It takes a very little space for displaying while overall activity is interactive and visible to the user. It disappears after a few...
Node.js - NPM
Node Package Manager (NPM) provides two main functionalities − Online repositories for node.js packages/modules which are searchable on search.nodejs.org Online repositories for node.js packages/modules which are searchable on search.nodejs.org Command line utility to install Node.js packages, do version management and...
[ { "code": null, "e": 2081, "s": 2018, "text": "Node Package Manager (NPM) provides two main functionalities −" }, { "code": null, "e": 2172, "s": 2081, "text": "Online repositories for node.js packages/modules which are searchable on search.nodejs.org" }, { "code": null, ...
PyQt5 – Digital StopWatch - GeeksforGeeks
22 Apr, 2020 In this article we will see how we can create a stop watch using Python GUI – PyQt5.A stopwatch is a handheld timepiece designed to measure the amount of time that elapses between its activation and deactivation. A large digital version of a stopwatch designed for viewing at a distance, as in a sports stad...
[ { "code": null, "e": 24240, "s": 24212, "text": "\n22 Apr, 2020" }, { "code": null, "e": 24575, "s": 24240, "text": "In this article we will see how we can create a stop watch using Python GUI – PyQt5.A stopwatch is a handheld timepiece designed to measure the amount of time that...
Highcharts - Ajax Loaded Data Chart
Here, we will discuss an example of an ajax loaded data chart. To begin with, we will make an ajax call to load a csv file from Highcharts.Com using the jQuery.getJSON() method and when the data gets retrieved, we will populate the chart with received data and draw the chart. We have understood most of the configuratio...
[ { "code": null, "e": 2294, "s": 2017, "text": "Here, we will discuss an example of an ajax loaded data chart. To begin with, we will make an ajax call to load a csv file from Highcharts.Com using the jQuery.getJSON() method and when the data gets retrieved, we will populate the chart with received d...
How to remove an element from an array in JavaScript? - GeeksforGeeks
14 Mar, 2019 Array splice() method can be used to remove any particular element from an array in JavaScript. Moreover, this function can be used to add/remove more than one element from an array. Syntax: array.splice(index, howmany, item1, ....., itemX) Parameters: This method requires 3 parameters :- index: Required. ...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n14 Mar, 2019" }, { "code": null, "e": 25092, "s": 24909, "text": "Array splice() method can be used to remove any particular element from an array in JavaScript. Moreover, this function can be used to add/remove more than one ele...
Queries to count Palindrome Numbers from a range whose sum of digits is a Prime Number
09 Jun, 2021 Given an array Q[][] consisting of N queries of the form {L, R}, the task for each query is to find the count of the numbers in the range [L, R] that are palindrome and the sum of their digits is a prime number. Examples: Input: Q[][] = {{5, 9}, {5, 22}}Output:23Explanation:Query 1: All palindrome numbers ...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jun, 2021" }, { "code": null, "e": 266, "s": 54, "text": "Given an array Q[][] consisting of N queries of the form {L, R}, the task for each query is to find the count of the numbers in the range [L, R] that are palindrome and the s...
Longest Common Substring | DP-29
21 Jun, 2022 Given two strings ‘X’ and ‘Y’, find the length of the longest common substring. Examples : Input : X = “GeeksforGeeks”, y = “GeeksQuiz” Output : 5 Explanation:The longest common substring is “Geeks” and is of length 5. Input : X = “abcdxyz”, y = “xyzabcd” Output : 4 Explanation:The longest common substri...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2022" }, { "code": null, "e": 135, "s": 54, "text": "Given two strings ‘X’ and ‘Y’, find the length of the longest common substring. " }, { "code": null, "e": 147, "s": 135, "text": "Examples : " }, { ...
Material UI ToolBar
20 Jan, 2021 Material-UI is a user interface library that provides predefined and customizable React components for faster and easy web development, these Material-UI components are based on top of Material Design by Google. In this article let’s discuss the Toolbar component in the Material-UI library. Toolbar: ToolBa...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jan, 2021" }, { "code": null, "e": 320, "s": 28, "text": "Material-UI is a user interface library that provides predefined and customizable React components for faster and easy web development, these Material-UI components are based ...
How to Integrate Google Admob Rewarded Video Ads in Android?
01 Sep, 2020 In order to earn money from the Android app or game, there are many ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another popular method to earn money from the Android app is by integrating an advertisement e.g known as Google AdMob. Google AdMob is designed with d...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Sep, 2020" }, { "code": null, "e": 512, "s": 28, "text": "In order to earn money from the Android app or game, there are many ways such as in-App Purchases, Sponsorship, Advertisements, and many more. But there is another popular met...
Kotlin | apply vs with
09 Aug, 2019 In Kotlin, apply is an extension function on a particular type and sets its scope to object on which apply is invoked. Apply runs on the object reference into the expression and also returns the object reference on completion. It does not simply setting properties of course but do much more functionalities...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Aug, 2019" }, { "code": null, "e": 462, "s": 28, "text": "In Kotlin, apply is an extension function on a particular type and sets its scope to object on which apply is invoked. Apply runs on the object reference into the expression a...
Program for Employee Management System
06 Sep, 2021 A Employee’s Management System (EMS) is a software built to handle the primary housekeeping functions of a company. EMS help companies keep track of all the employees and their records. It is used to manage the company using computerized system. Aim of Employee’s Management System: Built The Employee Tabl...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Sep, 2021" }, { "code": null, "e": 300, "s": 54, "text": "A Employee’s Management System (EMS) is a software built to handle the primary housekeeping functions of a company. EMS help companies keep track of all the employees and the...
Sum of series 2/3 – 4/5 + 6/7 – 8/9 + ——- upto n terms
25 May, 2022 Given the value of n, find the sum of the series (2 / 3) – (4 / 5) + (6 / 7) – (8 / 9) + – – – – – – – upto n terms.Examples : Input : n = 5 Output : 0.744012 Series : (2 / 3) - (4 / 5) + (6 / 7) - (8 / 9) + (10 / 11) Input : n = 7 Output : 0.754268 Series : (2 / 3) - (4 / 5) + (6 / 7) - (8 / 9) + ...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 May, 2022" }, { "code": null, "e": 157, "s": 28, "text": "Given the value of n, find the sum of the series (2 / 3) – (4 / 5) + (6 / 7) – (8 / 9) + – – – – – – – upto n terms.Examples : " }, { "code": null, "e": 373, ...
Python program to find the gcd of two numbers
26 Nov, 2020 Given two numbers. The task is to find the GCD of the two numbers. Using STL : In Python, the math module contains a number of mathematical operations, which can be performed with ease using the module. math.gcd() function compute the greatest common divisor of 2 numbers mentioned in its arguments. Syntax:...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Nov, 2020" }, { "code": null, "e": 119, "s": 52, "text": "Given two numbers. The task is to find the GCD of the two numbers." }, { "code": null, "e": 131, "s": 119, "text": "Using STL :" }, { "code": null...
Perl | abs() function
25 Jun, 2019 This function returns the absolute value of its argument. If a pure integer value is passed then it will return it as it is, but if a string is passed then it will return zero. If VALUE is omitted then it uses $_ Syntax: abs(VALUE) Parameter:VALUE: It is a required number which can be either positive or ne...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jun, 2019" }, { "code": null, "e": 241, "s": 28, "text": "This function returns the absolute value of its argument. If a pure integer value is passed then it will return it as it is, but if a string is passed then it will return zero...
Reduce the array by deleting elements which are greater than all elements to its left
09 Jun, 2021 Given an array arr[] of N integers, the task is to delete the element from the given array if element to it’s left is smaller than it. Keep on deleting the elements from the array until no element has a smaller adjacent left element. Print the resultant array after above operation. Examples: Input: arr[] ...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jun, 2021" }, { "code": null, "e": 337, "s": 54, "text": "Given an array arr[] of N integers, the task is to delete the element from the given array if element to it’s left is smaller than it. Keep on deleting the elements from the ...
Python | Initializing dictionary with empty lists
11 May, 2020 In python one usually comes across situations in which one has to use dictionary for storing the lists. But in those cases, one usually checks for first element and then creates a list corresponding to key when it comes. But its always wanted a method to initialize the dict. keys with list. Let’s discuss c...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 May, 2020" }, { "code": null, "e": 380, "s": 28, "text": "In python one usually comes across situations in which one has to use dictionary for storing the lists. But in those cases, one usually checks for first element and then creat...
JSTL - Core <fmt:formatNumber> Tag
The <fmt:formatNumber> tag is used to format numbers, percentages, and currencies. The <fmt:formatNumber> tag has the following attributes − If the type attribute is percent or number, then you can use several number-formatting attributes. The maxIntegerDigits and minIntegerDigits attributes allow you to specify the s...
[ { "code": null, "e": 2457, "s": 2373, "text": "The <fmt:formatNumber> tag is used to format numbers, percentages, and currencies." }, { "code": null, "e": 2515, "s": 2457, "text": "The <fmt:formatNumber> tag has the following attributes −" }, { "code": null, "e": 281...
Connect PHP to MySQL
03 Jun, 2022 What is MySQL? MySQL is an open-source relational database management system (RDBMS). It is the most popular database system used with PHP. Structured Query Language (SQL). The data in a MySQL database are stored in tables that consist of columns and rows. MySQL is a database system that runs on a server. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Jun, 2022" }, { "code": null, "e": 67, "s": 52, "text": "What is MySQL?" }, { "code": null, "e": 192, "s": 67, "text": "MySQL is an open-source relational database management system (RDBMS). It is the most popula...
hypot(), hypotf(), hypotl() in C++
24 Oct, 2019 The hypot() function in C++ returns the square root of sum of square of arguments passed. It finds the hypotenuse, hypotenuse is the longest side of a right angled triangle. It is calculated by the formula : h = sqrt(x2+y2) where x and y are the other two sides of the triangle. Syntax: double hypot(double...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Oct, 2019" }, { "code": null, "e": 261, "s": 53, "text": "The hypot() function in C++ returns the square root of sum of square of arguments passed. It finds the hypotenuse, hypotenuse is the longest side of a right angled triangle. ...
Program for Sudoku Generator
22 Jun, 2022 Background: Following are the rules of Sudoku for a player. In all 9 sub matrices 3×3 the elements should be 1-9, without repetition.In all rows there should be elements between 1-9 , without repetition.In all columns there should be elements between 1-9 , without repetition. In all 9 sub matrices 3×3 the...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2022" }, { "code": null, "e": 113, "s": 52, "text": "Background: Following are the rules of Sudoku for a player. " }, { "code": null, "e": 330, "s": 113, "text": "In all 9 sub matrices 3×3 the elements shoul...
Random number generator in arbitrary probability distribution fashion
21 Oct, 2021 Given n numbers, each with some frequency of occurrence. Return a random number with probability proportional to its frequency of occurrence. Example: Let following be the given numbers. arr[] = {10, 30, 20, 40} Let following be the frequencies of given numbers. freq[] = {1, 6, 2, 1} The output ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Oct, 2021" }, { "code": null, "e": 194, "s": 52, "text": "Given n numbers, each with some frequency of occurrence. Return a random number with probability proportional to its frequency of occurrence." }, { "code": null, ...
priority_queue::push() and priority_queue::pop() in C++ STL
14 Jun, 2022 Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is either the greatest or the smallest of all elements in the queue. However, in C++ STL (by default) the largest element is at the top. We can also create a priority queue having the smallest e...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 449, "s": 52, "text": "Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is either the greatest or the smallest of all elements in the...
How to Install python-nmap Library on Linux?
05 Oct, 2021 Python-Nmap is a network mapper that is exceptionally vital in handling security auditing and discovering the network. It exists as an open-source project; thus it is available for free. All the core operating systems support Python-Nmap. However, the binary packages are only available for Windows, Linux...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Oct, 2021" }, { "code": null, "e": 217, "s": 28, "text": "Python-Nmap is a network mapper that is exceptionally vital in handling security auditing and discovering the network. It exists as an open-source project; thus it is availabl...
Sorting Vector of Pairs by 1st element in ascending and 2nd element in descending
12 Jun, 2022 A pair is a container that stores two values mapped to each other, and a vector containing multiple numbers of such pairs is called a vector of pairs. While solving problems there come many instances where there is a need to sort the elements of vector on the basis of both the first and second elements of ...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Jun, 2022" }, { "code": null, "e": 203, "s": 52, "text": "A pair is a container that stores two values mapped to each other, and a vector containing multiple numbers of such pairs is called a vector of pairs." }, { "code": n...
How to parse a JSON File in PHP ?
26 May, 2021 In this article, we are going to parse the JSON file by displaying JSON data using PHP. PHP is a server-side scripting language used to process the data. JSON stands for JavaScript object notation. JSON data is written as name/value pairs. Syntax: {“Data”:[{“key”:”value”,“key”:value,“key n “:”value”},. . ....
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2021" }, { "code": null, "e": 268, "s": 28, "text": "In this article, we are going to parse the JSON file by displaying JSON data using PHP. PHP is a server-side scripting language used to process the data. JSON stands for JavaS...
Print all 3 digit repeating numbers in a very large number
11 May, 2021 Given a very large number, print all the 3 digit repeating numbers with their frequency. If a 3 digit number appears more then once, print the number and its frequency. Example: Input: 123412345123456 Output: 123 - 3 times 234 - 3 times 345 - 2 times Input: 43243243 Output: 432 - 2 tim...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 May, 2021" }, { "code": null, "e": 233, "s": 54, "text": "Given a very large number, print all the 3 digit repeating numbers with their frequency. If a 3 digit number appears more then once, print the number and its frequency. Examp...
How to install bootstrap in React.js ?
20 Nov, 2021 Bootstrap is one of the most popular front-end open-source toolkit for developing responsive, mobile-first front-end projects on the web. It contains various types of design templates based on CSS and JavaScript. It has various prebuilt components such as Accordion, Alerts, Carousel, Button, Card, Breadcru...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Nov, 2021" }, { "code": null, "e": 576, "s": 28, "text": "Bootstrap is one of the most popular front-end open-source toolkit for developing responsive, mobile-first front-end projects on the web. It contains various types of design t...
Python – Group similar elements into Matrix
30 Dec, 2020 Sometimes, while working with Python Matrix, we can have a problem in which we need to perform grouping of all the elements with are same. This kind of problem can have application in data domains. Let’s discuss certain ways in which this task can be performed. Input : test_list = [1, 3, 4, 4, 2, 3]Output ...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2020" }, { "code": null, "e": 290, "s": 28, "text": "Sometimes, while working with Python Matrix, we can have a problem in which we need to perform grouping of all the elements with are same. This kind of problem can have applic...
Circuit Switching in Computer Network
13 Jun, 2022 In circuit switching network resources (bandwidth) are divided into pieces and bit delay is constant during a connection. The dedicated path/circuit established between sender and receiver provides a guaranteed data rate. Data can be transmitted without any delays once the circuit is established. Telephon...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 353, "s": 54, "text": "In circuit switching network resources (bandwidth) are divided into pieces and bit delay is constant during a connection. The dedicated path/circuit established between sende...
Program to find the diameter, cycles and edges of a Wheel Graph
02 Dec, 2019 Wheel Graph: A Wheel graph is a graph formed by connecting a single universal vertex to all vertices of a cycle. Properties:- Wheel graphs are Planar graphs. There is always a Hamiltonian cycle in the Wheel graph. Chromatic Number is 3 and 4, if n is odd and even respectively. Problem Statement: Given the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Dec, 2019" }, { "code": null, "e": 154, "s": 28, "text": "Wheel Graph: A Wheel graph is a graph formed by connecting a single universal vertex to all vertices of a cycle. Properties:-" }, { "code": null, "e": 186, "s"...
Total number of Subsets of size at most K
21 Jan, 2022 Given a number N which is the size of the set and a number K, the task is to find the count of subsets, of the set of N elements, having at most K elements in it, i.e. the size of subset is less than or equal to K.Examples: Input: N = 3, K = 2 Output: 6 Subsets with 1 element in it = {1}, {2}, {3} Subset...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jan, 2022" }, { "code": null, "e": 254, "s": 28, "text": "Given a number N which is the size of the set and a number K, the task is to find the count of subsets, of the set of N elements, having at most K elements in it, i.e. the siz...
Java Class File
09 Jun, 2021 A Java class file is a file containing Java bytecode and having .class extension that can be executed by JVM. A Java class file is created by a Java compiler from .java files as a result of successful compilation. As we know that a single Java programming language source file (or we can say .java file) may...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jun, 2021" }, { "code": null, "e": 567, "s": 54, "text": "A Java class file is a file containing Java bytecode and having .class extension that can be executed by JVM. A Java class file is created by a Java compiler from .java files...
How to Filter a Vector in R
03 Sep, 2021 In this article, we are going to discuss how to filter a vector in the R programming language. Filtering a vector means getting the values from the vector by removing the others, we can also say that getting the required elements is known as filtering. Here we can filter the elements in a vector by using t...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Sep, 2021" }, { "code": null, "e": 123, "s": 28, "text": "In this article, we are going to discuss how to filter a vector in the R programming language." }, { "code": null, "e": 281, "s": 123, "text": "Filtering a...
How to use BroadcastReceiver in Kotlin?
This example demonstrates how to use BroadcastReceiver in Kotlin . Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns...
[ { "code": null, "e": 1254, "s": 1187, "text": "This example demonstrates how to use BroadcastReceiver in Kotlin ." }, { "code": null, "e": 1382, "s": 1254, "text": "Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a ...
Python program to count positive and negative numbers in a list
26 Oct, 2018 Given a list of numbers, write a Python program to count positive and negative numbers in a List. Example: Input: list1 = [2, -7, 5, -64, -14] Output: pos = 2, neg = 3 Input: list2 = [-12, 14, 95, 3] Output: pos = 3, neg = 1 Example #1: Count positive and negative numbers from given list using for loop It...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Oct, 2018" }, { "code": null, "e": 126, "s": 28, "text": "Given a list of numbers, write a Python program to count positive and negative numbers in a List." }, { "code": null, "e": 135, "s": 126, "text": "Example:...
Creating Tabbed Widget With Python-Tkinter
26 Mar, 2020 Python offers a range of GUI frameworks that can be used to develop GUI based applications in Python. The most widely used Python interface is Tk interface or tkinter( as renamed in Python 3.x) . The Tkinter module offers a wide range of widgets that can be used to develop GUI applications much faster and ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2020" }, { "code": null, "e": 1126, "s": 28, "text": "Python offers a range of GUI frameworks that can be used to develop GUI based applications in Python. The most widely used Python interface is Tk interface or tkinter( as ren...
Java - How to Use Iterator?
Often, you will want to cycle through the elements in a collection. For example, you might want to display each element. The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface. Iterator enables you to cycle through a collection, obtainin...
[ { "code": null, "e": 2771, "s": 2511, "text": "Often, you will want to cycle through the elements in a collection. For example, you might want to display each element. The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator inte...
Float compare() Method in Java with Examples
22 Jun, 2021 The compare() method of Float Class is a built-in method in Java that compares the two specified float values. The sign of the integer value returned is the same as that of the integer that would be returned by the function call. Syntax: public static int compare(float f1, float f2) Parameters: The funct...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2021" }, { "code": null, "e": 259, "s": 28, "text": "The compare() method of Float Class is a built-in method in Java that compares the two specified float values. The sign of the integer value returned is the same as that of th...
Python – Reverse Sort a String
17 Jun, 2022 Sorting has always been quite a popular utility with lots of applications everywhere, where Python language has opted. Python in its language offers a sort function to perform this task. But due to fact that not all the containers in Python are mutable, such as string, the sort function doesn’t work as it ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2022" }, { "code": null, "e": 463, "s": 28, "text": "Sorting has always been quite a popular utility with lots of applications everywhere, where Python language has opted. Python in its language offers a sort function to perform...
Cyclic Redundancy Check in Python
13 Jun, 2022 Prerequisites: Know about Cyclic redundancy, Socket Programming What is CRC? CRC or Cyclic Redundancy Check is a method of detecting accidental changes/errors in the communication channel. CRC uses Generator Polynomial which is available on both sender and receiver sides. An example generator polynomial is...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 118, "s": 54, "text": "Prerequisites: Know about Cyclic redundancy, Socket Programming" }, { "code": null, "e": 487, "s": 118, "text": "What is CRC? CRC or Cyclic Redundancy Che...
C# Program to count number of Vowels and Consonants in a string
You need to check for both the vowels and consonants, but do not forget to check for both the uppercase as well lowercase. For counting vowels, check for “aeiou” characters separately i.e. if (myStr[i] == 'a' || myStr[i] == 'e' || myStr[i] == 'i' || myStr[i] == 'o' || myStr[i] == 'u' || myStr[i] == 'A' || myStr[i] == '...
[ { "code": null, "e": 1185, "s": 1062, "text": "You need to check for both the vowels and consonants, but do not forget to check for both the uppercase as well lowercase." }, { "code": null, "e": 1251, "s": 1185, "text": "For counting vowels, check for “aeiou” characters separatel...
Difference between Backbone.js and Angular.js - GeeksforGeeks
09 Nov, 2020 AngularJS is considered to be more feature-packed and a more comprehensive arrangement to the client’s needs (Upwork, iStockPhoto, Climate, PayPal are built with Precise), in spite of the fact that any Spine JS designer will tell that Spine contains a parcel of valuable highlights as well. Angular has coor...
[ { "code": null, "e": 24282, "s": 24254, "text": "\n09 Nov, 2020" }, { "code": null, "e": 26661, "s": 24282, "text": "AngularJS is considered to be more feature-packed and a more comprehensive arrangement to the client’s needs (Upwork, iStockPhoto, Climate, PayPal are built with P...
How to Set a Single Main Title for All the Subplots in Matplotlib? - GeeksforGeeks
03 Jan, 2021 Prerequisites: Matplotlib A title in matplotlib library describes the main subject of plotting the graphs. Setting a title for just one plot is easy using the title() method. By using this function only the individual title plots can be set but not a single title for all subplots. Hence, to set a single ma...
[ { "code": null, "e": 29937, "s": 29909, "text": "\n03 Jan, 2021" }, { "code": null, "e": 29963, "s": 29937, "text": "Prerequisites: Matplotlib" }, { "code": null, "e": 30298, "s": 29963, "text": "A title in matplotlib library describes the main subject of plot...
Double.CompareTo Method in C# with Examples - GeeksforGeeks
19 Mar, 2019 Double.CompareTo Method is used to compare the current instance to a specified object or Double object. It will return an integer which shows whether the value of the current instance is greater than, less than or equal to the value of the specified object or Double object. There are 2 methods in the overl...
[ { "code": null, "e": 24119, "s": 24091, "text": "\n19 Mar, 2019" }, { "code": null, "e": 24462, "s": 24119, "text": "Double.CompareTo Method is used to compare the current instance to a specified object or Double object. It will return an integer which shows whether the value of ...
How to find the largest number contained in a JavaScript array?
To get the largest number in the array, you can try to run the following code. It returns the largest number 530 − Live Demo <!DOCTYPE html> <html> <body> <script> var myArr = [340, 25, 530, 299]; var max = myArr.reduce(function(a,b){ return (a > b) ? a : b; }); ...
[ { "code": null, "e": 1177, "s": 1062, "text": "To get the largest number in the array, you can try to run the following code. It returns the largest number 530 −" }, { "code": null, "e": 1187, "s": 1177, "text": "Live Demo" }, { "code": null, "e": 1470, "s": 1187,...
How to set the Visibility of the TextBox in C#? - GeeksforGeeks
29 Nov, 2019 In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In TextBox, you are allowed to set a value which shows the TextBox control and its all child TextBox controls are displayed and it is ach...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n29 Nov, 2019" }, { "code": null, "e": 24514, "s": 23911, "text": "In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple ...
Matplotlib.pyplot.fill_betweenx() in Python - GeeksforGeeks
06 Oct, 2021 Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. The matplotlib.pyplot.fill_betweenx() is used to fill area between two vertical curves. Two po...
[ { "code": null, "e": 24499, "s": 24471, "text": "\n06 Oct, 2021" }, { "code": null, "e": 24712, "s": 24499, "text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an...
Supercharging MS SQL Server with Python | by James Briggs | Towards Data Science
At work, I use SQL a lot. It is not without annoying nuances and limitations, but in the end, it is the foundation of all data professions. For that reason, it is an absolute necessity for anyone working in the land of data. Being competent in SQL is incredibly important. Although SQL is great, why settle for great? Wh...
[ { "code": null, "e": 445, "s": 172, "text": "At work, I use SQL a lot. It is not without annoying nuances and limitations, but in the end, it is the foundation of all data professions. For that reason, it is an absolute necessity for anyone working in the land of data. Being competent in SQL is incr...
Decimal.ToInt32() Method in C#
30 Jan, 2019 This method is used to convert the value of the specified Decimal to the equivalent 32-bit signed integer. A user can also convert a Decimal value to a 32-bit integer by using the Explicit assignment operator. Syntax: public static int ToInt32 (decimal value); Here, the value is the decimal number which is...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Jan, 2019" }, { "code": null, "e": 263, "s": 53, "text": "This method is used to convert the value of the specified Decimal to the equivalent 32-bit signed integer. A user can also convert a Decimal value to a 32-bit integer by usin...
C/C++ if else if ladder with Examples
22 Nov, 2019 Decision Making in C/C++ helps to write decision driven statements and execute a particular set of code based on certain conditions. In C/C++ if-else-if ladder helps user decide from among multiple options. The C/C++ if statements are executed from the top down. As soon as one of the conditions controlling...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Nov, 2019" }, { "code": null, "e": 187, "s": 54, "text": "Decision Making in C/C++ helps to write decision driven statements and execute a particular set of code based on certain conditions." }, { "code": null, "e": 562,...
How to implement IIR Bandpass Butterworth Filter using Scipy – Python?
10 Nov, 2021 IIR stands for Infinite Impulse Response, It is one of the striking features of many linear-time invariant systems that are distinguished by having an impulse response h(t)/h(n) which does not become zero after some point but instead continues infinitely. It basically behaves just like an ordinary digital ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Nov, 2021" }, { "code": null, "e": 284, "s": 28, "text": "IIR stands for Infinite Impulse Response, It is one of the striking features of many linear-time invariant systems that are distinguished by having an impulse response h(t)/h(...
Detect cycle in an undirected graph using BFS
02 Jul, 2021 Given an undirected graph, how to check if there is a cycle in the graph? For example, the following graph has a cycle 1-0-2-1. We have discussed cycle detection for the directed graph. We have also discussed a union-find algorithm for cycle detection in undirected graphs.. The time complexity of the unio...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jul, 2021" }, { "code": null, "e": 183, "s": 54, "text": "Given an undirected graph, how to check if there is a cycle in the graph? For example, the following graph has a cycle 1-0-2-1. " }, { "code": null, "e": 1025, ...
turtle.title() function in Python
26 Jul, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to set the title of turtle-window. It requires only one argument as ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2020" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver...
Queue in Java
The queue interface is provided in java.util package and it implements the Collection interface. The queue implements FIFO i.e. First In First Out. This means that the elements entered first are the ones that are deleted first. A program that demonstrates queue in Java is given as follows − Live Demo import java.util....
[ { "code": null, "e": 1415, "s": 1187, "text": "The queue interface is provided in java.util package and it implements the Collection interface. The queue implements FIFO i.e. First In First Out. This means that the elements entered first are the ones that are deleted first." }, { "code": nul...
HTTP REST API Calls in ElectronJS
16 Jun, 2022 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. We alre...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jun, 2022" }, { "code": null, "e": 328, "s": 28, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable ...
How to reverse column order in a matrix with Python?
08 Sep, 2021 In this article, we will see how to reverse the column order of a matrix in Python. Examples: Input: arr = [[10,20,30], [40,50,60], [70,80,90]] Output: 30 20 10 60 50 40 90 80 70 Input: arr = [[15,30], [45,60], [75,90], [105,120]] Output: 30 15 60 45 90 75 120 105 Mat...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2021" }, { "code": null, "e": 112, "s": 28, "text": "In this article, we will see how to reverse the column order of a matrix in Python." }, { "code": null, "e": 122, "s": 112, "text": "Examples:" }, { ...
How to declare a multi dimensional dictionary in Python?
Let us declare three dictionary objects as below − >>> d1={"name":"Ravi","age":25, "marks":60} >>> d2={"name":"Anil","age":23, "marks":75} >>> d3={"name":"Asha", "age":20, "marks":70} Now we shall use them as values in a parent dictionary >>>twodimdict={1:d1,2:d2,3:d3} >>>twodimdict {1: {'name': 'Ravi', 'age': 25, 'mar...
[ { "code": null, "e": 1238, "s": 1187, "text": "Let us declare three dictionary objects as below −" }, { "code": null, "e": 1371, "s": 1238, "text": ">>> d1={\"name\":\"Ravi\",\"age\":25, \"marks\":60}\n>>> d2={\"name\":\"Anil\",\"age\":23, \"marks\":75}\n>>> d3={\"name\":\"Asha\"...
Serialize and Deserialize a Binary Tree
23 Jun, 2022 Serialization is to store tree in a file so that it can be later restored. The structure of tree must be maintained. Deserialization is reading tree back from file. Following are some simpler versions of the problem: If given Tree is Binary Search Tree? If the given Binary Tree is Binary Search Tree, we ca...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 217, "s": 52, "text": "Serialization is to store tree in a file so that it can be later restored. The structure of tree must be maintained. Deserialization is reading tree back from file." }, {...
How to Deploy Next.js App to Vercel ?
14 Jul, 2021 Introduction: Vercel is a deployment tool used by frontend developers to instantly deploy and host web applications without knowing complex configurations. Easy to use and has a lifetime free tier service which is beneficial for beginners who want to deploy their side-project with minimal support. Can cre...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jul, 2021" }, { "code": null, "e": 185, "s": 28, "text": "Introduction: Vercel is a deployment tool used by frontend developers to instantly deploy and host web applications without knowing complex configurations. " }, { "cod...
Code introspection in Python - GeeksforGeeks
07 Dec, 2018 Introspection is an ability to determine the type of an object at runtime. Everything in python is an object. Every object in Python may have attributes and methods. By using introspection, we can dynamically examine python objects. Code Introspection is used for examining the classes, methods, objects, mo...
[ { "code": null, "e": 24228, "s": 24200, "text": "\n07 Dec, 2018" }, { "code": null, "e": 25006, "s": 24228, "text": "Introspection is an ability to determine the type of an object at runtime. Everything in python is an object. Every object in Python may have attributes and method...
Parsing A Boolean Expression in Python
Suppose we have a boolean expression, we have to find the result after evaluating that expression. An expression can either be − "t", evaluating to True; "t", evaluating to True; "f", evaluating to False; "f", evaluating to False; "!(expression)", evaluating to the logical NOT of the inner expression; "!(expression)", ...
[ { "code": null, "e": 1161, "s": 1062, "text": "Suppose we have a boolean expression, we have to find the result after evaluating that expression." }, { "code": null, "e": 1191, "s": 1161, "text": "An expression can either be −" }, { "code": null, "e": 1216, "s": 1...
Check if the number is a Prime power number - GeeksforGeeks
02 Mar, 2022 Given an integer N, the task is to check if the number is a Prime power number. If yes, then print the number along with its power which is equal to N. Else print -1. A prime power is a positive integer power of a single prime number. For example: 7 = 71, 9 = 32 and 32 = 25 are prime powers, while 6 = 2 ×...
[ { "code": null, "e": 25126, "s": 25098, "text": "\n02 Mar, 2022" }, { "code": null, "e": 25294, "s": 25126, "text": "Given an integer N, the task is to check if the number is a Prime power number. If yes, then print the number along with its power which is equal to N. Else print ...
AI Search Algorithms Every Data Scientist Should Know | by Aaron (Ari) Bornstein | Towards Data Science
TL;DR The post below outlines a few of the key search algorithms in AI, why they are important, what and what they are used for. While in recent years, search and planning algorithms have taken a back seat to machine and deep learning methods, better understanding these algorithms can boost the performance of your mode...
[ { "code": null, "e": 300, "s": 171, "text": "TL;DR The post below outlines a few of the key search algorithms in AI, why they are important, what and what they are used for." }, { "code": null, "e": 647, "s": 300, "text": "While in recent years, search and planning algorithms hav...
ASP.NET - Directives
ASP.NET directives are instructions to specify optional settings, such as registering a custom control and page language. These settings describe how the web forms (.aspx) or user controls (.ascx) pages are processed by the .Net framework. The syntax for declaring a directive is: <%@ directive_name attribute=value [a...
[ { "code": null, "e": 2587, "s": 2347, "text": "ASP.NET directives are instructions to specify optional settings, such as registering a custom control and page language. These settings describe how the web forms (.aspx) or user controls (.ascx) pages are processed by the .Net framework." }, { ...
How to access Static variable of Outer class from Static Inner class in java?
A class with in another class is known as inner class, you cannot declare a class static unless it is an inner class. A static inner class is just like other class variables. You can access it (static inner class) without instantiation You can access the static variable of an outer class just using the class name. Foll...
[ { "code": null, "e": 1298, "s": 1062, "text": "A class with in another class is known as inner class, you cannot declare a class static unless it is an inner class. A static inner class is just like other class variables. You can access it (static inner class) without instantiation" }, { "co...
C++ Program to Perform Inorder Non-Recursive Traversal of a Given Binary Tree
If a binary tree is traversed in-order, the left subtree is visited first, then the root and later the right sub-tree. The output the key in ascending order in in_order traversal. This is a C++ Program for Inorder Tree Traversal without Recursion. Begin Declare a structure n. Declare d of the integer datatype....
[ { "code": null, "e": 1310, "s": 1062, "text": "If a binary tree is traversed in-order, the left subtree is visited first, then the root and later the right sub-tree. The output the key in ascending order in in_order traversal. This is a C++ Program for Inorder Tree Traversal without Recursion." },...
C# Program to skip elements of an array from the end
Declare an array and initialize elements. int[] marks = { 45, 50, 60, 70, 85 }; Use the SkipLast() method to skip elements of an array from the end. IEnumerable<int> selMarks = marks.AsQueryable().SkipLast(3); The elements are skipped and rest of the elements is returned as shown below − Live Demo using System; using ...
[ { "code": null, "e": 1104, "s": 1062, "text": "Declare an array and initialize elements." }, { "code": null, "e": 1142, "s": 1104, "text": "int[] marks = { 45, 50, 60, 70, 85 };" }, { "code": null, "e": 1211, "s": 1142, "text": "Use the SkipLast() method to sk...
Search and Replace with Java regular expressions
Java provides the java.util.regex package for pattern matching with regular expressions. Java regular expressions are very similar to the Perl programming language and very easy to learn. A regular expression is a special sequence of characters that help you match or find other strings or sets of strings, using a speci...
[ { "code": null, "e": 1250, "s": 1062, "text": "Java provides the java.util.regex package for pattern matching with regular expressions. Java regular expressions are very similar to the Perl programming language and very easy to learn." }, { "code": null, "e": 1478, "s": 1250, "te...
How to Create Blink Effect on TextView in Android? - GeeksforGeeks
21 Apr, 2021 In this article, we are going to implement a very important feature related to TextView. Here we are adding the blink text feature on a TextView. This feature can be used to show important announcements or notifications in an App. Even we can add this feature to show important links for the user. So here w...
[ { "code": null, "e": 25036, "s": 25008, "text": "\n21 Apr, 2021" }, { "code": null, "e": 25560, "s": 25036, "text": "In this article, we are going to implement a very important feature related to TextView. Here we are adding the blink text feature on a TextView. This feature can ...
TimeSpan.FromTicks() Method in C#
The TimeSpan.FromTicks() method in C# is used to return a TimeSpan that represents a specified time, where the specification is in units of ticks. The syntax is as follows - public static TimeSpan FromTicks (long val); Above, the parameter val is the number of ticks that represent a time. Let us now see an example - L...
[ { "code": null, "e": 1209, "s": 1062, "text": "The TimeSpan.FromTicks() method in C# is used to return a TimeSpan that represents a specified time, where the specification is in units of ticks." }, { "code": null, "e": 1236, "s": 1209, "text": "The syntax is as follows -" }, ...
Automating Version Tags and Changelogs for your Python Projects | by Niels D. Goet | Towards Data Science
Tired of keeping track of whether your code changes warrant a minor or major version increment? Too busy to keep a neat and tidy changelog? Try using commitizen, a command-line utility that “forces” you to write commit messages following the Conventional commits standard (or a different, user-defined format). Once conf...
[ { "code": null, "e": 622, "s": 172, "text": "Tired of keeping track of whether your code changes warrant a minor or major version increment? Too busy to keep a neat and tidy changelog? Try using commitizen, a command-line utility that “forces” you to write commit messages following the Conventional ...
Neo4j - Database Backup and Restore
In Real-time applications, we should take backup of our application Database regularly so that we can restore to some working condition at any failure point. This rule is applicable for both RDBMS and No SQL databases. In this section, we are going to discuss about two important DBA tasks. How to backup a Neo4j Databas...
[ { "code": null, "e": 2497, "s": 2339, "text": "In Real-time applications, we should take backup of our application Database regularly so that we can restore to some working condition at any failure point." }, { "code": null, "e": 2558, "s": 2497, "text": "This rule is applicable ...
Bootstrap .modal("show") method
The modal(“show”) method opens a modal like below − The modal is displayed using the modal(“show”) method as shown below − $("#newModal").modal("show"); Let us see an example of modal(“show”) method − Live Demo <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> ...
[ { "code": null, "e": 1114, "s": 1062, "text": "The modal(“show”) method opens a modal like below −" }, { "code": null, "e": 1185, "s": 1114, "text": "The modal is displayed using the modal(“show”) method as shown below −" }, { "code": null, "e": 1215, "s": 1185, ...
How do I list all files of a directory in Python?
os.listdir(my_path) will get you everything that's in the my_path directory - files and directories. You can use it as follows: >>> import os >>> os.listdir('.') ['DLLs', 'Doc', 'etc', 'include', 'Lib', 'libs', 'LICENSE.txt', 'NEWS.txt', 'python.exe', 'pythonw.exe', 'README.txt', 'Scripts', 'share', 'tcl', 'Tools', 'w9...
[ { "code": null, "e": 1163, "s": 1062, "text": "os.listdir(my_path) will get you everything that's in the my_path directory - files and directories." }, { "code": null, "e": 1190, "s": 1163, "text": "You can use it as follows:" }, { "code": null, "e": 1395, "s": 11...
Count of subarray that does not contain any subarray with sum 0 - GeeksforGeeks
15 Feb, 2022 Given an array arr, the task is to find the total number of subarrays of the given array which do not contain any subarray whose sum of elements is equal to zero. All the array elements are distinct.Examples: Input: arr = {2, 4, -6} Output: 5 Explanation: There are 5 subarrays which do not contain any su...
[ { "code": null, "e": 24143, "s": 24115, "text": "\n15 Feb, 2022" }, { "code": null, "e": 24354, "s": 24143, "text": "Given an array arr, the task is to find the total number of subarrays of the given array which do not contain any subarray whose sum of elements is equal to zero. ...
Flipkart Interview Experience for SDE-I | 1 Year Experienced - GeeksforGeeks
20 Aug, 2021 Round 1: Machine Coding – 30 mins discussion on problem statement, 3hrs to implement, another 1 – 1.5 hrs discussion on solution, with test cases. Design Covid-19 Vaccination Booking System Features include : Onboarding states, districts, wards, vaccination centers, slots Users registering themselves with ...
[ { "code": null, "e": 25241, "s": 25213, "text": "\n20 Aug, 2021" }, { "code": null, "e": 25250, "s": 25241, "text": "Round 1:" }, { "code": null, "e": 25388, "s": 25250, "text": "Machine Coding – 30 mins discussion on problem statement, 3hrs to implement, anot...
Abstract Classes in PHP - GeeksforGeeks
19 Jul, 2019 Abstract classes are the classes in which at least one method is abstract. Unlike C++ abstract classes in PHP are declared with the help of abstract keyword. Use of abstract classes are that all base classes implementing this class should give implementation of abstract methods declared in parent class. An...
[ { "code": null, "e": 31040, "s": 31012, "text": "\n19 Jul, 2019" }, { "code": null, "e": 31417, "s": 31040, "text": "Abstract classes are the classes in which at least one method is abstract. Unlike C++ abstract classes in PHP are declared with the help of abstract keyword. Use o...
How to send data to previous activity in Android?
This example demonstrate about How to send data to previous activity in Android Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version = "1.0" encoding = "utf-8"?> <Re...
[ { "code": null, "e": 1142, "s": 1062, "text": "This example demonstrate about How to send data to previous activity in Android" }, { "code": null, "e": 1271, "s": 1142, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detail...
Python 3 - List sort() Method
The sort() method sorts objects of list, use compare function if given. Following is the syntax for sort() method − list.sort([func]) NA This method does not return any value; it simply sorts the contents of the given list. The following example shows the usage of sort() method. #!/usr/bin/python3 list1 = ['physics',...
[ { "code": null, "e": 2412, "s": 2340, "text": "The sort() method sorts objects of list, use compare function if given." }, { "code": null, "e": 2456, "s": 2412, "text": "Following is the syntax for sort() method −" }, { "code": null, "e": 2475, "s": 2456, "tex...
OpenCV - Distance Transformation
The distance transform operator generally takes binary images as inputs. In this operation, the gray level intensities of the points inside the foreground regions are changed to distance their respective distances from the closest 0 value (boundary). You can apply distance transform in OpenCV using the method distanceT...
[ { "code": null, "e": 3255, "s": 3004, "text": "The distance transform operator generally takes binary images as inputs. In this operation, the gray level intensities of the points inside the foreground regions are changed to distance their respective distances from the closest 0 value (boundary)." ...
How to deploy Jupyter notebooks as components of a Kubeflow ML pipeline (Part 2) | by Lak Lakshmanan | Towards Data Science
In Part 1, I showed you how to create and deploy a Kubeflow ML pipeline using Docker components. In Part 2, I will show you how to make a Jupyter notebook a component of a Kubeflow ML pipeline. Where the Docker components are for the folks operationalizing machine learning models, being able to run a Jupyter notebook o...
[ { "code": null, "e": 550, "s": 171, "text": "In Part 1, I showed you how to create and deploy a Kubeflow ML pipeline using Docker components. In Part 2, I will show you how to make a Jupyter notebook a component of a Kubeflow ML pipeline. Where the Docker components are for the folks operationalizin...
C# - nested switch Statements
It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise. The syntax for a nested switch statement is as follows − switch(ch1) { case 'A': Console.WriteLine("This A is part of oute...
[ { "code": null, "e": 2461, "s": 2270, "text": "It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise." }, { "code": null, "e": 2519, "s": 2461, ...
Swift – Nested if-else Statement
28 Feb, 2022 In Swift, a situation comes when we have to check an if condition inside an if-else statement then a term comes named nested if-else statement. It means an if-else statement inside another if statement. Or in simple words first, there is an outer if statement, and inside it another if – else statement is p...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2022" }, { "code": null, "e": 482, "s": 28, "text": "In Swift, a situation comes when we have to check an if condition inside an if-else statement then a term comes named nested if-else statement. It means an if-else statement i...
Java SimpleDateFormat | Set 1
08 Oct, 2021 SimpleDateFormat class helps in formatting and parsing of data. We can change date from one format to other. It allows to user to interpret string date format into a Date object. We can modify Date accordingly, we want. Declaration : public class SimpleDateFormat extends DateFormat Constructors : Simple...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Oct, 2021" }, { "code": null, "e": 248, "s": 28, "text": "SimpleDateFormat class helps in formatting and parsing of data. We can change date from one format to other. It allows to user to interpret string date format into a Date obje...
How to Fix java.util.NoSuchElementException in Java?
03 Mar, 2022 An unexpected, unwanted event that disturbed the normal flow of a program is called Exception. Most of the time exceptions are caused by our program and these are recoverable. Suppose if our program requirement is to read data from the remote file locating in the U.S.A. At runtime, if a remote file is not ...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Mar, 2022" }, { "code": null, "e": 541, "s": 28, "text": "An unexpected, unwanted event that disturbed the normal flow of a program is called Exception. Most of the time exceptions are caused by our program and these are recoverable....
How to create tabs containing different content in HTML ?
06 Aug, 2021 Tabs are used to navigate and display different content around the website. We use tabs to manage space and to make the website more attractive. Approach: In the body tag create some tabs under the div tag with a Custom-Data-Attribute that holds the id of the content. Create another div tag to store th...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Aug, 2021" }, { "code": null, "e": 198, "s": 52, "text": "Tabs are used to navigate and display different content around the website. We use tabs to manage space and to make the website more attractive. " }, { "code": null, ...
How to use a not:first-child selector in CSS?
04 Dec, 2018 This selector is used to select every element which is not the first-child of its parent element. It is represented as an argument in the form of :not(first-child) element. Syntax: :not( element ) { // CSS property } Example: <!DOCTYPE html><html> <head> <title>not first child selector</title...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Dec, 2018" }, { "code": null, "e": 225, "s": 52, "text": "This selector is used to select every element which is not the first-child of its parent element. It is represented as an argument in the form of :not(first-child) element." ...
Node.js fs.Dirent.isDirectory() Method
19 Jan, 2022 The fs.Dirent.isDirectory() method is an inbuilt application programming interface of class fs.Dirent within File System module which is used to check if the particular dirent describes a Directory or not. Syntax: const dirent.isDirectory() Parameter: This method does not accept any parameter.Return Value...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jan, 2022" }, { "code": null, "e": 234, "s": 28, "text": "The fs.Dirent.isDirectory() method is an inbuilt application programming interface of class fs.Dirent within File System module which is used to check if the particular dirent...
CSS | page-break-inside Property
23 Jan, 2019 The page-break-inside property in CSS is used to specify how the page breaks inside the element to which it is applied while printing. It inserts a page break or sometimes it used to avoid page break inside an element while printing. Syntax: page-break-inside: auto|avoid|initial|inherit Property Values: au...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jan, 2019" }, { "code": null, "e": 262, "s": 28, "text": "The page-break-inside property in CSS is used to specify how the page breaks inside the element to which it is applied while printing. It inserts a page break or sometimes it ...
Fixed (or static) Partitioning in Operating System in C++
In this tutorial, we are going to learn about the fixed partitioning in the operating system. Fixed partitioning is one to manage the memory in operating system. It's an old technique. It divides the memory into equal blocks. The size of each block is predefined and can not be changed. The memory is used for the contig...
[ { "code": null, "e": 1281, "s": 1187, "text": "In this tutorial, we are going to learn about the fixed partitioning in the operating system." }, { "code": null, "e": 1474, "s": 1281, "text": "Fixed partitioning is one to manage the memory in operating system. It's an old techniqu...
How to create dictionary and add key–value pairs dynamically?
28 May, 2020 In this article, we will discuss how we can create a dictionary in JavaScript and add key-value pairs in it. Actually there is no ‘dictionary’ type in JavaScript but we can create key-value pairs by using JavaScript Objects. Create a new JavaScript Object which will act as dictionary. Syntax: Key can be a...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 May, 2020" }, { "code": null, "e": 340, "s": 53, "text": "In this article, we will discuss how we can create a dictionary in JavaScript and add key-value pairs in it. Actually there is no ‘dictionary’ type in JavaScript but we can c...
C# Program to Check all Items of a Float Array is Greater than 5.0 using LINQ
06 Dec, 2021 Given a float array, now our task is to check if all the elements present in the float array are greater than 5.0. So we use the All() method of LINQ. This method is used to check if all the elements in the given sequence satisfy the given condition. It will return true if all the elements of the specified...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2021" }, { "code": null, "e": 474, "s": 28, "text": "Given a float array, now our task is to check if all the elements present in the float array are greater than 5.0. So we use the All() method of LINQ. This method is used to c...
groupadd command in Linux with examples
28 Feb, 2022 Groups in Linux refer to the user groups. In Linux, there can be many users of a single system, (normal user can take uid from 1000 to 60000, and one root user (uid 0) and 999 system users (uid 1 to 999)). In a scenario where there are many users, there might be some privileges that some users have and som...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2022" }, { "code": null, "e": 598, "s": 28, "text": "Groups in Linux refer to the user groups. In Linux, there can be many users of a single system, (normal user can take uid from 1000 to 60000, and one root user (uid 0) and 999...
Decision Making in C / C++ (if , if..else, Nested if, if-else-if )
30 Jun, 2021 There come situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arise in programming also where we need to make some decisions and based on these decisions we will execute the next block of code. For example, in C if ...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2021" }, { "code": null, "e": 617, "s": 52, "text": "There come situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arise in programming...
Python - Tuples
A tuple is a collection of objects which ordered and immutable. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets. Creating a tuple is as simple as putting different comma-separated...
[ { "code": null, "e": 2632, "s": 2378, "text": "A tuple is a collection of objects which ordered and immutable. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets....
Python program to check if the list contains three consecutive common numbers in Python
17 Aug, 2020 Our task is to print the element which occurs 3 consecutive times in a Python list. Example : Input : [4, 5, 5, 5, 3, 8] Output : 5 Input : [1, 1, 1, 64, 23, 64, 22, 22, 22] Output : 1, 22 Approach : Create a list.Create a loop for range size – 2.Check if the element is equal to the next element.Again ...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Aug, 2020" }, { "code": null, "e": 138, "s": 54, "text": "Our task is to print the element which occurs 3 consecutive times in a Python list." }, { "code": null, "e": 148, "s": 138, "text": "Example :" }, { ...
Python – Read blob object in python using wand library
07 Sep, 2021 BLOB stands for Binary Large OBject. A blob is a data type that can store binary data. This is different than most other data types used in databases, such as integers, floating point numbers, characters, and strings, which store letters and numbers. BLOB is a large complex collection of binary data which ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Sep, 2021" }, { "code": null, "e": 644, "s": 28, "text": "BLOB stands for Binary Large OBject. A blob is a data type that can store binary data. This is different than most other data types used in databases, such as integers, floati...
HTML DOM querySelector() Method
20 Nov, 2021 The querySelector() method in HTML is used to return the first element that matches a specified CSS selector(s) in the document. Note: The querySelector() method only returns the first element that matches the specified selectors. To return all the matches, use the querySelectorAll() method. Syntax: elemen...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Nov, 2021" }, { "code": null, "e": 183, "s": 54, "text": "The querySelector() method in HTML is used to return the first element that matches a specified CSS selector(s) in the document." }, { "code": null, "e": 347, ...