title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Double Base Palindrome
04 May, 2022 Double base Palindrome as the name suggest is a number which is Palindrome in 2 bases. One of the base is 10 i.e. decimal and another base is k.(which can be 2 or others). Note : The palindromic number, in either base, may not include leading zeros. Example : The decimal number, 585 = 10010010012 (binary),...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 May, 2022" }, { "code": null, "e": 393, "s": 54, "text": "Double base Palindrome as the name suggest is a number which is Palindrome in 2 bases. One of the base is 10 i.e. decimal and another base is k.(which can be 2 or others). No...
Program to find the Depreciation of Value
28 May, 2022 The value of any article or item subject to wear and tear, decreases with time. This decrease is called its Depreciation. Given three variable V1, R and T where V1 is the initial value, R is the rate of depreciation and T is the time in years. The task is to find the value of the item after T years.Example...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 May, 2022" }, { "code": null, "e": 340, "s": 28, "text": "The value of any article or item subject to wear and tear, decreases with time. This decrease is called its Depreciation. Given three variable V1, R and T where V1 is the init...
Custom Field Validations in Django Forms
16 Mar, 2021 This article revolves around how to add custom validation to a particular field. For example to add validation of an email to a CharField by specifying a particular format. There can be multiple ways on how to achieve custom validation. In this article, we are going to show it from the form itself so that ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Mar, 2021" }, { "code": null, "e": 373, "s": 28, "text": "This article revolves around how to add custom validation to a particular field. For example to add validation of an email to a CharField by specifying a particular format. Th...
NLP | Word Collocations
28 Jan, 2019 Collocations are two or more words that tend to appear frequently together, for example – United States. There are many other words that can come after United, such as the United Kingdom and United Airlines. As with many aspects of natural language processing, context is very important. And for collocation...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jan, 2019" }, { "code": null, "e": 571, "s": 28, "text": "Collocations are two or more words that tend to appear frequently together, for example – United States. There are many other words that can come after United, such as the Uni...
PHP get_browser() Function
03 Dec, 2021 In this article, we will know to check whether the user’s browser capability using the get_browser() function in PHP, along with understanding its implementation through the example. The get_browser() function in PHP is an inbuilt function that is used to tell the user about the browser’s capabilities. Thi...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Dec, 2021" }, { "code": null, "e": 639, "s": 28, "text": "In this article, we will know to check whether the user’s browser capability using the get_browser() function in PHP, along with understanding its implementation through the e...
Find the coordinates of the fourth vertex of a rectangle with given 3 vertices
31 May, 2022 Given an N * M grid. It contains exactly three ‘*’ and every other cell is a ‘.’ where ‘*’ denotes a vertex of a rectangle. The task is to find the coordinates of the fourth (missing) vertex (1-based indexing).Examples: Input: grid[][] = {“*.*”, “*..”, “...”} Output: 2 3 (1, 1), (1, 3) and (2, 1) are the...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 May, 2022" }, { "code": null, "e": 275, "s": 53, "text": "Given an N * M grid. It contains exactly three ‘*’ and every other cell is a ‘.’ where ‘*’ denotes a vertex of a rectangle. The task is to find the coordinates of the fourth ...
D3.js geoMercator() Function - GeeksforGeeks
01 Oct, 2020 D3.js is a JavaScript library for producing dynamic, interactive data visualizations in web browsers. It makes use of Scalable Vector Graphics, HTML5, and Cascading Style Sheets standards. The geoMercator() function in d3.js is used to draw The spherical Mercator projection. Syntax: d3.geoMercator() Parame...
[ { "code": null, "e": 25873, "s": 25845, "text": "\n01 Oct, 2020" }, { "code": null, "e": 26149, "s": 25873, "text": "D3.js is a JavaScript library for producing dynamic, interactive data visualizations in web browsers. It makes use of Scalable Vector Graphics, HTML5, and Cascadin...
HTTP headers | Content-Location - GeeksforGeeks
07 Nov, 2019 The HTTP Content-Location header is an entity-header that gives another location for the data that is returned and also tells how to access the resource by indicating the direct URL. Its usage is often confused with another HTTP Header which is Location. The main difference between them is that Location gi...
[ { "code": null, "e": 25803, "s": 25775, "text": "\n07 Nov, 2019" }, { "code": null, "e": 26263, "s": 25803, "text": "The HTTP Content-Location header is an entity-header that gives another location for the data that is returned and also tells how to access the resource by indicat...
Entity Framework - Table-Valued Function
In this chapter, let us learn how to map Table-valued Functions (TVFs) using the Entity Framework Designer and how to call a TVF from a LINQ query. TVFs are currently only supported in the Database First workflow. TVFs are currently only supported in the Database First workflow. It was first introduced in Entity Framew...
[ { "code": null, "e": 3180, "s": 3032, "text": "In this chapter, let us learn how to map Table-valued Functions (TVFs) using the Entity Framework Designer and how to call a TVF from a LINQ query." }, { "code": null, "e": 3246, "s": 3180, "text": "TVFs are currently only supported ...
AWK - Workflow
To become an expert AWK programmer, you need to know its internals. AWK follows a simple workflow − Read, Execute, and Repeat. The following diagram depicts the workflow of AWK − AWK reads a line from the input stream (file, pipe, or stdin) and stores it in memory. All AWK commands are applied sequentially on the input...
[ { "code": null, "e": 2036, "s": 1857, "text": "To become an expert AWK programmer, you need to know its internals. AWK follows a simple workflow − Read, Execute, and Repeat. The following diagram depicts the workflow of AWK −" }, { "code": null, "e": 2123, "s": 2036, "text": "AWK...
Design and Analysis Max Cliques
In an undirected graph, a clique is a complete sub-graph of the given graph. Complete sub-graph means, all the vertices of this sub-graph is connected to all other vertices of this sub-graph. The Max-Clique problem is the computational problem of finding maximum clique of the graph. Max clique is used in many real-worl...
[ { "code": null, "e": 2791, "s": 2599, "text": "In an undirected graph, a clique is a complete sub-graph of the given graph. Complete sub-graph means, all the vertices of this sub-graph is connected to all other vertices of this sub-graph." }, { "code": null, "e": 2931, "s": 2791, ...
Bootstrap - Button Plugin
Buttons were explained in chapter Bootstrap Buttons. With this plugin you can add in some interaction such as control button states or create groups of buttons for more components like toolbars. To add a loading state to a button, simply add the data-loading-text = "Loading..." as an attribute to the button element as ...
[ { "code": null, "e": 3526, "s": 3331, "text": "Buttons were explained in chapter Bootstrap Buttons. With this plugin you can add in some interaction such as control button states or create groups of buttons for more components like toolbars." }, { "code": null, "e": 3684, "s": 3526, ...
How do we use runOnUiThread in Android?
Before getting into example, we should know what is runOnUiThread() in android. Sometimes Main thread performs some heavy operations. if user wants to add some extra operations on UI, it will get load and provides ANR. Using runOnUiThread going to do back ground operations on worker thread and update the result on main...
[ { "code": null, "e": 1391, "s": 1062, "text": "Before getting into example, we should know what is runOnUiThread() in android. Sometimes Main thread performs some heavy operations. if user wants to add some extra operations on UI, it will get load and provides ANR. Using runOnUiThread going to do ba...
Handling Browser Authentication using Selenium
We can handle browser authentication with Selenium webdriver. 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 corr...
[ { "code": null, "e": 1334, "s": 1062, "text": "We can handle browser authentication with Selenium webdriver. 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 brows...
C++ interview questions on virtual function and abstract class - GeeksforGeeks
01 Sep, 2018 1. What is a pure virtual function? Ans. A pure virtual function (or abstract function) in C++ is a virtual function for which we don’t have implementation, we only declare it. A pure virtual function is declared by assigning 0 in declaration. See the following example. // An abstract classclass Test { ...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n01 Sep, 2018" }, { "code": null, "e": 25403, "s": 25367, "text": "1. What is a pure virtual function?" }, { "code": null, "e": 25638, "s": 25403, "text": "Ans. A pure virtual function (or abstract function) in...
Mathematics | Independent Sets, Covering and Matching - GeeksforGeeks
13 Dec, 2019 1. Independent Sets – A set of vertices I is called independent set if no two vertices in set I are adjacent to each other or in other words the set of non-adjacent vertices is called independent set. It is also called a stable set. The parameter α0(G) = max { |I|: I is an independent set in G } is called ...
[ { "code": null, "e": 31277, "s": 31249, "text": "\n13 Dec, 2019" }, { "code": null, "e": 31299, "s": 31277, "text": "1. Independent Sets –" }, { "code": null, "e": 31478, "s": 31299, "text": "A set of vertices I is called independent set if no two vertices in ...
Hello World in TypeScript - GeeksforGeeks
15 Jul, 2021 TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows javascript syntactically but adds more features to it. It is a superset of javascript. The diagram below depicts the relationship: Typescript is purely object-oriented with features like cla...
[ { "code": null, "e": 25703, "s": 25675, "text": "\n15 Jul, 2021" }, { "code": null, "e": 25951, "s": 25703, "text": "TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows javascript syntactically but adds more features ...
Connect Flask to a Database with Flask-SQLAlchemy - GeeksforGeeks
28 Dec, 2021 Flask is a micro web framework written in python. Micro-framework is normally a framework with little to no dependencies on external libraries. Though being a micro framework almost everything can be implemented using python libraries and other dependencies when and as required. In this article, we will be...
[ { "code": null, "e": 25689, "s": 25661, "text": "\n28 Dec, 2021" }, { "code": null, "e": 25969, "s": 25689, "text": "Flask is a micro web framework written in python. Micro-framework is normally a framework with little to no dependencies on external libraries. Though being a micr...
Reverse words in a given string | Set 2 - GeeksforGeeks
26 Sep, 2021 Given string str, the task is to reverse the string by considering each word of the string, str as a single unit. Examples: Input: str = “geeks quiz practice code”Output: code practice quiz geeks Explanation: The words in the given string are [“geeks”, “quiz”, “practice”, “code”]. Therefore, after reversi...
[ { "code": null, "e": 25933, "s": 25905, "text": "\n26 Sep, 2021" }, { "code": null, "e": 26047, "s": 25933, "text": "Given string str, the task is to reverse the string by considering each word of the string, str as a single unit." }, { "code": null, "e": 26057, "...
Contour Plots using Plotly in Python - GeeksforGeeks
12 Feb, 2021 A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library. A c...
[ { "code": null, "e": 25313, "s": 25285, "text": "\n12 Feb, 2021" }, { "code": null, "e": 25617, "s": 25313, "text": "A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, ...
numpy.asanyarray() in Python - GeeksforGeeks
28 May, 2019 numpy.asanyarray()function is used when we want to convert input to an array but it pass ndarray subclasses through. Input can be scalars, lists, lists of tuples, tuples, tuples of tuples, tuples of lists and ndarrays. Syntax : numpy.asanyarray(arr, dtype=None, order=None) Parameters :arr : [array_like] In...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n28 May, 2019" }, { "code": null, "e": 25781, "s": 25562, "text": "numpy.asanyarray()function is used when we want to convert input to an array but it pass ndarray subclasses through. Input can be scalars, lists, lists of tuples, ...
Implementing a Superellipse - GeeksforGeeks
29 Nov, 2017 What is a superellipseA superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but a different overall shape.In the Cartesian coordinate system, the set of all...
[ { "code": null, "e": 26365, "s": 26337, "text": "\n29 Nov, 2017" }, { "code": null, "e": 26721, "s": 26365, "text": "What is a superellipseA superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features o...
Implementing Sparse Vector in Java - GeeksforGeeks
02 Dec, 2020 A vector or arraylist is a one-dimensional array of elements. The elements of a Sparse Vector have mostly zero values. It is inefficient to use a one-dimensional array to store a sparse vector. It is also inefficient to add elements whose values are zero in forming sums of sparse vectors. We convert the on...
[ { "code": null, "e": 25249, "s": 25221, "text": "\n02 Dec, 2020" }, { "code": null, "e": 25614, "s": 25249, "text": "A vector or arraylist is a one-dimensional array of elements. The elements of a Sparse Vector have mostly zero values. It is inefficient to use a one-dimensional a...
PHP | ArrayObject count() Function - GeeksforGeeks
27 Sep, 2019 The ArrayObject::count() function is an inbuilt function in PHP which is used to get the number of public properties in the ArrayObject. Syntax: int ArrayObject::count( void ) Parameters: This function does not accept any parameters. Return Value: This function returns the number of public properties in th...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n27 Sep, 2019" }, { "code": null, "e": 26354, "s": 26217, "text": "The ArrayObject::count() function is an inbuilt function in PHP which is used to get the number of public properties in the ArrayObject." }, { "code": null...
Root-Mean-Square Error in R Programming - GeeksforGeeks
22 Jul, 2020 Root mean squared error (RMSE) is the square root of the mean of the square of all of the error. RMSE is considered an excellent general-purpose error metric for numerical predictions. RMSE is a good measure of accuracy, but only to compare prediction errors of different models or model configurations for ...
[ { "code": null, "e": 26407, "s": 26379, "text": "\n22 Jul, 2020" }, { "code": null, "e": 26896, "s": 26407, "text": "Root mean squared error (RMSE) is the square root of the mean of the square of all of the error. RMSE is considered an excellent general-purpose error metric for n...
Product of 2 Numbers using Recursion - GeeksforGeeks
07 Apr, 2021 Given two number x and y find product using recursion.Examples : Input : x = 5, y = 2 Output : 10 Input : x = 100, y = 5 Output : 500 Method 1) If x is less than y, swap the two variables value 2) Recursively find y times the sum of x 3) If any of them become zero, return 0 C++ Java Python3 C# PHP J...
[ { "code": null, "e": 26361, "s": 26333, "text": "\n07 Apr, 2021" }, { "code": null, "e": 26428, "s": 26361, "text": "Given two number x and y find product using recursion.Examples : " }, { "code": null, "e": 26498, "s": 26428, "text": "Input : x = 5, y = 2\nO...
Plot Multiple lines in Matplotlib - GeeksforGeeks
25 Nov, 2020 In this article, we will learn how to plot multiple lines using matplotlib in Python. Let’s discuss some concepts: Matplotlib: 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 wor...
[ { "code": null, "e": 31547, "s": 31519, "text": "\n25 Nov, 2020" }, { "code": null, "e": 31662, "s": 31547, "text": "In this article, we will learn how to plot multiple lines using matplotlib in Python. Let’s discuss some concepts:" }, { "code": null, "e": 31937, ...
Middle term in the binomial expansion series - GeeksforGeeks
14 Apr, 2021 Given three integers A, X, and n. The task is to find the middle term in the binomial expansion series. Examples: Input : A = 1, X = 1, n = 6 Output : MiddleTerm = 20 Input : A = 2, X = 4, n = 7 Output : MiddleTerm1 = 35840, MiddleTerm2 = 71680 Approach (A + X)n = nC0 An X0 + nC1 An-1 X1 + nC2 An-2 X2...
[ { "code": null, "e": 25961, "s": 25933, "text": "\n14 Apr, 2021" }, { "code": null, "e": 26077, "s": 25961, "text": "Given three integers A, X, and n. The task is to find the middle term in the binomial expansion series. Examples: " }, { "code": null, "e": 26209, ...
Remove json element - JavaScript?
Let’s say the following is our JSON string − var details = [ { customerName: "Chris", customerAge: 32 }, { customerName: "David", customerAge: 26 }, { customerName: "Bob", customerAge: 29 }, { customerName: "Carol", customerAge: 25 } ] To remove JS...
[ { "code": null, "e": 1107, "s": 1062, "text": "Let’s say the following is our JSON string −" }, { "code": null, "e": 1370, "s": 1107, "text": "var details =\n[\n {\n customerName: \"Chris\",\n customerAge: 32\n },\n {\n customerName: \"David\",\n custome...
Difference Between Method Overloading and Method Overriding in Java - GeeksforGeeks
02 Feb, 2022 The differences between Method Overloading and Method Overriding in Java are: Method Overloading Method Overriding Method Overloading is a Compile time polymorphism. In method overloading, more than one method shares the same method name with a different signature in the class. In method overloading, the r...
[ { "code": null, "e": 30305, "s": 30277, "text": "\n02 Feb, 2022" }, { "code": null, "e": 30383, "s": 30305, "text": "The differences between Method Overloading and Method Overriding in Java are:" }, { "code": null, "e": 30402, "s": 30383, "text": "Method Overl...
What does built-in class attribute __doc__ do in Python?
All functions have a built-in attribute __doc__, which returns the doc string defined in the function source code. def foo(): """ This is an example of how a doc_string looks like. This string gives useful information about the function being defined. """ pass print foo.__doc__ Let's see how this...
[ { "code": null, "e": 1177, "s": 1062, "text": "All functions have a built-in attribute __doc__, which returns the doc string defined in the function source code." }, { "code": null, "e": 1363, "s": 1177, "text": "def foo():\n \"\"\" This is an example of how a doc_string looks...
Planning to Travel Around the World, with Python? | by Yin-Ta Pan | Towards Data Science
Traveling Around the world is always the dream for everyone, but seldom of us are prepared to do so. To be honest, we even do not know what traveling around the world means. Of course, I cannot provide anything you need when you traveling, such as money and vacation, which are what I am lack of too. However, you can st...
[ { "code": null, "e": 443, "s": 47, "text": "Traveling Around the world is always the dream for everyone, but seldom of us are prepared to do so. To be honest, we even do not know what traveling around the world means. Of course, I cannot provide anything you need when you traveling, such as money an...
JavaScript | RegExp [0-9] Expression - GeeksforGeeks
22 Apr, 2019 The RegExp [0-9] Expression in JavaScript is used to search any digit which is between the brackets. The character inside the brackets can be a single digit or a span of digits. Syntax: /[0-9]/ or new RegExp("[0-9]") Syntax with modifiers: /[0-9]/g or new RegExp("[0-9]", "g") Example 1: This example sear...
[ { "code": null, "e": 25220, "s": 25192, "text": "\n22 Apr, 2019" }, { "code": null, "e": 25398, "s": 25220, "text": "The RegExp [0-9] Expression in JavaScript is used to search any digit which is between the brackets. The character inside the brackets can be a single digit or a s...
Array Basics Shell Scripting | Set 2 (Using Loops) - GeeksforGeeks
10 Jul, 2018 It is recommended to go through Array Basics Shell Scripting | Set-1IntroductionSuppose you want to repeat a particular task so many times then it is a better to use loops. Mostly all languages provides the concept of loops. In Bourne Shell there are two types of loops i.e for loop andwhile loop. To Print ...
[ { "code": null, "e": 25407, "s": 25379, "text": "\n10 Jul, 2018" }, { "code": null, "e": 25705, "s": 25407, "text": "It is recommended to go through Array Basics Shell Scripting | Set-1IntroductionSuppose you want to repeat a particular task so many times then it is a better to u...
What are techniques to detect anomalies | Towards Data Science
Anomaly detection is the identification of rare items, events, or observations that raise suspicions by differing significantly from the majority of the data. Typically the anomalous items will translate to some kind of problem such as credit card fraud, network intrusion, medical diagnostic, system health monitor. Ano...
[ { "code": null, "e": 489, "s": 172, "text": "Anomaly detection is the identification of rare items, events, or observations that raise suspicions by differing significantly from the majority of the data. Typically the anomalous items will translate to some kind of problem such as credit card fraud, ...
How to rename columns in Pandas DataFrame
01 Jul, 2022 Given a Pandas DataFrame, let’s see how to rename columns in Pandas with examples. Here, we will discuss 6 different ways to rename column names in pandas DataFrame. About Pandas DataFrame: Pandas DataFrame is a rectangular grid that is used to store data. It is easy to visualize and work with data when s...
[ { "code": null, "e": 53, "s": 25, "text": "\n01 Jul, 2022" }, { "code": null, "e": 219, "s": 53, "text": "Given a Pandas DataFrame, let’s see how to rename columns in Pandas with examples. Here, we will discuss 6 different ways to rename column names in pandas DataFrame." }, ...
Hashtable clear() Method in Java
28 Jun, 2018 The java.util.Hashtable.clear() method in Java is used to clear and remove all of the keys from a specified Hashtable. Syntax: Hash_table.clear() Parameters: The method does not accept any parameters. Return Value: The method does not return any value. Below programs are used to illustrate the working of j...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2018" }, { "code": null, "e": 147, "s": 28, "text": "The java.util.Hashtable.clear() method in Java is used to clear and remove all of the keys from a specified Hashtable." }, { "code": null, "e": 155, "s": 147, ...
Convert a number into negative base representation
22 Jun, 2022 A number n and a negative base negBase is given to us, we need to represent n in that negative base. Negative base works similar to positive base. For example in base 2 we multiply bits to 1, 2, 4, 8 and so on to get actual number in decimal. In case of base -2 we need to multiply bits with 1, -2, 4, -8 an...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Jun, 2022" }, { "code": null, "e": 407, "s": 54, "text": "A number n and a negative base negBase is given to us, we need to represent n in that negative base. Negative base works similar to positive base. For example in base 2 we mu...
Perform MySQL delete under safe mode?
To delete under safe mode, you can use the below query − SET SQL_SAFE_UPDATES = 0; To understand the above query, let us create a table. The following is the query to create a table − mysql> create table SafeDeleteDemo −> ( −> Price int −> ); Query OK, 0 rows affected (0.50 sec) Insert some records in the tabl...
[ { "code": null, "e": 1244, "s": 1187, "text": "To delete under safe mode, you can use the below query −" }, { "code": null, "e": 1270, "s": 1244, "text": "SET SQL_SAFE_UPDATES = 0;" }, { "code": null, "e": 1371, "s": 1270, "text": "To understand the above quer...
How to convert Map keys to an array in JavaScript ?
18 Jun, 2019 Given a Map and the task is to get the keys of the map into an array using JavaScript. Approach 1: Declare new map object Display the map content Use keys() method on Map Object to get the keys of Map. Then use the array.from() method to convert map object to array. Example 1: This example uses array.from(...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2019" }, { "code": null, "e": 115, "s": 28, "text": "Given a Map and the task is to get the keys of the map into an array using JavaScript." }, { "code": null, "e": 127, "s": 115, "text": "Approach 1:" }, ...
Python | Reraise the Last Exception and Issue Warning
12 Jun, 2019 Problem – Reraising the exception, that has been caught in the except block. def example(): try: int('N/A') except ValueError: print("Didn't work") raise example() Output : Didn't work Traceback (most recent call last): File "", line 1, in File "", line 3, in ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jun, 2019" }, { "code": null, "e": 105, "s": 28, "text": "Problem – Reraising the exception, that has been caught in the except block." }, { "code": "def example(): try: int('N/A') except ValueError: print...
Output of Java Programs | Set 52 (Strings Class)
18 Sep, 2018 Prerequisite : Basics of Strings class in java 1. What is the Output Of the following Program class demo1 { public static void main(String args[]) { String str1 = "java"; char arr[] = { 'j', 'a', 'v', 'a', ' ', 'p', 'r', 'o', 'g', 'r', 'a', 'm', 'm', 'i', 'n', 'g' }; Stri...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Sep, 2018" }, { "code": null, "e": 99, "s": 52, "text": "Prerequisite : Basics of Strings class in java" }, { "code": null, "e": 146, "s": 99, "text": "1. What is the Output Of the following Program" }, { ...
Exporting Bokeh Plots
28 Jul, 2021 Bokeh is an interactive data visualization library available for Python. Using Bokeh we can embed our plot in any HTML file. It internally uses HTML and JavaScript to render the plot in Web Browsers for representation. Under the hood, it converts the data source into a JSON file which is used as input for ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2021" }, { "code": null, "e": 500, "s": 28, "text": "Bokeh is an interactive data visualization library available for Python. Using Bokeh we can embed our plot in any HTML file. It internally uses HTML and JavaScript to render t...
SQL | CREATE
21 Mar, 2018 There are two CREATE statements available in SQL: CREATE DATABASECREATE TABLE CREATE DATABASE CREATE TABLE CREATE DATABASE A Database is defined as a structured set of data. So, in SQL the very first step to store the data in a well structured manner is to create a database. The CREATE DATABASE statement i...
[ { "code": null, "e": 53, "s": 25, "text": "\n21 Mar, 2018" }, { "code": null, "e": 103, "s": 53, "text": "There are two CREATE statements available in SQL:" }, { "code": null, "e": 131, "s": 103, "text": "CREATE DATABASECREATE TABLE" }, { "code": null,...
FREE Online Courses By GeeksforGeeks – Learn New Tech Skills!
06 Jan, 2022 Learning should never stop! And what can be better than quality Online Learning resources to keep continuing your learning endeavors especially amidst this covid outbreak. Truly, Online courses give you the flexibility to learn at your own pace and comfort place. Now, for every techie, here’s an announceme...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jan, 2022" }, { "code": null, "e": 470, "s": 52, "text": "Learning should never stop! And what can be better than quality Online Learning resources to keep continuing your learning endeavors especially amidst this covid outbreak. Tr...
How to print a list in Scala
15 Apr, 2019 In Scala, list is defined under scala.collection.immutable package. A list is a collection of same type elements which contains immutable data. There are multiple ways to create a List in Scala. Let’s see few basic on how to create a Scala List. Create an empty ListExample :// Scala program to create an em...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2019" }, { "code": null, "e": 172, "s": 28, "text": "In Scala, list is defined under scala.collection.immutable package. A list is a collection of same type elements which contains immutable data." }, { "code": null, ...
Python – Characters occurring in multiple Strings
22 Apr, 2020 Sometimes, while working with Python strings, we can have problem in which we need to extract the characters which have occurrences in more than one string in string list. This kind of problem usually occurs in web development and Data Science domains. Lets discuss certain ways in which this task can be pe...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 344, "s": 28, "text": "Sometimes, while working with Python strings, we can have problem in which we need to extract the characters which have occurrences in more than one string in string list. Thi...
Python | Pandas Series.str.wrap()
24 Sep, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas str.wrap() is an important method when dealing with long text data (Paragraphs or mess...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Sep, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp...
Inverse Gamma Distribution in Python
02 Aug, 2019 Inverse Gamma distribution is a continuous probability distribution with two parameters on the positive real line. It is the reciprocate distribution of a variable distributed according to the gamma distribution. It is very useful in Bayesian statistics as the marginal distribution for the unknown variance...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Aug, 2019" }, { "code": null, "e": 517, "s": 28, "text": "Inverse Gamma distribution is a continuous probability distribution with two parameters on the positive real line. It is the reciprocate distribution of a variable distributed...
Regular grammar (Model regular grammars )
26 Apr, 2022 Prerequisites: Chomsky hierarchy Regular grammar generates regular language. They have a single non-terminal on the left-hand side and a right-hand side consisting of a single terminal or single terminal followed by a non-terminal. The productions must be in the form: A ⇢ xB A ⇢ x A ⇢ Bx where A, B ∈ Vari...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Apr, 2022" }, { "code": null, "e": 87, "s": 54, "text": "Prerequisites: Chomsky hierarchy" }, { "code": null, "e": 286, "s": 87, "text": "Regular grammar generates regular language. They have a single non-termina...
What are the differences between an event listener interface and an event adapter class in Java?
An EventListener interface defines the methods that must be implemented by an event handler for a particular kind of an event whereas an Event Adapter class provides a default implementation of an EventListener interface. The Event Listeners are the backbone of every component to handle the events. Every method of a pa...
[ { "code": null, "e": 1409, "s": 1187, "text": "An EventListener interface defines the methods that must be implemented by an event handler for a particular kind of an event whereas an Event Adapter class provides a default implementation of an EventListener interface." }, { "code": null, ...
How to access variables from another file using JavaScript ?
26 Jul, 2021 In JavaScript, variables can be accessed from another file using the <script> tags or the import or export statement. The script tag is mainly used when we want to access variable of a JavaScript file in an HTML file. This works well for client-side scripting as well as for server-side scripting. The impor...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2021" }, { "code": null, "e": 485, "s": 28, "text": "In JavaScript, variables can be accessed from another file using the <script> tags or the import or export statement. The script tag is mainly used when we want to access vari...
Swift - Variables
A variable provides us with named storage that our programs can manipulate. Each variable in Swift 4 has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. Swift 4 suppo...
[ { "code": null, "e": 2560, "s": 2253, "text": "A variable provides us with named storage that our programs can manipulate. Each variable in Swift 4 has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the s...
Python MongoDB - Create Collection
A collection in MongoDB holds a set of documents, it is analogous to a table in relational databases. You can create a collection using the createCollection() method. This method accepts a String value representing the name of the collection to be created and an options (optional) parameter. Using this you can specify ...
[ { "code": null, "e": 3307, "s": 3205, "text": "A collection in MongoDB holds a set of documents, it is analogous to a table in relational databases." }, { "code": null, "e": 3498, "s": 3307, "text": "You can create a collection using the createCollection() method. This method acc...
C# program to find node in Linked List
Firstly, create a new linked list − LinkedList<string> myList = new LinkedList<string>(); Now add some elements in the linked list − // Add 6 elements in the linked list myList.AddLast("P"); myList.AddLast("Q"); myList.AddLast("R"); myList.AddLast("S"); myList.AddLast("T"); myList.AddLast("U"); Let’s now find a node an...
[ { "code": null, "e": 1098, "s": 1062, "text": "Firstly, create a new linked list −" }, { "code": null, "e": 1152, "s": 1098, "text": "LinkedList<string> myList = new LinkedList<string>();" }, { "code": null, "e": 1195, "s": 1152, "text": "Now add some elements...
Convert HTML source code to JSON Object using Python - GeeksforGeeks
03 Mar, 2021 In this post, we will see how we can convert an HTML source code into a JSON object. JSON objects can be easily transferred, and they are supported by most of the modern programming languages. We can read JSON from Javascript and parse it as a Javascript object easily. Javascript can be used to make HTML f...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n03 Mar, 2021" }, { "code": null, "e": 24643, "s": 24316, "text": "In this post, we will see how we can convert an HTML source code into a JSON object. JSON objects can be easily transferred, and they are supported by most of the ...
Find the maximum sum leaf to root path in a Binary Tree - GeeksforGeeks
19 Feb, 2020 Given a Binary Tree, find the maximum sum path from a leaf to root. For example, in the following tree, there are three leaf to root paths 8->-2->10, -4->-2->10 and 7->10. The sums of these three paths are 16, 4 and 17 respectively. The maximum of them is 17 and the path for maximum is 7->10. ...
[ { "code": null, "e": 26763, "s": 26735, "text": "\n19 Feb, 2020" }, { "code": null, "e": 42442, "s": 26763, "text": "Given a Binary Tree, find the maximum sum path from a leaf to root. For example, in the following tree, there are three leaf to root paths 8->-2->10, -4->-2->10 an...
How to detect the duplication of values of input fields ? - GeeksforGeeks
08 Jun, 2020 Suppose you are making a registration form in which you are taking phone numbers of users. Now, You want to ask the user for four alternative contact numbers. You want to make sure that all four contact numbers given by users should be different. This functionality can be implemented in two ways : At the ...
[ { "code": null, "e": 26653, "s": 26625, "text": "\n08 Jun, 2020" }, { "code": null, "e": 26901, "s": 26653, "text": "Suppose you are making a registration form in which you are taking phone numbers of users. Now, You want to ask the user for four alternative contact numbers. You ...
Fetch unique records from table in SAP ABAP
As you said you are working in ABAP and SQL, so I would expect that you would be using OpenSQL for your SQL activities. You can get the unique records just by using a DISTINCT operator. SELECT DISTINCT Name from <Table name> where <clause>
[ { "code": null, "e": 1182, "s": 1062, "text": "As you said you are working in ABAP and SQL, so I would expect that you would be using OpenSQL for your SQL activities." }, { "code": null, "e": 1248, "s": 1182, "text": "You can get the unique records just by using a DISTINCT operat...
CSS | 3D Transforms - GeeksforGeeks
04 Jun, 2020 It allows to change elements using 3D transformations. In 3D transformation, the elements are rotated along X-axis, Y-axis and Z-axis. There are three main types of transformation which are listed below: rotateX() rotateY() rotateZ() The rotateX() Method: This rotation is used to rotate an elements around ...
[ { "code": null, "e": 27655, "s": 27627, "text": "\n04 Jun, 2020" }, { "code": null, "e": 27790, "s": 27655, "text": "It allows to change elements using 3D transformations. In 3D transformation, the elements are rotated along X-axis, Y-axis and Z-axis." }, { "code": null, ...
Detection and Classification of Blood Cells with Deep Learning (Part 2 — Training and Evaluation) | by Steven | Towards Data Science
Tackling the BCCD Dataset with Tensorflow Object Detection API We are now finally ready for training. # directory = ...YOUR_DIRECTORY/models/research/object_detection # type the following into Anaconda Promptpython train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pet...
[ { "code": null, "e": 235, "s": 172, "text": "Tackling the BCCD Dataset with Tensorflow Object Detection API" }, { "code": null, "e": 274, "s": 235, "text": "We are now finally ready for training." }, { "code": null, "e": 501, "s": 274, "text": "# directory = ....
Kotlin Comments
Comments can be used to explain Kotlin code, and to make it more readable. It can also be used to prevent execution when testing alternative code. Single-line comments starts with two forward slashes (//). Any text between // and the end of the line is ignored by Kotlin (will not be executed). This example uses a sin...
[ { "code": null, "e": 148, "s": 0, "text": "Comments can be used to explain Kotlin code, and to make it more readable. It can also be used to \nprevent execution when testing alternative code." }, { "code": null, "e": 207, "s": 148, "text": "Single-line comments starts with two fo...
Elasticsearch - Query DSL
In Elasticsearch, searching is carried out by using query based on JSON. A query is made up of two clauses − Leaf Query Clauses − These clauses are match, term or range, which look for a specific value in specific field. Leaf Query Clauses − These clauses are match, term or range, which look for a specific value in spe...
[ { "code": null, "e": 2690, "s": 2581, "text": "In Elasticsearch, searching is carried out by using query based on JSON. A query is made up of two clauses −" }, { "code": null, "e": 2802, "s": 2690, "text": "Leaf Query Clauses − These clauses are match, term or range, which look f...
Java Switch Case statement | Practice | GeeksforGeeks
Given an integer choice denoting the choice of the user and a list containing the single value R or two values L and B depending on the choice. If the user's choice is 1, calculate the area of the circle having the given radius(R). Else if choice is 2, calculate the area of the rectangle with given length(L) and brea...
[ { "code": null, "e": 554, "s": 226, "text": "Given an integer choice denoting the choice of the user and a list containing the single value R or two values L and B depending on the choice.\nIf the user's choice is 1, calculate the area of the circle having the given radius(R). \nElse if choice is 2...
Java Program to format time with DateFormat.MEDIUM
Use the getTimeInstance() method in Java to get the time format for the locale you have set. DateFormat.MEDIUM is a constant for medium style pattern. Firstly, we will create a Date object − Date dt = new Date(); DateFormat dateFormat; Let us format time for a different locale with DateFormat.MEDIUM dateFormat = DateFo...
[ { "code": null, "e": 1213, "s": 1062, "text": "Use the getTimeInstance() method in Java to get the time format for the locale you have set. DateFormat.MEDIUM is a constant for medium style pattern." }, { "code": null, "e": 1253, "s": 1213, "text": "Firstly, we will create a Date ...
Biconnected Components - GeeksforGeeks
19 Jan, 2022 A biconnected component is a maximal biconnected subgraph.Biconnected Graph is already discussed here. In this article, we will see how to find biconnected component in a graph using algorithm by John Hopcroft and Robert Tarjan. In above graph, following are the biconnected components: 4–2 3–4 3–1 2–3 1...
[ { "code": null, "e": 25066, "s": 25038, "text": "\n19 Jan, 2022" }, { "code": null, "e": 25296, "s": 25066, "text": "A biconnected component is a maximal biconnected subgraph.Biconnected Graph is already discussed here. In this article, we will see how to find biconnected compone...
Easiest Guide to Getting Stock Data With Python | by Aidan Wilson | Towards Data Science
I recently finished up an introductory course for data science at my university and for my final project, I decided I wanted to work with stock market data. I wanted to place my focus on the algorithmic trading and needed a quick and easy way to gather stock data that was easily useable. I came across a library called ...
[ { "code": null, "e": 335, "s": 46, "text": "I recently finished up an introductory course for data science at my university and for my final project, I decided I wanted to work with stock market data. I wanted to place my focus on the algorithmic trading and needed a quick and easy way to gather sto...
How to put a ListView into a ScrollView without it collapsing on Android?
This example demonstrates how to put a ListView into a ScrollView without it collapsing on 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" encodi...
[ { "code": null, "e": 1162, "s": 1062, "text": "This example demonstrates how to put a ListView into a ScrollView without it collapsing on Android." }, { "code": null, "e": 1291, "s": 1162, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill...
Python Tuples: When to Use Them Over Lists | by Erdem Isbilen | Towards Data Science
Lists and dictionaries are the most widely used built-in data types in Python. This makes them also the best-known data types in Python. When it comes to tuples, grasping the details of how they differ from the lists is not an easy task for the beginners as they are very similar to each other. In this article, I will e...
[ { "code": null, "e": 467, "s": 172, "text": "Lists and dictionaries are the most widely used built-in data types in Python. This makes them also the best-known data types in Python. When it comes to tuples, grasping the details of how they differ from the lists is not an easy task for the beginners ...
SQL - INDEX Constraint
The INDEX is used to create and retrieve data from the database very quickly. An Index can be created by using a single or group of columns in a table. When the index is created, it is assigned a ROWID for each row before it sorts out the data. Proper indexes are good for performance in large databases, but you need to...
[ { "code": null, "e": 2698, "s": 2453, "text": "The INDEX is used to create and retrieve data from the database very quickly. An Index can be created by using a single or group of columns in a table. When the index is created, it is assigned a ROWID for each row before it sorts out the data." }, ...
How to remove duplicate elements from JavaScript Array ? - GeeksforGeeks
20 Oct, 2021 There are various methods to remove duplicates in the array. We will discuss the most common four ways. Use the filter() method: The filter() method creates a new array of elements that pass the condition we provide. It will include only those elements for which true is returned. We can remove duplicate va...
[ { "code": null, "e": 24285, "s": 24257, "text": "\n20 Oct, 2021" }, { "code": null, "e": 24389, "s": 24285, "text": "There are various methods to remove duplicates in the array. We will discuss the most common four ways." }, { "code": null, "e": 24647, "s": 24389,...
Julia Programming - Databases
Following are the four mechanisms for interfacing with a particular database system − First method of accessing a database is by using the set of routines in an API (Application Program Interface). In this method, the DBMS will be bundled as a set of query and maintenance utilities. These utilities will communicate wit...
[ { "code": null, "e": 2164, "s": 2078, "text": "Following are the four mechanisms for interfacing with a particular database system −" }, { "code": null, "e": 2520, "s": 2164, "text": "First method of accessing a database is by using the set of routines in an API (Application Prog...
How to use bootstrap datepicker - Learn Tutorials Point
You can add datepicker to your website design, datepicker add for “datepicker” function in bootstrap. <link href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css” rel=”stylesheet” type=”text/css” /><link href=”https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker.css” ...
[ { "code": null, "e": 165, "s": 61, "text": "You can add datepicker to your website design, datepicker add for “datepicker” function in bootstrap." }, { "code": null, "e": 417, "s": 165, "text": "<link href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css” ...
Create table SQL query in SAP HANA
In below SQL query, you can see a create table command in SQL editor to create a new table with name-“Demo_HANA” in schema name AA_HANA11 with column names- ID and NAME and corresponding data types. In the below example, we have defined ID as “Primary Key” which means it is unique and not null. Create Table Demo_HANA (...
[ { "code": null, "e": 1358, "s": 1062, "text": "In below SQL query, you can see a create table command in SQL editor to create a new table with name-“Demo_HANA” in schema name AA_HANA11 with column names- ID and NAME and corresponding data types. In the below example, we have defined ID as “Primary K...
C - Arrays
Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Instead of declaring individual variables, such as number0, numb...
[ { "code": null, "e": 2340, "s": 2084, "text": "Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same typ...
CSS - background-position
Sets the initial position of the element's background image, if specified; values normally are paired to provide x, y positions; default position is 0% 0%. percent none length top center bottom left right block-level and replaced elements object.style.backgroundPosition = "10 30"; Following is the example which demons...
[ { "code": null, "e": 2782, "s": 2626, "text": "Sets the initial position of the element's background image, if specified; values normally are paired to provide x, y positions; default position is 0% 0%." }, { "code": null, "e": 2790, "s": 2782, "text": "percent" }, { "cod...
Adding new column after a specific column and defining a default in MySQL?
You need to follow some steps to add a new column after a specific column and defining default value. In order to achieve this, you need to use ALTER command. Let us first create a table − mysql> create table DemoTable ( StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY, StudentFirstName varchar(20), Studen...
[ { "code": null, "e": 1251, "s": 1062, "text": "You need to follow some steps to add a new column after a specific column and defining default value. In order to achieve this, you need to use ALTER command. Let us first create a table −" }, { "code": null, "e": 1470, "s": 1251, "t...
Introducing Xverse! — A python package for feature selection and transformation | by Sundar Krishnan | Towards Data Science
Xverse short for X Universe is a python package for machine learning to assist Data Scientists with feature transformation and feature selection. Before we talk about the details of the package, let us understand why we need one. I came across this image and I felt there is no better way to explain this project. As fun...
[ { "code": null, "e": 402, "s": 172, "text": "Xverse short for X Universe is a python package for machine learning to assist Data Scientists with feature transformation and feature selection. Before we talk about the details of the package, let us understand why we need one." }, { "code": nul...
Python | Launch a Web Browser using webbrowser module - GeeksforGeeks
31 Oct, 2021 In Python, webbrowser module is a convenient web browser controller. It provides a high-level interface that allows displaying Web-based documents to users. webbrowser can also be used as a CLI tool. It accepts a URL as the argument with the following optional parameters: -n opens the URL in a new browser...
[ { "code": null, "e": 24893, "s": 24865, "text": "\n31 Oct, 2021" }, { "code": null, "e": 25051, "s": 24893, "text": "In Python, webbrowser module is a convenient web browser controller. It provides a high-level interface that allows displaying Web-based documents to users. " },...
Number of siblings of a given Node in n-ary Tree - GeeksforGeeks
24 Jun, 2021 Given an N-ary tree, find the number of siblings of given node x. Assume that x exists in the given n-ary tree. Example : Input : 30 Output : 3 Approach: For every node in the given n-ary tree, push the children of the current node in the queue. While adding the children of current node in queue, chec...
[ { "code": null, "e": 25977, "s": 25949, "text": "\n24 Jun, 2021" }, { "code": null, "e": 26090, "s": 25977, "text": "Given an N-ary tree, find the number of siblings of given node x. Assume that x exists in the given n-ary tree. " }, { "code": null, "e": 26102, "s...
Different ways to make Method Parameter Optional in C# - GeeksforGeeks
29 Mar, 2019 As the name suggests optional parameters are not compulsory parameters, they are optional. It helps to exclude arguments for some parameters. Or we can say in optional parameters, it is not necessary to pass all the parameters in the method. This concept is introduced in C# 4.0. Here we discuss the differe...
[ { "code": null, "e": 25435, "s": 25407, "text": "\n29 Mar, 2019" }, { "code": null, "e": 25889, "s": 25435, "text": "As the name suggests optional parameters are not compulsory parameters, they are optional. It helps to exclude arguments for some parameters. Or we can say in opti...
Java Program to Use Method Overriding in Inheritance for Subclasses - GeeksforGeeks
28 Jan, 2021 Method overriding in Java is when a subclass implements a method that is already present inside the superclass. With the help of method overriding we can achieve runtime polymorphism. When we are overriding a method then we must keep three things in mind. The method in the subclass must have the same name ...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n28 Jan, 2021" }, { "code": null, "e": 25481, "s": 25225, "text": "Method overriding in Java is when a subclass implements a method that is already present inside the superclass. With the help of method overriding we can achieve r...
Python - Values Frequency Index List - GeeksforGeeks
10 Jul, 2020 Sometimes, while working with Python tuples, we can have a problem in which we need to extract the frequency of each value in tuple. This has been solved earlier. We can have a modification in which we need to create list in which index represents the key and value of it represents the frequency of that in...
[ { "code": null, "e": 26095, "s": 26067, "text": "\n10 Jul, 2020" }, { "code": null, "e": 26559, "s": 26095, "text": "Sometimes, while working with Python tuples, we can have a problem in which we need to extract the frequency of each value in tuple. This has been solved earlier. ...
Python | Check if list contains all unique elements - GeeksforGeeks
23 Dec, 2018 Some list operations require us to check if all the elements in the list are unique. This usually happens when we try to perform the set operations in a list. Hence this particular utility is essential at these times. Lets discuss certain methods by which this can be performed. Method #1 : Naive MethodSolu...
[ { "code": null, "e": 26127, "s": 26099, "text": "\n23 Dec, 2018" }, { "code": null, "e": 26406, "s": 26127, "text": "Some list operations require us to check if all the elements in the list are unique. This usually happens when we try to perform the set operations in a list. Henc...
How to Install and Configure Synaptic Package Manager in Ubuntu? - GeeksforGeeks
05 Oct, 2021 Synaptic Package Manager is a GUI based package management tool that uses APT (Advanced Package Tool) to installing, updating or removing packages from the Linux system. Some of the feature given by Synaptic Package Manager are: Allow installing, updating or removing packages Upgrading whole system Sear...
[ { "code": null, "e": 26197, "s": 26169, "text": "\n05 Oct, 2021" }, { "code": null, "e": 26427, "s": 26197, "text": "Synaptic Package Manager is a GUI based package management tool that uses APT (Advanced Package Tool) to installing, updating or removing packages from the Linux s...
Quiz Game in C++ - GeeksforGeeks
12 Nov, 2021 In this article, the task is to create a quiz game where the user will be asked questions and the result of each question whether it is correct or wrong with the updated score will be shown. Below is the implementation of the same: C++ // C++ program for the above approach#include <iostream>#include <strin...
[ { "code": null, "e": 25369, "s": 25341, "text": "\n12 Nov, 2021" }, { "code": null, "e": 25560, "s": 25369, "text": "In this article, the task is to create a quiz game where the user will be asked questions and the result of each question whether it is correct or wrong with the u...
How to get column names from SQLAlchemy? - GeeksforGeeks
04 Jan, 2022 In this article, we will discuss how to get column names using SQLAlchemy in Python. SQLAlchemy is an open-source SQL toolkit and object-relational mapper for the Python programming language released under the MIT License. It gives full power and flexibility of SQL to an application. To follow along with t...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n04 Jan, 2022" }, { "code": null, "e": 25622, "s": 25537, "text": "In this article, we will discuss how to get column names using SQLAlchemy in Python." }, { "code": null, "e": 25995, "s": 25622, "text": "SQLAl...
File Sharing App using Python - GeeksforGeeks
03 Sep, 2021 Computer Networks is an important topic and to understand the concepts, practical application of the concepts is needed. In this particular article, we will see how to make a simple file-sharing app using Python. An HTTP Web Server is software that understands URLs (web address) and HTTP (the protocol use...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n03 Sep, 2021" }, { "code": null, "e": 26026, "s": 25561, "text": "Computer Networks is an important topic and to understand the concepts, practical application of the concepts is needed. In this particular article, we will see ho...
Creating Ownable Contracts in Solidity - GeeksforGeeks
11 May, 2022 A Smart Contract (or crypto contract) is a computer program that directly and automatically controls the transfer of digital assets between the parties under certain conditions. Once deployed, a smart contract code cannot be changed. It is also publicly visible to everyone. Solidity is a language used for ...
[ { "code": null, "e": 25907, "s": 25879, "text": "\n11 May, 2022" }, { "code": null, "e": 26482, "s": 25907, "text": "A Smart Contract (or crypto contract) is a computer program that directly and automatically controls the transfer of digital assets between the parties under certa...
Face Comparison Using Face++ and Python - GeeksforGeeks
01 Oct, 2021 Prerequisites: Python Programming Language Python is a high-level general-purpose language. It is used for multiple purposes like AI, Web Development, Web Scraping, etc. One such use of Python can be Face Comparison. A module name python-facepp can be used for doing the same. This module is for communicati...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n01 Oct, 2021" }, { "code": null, "e": 25580, "s": 25537, "text": "Prerequisites: Python Programming Language" }, { "code": null, "e": 25887, "s": 25580, "text": "Python is a high-level general-purpose language...
Locale toLanguageTag() Method in Java with Examples - GeeksforGeeks
01 May, 2019 The toLanguageTag() method of Locale class in Java is used to return a well-formed IETF BCP 47 language tag representing this locale object. Now there can be few complications when a language, country or variant does not satisfy the above-mentioned tag which is handled well by this method: If the mentioned...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n01 May, 2019" }, { "code": null, "e": 25516, "s": 25225, "text": "The toLanguageTag() method of Locale class in Java is used to return a well-formed IETF BCP 47 language tag representing this locale object. Now there can be few c...
STL Ropes in C++ - GeeksforGeeks
13 Dec, 2021 Ropes are scalable string implementation. They are designed for efficient operation that involves the string as a whole. Operations such as assignment, concatenation, and sub-string take time that is nearly independent of the length of the string. A rope is a binary tree where each leaf (end node) holds a ...
[ { "code": null, "e": 25733, "s": 25705, "text": "\n13 Dec, 2021" }, { "code": null, "e": 25981, "s": 25733, "text": "Ropes are scalable string implementation. They are designed for efficient operation that involves the string as a whole. Operations such as assignment, concatenati...
Multivariate Linear Regression in Python Step by Step | by Rashida Nasrin Sucky | Towards Data Science
Linear regression is probably the most simple machine learning algorithm. It is very good for starters because it uses simple formulas. So, it is good for learning machine-learning concepts. In this article, I will try to explain the multivariate linear regression step by step. Linear regression uses the simple formula...
[ { "code": null, "e": 451, "s": 172, "text": "Linear regression is probably the most simple machine learning algorithm. It is very good for starters because it uses simple formulas. So, it is good for learning machine-learning concepts. In this article, I will try to explain the multivariate linear r...
Web scraping: How to handle a calendar with Selenium | by Euge Inzaugarat | Towards Data Science
❝ ... Time Moves Slowly, But Passes Quickly...❞— Alice Walker I was sitting on my favorite sofa looking TV. Well, to tell the truth, I was channel surfing. Perhaps there was nothing interesting to see or I was too distracted thinking about that issue I couldn’t solve at work. I took my eyes away for one minute from the...
[ { "code": null, "e": 234, "s": 172, "text": "❝ ... Time Moves Slowly, But Passes Quickly...❞— Alice Walker" }, { "code": null, "e": 328, "s": 234, "text": "I was sitting on my favorite sofa looking TV. Well, to tell the truth, I was channel surfing." }, { "code": null, ...
Adding User Authentication in NextJS using Auth0 - GeeksforGeeks
27 Oct, 2021 In this article, we will learn How we can add user authentication in our NextJS project using Auth0. NextJS is a React-based framework. It has the power to Develop beautiful Web applications for different platforms like Windows, Linux, and mac. The linking of dynamic paths helps in rendering your NextJS co...
[ { "code": null, "e": 24826, "s": 24798, "text": "\n27 Oct, 2021" }, { "code": null, "e": 25157, "s": 24826, "text": "In this article, we will learn How we can add user authentication in our NextJS project using Auth0. NextJS is a React-based framework. It has the power to Develop...
Largest Prime Number possible from a subsequence of a Binary String - GeeksforGeeks
09 Jul, 2021 Given a Binary string, the task is to find the largest Prime Number possible by the decimal representation of a subsequence of the given binary string. If no prime number can be obtained, print -1. Examples: Input: S = “1001”Output: 5 Explanation: Out of all subsequences of the string “1001”, the largest p...
[ { "code": null, "e": 24937, "s": 24909, "text": "\n09 Jul, 2021" }, { "code": null, "e": 25135, "s": 24937, "text": "Given a Binary string, the task is to find the largest Prime Number possible by the decimal representation of a subsequence of the given binary string. If no prime...
Create a list group heading in Bootstrap
To create a list group heading, use the .list-group-item-heading class in Bootstrap. You can try to run the following code to implement .list-group-item-heading class − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "styleshe...
[ { "code": null, "e": 1147, "s": 1062, "text": "To create a list group heading, use the .list-group-item-heading class in Bootstrap." }, { "code": null, "e": 1231, "s": 1147, "text": "You can try to run the following code to implement .list-group-item-heading class −" }, { ...
How to Manipulate IP Addresses in Python using ipaddress Module? - GeeksforGeeks
21 Sep, 2021 IP Address stands for internet protocol address. It’s an identifying number that’s related to a selected computer or network. When connected to the web, the IP address allows the computers to send and receive information. Python provides ipaddress module which provides the capabilities to create, manipulat...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n21 Sep, 2021" }, { "code": null, "e": 24403, "s": 23901, "text": "IP Address stands for internet protocol address. It’s an identifying number that’s related to a selected computer or network. When connected to the web, the IP add...
Create a Random Sequence of Numbers within t-Distribution in R Programming - rt() Function - GeeksforGeeks
19 Jun, 2020 rt() function in R Language is used to create a random sequence of values from Student t-distribution. Syntax: rt(n, df, ncp) Parameters:n: Number of observationsdf: Degree of Freedomncp: Numeric vector of non-centrality parameters. Example 1: # R Program to create random sequence# from t distribution # C...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n19 Jun, 2020" }, { "code": null, "e": 25345, "s": 25242, "text": "rt() function in R Language is used to create a random sequence of values from Student t-distribution." }, { "code": null, "e": 25368, "s": 25345, ...
How to validate IFSC Code using Regular Expression
25 May, 2021 Given string str, the task is to check whether the given string is a valid IFSC (Indian Financial System) Code or not by using Regular Expression. The valid IFSC (Indian Financial System) Code must satisfy the following conditions: It should be 11 characters long.The first four characters should be upper ...
[ { "code": null, "e": 53, "s": 25, "text": "\n25 May, 2021" }, { "code": null, "e": 286, "s": 53, "text": "Given string str, the task is to check whether the given string is a valid IFSC (Indian Financial System) Code or not by using Regular Expression. The valid IFSC (Indian Fina...