title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
D Programming - File I/O
Files are represented by the File struct of the std.stdio module. A file represents a sequence of bytes, does not matter if it is a text file or binary file. D programming language provides access on high level functions as well as low level (OS level) calls to handle file on your storage devices. The standard input an...
[ { "code": null, "e": 2762, "s": 2604, "text": "Files are represented by the File struct of the std.stdio module. A file represents a sequence of bytes, does not matter if it is a text file or binary file." }, { "code": null, "e": 2903, "s": 2762, "text": "D programming language p...
How to do Web API versioning with URI in C# ASP.NET WebAPI?
Once a Web API service is made public, different client applications start using our Web API services. As the business grows and requirements change, we may have to change the services as well, but the changes to the services should be done in way that does not break any existing client applications. This is when Web A...
[ { "code": null, "e": 1364, "s": 1062, "text": "Once a Web API service is made public, different client applications start using our\nWeb API services. As the business grows and requirements change, we may have to\nchange the services as well, but the changes to the services should be done in way\nth...
PostgreSQL - PRIVILEGES
Whenever an object is created in a database, an owner is assigned to it. The owner is usually the one who executed the creation statement. For most kinds of objects, the initial state is that only the owner (or a superuser) can modify or delete the object. To allow other roles or users to use it, privileges or permissi...
[ { "code": null, "e": 3165, "s": 2825, "text": "Whenever an object is created in a database, an owner is assigned to it. The owner is usually the one who executed the creation statement. For most kinds of objects, the initial state is that only the owner (or a superuser) can modify or delete the obje...
Find the Number of subarrays having sum less than K using C++
In this article, we will find out the number of subarrays having a sum less than K using C++. In this problem, we have an array arr[] and an integer K. So now we have to find subarrays that have a sum less than K. Here is the example − Input : arr[] = {1, 11, 2, 3, 15} K = 10 Output : 4 {1}, {2}, {3} and {2, 3} Now we ...
[ { "code": null, "e": 1298, "s": 1062, "text": "In this article, we will find out the number of subarrays having a sum less than K using C++. In this problem, we have an array arr[] and an integer K. So now we have to find subarrays that have a sum less than K. Here is the example −" }, { "co...
How to delete last element from a set in C++
06 Dec, 2018 Given a Set, the task is to remove the last element from this Set in C++. Examples: Input: set = [10 20 30 70 80 90 100 40 50 60] Output: 10 20 30 40 50 60 70 80 90 Input: set = [1 2 3 4 5] Output: 1 2 3 4 Sets are a type of associative containers in which each element has to be unique because the value ...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Dec, 2018" }, { "code": null, "e": 128, "s": 54, "text": "Given a Set, the task is to remove the last element from this Set in C++." }, { "code": null, "e": 138, "s": 128, "text": "Examples:" }, { "code":...
How to Create a Bootstrap Spinner and Display on Screen till the data from the API loads ?
10 Jun, 2020 The task is to display a spinner on the page until the data response from the API comes. We have taken bootstrap spinner to show the example. Pre-requisite: You will need some knowledge about JavaScript fetch API. You will need a mock API for getting data. Approach: Create necessary HTML, CSS, and JavaScr...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2020" }, { "code": null, "e": 170, "s": 28, "text": "The task is to display a spinner on the page until the data response from the API comes. We have taken bootstrap spinner to show the example." }, { "code": null, "...
SQL Query to Calculate Total Number of Weeks Between Two Specific Dates
23 Apr, 2021 Here we will see, how to calculate the number of weeks between the two given dates with the help of SQL query using DATEDIFF() function. For the purpose of demonstration, we will be creating a demo_orders table in a database called “geeks“. Use the below SQL statement to create a database called geeks: CRE...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Apr, 2021" }, { "code": null, "e": 165, "s": 28, "text": "Here we will see, how to calculate the number of weeks between the two given dates with the help of SQL query using DATEDIFF() function." }, { "code": null, "e": 2...
Draw a Polygon in Java Applet
08 May, 2018 Polygon is a closed figure with finite set of line segments joining one vertex to the other. The polygon comprises of set of (x, y) coordinate pairs where each pair is the vertex of the polygon. The side of the polygon is the line drawn between two successive coordinate pairs and a line segment is drawn fr...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 May, 2018" }, { "code": null, "e": 395, "s": 52, "text": "Polygon is a closed figure with finite set of line segments joining one vertex to the other. The polygon comprises of set of (x, y) coordinate pairs where each pair is the ve...
Matplotlib.pyplot.errorbar() in Python
21 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. The errorbar() function in pyplot module of matplotlib library is used to plot y versus x as lines and/or marker...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2020" }, { "code": null, "e": 223, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MAT...
How to include quotes in comma separated column with MySQL?
Let us first create a − mysql> create table DemoTable1407 -> ( -> Name text -> ); Query OK, 0 rows affected (0.51 sec) Insert some records in the table using insert − mysql> insert into DemoTable1407 values('John,Bob'); Query OK, 1 row affected (0.20 sec) mysql> insert into DemoTable1407 values('Carol,David,Ad...
[ { "code": null, "e": 1211, "s": 1187, "text": "Let us first create a −" }, { "code": null, "e": 1315, "s": 1211, "text": "mysql> create table DemoTable1407\n -> (\n -> Name text\n -> );\nQuery OK, 0 rows affected (0.51 sec)" }, { "code": null, "e": 1363, "s"...
Wrapping C/C++ for Python using SWIG – Set 1
07 Jul, 2017 There is no doubt that C is faster than Python then how do Python library like Numpy perform huge number crunching job so fast and efficiently? Actually, libraries like Numpy are not completely written in Python instead, some parts of the library are written in C which provides performance boost. After wri...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2017" }, { "code": null, "e": 703, "s": 28, "text": "There is no doubt that C is faster than Python then how do Python library like Numpy perform huge number crunching job so fast and efficiently? Actually, libraries like Numpy ...
Scala String toUpperCase() method with example
29 Oct, 2019 The toUpperCase() method is utilized to convert all the characters of the stated string to uppercase. Method Definition: String toUpperCase() Return Type: It returns the resultant string after converting its all the character to uppercase. Example: 1# // Scala program of toUpperCase()// method // Creating...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Oct, 2019" }, { "code": null, "e": 130, "s": 28, "text": "The toUpperCase() method is utilized to convert all the characters of the stated string to uppercase." }, { "code": null, "e": 170, "s": 130, "text": "Meth...
How to Bind Multiple Commands to Tkinter Button?
26 Dec, 2020 The button widget in Tkinter provides a way to interact with the application. The user presses a button to perform certain actions that are attached to that button. In general, we user provides a single action to a button but what if the user wants to attach more than one action to a button. In this articl...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Dec, 2020" }, { "code": null, "e": 321, "s": 28, "text": "The button widget in Tkinter provides a way to interact with the application. The user presses a button to perform certain actions that are attached to that button. In general...
How to get the classes of all columns in a dataframe in R ?
16 May, 2021 In this article, we will discuss how to find all the classes of the dataframe in R Programming Language. There are two methods to find the classes of columns in the dataframe. Using str() function Using lapply() function Method1 : Using str() function This function will return the class and value of the in...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2021" }, { "code": null, "e": 133, "s": 28, "text": "In this article, we will discuss how to find all the classes of the dataframe in R Programming Language." }, { "code": null, "e": 204, "s": 133, "text": "T...
How to convert an HTML element or document into image ?
18 Jul, 2019 This article is going to tell and guide the users to convert a div element into an image using AngularJS. The user will be generating an image from the webpage and also be able to convert a particular part of the HTML page into the picture. Also, the user needs an HTML tag and html2canvas JavaScript librar...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Jul, 2019" }, { "code": null, "e": 778, "s": 52, "text": "This article is going to tell and guide the users to convert a div element into an image using AngularJS. The user will be generating an image from the webpage and also be ab...
ctype.h(<cctype>) library in C/C++ with Examples
16 Dec, 2019 As string.h header file contains inbuilt functions to handle Strings in C/C++, the ctype.h/<cctype> contains inbuilt functions to handle characters in C/C++ respectively. Characters are of two types: Printable Characters: The characters that are displayed on the terminal.Control Characters: The characters ...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Dec, 2019" }, { "code": null, "e": 224, "s": 53, "text": "As string.h header file contains inbuilt functions to handle Strings in C/C++, the ctype.h/<cctype> contains inbuilt functions to handle characters in C/C++ respectively." ...
How to sort an array elements in android?
This example demonstrate about How to sort an array elements 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 ...
[ { "code": null, "e": 1260, "s": 1187, "text": "This example demonstrate about How to sort an array elements in android." }, { "code": null, "e": 1389, "s": 1260, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to cr...
Stack push() and pop() in C++ STL
16 Jun, 2022 Stacks are a type of container adaptors that follow LIFO(Last In First Out) property, where a new element is added at one end and an element(at the top) is removed from that end only. Basically, the insertion and deletion happen on the top of the stack itself. push() function is used to insert or ‘push’ an...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 313, "s": 52, "text": "Stacks are a type of container adaptors that follow LIFO(Last In First Out) property, where a new element is added at one end and an element(at the top) is removed from that ...
Find the first maximum length even word from a string
21 Apr, 2021 Given a string of words separated by spaces. The task is to find the first maximum length even word from the string. Eg: “You are given an array of n numbers” The answer would be “an” and not “of” because “an” comes before “of”.Examples: Input: "this is a test string" Output: string Even length words a...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Apr, 2021" }, { "code": null, "e": 292, "s": 52, "text": "Given a string of words separated by spaces. The task is to find the first maximum length even word from the string. Eg: “You are given an array of n numbers” The answer woul...
TreeSet toString() method in Java with Example
27 Dec, 2018 The toString() method of Java TreeSet is used to return a string representation of the elements of the Collection. The String representation comprises a set representation of the elements of the Collection in the order they are picked by the iterator closed in square brackets[].This method is used mainly t...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2018" }, { "code": null, "e": 143, "s": 28, "text": "The toString() method of Java TreeSet is used to return a string representation of the elements of the Collection." }, { "code": null, "e": 438, "s": 143, ...
Regular Expression to Extract SQL Query
29 Oct, 2021 Regular Expressions are the easier mechanism to search the data that matches the complex criteria. For example, from an alphanumeric value, extract only the alpha value or numeric value or check for the specific patterns of character matching and retrieve the records, etc. Let us see them one by one by tak...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Oct, 2021" }, { "code": null, "e": 302, "s": 28, "text": "Regular Expressions are the easier mechanism to search the data that matches the complex criteria. For example, from an alphanumeric value, extract only the alpha value or num...
Difference between ExecutorService execute() and submit() method in Java
20 Jun, 2021 The ExecutorService interface extends Executor by adding methods that help manage and control the execution of threads. It is defined in java.util.concurrent package. It defines methods that execute the threads that return results, a set of threads and that determine the shutdown status. In this article, w...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jun, 2021" }, { "code": null, "e": 448, "s": 54, "text": "The ExecutorService interface extends Executor by adding methods that help manage and control the execution of threads. It is defined in java.util.concurrent package. It defi...
File canExecute() method in Java with Examples
28 Jan, 2019 The canExecute() function is a part of File class in Java. This function determines whether the program can execute the specified file denoted by the abstract pathname. If the file path exists and the application is allowed to execute the file, this method will return true. Else it will return false. Funct...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jan, 2019" }, { "code": null, "e": 354, "s": 52, "text": "The canExecute() function is a part of File class in Java. This function determines whether the program can execute the specified file denoted by the abstract pathname. If th...
Python Tkinter | Create different shapes using Canvas class
02 Nov, 2021 In Tkinter, Canvas class is used to create different shapes with the help of some functions which are defined under Canvas class. Any shape that Canvas class creates requires a canvas, so before creating any shapes a Canvas object is required and needs to be packed to the main window. Canvas Methods for s...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Nov, 2021" }, { "code": null, "e": 315, "s": 28, "text": "In Tkinter, Canvas class is used to create different shapes with the help of some functions which are defined under Canvas class. Any shape that Canvas class creates requires ...
strings.Fields() Function in Golang With Examples
19 Apr, 2020 strings.Fields() Function in Golang is used to splits the given string around each instance of one or more consecutive white space characters, as defined by unicode.IsSpace, returning a slice of substrings of str or an empty slice if str contains only white space. Syntax: func Fields(str string) []string R...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 293, "s": 28, "text": "strings.Fields() Function in Golang is used to splits the given string around each instance of one or more consecutive white space characters, as defined by unicode.IsSpace, r...
Introduction to Handsontable.js
22 Feb, 2021 What is handsontable.js ? Handsontable.js is a JavaScript data-grid component that can be used to build excel like web apps. Its basically a JavaScript library. One good thing about handsontable.js is that you can use it with vanilla JavaScript or React or Vue or Angular. Installation: You have two options...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Feb, 2021" }, { "code": null, "e": 79, "s": 53, "text": "What is handsontable.js ?" }, { "code": null, "e": 326, "s": 79, "text": "Handsontable.js is a JavaScript data-grid component that can be used to build exc...
Python – Assigning Key values to list elements from Value list Dictionary
01 Aug, 2020 Given List of elements, map them with keys of matching value from value list. Input : test_list = [4, 6, 3, 5, 3], test_dict = {“Gfg” : [5, 3, 6], “is” : [8, 4]}Output : [‘is’, ‘Gfg’, ‘Gfg’, ‘Gfg’, ‘Gfg’]Explanation : 4 is present in “is” key, hence mapped in new list. Input : test_list = [6, 3, 5, 3], tes...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Aug, 2020" }, { "code": null, "e": 130, "s": 52, "text": "Given List of elements, map them with keys of matching value from value list." }, { "code": null, "e": 322, "s": 130, "text": "Input : test_list = [4, 6, ...
Vulnerability in input() function – Python 2.x
Difficulty Level : Medium This article aims at explaining and exploring the vulnerability in the input() function in Python 2.x. In Python 3, the raw_input() function was erased, and its functionality was transferred to a new built-in function known as input(). There are two common methods to receive input in Python 2....
[ { "code": null, "e": 26, "s": 0, "text": "Difficulty Level :\nMedium" }, { "code": null, "e": 262, "s": 26, "text": "This article aims at explaining and exploring the vulnerability in the input() function in Python 2.x. In Python 3, the raw_input() function was erased, and its fu...
PostgreSQL – Rename Database
22 Feb, 2021 In PostgreSQL, the ALTER DATABASE RENAME TO statement is used to rename a database. The below steps need to be followed while renaming a database: Disconnect from the database that you want to rename by connecting to a different database.Terminate all connections, connected to the database to be renamed.N...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Feb, 2021" }, { "code": null, "e": 176, "s": 28, "text": "In PostgreSQL, the ALTER DATABASE RENAME TO statement is used to rename a database. The below steps need to be followed while renaming a database: " }, { "code": null,...
TreeMap in Java
07 Jul, 2022 The TreeMap in Java is used to implement Map interface and NavigableMap along with the AbstractMap Class. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending on which constructor is used. This proves to be an efficient way of sorting ...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2022" }, { "code": null, "e": 763, "s": 54, "text": "The TreeMap in Java is used to implement Map interface and NavigableMap along with the AbstractMap Class. The map is sorted according to the natural ordering of its keys, or ...
Uploading Image Using Django with Firebase
23 Jun, 2021 Firebase is a product of Google which helps developers to build, manage, and grow their apps easily. It helps developers to build their apps faster and in a more secure way. No programming is required on the firebase side which makes it easy to use its features more efficiently. It provides cloud storage. ...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2021" }, { "code": null, "e": 400, "s": 54, "text": "Firebase is a product of Google which helps developers to build, manage, and grow their apps easily. It helps developers to build their apps faster and in a more secure way. ...
Variable Length Arrays in C/C++ - GeeksforGeeks
07 Jan, 2022 Variable length arrays are also known as runtime sized or variable sized arrays. The size of such arrays is defined at run-time. Variably modified types include variable length arrays and pointers to variable length arrays. Variably changed types must be declared at either block scope or function prototyp...
[ { "code": null, "e": 24019, "s": 23991, "text": "\n07 Jan, 2022" }, { "code": null, "e": 24149, "s": 24019, "text": "Variable length arrays are also known as runtime sized or variable sized arrays. The size of such arrays is defined at run-time. " }, { "code": null, "...
Docker - ADD Instruction - GeeksforGeeks
29 Oct, 2020 If you want to extract a TAR file inside a Docker Container or copy files from a URL or local directory, you can specify ADD Instructions inside your Dockerfile. This is different from COPY instruction because COPY instruction only allows you to copy files and directories from the local machine. In this ar...
[ { "code": null, "e": 25865, "s": 25837, "text": "\n29 Oct, 2020" }, { "code": null, "e": 26162, "s": 25865, "text": "If you want to extract a TAR file inside a Docker Container or copy files from a URL or local directory, you can specify ADD Instructions inside your Dockerfile. T...
uint keyword in C# - GeeksforGeeks
22 Jun, 2020 Keywords are the words in a language that are used for some internal process or represent some predefined actions. uint is a keyword that is used to declare a variable which can store an integral type of value (unsigned integer) from the range of 0 to 4,294,967,295. It keyword is an alias of System.UInt32....
[ { "code": null, "e": 25135, "s": 25107, "text": "\n22 Jun, 2020" }, { "code": null, "e": 25443, "s": 25135, "text": "Keywords are the words in a language that are used for some internal process or represent some predefined actions. uint is a keyword that is used to declare a vari...
GeeksforGeeks | A computer science portal for geeks
Events at GeeksforGeeks Courses at GeeksforGeeks Write an Article Java Tutorial Python Tutorial Data Structures Tutorial Coding Practice Events at GeeksforGeeks Courses at GeeksforGeeks Write an Article Java Tutorial Python Tutorial Data Structures...
[ { "code": null, "e": 21950, "s": 21920, "text": "\n\n\nEvents at GeeksforGeeks\n\n\n" }, { "code": null, "e": 21981, "s": 21950, "text": "\n\n\nCourses at GeeksforGeeks\n\n\n" }, { "code": null, "e": 22004, "s": 21981, "text": "\n\n\nWrite an Article\n\n\n" ...
Exploratory text analysis in Python | by Zolzaya Luvsandorj | Towards Data Science
Why do we do exploratory data analysis before we build a model? I would say ‘to understand the data better so that we preprocess the data in a suitable way and choose an appropriate modelling technique’. This necessity to understand data is still relevant when working with text data. This post is the first of the three...
[ { "code": null, "e": 678, "s": 172, "text": "Why do we do exploratory data analysis before we build a model? I would say ‘to understand the data better so that we preprocess the data in a suitable way and choose an appropriate modelling technique’. This necessity to understand data is still relevant...
HTML <a> Tag - GeeksforGeeks
17 Mar, 2022 The <a> tag (anchor tag) in HTML is used to create a hyperlink on the webpage. This hyperlink is used to link the webpage to other web pages. It’s either used to provide an absolute reference or a relative reference as its “href” value. Syntax: <a href = "link"> Link Name </a> Attribute: The anchor tag co...
[ { "code": null, "e": 30009, "s": 29981, "text": "\n17 Mar, 2022" }, { "code": null, "e": 30246, "s": 30009, "text": "The <a> tag (anchor tag) in HTML is used to create a hyperlink on the webpage. This hyperlink is used to link the webpage to other web pages. It’s either used to p...
Angular7 - Pipes
In this chapter, we will discuss about Pipes in Angular 7. Pipes were earlier called filters in Angular1 and called pipes from Angular2 onwards. The | character is used to transform data. Following is the syntax for the same − {{ Welcome to Angular 7 | lowercase}} It takes integers, strings, arrays, and date as input ...
[ { "code": null, "e": 2206, "s": 2061, "text": "In this chapter, we will discuss about Pipes in Angular 7. Pipes were earlier called filters in Angular1 and called pipes from Angular2 onwards." }, { "code": null, "e": 2288, "s": 2206, "text": "The | character is used to transform ...
Compound Assignment Operators in C++
The compound assignment operators are specified in the form e1 op= e2, where e1 is a modifiable l-value not of const type and e2 is one of the following − An arithmetic type A pointer, if op is + or – The e1 op= e2 form behaves as e1 = e1 op e2, but e1 is evaluated only once. The following are the compound assignment o...
[ { "code": null, "e": 1217, "s": 1062, "text": "The compound assignment operators are specified in the form e1 op= e2, where e1 is a modifiable l-value not of const type and e2 is one of the following −" }, { "code": null, "e": 1236, "s": 1217, "text": "An arithmetic type" }, ...
HBase Interview Questions
Dear readers, these HBase Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of HBase. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions star...
[ { "code": null, "e": 2471, "s": 2037, "text": "Dear readers, these HBase Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of HBase. As per my experience good interviewers hardly plan to ask any...
Find missing elements in List in Python
If we have a list containing numbers, we can check if the numbers are contiguous or not and also find which numbers are missing from a range of numbers considering the highest number as the final value. We can design a for loop to check for absence of values in a range using the not in operator. Then capture all these ...
[ { "code": null, "e": 1265, "s": 1062, "text": "If we have a list containing numbers, we can check if the numbers are contiguous or not and also find which numbers are missing from a range of numbers considering the highest number as the final value." }, { "code": null, "e": 1448, "s"...
Maven - Project Templates
Maven provides users, a very large list of different types of project templates (614 in numbers) using the concept of Archetype. Maven helps users to quickly start a new java project using the following command. mvn archetype:generate Archetype is a Maven plugin whose task is to create a project structure as per its t...
[ { "code": null, "e": 2272, "s": 2060, "text": "Maven provides users, a very large list of different types of project templates (614 in numbers) using the concept of Archetype. Maven helps users to quickly start a new java project using the following command." }, { "code": null, "e": 2296...
MongoDB $regex operator i or I for case insensitive search
For this, you need to use case insensitive (i). Let us create a collection with documents − > db.demo759.insertOne({SubjectName:"MySQL"}); { "acknowledged" : true, "insertedId" : ObjectId("5eb02ba95637cd592b2a4ae7") } > db.demo759.insertOne({SubjectName:"MongoDB"}); { "acknowledged" : true, "insertedId" : O...
[ { "code": null, "e": 1154, "s": 1062, "text": "For this, you need to use case insensitive (i). Let us create a collection with documents −" }, { "code": null, "e": 1688, "s": 1154, "text": "> db.demo759.insertOne({SubjectName:\"MySQL\"});\n{\n \"acknowledged\" : true,\n \"ins...
Build with PyCaret: Deploy on Google Cloud Platform | by MA Raza, Ph.D. | Towards Data Science
In this story, I have developed a working tutorial on deploying a model trained with pycaret on Google Cloud Platform. This tutorial can be used to deploy any machine learning model(s) with slight modifications. We will learn how to deploy models trained with pycaret to Google Cloud Platform. As you might know, pycaret...
[ { "code": null, "e": 384, "s": 172, "text": "In this story, I have developed a working tutorial on deploying a model trained with pycaret on Google Cloud Platform. This tutorial can be used to deploy any machine learning model(s) with slight modifications." }, { "code": null, "e": 728, ...
Count the Frequency of elements in a Numeric Vector - tabulate() Function - GeeksforGeeks
05 Jun, 2020 tabulate() function in R Language is used to count the frequency of occurrence of a element in the vector. This function checks for each element in the vector and returns the number of times it occurs in the vector. It will create a vector of the length of the maximum element present in the vector. Syntax:...
[ { "code": null, "e": 26125, "s": 26097, "text": "\n05 Jun, 2020" }, { "code": null, "e": 26425, "s": 26125, "text": "tabulate() function in R Language is used to count the frequency of occurrence of a element in the vector. This function checks for each element in the vector and ...
Naive Bayes Classifiers
02 Feb, 2022 This article discusses the theory behind the Naive Bayes classifiers and their implementation. Naive Bayes classifiers are a collection of classification algorithms based on Bayes’ Theorem. It is not a single algorithm but a family of algorithms where all of them share a common principle, i.e. every pair o...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Feb, 2022" }, { "code": null, "e": 149, "s": 54, "text": "This article discusses the theory behind the Naive Bayes classifiers and their implementation." }, { "code": null, "e": 419, "s": 149, "text": "Naive Baye...
Find the min/max element of an Array using JavaScript
18 May, 2019 The minimum and maximum element in an array can be found using 2 approaches: Method 1: Using Math.min() and Math.max()The min() and max() methods of the Math object are static functions that return the minimum and maximum element passed to it. These functions could be passed an array with the spread(...) o...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 May, 2019" }, { "code": null, "e": 130, "s": 53, "text": "The minimum and maximum element in an array can be found using 2 approaches:" }, { "code": null, "e": 552, "s": 130, "text": "Method 1: Using Math.min() a...
Python | Remove all digits from a list of strings
11 Feb, 2019 Given a list of strings, write a Python program to remove all digits from the list of string. Examples: Input : ['alice1', 'bob2', 'cara3'] Output : ['alice', 'bob', 'cara'] Input : ['4geeks', '3for', '4geeks'] Output : ['geeks', 'for', 'geeks'] Method #1 : Python Regex Python regex pattern can also be...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Feb, 2019" }, { "code": null, "e": 147, "s": 53, "text": "Given a list of strings, write a Python program to remove all digits from the list of string." }, { "code": null, "e": 157, "s": 147, "text": "Examples:" ...
Maximum weighted edge in path between two nodes in an N-ary tree using binary lifting
19 Apr, 2022 Given an N-ary tree with weighted edge and Q queries where each query contains two nodes of the tree. The task is to find the maximum weighted edge in the simple path between these two nodes.Examples: Naive Approach: A simple solution is to traverse the whole tree for each query and find the path between...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Apr, 2022" }, { "code": null, "e": 257, "s": 54, "text": "Given an N-ary tree with weighted edge and Q queries where each query contains two nodes of the tree. The task is to find the maximum weighted edge in the simple path between...
Software Engineering | Differences between defect, bug and failure
21 May, 2019 Generally, when the system/application does not act as per expectation or abnormally, we call it’s an error or it’s an fault and so on. Many of the newbies in Software Testing industry have confusion in using this, so let’s know what is the difference b/w defect, bug, error and failure. We will see these t...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 May, 2019" }, { "code": null, "e": 362, "s": 28, "text": "Generally, when the system/application does not act as per expectation or abnormally, we call it’s an error or it’s an fault and so on. Many of the newbies in Software Testing...
jQuery - Slideshow.js
Slideshow.js is a jQuery plugin for quickly and easily implementing slide show of images or videos into your website. A Simple of slide show example as shown below − <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns = "https://www...
[ { "code": null, "e": 2907, "s": 2789, "text": "Slideshow.js is a jQuery plugin for quickly and easily implementing slide show of images or videos into your website." }, { "code": null, "e": 2955, "s": 2907, "text": "A Simple of slide show example as shown below −" }, { "c...
Exception Handling with Method Overriding in Java
09 Aug, 2021 An Exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run-time, that disrupts the normal flow of the program’s instructions. Exception handling is used to handle runtime errors. It helps to maintain the normal flow of the program. In any object-oriented prog...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Aug, 2021" }, { "code": null, "e": 786, "s": 52, "text": "An Exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run-time, that disrupts the normal flow of the program’s instructions. ...
How to create a bar chart and save in pptx using Python?
06 Jul, 2021 World Wide Web holds large amounts of data available that is consistently growing both in quantity and to a fine form. Python API allows us to collect data/information of interest from the World Wide Web. API is a very useful tool for data scientists, web developers, and even any casual person who wants to...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2021" }, { "code": null, "e": 383, "s": 28, "text": "World Wide Web holds large amounts of data available that is consistently growing both in quantity and to a fine form. Python API allows us to collect data/information of inte...
Convert BST to Min Heap
14 Mar, 2022 Given a binary search tree which is also a complete binary tree. The problem is to convert the given BST into a Min Heap with the condition that all the values in the left subtree of a node should be less than all the values in the right subtree of the node. This condition is applied on all the nodes in th...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Mar, 2022" }, { "code": null, "e": 398, "s": 54, "text": "Given a binary search tree which is also a complete binary tree. The problem is to convert the given BST into a Min Heap with the condition that all the values in the left su...
JavaScript Instanceof Operator
11 Sep, 2020 Below is the example of the Instanceof Operator. Example:<!DOCTYPE html> <html> <body> <center> <h1 style="color:green">GeeksforGeeks</h1> <p id="GFG"></p> <script> var a = ["Geeks", "for", "Geeks"]; document.getElementById("GFG").innerHTML = ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Sep, 2020" }, { "code": null, "e": 77, "s": 28, "text": "Below is the example of the Instanceof Operator." }, { "code": null, "e": 469, "s": 77, "text": "Example:<!DOCTYPE html> <html> <body> <center> ...
C# | Abstract Classes
08 Jun, 2022 Abstraction in C# is the process to hide the internal details and show only the functionality. The abstract modifier indicates the incomplete implementation. The keyword abstract is used before the class or method to declare the class or method as abstract. Also, the abstract modifier can be used with inde...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jun, 2022" }, { "code": null, "e": 392, "s": 54, "text": "Abstraction in C# is the process to hide the internal details and show only the functionality. The abstract modifier indicates the incomplete implementation. The keyword abst...
How to set time timezone and synchronize system clock using timedatectl command
Do you know how to set Time, Timezone from Linux Command Line? If not, then the timedatectl command helps you to set time and Timezone and it comes as a part of systemd system and service manager. This article describes “How to Set Time, Timezone and Synchronize System Clock using timedatectl Command” To display time a...
[ { "code": null, "e": 1490, "s": 1187, "text": "Do you know how to set Time, Timezone from Linux Command Line? If not, then the timedatectl command helps you to set time and Timezone and it comes as a part of systemd system and service manager. This article describes “How to Set Time, Timezone and Sy...
How to Create a Chatbot in Android with BrainShop API?
14 Dec, 2021 We have seen many apps and websites in which we will get to see a chatbot where we can chat along with the chatbot and can easily get solutions for our questions answered from the chatbot. In this article, we will take a look at building a chatbot in Android. Creating a ChatBot App in Android | GeeksforGe...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Dec, 2021" }, { "code": null, "e": 315, "s": 54, "text": "We have seen many apps and websites in which we will get to see a chatbot where we can chat along with the chatbot and can easily get solutions for our questions answered fro...
How to Create a TreeSet with a List in Java?
31 Aug, 2021 TreeSet is an implementation of the SortedSet interface in Java that uses a Tree for storage. TreeSet can be created from List by passing the List to the TreeSet constructor in Java or we can traverse complete List and adding each element of the List to the TreeSet. Example: Input : List = [a, b, c] Outpu...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 Aug, 2021" }, { "code": null, "e": 322, "s": 54, "text": "TreeSet is an implementation of the SortedSet interface in Java that uses a Tree for storage. TreeSet can be created from List by passing the List to the TreeSet constructor ...
JavaScript | Convert an array to JSON
21 May, 2019 Here is a need to convert an array into a JSON_Object. To do so we are going to use a few of the most preferred techniques. First, we need to know a few methods. 1) Object.assign() methodThis method copies the values of all properties owned by enumerables from source objects(one or more) to a target object...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 May, 2019" }, { "code": null, "e": 190, "s": 28, "text": "Here is a need to convert an array into a JSON_Object. To do so we are going to use a few of the most preferred techniques. First, we need to know a few methods." }, { ...
Python PyQt5 – How to change font and size of Status Bar Message
26 Mar, 2020 We can set message to a Status Bar by using showMessage() method. In this article, we will see how to change the font and the size of StatusBar message. In order to do this we will use setFont() method. Syntax : self.statusBar().setFont(QFont(font_name, font_size)) Argument : It take two argument :1. Font ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2020" }, { "code": null, "e": 231, "s": 28, "text": "We can set message to a Status Bar by using showMessage() method. In this article, we will see how to change the font and the size of StatusBar message. In order to do this we...
How to Install i3 Window Manager in Linux?
29 Jan, 2021 In this article, we will see How to install i3 windows manager in Linux. i3 window manager is a tiling window manager for advanced users and developers. It is extremely lightweight and fast. It is a text-oriented and keyboard-oriented window manager. It is an easy and quick way to switch between workspaces...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jan, 2021" }, { "code": null, "e": 337, "s": 28, "text": "In this article, we will see How to install i3 windows manager in Linux. i3 window manager is a tiling window manager for advanced users and developers. It is extremely lightw...
Range and Coefficient of range of Array
18 May, 2022 Given an array arr of integer elements, the task is to find the range and coefficient of range of the given array where: Range: Difference between the maximum value and the minimum value in the distribution. Coefficient of Range: (Max – Min) / (Max + Min).Examples: Input: arr[] = {15, 16, 10, 9, 6, 7, 17...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 May, 2022" }, { "code": null, "e": 321, "s": 53, "text": "Given an array arr of integer elements, the task is to find the range and coefficient of range of the given array where: Range: Difference between the maximum value and the m...
XML - Tree Structure
An XML document is always descriptive. The tree structure is often referred to as XML Tree and plays an important role to describe any XML document easily. The tree structure contains root (parent) elements, child elements and so on. By using tree structure, you can get to know all succeeding branches and sub-branches ...
[ { "code": null, "e": 2251, "s": 2095, "text": "An XML document is always descriptive. The tree structure is often referred to as XML Tree and plays an important role to describe any XML document easily." }, { "code": null, "e": 2582, "s": 2251, "text": "The tree structure contain...
PHP | Variables
21 Jun, 2022 Variables Variables in a program are used to store some values or data that can be used later in a program. The variables are also like containers that store character values, numeric values, memory addresses, and strings. PHP has its own way of declaring and storing variables. There are a few rules, that ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 62, "s": 52, "text": "Variables" }, { "code": null, "e": 457, "s": 62, "text": "Variables in a program are used to store some values or data that can be used later in a program....
How to Create a PHP Docker Container? - GeeksforGeeks
05 Nov, 2020 PHP is one of the widely used programming languages across several organizations mostly used for creating web architectures and back-end applications. Most of the big tech giants still rely on PHP for their back-end applications and are also increasingly adopting developer tools such as Docker. Thus, it be...
[ { "code": null, "e": 24148, "s": 24120, "text": "\n05 Nov, 2020" }, { "code": null, "e": 24841, "s": 24148, "text": "PHP is one of the widely used programming languages across several organizations mostly used for creating web architectures and back-end applications. Most of the ...
Crystal Reports - Creating Variables
A Variable is used to assign different values to an object unlike constant which is fixed. When you assign a value to a variable, it maintains that value till you assign a new value to it. Before using variables, it is necessary to define them in a report. When you declare a variable in Crystal Report you need to assig...
[ { "code": null, "e": 3227, "s": 2970, "text": "A Variable is used to assign different values to an object unlike constant which is fixed. When you assign a value to a variable, it maintains that value till you assign a new value to it. Before using variables, it is necessary to define them in a repo...
How to shift a column in a Pandas DataFrame?
We can use the shift() method in Pandas to shift the columns of a DataFrame without having to rewrite the whole DataFrame. shift() takes the following parameters shift(self, periods=1, freq=None, axis=0, fill_value=None) periods Number of periods to shift. It can take a negative number too. axis It takes a Boolean va...
[ { "code": null, "e": 1224, "s": 1062, "text": "We can use the shift() method in Pandas to shift the columns of a DataFrame without having to rewrite the whole DataFrame. shift() takes the following parameters" }, { "code": null, "e": 1283, "s": 1224, "text": "shift(self, periods=...
R Lang: Zero to Hero. A guide for statistical computing and... | by Vihar Kurama | Towards Data Science
A guide for statistical computing and graphics. R is a computing environment that combines a programming language called S, that implements the idea of programming with data. It has powerful numerical analysis tools for linear algebra, differential equations, and stochastics. R Programming lets you learn about data vis...
[ { "code": null, "e": 219, "s": 171, "text": "A guide for statistical computing and graphics." }, { "code": null, "e": 733, "s": 219, "text": "R is a computing environment that combines a programming language called S, that implements the idea of programming with data. It has powe...
Fetch specific field values in MongoDB
To fetch specific field values, use inoperator.Thein selects the documents where the value of a field equals any value in the specified array. Let us first create a collection with documents − > db.indexesDemo.createIndex({"StudentFirstName":1}); { "createdCollectionAutomatically" : true, "numIndexesBefore" : 1, ...
[ { "code": null, "e": 1205, "s": 1062, "text": "To fetch specific field values, use inoperator.Thein selects the documents where the value of a field equals any value in the specified array." }, { "code": null, "e": 1255, "s": 1205, "text": "Let us first create a collection with d...
Count strings having sum of ASCII values of characters equal to a Prime or Armstrong Number - GeeksforGeeks
05 Jul, 2021 Given an array arr[] of size N containing strings, the task is to count the number of strings having sum of ASCII values of characters equal to an Armstrong Number number or a Prime Number. Examples: Input: arr[] = {“hello”, “nace”}Output:Number of Armstrong Strings are: 1Number of Prime Strings are: 0Expl...
[ { "code": null, "e": 26067, "s": 26039, "text": "\n05 Jul, 2021" }, { "code": null, "e": 26257, "s": 26067, "text": "Given an array arr[] of size N containing strings, the task is to count the number of strings having sum of ASCII values of characters equal to an Armstrong Number...
Python - Difference in keys of two dictionaries
Two python dictionaries may contain some common keys between them. In this article we will find how to get the difference in the keys present in two given dictionaries. Here we take two dictionaries and apply set function to them. Then we subtract the two sets to get the difference. We do it both ways, by subtracting s...
[ { "code": null, "e": 1231, "s": 1062, "text": "Two python dictionaries may contain some common keys between them. In this article we will find how to get the difference in the keys present in two given dictionaries." }, { "code": null, "e": 1523, "s": 1231, "text": "Here we take ...
Establishing JDBC Connection in Java - GeeksforGeeks
22 Apr, 2022 Before establishing a connection between the front end i.e your Java Program and the back end i.e the database we should learn what precisely a JDBC is and why it came to existence. Now let us discuss what exactly JDBC stands for and will ease out with the help of real-life illustration to get it working. ...
[ { "code": null, "e": 24188, "s": 24160, "text": "\n22 Apr, 2022" }, { "code": null, "e": 24497, "s": 24188, "text": "Before establishing a connection between the front end i.e your Java Program and the back end i.e the database we should learn what precisely a JDBC is and why it ...
Building WhatsApp bot on Python - GeeksforGeeks
31 Aug, 2021 A WhatsApp bot is application software that is able to carry on communication with humans in a spoken or written manner. And today we are going to learn how we can create a WhatsApp bot using python. First, let’s see the requirements for building the WhatsApp bot using python language. A Twilio account and...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n31 Aug, 2021" }, { "code": null, "e": 25934, "s": 25647, "text": "A WhatsApp bot is application software that is able to carry on communication with humans in a spoken or written manner. And today we are going to learn how we can...
Print all the cycles in an undirected graph in C++
In this problem, we are given an undirected graph and we have to print all the cycles that are formed in the graph. Undirected Graph is a graph that is connected together. All the edges of the unidirectional graph are bidirectional. It is also known as an undirected network. Cycle in a graph data structure is a graph i...
[ { "code": null, "e": 1178, "s": 1062, "text": "In this problem, we are given an undirected graph and we have to print all the cycles that are formed in the graph." }, { "code": null, "e": 1338, "s": 1178, "text": "Undirected Graph is a graph that is connected together. All the ed...
Java Program for Anagram Substring Search
Following is an example for Anagram Substring Search in Java − Live Demo public class Demo{ static final int max_val = 256; static boolean compare_vals(char my_arr_1[], char my_arr_2[]){ for (int i = 0; i < max_val; i++) if (my_arr_1[i] != my_arr_2[i]) return false; return true; } s...
[ { "code": null, "e": 1125, "s": 1062, "text": "Following is an example for Anagram Substring Search in Java −" }, { "code": null, "e": 1136, "s": 1125, "text": " Live Demo" }, { "code": null, "e": 2319, "s": 1136, "text": "public class Demo{\n static final i...
Apex - Batch Processing
In this chapter, we will understand Batch Processing in Apex. Consider a scenario wherein, we will process large number of records on daily basis, probably the cleaning of data or maybe deleting some unused data. Batch Apex is asynchronous execution of Apex code, specially designed for processing the large number of re...
[ { "code": null, "e": 2265, "s": 2052, "text": "In this chapter, we will understand Batch Processing in Apex. Consider a scenario wherein, we will process large number of records on daily basis, probably the cleaning of data or maybe deleting some unused data." }, { "code": null, "e": 245...
How to use email input type in HTML?
The email input type is used in HTML using the <input type="email">. Using this, allow the users to add an e-mail address. On some browsers, the email entered will be validated i.e. if you miss @ and. (period), while adding e-mail, then it won’t submit the form and will show an error i.e. “Please enter an email address...
[ { "code": null, "e": 1385, "s": 1062, "text": "The email input type is used in HTML using the <input type=\"email\">. Using this, allow the users to add an e-mail address. On some browsers, the email entered will be validated i.e. if you miss @ and. (period), while adding e-mail, then it won’t submi...
Create “Interactive Globe + Earthquake Plot in Python with Plotly | by Ryota Kiuchi | Towards Data Science | Towards Data Science
How Does It Look? Enjoy in here! Through creating this interactive plot, you can get the following ideas.- Deeper insights and more realistic application example to use Plotly- Especially, handle with the spherical plot in which Matplotlib poorly handle with- Get familiar with the global data characterized by latitude ...
[ { "code": null, "e": 190, "s": 172, "text": "How Does It Look?" }, { "code": null, "e": 205, "s": 190, "text": "Enjoy in here!" }, { "code": null, "e": 726, "s": 205, "text": "Through creating this interactive plot, you can get the following ideas.- Deeper ins...
How to print Unicode character in C++?
To print the Unicode characters, the process is very similar to the actual printing process in C++. We can put the Unicode value with the prefix \u. Thus we can successfully print the Unicode character. Note: If the console does not support Unicode, then you cannot get the correct result. Here we have used the Linux sy...
[ { "code": null, "e": 1162, "s": 1062, "text": "To print the Unicode characters, the process is very similar to the actual printing process in C++." }, { "code": null, "e": 1265, "s": 1162, "text": "We can put the Unicode value with the prefix \\u. Thus we can successfully print t...
Kth Smallest Number in Multiplication Table | Practice | GeeksforGeeks
Given three integers M, N and K. Consider a grid of M * N, where mat[i][j] = i * j (1 based index). The task is to return the Kth smallest element in the M * N multiplication table. Example 1: Input: M = 3, N = 3 K = 5 Output: 3 Explanation: The 5th smallest element is 3. Example 2: Input: M = 2, N = 3 K = 6 Ou...
[ { "code": null, "e": 410, "s": 226, "text": "Given three integers M, N and K. Consider a grid of M * N, where mat[i][j] = i * j (1 based index). The task is to return the Kth smallest element in the M * N multiplication table.\n " }, { "code": null, "e": 421, "s": 410, "text": "E...
Extracting webpage information with Python for non-programmers | by Elye | Towards Data Science
Knowing how to extract data from the webpage using a script is helpful. The easiest way to do so that I found is using Python, with the help of lxml library. The nicest part is, you might not need to do it in your machine. You could put your script on the Python online compiler, and you get some data. For something sim...
[ { "code": null, "e": 330, "s": 172, "text": "Knowing how to extract data from the webpage using a script is helpful. The easiest way to do so that I found is using Python, with the help of lxml library." }, { "code": null, "e": 475, "s": 330, "text": "The nicest part is, you migh...
Learning SQL the Hard Way. By writing it | by Rahul Agarwal | Towards Data Science
A Data Scientist who doesn’t know SQL is not worth his salt. And that seems correct to me in every sense of the world. While we feel much more accomplished creating models and coming up with the different hypotheses, the role of data munging can’t be understated. And with the ubiquitousness of SQL when it comes to ETL ...
[ { "code": null, "e": 232, "s": 171, "text": "A Data Scientist who doesn’t know SQL is not worth his salt." }, { "code": null, "e": 435, "s": 232, "text": "And that seems correct to me in every sense of the world. While we feel much more accomplished creating models and coming up ...
UMAP Dimensionality Reduction - An Incredibly Robust Machine Learning Algorithm | by Saul Dobilas | Towards Data Science
Dimensionality reduction is not just for data visualization. It can also help you overcome the “curse of dimensionality” by identifying critical structures in the high-dimensional space and preserving them in the lower-dimensional embedding. This article will take you through the inner workings of an increasingly popul...
[ { "code": null, "e": 414, "s": 172, "text": "Dimensionality reduction is not just for data visualization. It can also help you overcome the “curse of dimensionality” by identifying critical structures in the high-dimensional space and preserving them in the lower-dimensional embedding." }, { ...
DataOps Automation — Creating Azure Data Factory with git integration using Bicep | by Wesley Camargo | Towards Data Science
An important feature available in Azure Data Factory is the git integration, which allows us to keep Azure Data Factory artifacts under Source Control. This is a mandatory step to achieve Continuous Integration and Delivery later on, so why not configure this using Infrastructure as Code with Bicep in a fully automated...
[ { "code": null, "e": 498, "s": 172, "text": "An important feature available in Azure Data Factory is the git integration, which allows us to keep Azure Data Factory artifacts under Source Control. This is a mandatory step to achieve Continuous Integration and Delivery later on, so why not configure ...
A journey to Airflow on Kubernetes | by Marcelo Rabello Rossi | Towards Data Science
My humble opinion on Apache Airflow: basically, if you have more than a couple of automated tasks to schedule, and you are fiddling around with cron tasks that run even when some dependency of them fails, you should give it a try. But if you are not willing to just accept my words, feel free to check these posts.1 2 3 ...
[ { "code": null, "e": 626, "s": 172, "text": "My humble opinion on Apache Airflow: basically, if you have more than a couple of automated tasks to schedule, and you are fiddling around with cron tasks that run even when some dependency of them fails, you should give it a try. But if you are not willi...
Overriding Methods in Python
You can always override your parent class methods. One reason for overriding parent's methods is because you may want special or different functionality in your subclass. Live Demo #!/usr/bin/python class Parent: # define parent class def myMethod(self): print 'Calling parent method' class Child(Parent): # de...
[ { "code": null, "e": 1233, "s": 1062, "text": "You can always override your parent class methods. One reason for overriding parent's methods is because you may want special or different functionality in your subclass." }, { "code": null, "e": 1244, "s": 1233, "text": " Live Demo"...
Possible edges of a tree for given diameter, height and vertices - GeeksforGeeks
14 May, 2021 Find a tree with the given values and print the edges of the tree. Print “-1”, if the tree is not possible. Given three integers n, d and h. n -> Number of vertices. [1, n] d -> Diameter of the tree (largest distance between two vertices). h -> Height of the tree (longest distance between vertex 1 ...
[ { "code": null, "e": 25358, "s": 25330, "text": "\n14 May, 2021" }, { "code": null, "e": 25466, "s": 25358, "text": "Find a tree with the given values and print the edges of the tree. Print “-1”, if the tree is not possible." }, { "code": null, "e": 25500, "s": 25...
Develop, Train and Deploy TensorFlow Models using Google Cloud AI Platform | by MA Raza, Ph.D. | Towards Data Science
The TensorFlow ecosystem has become very popular for developing applications involving deep learning. One of the reasons is that it has a strong community and a lot of tools have been developed around the core library to support developers. In this tutorial, I will guide you through how to prototype models in google co...
[ { "code": null, "e": 682, "s": 172, "text": "The TensorFlow ecosystem has become very popular for developing applications involving deep learning. One of the reasons is that it has a strong community and a lot of tools have been developed around the core library to support developers. In this tutori...
An intuitive real life example of a binomial distribution and how to simulate it in R | by Serdar Korur | Towards Data Science
Learn. It is all about success and failure. What are binomial distributions and why are they so useful? When we repeat a set of events like 10 times coin flipping and each single event in a set has two possible outcomes (head or tails) think about Binomial distributions. Each single event here is known as a Bernoulli T...
[ { "code": null, "e": 215, "s": 171, "text": "Learn. It is all about success and failure." }, { "code": null, "e": 275, "s": 215, "text": "What are binomial distributions and why are they so useful?" }, { "code": null, "e": 497, "s": 275, "text": "When we repea...
String Concatenation in R Programming - GeeksforGeeks
01 Jun, 2020 String concatenation is a way of appending two or more strings into a single string whether it is character by character or using some special character end to end. There are many ways to perform string concatenation. Example: Input: str1 = 'Geeks' str2 = 'for' str3 = 'Geeks' Output: 'GeeksforGeeks' To p...
[ { "code": null, "e": 24027, "s": 23999, "text": "\n01 Jun, 2020" }, { "code": null, "e": 24245, "s": 24027, "text": "String concatenation is a way of appending two or more strings into a single string whether it is character by character or using some special character end to end...
Abstract Classes in Python - GeeksforGeeks
19 Mar, 2021 An abstract class can be considered as a blueprint for other classes. It allows you to create a set of methods that must be created within any child classes built from the abstract class. A class which contains one or more abstract methods is called an abstract class. An abstract method is a method that ha...
[ { "code": null, "e": 41161, "s": 41133, "text": "\n19 Mar, 2021" }, { "code": null, "e": 42577, "s": 41161, "text": "An abstract class can be considered as a blueprint for other classes. It allows you to create a set of methods that must be created within any child classes built ...
ArrayList and LinkedList remove() methods in Java with Examples - GeeksforGeeks
19 Jan, 2022 List interface in Java (which is implemented by ArrayList and LinkedList) provides two versions of remove method. boolean remove(Object obj) : It accepts object to be removed. It returns true if it finds and removes the element. It returns false if the element to be removed is not present. Removes the fir...
[ { "code": null, "e": 26450, "s": 26422, "text": "\n19 Jan, 2022" }, { "code": null, "e": 26742, "s": 26450, "text": "List interface in Java (which is implemented by ArrayList and LinkedList) provides two versions of remove method. boolean remove(Object obj) : It accepts object to...
Program for Arrow Star Pattern - GeeksforGeeks
29 Apr, 2021 Given the value of n, print the pattern.Examples : Input : 5 Output : ***** **** *** ** * ** *** **** ***** Input : 7 Output : ******* ****** ***** **** *** ** * ** *** **** ***** ****** ******* Below is the implementation to print the abo...
[ { "code": null, "e": 25837, "s": 25809, "text": "\n29 Apr, 2021" }, { "code": null, "e": 25890, "s": 25837, "text": "Given the value of n, print the pattern.Examples : " }, { "code": null, "e": 26098, "s": 25890, "text": "Input : 5\nOutput :\n *****\n **...
Fibonacci series program in Java without using recursion.
Following is the required program. Live Demo public class Tester { public static void main(String args[]) { int n1 = 0, n2 = 1, n3, i, max = 5; System.out.print(n1 + " " + n2); for (i = 2; i < max; ++i) { n3 = n1 + n2; System.out.print(" " + n3); n1 = n2; ...
[ { "code": null, "e": 1097, "s": 1062, "text": "Following is the required program." }, { "code": null, "e": 1107, "s": 1097, "text": "Live Demo" }, { "code": null, "e": 1409, "s": 1107, "text": "public class Tester {\n public static void main(String args[]) {...
Python | sympy.Mul() method - GeeksforGeeks
11 Jul, 2019 With the help of sympy.Mul() method, we can multiply two variables and can form a mathematical expression. Syntax : sympy.Mul()Return : Return the product of two variables. Example #1 :In this example we can see that by using sympy.Mul() method, we are able two multiply the two variables and we can also fo...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n11 Jul, 2019" }, { "code": null, "e": 25754, "s": 25647, "text": "With the help of sympy.Mul() method, we can multiply two variables and can form a mathematical expression." }, { "code": null, "e": 25820, "s": 257...
PostgreSQL - Installing PostgreSQL Without Admin Rights on Windows - GeeksforGeeks
21 Jun, 2021 If you are a part of a corporation, it is highly unlikely that you have the admin privileges to install any external software. But the curious souls that all software developers are, in this article, we will see the detailed process of installation of PostgreSQL without having administrator rights on our ...
[ { "code": null, "e": 25479, "s": 25451, "text": "\n21 Jun, 2021" }, { "code": null, "e": 25803, "s": 25479, "text": " If you are a part of a corporation, it is highly unlikely that you have the admin privileges to install any external software. But the curious souls that all soft...
Add Background Image in Python Arcade - GeeksforGeeks
26 Oct, 2021 In this article, we will learn how to add background images to arcade games in Python. We are going to use the below image as our background image. So to add this image as our background image we are going to use load_texture() and draw_texture_rectangle() function. load_texture function is used to import ...
[ { "code": null, "e": 25671, "s": 25643, "text": "\n26 Oct, 2021" }, { "code": null, "e": 25758, "s": 25671, "text": "In this article, we will learn how to add background images to arcade games in Python." }, { "code": null, "e": 25819, "s": 25758, "text": "We ...
NavigableMap Interface in Java with Example
NavigableMap is an extension of the SortedMap collection framework. It is used to arrange the elements in a uniform fashion. NavigableMap has different methods to iterate over the elements in the Map. Following is an example − Live Demo import java.util.NavigableMap; import java.util.TreeMap; public class Demo { pu...
[ { "code": null, "e": 1263, "s": 1062, "text": "NavigableMap is an extension of the SortedMap collection framework. It is used to arrange the elements in a uniform fashion. NavigableMap has different methods to iterate over the elements in the Map." }, { "code": null, "e": 1289, "s": ...
Train a GPT-2 Transformer to write Harry Potter Books! | by Priya Dwivedi | Towards Data Science
Natural Language Processing is a field widely growing in popularity these days. A large number of companies worldwide are leveraging the power of Natural language processing and the innovations in the field to extract meaningful insights from text and to generate text. In the past couple of years, with Google Brain’s A...
[ { "code": null, "e": 940, "s": 171, "text": "Natural Language Processing is a field widely growing in popularity these days. A large number of companies worldwide are leveraging the power of Natural language processing and the innovations in the field to extract meaningful insights from text and to ...