title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Count Number of Occurrences of Certain Character in String in R - GeeksforGeeks
16 May, 2021 In this article, we will discuss how to count the number of occurrences of a certain character in String in R Programming Language. The stringR package in R is used to perform string manipulations. It needs to be explicitly installed in the working space to access its methods and routines. install.packag...
[ { "code": null, "e": 24385, "s": 24354, "text": " \n16 May, 2021\n" }, { "code": null, "e": 24517, "s": 24385, "text": "In this article, we will discuss how to count the number of occurrences of a certain character in String in R Programming Language." }, { "code": null, ...
Enumerate through a Vector using Java Enumeration - GeeksforGeeks
07 Jan, 2021 In the Java Enumeration class, all the listed constants are public, static, and final by default. Now after creating a Vector if we want to enumerate through the Vector then at first, we must get an Enumeration of the Vector’s element, and to do, so we use the elements() method. This method is a member fun...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n07 Jan, 2021" }, { "code": null, "e": 24517, "s": 23948, "text": "In the Java Enumeration class, all the listed constants are public, static, and final by default. Now after creating a Vector if we want to enumerate through the V...
Java - The HashMap Class
The HashMap class uses a hashtable to implement the Map interface. This allows the execution time of basic operations, such as get( ) and put( ), to remain constant even for large sets. Following is the list of constructors supported by the HashMap class. HashMap( ) This constructor constructs a default HashMap. HashMa...
[ { "code": null, "e": 2563, "s": 2377, "text": "The HashMap class uses a hashtable to implement the Map interface. This allows the execution time of basic operations, such as get( ) and put( ), to remain constant even for large sets." }, { "code": null, "e": 2633, "s": 2563, "text...
How to change display mode with Java Swings
To change display mode with Java Swings, use the setDisplayMode() method. Here, we have set the Display mode as: new DisplayMode(800, 600, 32, 60)); Now, when you will run the program, the frame would be visible in a different resolution than the actual set resolution of your system. The following is an example to chan...
[ { "code": null, "e": 1175, "s": 1062, "text": "To change display mode with Java Swings, use the setDisplayMode() method. Here, we have set the Display mode as:" }, { "code": null, "e": 1211, "s": 1175, "text": "new DisplayMode(800, 600, 32, 60));" }, { "code": null, "...
\vphantom - Tex Command
\vphantom - vertical phantom. { \vphantom #1 } The box created by \vphantom has the height and depth of its argument, but its width is zero (so it doesn't contribute to any horizontal spacing issues). In other words, \hphantom creates vertical space equal to that produced by its argument, but doesn't create any horizo...
[ { "code": null, "e": 8016, "s": 7986, "text": "\\vphantom - vertical phantom." }, { "code": null, "e": 8033, "s": 8016, "text": "{ \\vphantom #1 }" }, { "code": null, "e": 8318, "s": 8033, "text": "The box created by \\vphantom has the height and depth of its ...
iOS - Table View
It is used for displaying a vertically scrollable view which consists of a number of cells (generally reusable cells). It has special features like headers, footers, rows, and section. delegate dataSource rowHeight sectionFooterHeight sectionHeaderHeight separatorColor tableHeaderView tableFooterView - (UITableViewCell...
[ { "code": null, "e": 2276, "s": 2091, "text": "It is used for displaying a vertically scrollable view which consists of a number of cells (generally reusable cells). It has special features like headers, footers, rows, and section." }, { "code": null, "e": 2285, "s": 2276, "text"...
How to add command line arguments in Python?
Python has a very powerful argparse module which provides functions for parsing command line arguments. If we want to get the user input from the OS command line without a lot of interaction or code a program that accepts parameters from the command line e.g. Provide a URL to parse or accepts the file to upload to a S3...
[ { "code": null, "e": 1437, "s": 1062, "text": "Python has a very powerful argparse module which provides functions for parsing command line arguments. If we want to get the user input from the OS command line without a lot of interaction or code a program that accepts parameters from the command lin...
C++ List Library - sort() Function
The C++ function std::list::sort() sorts the elements of the list in ascending order. The order of equal elements is preserved. It uses operator< for comparison. Following is the declaration for std::list::sort() function form std::list header. void sort(); None None This member function never throws exception. Linear...
[ { "code": null, "e": 2765, "s": 2603, "text": "The C++ function std::list::sort() sorts the elements of the list in ascending order. The order of equal elements is preserved. It uses operator< for comparison." }, { "code": null, "e": 2848, "s": 2765, "text": "Following is the dec...
How to create file of particular size in Python?
To create a file of a particular size, just seek to the byte number(size) you want to create the file of and write a byte there. with open('my_file', 'wb') as f: f.seek(1024 * 1024 * 1024) # One GB f.write('0') This creates a sparse file by not actually taking up all that space. To create a full file, you shoul...
[ { "code": null, "e": 1191, "s": 1062, "text": "To create a file of a particular size, just seek to the byte number(size) you want to create the file of and write a byte there." }, { "code": null, "e": 1281, "s": 1191, "text": "with open('my_file', 'wb') as f:\n f.seek(1024 * 1...
Build a Machine Learning Model to a Practical Use-Case From Scratch | by Yasas Sandeepa | Towards Data Science
Machine Learning is an enormous area. It is empowering technology for allowing us to develop software solutions much faster than before and currently the state-of-the-art solution for a wide range of problems. We can apply it to almost every domain. In this article, we are going to study in-depth how the process for de...
[ { "code": null, "e": 551, "s": 172, "text": "Machine Learning is an enormous area. It is empowering technology for allowing us to develop software solutions much faster than before and currently the state-of-the-art solution for a wide range of problems. We can apply it to almost every domain. In th...
Use Pre-trained Word Embedding to detect real disaster tweets | by Zeineb Ghrib | Towards Data Science
In this post we will go through the overall text classification pipeline, and especially the data pre-processing steps, we will be using a Glove pre-trained word embedding. Textual features processing is a little bit more tricky than linear or categorical features. In fact, machine learning algorithms are more about sc...
[ { "code": null, "e": 750, "s": 172, "text": "In this post we will go through the overall text classification pipeline, and especially the data pre-processing steps, we will be using a Glove pre-trained word embedding. Textual features processing is a little bit more tricky than linear or categorical...
Python program to sort a list according to the second element in the sublist.
List is given, our task is to sort a list according to the second element in the sublist. Here we apply simple bubble sort. Input : [['CCC', 15], ['AAA', 10], ['RRRR', 2],['XXXX', 150]] Output : [['RRRR', 2], ['AAA', 10], ['CCC', 15], ['XXXX', 150]] Step 1: Given a list. Step 2: We have tried to access the second eleme...
[ { "code": null, "e": 1186, "s": 1062, "text": "List is given, our task is to sort a list according to the second element in the sublist. Here we apply simple bubble sort." }, { "code": null, "e": 1312, "s": 1186, "text": "Input : [['CCC', 15], ['AAA', 10], ['RRRR', 2],['XXXX', 15...
Sort and Reverse Vector | Practice | GeeksforGeeks
You are given a vector V of size n. You need to sort it and reverse it. Example 1: Input: n = 5 V = 1 2 3 4 5 Output: 1 2 3 4 5 5 4 3 2 1 Your Task: Since this is a function problem, you don't need to take any input. Just complete the provided functions sortVector() and reverseVector(). Return the vector after perfo...
[ { "code": null, "e": 298, "s": 226, "text": "You are given a vector V of size n. You need to sort it and reverse it." }, { "code": null, "e": 310, "s": 298, "text": "Example 1: " }, { "code": null, "e": 367, "s": 310, "text": "Input:\nn = 5\nV = 1 2 3 4 5\nOut...
Lagrange Interpolation
For constructing new data points within a range of a discrete set of given data point, the interpolation technique is used. Lagrange interpolation technique is one of them. When the given data points are not evenly distributed, we can use this interpolation method to find the solution. For the Lagrange interpolation, w...
[ { "code": null, "e": 1414, "s": 1062, "text": "For constructing new data points within a range of a discrete set of given data point, the interpolation technique is used. Lagrange interpolation technique is one of them. When the given data points are not evenly distributed, we can use this interpola...
Delete Tree Nodes in C++
Suppose we have a tree, this tree is rooted at node 0, this is given as follows − Number of nodes is nodesValue of ith node is value[i]Parent of ith node is parent[i] Number of nodes is nodes Value of ith node is value[i] Parent of ith node is parent[i] We have to remove every subtree whose sum of values of nodes is 0,...
[ { "code": null, "e": 1144, "s": 1062, "text": "Suppose we have a tree, this tree is rooted at node 0, this is given as follows −" }, { "code": null, "e": 1229, "s": 1144, "text": "Number of nodes is nodesValue of ith node is value[i]Parent of ith node is parent[i]" }, { "...
Bitwise Operators in C++
There are 3 bitwise operators available in c++. These are the bitwise AND(&), bitwise OR(|) and the bitwise XOR(^). The bitwise AND operator (&) compares each bit of the first operand to the corresponding bit of the second operand. If both bits are 1, the corresponding result bit is set to 1. Otherwise, the correspondi...
[ { "code": null, "e": 1178, "s": 1062, "text": "There are 3 bitwise operators available in c++. These are the bitwise AND(&), bitwise OR(|) and the bitwise XOR(^)." }, { "code": null, "e": 1501, "s": 1178, "text": "The bitwise AND operator (&) compares each bit of the first operan...
SVM (Support Vector Machine) for classification | by Aditya Kumar | Towards Data Science
SVM: Support Vector Machine is a supervised classification algorithm where we draw a line between two different categories to differentiate between them. SVM is also known as the support vector network. Consider an example where we have cats and dogs together. We want our model to differentiate between cats and dogs. T...
[ { "code": null, "e": 374, "s": 171, "text": "SVM: Support Vector Machine is a supervised classification algorithm where we draw a line between two different categories to differentiate between them. SVM is also known as the support vector network." }, { "code": null, "e": 432, "s": 3...
AWT TextListener Interface
The class which processes the TextEvent should implement this interface.The object of that class must be registered with a component. The object can be registered using the addTextListener() method. Following is the declaration for java.awt.event.TextListener interface: public interface TextListener extends EventLi...
[ { "code": null, "e": 1947, "s": 1747, "text": "The class which processes the TextEvent should implement this interface.The object of that class must be registered with a component. The object can be registered using the addTextListener() method. " }, { "code": null, "e": 2019, "s": 1...
C++ Program to Perform Postorder Non-Recursive Traversal of a Given Binary Tree
If a binary tree is traversed post-order, the left subtree is visited first, then the right sub-tree and later the root. This is a C++ Program for Post Order Tree traversal without recursion. We do the program here by using stack. For postorder traversal: Begin Declare postorder_traversal(struct node*t,struct tree**...
[ { "code": null, "e": 1293, "s": 1062, "text": "If a binary tree is traversed post-order, the left subtree is visited first, then the right sub-tree and later the root. This is a C++ Program for Post Order Tree traversal without recursion. We do the program here by using stack." }, { "code": ...
A comprehensive Machine Learning workflow with multiple modelling using caret and caretEnsemble in R | by Gabriel Pierobon | Towards Data Science
I’ll use a very interesting dataset presented in the book Machine Learning with R from Packt Publishing, written by Brett Lantz. My intention is to expand the analysis on this dataset by executing a full supervised machine learning workflow which I’ve been laying out for some time now in order to help me attack any sim...
[ { "code": null, "e": 545, "s": 172, "text": "I’ll use a very interesting dataset presented in the book Machine Learning with R from Packt Publishing, written by Brett Lantz. My intention is to expand the analysis on this dataset by executing a full supervised machine learning workflow which I’ve bee...
C - typedef
The C programming language provides a keyword called typedef, which you can use to give a type a new name. Following is an example to define a term BYTE for one-byte numbers − typedef unsigned char BYTE; After this type definition, the identifier BYTE can be used as an abbreviation for the type unsigned char, for exam...
[ { "code": null, "e": 2260, "s": 2084, "text": "The C programming language provides a keyword called typedef, which you can use to give a type a new name. Following is an example to define a term BYTE for one-byte numbers −" }, { "code": null, "e": 2289, "s": 2260, "text": "typede...
ES6 - Arrays
The use of variables to store values poses the following limitations − Variables are scalar in nature. In other words, a variable declaration can only contain a single at a time. This means that to store n values in a program, n variable declarations will be needed. Hence, the use of variables is not feasible when one ...
[ { "code": null, "e": 2348, "s": 2277, "text": "The use of variables to store values poses the following limitations −" }, { "code": null, "e": 2643, "s": 2348, "text": "Variables are scalar in nature. In other words, a variable declaration can only contain a single at a time. Thi...
Changing the color a Tkinter rectangle on clicking
The Canvas widget in Tkinter is one of the versatile widgets in Tkinter which is used for developing dynamic GUI interface of the application such as shapes, logo, arcs, animating objects, and many more. With the help of the create_rectangle(top, left, bottom, right, **options) constructor, we can create a rectangular ...
[ { "code": null, "e": 1509, "s": 1062, "text": "The Canvas widget in Tkinter is one of the versatile widgets in Tkinter which is used for developing dynamic GUI interface of the application such as shapes, logo, arcs, animating objects, and many more. With the help of the create_rectangle(top, left, ...
Dijkstra’s Shortest Path Algorithm
The main problem is the same as the previous one, from the starting node to any other node, find the smallest distances. In this problem, the main difference is that the graph is represented using the adjacency matrix. (Cost matrix and adjacency matrix is similar for this purpose). For the adjacency list representation...
[ { "code": null, "e": 1345, "s": 1062, "text": "The main problem is the same as the previous one, from the starting node to any other node, find the smallest distances. In this problem, the main difference is that the graph is represented using the adjacency matrix. (Cost matrix and adjacency matrix ...
How can we implement Flow API using Publisher-Subscriber in Java 9?
Flow API (java.util.concurrent.Flow) has introduced in Java 9. It helps to understand different ways in which the Publisher and Subscriber interfaces interact to perform desired operations. Flow API consists of Publisher, Subscriber, Subscription, and Processor interfaces, which can be based on reactive stream specific...
[ { "code": null, "e": 1252, "s": 1062, "text": "Flow API (java.util.concurrent.Flow) has introduced in Java 9. It helps to understand different ways in which the Publisher and Subscriber interfaces interact to perform desired operations." }, { "code": null, "e": 1389, "s": 1252, "...
Predicting destination countries for new users of Airbnb | by Tanmayee W | Towards Data Science
I found this interesting challenge posted by Airbnb on Kaggle 3 years ago. But it is never too late to get you hands dirty with a stimulating data challenge! :) This Kaggle challenge presents a problem to predict which country will be a new user’s booking destination. For the purpose of this challenge, we will make use...
[ { "code": null, "e": 207, "s": 46, "text": "I found this interesting challenge posted by Airbnb on Kaggle 3 years ago. But it is never too late to get you hands dirty with a stimulating data challenge! :)" }, { "code": null, "e": 405, "s": 207, "text": "This Kaggle challenge pres...
spaCy - Command Line Helpers
This chapter gives information about the command line helpers used in spaCy. spaCy v1.7.0 and above comes with new command line helpers. It is used to download as well as link the models. You can also use it to show the useful debugging information. In short, command line helpers are used to download, train, package mo...
[ { "code": null, "e": 2149, "s": 2072, "text": "This chapter gives information about the command line helpers used in spaCy." }, { "code": null, "e": 2423, "s": 2149, "text": "spaCy v1.7.0 and above comes with new command line helpers. It is used to download as well as link the mo...
MySQL query to increment one of the column values
Let us first create a table − mysql> create table DemoTable -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> Name varchar(100), -> Score int -> ); Query OK, 0 rows affected (0.78 sec) Insert some records in the table using insert command − mysql> insert into DemoTable(Name,Score) values('John',68); Query OK, 1 ro...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1252, "s": 1092, "text": "mysql> create table DemoTable\n-> (\n-> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n-> Name varchar(100),\n-> Score int\n-> );\nQuery OK, 0 rows affect...
Building Machine Learning Pipelines using Snowflake and Dask | by Daniel Foley | Towards Data Science
Recently I have been trying to find better ways to improve my workflow as a data scientist. I tend to spend a decent chunk of my time modelling and building ETLs in my job. This has meant that more and more I need to rely on tools to reliably and efficiently handle large datasets. I quickly realised that using pandas f...
[ { "code": null, "e": 607, "s": 172, "text": "Recently I have been trying to find better ways to improve my workflow as a data scientist. I tend to spend a decent chunk of my time modelling and building ETLs in my job. This has meant that more and more I need to rely on tools to reliably and efficien...
Supply Chain Optimization with Python | by Samir Saci | Towards Data Science
Supply chain optimization makes the best use of data analytics to find an optimal combination of factories and distribution centres to match supply and demand. Because of the current surge in shipping costs, companies start to challenge their current footprint to adapt to the post-covid “New Normal”. In this article, w...
[ { "code": null, "e": 332, "s": 172, "text": "Supply chain optimization makes the best use of data analytics to find an optimal combination of factories and distribution centres to match supply and demand." }, { "code": null, "e": 474, "s": 332, "text": "Because of the current sur...
Close Bootstrap class
Use the generic close icon for dismissing content like models and alerts. Use the class close to getting the close icon. You can try to run the following code to implement a close Bootstrap class Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstr...
[ { "code": null, "e": 1183, "s": 1062, "text": "Use the generic close icon for dismissing content like models and alerts. Use the class close to getting the close icon." }, { "code": null, "e": 1258, "s": 1183, "text": "You can try to run the following code to implement a close Bo...
Find all triplets with zero sum - GeeksforGeeks
20 Apr, 2022 Given an array of distinct elements. The task is to find triplets in the array whose sum is zero. Examples : Input : arr[] = {0, -1, 2, -3, 1} Output : (0 -1 1), (2 -3 1) Explanation : The triplets with zero sum are 0 + -1 + 1 = 0 and 2 + -3 + 1 = 0 Input : arr[] = {1, -2, 1, 0, 5} Output : 1 -2 1 Ex...
[ { "code": null, "e": 40885, "s": 40857, "text": "\n20 Apr, 2022" }, { "code": null, "e": 40983, "s": 40885, "text": "Given an array of distinct elements. The task is to find triplets in the array whose sum is zero." }, { "code": null, "e": 40995, "s": 40983, "...
DSA using Java - Arrays
Array is a container which can hold fix number of items and these items should be of same type. Most of the datastructure make use of array to implement their algorithms. Following are important terms to understand the concepts of Array Element − Each item stored in an array is called an element. Element − Each item st...
[ { "code": null, "e": 2405, "s": 2168, "text": "Array is a container which can hold fix number of items and these items should be of same type. Most of the datastructure make use of array to implement their algorithms. Following are important terms to understand the concepts of Array" }, { "c...
How to set the layout weight of a TextView programmatically in Android using Kotlin?
This example demonstrates how to set the layout weight of a TextView programmatically 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=...
[ { "code": null, "e": 1160, "s": 1062, "text": "This example demonstrates how to set the layout weight of a TextView programmatically in Android." }, { "code": null, "e": 1288, "s": 1160, "text": "Step 1 − Create a new project in Android Studio, go to File? New Project and fill al...
What is the meaning of ‘empty set’ in MySQL result set?
If there is ‘empty set’ in the result set of MySQL query then it means that MySQL is returning no rows and no error also in the query. It can be understood with the help of the following example − mysql> Select * from Student_info WHERE Name = 'ABCD'; Empty set (0.00 sec) We can see the empty set and execution time as ...
[ { "code": null, "e": 1259, "s": 1062, "text": "If there is ‘empty set’ in the result set of MySQL query then it means that MySQL is returning no rows and no error also in the query. It can be understood with the help of the following example −" }, { "code": null, "e": 1335, "s": 1259...
PyQt5 - QDockWidget - GeeksforGeeks
11 Aug, 2021 QDockWidget provides the concept of dock widgets, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area around the central widget in a QMainWindow(original window). Dock windows can be moved inside their current area, moved into new areas and float...
[ { "code": null, "e": 24792, "s": 24764, "text": "\n11 Aug, 2021" }, { "code": null, "e": 25332, "s": 24792, "text": "QDockWidget provides the concept of dock widgets, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area ...
This will make you understand how hard Data Science really is | by Thijs Essens | Towards Data Science
tl;dr: it’s very hard Every day, people try to live up to computer science savants and try to break into the field of Data Science. How hard is it? What does it take? Where do I start? In this blog I’ll summarize the 3 hardest challenges I faced doing my first Data Science project in this Kaggle Notebook: You know noth...
[ { "code": null, "e": 194, "s": 172, "text": "tl;dr: it’s very hard" }, { "code": null, "e": 304, "s": 194, "text": "Every day, people try to live up to computer science savants and try to break into the field of Data Science." }, { "code": null, "e": 357, "s": 304...
Creating a Multilevel Inheritance Hierarchy in Java
Inheritance involves an object acquiring the properties and behaviour of another object. So basically, using inheritance can extend the functionality of the class by creating a new class that builds on the previous class by inheriting it. Multilevel inheritance is when a class inherits a class which inherits another cl...
[ { "code": null, "e": 1301, "s": 1062, "text": "Inheritance involves an object acquiring the properties and behaviour of another object. So basically, using inheritance can extend the functionality of the class by creating a new class that builds on the previous class by inheriting it." }, { ...
BPEL - Quick Guide
SOA or the Service Oriented Architecture is an architectural approach, which makes use of technology to present business processes as reusable services. It is focused on the business and enables process transformation to new levels of integration, visualization, monitoring, and optimization. It is focused on the busine...
[ { "code": null, "e": 2614, "s": 2461, "text": "SOA or the Service Oriented Architecture is an architectural approach, which makes use of technology to present business processes as reusable services." }, { "code": null, "e": 2754, "s": 2614, "text": "It is focused on the business...
Numbers less than N that are perfect cubes and the sum of their digits reduced to a single digit is 1 - GeeksforGeeks
11 May, 2021 Given a number n, the task is to print all the numbers less than or equal to n which are perfect cubes as well as the eventual sum of their digits is 1.Examples: Input: n = 100 Output: 1 64 64 = 6 + 4 = 10 = 1 + 0 = 1 Input: n = 1000 Output: 1 64 343 1000 Approach: For every perfect cube less than or...
[ { "code": null, "e": 24327, "s": 24299, "text": "\n11 May, 2021" }, { "code": null, "e": 24491, "s": 24327, "text": "Given a number n, the task is to print all the numbers less than or equal to n which are perfect cubes as well as the eventual sum of their digits is 1.Examples: ...
Computer Programming - Operators
An operator in a programming language is a symbol that tells the compiler or interpreter to perform specific mathematical, relational or logical operation and produce final result. This chapter will explain the concept of operators and it will take you through the important arithmetic and relational operators available...
[ { "code": null, "e": 2485, "s": 2140, "text": "An operator in a programming language is a symbol that tells the compiler or interpreter to perform specific mathematical, relational or logical operation and produce final result. This chapter will explain the concept of operators and it will take you ...
Validate the ZIP code with Java Regular expressions
In order to match the ZIP code using regular expression, we use the matches method in Java. The java.lang.String.matches() method returns a boolean value which depends on the matching of the String with the regular expression. Declaration − The java.lang.String.matches() method is declared as follows − public boolean m...
[ { "code": null, "e": 1289, "s": 1062, "text": "In order to match the ZIP code using regular expression, we use the matches method in Java. The java.lang.String.matches() method returns a boolean value which depends on the matching of the String with the regular expression." }, { "code": null...
How to use XMLPullParser to parse XML in Android using Kotlin?
This example demonstrates how to use XMLPullParser to parse XML in 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. <?xml version="1.0" encoding="utf-8"?...
[ { "code": null, "e": 1151, "s": 1062, "text": "This example demonstrates how to use XMLPullParser to parse XML in Android using Kotlin." }, { "code": null, "e": 1280, "s": 1151, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requir...
Quickly Transfer a Kaggle dataset into a Google bucket | by Alex Federation | Towards Data Science
15 days. I was shocked at how long it was going to take to upload a relatively small (20GB) image dataset from my local machine to a Google Cloud Platform (GCP) bucket. In this article, I’ll go through the alternative approach that shortened this process to a 2-hour operation using a GCP Virtual Machine (VM). The key i...
[ { "code": null, "e": 341, "s": 172, "text": "15 days. I was shocked at how long it was going to take to upload a relatively small (20GB) image dataset from my local machine to a Google Cloud Platform (GCP) bucket." }, { "code": null, "e": 608, "s": 341, "text": "In this article, ...
Bootstrap 4 .card-footer class
Use the card-footer class in Bootstrap 4 to set the footer of a Bootstrap card. Add it using the class − <div class="card-footer"> Add footer message here </div> The card-footer class comes after the card-header and card-body class − <div class="card"> <div class="card-header">Details</div> <div class="card-body"...
[ { "code": null, "e": 1142, "s": 1062, "text": "Use the card-footer class in Bootstrap 4 to set the footer of a Bootstrap card." }, { "code": null, "e": 1167, "s": 1142, "text": "Add it using the class −" }, { "code": null, "e": 1226, "s": 1167, "text": "<div c...
XQuery - Environment Setup
This chapter elaborates how to set up XQuery library in a local development environment. We are using an open source standalone XQuery processor Saxon Home Edition (Saxon-HE) which is widely used. This processor supports XSLT 2.0, XQuery 3.0, and XPath 3.0 and is highly optimized for performance. Saxon XQuery processor...
[ { "code": null, "e": 1961, "s": 1872, "text": "This chapter elaborates how to set up XQuery library in a local development environment." }, { "code": null, "e": 2303, "s": 1961, "text": "We are using an open source standalone XQuery processor Saxon Home Edition (Saxon-HE) which i...
Java Program to fill an array with random numbers
Let us first crate an array − double[] arr = new double[5]; Now, create Random class object − Random randNum = new Random(); Now, fill the above array with random numbers − for (int i = 0; i < 5; i++) { arr[i] = randNum.nextInt(); } Live Demo import java.util.Arrays; import java.util.Random; public class Demo { pub...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first crate an array −" }, { "code": null, "e": 1122, "s": 1092, "text": "double[] arr = new double[5];" }, { "code": null, "e": 1156, "s": 1122, "text": "Now, create Random class object −" }, { "co...
Introduction to Statistics in Python | by Donald Le | Towards Data Science
Statistics is the discipline that concerns the collection, organization, analysis, interpretation and presentation of data. In applying statistics to a scientific, industrial, or social problem, it is conventional to begin with a statistical population or a statistical model to be studied. is a central or typical value...
[ { "code": null, "e": 463, "s": 172, "text": "Statistics is the discipline that concerns the collection, organization, analysis, interpretation and presentation of data. In applying statistics to a scientific, industrial, or social problem, it is conventional to begin with a statistical population or...
Minimum Increment / decrement to make array elements equal - GeeksforGeeks
26 Apr, 2021 Given an array of integers where . In one operation you can either Increment/Decrement any element by 1. The task is to find the minimum operations needed to be performed on the array elements to make all array elements equal.Examples: Input : A[] = { 1, 5, 7, 10 } Output : 11 Increment 1 by 4, 5 by 0. D...
[ { "code": null, "e": 25121, "s": 25093, "text": "\n26 Apr, 2021" }, { "code": null, "e": 25359, "s": 25121, "text": "Given an array of integers where . In one operation you can either Increment/Decrement any element by 1. The task is to find the minimum operations needed to be pe...
Java Arrays compare() Method with Examples - GeeksforGeeks
29 Dec, 2021 Arrays compare() method in Java comes under the Arrays class and java.util package. This method compares two arrays lexicographically (Dictionary order). There are two different versions of different overloads for Boolean, byte, char, double, float, int, long, short, and Object arrays. This method returns ...
[ { "code": null, "e": 23894, "s": 23866, "text": "\n29 Dec, 2021" }, { "code": null, "e": 24243, "s": 23894, "text": "Arrays compare() method in Java comes under the Arrays class and java.util package. This method compares two arrays lexicographically (Dictionary order). There are...
CBSE Class 12 | Computer Science - Python Syllabus - GeeksforGeeks
04 Sep, 2018 Computer ScienceCLASS-XII (Code No. 083)Optional for the academic year 2019-20 and mandatory for the academic year 2020-21 onwards 1. Prerequisites: Computer Science- Class XI 2. Learning Outcomes: Understand the concept of functions and recursion.Learn how to create and use Python libraries.Learn file han...
[ { "code": null, "e": 25062, "s": 25034, "text": "\n04 Sep, 2018" }, { "code": null, "e": 25193, "s": 25062, "text": "Computer ScienceCLASS-XII (Code No. 083)Optional for the academic year 2019-20 and mandatory for the academic year 2020-21 onwards" }, { "code": null, ...
Google AMP - Caching
Google amp provides caching facility which is a proxy based content delivery network to serve pure amp pages. Amp cache is available by default to all the valid amp pages. It helps in rendering the pages faster in comparison to non amp pages. Currently, there are 2 amp cache providers Google AMP Cache and Cloudflare AM...
[ { "code": null, "e": 2663, "s": 2420, "text": "Google amp provides caching facility which is a proxy based content delivery network to serve pure amp pages. Amp cache is available by default to all the valid amp pages. It helps in rendering the pages faster in comparison to non amp pages." }, { ...
Check if a string is a scrambled form of another string - GeeksforGeeks
16 Dec, 2021 Given two strings S1 and S2 of equal length, the task is to determine if S2 is a scrambled form of S1.Scrambled string: Given string str, we can represent it as a binary tree by partitioning it into two non-empty substrings recursively.Note: Scrambled string is not same as an AnagramBelow is one possible r...
[ { "code": null, "e": 26049, "s": 26021, "text": "\n16 Dec, 2021" }, { "code": null, "e": 26389, "s": 26049, "text": "Given two strings S1 and S2 of equal length, the task is to determine if S2 is a scrambled form of S1.Scrambled string: Given string str, we can represent it as a ...
Date setTime() method in Java with Examples
07 Nov, 2019 The setTime() method of Java Date class sets a date object. It sets date object to represent time milliseconds after January 1, 1970 00:00:00 GMT.Syntax: public void setTime(long time) Parameters: The function accepts a single parameter time which specifies the number of milliseconds. Return Value: It met...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Nov, 2019" }, { "code": null, "e": 182, "s": 28, "text": "The setTime() method of Java Date class sets a date object. It sets date object to represent time milliseconds after January 1, 1970 00:00:00 GMT.Syntax:" }, { "code":...
Find the lexicographically smallest string which satisfies the given condition
09 Jun, 2022 Given an array, arr[] of N integers, where arr[i] represents the number of distinct characters in the prefix of length (i + 1) of a string S. The task is to find the lexicographically smallest string (if any exists) that satisfies the given prefix array. The string should be of lowercase English alphabets ...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Jun, 2022" }, { "code": null, "e": 408, "s": 53, "text": "Given an array, arr[] of N integers, where arr[i] represents the number of distinct characters in the prefix of length (i + 1) of a string S. The task is to find the lexicogr...
Use of COALESCE() function in SQL Server
10 Dec, 2020 Introduction :The SQL Server COALESCE() function is useful to handle NULL values. The NULL values are replaced with the user-given value during the expression value evaluation process. The SQL Server Coalesce function evaluates the expression in a definite order and always results first not null value from...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2020" }, { "code": null, "e": 365, "s": 28, "text": "Introduction :The SQL Server COALESCE() function is useful to handle NULL values. The NULL values are replaced with the user-given value during the expression value evaluation...
Java Program for Longest Common Subsequence
04 Dec, 2018 LCS Problem Statement: Given two sequences, find the length of longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative order, but not necessarily contiguous. For example, “abc”, “abg”, “bdf”, “aeg”, ‘”acefg”, .. etc are subsequences of “abcdefg”. So a stri...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Dec, 2018" }, { "code": null, "e": 415, "s": 52, "text": "LCS Problem Statement: Given two sequences, find the length of longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative orde...
What is a modulo operator (%) in Python?
28 Jul, 2020 When we see a ‘%’ the first thing that comes to our mind is the “Percentage-sign”, but when we think of it from the perspective of computer language, this sign has, in fact, another name and meaning. In computing, the modulo operation(%) finds the remainder or signed remainder after the division of one num...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jul, 2020" }, { "code": null, "e": 413, "s": 52, "text": "When we see a ‘%’ the first thing that comes to our mind is the “Percentage-sign”, but when we think of it from the perspective of computer language, this sign has, in fact, ...
RadioGroup in Kotlin
19 Feb, 2021 RadioGroup class of Kotlin programming language is used to create a container which holds multiple RadioButtons. The RadioGroup class is beneficial for placing a set of radio buttons inside it because this class adds multiple-exclusion scope feature to the radio buttons. This feature assures that the user ...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Feb, 2021" }, { "code": null, "e": 700, "s": 54, "text": "RadioGroup class of Kotlin programming language is used to create a container which holds multiple RadioButtons. The RadioGroup class is beneficial for placing a set of radio...
Update two columns with a single MySQL query
For this, you need to use SET command only once. Let us first create a table − mysql> create table DemoTable1909 ( Id int NOT NULL, FirstName varchar(20), LastName varchar(20) ); Query OK, 0 rows affected (0.00 sec) Insert some records in the table using insert command − mysql> insert into DemoTable1909 ...
[ { "code": null, "e": 1266, "s": 1187, "text": "For this, you need to use SET command only once. Let us first create a table −" }, { "code": null, "e": 1418, "s": 1266, "text": "mysql> create table DemoTable1909\n (\n Id int NOT NULL,\n FirstName varchar(20),\n LastName va...
Maximum sum subarray having sum less than or equal to given sum using Set
14 Jun, 2022 Given an array arr[] of length N and an integer K, the task is the find the maximum sum subarray with a sum less than K. Note: If K is less than the minimum element, then return INT_MIN. Examples: Input: arr[] = {-1, 2, 2}, K = 4 Output: 3 Explanation: The subarray with maximum sum which is less than 4 is...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 173, "s": 52, "text": "Given an array arr[] of length N and an integer K, the task is the find the maximum sum subarray with a sum less than K." }, { "code": null, "e": 239, "s": 17...
InsertionSort - GeeksforGeeks
28 Jun, 2021 Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands. Algorithm// Sort an arr[] of size ninsertionSort(arr, n)Loop from i = 1 to n-1 ... More on Insertion Sort Selection sort makes O(n) swaps which is minimum among all sorting algorithms mentioned above. Consi...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n28 Jun, 2021" }, { "code": null, "e": 29784, "s": 29577, "text": "Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands. Algorithm// Sort an arr[] of size ninsertionSort(arr, n)Loop fr...
Inserting data using a CSV file in Cassandra
31 Mar, 2021 In this article, we will discuss how you can insert data into the table using a CSV file. And we will also cover the implementation with the help of examples. Let’s discuss it one by one. Pre-requisite – Introduction to Cassandra Introduction :If you want to store data in bulk then inserting data from a CS...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Mar, 2021" }, { "code": null, "e": 216, "s": 28, "text": "In this article, we will discuss how you can insert data into the table using a CSV file. And we will also cover the implementation with the help of examples. Let’s discuss it...
Language Translator Using Google API in Python
24 Sep, 2021 API stands for Application Programming Interface. It acts as an intermediate between two applications or software. In simple terms, API acts as a messenger that takes your request to destinations and then brings back its response for you. Google API is developed by Google to allow communications with their...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Sep, 2021" }, { "code": null, "e": 414, "s": 54, "text": "API stands for Application Programming Interface. It acts as an intermediate between two applications or software. In simple terms, API acts as a messenger that takes your re...
Learn R Programming
22 Aug, 2021 R is a Programming Language that is mostly used for machine learning, data analysis, and statistical computing. It is an interpreted language and is platform independent that means it can be used on platforms like Windows, Linux, and macOS. In this R Language tutorial, we will Learn R Programming Language ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Aug, 2021" }, { "code": null, "e": 269, "s": 28, "text": "R is a Programming Language that is mostly used for machine learning, data analysis, and statistical computing. It is an interpreted language and is platform independent that ...
PyQt5 QDateEdit – Getting Date Time
07 Jul, 2020 In this article we will see how we can get the date time of the QDateEdit. User can set date to the date edit with the help of cursor and the keyboard but sometimes there is a need of setting initial date or date programmatically for showing date in the records, which can be done with the help of setDate m...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2020" }, { "code": null, "e": 514, "s": 28, "text": "In this article we will see how we can get the date time of the QDateEdit. User can set date to the date edit with the help of cursor and the keyboard but sometimes there is a...
Autokey Cipher | Symmetric Ciphers
10 May, 2020 Autokey Cipher is a polyalphabetic substitution cipher. It is closely related to the Vigenere cipher but uses a different method of generating the key. It was invented by Blaise de Vigenère in 1586. In general, more secure than the Vigenere cipher. Example-1: Plaintext = "HELLO" Autokey = N Ciphertext = "...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 May, 2020" }, { "code": null, "e": 304, "s": 54, "text": "Autokey Cipher is a polyalphabetic substitution cipher. It is closely related to the Vigenere cipher but uses a different method of generating the key. It was invented by Bla...
How to select first element in the drop-down list using jQuery ?
03 Aug, 2021 Given a drop-down list containing options elements and the task is to get the first element of the select element using JQuery.Approach 1: Select first element of <select> element using JQuery selector. Use .prop() property to get the access to properties of that particular element. Change the selectedIn...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Aug, 2021" }, { "code": null, "e": 169, "s": 28, "text": "Given a drop-down list containing options elements and the task is to get the first element of the select element using JQuery.Approach 1: " }, { "code": null, "e...
Static and Dynamic Scoping
11 Nov, 2021 The scope of a variable x in the region of the program in which the use of x refers to its declaration. One of the basic reasons for scoping is to keep variables in different parts of the program distinct from one another. Since there are only a small number of short variable names, and programmers share h...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Nov, 2021" }, { "code": null, "e": 1503, "s": 54, "text": "The scope of a variable x in the region of the program in which the use of x refers to its declaration. One of the basic reasons for scoping is to keep variables in differen...
OpenCV - Writing an Image
The write() method of the Imgcodecs class is used to write an image using OpenCV. To write an image, repeat the first three steps from the previous example. To write an image, you need to invoke the imwrite() method of the Imgcodecs class. Following is the syntax of this method. imwrite(filename, mat) This method acce...
[ { "code": null, "e": 3295, "s": 3138, "text": "The write() method of the Imgcodecs class is used to write an image using OpenCV. To write an image, repeat the first three steps from the previous example." }, { "code": null, "e": 3378, "s": 3295, "text": "To write an image, you ne...
JavaScript | Statements
05 Jul, 2022 The programming instructions written in a program in a programming language are known as statements. Order of execution of Statements is the same as they are written. Semicolons:Semicolons separate JavaScript statements.Semicolon marks the end of a statement in javascript.Example:<!DOCTYPE html><html> <bo...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Jul, 2022" }, { "code": null, "e": 153, "s": 52, "text": "The programming instructions written in a program in a programming language are known as statements." }, { "code": null, "e": 219, "s": 153, "text": "Orde...
Remove Widgets from grid in Tkinter
01 Apr, 2021 Do you know that you can remove or display the widgets from a grid on a single button click while working in your app? We can remove widgets from the grid by declaring the function for remove with grid_remove() method for every widget and then call that function in the button. Similarly, for displaying the...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Apr, 2021" }, { "code": null, "e": 479, "s": 28, "text": "Do you know that you can remove or display the widgets from a grid on a single button click while working in your app? We can remove widgets from the grid by declaring the fun...
Lua - Strings
String is a sequence of characters as well as control characters like form feed. String can be initialized with three forms which includes − Characters between single quotes Characters between double quotes Characters between [[ and ]] An example for the above three forms are shown below. string1 = "Lua" print("\"Stri...
[ { "code": null, "e": 2378, "s": 2237, "text": "String is a sequence of characters as well as control characters like form feed. String can be initialized with three forms which includes −" }, { "code": null, "e": 2411, "s": 2378, "text": "Characters between single quotes" }, ...
Python – API.followers() in Tweepy
05 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 428, "s": 28, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be twee...
YetAnotherSMSBomber – SMS Bomber in kali linux
17 Jun, 2021 YetAnotherSMSBomber is a free and open-source tool available on GitHub. This tool doesn’t take your phone number, you only have to enter the target phone number and the tool will do the rest of the work. You must ensure that you always install the latest version of YetAnotherSMSBomber from GitHub in order ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2021" }, { "code": null, "e": 688, "s": 28, "text": "YetAnotherSMSBomber is a free and open-source tool available on GitHub. This tool doesn’t take your phone number, you only have to enter the target phone number and the tool w...
refresh driver method – Selenium Python
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 May, 2020" }, { "code": null, "e": 767, "s": 28, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium ...
plt.subplot() or plt.subplots()? Understanding state-based vs. object-oriented programming in Pyplot | by Kaleb Nyquist | Towards Data Science
When I was learning how to code using the Python programming language, the introduction of the Pyplot module (part of the Matplotlib library, here referred to by the alias plt) was particularly non-intuitive...and, honestly, kind of disorientating. For example, the functions plt.subplot() and plt.subplots() may appear ...
[ { "code": null, "e": 874, "s": 172, "text": "When I was learning how to code using the Python programming language, the introduction of the Pyplot module (part of the Matplotlib library, here referred to by the alias plt) was particularly non-intuitive...and, honestly, kind of disorientating. For ex...
File Type Validation while Uploading it using JavaScript - GeeksforGeeks
30 Jul, 2021 In this article, we will learn how to implement file type validation by checking file extension before uploading it using Javascript. This is a demonstration of client-side validation and is implemented to provide a nice user experience. In some cases, client-side validation is a much better method in comp...
[ { "code": null, "e": 24874, "s": 24846, "text": "\n30 Jul, 2021" }, { "code": null, "e": 25240, "s": 24874, "text": "In this article, we will learn how to implement file type validation by checking file extension before uploading it using Javascript. This is a demonstration of cl...
Advanced Ensemble Learning Techniques | by Charu Makhijani | Towards Data Science
In my previous post about ensemble learning, I have explained what is ensemble learning, how it relates with Bias and Variance in machine learning and what are the simple techniques of ensemble learning. If you haven’t read the post, please refer here. In this post I will cover ensemble learning types, advanced ensembl...
[ { "code": null, "e": 424, "s": 171, "text": "In my previous post about ensemble learning, I have explained what is ensemble learning, how it relates with Bias and Variance in machine learning and what are the simple techniques of ensemble learning. If you haven’t read the post, please refer here." ...
Expedia Coding Round Experience - Intern 2021 - GeeksforGeeks
24 Jun, 2021 Coding problems for Expedia Inten 2021: There were 2 coding questions and 6 MCQ’s for the coding round of the Expedia 2021 Intern Round. Question 1: A number of ways to divide objects into groups, such that no group will have fewer objects than previously formed groups? Example: objects=8, groups=4 Answer...
[ { "code": null, "e": 25500, "s": 25472, "text": "\n24 Jun, 2021" }, { "code": null, "e": 25637, "s": 25500, "text": "Coding problems for Expedia Inten 2021: There were 2 coding questions and 6 MCQ’s for the coding round of the Expedia 2021 Intern Round." }, { "code": null...
Python Program to Print all Integers that Aren't Divisible by Either 2 or 3 - GeeksforGeeks
26 Nov, 2020 We can input a set of integer, and check which integers in this range, beginning with 1 are not divisible by 2 or 3, by checking the remainder of the integer with 2 and 3. Example: Input: 10 Output: Numbers not divisible by 2 and 3 1 5 7 Method 1: We check if the number is not divisible by 2 and 3 using ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n26 Nov, 2020" }, { "code": null, "e": 24074, "s": 23901, "text": "We can input a set of integer, and check which integers in this range, beginning with 1 are not divisible by 2 or 3, by checking the remainder of the integer with ...
Object-Oriented Programming in Python — Corey Schafer & DataCamp | by Md Arman Hossen | Towards Data Science
Object-oriented programming (OOP) is a programming paradigm based on “object” which is a way to define something in a programming language containing variable as “field/attributes” and functions as “method”. OOP allows programmers to create their own objects that have methods and attributes. OOP allows a user to create...
[ { "code": null, "e": 544, "s": 171, "text": "Object-oriented programming (OOP) is a programming paradigm based on “object” which is a way to define something in a programming language containing variable as “field/attributes” and functions as “method”. OOP allows programmers to create their own obje...
How to Force User to Change Password at Next Login in Linux?
Because of security concerns, the users in a system are required to update their passwords regularly. In this article we will see how we can force an user to change their password when they login to the system next time. First lets have a look at the users available in the system. $ cut -d: -f1 /etc/passwd Running the ...
[ { "code": null, "e": 1283, "s": 1062, "text": "Because of security concerns, the users in a system are required to update their passwords regularly. In this article we will see how we can force an user to change their password when they login to the system next time." }, { "code": null, ...
Drink Water notification system in Python - GeeksforGeeks
13 Jan, 2021 The idea behind this article is to create a notification system that reminds the user to drink water after a fixed interval of time. The program coded below first asks its user to input time interval for notification. Then until user ends script, it sends repeated notifications to user to drink water. Afte...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n13 Jan, 2021" }, { "code": null, "e": 24685, "s": 24292, "text": "The idea behind this article is to create a notification system that reminds the user to drink water after a fixed interval of time. The program coded below first ...
Understand Data Analysis & Visualisation using Time series data. | by Shamim Ahmed | Towards Data Science
Humanity is blessed to have AI and Data Science because it helps us solve day to day problems. And quite often we encounter time series data in abundance, which has a strong resemblance with our daily activities. In this post, we will learn how to get insights into data using data analysis and understand how data is be...
[ { "code": null, "e": 385, "s": 172, "text": "Humanity is blessed to have AI and Data Science because it helps us solve day to day problems. And quite often we encounter time series data in abundance, which has a strong resemblance with our daily activities." }, { "code": null, "e": 518, ...
NumPy - Iterating Over Array
NumPy package contains an iterator object numpy.nditer. It is an efficient multidimensional iterator object using which it is possible to iterate over an array. Each element of an array is visited using Python’s standard Iterator interface. Let us create a 3X4 array using arange() function and iterate over it using ndi...
[ { "code": null, "e": 2484, "s": 2243, "text": "NumPy package contains an iterator object numpy.nditer. It is an efficient multidimensional iterator object using which it is possible to iterate over an array. Each element of an array is visited using Python’s standard Iterator interface." }, { ...
How to create responsive "Meet The Team" page with CSS?
Following is the code to produce a responsive “meet the team” page using HTML and CSS − Live Demo <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> html { box-sizing: border-box; } body{ font-family: monospace,serif,sans-serif; } img{ height: 300px; ...
[ { "code": null, "e": 1150, "s": 1062, "text": "Following is the code to produce a responsive “meet the team” page using HTML and CSS −" }, { "code": null, "e": 1161, "s": 1150, "text": " Live Demo" }, { "code": null, "e": 3345, "s": 1161, "text": "<!DOCTYPE ht...
Create and Manage Notification Channels in Android
This example demonstrate about Create and Manage Notification Channels 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" ?> <...
[ { "code": null, "e": 1144, "s": 1062, "text": "This example demonstrate about Create and Manage Notification Channels in Android" }, { "code": null, "e": 1273, "s": 1144, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required deta...
React Native - Modal
In this chapter, we will show you how to use the modal component in React Native. Let us now create a new file: ModalExample.js We will put logic inside ModalExample. We can update the initial state by running the toggleModal. After updating the initial state by running the toggleModal, we will set the visible property...
[ { "code": null, "e": 2426, "s": 2344, "text": "In this chapter, we will show you how to use the modal component in React Native." }, { "code": null, "e": 2472, "s": 2426, "text": "Let us now create a new file: ModalExample.js" }, { "code": null, "e": 2571, "s": 24...
Detect Cycle in a Linked List using Map - GeeksforGeeks
29 Oct, 2021 Given a Linked List, check if the linked list has a loop or not.There are various methods shown here: Detect Cycle in Linked List Example Input: 20->4->54->6->NULL Output: No loop is detected. Explanation: While traversing the linked list, we reach the end of the linked list. Therefore, no loop is presen...
[ { "code": null, "e": 24676, "s": 24648, "text": "\n29 Oct, 2021" }, { "code": null, "e": 24806, "s": 24676, "text": "Given a Linked List, check if the linked list has a loop or not.There are various methods shown here: Detect Cycle in Linked List" }, { "code": null, "...
C++ List Library - resize() Function
The C++ function std::list::resize() changes the size of list. If n is smaller than current size then extra elements are destroyed. If n is greater than current container size then new elements are inserted at the end of list. Following is the declaration for std::list::resize() function form std::list header. void res...
[ { "code": null, "e": 2830, "s": 2603, "text": "The C++ function std::list::resize() changes the size of list. If n is smaller than current size then extra elements are destroyed. If n is greater than current container size then new elements are inserted at the end of list." }, { "code": null...
Convert a string to an integer in JavaScript - GeeksforGeeks
26 Jul, 2021 In JavaScript parseInt() function is used to convert the string to an integer. This function returns an integer of base which is specified in second argument of parseInt() function.parseInt() function returns Nan( not a number) when the string doesn’t contain number. Syntax: parseInt(Value, radix) It accep...
[ { "code": null, "e": 24592, "s": 24564, "text": "\n26 Jul, 2021" }, { "code": null, "e": 24860, "s": 24592, "text": "In JavaScript parseInt() function is used to convert the string to an integer. This function returns an integer of base which is specified in second argument of pa...
Program to find sum of given sequence in C++
In this problem, we are given two numbers n and k for a series. Our task is to create a program to find sum of given sequence in C++. The sequence is − (1*2*3*...*k) + (2*3*...k*(k+1)) + (3*4*...*k*k+1*k+2) + ((n-k+1)*(nk+ 2)*... *(n-k+k). Problem description − Here, we will find the sum of the given series till nth te...
[ { "code": null, "e": 1196, "s": 1062, "text": "In this problem, we are given two numbers n and k for a series. Our task is to\ncreate a program to find sum of given sequence in C++." }, { "code": null, "e": 1214, "s": 1196, "text": "The sequence is −" }, { "code": null, ...
DataTables lengthMenu Option - GeeksforGeeks
21 Jul, 2021 DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to be searched, sorted, and filtered according to the needs of the user. The DataTable also exposes a powerful API that can be further used to mod...
[ { "code": null, "e": 25755, "s": 25727, "text": "\n21 Jul, 2021" }, { "code": null, "e": 26093, "s": 25755, "text": "DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also allows the data in the table to...
Set.forEach() function in JavaScript
The forEach() function of the Set object accepts the name of a particular function and runs that function for every value in the current set. For Example, if you have written a function to print a value, if you use forEach() function it prints the value of every element in the set. Its Syntax is as follows setObj.forEa...
[ { "code": null, "e": 1345, "s": 1062, "text": "The forEach() function of the Set object accepts the name of a particular function and runs that function for every value in the current set. For Example, if you have written a function to print a value, if you use forEach() function it prints the value...
What is Kestrel and how does it differ from IIS? (ASP.NET)
Kestrel is a lightweight, cross-platform, and open-source web server for ASP.NET Core. It is included and enabled by default in ASP.NET Core. Kestrel is supported on all platforms and versions supported by .NET Core. In the Program class, the ConfigureWebHostDefaults() method configures Kestrel as the web server for th...
[ { "code": null, "e": 1279, "s": 1062, "text": "Kestrel is a lightweight, cross-platform, and open-source web server for ASP.NET Core. It is included and enabled by default in ASP.NET Core. Kestrel is supported on all platforms and versions supported by .NET Core." }, { "code": null, "e":...
Python unittest - assertAlmostEqual() function - GeeksforGeeks
29 Aug, 2020 assertAlmostEqual() in Python is a unittest library function that is used in unit testing to check whether two given values are almost equal or not. This function will take five parameters as input and return a boolean value depending upon the assert condition. This function check that first and second ar...
[ { "code": null, "e": 24514, "s": 24486, "text": "\n29 Aug, 2020" }, { "code": null, "e": 24777, "s": 24514, "text": "assertAlmostEqual() in Python is a unittest library function that is used in unit testing to check whether two given values are almost equal or not. This function ...
How To Implement Custom Regularization in TensorFlow(Keras) | by Richmond Alake | Towards Data Science
This article introduces the topic of regularization within neural networks. It includes details on how machine learning engineers and data scientist can go about implementing custom regularization techniques. Regularization techniques reduce the possibility of a neural network overfitting by constraining the range of v...
[ { "code": null, "e": 256, "s": 47, "text": "This article introduces the topic of regularization within neural networks. It includes details on how machine learning engineers and data scientist can go about implementing custom regularization techniques." }, { "code": null, "e": 421, "...
SAS - Arrays
Arrays in SAS are used to store and retrieve a series of values using an index value. The index represents the location in a reserved memory area. In SAS an array is declared by using the following syntax − ARRAY ARRAY-NAME(SUBSCRIPT) ($) VARIABLE-LIST ARRAY-VALUES In the above syntax − ARRAY is the SAS keyword to dec...
[ { "code": null, "e": 2730, "s": 2583, "text": "Arrays in SAS are used to store and retrieve a series of values using an index value. The index represents the location in a reserved memory area." }, { "code": null, "e": 2790, "s": 2730, "text": "In SAS an array is declared by usin...
Get or Set Dimensions of a Matrix in R Programming - dim() Function - GeeksforGeeks
04 Jun, 2020 dim() function in R Language is used to get or set the dimension of the specified matrix, array or data frame. Syntax: dim(x) Parameters:x: array, matrix or data frame. Example 1: # R program to illustrate# dim function # Getting R Biochemical Oxygen Demand DatasetBOD # Getting dimension of the above da...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n04 Jun, 2020" }, { "code": null, "e": 25353, "s": 25242, "text": "dim() function in R Language is used to get or set the dimension of the specified matrix, array or data frame." }, { "code": null, "e": 25368, "s":...