title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Computer Programming - Functions
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. You have already seen various functions like printf() and main(). These are called built-in functions provided by the language i...
[ { "code": null, "e": 2607, "s": 2140, "text": "A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. You have already seen various functions like printf() and mai...
How to create train, test and validation samples from an R data frame?
To create predictive models, it is necessary to create three subsets of a data set for the purpose of training the model, testing the model and checking the validation of the model. These subsets are usually called train, test and validation. For this purpose, we can use different type of sampling methods and the most ...
[ { "code": null, "e": 1463, "s": 1062, "text": "To create predictive models, it is necessary to create three subsets of a data set for the purpose of training the model, testing the model and checking the validation of the model. These subsets are usually called train, test and validation. For this p...
How to make two plots side-by-side using Python?
Using subplot(row, col, index) method, we can split a figure in row*col parts, and can plot the figure at the index position. In the following program, we will create two diagrams in a single figure. Creating x, y1, y2 points using numpy. Creating x, y1, y2 points using numpy. With nrows = 1, ncols = 2, index = 1, add ...
[ { "code": null, "e": 1262, "s": 1062, "text": "Using subplot(row, col, index) method, we can split a figure in row*col parts, and can plot the figure at the index position. In the following program, we will create two diagrams in a single figure." }, { "code": null, "e": 1301, "s": 1...
Random password generator in C - GeeksforGeeks
20 Jan, 2021 In this article, we will discuss how to generate a random password of a given length consists of any characters. Approach: The below-given program involves basic concepts like variables, data types, array, loop, etc. Follow the below steps to solve this problem:Take the length of the password and declare a...
[ { "code": null, "e": 24431, "s": 24403, "text": "\n20 Jan, 2021" }, { "code": null, "e": 24544, "s": 24431, "text": "In this article, we will discuss how to generate a random password of a given length consists of any characters." }, { "code": null, "e": 24554, "s...
Power BI: Implement AND/OR Selection | by ZhongTr0n | Towards Data Science
Power BI is really growing on me. Using this software everyday, I am amazed by the capabilities of this product and the way it improves month after month by adding new features or optimizing current capabilities. However, like any software solution, there is still room for improvement and a lack of some features that w...
[ { "code": null, "e": 384, "s": 171, "text": "Power BI is really growing on me. Using this software everyday, I am amazed by the capabilities of this product and the way it improves month after month by adding new features or optimizing current capabilities." }, { "code": null, "e": 725, ...
Apache Presto - Configuration Settings
This chapter will discuss the configuration settings for Presto. The Presto Verifier can be used to test Presto against another database (such as MySQL), or to test two Presto clusters against each other. Open MySQL server and create a database using the following command. create database test Now you have created β€œte...
[ { "code": null, "e": 2071, "s": 2006, "text": "This chapter will discuss the configuration settings for Presto." }, { "code": null, "e": 2211, "s": 2071, "text": "The Presto Verifier can be used to test Presto against another database (such as MySQL), or to test two Presto cluste...
Operating System - Quick Guide
An Operating System (OS) is an interface between a computer user and computer hardware. An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers. Some p...
[ { "code": null, "e": 2228, "s": 1914, "text": "An Operating System (OS) is an interface between a computer user and computer hardware. An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and cont...
Java Math
The Java Math class has many methods that allows you to perform mathematical tasks on numbers. The Math.max(x,y) method can be used to find the highest value of x and y: Math.max(5, 10); Try it Yourself Β» The Math.min(x,y) method can be used to find the lowest value of x and y: Math.min(5, 10); Try it Yourself Β» ...
[ { "code": null, "e": 95, "s": 0, "text": "The Java Math class has many methods that allows you to perform mathematical tasks on numbers." }, { "code": null, "e": 170, "s": 95, "text": "The Math.max(x,y) method can be used to find the highest value of x and\ny:" }, { "code...
What is a virtual base class in C++?
The virtual base class is used when a derived class has multiple copies of the base class. #include <iostream> using namespace std; class B { public: int b; }; class D1 : public B { public: int d1; }; class D2 : public B { public: int d2; }; class D3 : public D1, public D2 { public: int d3; }; int main(...
[ { "code": null, "e": 1153, "s": 1062, "text": "The virtual base class is used when a derived class has multiple copies of the base class." }, { "code": null, "e": 1662, "s": 1153, "text": "#include <iostream>\nusing namespace std;\nclass B {\n public: int b;\n};\n\nclass D1 : p...
Slope charts with Python’s Matplotlib | by Thiago Carvalho | Towards Data Science
With a straightforward format that can effortlessly illustrate changes and rank variables, Slope charts are more than just an over-glorified line chart. They have earned their place in data visualization and can be a great addition to your reports and dashboards. In this article, we’ll explore how to plot them with Mat...
[ { "code": null, "e": 325, "s": 172, "text": "With a straightforward format that can effortlessly illustrate changes and rank variables, Slope charts are more than just an over-glorified line chart." }, { "code": null, "e": 436, "s": 325, "text": "They have earned their place in d...
Sorting Objects in Python. Sorting Objects of the same Class | by Sadrach Pierre, Ph.D. | Towards Data Science
In computer science, classes are blueprints for defining objects with related attributes and methods. A common task in computer science is sorting data structures based on attributes. In this post, we will discuss how to sort objects of the same class based on attribute values. Let’s get started! Suppose we have a clas...
[ { "code": null, "e": 451, "s": 172, "text": "In computer science, classes are blueprints for defining objects with related attributes and methods. A common task in computer science is sorting data structures based on attributes. In this post, we will discuss how to sort objects of the same class bas...
Interactive Geospatial Data Visualization with Geoviews in Python | by Abdishakur | Towards Data Science
Interactive Data Visualization has become an integral part of the Data Science process in order to experiment and carry out the first explorative process in data science. There are few options to visualize Geographic data interactively in the Python ecosystem, However, I think Geoviews offers both an easy to use High-l...
[ { "code": null, "e": 534, "s": 171, "text": "Interactive Data Visualization has become an integral part of the Data Science process in order to experiment and carry out the first explorative process in data science. There are few options to visualize Geographic data interactively in the Python ecosy...
Create your first ETL Pipeline in Apache Spark and Python | by Adnan Siddiqi | Towards Data Science
In this post, I am going to discuss Apache Spark and how you can create simple but robust ETL pipelines in it. You will learn how Spark provides APIs to transform different data format into Data frames and SQL for analysis purpose and how one data source could be transformed into another without any hassle. According t...
[ { "code": null, "e": 480, "s": 171, "text": "In this post, I am going to discuss Apache Spark and how you can create simple but robust ETL pipelines in it. You will learn how Spark provides APIs to transform different data format into Data frames and SQL for analysis purpose and how one data source ...
Embedding Tableau in Streamlit. How to view your Tableau dashboard on... | by Okoh Anita | Towards Data Science
As 2020 draws to its ends (hopefully along with its chaos), I took a step back to reminisce about all the tools/skills I have picked up this year and all the tools I really didn’t use so much this year. One tool I really didn’t use so much is Tableau. Tableau is a powerful data visualization tool that creates visually-...
[ { "code": null, "e": 424, "s": 172, "text": "As 2020 draws to its ends (hopefully along with its chaos), I took a step back to reminisce about all the tools/skills I have picked up this year and all the tools I really didn’t use so much this year. One tool I really didn’t use so much is Tableau." ...
How to Get Data from APIs with Python 🐍 | by Jeff Hale | Towards Data Science
It’s a bit of a cliche to say that data is the new oil. I like to think of it more as a renewable resource like wind.πŸ’¨ Whatever energy source you choose as your metaphor, you want to harness some of its power! ⚑️ Ideally, you have direct access to the data you want in a file or a database you control. When that’s not ...
[ { "code": null, "e": 384, "s": 171, "text": "It’s a bit of a cliche to say that data is the new oil. I like to think of it more as a renewable resource like wind.πŸ’¨ Whatever energy source you choose as your metaphor, you want to harness some of its power! ⚑️" }, { "code": null, "e": 579,...
Kth Smallest Element in a BST in Python
Suppose we have a binary search tree. We have to find the Kth smallest element in that BST. So if the tree is like βˆ’ So if we want to find 3rd smallest element, then k = 3, and result will be 7. To solve this, we will follow these steps βˆ’ create one empty list called nodes call solve(root, nodes) return k – 1th element...
[ { "code": null, "e": 1179, "s": 1062, "text": "Suppose we have a binary search tree. We have to find the Kth smallest element in that BST. So if the tree is like βˆ’" }, { "code": null, "e": 1257, "s": 1179, "text": "So if we want to find 3rd smallest element, then k = 3, and resul...
How to Sort an ArrayList of Objects by Property in Java? - GeeksforGeeks
28 Dec, 2020 ArrayList in Java (equivalent to vector in C++) having a dynamic size. It can be shrinked or expanded based on size. ArrayList is a part of the collection framework and is present in java.util package. ArrayList <E> list = new ArrayList <> (); Approach 1: In the below program, we’ve defined a CustomObject ...
[ { "code": null, "e": 23581, "s": 23553, "text": "\n28 Dec, 2020" }, { "code": null, "e": 23783, "s": 23581, "text": "ArrayList in Java (equivalent to vector in C++) having a dynamic size. It can be shrinked or expanded based on size. ArrayList is a part of the collection framewor...
Max sum in the configuration | Practice | GeeksforGeeks
Given an array(0-based indexing), you have to find the max sum of i*A[i] where A[i] is the element at index i in the array. The only operation allowed is to rotate(clock-wise or counter clock-wise) the array any number of times. Example 1: Input: N = 4 A[] = {8,3,1,2} Output: 29 Explanation: Above the configuration pos...
[ { "code": null, "e": 467, "s": 238, "text": "Given an array(0-based indexing), you have to find the max sum of i*A[i] where A[i] is the element at index i in the array. The only operation allowed is to rotate(clock-wise or counter clock-wise) the array any number of times." }, { "code": null...
Sentiment Analysis of Twitter’s US Airlines Data using KNN Classification | by Momin Mehmood Butt | Towards Data Science
Sentiment analysis refers to the use of natural language processing, text analysis, and computational linguistics to systematically identify, extract, quantify, and study effective states and subjective information. Sentiment analysis is widely applied to customer materials such as reviews and survey responses. The mos...
[ { "code": null, "e": 637, "s": 171, "text": "Sentiment analysis refers to the use of natural language processing, text analysis, and computational linguistics to systematically identify, extract, quantify, and study effective states and subjective information. Sentiment analysis is widely applied to...
What is activation function ?. One of most important parts of neural... | by Christophe Pere | Towards Data Science
The activation function defines the output of a neuron / node given an input or set of input (output of multiple neurons). It’s the mimic of the stimulation of a biological neuron. The output of the activation function to the next layer (in shallow neural network: input layer and output layer, and in deep network to th...
[ { "code": null, "e": 352, "s": 171, "text": "The activation function defines the output of a neuron / node given an input or set of input (output of multiple neurons). It’s the mimic of the stimulation of a biological neuron." }, { "code": null, "e": 640, "s": 352, "text": "The o...
Python Identity Operators Example
Identity operators compare the memory locations of two objects. There are two Identity operators as explained below βˆ’ #!/usr/bin/python a = 20 b = 20 if ( a is b ): print "Line 1 - a and b have same identity" else: print "Line 1 - a and b do not have same identity" if ( id(a) == id(b) ): print "Line 2 - a a...
[ { "code": null, "e": 2362, "s": 2244, "text": "Identity operators compare the memory locations of two objects. There are two Identity operators as explained below βˆ’" }, { "code": null, "e": 2907, "s": 2362, "text": "#!/usr/bin/python\n\na = 20\nb = 20\n\nif ( a is b ):\n print ...
Creating SVG Image using PyCairo - GeeksforGeeks
12 Nov, 2020 In this article we will see how we can create SVG file using PyCairo in Python. SVG : An SVG file is a graphics file that uses a two-dimensional graphic vector format that defines images using an XML-based text format. As a standard format for showing vector graphics on the web, SVG files are developed. P...
[ { "code": null, "e": 24190, "s": 24162, "text": "\n12 Nov, 2020" }, { "code": null, "e": 24271, "s": 24190, "text": "In this article we will see how we can create SVG file using PyCairo in Python. " }, { "code": null, "e": 24496, "s": 24271, "text": "SVG : An ...
Writing data to a file using BufferedWriter class in Java
The BufferedWriter class of Java is used to write a stream of characters to the specified destination (character-output stream). It initially stores all the characters in a buffer and pushes the contents of the buffer to the destination, making the writing of characters, arrays and Strings efficient. You can specify th...
[ { "code": null, "e": 1364, "s": 1062, "text": "The BufferedWriter class of Java is used to write a stream of characters to the specified destination (character-output stream). It initially stores all the characters in a buffer and pushes the contents of the buffer to the destination, making the writ...
PL/SQL - Procedures
In this chapter, we will discuss Procedures in PL/SQL. A subprogram is a program unit/module that performs a particular task. These subprograms are combined to form larger programs. This is basically called the 'Modular design'. A subprogram can be invoked by another subprogram or program which is called the calling pr...
[ { "code": null, "e": 2392, "s": 2065, "text": "In this chapter, we will discuss Procedures in PL/SQL. A subprogram is a program unit/module that performs a particular task. These subprograms are combined to form larger programs. This is basically called the 'Modular design'. A subprogram can be invo...
What is C unconditional jump statements?
C programming language allows jumping from one statement to another. It also supports break, continue, return and go to jump statements. It is a keyword which is used to terminate the loop (or) exit from the block. The control jumps to next statement after the loop (or) block. break is used with for, while, do-while an...
[ { "code": null, "e": 1199, "s": 1062, "text": "C programming language allows jumping from one statement to another. It also supports break, continue, return and go to jump statements." }, { "code": null, "e": 1277, "s": 1199, "text": "It is a keyword which is used to terminate th...
Java.net.URLEncoder class in Java - GeeksforGeeks
16 Jun, 2017 This class is a utility class for HTML form encoding. Encoding makes the form of URL more reliable and secure. When the user request is triggered by a get method, the form parameters and their values are appended at the end of URL after a β€˜?’ sign. The problem arises when special characters are used for th...
[ { "code": null, "e": 23581, "s": 23553, "text": "\n16 Jun, 2017" }, { "code": null, "e": 24260, "s": 23581, "text": "This class is a utility class for HTML form encoding. Encoding makes the form of URL more reliable and secure. When the user request is triggered by a get method, ...
How to get the Daily News using Python | by Mukundan Sankar | Towards Data Science
Did you ever wonder how you can get the latest news programmatically? News API is one such module in Python which helps you in this. It has data from about 120 sources including Reuters, BBC News, ABC News, ESPN. newsapi.org Firstly, get the API key from NewsAPI to begin extracting news articles. You can see more on ho...
[ { "code": null, "e": 384, "s": 171, "text": "Did you ever wonder how you can get the latest news programmatically? News API is one such module in Python which helps you in this. It has data from about 120 sources including Reuters, BBC News, ABC News, ESPN." }, { "code": null, "e": 396, ...
Speed up your Pandas Processing with Swifter | by Cornellius Yudha Wijaya | Towards Data Science
As a Pythonist Data Scientist, your daily job would involve a lot of data processing and feature engineering using the Pandas package. From analyzing data to create a new feature to gain insight, forcing you to execute many different codes repeatedly. The problem is the bigger your data, the longer time to finish runni...
[ { "code": null, "e": 513, "s": 171, "text": "As a Pythonist Data Scientist, your daily job would involve a lot of data processing and feature engineering using the Pandas package. From analyzing data to create a new feature to gain insight, forcing you to execute many different codes repeatedly. The...
Java Examples - Multiple exception (divided by zero)
How to use handle multiple exceptions (devided by zero) ? This example shows how to handle multiple exceptions while deviding by zero ? public class Main { public static void main (String args[]) { int array[] = {20,20,40}; int num1 = 15, num2 = 0; int result = 0; try { result = num1...
[ { "code": null, "e": 2126, "s": 2068, "text": "How to use handle multiple exceptions (devided by zero) ?" }, { "code": null, "e": 2204, "s": 2126, "text": "This example shows how to handle multiple exceptions while deviding by zero ?" }, { "code": null, "e": 2806, ...
How do I insert a NULL value in MySQL?
To insert a NULL value, you can use UPDATE command. Following is the syntax βˆ’ UPDATE yourTableName SET yourColumnName=NULL; Let us first create a table βˆ’ mysql> create table insertNullValue -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> ClientName varchar(100), -> ClientCountryName varchar(20) ->...
[ { "code": null, "e": 1140, "s": 1062, "text": "To insert a NULL value, you can use UPDATE command. Following is the syntax βˆ’" }, { "code": null, "e": 1186, "s": 1140, "text": "UPDATE yourTableName SET yourColumnName=NULL;" }, { "code": null, "e": 1216, "s": 1186, ...
Plotting charts with Seaborn. Create attractive, intriguing charts... | by Jenny Dcruz | Towards Data Science
Seaborn is a powerful Python library which was created for enhancing data visualizations. It provides a large number of high-level interfaces to Matplotlib. Seaborn works well with dataframes while Matplotlib doesn’t. It lets you plot striking charts in a much simpler way. For better understanding of this article, you ...
[ { "code": null, "e": 446, "s": 172, "text": "Seaborn is a powerful Python library which was created for enhancing data visualizations. It provides a large number of high-level interfaces to Matplotlib. Seaborn works well with dataframes while Matplotlib doesn’t. It lets you plot striking charts in a...
Java Examples - Display hour and minute
How to display hour and minute (current time)? This example demonstrates how to display the hour and minute of that moment by using Calender.getInstance() of Calender class. import java.util.Calendar; import java.util.Formatter; public class MainClass{ public static void main(String args[]) { Formatter fmt = ...
[ { "code": null, "e": 2115, "s": 2068, "text": "How to display hour and minute (current time)?" }, { "code": null, "e": 2242, "s": 2115, "text": "This example demonstrates how to display the hour and minute of that moment by using Calender.getInstance() of Calender class." }, ...
Equal Sum and XOR of three Numbers - GeeksforGeeks
17 Aug, 2021 Given an integer N. The task is to count the numbers of pairs of integers A and B such that A + B + N = A ^ B ^ N and A and B are less than N.Examples: Input: N = 2 Output: 3 Explanation:- For N = 2 2 XOR 0 XOR 0 = 2+0+0 2 XOR 0 XOR 1 = 2+0+1 2 XOR 0 XOR 2 != 2+0+2 2 XOR 1 XOR 0 = 2+1+0 2 XOR 1 XOR 1 != ...
[ { "code": null, "e": 25036, "s": 25008, "text": "\n17 Aug, 2021" }, { "code": null, "e": 25190, "s": 25036, "text": "Given an integer N. The task is to count the numbers of pairs of integers A and B such that A + B + N = A ^ B ^ N and A and B are less than N.Examples: " }, {...
Check if the given push and pop sequences of Stack is valid or not - GeeksforGeeks
14 May, 2021 Given push[] and pop[] sequences with distinct values. The task is to check if this could have been the result of a sequence of push and pop operations on an initially empty stack. Return β€œTrue” if it otherwise returns β€œFalse”.Examples: Input: pushed = { 1, 2, 3, 4, 5 }, popped = { 4, 5, 3, 2, 1 } Output...
[ { "code": null, "e": 25695, "s": 25667, "text": "\n14 May, 2021" }, { "code": null, "e": 25934, "s": 25695, "text": "Given push[] and pop[] sequences with distinct values. The task is to check if this could have been the result of a sequence of push and pop operations on an initi...
How to count the number of documents in a MongoDB collection?
Following is the syntax to count the number of documents in a MongoDB collection let anyVariableName= db.getCollection(β€˜yourCollectionName’); yourVariableName.count(); Let us first create a collection with documents > db.countNumberOfDocumentsDemo.insertOne({"CustomerName":"Bob"}); { "acknowledged" : true, "inser...
[ { "code": null, "e": 1143, "s": 1062, "text": "Following is the syntax to count the number of documents in a MongoDB collection" }, { "code": null, "e": 1230, "s": 1143, "text": "let anyVariableName= db.getCollection(β€˜yourCollectionName’);\nyourVariableName.count();" }, { ...
Joining Datasets with Python’s Pandas | by Thiago Carvalho | Towards Data Science
It’s definitely not uncommon to work with more than one dataset when performing your analysis. Therefore, there’s an abundant amount of methods to bring this data together. SQL call those operations β€˜Joins’ or β€˜Unions’; in other languages and tools, you may find functions like Merge or LookUp to do the job. In this art...
[ { "code": null, "e": 220, "s": 47, "text": "It’s definitely not uncommon to work with more than one dataset when performing your analysis. Therefore, there’s an abundant amount of methods to bring this data together." }, { "code": null, "e": 356, "s": 220, "text": "SQL call those...
How to eliminate repeated lines in a python function?
Let us name the given text file as bar.txt We use file handling methods in python to remove duplicate lines in python text file or function. The text file or function has to be in the same directory as the python program file. Following code is one way of removing duplicates in a text file bar.txt and the output is sto...
[ { "code": null, "e": 1105, "s": 1062, "text": "Let us name the given text file as bar.txt" }, { "code": null, "e": 1489, "s": 1105, "text": "We use file handling methods in python to remove duplicate lines in python text file or function. The text file or function has to be in th...
Customizing Fonts in Flutter - GeeksforGeeks
11 Feb, 2021 Customization is everywhere, from documents to apps, we can customize everything as we want to. The power of customization is humongous, that it has revolutionized the way we look at technology in this world. Just like how printing β€œHello World”, is the basic step towards learning a new programming languag...
[ { "code": null, "e": 25549, "s": 25521, "text": "\n11 Feb, 2021" }, { "code": null, "e": 25985, "s": 25549, "text": "Customization is everywhere, from documents to apps, we can customize everything as we want to. The power of customization is humongous, that it has revolutionized...
Stock predictions with Transformer and Time Embeddings | Towards Data Science
In my previous post, I have shared my first research results for predicting stock prices which will be subsequently used as input for a deep learning trading bot. While upscaling my datasets to thousands of equity tickers equating to almost 1 Terabyte of stock price histories and news articles, I have come to realize t...
[ { "code": null, "e": 779, "s": 171, "text": "In my previous post, I have shared my first research results for predicting stock prices which will be subsequently used as input for a deep learning trading bot. While upscaling my datasets to thousands of equity tickers equating to almost 1 Terabyte of ...
Delegation in Kotlin - GeeksforGeeks
27 Jul, 2020 Delegation controls the allocation of power/authority from an instance to another for any object. For classes and functions implementations, delegations can be used on static as well as mutable relations between them. Inheritance implementation in classes and functions can be altered with the help of deleg...
[ { "code": null, "e": 24518, "s": 24490, "text": "\n27 Jul, 2020" }, { "code": null, "e": 24994, "s": 24518, "text": "Delegation controls the allocation of power/authority from an instance to another for any object. For classes and functions implementations, delegations can be use...
Unix / Linux - Environment
In this chapter, we will discuss in detail about the Unix environment. An important Unix concept is the environment, which is defined by environment variables. Some are set by the system, others by you, yet others by the shell, or any program that loads another program. A variable is a character string to which we assi...
[ { "code": null, "e": 3018, "s": 2747, "text": "In this chapter, we will discuss in detail about the Unix environment. An important Unix concept is the environment, which is defined by environment variables. Some are set by the system, others by you, yet others by the shell, or any program that loads...
How to make Marquee text in Android?
This example demonstrate about how to make Marquee text 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"?> <RelativeLayout...
[ { "code": null, "e": 1130, "s": 1062, "text": "This example demonstrate about how to make Marquee text in Android." }, { "code": null, "e": 1259, "s": 1130, "text": "Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all required details to create ...
How can I convert an array to an object by splitting strings? JavaScript
Let’s say, we have an array of strings in which each value each element has a dash (-), left to which we have our key and right to which we have our value. Our job is to split these strings and form an object out of this array. Here is the sample array βˆ’ const arr = ["name-Rakesh", "age-23", "city-New Delhi", "jobType-...
[ { "code": null, "e": 1290, "s": 1062, "text": "Let’s say, we have an array of strings in which each value each element has a dash (-), left to\nwhich we have our key and right to which we have our value. Our job is to split these strings and\nform an object out of this array." }, { "code": n...
Find pair with maximum GCD in an array - GeeksforGeeks
20 May, 2021 We are given an array of positive integers. Find the pair in array with maximum GCD.Examples: Input : arr[] : { 1 2 3 4 5 } Output : 2 Explanation : Pair {2, 4} has GCD 2 which is highest. Other pairs have a GCD of 1. Input : arr[] : { 2 3 4 8 8 11 12 } Output : 8 Explanation : Pair {8, 8} has GCD 8 whi...
[ { "code": null, "e": 24548, "s": 24520, "text": "\n20 May, 2021" }, { "code": null, "e": 24644, "s": 24548, "text": "We are given an array of positive integers. Find the pair in array with maximum GCD.Examples: " }, { "code": null, "e": 24870, "s": 24644, "te...
Swap nodes in a linked list without swapping data - GeeksforGeeks
25 Feb, 2022 Given a linked list and two keys in it, swap nodes for two given keys. Nodes should be swapped by changing links. Swapping data of nodes may be expensive in many situations when data contains many fields. It may be assumed that all keys in the linked list are distinct. Examples: Input : 10->15->12->13->2...
[ { "code": null, "e": 30932, "s": 30904, "text": "\n25 Feb, 2022" }, { "code": null, "e": 31138, "s": 30932, "text": "Given a linked list and two keys in it, swap nodes for two given keys. Nodes should be swapped by changing links. Swapping data of nodes may be expensive in many s...
Merging with AI: How to Make a Brain-Computer Interface to Communicate with Google using Keras and OpenBCI | by Jag Singh | Towards Data Science
Elon Musk and Neuralink want to build a Brain-Computer Interface that can act as the third layer of the brain, allowing humans to form a symbiotic relationship with Artificial Intelligence. But what if you can already do that? In a (very) limited form, you actually can. Brain-Computer Interface (BCI) broadly refers to ...
[ { "code": null, "e": 361, "s": 171, "text": "Elon Musk and Neuralink want to build a Brain-Computer Interface that can act as the third layer of the brain, allowing humans to form a symbiotic relationship with Artificial Intelligence." }, { "code": null, "e": 398, "s": 361, "text...
Convert BST to Max Heap - GeeksforGeeks
01 Feb, 2022 Given a Binary Search Tree which is also a Complete Binary Tree. The problem is to convert a given BST into a Special Max Heap with the condition that all the values in the left subtree of a node should be less than all the values in the right subtree of the node. This condition is applied on all the nodes...
[ { "code": null, "e": 25146, "s": 25118, "text": "\n01 Feb, 2022" }, { "code": null, "e": 25496, "s": 25146, "text": "Given a Binary Search Tree which is also a Complete Binary Tree. The problem is to convert a given BST into a Special Max Heap with the condition that all the valu...
ASP.NET - Configuration
The behavior of an ASP.NET application is affected by different settings in the configuration files: machine.config web.config The machine.config file contains default and the machine-specific value for all supported settings. The machine settings are controlled by the system administrator and applications are generall...
[ { "code": null, "e": 2448, "s": 2347, "text": "The behavior of an ASP.NET application is affected by different settings in the configuration files:" }, { "code": null, "e": 2463, "s": 2448, "text": "machine.config" }, { "code": null, "e": 2474, "s": 2463, "tex...
How to Show Gridlines on Matplotlib Plots? - GeeksforGeeks
28 Nov, 2021 In this article, we will see how we can add gridlines to a matplotlib graph and various configurable parameters that can be used in Python. Example: Create a matplotlib plot using sample data. Python # Importing the libraryimport matplotlib.pyplot as plt # Define X and Y data pointsX = [12, 34, 23, 45, 6...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n28 Nov, 2021" }, { "code": null, "e": 24041, "s": 23901, "text": "In this article, we will see how we can add gridlines to a matplotlib graph and various configurable parameters that can be used in Python." }, { "code": n...
A short tutorial on Fuzzy Time Series β€” Part II | by PetroΜ‚nio Silva | Towards Data Science
In the first part of this tutorial I briefly explained time series analysis, fuzzy sets and what are the Fuzzy Time Series β€” FTS, with a short introduction to the pyFTS library. It was awesome! I got feedback from people around the world and I heard very good ideas coming from them. But, as occurs in every introductory...
[ { "code": null, "e": 610, "s": 171, "text": "In the first part of this tutorial I briefly explained time series analysis, fuzzy sets and what are the Fuzzy Time Series β€” FTS, with a short introduction to the pyFTS library. It was awesome! I got feedback from people around the world and I heard very ...
Replace even nodes of a doubly linked list with the elements of array - GeeksforGeeks
03 Nov, 2021 Given a doubly linked list and an array with only odd values. Both are of equal size N. The task is replace all node which have even value with the Array elements from left to right. Examples: Input : List = 6 9 8 7 4 Arr[] = {3, 5, 23, 17, 1} Output : List = 3 9 5 7 23Input : List = 9 14 7 12 8 13 Arr[]...
[ { "code": null, "e": 24740, "s": 24712, "text": "\n03 Nov, 2021" }, { "code": null, "e": 24924, "s": 24740, "text": "Given a doubly linked list and an array with only odd values. Both are of equal size N. The task is replace all node which have even value with the Array elements ...
How to fetch data from a local JSON file in React Native ? - GeeksforGeeks
01 Sep, 2021 Fetching JSON (JavaScript Object Notation) data in React Native from Local (E.g. IOS/Android storage) is different from fetching JSON data from a server (using Fetch or Axios). It requires Storage permission for APP and a Library to provide Native filesystem access. Implementation: Now let’s start with the...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n01 Sep, 2021" }, { "code": null, "e": 25176, "s": 24909, "text": "Fetching JSON (JavaScript Object Notation) data in React Native from Local (E.g. IOS/Android storage) is different from fetching JSON data from a server (using Fet...
Sort list elements in descending order in C#
The following is our list with elements βˆ’ IList<Employee> emp = new List<Employee>() { new Employee() { EmployeeRank = 4, EmpName = "Amit", EmpMarks = 90 } , new Employee() { EmployeeRank = 05, EmpName = "Raman", EmpMarks = 95 } }; Now use orderby and descending to sort elements in descending order. var res = fro...
[ { "code": null, "e": 1104, "s": 1062, "text": "The following is our list with elements βˆ’" }, { "code": null, "e": 1300, "s": 1104, "text": "IList<Employee> emp = new List<Employee>() {\n new Employee() { EmployeeRank = 4, EmpName = \"Amit\", EmpMarks = 90 } ,\n new Employee()...
Create a Pie Chart using Recharts in ReactJS - GeeksforGeeks
27 Jul, 2021 Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help of React and D3 (Data-Driven Documents). To create Pie Chart using Recharts, we create a dataset which contains actual data. Then ...
[ { "code": null, "e": 25312, "s": 25284, "text": "\n27 Jul, 2021" }, { "code": null, "e": 25530, "s": 25312, "text": "Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, wi...
VB.Net - Nested Loops
VB.Net allows using one loop inside another loop. Following section shows few examples to illustrate the concept. The syntax for a nested For loop statement in VB.Net is as follows βˆ’ For counter1 [ As datatype1 ] = start1 To end1 [ Step step1 ] For counter2 [ As datatype2 ] = start2 To end2 [ Step step2 ] ......
[ { "code": null, "e": 2414, "s": 2300, "text": "VB.Net allows using one loop inside another loop. Following section shows few examples to illustrate the concept." }, { "code": null, "e": 2484, "s": 2414, "text": "The syntax for a nested For loop statement in VB.Net is as follows ...
Software Design Complexity
The term complexity stands for state of events or things, which have multiple interconnected links and highly complicated structures. In software programming, as the design of software is realized, the number of elements and their interconnections gradually emerge to be huge, which becomes too difficult to understand ...
[ { "code": null, "e": 2366, "s": 2037, "text": "The term complexity stands for state of events or things, which have multiple interconnected links and highly complicated structures. In software programming, as the design of software is realized, the number of elements and their interconnections grad...
Get greatest repetitive item in array JavaScript
We have an array of Number / String literals that contains some values (some are repetitive as well). Our job is to write a function that returns the element from the array which appears for the greatest number of times in the array. For example βˆ’ if the input array is βˆ’ const input = ['a', 'v', 'k', 'f', 'a', 'f', 's'...
[ { "code": null, "e": 1296, "s": 1062, "text": "We have an array of Number / String literals that contains some values (some are repetitive as\nwell). Our job is to write a function that returns the element from the array which appears for the\ngreatest number of times in the array." }, { "co...
What are final classes in Java?
The final modifier for finalizing the implementations of classes, methods, and variables. The main purpose of using a class being declared as final is to prevent the class from being subclassed. If a class is marked as final then no class can inherit any feature from the final class. You cannot extend a final class. If...
[ { "code": null, "e": 1152, "s": 1062, "text": "The final modifier for finalizing the implementations of classes, methods, and variables." }, { "code": null, "e": 1347, "s": 1152, "text": "The main purpose of using a class being declared as final is to prevent the class from being...
What is Stateful/Class based Component in ReactJS ? - GeeksforGeeks
08 Dec, 2021 React class-based components: These are the bread and butter of most modern web apps built in ReactJS. These components are simple classes (made up of multiple functions that add functionality to the application). All class-based components are child classes for the Component class of ReactJS. Once a compo...
[ { "code": null, "e": 26071, "s": 26043, "text": "\n08 Dec, 2021" }, { "code": null, "e": 26432, "s": 26071, "text": "React class-based components: These are the bread and butter of most modern web apps built in ReactJS. These components are simple classes (made up of multiple fun...
Evaluate and Quote an Expression in R Programming - bquote() Function - GeeksforGeeks
16 Jun, 2020 bquote() function in R Language is used to quote the arguments passed to it, except the values which are wrapped in β€˜.()β€˜. It evaluates the wrapped values and quotes the result. Syntax: bquote(expr) Parameters:expr: language object Example 1: # R program to quote an expression # Assigning value to variabl...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n16 Jun, 2020" }, { "code": null, "e": 26665, "s": 26487, "text": "bquote() function in R Language is used to quote the arguments passed to it, except the values which are wrapped in β€˜.()β€˜. It evaluates the wrapped values and quot...
Check if characters of a given string can be rearranged to form a palindrome - GeeksforGeeks
25 Feb, 2022 Given a string, Check if characters of the given string can be rearranged to form a palindrome. For example characters of β€œgeeksogeeks” can be rearranged to form a palindrome β€œgeeksoskeeg”, but characters of β€œgeeksforgeeks” cannot be rearranged to form a palindrome. A set of characters can form a palindro...
[ { "code": null, "e": 26387, "s": 26359, "text": "\n25 Feb, 2022" }, { "code": null, "e": 26655, "s": 26387, "text": "Given a string, Check if characters of the given string can be rearranged to form a palindrome. For example characters of β€œgeeksogeeks” can be rearranged to form a...
Introduction of Botnet in Computer Networks - GeeksforGeeks
13 Aug, 2019 Network of compromised computers are called botnet. Compromised computers are also called as Zombies or bots. Programming Language:These software are mostly written in C++ & C. Motivation:It all starts with the dark side of the internet which introduced new kind of Crime called Cybercrime Among the malware...
[ { "code": null, "e": 25755, "s": 25727, "text": "\n13 Aug, 2019" }, { "code": null, "e": 25865, "s": 25755, "text": "Network of compromised computers are called botnet. Compromised computers are also called as Zombies or bots." }, { "code": null, "e": 25932, "s": ...
Find mirror of a given node in Binary tree - GeeksforGeeks
29 Jun, 2021 Given a Binary tree, the problem is to find the mirror of a given node. The mirror of a node is a node which exists at the mirror position of the node in opposite subtree at the root. Examples: In above tree- Node 2 and 3 are mirror nodes Node 4 and 6 are mirror nodes. We can have a recursive solution f...
[ { "code": null, "e": 26183, "s": 26155, "text": "\n29 Jun, 2021" }, { "code": null, "e": 26367, "s": 26183, "text": "Given a Binary tree, the problem is to find the mirror of a given node. The mirror of a node is a node which exists at the mirror position of the node in opposite ...
How to Create a Range From a Specified Start in C#? - GeeksforGeeks
28 Nov, 2019 The Range Structure is introduced in C# 8.0. It represents a range that has a start and end indexes. You are allowed to create a Range object starting from the specified starting index to the end of the given collection or sequence with the help of the StartAt() Method provided by the Range structure. Or i...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n28 Nov, 2019" }, { "code": null, "e": 25993, "s": 25547, "text": "The Range Structure is introduced in C# 8.0. It represents a range that has a start and end indexes. You are allowed to create a Range object starting from the spe...
Project Euler - GeeksforGeeks
21 Apr, 2017 What is Project Euler?Project Euler is a series of challenging problems that require mathematical and programming skills. Somebody who enjoys learning new area of mathematics, project Euler is going to be a fun journey. Where are the problems ?The problems are right here in their official archive. Let’s so...
[ { "code": null, "e": 26281, "s": 26253, "text": "\n21 Apr, 2017" }, { "code": null, "e": 26501, "s": 26281, "text": "What is Project Euler?Project Euler is a series of challenging problems that require mathematical and programming skills. Somebody who enjoys learning new area of ...
GRE Data Analysis | Distribution of Data, Random Variables, and Probability Distributions - GeeksforGeeks
19 Jun, 2019 The distribution of a statistical data set (or a population) is a listing or function showing all the possible values (or intervals) of the data and how often they occur, we can think of a distribution as a function that describes the relationship between observations in a sample space. Example:The lifetim...
[ { "code": null, "e": 25561, "s": 25533, "text": "\n19 Jun, 2019" }, { "code": null, "e": 25849, "s": 25561, "text": "The distribution of a statistical data set (or a population) is a listing or function showing all the possible values (or intervals) of the data and how often they...
Replace the column contains the values 'yes' and 'no' with True and False In Python-Pandas - GeeksforGeeks
28 Jul, 2020 Let’s discuss a program To change the values from a column that contains the values β€˜YES’ and β€˜NO’ with TRUE and FALSE. First, Let’s see a dataset. Code: Python3 # import pandas libraryimport pandas as pd # load csv filedf = pd.read_csv("supermarkets.csv") # show the dataframedf Output : For downloa...
[ { "code": null, "e": 26379, "s": 26351, "text": "\n28 Jul, 2020" }, { "code": null, "e": 26501, "s": 26379, "text": "Let’s discuss a program To change the values from a column that contains the values β€˜YES’ and β€˜NO’ with TRUE and FALSE. " }, { "code": null, "e": 2652...
ZonedDateTime format() method in Java with Examples - GeeksforGeeks
02 May, 2019 The format() method of ZonedDateTime class in Java is used to format this date-time using the specified formatter passed as parameter.This date-time will be passed to the formatter to produce a string. Syntax: public String format(DateTimeFormatter formatter) Parameters: This method accepts a single param...
[ { "code": null, "e": 25763, "s": 25735, "text": "\n02 May, 2019" }, { "code": null, "e": 25965, "s": 25763, "text": "The format() method of ZonedDateTime class in Java is used to format this date-time using the specified formatter passed as parameter.This date-time will be passed...
Python - Create UIs for prototyping Machine Learning model with Gradio - GeeksforGeeks
08 Sep, 2021 Gradio is an open-source python library which allows you to quickly create easy to use, customizable UI components for your ML model, any API, or any arbitrary function in just a few lines of code. You can integrate the GUI directly into your Python notebook, or you can share the link to anyone.Requirement...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n08 Sep, 2021" }, { "code": null, "e": 25902, "s": 25589, "text": "Gradio is an open-source python library which allows you to quickly create easy to use, customizable UI components for your ML model, any API, or any arbitrary fun...
How to Use jQuery’s ajax() Function for Asynchronous HTTP Requests ? - GeeksforGeeks
04 Aug, 2021 In this article, we are going to see how we can use jQuery’s ajax() function to call backend function asynchronously or in other words HTTP Requests. AJAX is a set of web development techniques used by client-side frameworks and libraries to make asynchronous HTTP calls to the server. AJAX stands for β€œAsyn...
[ { "code": null, "e": 26526, "s": 26498, "text": "\n04 Aug, 2021" }, { "code": null, "e": 26863, "s": 26526, "text": "In this article, we are going to see how we can use jQuery’s ajax() function to call backend function asynchronously or in other words HTTP Requests. AJAX is a set...
Number of Digits in a^b - GeeksforGeeks
06 Apr, 2021 Given two positive integers a and b, task is to find the number of digits in a^b (a raised to the power b).Example: Input: a = 2 b = 5 Output: no. of digits = 2 Explanation: 2^5 = 32 Hence, no. of digits = 2 Input: a = 2 b = 100 Output: no. of digits = 31 Explanation: 2^100 = 1.2676506e+30 Hence, no....
[ { "code": null, "e": 26311, "s": 26283, "text": "\n06 Apr, 2021" }, { "code": null, "e": 26429, "s": 26311, "text": "Given two positive integers a and b, task is to find the number of digits in a^b (a raised to the power b).Example: " }, { "code": null, "e": 26634, ...
Difference between CSS Grid and CSS Flexbox - GeeksforGeeks
05 Mar, 2021 Grid:CSS Grid Layout, is a two-dimensional grid-based layout system with rows and columns, making it easier to design web pages without having to use floats and positioning. Like tables, grid layout allow us to align elements into columns and rows. To get started you have to define a container element as a...
[ { "code": null, "e": 25923, "s": 25895, "text": "\n05 Mar, 2021" }, { "code": null, "e": 26172, "s": 25923, "text": "Grid:CSS Grid Layout, is a two-dimensional grid-based layout system with rows and columns, making it easier to design web pages without having to use floats and po...
Check if two Linked Lists are permutations of each other - GeeksforGeeks
29 Jun, 2021 Given two singly Linked list of integer data. The task is to write a program that efficiently checks if two linked lists are permutations of each other. Examples: Input: 1 -> 2 -> 3 -> 4 -> 5 2 -> 1 -> 3 -> 5 -> 4 Output: Yes Input: 10 -> 20 -> 30 -> 40 20 -> 50 -> 60 -> 70 Output: No Ap...
[ { "code": null, "e": 25957, "s": 25929, "text": "\n29 Jun, 2021" }, { "code": null, "e": 26110, "s": 25957, "text": "Given two singly Linked list of integer data. The task is to write a program that efficiently checks if two linked lists are permutations of each other." }, { ...
Maximize the value of the given expression - GeeksforGeeks
07 Mar, 2022 Given three non-zero integers a, b and c. The task is to find the maximum value possible by putting addition and multiplication signs between them in any order. Note: Rearrangement of integers is allowed but addition and multiplication sign must be used once. Braces can also be placed between equations as...
[ { "code": null, "e": 26439, "s": 26411, "text": "\n07 Mar, 2022" }, { "code": null, "e": 26601, "s": 26439, "text": "Given three non-zero integers a, b and c. The task is to find the maximum value possible by putting addition and multiplication signs between them in any order. " ...
HTTP headers | Access-Control-Allow-Origin - GeeksforGeeks
22 Nov, 2019 The Access-Control-Allow-Origin is a response header that is used to indicates whether the response can be shared with requesting code from the given origin. Syntax: Access-Control-Allow-Origin: * | <origin> | null Directives: Access-Control-Allow-Origin accepts there types of directives mentioned above an...
[ { "code": null, "e": 26069, "s": 26041, "text": "\n22 Nov, 2019" }, { "code": null, "e": 26227, "s": 26069, "text": "The Access-Control-Allow-Origin is a response header that is used to indicates whether the response can be shared with requesting code from the given origin." },...
Interchange elements of first and last columns in matrix - GeeksforGeeks
19 Apr, 2021 Given a 4 x 4 matrix, the task is to interchange the elements of first and last columns and show the resulting matrix.Examples: Input: 8 9 7 6 4 7 6 5 3 2 1 8 9 9 7 7 Output: 6 9 7 8 5 7 6 4 8 2 1 3 7 9 7 9 Input: 9 7 5 1 2 3 4 1 5 6 6 5 1 2 3 1 Output: 1 7 5 9 1 3 4 2 5 6 6 5 1 2 3 1 The approach i...
[ { "code": null, "e": 26289, "s": 26261, "text": "\n19 Apr, 2021" }, { "code": null, "e": 26419, "s": 26289, "text": "Given a 4 x 4 matrix, the task is to interchange the elements of first and last columns and show the resulting matrix.Examples: " }, { "code": null, "...
How to display loading screen when navigating between routes using Angular? - GeeksforGeeks
12 Mar, 2021 In this post, we will see how to display a loading screen when navigating from one component to another. When the user navigates through routes, the app may communicate with the backend to load some useful data, and it may produce some delay. At that time, if the user doesn’t see anything on the screen, he...
[ { "code": null, "e": 26380, "s": 26352, "text": "\n12 Mar, 2021" }, { "code": null, "e": 26888, "s": 26380, "text": "In this post, we will see how to display a loading screen when navigating from one component to another. When the user navigates through routes, the app may commun...
Minimum Swaps required to group all 1's together - GeeksforGeeks
09 Aug, 2021 Given an array of 0’s and 1’s, we need to write a program to find the minimum number of swaps required to group all 1’s present in the array together. Examples: Input : arr[] = {1, 0, 1, 0, 1} Output : 1 Explanation: Only 1 swap is required to group all 1's together. Swapping index 1 and 4 will give arr[...
[ { "code": null, "e": 26195, "s": 26167, "text": "\n09 Aug, 2021" }, { "code": null, "e": 26346, "s": 26195, "text": "Given an array of 0’s and 1’s, we need to write a program to find the minimum number of swaps required to group all 1’s present in the array together." }, { ...
Tryit Editor v3.7
Tryit: Text shadow with red neon glow
[]
CodeIgniter - Common Functions
CodeIgniter library functions and helper functions need to be initialized before they are used but there are some common functions, which do not need to be initialized. These common functions and their descriptions are given below. $version (string) βˆ’ Version number $file (string) βˆ’ File path $key (string) βˆ’ Config ite...
[ { "code": null, "e": 2488, "s": 2319, "text": "CodeIgniter library functions and helper functions need to be initialized before they are used but there are some common functions, which do not need to be initialized." }, { "code": null, "e": 2551, "s": 2488, "text": "These common ...
How to use NumPy where() with multiple conditions in Python ?
05 Apr, 2021 In Python, NumPy has a number of library functions to create the array and where is one of them to create an array from the satisfied conditions of another array. The numpy.where() function returns the indices of elements in an input array where the given condition is satisfied. Syntax: numpy.where(conditi...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Apr, 2021" }, { "code": null, "e": 334, "s": 54, "text": "In Python, NumPy has a number of library functions to create the array and where is one of them to create an array from the satisfied conditions of another array. The numpy.w...
list erase() function in C++ STL
24 Jun, 2022 The list::erase() is a built-in function in C++ STL which is used to delete elements from a list container. This function can be used to remove a single element or a range of elements from the specified list container. Syntax: iterator list_name.erase(iterator position) or, iterator list_name.erase(iter...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Jun, 2022" }, { "code": null, "e": 281, "s": 53, "text": "The list::erase() is a built-in function in C++ STL which is used to delete elements from a list container. This function can be used to remove a single element or a range of...
Readonly in C#
28 Nov, 2019 In C#, a readonly keyword is a modifier which is used in the following ways: 1. Readonly Fields: In C#, you are allowed to declare a field using readonly modifier. It indicates that the assignment to the fields is only the part of the declaration or in a constructor to the same class. Such types of fields ...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Nov, 2019" }, { "code": null, "e": 131, "s": 54, "text": "In C#, a readonly keyword is a modifier which is used in the following ways:" }, { "code": null, "e": 996, "s": 131, "text": "1. Readonly Fields: In C#, y...
How to configure XAMPP to send mail from localhost using PHP ?
15 Jul, 2019 To configure XAMPP server to send mail from localhost we have to make changes to two files sendmail.ini and php.ini. Open the xampp folder. By the name of β€œsendmail.ini” is present in sendmail file and β€œphp.ini” is present in php file in the xampp folder. Step 1: Go to C:\xampp\sendmail: open sendmail.ini ...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jul, 2019" }, { "code": null, "e": 308, "s": 52, "text": "To configure XAMPP server to send mail from localhost we have to make changes to two files sendmail.ini and php.ini. Open the xampp folder. By the name of β€œsendmail.ini” is p...
Scope Resolution Operator vs this pointer in C++
28 Nov, 2021 Scope resolution operator is for accessing static or class members and this pointer is for accessing object members when there is a local variable with the same name. Consider below C++ program: CPP // C++ program to show that local parameters hide// class members#include <iostream>using namespace std; ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Nov, 2021" }, { "code": null, "e": 219, "s": 52, "text": "Scope resolution operator is for accessing static or class members and this pointer is for accessing object members when there is a local variable with the same name." }, ...
Iterators in C++ STL
06 Jul, 2022 Prerequisite : Introduction to IteratorsIterators are used to point at the memory addresses of STL containers. They are primarily used in sequences of numbers, characters etc. They reduce the complexity and execution time of the program. Operations of iterators :- Chapters descriptions off, selected captio...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 290, "s": 52, "text": "Prerequisite : Introduction to IteratorsIterators are used to point at the memory addresses of STL containers. They are primarily used in sequences of numbers, characters etc...
How to convert the character values in an R data frame column to lower case?
The character values can be stored in uppercase, lowercase, or a mixture of the two. If we have values that are either in uppercase or the mixture of lower and upper then we can convert those character values to only lowercase by using tolower function. We simply need to pass the vector or column of the data frame insi...
[ { "code": null, "e": 1438, "s": 1062, "text": "The character values can be stored in uppercase, lowercase, or a mixture of the two. If we have values that are either in uppercase or the mixture of lower and upper then we can convert those character values to only lowercase by using tolower function....
HTML - div Tag
The HTML <div> tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS. The difference between the div tag and the span tag is that the div tag is used with blocklevel elements whilst the span tag is used with inline elements...
[ { "code": null, "e": 2541, "s": 2374, "text": "The HTML <div> tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS." }, { "code": null, "e": 2696, "s": 2541, "text": "The difference ...
Python os.close() Method
Python method close() closes the associated with file descriptor fd. Following is the syntax for close() method βˆ’ os.close(fd); fd βˆ’ This is the file descriptor of the file. fd βˆ’ This is the file descriptor of the file. This method does not return any value. The following example shows the usage of close() method. #!/...
[ { "code": null, "e": 2313, "s": 2244, "text": "Python method close() closes the associated with file descriptor fd." }, { "code": null, "e": 2358, "s": 2313, "text": "Following is the syntax for close() method βˆ’" }, { "code": null, "e": 2373, "s": 2358, "text"...
AKS Primality Test - GeeksforGeeks
22 Apr, 2021 There are several primality test available to check whether the number is prime or not like Fermat’s Theorem, Miller-Rabin Primality test and alot more. But problem with all of them is that they all are probabilistic in nature. So, here comes one another method i.e AKS primality test (Agrawal–Kayal–Saxena ...
[ { "code": null, "e": 24840, "s": 24812, "text": "\n22 Apr, 2021" }, { "code": null, "e": 27185, "s": 24840, "text": "There are several primality test available to check whether the number is prime or not like Fermat’s Theorem, Miller-Rabin Primality test and alot more. But proble...
How to Prune Decision Trees to Make the Most Out of Them | by Soner YΔ±ldΔ±rΔ±m | Towards Data Science
Decision trees are supervised machine learning algorithms that work by iteratively partitioning the dataset into smaller parts. The partitioning process is the most critical part of building decision trees. The partitions are not random. The aim is to increase the predictiveness of the model as much as possible at each...
[ { "code": null, "e": 378, "s": 171, "text": "Decision trees are supervised machine learning algorithms that work by iteratively partitioning the dataset into smaller parts. The partitioning process is the most critical part of building decision trees." }, { "code": null, "e": 568, "s...
Find sum of integers in a file which contains any characters - GeeksforGeeks
06 Sep, 2017 You are given a text file which contains any type of characters. You have to find the sum of integer values. Examples: Input : text.txt Let contents of test.txt be : :-,,$%^5313&^*1)(*( 464sz29>>///11!!! (*HB%$#)(*0900 Output : 6727 Input : text1.txt Let contents of test.txt be : 234***3r3r() ()(0)34...
[ { "code": null, "e": 24124, "s": 24096, "text": "\n06 Sep, 2017" }, { "code": null, "e": 24233, "s": 24124, "text": "You are given a text file which contains any type of characters. You have to find the sum of integer values." }, { "code": null, "e": 24243, "s": 2...
VBA - For Each Loops
A For Each loop is used to execute a statement or a group of statements for each element in an array or collection. A For Each loop is similar to For Loop; however, the loop is executed for each element in an array or group. Hence, the step counter won't exist in this type of loop. It is mostly used with arrays or used...
[ { "code": null, "e": 2051, "s": 1935, "text": "A For Each loop is used to execute a statement or a group of statements for each element in an array or collection." }, { "code": null, "e": 2327, "s": 2051, "text": "A For Each loop is similar to For Loop; however, the loop is execu...
Adding multiple constraints in a single table - GeeksforGeeks
17 Dec, 2020 Prerequisite – SQL Constraints We can create a table with more than one constraint in its columns. Following example shows how we can define different constraints on a table. Adding constraints in Create command : Sr_no is a Primary Key. Branch_no is the foreign key referencing Branch table. Company type w...
[ { "code": null, "e": 24268, "s": 24240, "text": "\n17 Dec, 2020" }, { "code": null, "e": 24299, "s": 24268, "text": "Prerequisite – SQL Constraints" }, { "code": null, "e": 24443, "s": 24299, "text": "We can create a table with more than one constraint in its ...
Java constructor return a value but, what?
No. Java constructor cannot return a value. If required, just create a method which calls the required constructor and returns the required value. See the example below. public class Tester { public Tester(){} public static Tester getInstance(){ Tester tester = new Tester(); return tester; } }
[ { "code": null, "e": 1232, "s": 1062, "text": "No. Java constructor cannot return a value. If required, just create a method which calls the required constructor and returns the required value. See the example below." }, { "code": null, "e": 1379, "s": 1232, "text": "public class...
How to find the sum based on a categorical variable in an R data frame?
Finding group-wise mean is a common thing but if we go for step-by-step analysis then sum of values are also required when we have a categorical variable in our data set. This can be easily done with the help of group_by and summarise_each function of dplyr package. Consider the below data frame: Live Demo > Group<-sam...
[ { "code": null, "e": 1329, "s": 1062, "text": "Finding group-wise mean is a common thing but if we go for step-by-step analysis then sum of values are also required when we have a categorical variable in our data set. This can be easily done with the help of group_by and summarise_each function of d...
Pascal - Operators Precedence
Operator precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition operator. For example x = 7 + 3 * 2; here, x is assigned 13, not 20 b...
[ { "code": null, "e": 2344, "s": 2083, "text": "Operator precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition op...
An introduction to NLP and 5 tips for raising your game | by Gonzalo Ferreiro Volpi | Towards Data Science
For those working around Data Science, Machine Learning and/or Artificial Intelligence, NLP is probably one of the most exciting fields to work in. NLP stands for Natural Language Processing and it’s about the interactions between computers and human languages. Programming algorithms capable of processing and analyzing...
[ { "code": null, "e": 320, "s": 172, "text": "For those working around Data Science, Machine Learning and/or Artificial Intelligence, NLP is probably one of the most exciting fields to work in." }, { "code": null, "e": 533, "s": 320, "text": "NLP stands for Natural Language Proces...
Android Interview Questions
Dear readers, these Android Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Android. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions ...
[ { "code": null, "e": 4046, "s": 3607, "text": "Dear readers, these Android Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Android. As per my experience good interviewers hardly plan to ask...
Align flex items at the end of the container with CSS
Use the justify-content property with value flex-end to align the flex-items at the end. You can try to run the following code to implement the flex-end value βˆ’ Live Demo <!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; background-color: red; just...
[ { "code": null, "e": 1151, "s": 1062, "text": "Use the justify-content property with value flex-end to align the flex-items at the end." }, { "code": null, "e": 1223, "s": 1151, "text": "You can try to run the following code to implement the flex-end value βˆ’" }, { "code":...