title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Birthday Reminder Application in Python - GeeksforGeeks
31 Dec, 2021 This app helps in reminding birthdays and notifying your friend’s birthdays. This app uses Python and Ubuntu notifications to notify users on every startup of the system. # Python program For# Birthday Reminder Application # time module is must as reminder # is set with the help of datesimport time # os ...
[ { "code": null, "e": 26273, "s": 26245, "text": "\n31 Dec, 2021" }, { "code": null, "e": 26444, "s": 26273, "text": "This app helps in reminding birthdays and notifying your friend’s birthdays. This app uses Python and Ubuntu notifications to notify users on every startup of the ...
string.punctuation in Python - GeeksforGeeks
15 Oct, 2019 In Python3, string.punctuation is a pre-initialized string used as string constant. In Python, string.punctuation will give the all sets of punctuation. Syntax : string.punctuation Parameters : Doesn’t take any parameter, since it’s not a function. Returns : Return all sets of punctuation. Note : Make sure...
[ { "code": null, "e": 26158, "s": 26130, "text": "\n15 Oct, 2019" }, { "code": null, "e": 26311, "s": 26158, "text": "In Python3, string.punctuation is a pre-initialized string used as string constant. In Python, string.punctuation will give the all sets of punctuation." }, { ...
Python | Numpy numpy.choose() - GeeksforGeeks
10 Apr, 2019 With the help of Numpy numpy.choose() method, we can select the elements from an multidimensional array by passing a parameter as an array which contain the index of row number to be selected. Output array having the same size as passed in the parameter. Syntax : numpy.choose() Return : Return an array of ...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n10 Apr, 2019" }, { "code": null, "e": 25792, "s": 25537, "text": "With the help of Numpy numpy.choose() method, we can select the elements from an multidimensional array by passing a parameter as an array which contain the index ...
Magnet Puzzle | Backtracking-9 - GeeksforGeeks
26 Apr, 2020 The puzzle game Magnets involves placing a set of domino-shaped magnets (or electrets or other polarized objects) in a subset of slots on a board so as to satisfy a set of constraints. For example, the puzzle on the left has the solution shown on the right:Each slot contains either a blank entry (indicated...
[ { "code": null, "e": 26251, "s": 26223, "text": "\n26 Apr, 2020" }, { "code": null, "e": 27186, "s": 26251, "text": "The puzzle game Magnets involves placing a set of domino-shaped magnets (or electrets or other polarized objects) in a subset of slots on a board so as to satisfy ...
Difference between Structure and Union in C - GeeksforGeeks
12 Sep, 2021 structures in C A structure is a user-defined data type available in C that allows to combining data items of different kinds. Structures are used to represent a record. Defining a structure: To define a structure, you must use the struct statement. The struct statement defines a new data type, with more ...
[ { "code": null, "e": 25575, "s": 25547, "text": "\n12 Sep, 2021" }, { "code": null, "e": 25591, "s": 25575, "text": "structures in C" }, { "code": null, "e": 25746, "s": 25591, "text": "A structure is a user-defined data type available in C that allows to comb...
Python program to add two Octal numbers - GeeksforGeeks
26 Nov, 2020 Given two octal numbers, the task is to write a Python program to compute their sum. Examples: Input: a = "123", b = "456" Output: 601 Input: a = "654", b = "321" Output: 1175 Approach: To add two octal values in python we will first convert them into decimal values then add them and then finally again co...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n26 Nov, 2020" }, { "code": null, "e": 25648, "s": 25563, "text": "Given two octal numbers, the task is to write a Python program to compute their sum." }, { "code": null, "e": 25658, "s": 25648, "text": "Examp...
Loops in LISP - GeeksforGeeks
06 Oct, 2021 Loops allow executing a set of instructions repeatedly while some condition is true. LISP provides the following types of loops: The dotimes loop allows executing instructions for a fixed number of times.Syntax: (dotimes( variableName numberOfIterations ) ( expressions )) Where, variableName => Name of...
[ { "code": null, "e": 24841, "s": 24813, "text": "\n06 Oct, 2021" }, { "code": null, "e": 24970, "s": 24841, "text": "Loops allow executing a set of instructions repeatedly while some condition is true. LISP provides the following types of loops:" }, { "code": null, "e...
D3.js axis.tickValues() Function - GeeksforGeeks
07 Aug, 2020 The d3.axis.tickValues() Function in D3.js is used to generate ticks at specific values. This function returns the current tick values, which defaults to null. Syntax: axis.tickValues([values]) Parameters: This function accepts the following parameters. values: This parameter is used for ticks rather than ...
[ { "code": null, "e": 25883, "s": 25855, "text": "\n07 Aug, 2020" }, { "code": null, "e": 26043, "s": 25883, "text": "The d3.axis.tickValues() Function in D3.js is used to generate ticks at specific values. This function returns the current tick values, which defaults to null." ...
Factorial program in Java without using recursion.
Following is the required program. Live Demo public class Tester { static int factorial(int n) { if (n == 0) return 1; else return (n * factorial(n - 1)); } public static void main(String args[]) { int i, fact = 1; int number = 5; fact = factorial(number); ...
[ { "code": null, "e": 1097, "s": 1062, "text": "Following is the required program." }, { "code": null, "e": 1107, "s": 1097, "text": "Live Demo" }, { "code": null, "e": 1433, "s": 1107, "text": "public class Tester {\n static int factorial(int n) {\n if ...
How to BIND all the packages in a collection COLLA to a plan PLANA?
The package is a database object which contains the SQL statements from DBRM in a DB2-optimized form. The collection is a group of packages using which we can segregate the DB2 packages belonging to the different applications. For example, in a production environment for a Telecom company, we can have different collect...
[ { "code": null, "e": 1164, "s": 1062, "text": "The package is a database object which contains the SQL statements from DBRM in a DB2-optimized form." }, { "code": null, "e": 1437, "s": 1164, "text": "The collection is a group of packages using which we can segregate the DB2 packa...
Convert list-like column elements to separate rows in Pandas - GeeksforGeeks
12 Nov, 2020 A dataframe is a tabular structure where data is arranged in rows and columns. Often while working with real data, columns having list-like elements are encountered. List-like means that the elements are of a form that can be easily converted into a list. In this article, we will see various approaches to ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n12 Nov, 2020" }, { "code": null, "e": 24651, "s": 24292, "text": "A dataframe is a tabular structure where data is arranged in rows and columns. Often while working with real data, columns having list-like elements are encountere...
C# Program to Check a Specified Type is a Value Type or Not - GeeksforGeeks
23 Nov, 2021 In C#, the value type represents a sequence of bits. It is not a class or an interface, it is referred to as a struct or enum(a special case of value type). So to check whether the specified type is Value Type or not we use the IsValueType property of the Type class. It is a read-only property. It will ret...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n23 Nov, 2021" }, { "code": null, "e": 24749, "s": 24302, "text": "In C#, the value type represents a sequence of bits. It is not a class or an interface, it is referred to as a struct or enum(a special case of value type). So to ...
ProressBar in Android using Jetpack Compose - GeeksforGeeks
25 Feb, 2021 ProressBar is a material UI component in Android which is used to indicate the progress of any process such as for showing any downloading procedure, as a placeholder screen, and many more. In this article, we will take a look at the implementation of ProressBar in Android using Jetpack Compose. Attributes...
[ { "code": null, "e": 25056, "s": 25028, "text": "\n25 Feb, 2021" }, { "code": null, "e": 25353, "s": 25056, "text": "ProressBar is a material UI component in Android which is used to indicate the progress of any process such as for showing any downloading procedure, as a placehol...
HTTP basic authentication URL with “@” in password.
We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL. Let us make an attempt to handle the below browser authentication. Once the User Name and Password are entered corre...
[ { "code": null, "e": 1266, "s": 1062, "text": "We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL." }, { "code": null, "e": 1333, "s...
Java.io.FilterOutputStream Class in Java - GeeksforGeeks
12 Oct, 2021 java.io.FilterInputStream Class in Java Java.io.FilterOutputStream class is the superclass of all those classes which filters output streams. The write() method of FilterOutputStream Class filters the data and write it to the underlying stream, filtering which is done depending on the Streams. Declaration ...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n12 Oct, 2021" }, { "code": null, "e": 23988, "s": 23948, "text": "java.io.FilterInputStream Class in Java" }, { "code": null, "e": 24243, "s": 23988, "text": "Java.io.FilterOutputStream class is the superclass...
Formatting day of week in EEEE format in Java
EEEEE format is used in Java Date to format day of week like Monday, Tuesday, Wednesday, etc. Let us use it − // displaying day of week SimpleDateFormat simpleformat = new SimpleDateFormat("EEEE"); String strDayofWeek = simpleformat.format(new Date()); System.out.println("Day of Week = "+strDayofWeek); Above, we have u...
[ { "code": null, "e": 1172, "s": 1062, "text": "EEEEE format is used in Java Date to format day of week like Monday, Tuesday, Wednesday, etc. Let us use it −" }, { "code": null, "e": 1366, "s": 1172, "text": "// displaying day of week\nSimpleDateFormat simpleformat = new SimpleDat...
IS MISSING and IS NOT MISSING Operators in SAS Programming - GeeksforGeeks
23 Jul, 2019 IS MISSING Operator: Selecting Missing ValuesTask 1: Suppose you want to select only those observations in which students did not fill their section information.data readin;input name $ Section $ Score;cards;Raj A 80Atul . 77Priya B 45Sandeep A 95Rahul . 84Shreya . 44;run; data readin1;set readin;where S...
[ { "code": null, "e": 24868, "s": 24840, "text": "\n23 Jul, 2019" }, { "code": null, "e": 25945, "s": 24868, "text": "IS MISSING Operator: Selecting Missing ValuesTask 1: Suppose you want to select only those observations in which students did not fill their section information.da...
Distinct Numbers obtained by generating all permutations of a Binary String - GeeksforGeeks
08 Jun, 2021 Given a binary string S, the task is to print all distinct decimal numbers that can be obtained by generating all permutations of the binary string. Examples: Input: S = “110”Output: {3, 5, 6}Explanation: All possible permutations are {“110”, “101”, “110”, “101”, “011”, “011”}.Equivalent decimal numbers o...
[ { "code": null, "e": 24697, "s": 24666, "text": " \n08 Jun, 2021\n" }, { "code": null, "e": 24846, "s": 24697, "text": "Given a binary string S, the task is to print all distinct decimal numbers that can be obtained by generating all permutations of the binary string." }, { ...
Difference between Traditional Collections and Concurrent Collections in java - GeeksforGeeks
08 Jan, 2018 We all know about about Traditional Collections ( i.e. List, Set, Queue and its implemented Classes) and Concurrent Collection (i.e. ConcurrentMap interface, ConcurrentHashMap class, CopyOnWriteArrayList class etc). In these two Collections, there are few differences like: Most of the Classes which are pre...
[ { "code": null, "e": 24506, "s": 24478, "text": "\n08 Jan, 2018" }, { "code": null, "e": 24780, "s": 24506, "text": "We all know about about Traditional Collections ( i.e. List, Set, Queue and its implemented Classes) and Concurrent Collection (i.e. ConcurrentMap interface, Concu...
SQL - EXCEPT Clause
The SQL EXCEPT clause/operator is used to combine two SELECT statements and returns rows from the first SELECT statement that are not returned by the second SELECT statement. This means EXCEPT returns only rows, which are not available in the second SELECT statement. Just as with the UNION operator, the same rules appl...
[ { "code": null, "e": 2721, "s": 2453, "text": "The SQL EXCEPT clause/operator is used to combine two SELECT statements and returns rows from the first SELECT statement that are not returned by the second SELECT statement. This means EXCEPT returns only rows, which are not available in the second SEL...
Largest perfect cube number in an Array - GeeksforGeeks
15 Apr, 2021 Given an array of N integers. The task is to find the largest number which is a perfect cube. Print -1 if there is no number that is perfect cube.Examples: Input : arr[] = {16, 8, 25, 2, 3, 10} Output : 25 Explanation: 25 is the largest number that is a perfect cube. Input : arr[] = {36, 64, 10, 16, ...
[ { "code": null, "e": 24821, "s": 24793, "text": "\n15 Apr, 2021" }, { "code": null, "e": 24979, "s": 24821, "text": "Given an array of N integers. The task is to find the largest number which is a perfect cube. Print -1 if there is no number that is perfect cube.Examples: " },...
C Program for Breadth First Search or BFS for a Graph - GeeksforGeeks
20 Dec, 2021 Breadth First Traversal (or Search) for a graph is similar to Breadth First Traversal of a tree (See method 2 of this post). The only catch here is, unlike trees, graphs may contain cycles, so we may come to the same node again. To avoid processing a node more than once, we use a boolean visited array. For...
[ { "code": null, "e": 24930, "s": 24902, "text": "\n20 Dec, 2021" }, { "code": null, "e": 25670, "s": 24930, "text": "Breadth First Traversal (or Search) for a graph is similar to Breadth First Traversal of a tree (See method 2 of this post). The only catch here is, unlike trees, ...
Tryit Editor v3.7
Tryit: Images without object-fit
[]
CSS - Cursors
The cursor property of CSS allows you to specify the type of cursor that should be displayed to the user. One good usage of this property is in using images for submit buttons on forms. By default, when a cursor hovers over a link, the cursor changes from a pointer to a hand. However, it does not change form for a subm...
[ { "code": null, "e": 2732, "s": 2626, "text": "The cursor property of CSS allows you to specify the type of cursor that should be displayed to the user." }, { "code": null, "e": 3096, "s": 2732, "text": "One good usage of this property is in using images for submit buttons on for...
Convert integer array to string array in JavaScript?
To convert integer array to string array, use the map(String) in JavaScript. Let’s say the following is our integer array − var integerValues = [101,50,70,90,110,90,94,68]; Convert integer array to string array − integerValues.map(String); Following is the code − var integerValues = [101,50,70,90,110,90,94,68]; console...
[ { "code": null, "e": 1186, "s": 1062, "text": "To convert integer array to string array, use the map(String) in JavaScript. Let’s say the following is our integer array −" }, { "code": null, "e": 1235, "s": 1186, "text": "var integerValues = [101,50,70,90,110,90,94,68];" }, {...
Convert a Tensorflow2 model to OpenVINO® | by Filippo Valle | Towards Data Science
Application of machine learning are, nowadays, endless. There are models out there already trained and data that need nothing but to be fitted. When one deals with Machine Learning applications it often tricky deciding on which hardware train the model and offload the inference. Intel® has introduced openVINO® that hel...
[ { "code": null, "e": 315, "s": 171, "text": "Application of machine learning are, nowadays, endless. There are models out there already trained and data that need nothing but to be fitted." }, { "code": null, "e": 451, "s": 315, "text": "When one deals with Machine Learning appli...
Representation Learning on RDF* and LPG Knowledge Graphs | by Michael Galkin | Towards Data Science
Knowledge graphs (KGs) are a cornerstone of modern NLP and AI applications — recent works include Question Answering, Entity & Relation Linking, Language Modeling, Information Extraction, and even playing text RPGs with Reinforcement Learning. Furthermore, KGs are already widely adopted in the industry, e.g., a line-up...
[ { "code": null, "e": 551, "s": 172, "text": "Knowledge graphs (KGs) are a cornerstone of modern NLP and AI applications — recent works include Question Answering, Entity & Relation Linking, Language Modeling, Information Extraction, and even playing text RPGs with Reinforcement Learning. Furthermore...
Introduction to Rust Programming Language - GeeksforGeeks
23 Nov, 2021 Rust is a blazing fast and memory-efficient static compiled language with a rich type system and ownership model. It can be used to power performance-critical services while guaranteeing memory-safety and thread-safety, empowering developers to debug at compile-time. In addition to that Rust has great docu...
[ { "code": null, "e": 23222, "s": 23194, "text": "\n23 Nov, 2021" }, { "code": null, "e": 24004, "s": 23222, "text": "Rust is a blazing fast and memory-efficient static compiled language with a rich type system and ownership model. It can be used to power performance-critical serv...
Program to implement Simpson’s 3/8 rule
16 May, 2022 Write a program to implement Simpson’s 3/8 rule.The Simpson’s 3/8 rule was developed by Thomas Simpson. This method is used for performing numerical integrations. This method is generally used for numerical approximation of definite integrals. Here, parabolas are used to approximate each part of curve.Simp...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 May, 2022" }, { "code": null, "e": 591, "s": 52, "text": "Write a program to implement Simpson’s 3/8 rule.The Simpson’s 3/8 rule was developed by Thomas Simpson. This method is used for performing numerical integrations. This method...
Minimum no. of operations required to make all Array Elements Zero
23 May, 2022 Given an array of N elements and each element is either 1 or 0. You need to make all the elements of the array equal to 0 by performing below operations: If an element is 1, You can change it’s value equal to 0 then, if the next consecutive element is 1, it will automatically get converted to 0.if the next...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 May, 2022" }, { "code": null, "e": 206, "s": 52, "text": "Given an array of N elements and each element is either 1 or 0. You need to make all the elements of the array equal to 0 by performing below operations:" }, { "code"...
json.loads() in Python - GeeksforGeeks
22 Jun, 2020 JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is used to store and exchange data. It is a language-independent format and is very easy to understand since it is self-describing in nature. There is a built-in package in python that supports JSON data which is c...
[ { "code": null, "e": 25479, "s": 25451, "text": "\n22 Jun, 2020" }, { "code": null, "e": 25919, "s": 25479, "text": "JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is used to store and exchange data. It is a language-independent forma...
Sum of two large numbers - GeeksforGeeks
25 Feb, 2022 Given two numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find sum of these two numbers. Examples: Input : str1 = "3333311111111111", str2 = "44422222221111" Output : 3377733333332222 Input : str1 = "7777555511111111", str2 = "33...
[ { "code": null, "e": 26509, "s": 26481, "text": "\n25 Feb, 2022" }, { "code": null, "e": 26647, "s": 26509, "text": "Given two numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find sum of these two numbers." }, { "code": nul...
Puzzle 29 | (Car Wheel Puzzle) - GeeksforGeeks
13 Jan, 2022 Puzzle: A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can travel before you are forced to buy a new tyre? You are allowed to change tyres (using the spare tyre) an unlimited number of times. Answer: 2500...
[ { "code": null, "e": 25965, "s": 25937, "text": "\n13 Jan, 2022" }, { "code": null, "e": 26260, "s": 25965, "text": "Puzzle: A car has 4 tyres and 1 spare tyre. Each tyre can travel a maximum distance of 20000 miles before wearing off. What is the maximum distance the car can tra...
Matplotlib.pyplot.barh() function in Python - GeeksforGeeks
23 Dec, 2020 A bar plot or bar chart is a graph that represents the category of data with rectangular bars with lengths and heights that is proportional to the values which they represent. The bar plots can be plotted horizontally or vertically. A bar chart describes the comparisons between the discrete categories. One...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n23 Dec, 2020" }, { "code": null, "e": 26025, "s": 25555, "text": "A bar plot or bar chart is a graph that represents the category of data with rectangular bars with lengths and heights that is proportional to the values which the...
Minimum number of deletions so that no two consecutive are same - GeeksforGeeks
01 Feb, 2022 Given a string, find minimum number of deletions required so that there will be no two consecutive repeating characters in the string.Examples: Input : AAABBB Output : 4 Explanation : New string should be AB Input : ABABABAB Output : 0 Explanation : There are no consecutive repeating characters. If th...
[ { "code": null, "e": 26284, "s": 26256, "text": "\n01 Feb, 2022" }, { "code": null, "e": 26430, "s": 26284, "text": "Given a string, find minimum number of deletions required so that there will be no two consecutive repeating characters in the string.Examples: " }, { "co...
Difference between Convolution VS Correlation - GeeksforGeeks
11 Nov, 2021 Correlation is a mathematical technique to see how close two things are related. In image processing terms, it is used to compute the response of a mask on an image. A mask is applied on a matrix from left to right. Mask slides over the matrix from left to right by one unit every time. Once the mask reache...
[ { "code": null, "e": 25793, "s": 25765, "text": "\n11 Nov, 2021" }, { "code": null, "e": 26468, "s": 25793, "text": "Correlation is a mathematical technique to see how close two things are related. In image processing terms, it is used to compute the response of a mask on an imag...
Ropes left after every removal of smallest - GeeksforGeeks
05 Apr, 2022 Given an array of an integer of size, N. Array contains N ropes of length Ropes[i]. You have to perform a cut operation on ropes such that all of them are reduced by the length of the smallest rope. Display the number of ropes left after every cut. Perform operations till the length of each rope becomes ze...
[ { "code": null, "e": 26697, "s": 26669, "text": "\n05 Apr, 2022" }, { "code": null, "e": 27084, "s": 26697, "text": "Given an array of an integer of size, N. Array contains N ropes of length Ropes[i]. You have to perform a cut operation on ropes such that all of them are reduced ...
How to pick which Angular Bundle to Preload ? - GeeksforGeeks
23 Dec, 2020 Loading strategy in angular decides how to load the app modules when the application runs into the browser. In Angular, we have three types of loading: Eager loading, lazy loading, and preloading. By default, Angular follows eager loading i.e. as soon as the application starts downloading in the browser, t...
[ { "code": null, "e": 26378, "s": 26350, "text": "\n23 Dec, 2020" }, { "code": null, "e": 27041, "s": 26378, "text": "Loading strategy in angular decides how to load the app modules when the application runs into the browser. In Angular, we have three types of loading: Eager loadi...
How to concatenate unicode and variable in ReactJS ? - GeeksforGeeks
12 Apr, 2021 Unicode: Unicode is an encoding standard for all characters in the universe. Every language code and symbol in this world is assigned by Unicode. There is no encoding standard that supports all languages, By using Unicode standard, we can retrieve and combine data with all language combinations. Example: ...
[ { "code": null, "e": 26095, "s": 26067, "text": "\n12 Apr, 2021" }, { "code": null, "e": 26392, "s": 26095, "text": "Unicode: Unicode is an encoding standard for all characters in the universe. Every language code and symbol in this world is assigned by Unicode. There is no encod...
Print first n numbers with exactly two set bits - GeeksforGeeks
03 Nov, 2021 Given a number n, print first n positive integers with exactly two set bits in their binary representation.Examples : Input: n = 3 Output: 3 5 6 The first 3 numbers with two set bits are 3 (0011), 5 (0101) and 6 (0110) Input: n = 5 Output: 3 5 6 9 10 12 A Simple Solution is to consider all positive in...
[ { "code": null, "e": 26279, "s": 26251, "text": "\n03 Nov, 2021" }, { "code": null, "e": 26399, "s": 26279, "text": "Given a number n, print first n positive integers with exactly two set bits in their binary representation.Examples : " }, { "code": null, "e": 26536,...
JQuery | now() method - GeeksforGeeks
27 Apr, 2020 This now() Method in jQuery is used to return a number representing the current time. Syntax: jQuery.now() Parameters: The now() method does not accept any parameter. Return Value: It returns the number representing the current time. Example 1: In this example, the now() Method a display the number of mil...
[ { "code": null, "e": 26954, "s": 26926, "text": "\n27 Apr, 2020" }, { "code": null, "e": 27040, "s": 26954, "text": "This now() Method in jQuery is used to return a number representing the current time." }, { "code": null, "e": 27048, "s": 27040, "text": "Synt...
Count pairs in an array whose absolute difference is divisible by K - GeeksforGeeks
24 Feb, 2022 Given an array arr[] and a positive integer K. The task is to count the total number of pairs in the array whose absolute difference is divisible by K. Examples: Input: arr[] = {1, 2, 3, 4}, K = 2 Output: 2 Explanation: Total 2 pairs exists in the array with absolute difference divisible by 2. The pairs ...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n24 Feb, 2022" }, { "code": null, "e": 26220, "s": 26067, "text": "Given an array arr[] and a positive integer K. The task is to count the total number of pairs in the array whose absolute difference is divisible by K. " }, { ...
Dart Programming - List - GeeksforGeeks
29 Oct, 2021 In Dart programming, List datatype is similar to arrays in other programming languages. List is used to represent a collection of objects. It is an ordered group of objects. The core libraries in Dart are responsible for the existence of List class, its creation and manipulation.Logical Representation of L...
[ { "code": null, "e": 25603, "s": 25575, "text": "\n29 Oct, 2021" }, { "code": null, "e": 25917, "s": 25603, "text": "In Dart programming, List datatype is similar to arrays in other programming languages. List is used to represent a collection of objects. It is an ordered group o...
Python String casefold() Method - GeeksforGeeks
03 May, 2022 Python String casefold() method is used to implement caseless string matching. It is similar to lower() string method but case removes all the case distinctions present in a string. i.e ignore cases when comparing. Syntax: string.casefold() Parameters: The casefold() method doesn’t take any parameters. R...
[ { "code": null, "e": 25041, "s": 25013, "text": "\n03 May, 2022" }, { "code": null, "e": 25257, "s": 25041, "text": "Python String casefold() method is used to implement caseless string matching. It is similar to lower() string method but case removes all the case distinctions pr...
Material Design EditText in Android with Example - GeeksforGeeks
26 Dec, 2020 EditText is one of the important UI elements. Edittext refers to the widget that displays an empty text field in which a user can enter the required text and this text is further used inside the application. In this article its been discussed to implement the special type of text fields, those are called M...
[ { "code": null, "e": 26405, "s": 26377, "text": "\n26 Dec, 2020" }, { "code": null, "e": 26924, "s": 26405, "text": "EditText is one of the important UI elements. Edittext refers to the widget that displays an empty text field in which a user can enter the required text and this ...
Variability in R Programming - GeeksforGeeks
10 May, 2020 Variability (also known as Statistical Dispersion) is another feature of descriptive statistics. Measures of central tendency and variability together comprise of descriptive statistics. Variability shows the spread of a data set around a point. Example: Suppose, there exist 2 data sets with the same mean ...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n10 May, 2020" }, { "code": null, "e": 26733, "s": 26487, "text": "Variability (also known as Statistical Dispersion) is another feature of descriptive statistics. Measures of central tendency and variability together comprise of ...
Find the missing digit x from the given expression
06 May, 2022 Given an alphanumeric string, consisting of a single alphabet X, which represents an expression of the form: A operator B = C where A, B and C denotes integers and the operator can be either of +, -, * or / The task is to evaluate the missing digit X present in any of the integers A, B and C such that the ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 May, 2022" }, { "code": null, "e": 161, "s": 52, "text": "Given an alphanumeric string, consisting of a single alphabet X, which represents an expression of the form:" }, { "code": null, "e": 259, "s": 161, "text...
Working with Headers And Footers in Python .docx Module
08 Mar, 2022 Prerequisite: Working with .docx module Word documents contain formatted text wrapped within three object levels. The Lowest level-run objects, middle level-paragraph objects, and highest level-document objects. So, we cannot work with these documents using normal text editors. But, we can manipulate these...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Mar, 2022" }, { "code": null, "e": 93, "s": 53, "text": "Prerequisite: Working with .docx module" }, { "code": null, "e": 455, "s": 93, "text": "Word documents contain formatted text wrapped within three object l...
C# SingleorDefault() Method
The method returns a single specific element of a sequence. If the element is not present in the sequence, then the default value is returned. We have two string arrays here. string[] str1 = { "one" }; string[] str2 = { }; First array is checked for a single element, whereas the second array is empty and checked using ...
[ { "code": null, "e": 1330, "s": 1187, "text": "The method returns a single specific element of a sequence. If the element is not present in the sequence, then the default value is returned." }, { "code": null, "e": 1362, "s": 1330, "text": "We have two string arrays here." }, ...
max_element in C++
11 Jun, 2022 We have std::max to find maximum of 2 or more elements, but what if we want to find the largest element in an array or vector or list or in a sub-section. To serve this purpose, we have std::max_element in C++. std::max_element is defined inside the header file and it returns an iterator pointing to the el...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Jun, 2022" }, { "code": null, "e": 715, "s": 54, "text": "We have std::max to find maximum of 2 or more elements, but what if we want to find the largest element in an array or vector or list or in a sub-section. To serve this purpo...
JavaTuples getKey() method
27 Aug, 2018 The getKey() method in org.javatuples is used to fetch the key from the TupleClassObject from the KeyValue Class. This method can be used with only KeyValue class object of javatuples library. It returns a Key which is the element present at the index 0 of the KeyValueClassObject. The returned Key is ensur...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Aug, 2018" }, { "code": null, "e": 355, "s": 28, "text": "The getKey() method in org.javatuples is used to fetch the key from the TupleClassObject from the KeyValue Class. This method can be used with only KeyValue class object of ja...
Program to print 2D shapes in C++
In this tutorial, we will be discussing a program to print out 2D shapes. For this we will be provided with the various parameters required to make a shape such as radius, side length and side breadth, etc. And our task is to print a shape accordingly with no thickness. Live Demo #include <bits/stdc++.h> using namespa...
[ { "code": null, "e": 1261, "s": 1187, "text": "In this tutorial, we will be discussing a program to print out 2D shapes." }, { "code": null, "e": 1458, "s": 1261, "text": "For this we will be provided with the various parameters required to make a shape such as radius, side lengt...
GATE | GATE-CS-2016 (Set 1) | Question 35
28 Jun, 2021 Which of the following is/are example(s) of stateful application layer protocols? (i) HTTP (ii) FTP (iii) TCP (iv) POP3 (A) (i) and (ii) only (B) (ii) and (iii) only(C) (ii) and (iv) only(D) (iv) onlyAnswer: (C)Explanation: In computing, a stateless protocol is a communications protocol that treats each ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2021" }, { "code": null, "e": 110, "s": 28, "text": "Which of the following is/are example(s) of stateful application layer protocols?" }, { "code": null, "e": 150, "s": 110, "text": "(i) HTTP\n(ii) FTP\n(ii...
Upcasting Vs Downcasting in Java
11 Oct, 2021 Typecasting is one of the most important concepts which basically deals with the conversion of one data type to another datatype implicitly or explicitly. In this article, the concept of typecasting for objects is discussed. Just like the data types, the objects can also be typecasted. However, in objects,...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Oct, 2021" }, { "code": null, "e": 592, "s": 53, "text": "Typecasting is one of the most important concepts which basically deals with the conversion of one data type to another datatype implicitly or explicitly. In this article, th...
Find coordinates of the triangle given midpoint of each side
24 Nov, 2021 Given three coordinates (x, y), which are the midpoint of the sides of the triangle. The task is to find the coordinates of the triangle. Examples: Input : midx1 = 5, midy1 = 3 midx2 = 4, midy2 = 4 midx3 = 5, midy3 = 5 Output : x1 = 4 y1 = 2 x2 = 4 y2 = 6 x3 = 6 y3 = 4...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Nov, 2021" }, { "code": null, "e": 167, "s": 28, "text": "Given three coordinates (x, y), which are the midpoint of the sides of the triangle. The task is to find the coordinates of the triangle. " }, { "code": null, "e":...
Sum of all numbers that can be formed with permutations of n digits
05 Jul, 2022 Given n distinct digits (from 0 to 9), find sum of all n digit numbers that can be formed using these digits. It is assumed that numbers formed with leading 0 are allowed. Example: Input: 1 2 3 Output: 1332 Explanation Numbers Formed: 123 , 132 , 312 , 213, 231 , 321 123 + 132 + 312 + 213 + 231 + 321 = 13...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Jul, 2022" }, { "code": null, "e": 226, "s": 54, "text": "Given n distinct digits (from 0 to 9), find sum of all n digit numbers that can be formed using these digits. It is assumed that numbers formed with leading 0 are allowed." ...
How to populate virtuals to a mongoose model using Node.js ?
01 Jun, 2021 In Mongoose, the virtual is the property that is not stored in the database, they only exist logically, and you cannot query directly on the basis of this property. To know more about virtual refers to this article Mongoose Virtuals. Populating Virtuals: In MongoDB, Population is the process of replacing ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Jun, 2021" }, { "code": null, "e": 262, "s": 28, "text": "In Mongoose, the virtual is the property that is not stored in the database, they only exist logically, and you cannot query directly on the basis of this property. To know mo...
Flutter – Modal Bottom Sheet
21 Jun, 2022 Modal Bottom Sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app. It will appear over the UI so that there is no need to navigate to a different page. It can be used to perform a small task that does not require the whole new screen to be built. Fut...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2022" }, { "code": null, "e": 332, "s": 28, "text": "Modal Bottom Sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app. It will appear over the UI so that there is no need...
JavaScript for Capturing mouse positions after every given interval
19 Feb, 2019 The JavaScript language was initially created for web browsers. Since then, it evolved and became a language with many uses and platforms. It lets us interact with browser using events. Events are signals that something has happened. When JavaScript is used in HTML pages, JavaScript can react on these even...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Feb, 2019" }, { "code": null, "e": 493, "s": 28, "text": "The JavaScript language was initially created for web browsers. Since then, it evolved and became a language with many uses and platforms. It lets us interact with browser usi...
Valid Sudoku in C++
Let’s suppose we’ve given a 9×9 matrix called a Sudoku. The task is to check whether the given Sudoku Pattern is valid or not. In general, a Sudoku board look like this, Rules of Sudoku − Every row contains a number in the range 1-9 Every row contains a number in the range 1-9 Every column contains numbers in the range...
[ { "code": null, "e": 1314, "s": 1187, "text": "Let’s suppose we’ve given a 9×9 matrix called a Sudoku. The task is to check whether the given Sudoku Pattern is valid or not." }, { "code": null, "e": 1357, "s": 1314, "text": "In general, a Sudoku board look like this," }, { ...
Real, Effective and Saved UserID in Linux
18 Mar, 2021 Every user in Unix like operating system is identified by a different integer number, this unique number is called as UserID. There are three types of UID defined for a process, which can be dynamically changed as per the privilege of task. The three different types of UIDs defined are : 1. Real UserID 2...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Mar, 2021" }, { "code": null, "e": 181, "s": 54, "text": "Every user in Unix like operating system is identified by a different integer number, this unique number is called as UserID. " }, { "code": null, "e": 297, "...
Types of Recursions
04 Jun, 2022 What is Recursion? The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Using recursive algorithm, certain problems can be solved quite easily. Examples of such problems are Towers of Hanoi (TOH), Inorder/Preo...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jun, 2022" }, { "code": null, "e": 412, "s": 54, "text": "What is Recursion? The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Usin...
Deploying PySpark ML Model on Google Compute Engine as a REST API | by Ricky Kim | Towards Data Science
This post is loosely connected to my previous post. Step-by-Step Tutorial: PySpark Sentiment Analysis on Google Dataproc In my previous post, I trained a PySpark sentiment analysis model on Google Dataproc, and saved the model to Google Cloud Storage. In this post, I will show you how you can deploy a PySpark model on ...
[ { "code": null, "e": 224, "s": 172, "text": "This post is loosely connected to my previous post." }, { "code": null, "e": 293, "s": 224, "text": "Step-by-Step Tutorial: PySpark Sentiment Analysis on Google Dataproc" }, { "code": null, "e": 692, "s": 293, "text...
KBC game using Python - GeeksforGeeks
27 Jul, 2021 In this article, we will make a KBC game with almost all the features in CLI(Command Line Interface) mode using Python. Random questions every time Four lifelinesAudience Poll50:50Double dipFlip the question Audience Poll 50:50 Double dip Flip the question Made with the help of Matplotlib and NumPy librari...
[ { "code": null, "e": 23927, "s": 23899, "text": "\n27 Jul, 2021" }, { "code": null, "e": 24047, "s": 23927, "text": "In this article, we will make a KBC game with almost all the features in CLI(Command Line Interface) mode using Python." }, { "code": null, "e": 24075,...
PHP - empty() Function
The empty() function checks whether a variable is empty. bool empty ( mixed $var ) var Variable to be checked. *mixed: mixed indicates that a parameter may accept multiple (but not necessarily all) types This function returns − true − if the variable is empty true − if the variable is empty false − if variable exists ...
[ { "code": null, "e": 2814, "s": 2757, "text": "The empty() function checks whether a variable is empty." }, { "code": null, "e": 2841, "s": 2814, "text": "bool empty ( mixed $var )\n" }, { "code": null, "e": 2845, "s": 2841, "text": "var" }, { "code": ...
A Group chat application in Java - GeeksforGeeks
21 Nov, 2018 In this post, a group chat application using MulticastSocket (Java Platform SE 7) class is discussed. A MulticastSocket is a (UDP) DatagramSocket, with additional capabilities for joining “groups” of other multicast hosts on the internet. Implementation import java.net.*;import java.io.*;import java.util.*...
[ { "code": null, "e": 24710, "s": 24682, "text": "\n21 Nov, 2018" }, { "code": null, "e": 24949, "s": 24710, "text": "In this post, a group chat application using MulticastSocket (Java Platform SE 7) class is discussed. A MulticastSocket is a (UDP) DatagramSocket, with additional ...
How to sort an HTML list using JavaScript?
To sort an HTML list using JavaScript, the code is as follows − Live Demo <!DOCTYPE html> <html> <body> <h1>Sorting list example</h1> <button>Click to sort</button> <ul class="animalList"> <li>Giraffe</li> <li>Camel</li> <li>Dog</li> <li>Lion</li> <li>Cheetah</li> <li>Cat</li> </ul> <script> document .getElementsBy...
[ { "code": null, "e": 1126, "s": 1062, "text": "To sort an HTML list using JavaScript, the code is as follows −" }, { "code": null, "e": 1137, "s": 1126, "text": " Live Demo" }, { "code": null, "e": 2107, "s": 1137, "text": "<!DOCTYPE html>\n<html>\n<body>\n<h1...
Are values returned by static method are static in java?
Whenever you return values from a static method they are either static nor instance by default, they are just values. The user invoking the method can use them as he wants. i.e. you can retrieve the values and declare them static. But, since you cannot declare variables of a method static if you need to declare the val...
[ { "code": null, "e": 1180, "s": 1062, "text": "Whenever you return values from a static method they are either static nor instance by default, they are just values." }, { "code": null, "e": 1293, "s": 1180, "text": "The user invoking the method can use them as he wants. i.e. you ...
How to retrieve a value from MongoDB by its key name?
To retrieve a value from MongoDB by its key name, use the following syntax − db.yourCollectionName.find({},{"yourFieldName":1}).pretty(); To understand the above syntax, let us create a collection with the document. The query to create a collection with a document is as follows − > db.retrieveValueFromAKeyDemo.insertOn...
[ { "code": null, "e": 1139, "s": 1062, "text": "To retrieve a value from MongoDB by its key name, use the following syntax −" }, { "code": null, "e": 1200, "s": 1139, "text": "db.yourCollectionName.find({},{\"yourFieldName\":1}).pretty();" }, { "code": null, "e": 1343,...
Computer Programming - File I/O
A computer file is used to store data in digital format like plain text, image data, or any other content. Computer files can be organized inside different directories. Files are used to keep digital data, whereas directories are used to keep files. Computer files can be considered as the digital counterpart of paper d...
[ { "code": null, "e": 2390, "s": 2140, "text": "A computer file is used to store data in digital format like plain text, image data, or any other content. Computer files can be organized inside different directories. Files are used to keep digital data, whereas directories are used to keep files." ...
How to create transparent bar plot using ggplot2 in R?
To create transparent barplot using ggplot2, we can use alpha argument inside geom_bar function. For example, if we have a data frame called df that contains a categorical column say x and a numerical column say count then the bar plot with transparency can be created by using the command ggplot(df,aes(x,y))+geom_bar(a...
[ { "code": null, "e": 1408, "s": 1062, "text": "To create transparent barplot using ggplot2, we can use alpha argument inside geom_bar function. For example, if we have a data frame called df that contains a categorical column say x and a numerical column say count then the bar plot with transparency...
Maximum number of buckets that can be filled
10 Mar, 2022 Given an array arr[] consisting of capacities of N buckets where arr[i] denotes the capacity of the ith bucket. If the total amount of water available is the sum of array indices (1-based indexing), the task is to find the maximum number of buckets that can be filled with the available water. The bucket wi...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Mar, 2022" }, { "code": null, "e": 418, "s": 52, "text": "Given an array arr[] consisting of capacities of N buckets where arr[i] denotes the capacity of the ith bucket. If the total amount of water available is the sum of array ind...
What is CommonModule in Angular 10 ?
30 Apr, 2021 In this article, we are going to see what is CommonModule in Angular 10 and how to use it. CommonModule is used to export all the basic Angular directives and pipes. It is re-exported when we import BrowserModule into our angular application, BrowserModule is automatically imported into our application whe...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Apr, 2021" }, { "code": null, "e": 143, "s": 52, "text": "In this article, we are going to see what is CommonModule in Angular 10 and how to use it." }, { "code": null, "e": 418, "s": 143, "text": "CommonModule i...
How to overwrite a file to hide file contents, and make original contents unrecoverable in Linux?
To overwrite and file contents in the Linux system, we use the shred command using the terminal. shred – The shred command is used to securely delete files and devices. This command overwrites a file to hide file contents, and optionally delete the file so that it is very difficult to recover the file for any software ...
[ { "code": null, "e": 1159, "s": 1062, "text": "To overwrite and file contents in the Linux system, we use the shred command using the terminal." }, { "code": null, "e": 1408, "s": 1159, "text": "shred – The shred command is used to securely delete files and devices. This command ...
5 New Features in pandas 1.0 You Should Know About | by Roman Orac | Towards Data Science
pandas 1.0 was released on January 29, 2020. The version jumped from 0.25 to 1.0 there aren’t any drastic changes as some pandas users expect. The version increase merely echoes the maturity of the data processing library. While there aren’t many groundbreaking changes, there are a few that you should know about. Here ...
[ { "code": null, "e": 394, "s": 171, "text": "pandas 1.0 was released on January 29, 2020. The version jumped from 0.25 to 1.0 there aren’t any drastic changes as some pandas users expect. The version increase merely echoes the maturity of the data processing library." }, { "code": null, ...
Generate a random array of integers in Java
In order to generate random array of integers in Java, we use the nextInt() method of the java.util.Random class. This returns the next random integer value from this random number generator sequence. Declaration − The java.util.Random.nextInt() method is declared as follows − public int nextInt() Let us see a program ...
[ { "code": null, "e": 1263, "s": 1062, "text": "In order to generate random array of integers in Java, we use the nextInt() method of the java.util.Random class. This returns the next random integer value from this random number generator sequence." }, { "code": null, "e": 1340, "s": ...
Index with Minimum sum of prefix and suffix sums in an Array
06 Nov, 2021 Given an array of integers. The task is to find the index in the array at which the value of prefixSum(i) + suffixSum(i) is minimum.Note: PrefixSum(i) = The sum of first i numbers of the array. SuffixSum(i) = the sum of last N – i + 1 numbers of the array. 1-based indexing is considered for the array. Th...
[ { "code": null, "e": 53, "s": 25, "text": "\n06 Nov, 2021" }, { "code": null, "e": 193, "s": 53, "text": "Given an array of integers. The task is to find the index in the array at which the value of prefixSum(i) + suffixSum(i) is minimum.Note: " }, { "code": null, "e...
How to plot data from a text file using Matplotlib?
13 Jan, 2022 Perquisites: Matplotlib, NumPy In this article, we will see how to load data files for Matplotlib. Matplotlib is a 2D Python library used for Date Visualization. We can plot different types of graphs using the same data like: Bar Graph Line Graph Scatter Graph Histogram Graph and many. In this article, we ...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2022" }, { "code": null, "e": 59, "s": 28, "text": "Perquisites: Matplotlib, NumPy" }, { "code": null, "e": 254, "s": 59, "text": "In this article, we will see how to load data files for Matplotlib. Matplotli...
How to find the current capacity of a list in Python
01 May, 2020 List in Python is mainly implementation of dynamic sized arrays (like ArrayList in Java or vector in C++). Capacity of a list means number of elements a list can store at a specific time. When we append an element to a list, it will store the element if there is size is less than capacity. If current capac...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 May, 2020" }, { "code": null, "e": 537, "s": 28, "text": "List in Python is mainly implementation of dynamic sized arrays (like ArrayList in Java or vector in C++). Capacity of a list means number of elements a list can store at a sp...
vector max_size() function in C++ STL
09 Jun, 2022 The vector::max_size() is a built-in function in C++ STL which returns the maximum number of elements that can be held by the vector container. Syntax: vector_name.max_size() Parameters: The function does not accept any parameters. Return value: The function returns the maximum numbers that can fit into th...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Jun, 2022" }, { "code": null, "e": 205, "s": 53, "text": "The vector::max_size() is a built-in function in C++ STL which returns the maximum number of elements that can be held by the vector container. Syntax:" }, { "code": ...
How to validate if input in input field has alphanumeric characters only using express-validator ?
27 Dec, 2021 In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow only integer inputs, these are some examples of validation. In a certain input field, only alphanumeric characters are allowed i.e. there not allow...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2021" }, { "code": null, "e": 477, "s": 28, "text": "In HTML forms, we often required validation of different types. Validate existing email, validate password length, validate confirm password, validate to allow only integer in...
JavaScript Array filter() Method
27 May, 2022 The arr.filter() method is used to create a new array from a given array consisting of only those elements from the given array which satisfy a condition set by the argument method. Syntax: array.filter(callback(element, index, arr), thisValue) Parameters: This method accepts five parameter as mentioned ...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2022" }, { "code": null, "e": 211, "s": 28, "text": "The arr.filter() method is used to create a new array from a given array consisting of only those elements from the given array which satisfy a condition set by the argument m...
Flutter – Sending Data To The Internet
23 Jun, 2022 Interacting with the Internet is crucial for most apps to function. In Flutter the http package is used to send the data to the internet. In this article, we will explore the same topic in detail. To send data to the internet through your application follow the below steps: Import the http packageSend data...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jun, 2022" }, { "code": null, "e": 303, "s": 28, "text": "Interacting with the Internet is crucial for most apps to function. In Flutter the http package is used to send the data to the internet. In this article, we will explore the ...
Python Try Except
28 Jan, 2022 Error in Python can be of two types i.e. Syntax errors and Exceptions. Errors are the problems in a program due to which the program will stop the execution. On the other hand, exceptions are raised when some internal events occur which changes the normal flow of the program.Note: For more information, ref...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jan, 2022" }, { "code": null, "e": 441, "s": 53, "text": "Error in Python can be of two types i.e. Syntax errors and Exceptions. Errors are the problems in a program due to which the program will stop the execution. On the other han...
Python OpenCV | cv2.arrowedLine() method
23 Nov, 2021 OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.arrowedLine() method is used to draw arrow segment pointing from the start point to the end point. Syntax: cv2.arrowedLine(image, start_point, end_point, color, thickness, line_type, shift, tipLength)Parameters: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Nov, 2021" }, { "code": null, "e": 222, "s": 28, "text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.arrowedLine() method is used to draw arrow segment pointing from the start point ...
JavaScript Date valueOf() Method
17 Jan, 2022 Below is the example of Date valueOf() method. Example:javascriptjavascript<script> // Here a date has been assigned // while creating Date object var dateobj = new Date('October 15, 1996 05:35:32'); // Getting the number of milliseconds between // 1 January 1970 00:00:00 // UTC and the g...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2022" }, { "code": null, "e": 75, "s": 28, "text": "Below is the example of Date valueOf() method." }, { "code": null, "e": 518, "s": 75, "text": "Example:javascriptjavascript<script> // Here a date has bee...
Program to print Fibonacci Triangle
19 May, 2021 Given the value of n(n < 10), i.e, number of lines, print the Fibonacci triangle. Examples: Input : n = 5 Output : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Input : n = 7 Output : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 3...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 May, 2021" }, { "code": null, "e": 136, "s": 54, "text": "Given the value of n(n < 10), i.e, number of lines, print the Fibonacci triangle." }, { "code": null, "e": 147, "s": 136, "text": "Examples: " }, { ...
Hazelcast - Setup
Hazelcast requires Java 1.6 or above. Hazelcast can also be used with .NET, C++, or other JVM based languages like Scala and Clojure. However, for this tutorial, we are going to use Java 8. Before we move on, following is the project setup that we will use for this tutorial. hazelcast/ ├── com.example.demo/ │ ├── Singl...
[ { "code": null, "e": 2153, "s": 1963, "text": "Hazelcast requires Java 1.6 or above. Hazelcast can also be used with .NET, C++, or other JVM based languages like Scala and Clojure. However, for this tutorial, we are going to use Java 8." }, { "code": null, "e": 2239, "s": 2153, "...
Python - Convert a set into dictionary
Python provides lot of flexibility to handle different types of data structures. There may be a need when you have to convert one Data Structure to another for a better use or better analysis of the data. In this article we will see how to convert a Python set to a Python dictionary. The dict() can be used to take inpu...
[ { "code": null, "e": 1347, "s": 1062, "text": "Python provides lot of flexibility to handle different types of data structures. There may be a need when you have to convert one Data Structure to another for a better use or better analysis of the data. In this article we will see how to convert a Pyt...
Count of Ordered Pairs (X, Y) satisfying the Equation 1/X + 1/Y = 1/N - GeeksforGeeks
19 Dec, 2021 Given a positive integer N, the task is to find the number of ordered pairs (X, Y) where both X and Y are positive integers, such that they satisfy the equation 1/X + 1/Y = 1/N. Examples: Input: N = 5 Output: 3 Explanation: Only 3 pairs {(30,6), (10,10), (6,30)} satisfy the given equation. Input: N = 360 ...
[ { "code": null, "e": 25380, "s": 25352, "text": "\n19 Dec, 2021" }, { "code": null, "e": 25558, "s": 25380, "text": "Given a positive integer N, the task is to find the number of ordered pairs (X, Y) where both X and Y are positive integers, such that they satisfy the equation 1/...
How to programmatically scroll to a specific position in listView in Android?
This example demonstrates how do I programmatically scroll to a specific position 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="ut...
[ { "code": null, "e": 1156, "s": 1062, "text": "This example demonstrates how do I programmatically scroll to a specific position in android." }, { "code": null, "e": 1285, "s": 1156, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all r...
Numpy | Data Type Objects - GeeksforGeeks
15 Nov, 2018 Every ndarray has an associated data type (dtype) object. This data type object (dtype) informs us about the layout of the array. This means it gives us information about : Type of the data (integer, float, Python object etc.) Size of the data (number of bytes) Byte order of the data (little-endian or big-...
[ { "code": null, "e": 41448, "s": 41420, "text": "\n15 Nov, 2018" }, { "code": null, "e": 41621, "s": 41448, "text": "Every ndarray has an associated data type (dtype) object. This data type object (dtype) informs us about the layout of the array. This means it gives us informatio...
Gentle Start to Natural Language Processing using Python | by Rahil Shaikh | Towards Data Science
Gentle Start to Natural Language Processing using Python What is NLP ? Natural language processing (NLP) is about developing applications and services that are able to understand human languages. Some Practical examples of NLP are speech recognition for eg: google voice search, understanding what the content is about o...
[ { "code": null, "e": 229, "s": 172, "text": "Gentle Start to Natural Language Processing using Python" }, { "code": null, "e": 243, "s": 229, "text": "What is NLP ?" }, { "code": null, "e": 518, "s": 243, "text": "Natural language processing (NLP) is about dev...
Faster Video Processing in Python using Parallel Computing | by Sabina Pokhrel | Towards Data Science
If you want to process a number of video files, it might take a from minutes to hours, depending on the size of the video, frame count, and frame dimensions. How can we speed up video processing? Parallel processing is the answer! If you are processing images in batches, you can utilize the power of parallel processing...
[ { "code": null, "e": 329, "s": 171, "text": "If you want to process a number of video files, it might take a from minutes to hours, depending on the size of the video, frame count, and frame dimensions." }, { "code": null, "e": 367, "s": 329, "text": "How can we speed up video pr...
Drop MySQL Database
You would need special privileges to create or to delete a MySQL database. So, assuming you have access to the root user, you can create any database using the mysql mysqladmin binary. Be careful while deleting any database because you will lose your all the data available in your database. Here is an example to delete...
[ { "code": null, "e": 2518, "s": 2333, "text": "You would need special privileges to create or to delete a MySQL database. So, assuming you have access to the root user, you can create any database using the mysql mysqladmin binary." }, { "code": null, "e": 2625, "s": 2518, "text"...
C Program for replacing one digit with other
Given a number n, we have to replace a digit x from that number with another given number m. we have to look for the number whether the number is present in the given number or not, if it is present in the given number then replace that particular number x with another number m. Like we are given with a number “123” an...
[ { "code": null, "e": 1342, "s": 1062, "text": "Given a number n, we have to replace a digit x from that number with another given number m. we have to look for the number whether the number is present in the given number or not, if it is present in the given number then replace that particular numbe...
Top K Frequent Elements in Python
Suppose we have a non-empty array of integer numbers. we have to return the kth most frequent elements. So if the elements are [1,1,1,1,2,2,3,3,3] and k = 2, then the result will be Formally the function should − Return true if there exists i, j, k such that arr[i] < arr[j] < arr[k] given 0 ≤ i < j < k ≤ n-1 else retur...
[ { "code": null, "e": 1244, "s": 1062, "text": "Suppose we have a non-empty array of integer numbers. we have to return the kth most frequent elements. So if the elements are [1,1,1,1,2,2,3,3,3] and k = 2, then the result will be" }, { "code": null, "e": 1275, "s": 1244, "text": "...
Android - Alert Dialog
A Dialog is small window that prompts the user to a decision or enter additional information. Some times in your application, if you wanted to ask the user about taking a decision between yes or no in response of any particular action taken by the user, by remaining in the same activity and without changing the screen,...
[ { "code": null, "e": 3701, "s": 3607, "text": "A Dialog is small window that prompts the user to a decision or enter additional information." }, { "code": null, "e": 3954, "s": 3701, "text": "Some times in your application, if you wanted to ask the user about taking a decision be...
How to disable Bluetooth in android?
This example demonstrates How to disable Bluetooth 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"?> <LinearLayout xmlns:...
[ { "code": null, "e": 1125, "s": 1062, "text": "This example demonstrates How to disable Bluetooth in android." }, { "code": null, "e": 1254, "s": 1125, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new...
C/C++ Program to Count set bits in an integer?
Here we will see how we can check number of set bits in an integer number. The set bits are 1’s in the binary representation of a number. For an example the number 13 has three set bits 1101. So the count will be 3. To solve this problem, we will shift the number to the right, and if the LSb is 1, then increase count. ...
[ { "code": null, "e": 1278, "s": 1062, "text": "Here we will see how we can check number of set bits in an integer number. The set bits are 1’s in the binary representation of a number. For an example the number 13 has three set bits 1101. So the count will be 3." }, { "code": null, "e": ...