title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Degree of a Cycle Graph - GeeksforGeeks
16 Jun, 2021 Given the number of vertices in a Cycle Graph. The task is to find the Degree and the number of Edges of the cycle graph. Degree: Degree of any vertex is defined as the number of edge Incident on it. Cycle Graph: In graph theory, a graph that consists of single cycle is called a cycle graph or circular gra...
[ { "code": null, "e": 24631, "s": 24603, "text": "\n16 Jun, 2021" }, { "code": null, "e": 24753, "s": 24631, "text": "Given the number of vertices in a Cycle Graph. The task is to find the Degree and the number of Edges of the cycle graph." }, { "code": null, "e": 2483...
How to change backends in Matplotlib?
We can override the backend value using atplotlib.rcParams['backend'] variable. Using get_backend() method, return the name of the current backend, i.e., default name. Using get_backend() method, return the name of the current backend, i.e., default name. Now override the backend name. Now override the backend name. Us...
[ { "code": null, "e": 1142, "s": 1062, "text": "We can override the backend value using atplotlib.rcParams['backend'] variable." }, { "code": null, "e": 1230, "s": 1142, "text": "Using get_backend() method, return the name of the current backend, i.e., default name." }, { ...
Period comparisons in Power BI. Comparison over different time periods... | by Nikola Ilic | Towards Data Science
Just recently, I’ve come across a question on the LinkedIn platform, if it’s possible to create the following visualization in Power BI: Since one of the common business requests is to perform different comparisons between various time periods, I would say that Power BI has a lot to offer in this regard. I’ve already e...
[ { "code": null, "e": 309, "s": 172, "text": "Just recently, I’ve come across a question on the LinkedIn platform, if it’s possible to create the following visualization in Power BI:" }, { "code": null, "e": 647, "s": 309, "text": "Since one of the common business requests is to p...
Tryit Editor v3.7
RWD Media Queries Tryit: Typical media query breakpoints
[ { "code": null, "e": 27, "s": 9, "text": "RWD Media Queries" } ]
Plotting and Data Representation using Python. A guided walk through using a Coursera question | by Emmanuel Sibanda | Towards Data Science
This post is based off an assignment from a Coursera course, 'Applied Plotting, Charting & Data Representation in Python'. This is part 2 of the University of Michigan's Applied Data Science with Python Specialization. This is meant to run you through one of my solutions to one of the assignments explained in a way tha...
[ { "code": null, "e": 852, "s": 172, "text": "This post is based off an assignment from a Coursera course, 'Applied Plotting, Charting & Data Representation in Python'. This is part 2 of the University of Michigan's Applied Data Science with Python Specialization. This is meant to run you through one...
Groovy - Logical Operators
Logical operators are used to evaluate Boolean expressions. Following are the logical operators available in Groovy − The following code snippet shows how the various operators can be used. class Example { static void main(String[] args) { boolean x = true; boolean y = false; boolean z = true; ...
[ { "code": null, "e": 2356, "s": 2238, "text": "Logical operators are used to evaluate Boolean expressions. Following are the logical operators available in Groovy −" }, { "code": null, "e": 2428, "s": 2356, "text": "The following code snippet shows how the various operators can b...
Spam or Ham: Introduction to Natural Language Processing Part 2 | by Mandy Gu | Towards Data Science
This is the second part of my series covering the basics of natural language processing. If you haven’t read the first part yet, you can find it here. In this part, we will go through an end to end walk through of building a very simple text classifier in Python 3. We will be using the SMS Spam Collection Dataset which...
[ { "code": null, "e": 323, "s": 172, "text": "This is the second part of my series covering the basics of natural language processing. If you haven’t read the first part yet, you can find it here." }, { "code": null, "e": 572, "s": 323, "text": "In this part, we will go through an...
Check if a HashSet contains the specified element in C#
To check if a HashSet contains the specified element, the code is as follows − Live Demo using System; using System.Collections.Generic; public class Demo { public static void Main(){ HashSet<int> set1 = new HashSet<int>(); set1.Add(25); set1.Add(50); set1.Add(75); set1.Add(100); ...
[ { "code": null, "e": 1141, "s": 1062, "text": "To check if a HashSet contains the specified element, the code is as follows −" }, { "code": null, "e": 1152, "s": 1141, "text": " Live Demo" }, { "code": null, "e": 2074, "s": 1152, "text": "using System;\nusing ...
How to add legend to imshow() in Matplotlib?
To add legend to imshow() in Matplotlib, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Create random data using numpy. Initialize a color map. Get the unique data points from sample data, step 2. Plot each color with different labels and color, to place on...
[ { "code": null, "e": 1137, "s": 1062, "text": "To add legend to imshow() in Matplotlib, we can take the following steps −" }, { "code": null, "e": 1213, "s": 1137, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": null, ...
Interactive Exploratory Data Analysis that Generates Python | by Roman Orac | Towards Data Science
Exploratory Data Analysis (EDA) is one of the first steps in the Data Science process — usually, it follows the data extraction. EDA helps us to get familiar with the data before we proceed with modeling or decide to repeat the extraction step. EDA helps Data Scientists to: get familiar with the data find bugs in the d...
[ { "code": null, "e": 417, "s": 172, "text": "Exploratory Data Analysis (EDA) is one of the first steps in the Data Science process — usually, it follows the data extraction. EDA helps us to get familiar with the data before we proceed with modeling or decide to repeat the extraction step." }, { ...
Swift - Classes
Classes in Swift 4 are building blocks of flexible constructs. Similar to constants, variables and functions the user can define class properties and methods. Swift 4 provides us the functionality that while declaring classes the users need not create interfaces or implementation files. Swift 4 allows us to create clas...
[ { "code": null, "e": 2683, "s": 2253, "text": "Classes in Swift 4 are building blocks of flexible constructs. Similar to constants, variables and functions the user can define class properties and methods. Swift 4 provides us the functionality that while declaring classes the users need not create i...
How to implement Android TextInputLayout
Before getting into example, we should know what is TextInputLayout in android. TextInputLayout is extended by Linear Layout. It going to act as a wrapper for edit text and shows flatting hint animation for edit text. This example demonstrate about how to implement Android TextInputLayout. Step 1 − Create a new project...
[ { "code": null, "e": 1280, "s": 1062, "text": "Before getting into example, we should know what is TextInputLayout in android. TextInputLayout is extended by Linear Layout. It going to act as a wrapper for edit text and shows flatting hint animation for edit text." }, { "code": null, "e"...
Ethical Issues in Information Technology (IT) - GeeksforGeeks
27 Jan, 2020 Information Technology specifies to the components that are used to store, fetch and manipulate the information at the minimum level with the server having an operating system. Information Technology have a wide area of applications in education, business, health, industries, banking sector and scientific ...
[ { "code": null, "e": 24677, "s": 24649, "text": "\n27 Jan, 2020" }, { "code": null, "e": 25261, "s": 24677, "text": "Information Technology specifies to the components that are used to store, fetch and manipulate the information at the minimum level with the server having an oper...
Can we use "this" keyword in a static method in java?
The static methods belong to the class and they will be loaded into the memory along with the class. You can invoke them without creating an object. (using the class name as reference). public class Sample{ static int num = 50; public static void demo(){ System.out.println("Contents of the static method"); ...
[ { "code": null, "e": 1248, "s": 1062, "text": "The static methods belong to the class and they will be loaded into the memory along with the class. You can invoke them without creating an object. (using the class name as reference)." }, { "code": null, "e": 1458, "s": 1248, "text...
Face Detection in 10 lines for Beginners | by That Data Bloke | Towards Data Science
I was recently exploring the Haar Cascade object detection module of the OpenCV for a personal side project. Although there are a lot of technical materials on the internet in this area, my focus on this article is to explain the concepts in easy layman’s terms. I hope this will help the beginners in understanding Pyth...
[ { "code": null, "e": 532, "s": 172, "text": "I was recently exploring the Haar Cascade object detection module of the OpenCV for a personal side project. Although there are a lot of technical materials on the internet in this area, my focus on this article is to explain the concepts in easy layman’s...
C++ Program to Solve Knapsack Problem Using Dynamic Programming
This is a C++ program to solve 0-1 knapsack problem using dynamic programming. In 0-1 knapsack problem, a set of items are given, each with a weight and a value. We need to determine the number of each item to include in a collection so that the total weight is less than or equal to the given limit and the total value ...
[ { "code": null, "e": 1404, "s": 1062, "text": "This is a C++ program to solve 0-1 knapsack problem using dynamic programming. In 0-1 knapsack problem, a set of items are given, each with a weight and a value. We need to determine the number of each item to include in a collection so that the total w...
Aggregate Functions in DBMS
Aggregate functions in DBMS take multiple rows from the table and return a value according to the query. All the aggregate functions are used in Select statement. Syntax − SELECT <FUNCTION NAME> (<PARAMETER>) FROM <TABLE NAME> This function returns the average value of the numeric column that is supplied as a paramete...
[ { "code": null, "e": 1167, "s": 1062, "text": "Aggregate functions in DBMS take multiple rows from the table and return a value according to the query." }, { "code": null, "e": 1225, "s": 1167, "text": "All the aggregate functions are used in Select statement." }, { "code...
Convert an int to ASCII character in C/C++
In C or C++ the character values are stored as ASCII values. To convert int to ASCII we can add the ASCII of character ‘0’ with the integer. Let us see an example to convert int to ASCII values. #include<stdio.h> int intToAscii(int number) { return '0' + number; } main() { printf("The ASCII of 5 is %d\n", intToAs...
[ { "code": null, "e": 1257, "s": 1062, "text": "In C or C++ the character values are stored as ASCII values. To convert int to ASCII we can add the ASCII of character ‘0’ with the integer. Let us see an example to convert int to ASCII values." }, { "code": null, "e": 1445, "s": 1257, ...
Getting Started with SNAP Toolbox in Python | by Aditya Sharma | Towards Data Science
Developed by the European Space Agency (ESA), SNAP is a common software platform that supports the Sentinel missions. It consists of several modules that can be modified and re-used for image processing, modelling and visualization of data from earth observation satellites. SNAP can be utilized not only as a research s...
[ { "code": null, "e": 850, "s": 172, "text": "Developed by the European Space Agency (ESA), SNAP is a common software platform that supports the Sentinel missions. It consists of several modules that can be modified and re-used for image processing, modelling and visualization of data from earth obse...
How to Join Spatial Data with PostgreSQL/PostGIS | by Abdishakur | Towards Data Science
Joining data is a common task in the data science world. While the regular SQL table join is a great feature, I am most impressed by the real power of spatial joins. With Spatial Join, you can correlate information from different tables based on their geometry relations. In this tutorial, we will see examples of spatia...
[ { "code": null, "e": 338, "s": 172, "text": "Joining data is a common task in the data science world. While the regular SQL table join is a great feature, I am most impressed by the real power of spatial joins." }, { "code": null, "e": 553, "s": 338, "text": "With Spatial Join, y...
SAS - DO Index Loop
This DO Index loop uses a index variable for its start and end value. The SAS statements are repeatedly executed until the final value of the index variable is reached. DO indexvariable = initialvalue to finalvalue ; . . . SAS statements . . . ; END; DATA MYDATA1; SUM = 0; DO VAR = 1 to 5; SUM = SUM+VAR; END; PROC...
[ { "code": null, "e": 2752, "s": 2583, "text": "This DO Index loop uses a index variable for its start and end value. The SAS statements are repeatedly executed until the final value of the index variable is reached." }, { "code": null, "e": 2835, "s": 2752, "text": "DO indexvaria...
News classification: fine-tuning RoBERTa on TPUs with TensorFlow | by Gabriele Sgroi | Towards Data Science
Fine-tuning large pre-trained models on downstream tasks is a common practice in Natural Language Processing. In this tutorial, we will use a pre-trained RoBERTa model for a multiclass classification task. RoBERTa: A Robustly Optimized BERT Pretraining Approach, developed by Facebook AI, improves on the popular BERT mo...
[ { "code": null, "e": 377, "s": 171, "text": "Fine-tuning large pre-trained models on downstream tasks is a common practice in Natural Language Processing. In this tutorial, we will use a pre-trained RoBERTa model for a multiclass classification task." }, { "code": null, "e": 625, "s"...
Python | Find yesterday's, today's and tomorrow's date - GeeksforGeeks
17 Dec, 2019 Prerequisites: datetime module We can handle Data objects by importing the module datetime and timedelta to work with dates. datetime module helps to find the present day by using the now() or today() method. timedelta class from datetime module helps to find the previous day date and next day date. Syntax...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n17 Dec, 2019" }, { "code": null, "e": 24243, "s": 24212, "text": "Prerequisites: datetime module" }, { "code": null, "e": 24337, "s": 24243, "text": "We can handle Data objects by importing the module datetime...
Array class in C++
Array class in C++ are efficient enough and also it knows its own size. size() = To return the size of array i.e. returns the no of elements of the array. max_size() = To return maximum number of elements of the array. get(), at(), operator[] = To get access of the array elements. front() = To return front element of t...
[ { "code": null, "e": 1134, "s": 1062, "text": "Array class in C++ are efficient enough and also it knows its own size." }, { "code": null, "e": 1217, "s": 1134, "text": "size() = To return the size of array i.e. returns the no of elements of the array." }, { "code": null,...
What is String Title case in C#?
The ToTitleCase method is used to capitalize the first letter in a word. Title case itself means to capitalize the first letter of each major word. Let us see an example to get the title case − Live Demo using System; using System.Globalization; class Demo { static void Main() { string str = "jack sparrow"; ...
[ { "code": null, "e": 1210, "s": 1062, "text": "The ToTitleCase method is used to capitalize the first letter in a word. Title case itself means to capitalize the first letter of each major word." }, { "code": null, "e": 1256, "s": 1210, "text": "Let us see an example to get the t...
A C/C++ Function Call Puzzle - GeeksforGeeks
06 Jul, 2021 Consider the following program. Predict the output of it when compiled with C and C++ compilers. C void func(){ /* definition */} int main(){ func(); func(2);} The above program compiles fine in C, but doesn’t compile in C++. In C++, func() is equivalent to func(void) In C, func() is equivalent to...
[ { "code": null, "e": 24534, "s": 24506, "text": "\n06 Jul, 2021" }, { "code": null, "e": 24631, "s": 24534, "text": "Consider the following program. Predict the output of it when compiled with C and C++ compilers." }, { "code": null, "e": 24633, "s": 24631, "t...
C# | Check whether an element is contained in the ArrayList
20 Jun, 2022 ArrayList represents an ordered collection of an object that can be indexed individually. It is basically an alternative to an array. It also allows dynamic memory allocation, adding, searching and sorting items in the list. ArrayList.Contains(Object) method determines whether the element exists in ArrayLi...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jun, 2022" }, { "code": null, "e": 378, "s": 28, "text": "ArrayList represents an ordered collection of an object that can be indexed individually. It is basically an alternative to an array. It also allows dynamic memory allocation,...
GATE | GATE CS 2013 | Question 65
10 Sep, 2021 What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon- and unit-production (i.e., of type A -> є and A -> a) to parse a string with n tokens?(A) n/2(B) n-1(C) 2n-1(D) 2nAnswer: (B)Explanation: Given in the question, a grammar with no epsilon- and u...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Sep, 2021" }, { "code": null, "e": 409, "s": 52, "text": "What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon- and unit-production (i.e., of type A -> є and A -> a) to par...
Check if binary string multiple of 3 using DFA
15 Jun, 2022 Given a string of binary characters, check if it is multiple of 3 or not.Examples : Input : 1 0 1 0 Output : NO Explanation : (1 0 1 0) is 10 and hence not a multiple of 3 Input : 1 1 0 0 Output : YES Explanation : (1 1 0 0) is 12 and hence a multiple of 3 Approach 1 : One simple method is to convert ...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 137, "s": 52, "text": "Given a string of binary characters, check if it is multiple of 3 or not.Examples : " }, { "code": null, "e": 314, "s": 137, "text": "Input : 1 0 1 0\nOu...
How to Integrate Emojis in an Android App?
08 Sep, 2020 Emojis certainly make the app more interesting and fun to interact with. In this article, let’s learn how to add Emojis in our own Android App by creating a simple application that looks like a messaging app. Why do we need Emojis? It makes the app look more user-friendly and fun. If the app features used ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2020" }, { "code": null, "e": 237, "s": 28, "text": "Emojis certainly make the app more interesting and fun to interact with. In this article, let’s learn how to add Emojis in our own Android App by creating a simple application...
How to provide name to the TextBox in C#?
29 Nov, 2019 In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In TextBox, you are allowed to assign a name to the TextBox control with the help of Name property of the TextBox. The default value of t...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2019" }, { "code": null, "e": 434, "s": 28, "text": "In Windows forms, TextBox plays an important role. With the help of TextBox, the user can enter data in the application, it can be of a single line or of multiple lines. In Te...
Find the arrangement of queue at given time
27 May, 2022 n people are standing in a queue to buy entry ticket for the carnival. People present there strongly believe in chivalry. Therefore, at time = t, if a man at position x, finds a woman standing behind him then he exchanges his position with her and therefore, at time = t+1, woman is standing at position x w...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 May, 2022" }, { "code": null, "e": 704, "s": 53, "text": "n people are standing in a queue to buy entry ticket for the carnival. People present there strongly believe in chivalry. Therefore, at time = t, if a man at position x, find...
C++ Program To Merge K Sorted Linked Lists Using Min Heap - Set 2 - GeeksforGeeks
10 Jan, 2022 Given k linked lists each of size n and each list is sorted in non-decreasing order, merge them into a single sorted (non-decreasing order) linked list and print the sorted linked list as output.Examples: Input: k = 3, n = 4 list1 = 1->3->5->7->NULL list2 = 2->4->6->8->NULL list3 = 0->9->10->11->NULL Ou...
[ { "code": null, "e": 25851, "s": 25823, "text": "\n10 Jan, 2022" }, { "code": null, "e": 26057, "s": 25851, "text": "Given k linked lists each of size n and each list is sorted in non-decreasing order, merge them into a single sorted (non-decreasing order) linked list and print t...
Program to print a rectangle pattern - GeeksforGeeks
04 Oct, 2018 Given height h and width w, print a rectangular pattern as shown in example below. Examples: Input : h = 4, w = 5 Output : @@@@@ @ @ @ @ @@@@@ Input : h = 7, w = 9 Output : @@@@@@@@ @ @ @ @ @ @ @ @ @ @ ...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n04 Oct, 2018" }, { "code": null, "e": 25730, "s": 25647, "text": "Given height h and width w, print a rectangular pattern as shown in example below." }, { "code": null, "e": 25740, "s": 25730, "text": "Example...
Troubleshooting Questions on OS and Networking asked in Cloud based Interview - GeeksforGeeks
15 Feb, 2021 This article has a Top 5 Troubleshooting questions on Operating System and Networking that will help you clear any Cloud-based Interview like AMAZON CLOUD SUPPORT ASSOCIATE AND AMAZON DevOps. Firstly, what is troubleshooting? Troubleshooting is basically an art, the art of taking a problem into considerati...
[ { "code": null, "e": 26580, "s": 26552, "text": "\n15 Feb, 2021" }, { "code": null, "e": 26772, "s": 26580, "text": "This article has a Top 5 Troubleshooting questions on Operating System and Networking that will help you clear any Cloud-based Interview like AMAZON CLOUD SUPPORT ...
How to pass variables and data from PHP to JavaScript ? - GeeksforGeeks
01 Aug, 2021 In this article, let’s see how to pass data and variables from PHP to JavaScript. We can pass data from PHP to JavaScript in two ways depending on the situation. First, we can pass the data using the simple assignment operator if we want to perform the operation on the same page. Else we can pass data from...
[ { "code": null, "e": 26702, "s": 26674, "text": "\n01 Aug, 2021" }, { "code": null, "e": 26784, "s": 26702, "text": "In this article, let’s see how to pass data and variables from PHP to JavaScript." }, { "code": null, "e": 27071, "s": 26784, "text": "We can p...
Minimize moves to make Array elements equal by incrementing and decrementing pairs - GeeksforGeeks
05 Aug, 2021 Given an array arr[] of size N, the task is to print the minimum number of moves needed to make all array elements equal by selecting any two distinct indices and then increment the element at the first selected index and decrement the element at the other selected index by 1 in each move. If it is impossi...
[ { "code": null, "e": 26177, "s": 26149, "text": "\n05 Aug, 2021" }, { "code": null, "e": 26542, "s": 26177, "text": "Given an array arr[] of size N, the task is to print the minimum number of moves needed to make all array elements equal by selecting any two distinct indices and ...
Guide to Conda for TensorFlow and PyTorch | by Eric Hofesmann | Towards Data Science
It’s a real shame that the first experience that most people have with deep learning is having to spend days trying to figure out why the model they downloaded off of GitHub just... won’t... run.... Dependency issues are incredibly common when trying to run an off-the-shelf model. The most problematic of which is needi...
[ { "code": null, "e": 371, "s": 172, "text": "It’s a real shame that the first experience that most people have with deep learning is having to spend days trying to figure out why the model they downloaded off of GitHub just... won’t... run...." }, { "code": null, "e": 920, "s": 371, ...
Difference between Iterators and Pointers in C/C++ with Examples - GeeksforGeeks
04 Aug, 2021 Pointer: A pointer is a variable which contains the address of another variable, i.e., address of the memory location of the variable. Like any variable or constant, we must declare a pointer before using it to store any variable address.Syntax: type* var_name; Example: C // The output of this program c...
[ { "code": null, "e": 25773, "s": 25745, "text": "\n04 Aug, 2021" }, { "code": null, "e": 26021, "s": 25773, "text": "Pointer: A pointer is a variable which contains the address of another variable, i.e., address of the memory location of the variable. Like any variable or constan...
How to count set bits in a floating point number in C?
21 Jun, 2022 Given a floating point number, write a function to count set bits in its binary representation. For example, floating point representation of 0.15625 has 6 set bits (See this). A typical C compiler uses single precision floating point format. We can use the idea discussed here. The idea is to take address ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 620, "s": 52, "text": "Given a floating point number, write a function to count set bits in its binary representation. For example, floating point representation of 0.15625 has 6 set bits (See this...
Android GPS, Location Manager tutorial
This example demonstrates how to access Android GPS, Location Manager 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 xml...
[ { "code": null, "e": 1257, "s": 1187, "text": "This example demonstrates how to access Android GPS, Location Manager" }, { "code": null, "e": 1386, "s": 1257, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to creat...
How to show current location on a Google Map on Android using Kotlin?
This example demonstrates how to show current location on a Google Map on Android using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <fragment xmlns:android="http:...
[ { "code": null, "e": 1283, "s": 1187, "text": "This example demonstrates how to show current location on a Google Map on Android using Kotlin." }, { "code": null, "e": 1412, "s": 1283, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all...
Understanding file sizes | Bytes, KB, MB, GB, TB, PB, EB, ZB, YB
15 Apr, 2021 Introduction Memory of a Computer is any physical device that is capable of storing information whether it is large or small and stores it temporarily or permanently. For example, Random Access Memory (RAM), is a type of volatile memory that stores information for a short interval of time, on an integrated...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Apr, 2021" }, { "code": null, "e": 65, "s": 52, "text": "Introduction" }, { "code": null, "e": 399, "s": 65, "text": "Memory of a Computer is any physical device that is capable of storing information whether it ...
Check if count of Alphabets and count of Numbers are equal in the given String
20 May, 2021 Given the alphanumeric string str, the task is to check if the count of Alphabets and count of Numbers are equal or not. Examples: Input: str = “GeeKs01234” Output: Yes Explanation: The count of alphabets and numbers are equal to 5. Input: str = “Gfg01234” Output: No Explanation: The count of the alpha...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 May, 2021" }, { "code": null, "e": 175, "s": 53, "text": "Given the alphanumeric string str, the task is to check if the count of Alphabets and count of Numbers are equal or not. " }, { "code": null, "e": 187, "s": 1...
How to validate an IP address using Regular Expressions in Java
10 Jun, 2021 Given an IP address, the task is to validate this IP address with the help of Regular Expressions.The IP address is a string in the form “A.B.C.D”, where the value of A, B, C, and D may range from 0 to 255. Leading zeros are allowed. The length of A, B, C, or D can’t be greater than 3.Examples: Input: st...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Jun, 2021" }, { "code": null, "e": 350, "s": 52, "text": "Given an IP address, the task is to validate this IP address with the help of Regular Expressions.The IP address is a string in the form “A.B.C.D”, where the value of A, B, C...
Python pytz
13 Jan, 2021 Pytz brings the Olson tz database into Python and thus supports almost all time zones. This module serves the date-time conversion functionalities and helps user serving international client’s base. It enables time-zone calculations in our Python applications and also allows us to create timezone aware dat...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2021" }, { "code": null, "e": 353, "s": 28, "text": "Pytz brings the Olson tz database into Python and thus supports almost all time zones. This module serves the date-time conversion functionalities and helps user serving inter...
Python Data Type - GeeksforGeeks
26 Oct, 2020 A hash function takes a message of arbitrary length and generates a fixed length code.A hash function takes a message of fixed length and generates a code of variable length.A hash function may give the same hash value for distinct messages. A hash function takes a message of arbitrary length and generates...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n26 Oct, 2020" }, { "code": null, "e": 29819, "s": 29577, "text": "A hash function takes a message of arbitrary length and generates a fixed length code.A hash function takes a message of fixed length and generates a code of varia...
How to transform a JavaScript iterator into an array?
11 Aug, 2021 The task is to convert an iterator into an array This can be performed by iterating each value of the iterator and storing the value into another array Method: To make an iterator for an array: const it = array[Symbol.iterator](); So first we make an iterator for the “array” named “it”. After creating ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Aug, 2021" }, { "code": null, "e": 77, "s": 28, "text": "The task is to convert an iterator into an array" }, { "code": null, "e": 181, "s": 77, "text": "This can be performed by iterating each value of the iterat...
How to check if a C# list is empty?
Use the Any method to find whether the list is empty or not. Set the list − var subjects = new List<string>(); subjects.Add("Maths"); subjects.Add("Java"); subjects.Add("English"); subjects.Add("Science"); subjects.Add("Physics"); subjects.Add("Chemistry"); Now set the following condition to check whether the list is e...
[ { "code": null, "e": 1248, "s": 1187, "text": "Use the Any method to find whether the list is empty or not." }, { "code": null, "e": 1263, "s": 1248, "text": "Set the list −" }, { "code": null, "e": 1445, "s": 1263, "text": "var subjects = new List<string>();\...
Which characters are valid in CSS class names/selectors?
26 Sep, 2021 It is very easy to choose a valid class name or selectors in CSS just follow the rule. A valid name should start with an underscore (_), a hyphen (-) or a letter (a-z)/(A-Z) which is followed by any numbers, hyphens, underscores, letters. It cannot start with a digit, starting with the digit is acceptabl...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Sep, 2021" }, { "code": null, "e": 117, "s": 28, "text": "It is very easy to choose a valid class name or selectors in CSS just follow the rule. " }, { "code": null, "e": 269, "s": 117, "text": "A valid name shou...
How To Use Jupyter Notebook – An Ultimate Guide
28 Mar, 2022 The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and mu...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Mar, 2022" }, { "code": null, "e": 566, "s": 52, "text": "The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Us...
Programs for printing pyramid patterns in Java
30 Jun, 2022 This article is aimed at giving a Java implementation for pattern printing. Simple pyramid pattern Java import java.io.*; // Java code to demonstrate star patternspublic class GeeksForGeeks{ // Function to demonstrate printing pattern public static void printStars(int n) { int i, j; ...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 129, "s": 52, "text": "This article is aimed at giving a Java implementation for pattern printing. " }, { "code": null, "e": 152, "s": 129, "text": "Simple pyramid pattern" },...
Python | os.getlogin() method
20 May, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.getlogin() method in Python is used to get the name of the user logged in on the cont...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 May, 2019" }, { "code": null, "e": 247, "s": 28, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin...
CSS | conic-gradient() Function
22 Jun, 2020 The conic-gradient() function is an inbuilt function in CSS which is used to set a conic gradient as the background image. The conic gradient angle starts from 0 degrees – 360 degrees. Conic are circular and use the center of the element as the source point for color stop. Conic Gradients include pie chart...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Jun, 2020" }, { "code": null, "e": 490, "s": 54, "text": "The conic-gradient() function is an inbuilt function in CSS which is used to set a conic gradient as the background image. The conic gradient angle starts from 0 degrees – 36...
Python program to multiply all the items in a dictionary
26 Nov, 2020 Python program to illustrate multiply all the items in a dictionary could be done by creating a dictionary which will store all the key-value pairs, multiplying the value of all the keys and storing it in a variable. Example: Input: dict = {‘value1’:5, ‘value2’:4, ‘value3’:3, ‘value4’:2, ‘value5’:1}Output:...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Nov, 2020" }, { "code": null, "e": 245, "s": 28, "text": "Python program to illustrate multiply all the items in a dictionary could be done by creating a dictionary which will store all the key-value pairs, multiplying the value of a...
Python - Tkinter pack() Method
This geometry manager organizes widgets in blocks before placing them in the parent widget. widget.pack( pack_options ) Here is the list of possible options − expand − When set to true, widget expands to fill any space not otherwise used in widget's parent. expand − When set to true, widget expands to fill any space ...
[ { "code": null, "e": 2470, "s": 2378, "text": "This geometry manager organizes widgets in blocks before placing them in the parent widget." }, { "code": null, "e": 2499, "s": 2470, "text": "widget.pack( pack_options )\n" }, { "code": null, "e": 2539, "s": 2499, ...
Output of C Program | Set 23
08 May, 2020 Predict the output of following C Program. #include <stdio.h>#define R 4#define C 4 void modifyMatrix(int mat[][C]){ mat++; mat[1][1] = 100; mat++; mat[1][1] = 200;} void printMatrix(int mat[][C]){ int i, j; for (i = 0; i < R; i++) { for (j = 0; j < C; j++) printf("%3d ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 May, 2020" }, { "code": null, "e": 97, "s": 54, "text": "Predict the output of following C Program." }, { "code": "#include <stdio.h>#define R 4#define C 4 void modifyMatrix(int mat[][C]){ mat++; mat[1][1] = 100; mat+...
Populating Matplotlib subplots through a loop and a function
To populate matplotlib subplots through a loop and a function, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Create a figure and a set of subplots with number of rows = 3 and numbe...
[ { "code": null, "e": 1284, "s": 1187, "text": "To populate matplotlib subplots through a loop and a function, we can take the following steps −" }, { "code": null, "e": 1360, "s": 1284, "text": "Set the figure size and adjust the padding between and around the subplots." }, {...
MTX Interview Experience for Trainee Consultant | On-Campus 2021
05 Mar, 2021 Round 1 Online Test (Hackerearth platform): Programming questions: 3(Data structures and algorithms) Multiple Choice Questions: 67(Aptitude, programming, HTML, CSS, JavaScript, OOPs, Java, SQL) Test duration: 2 hrs Round 2 (Technical Interview Round 1): This round started with a project discussion. The int...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Mar, 2021" }, { "code": null, "e": 98, "s": 54, "text": "Round 1 Online Test (Hackerearth platform):" }, { "code": null, "e": 155, "s": 98, "text": "Programming questions: 3(Data structures and algorithms)" }, ...
click method – Action Chains in Selenium Python
11 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and drop. Acti...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 May, 2020" }, { "code": null, "e": 595, "s": 28, "text": "Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button act...
gunzip command in Linux with examples
30 Sep, 2019 gunzip command is used to compress or expand a file or a list of files in Linux. It accepts all the files having extension as .gz, .z, _z, -gz, -z , .Z, .taz or.tgz and replace the compressed file with the original file by default. The files after uncompression retain its actual extension. Syntax: gunzip [...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Sep, 2019" }, { "code": null, "e": 343, "s": 52, "text": "gunzip command is used to compress or expand a file or a list of files in Linux. It accepts all the files having extension as .gz, .z, _z, -gz, -z , .Z, .taz or.tgz and repla...
Matplotlib.pyplot.fill_between() in Python
19 Apr, 2020 Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. The matplotlib.pyplot.fill_between() is used to fill area between two horizontal curves. Two po...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Apr, 2020" }, { "code": null, "e": 266, "s": 54, "text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed ...
Unique element in an array where all elements occur k times except one
21 Jun, 2022 Given an array that contains all elements occurring k times, but one occurs only once. Find that unique element.Examples: Input : arr[] = {6, 2, 5, 2, 2, 6, 6} k = 3Output : 5Explanation: Every element appears 3 times accept 5. Input : arr[] = {2, 2, 2, 10, 2} k = 4Output: 10Explan...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2022" }, { "code": null, "e": 177, "s": 54, "text": "Given an array that contains all elements occurring k times, but one occurs only once. Find that unique element.Examples: " }, { "code": null, "e": 295, "s": ...
JSON with Python - GeeksforGeeks
19 Nov, 2021 JSON (JavaScript Object Notation) is a file that is mainly used to store and transfer data mostly between a server and a web application. It is popularly used for representing structured data. In this article, we will discuss how to handle JSON data using Python. Python provides a module called json which...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n19 Nov, 2021" }, { "code": null, "e": 24567, "s": 24212, "text": "JSON (JavaScript Object Notation) is a file that is mainly used to store and transfer data mostly between a server and a web application. It is popularly used for...
BigIntegerMath factorial() function | Guava | Java - GeeksforGeeks
26 Jul, 2021 The method factorial(int n) of Guava’s BigIntegerMath class is used to find the factorial of the given number. It returns n!, that is, the product of the first n positive integers.Syntax: public static BigInteger factorial(int n) Parameters: This method takes the number n as parameter whose factorial is ...
[ { "code": null, "e": 24213, "s": 24185, "text": "\n26 Jul, 2021" }, { "code": null, "e": 24403, "s": 24213, "text": "The method factorial(int n) of Guava’s BigIntegerMath class is used to find the factorial of the given number. It returns n!, that is, the product of the first n p...
Why you should be analyzing your marketing campaigns with Python | by Limor Goldhaber | Towards Data Science
Like most young kids one of my favorite birthday games was the piñata. I would eagerly await my turn, crack the biggest smile as I was blindfolded, step up with bat in hand, and swing wildly to break open a side and set free all of the beautiful candy stored within. Obviously trying to hit your target while blindfolde...
[ { "code": null, "e": 648, "s": 171, "text": "Like most young kids one of my favorite birthday games was the piñata. I would eagerly await my turn, crack the biggest smile as I was blindfolded, step up with bat in hand, and swing wildly to break open a side and set free all of the beautiful candy st...
Flutter - Updating Data on the Internet - GeeksforGeeks
14 Aug, 2021 In today’s world, most applications heavily rely on fetching and updating information from the servers through the internet. In Flutter, such services are provided by the http package. In this article, we will explore the same. To update the data on the Internet follow the below steps: Import the http pack...
[ { "code": null, "e": 25914, "s": 25886, "text": "\n14 Aug, 2021" }, { "code": null, "e": 26142, "s": 25914, "text": "In today’s world, most applications heavily rely on fetching and updating information from the servers through the internet. In Flutter, such services are provided...
Puppet - Configuration
Once we have Puppet installed on the system, the next step is to configure it to perform certain initial operations. To make the Puppet server manage the client’s server centrally, one needs to open a specified port on all the machines, i.e. 8140 can be used if it is not in use in any of the machines which we are tryi...
[ { "code": null, "e": 2291, "s": 2173, "text": "Once we have Puppet installed on the system, the next step is to configure it to perform certain initial operations." }, { "code": null, "e": 2580, "s": 2291, "text": "To make the Puppet server manage the client’s server centrally, ...
Extract all the URLs that are nested within <li> tags using BeautifulSoup - GeeksforGeeks
16 Mar, 2021 Beautiful Soup is a python library used for extracting html and xml files. In this article we will understand how we can extract all the URLSs from a web page that are nested within <li> tags. BeautifulSoup: Our primary module contains a method to access a webpage over HTTP. pip install bs4 Requests: used ...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n16 Mar, 2021" }, { "code": null, "e": 24511, "s": 24318, "text": "Beautiful Soup is a python library used for extracting html and xml files. In this article we will understand how we can extract all the URLSs from a web page that...
Simulating Multi-Agent Swarming Events in Python | by Juan Nathaniel | Towards Data Science
Swarming occurs frequently in nature: from a group of migratory birds to a collection of drones performing a particular mission. Thus, being able to simulate how swarming works will enable you to build your own multi-agent reinforcement learning algorithm that closely mimics real-world scenarios. To give you a glimpse ...
[ { "code": null, "e": 660, "s": 172, "text": "Swarming occurs frequently in nature: from a group of migratory birds to a collection of drones performing a particular mission. Thus, being able to simulate how swarming works will enable you to build your own multi-agent reinforcement learning algorithm...
How to create boxplot with multiple factor levels using ggplot2 in R?
To create a boxplot, we have one factor and one numerical column and the boxplot is created for each category or levels in that factor. Now if we have two factors then the boxplot can be created for both factor levels by passing fill argument in geom_boxplot. This will help us to differentiate between the boxplots for ...
[ { "code": null, "e": 1456, "s": 1062, "text": "To create a boxplot, we have one factor and one numerical column and the boxplot is created for each category or levels in that factor. Now if we have two factors then the boxplot can be created for both factor levels by passing fill argument in geom_bo...
VLOOKUP in 5 languages (VBA/SQL/PYTHON/M query/DAX powerBI) | Towards Data Science
Excel is a powerful spreadsheet used by most people working in data analysis. The increase of volume of data and development user-friendly tools is an opportunity of improvement of Excel reports by mixing them with another tool or language. As working for a financial reporting department I faced the need to boost our r...
[ { "code": null, "e": 412, "s": 171, "text": "Excel is a powerful spreadsheet used by most people working in data analysis. The increase of volume of data and development user-friendly tools is an opportunity of improvement of Excel reports by mixing them with another tool or language." }, { ...
Design Patterns - Iterator Pattern
Iterator pattern is very commonly used design pattern in Java and .Net programming environment. This pattern is used to get a way to access the elements of a collection object in sequential manner without any need to know its underlying representation. Iterator pattern falls under behavioral pattern category. We're go...
[ { "code": null, "e": 3005, "s": 2751, "text": "Iterator pattern is very commonly used design pattern in Java and .Net programming environment. This pattern is used to get a way to access the elements of a collection object in sequential manner without any need to know its underlying representation. ...
Ackermann's function using Dynamic programming - GeeksforGeeks
12 Nov, 2021 Given two non-zero integers M and N, the problem is to compute the result of the Ackermann function based on some particular equations. Ackermann function is defined as: Examples: Input: M = 2, N = 2Output: 7 Input: M = 2, N = 7Output: 6141004759 The approach for Ackermann function described in this articl...
[ { "code": null, "e": 25941, "s": 25913, "text": "\n12 Nov, 2021" }, { "code": null, "e": 26077, "s": 25941, "text": "Given two non-zero integers M and N, the problem is to compute the result of the Ackermann function based on some particular equations." }, { "code": null,...
Python | Minimum element in tuple list - GeeksforGeeks
11 Nov, 2019 Sometimes, while working with data in form of records, we can have a problem in which we need to find the minimum element of all the records received. This is a very common application that can occur in Data Science domain. Let’s discuss certain ways in which this task can be performed. Method #1 : Using m...
[ { "code": null, "e": 25963, "s": 25935, "text": "\n11 Nov, 2019" }, { "code": null, "e": 26251, "s": 25963, "text": "Sometimes, while working with data in form of records, we can have a problem in which we need to find the minimum element of all the records received. This is a ve...
SaltStack - Python API
Salt provides programmatic access to all of its commands. Salt provides different modules for every section of the Salt system. Let us learn the basics of the python API and about how to run the basic salt commands in this chapter. The salt.config module is used to access Salt configuration details. import salt.config ...
[ { "code": null, "e": 2439, "s": 2207, "text": "Salt provides programmatic access to all of its commands. Salt provides different modules for every section of the Salt system. Let us learn the basics of the python API and about how to run the basic salt commands in this chapter." }, { "code":...
Bulma - Image
This chapter covers the Bulma support for images. The Bulma uses .image class to display the images in the page. Bulma provides 7 types of dimensions to display the images − is-16x16 is-16x16 is-24x24 is-24x24 is-32x32 is-32x32 is-48x48 is-48x48 is-64x64 is-64x64 is-96x96 is-96x96 is-128x128 is-128x128 Bulma provides ....
[ { "code": null, "e": 1811, "s": 1698, "text": "This chapter covers the Bulma support for images. The Bulma uses .image class to display the images in the page." }, { "code": null, "e": 1872, "s": 1811, "text": "Bulma provides 7 types of dimensions to display the images −" }, ...
Check whether a Stack is empty or not in Java
The method java.util.Stack.empty() is used to check if a stack is empty or not. This method requires no parameters. It returns true if the stack is empty and false if the stack is not empty. A program that demonstrates this is given as follows − Live Demo import java.util.Stack; public class Demo { public static vo...
[ { "code": null, "e": 1253, "s": 1062, "text": "The method java.util.Stack.empty() is used to check if a stack is empty or not. This method requires no parameters. It returns true if the stack is empty and false if the stack is not empty." }, { "code": null, "e": 1308, "s": 1253, ...
Create a Boolean object from Boolean value in Java
To create a Boolean object from Boolean value is quite easy. Create an object with Boolean and set the Boolean value “true” or “false”, which are the Boolean literals. Let us now see how “true” value is added. Boolean bool = new Boolean("true"); In the same way, “False” value is added. Boolean bool = new Boolean("false...
[ { "code": null, "e": 1230, "s": 1062, "text": "To create a Boolean object from Boolean value is quite easy. Create an object with Boolean and set the Boolean value “true” or “false”, which are the Boolean literals." }, { "code": null, "e": 1272, "s": 1230, "text": "Let us now see...
Building a react boilerplate from scratch without using create-react-app - GeeksforGeeks
24 Sep, 2021 In this article, we are going to build a basic boilerplate for a React project from scratch without using the create-react-app or any other predefined boilerplate. This is a great experience for any react developer to look into what is happening behind the scenes. The file structure for our project will be...
[ { "code": null, "e": 24850, "s": 24822, "text": "\n24 Sep, 2021" }, { "code": null, "e": 25115, "s": 24850, "text": "In this article, we are going to build a basic boilerplate for a React project from scratch without using the create-react-app or any other predefined boilerplate....
Python OpenCV - imdecode() Function - GeeksforGeeks
05 Nov, 2021 Python cv2.imdecode() function is used to read image data from a memory cache and convert it into image format. This is generally used for loading the image efficiently from the internet. Syntax: cv2.imdecode(buf,flags) Parameters: buf – It is the image data received in bytes flags – It specifies the way...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n05 Nov, 2021" }, { "code": null, "e": 24481, "s": 24292, "text": "Python cv2.imdecode() function is used to read image data from a memory cache and convert it into image format. This is generally used for loading the image effici...
How to Implement One to Many Mapping in Spring Boot? - GeeksforGeeks
20 Dec, 2021 Spring Boot is built on the top of the spring and contains all the features of spring. Spring also provides JPA and hibernate to increase the data manipulation efficiency between the spring application and the database. In very simple terms we can say JPA (Java persistence API) is like an interface and the...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n20 Dec, 2021" }, { "code": null, "e": 24868, "s": 23948, "text": "Spring Boot is built on the top of the spring and contains all the features of spring. Spring also provides JPA and hibernate to increase the data manipulation eff...
Tryit Editor v3.6 - Show Python
mydb = mysql.connector.connect( host="localhost", user="myusername", password="mypassword", database="mydatabase" ) ​ mycursor = mydb.cursor()
[ { "code": null, "e": 57, "s": 25, "text": "mydb = mysql.connector.connect(" }, { "code": null, "e": 77, "s": 57, "text": " host=\"localhost\"," }, { "code": null, "e": 98, "s": 77, "text": " user=\"myusername\"," }, { "code": null, "e": 123, ...
Python Library API for Docker
You can access, manage and manipulate docker objects such as containers, images, clusters, swarms, etc. using a python library API. You can do pretty much anything that docker commands let you do. This comes very handy when you are using a python app such as django or flask and you want to maintain your docker containe...
[ { "code": null, "e": 1447, "s": 1062, "text": "You can access, manage and manipulate docker objects such as containers, images, clusters, swarms, etc. using a python library API. You can do pretty much anything that docker commands let you do. This comes very handy when you are using a python app su...
C++ Program to Generate Multiplication Table
The multiplication table is used to define a multiplication operation for any number. It is normally used to lay the foundation of elementary arithmetic operations with base ten numbers. The multiplication table of any number is written till 10. In each row, the product of the number with 1 to 10 is displayed. An examp...
[ { "code": null, "e": 1249, "s": 1062, "text": "The multiplication table is used to define a multiplication operation for any number. It is normally used to lay the foundation of elementary arithmetic operations with base ten numbers." }, { "code": null, "e": 1434, "s": 1249, "tex...
Absolute and Relative Frequency in R Programming - GeeksforGeeks
04 May, 2020 In statistics, frequency or absolute frequency indicates the number of occurrences of a data value or the number of times a data value occurs. These frequencies are often plotted on bar graphs or histograms to compare the data values. For example, to find out the number of kids, adults, and senior citizens...
[ { "code": null, "e": 24936, "s": 24908, "text": "\n04 May, 2020" }, { "code": null, "e": 25394, "s": 24936, "text": "In statistics, frequency or absolute frequency indicates the number of occurrences of a data value or the number of times a data value occurs. These frequencies ar...
Process Object in ElectronJS - GeeksforGeeks
24 Jul, 2020 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. As ment...
[ { "code": null, "e": 24362, "s": 24334, "text": "\n24 Jul, 2020" }, { "code": null, "e": 24662, "s": 24362, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which ...
How to set the part of the Android text view as clickable in Kotlin?
This example demonstrates how to set the part of the Android text view as clickable in Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="ut...
[ { "code": null, "e": 1157, "s": 1062, "text": "This example demonstrates how to set the part of the Android text view as clickable in Kotlin." }, { "code": null, "e": 1285, "s": 1157, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒New Project and fill all r...
How to clone a generic list in C#?
A list is a Generic collection to hold elements of same datatypes. To clone a list, you can use the CopyTo method. Declare a list and add elements − List < string > myList = new List < string > (); myList.Add("Programming"); myList.Add("Web Dev"); myList.Add("Database"); Now create a new array and clone the list into i...
[ { "code": null, "e": 1129, "s": 1062, "text": "A list is a Generic collection to hold elements of same datatypes." }, { "code": null, "e": 1177, "s": 1129, "text": "To clone a list, you can use the CopyTo method." }, { "code": null, "e": 1211, "s": 1177, "text...
Flexbox - Flex Containers
To use Flexbox in your application, you need to create/define a flex container using the display property. Usage − display: flex | inline-flex This property accepts two values flex − Generates a block level flex container. flex − Generates a block level flex container. inline-flex − Generates an inline flex container ...
[ { "code": null, "e": 1918, "s": 1811, "text": "To use Flexbox in your application, you need to create/define a flex container using the display property." }, { "code": null, "e": 1926, "s": 1918, "text": "Usage −" }, { "code": null, "e": 1955, "s": 1926, "text...
Rorschach Tests for Deep Learning Image Classifiers | by Mathieu Lemay | Towards Data Science
What do they see, when there is nothing to see? With a lot of exploration in image classification and labeling, we tend to play with various libraries to quickly assess and label pictures. But other than memory use and ease of retraining layers, how do they behave when presented with unclear, grainy pictures? In order ...
[ { "code": null, "e": 220, "s": 172, "text": "What do they see, when there is nothing to see?" }, { "code": null, "e": 483, "s": 220, "text": "With a lot of exploration in image classification and labeling, we tend to play with various libraries to quickly assess and label picture...
BIRCH Clustering Algorithm Example In Python | by Cory Maklin | Towards Data Science
Existing data clustering methods do not adequately address the problem of processing large datasets with a limited amount of resources (i.e. memory and cpu cycles). In consequence, as the dataset size increases, they scale poorly in terms of running time, and result quality. At a high level, Balanced Iterative Reducing...
[ { "code": null, "e": 1135, "s": 171, "text": "Existing data clustering methods do not adequately address the problem of processing large datasets with a limited amount of resources (i.e. memory and cpu cycles). In consequence, as the dataset size increases, they scale poorly in terms of running time...
Predicting Forest Cover Types with the Machine Learning Workflow | by Ceren Iyim | Towards Data Science
In this article, I will explain how to approach a multi-class classification supervised machine learning (ML) problem (or project) with an end-to-end workflow. Supervised: Features (variables to generate predictions) and target (the variable to be determined) are available in the data set. Multi-class classification: T...
[ { "code": null, "e": 332, "s": 172, "text": "In this article, I will explain how to approach a multi-class classification supervised machine learning (ML) problem (or project) with an end-to-end workflow." }, { "code": null, "e": 463, "s": 332, "text": "Supervised: Features (vari...
JUnit - Writing a Test
Here we will see one complete example of JUnit testing using POJO class, Business logic class, and a test class, which will be run by the test runner. Create EmployeeDetails.java in C:\>JUNIT_WORKSPACE, which is a POJO class. public class EmployeeDetails { private String name; private double monthlySalary; pr...
[ { "code": null, "e": 2123, "s": 1972, "text": "Here we will see one complete example of JUnit testing using POJO class, Business logic class, and a test class, which will be run by the test runner." }, { "code": null, "e": 2198, "s": 2123, "text": "Create EmployeeDetails.java in ...
Angular PrimeNG FileUpload Component - GeeksforGeeks
07 Oct, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the FileUpload component in Angular PrimeNG. We will also learn ab...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n07 Oct, 2021" }, { "code": null, "e": 25129, "s": 24718, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp...
Build a Virtual Assistant Using Python - GeeksforGeeks
16 Jul, 2020 Virtual desktop assistant is an awesome thing. If you want your machine to run on your command like Jarvis did for Tony. Yes it is possible. It is possible using Python. Python offers a good major library so that we can use it for making a virtual assistant. Windows has Sapi5 and Linux has Espeak which can...
[ { "code": null, "e": 24750, "s": 24722, "text": "\n16 Jul, 2020" }, { "code": null, "e": 25122, "s": 24750, "text": "Virtual desktop assistant is an awesome thing. If you want your machine to run on your command like Jarvis did for Tony. Yes it is possible. It is possible using P...
jQuery - jQuery.ajax( options ) Method
The jQuery.ajax( options ) method loads a remote page using an HTTP request. $.ajax() returns the XMLHttpRequest that it creates. In most cases you won't need that object to manipulate directly, but it is available if you need to abort the request manually. Here is the simple syntax to use this method − $.ajax( options...
[ { "code": null, "e": 2399, "s": 2322, "text": "The jQuery.ajax( options ) method loads a remote page using an HTTP request." }, { "code": null, "e": 2580, "s": 2399, "text": "$.ajax() returns the XMLHttpRequest that it creates. In most cases you won't need that object to manipula...
Difference between Antivirus and Internet Security - GeeksforGeeks
24 May, 2020 Antivirus:Antivirus is an application or software which provides security from the malicious software coming from the internet. An antivirus chases the method in which it performs 3 actions which are: 1. Detection 2. Identification 3. Removal Antivirus deals with both external threats and internal threats...
[ { "code": null, "e": 24510, "s": 24482, "text": "\n24 May, 2020" }, { "code": null, "e": 24711, "s": 24510, "text": "Antivirus:Antivirus is an application or software which provides security from the malicious software coming from the internet. An antivirus chases the method in w...
Conditional wait and signal in multi-threading - GeeksforGeeks
06 Jul, 2021 What are conditional wait and signal in multi-threading? Explanation: When you want to sleep a thread, condition variable can be used. In C under Linux, there is a function pthread_cond_wait() to wait or sleep. On the other hand, there is a function pthread_cond_signal() to wake up sleeping or waiting thre...
[ { "code": null, "e": 25707, "s": 25679, "text": "\n06 Jul, 2021" }, { "code": null, "e": 26061, "s": 25707, "text": "What are conditional wait and signal in multi-threading? Explanation: When you want to sleep a thread, condition variable can be used. In C under Linux, there is a...
Create Inverted Index for File using Python - GeeksforGeeks
29 Dec, 2020 An inverted index is an index data structure storing a mapping from content, such as words or numbers, to its locations in a document or a set of documents. In simple words, it is a hashmap like data structure that directs you from a word to a document or a web page. We will create a Word level inverted in...
[ { "code": null, "e": 25985, "s": 25957, "text": "\n29 Dec, 2020" }, { "code": null, "e": 26253, "s": 25985, "text": "An inverted index is an index data structure storing a mapping from content, such as words or numbers, to its locations in a document or a set of documents. In sim...