title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Boosting Your Jupyter Notebook Productivity | by Nazif Berat | Towards Data Science | First of all, I want to point out that it is very flexible tool to create readable analyses, because one can keep code, images, comments, formula and plots together:
Jupyter is very extensible, supports other programming languages, easily hosted on almost any server — you just only need to have ssh or http access to a ... | [
{
"code": null,
"e": 338,
"s": 172,
"text": "First of all, I want to point out that it is very flexible tool to create readable analyses, because one can keep code, images, comments, formula and plots together:"
},
{
"code": null,
"e": 527,
"s": 338,
"text": "Jupyter is very exte... |
Count and Say in Python | Here we will see the Count and Say sequence. This is a sequence whose few terms are like below −
1
11
21
1211
111221
The string will be read like
1 (One)
11 (One 1) So read the previous 1, and say “One 1”
21 (Two 1) So read the previous 11, and say “Two 1”
1211 (One 2 one 1) So read the previous 21, and say “One 2 one ... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "Here we will see the Count and Say sequence. This is a sequence whose few terms are like below −"
},
{
"code": null,
"e": 1161,
"s": 1159,
"text": "1"
},
{
"code": null,
"e": 1164,
"s": 1161,
"text": "11"
},
{... |
How to Build an EDA App in Python | by Chanin Nantasenamat | Towards Data Science | Exploratory data analysis (EDA) is an essential and preliminary first steps for exploring and summarizing the main characteristics of datasets. EDA provides the means to help us better understand variables and their relationships. This is achieved by non-graphical (descriptive statistics) and graphical (data visualizat... | [
{
"code": null,
"e": 509,
"s": 172,
"text": "Exploratory data analysis (EDA) is an essential and preliminary first steps for exploring and summarizing the main characteristics of datasets. EDA provides the means to help us better understand variables and their relationships. This is achieved by non-... |
Firebase - Anonymous Authentication | In this chapter, we will authenticate users anonymously.
This is the same process as in our earlier chapters. You need to open the Firebase dashboard, click on Auth from the side menu and SIGN-IN-METHOD inside the tab bar. You need to enable anonymous authentication.
We can use signInAnonymously() method for this authe... | [
{
"code": null,
"e": 2223,
"s": 2166,
"text": "In this chapter, we will authenticate users anonymously."
},
{
"code": null,
"e": 2434,
"s": 2223,
"text": "This is the same process as in our earlier chapters. You need to open the Firebase dashboard, click on Auth from the side men... |
Reorder an array according to given indexes - GeeksforGeeks | 13 Jan, 2022
Given two integer arrays of same size, “arr[]” and “index[]”, reorder elements in “arr[]” according to given index array. It is not allowed to given array arr’s length.
Example:
Input: arr[] = [10, 11, 12];
index[] = [1, 0, 2];
Output: arr[] = [11, 10, 12]
index[] = [0, 1, 2]
Inpu... | [
{
"code": null,
"e": 25438,
"s": 25410,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 25607,
"s": 25438,
"text": "Given two integer arrays of same size, “arr[]” and “index[]”, reorder elements in “arr[]” according to given index array. It is not allowed to given array arr’s le... |
Anonymous Union and Structure in C | Here we will see what is the anonymous union and structures in C. The anonymous unions and structures are unnamed unions and structures. As they have no names, so we cannot create direct objects of it. We use it as nested structures or unions.
These are the examples of anonymous union and structures.
struct {
dataty... | [
{
"code": null,
"e": 1306,
"s": 1062,
"text": "Here we will see what is the anonymous union and structures in C. The anonymous unions and structures are unnamed unions and structures. As they have no names, so we cannot create direct objects of it. We use it as nested structures or unions."
},
{... |
Embedding for spelling correction | by Maxence Alluin | Towards Data Science | Automatic spelling correction, despite being worked on since the 70’s, remains hard to solve in the absence of significant user data.
Noisy text is problematic for many NLP tasks as it leads to a reduction of the accuracy of machine learning based techniques and increases the number of Out-Of-Vocabulary (OOV) words tha... | [
{
"code": null,
"e": 306,
"s": 172,
"text": "Automatic spelling correction, despite being worked on since the 70’s, remains hard to solve in the absence of significant user data."
},
{
"code": null,
"e": 561,
"s": 306,
"text": "Noisy text is problematic for many NLP tasks as it l... |
Python – Create a new column in a Pandas dataframe | To create a new column, we will use the already created column. At first, let us create a DataFrame and read our CSV −
dataFrame = pd.read_csv("C:\\Users\\amit_\\Desktop\\SalesRecords.csv")
Now, we will create a new column “New_Reg_Price” from the already created column “Reg_Price” and add 100 to each value, forming a ... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "To create a new column, we will use the already created column. At first, let us create a DataFrame and read our CSV −"
},
{
"code": null,
"e": 1252,
"s": 1181,
"text": "dataFrame = pd.read_csv(\"C:\\\\Users\\\\amit_\\\\Desktop\\\\Sa... |
gdbserver - Unix, Linux Command | Usage (server (target) side):
First, you need to have a copy of the program you want to debug put onto
the target system. The program can be stripped to save space if needed, as
GDBserver doesn’t care about symbols. All symbol handling is taken care of by
the GDB running on the host system.
To use the server, you... | [
{
"code": null,
"e": 10609,
"s": 10577,
"text": "\nUsage (server (target) side):\n"
},
{
"code": null,
"e": 10875,
"s": 10609,
"text": "\nFirst, you need to have a copy of the program you want to debug put onto\nthe target system. The program can be stripped to save space if nee... |
Git Staging Environment | One of the core functions of Git is the concepts of the Staging Environment, and the Commit.
As you are working, you may be adding, editing and removing files. But
whenever you hit a milestone or finish a part of the work, you should add the
files to a Staging Environment.
Staged files are files that are ready to be ... | [
{
"code": null,
"e": 93,
"s": 0,
"text": "One of the core functions of Git is the concepts of the Staging Environment, and the Commit."
},
{
"code": null,
"e": 276,
"s": 93,
"text": "As you are working, you may be adding, editing and removing files. But \nwhenever you hit a miles... |
Bootstrap btn-toolbar class | Set Button Toolbar in Bootstrap using the btn-toolbar class.
You can try to run the following code to implement the btn-toolbar class −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="/scripts/jqu... | [
{
"code": null,
"e": 1123,
"s": 1062,
"text": "Set Button Toolbar in Bootstrap using the btn-toolbar class."
},
{
"code": null,
"e": 1198,
"s": 1123,
"text": "You can try to run the following code to implement the btn-toolbar class −"
},
{
"code": null,
"e": 1209,
... |
Usage of Break keyword in Java - GeeksforGeeks | 04 Dec, 2021
Break keyword is often used inside loops control structures and switch statements. It is used to terminate loops and switch statements in java. When the break keyword is encountered within a loop, the loop is immediately terminated and the program control goes to the next statement following the loop. When... | [
{
"code": null,
"e": 23582,
"s": 23554,
"text": "\n04 Dec, 2021"
},
{
"code": null,
"e": 24056,
"s": 23582,
"text": "Break keyword is often used inside loops control structures and switch statements. It is used to terminate loops and switch statements in java. When the break keyw... |
Get object at the top of the Stack in C# | To get object at the top of the Stack, the code is as follows −
Live Demo
using System;
using System.Collections.Generic;
public class Demo {
public static void Main() {
Stack<string> stack = new Stack<string>();
stack.Push("A");
stack.Push("B");
stack.Push("C");
stack.Push("D");
... | [
{
"code": null,
"e": 1126,
"s": 1062,
"text": "To get object at the top of the Stack, the code is as follows −"
},
{
"code": null,
"e": 1137,
"s": 1126,
"text": " Live Demo"
},
{
"code": null,
"e": 1657,
"s": 1137,
"text": "using System;\nusing System.Collecti... |
Logstash - Collecting Logs | Logs from different servers or data sources are collected using shippers. A shipper is an instance of Logstash installed in the server, which accesses the server logs and sends to specific output location.
It mainly sends the output to the Elasticsearch for storage. Logstash takes input from the following sources −
STD... | [
{
"code": null,
"e": 2261,
"s": 2055,
"text": "Logs from different servers or data sources are collected using shippers. A shipper is an instance of Logstash installed in the server, which accesses the server logs and sends to specific output location."
},
{
"code": null,
"e": 2372,
... |
HTML - Comments | Comment is a piece of code which is ignored by any web browser. It is a good practice to add comments into your HTML code, especially in complex documents, to indicate sections of a document, and any other notes to anyone looking at the code. Comments help you and others understand your code and increases code readabil... | [
{
"code": null,
"e": 2699,
"s": 2374,
"text": "Comment is a piece of code which is ignored by any web browser. It is a good practice to add comments into your HTML code, especially in complex documents, to indicate sections of a document, and any other notes to anyone looking at the code. Comments h... |
Multiple Stack | Theory of Computation
A single stack is sometimes not sufficient to store a large amount of data. To overcome this problem, we can use multiple stack.
For this, we have used a single array having more than one stack. The array is divided for multiple stacks.
Suppose there is an array STACK[n] divided into two stack S... | [
{
"code": null,
"e": 112,
"s": 90,
"text": "Theory of Computation"
},
{
"code": null,
"e": 351,
"s": 112,
"text": "A single stack is sometimes not sufficient to store a large amount of data. To overcome this problem, we can use multiple stack. \n For this, we have used a single a... |
Maximum width of a binary tree in C++ | Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum of widths of all levels.
Consider below tree −
10
/ \
7 4
/ \ \
9 2 1
/ \
2 5
1. Width at level 1: 1
2. Width at level 2: 2
3. Width at level 3: 3
4. Width ... | [
{
"code": null,
"e": 1204,
"s": 1062,
"text": "Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum of widths of all levels."
},
{
"code": null,
"e": 1226,
"s": 1204,
"text": "Consider below tree −"
},
{
"cod... |
JavaFX - 2D Shapes Types of Arc | In JavaFX, you can draw three kinds of arc’s namely −
Open − An arc which is not closed at all is known as an open arc.
Open − An arc which is not closed at all is known as an open arc.
Chord − A chord is a type of an arc which is closed by straight line.
Chord − A chord is a type of an arc which is closed by straigh... | [
{
"code": null,
"e": 1954,
"s": 1900,
"text": "In JavaFX, you can draw three kinds of arc’s namely −"
},
{
"code": null,
"e": 2021,
"s": 1954,
"text": "Open − An arc which is not closed at all is known as an open arc. "
},
{
"code": null,
"e": 2088,
"s": 2021,
... |
Get repetition of a string in Julia - repeat() Method - GeeksforGeeks | 26 Mar, 2020
The repeat() is an inbuilt function in julia which is used to return a string which is the repetition of specified string with specified number of times.
Syntax:repeat(String::AbstractString, r::Integer)
Parameters:
String: Specified string or character
r::Integer: Specified number of times
Returns: It ret... | [
{
"code": null,
"e": 24153,
"s": 24125,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24307,
"s": 24153,
"text": "The repeat() is an inbuilt function in julia which is used to return a string which is the repetition of specified string with specified number of times."
},
{... |
How to change header background color of a table in Java | To change header background color, at first get the header background −
JTableHeader tableHeader = table.getTableHeader();
Now, set the background color using set Background() −
tableHeader.setBackground(Color.black);
Above, we have used the Color class to set the color.
The following is an example to change the header... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To change header background color, at first get the header background −"
},
{
"code": null,
"e": 1185,
"s": 1134,
"text": "JTableHeader tableHeader = table.getTableHeader();"
},
{
"code": null,
"e": 1240,
"s": 1185,
... |
Turtle graphics using Python | Turtle is a Python library to draw graphics. After we import Turtle we can give commands like forward, backward, right, left etc. This commands will draw different shapes when we. When We combine Search commands we can create many nice graphics in the below example we will see some simple scenarios and then some Comple... | [
{
"code": null,
"e": 1421,
"s": 1062,
"text": "Turtle is a Python library to draw graphics. After we import Turtle we can give commands like forward, backward, right, left etc. This commands will draw different shapes when we. When We combine Search commands we can create many nice graphics in the b... |
Draw a line using OpenCV in C++ - GeeksforGeeks | 27 Jan, 2021
In this article, we will discuss how to draw a line using OpenCV in C++. The idea is to use the line() function from OpenCV C++ library.
Syntax:
line(img, pt1, pt2, color, thickness, lineType, shift)
Parameters:
img: This is the image file.
start: Start point of the line segment. The first point out of two... | [
{
"code": null,
"e": 24098,
"s": 24070,
"text": "\n27 Jan, 2021"
},
{
"code": null,
"e": 24235,
"s": 24098,
"text": "In this article, we will discuss how to draw a line using OpenCV in C++. The idea is to use the line() function from OpenCV C++ library."
},
{
"code": null... |
Functional Programming in Python - GeeksforGeeks | 11 Oct, 2021
Functional programming is a programming paradigm in which we try to bind everything in pure mathematical functions style. It is a declarative type of programming style. Its main focus is on “what to solve” in contrast to an imperative style where the main focus is “how to solve“. It uses expressions instea... | [
{
"code": null,
"e": 41161,
"s": 41133,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 41584,
"s": 41161,
"text": "Functional programming is a programming paradigm in which we try to bind everything in pure mathematical functions style. It is a declarative type of programming s... |
How can I add a new column which counts the number of rows as serial number in MySQL? | To add a new column that counts the number of rows as serial number, you can use the global variable in select statement.
Let us create a table. The query to create a table is as follows:
mysql> create table addColumnToCountAsSerialNumber
-> (
-> Id int,
-> Name varchar(20),
-> Age int,
-> Salary int
... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "To add a new column that counts the number of rows as serial number, you can use the global variable in select statement."
},
{
"code": null,
"e": 1250,
"s": 1184,
"text": "Let us create a table. The query to create a table is as fol... |
How to implementing start Foreground for a service? | Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroy
This example demonstrate about How to implementing start Foreground for a service.
Step 1 − Create a new project in Android Studio, go to... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroy"
},
{
"code": null,
"e": 1328,
"s": 1245,
"text": ... |
Latin Square in Python | The Latin square is a matrix that has a special pattern. Let's see different examples to examine the pattern.
1 2
2 1
1 2 3
3 1 2
2 3 1
1 2 3 4
4 1 2 3
3 4 1 2
2 3 4 1
The Latin square that you get will be of different size as you notice in the above examples. But, if you carefully observe the above matrices' patte... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "The Latin square is a matrix that has a special pattern. Let's see different examples to examine the pattern."
},
{
"code": null,
"e": 1234,
"s": 1172,
"text": "1 2\n2 1\n\n1 2 3\n3 1 2\n2 3 1\n\n1 2 3 4\n4 1 2 3\n3 4 1 2\n2 3 4 1\n\... |
Python | Convert location coordinates to tuple - GeeksforGeeks | 29 Apr, 2022
Sometimes, while working with locations, we need a lot of data which has location points in form of latitudes and longitudes. These can be in form of a string and we desire to get tuple versions of same. Let’s discuss certain ways in which this task can be performed.
Method #1 :
Using tuple() + float() +... | [
{
"code": null,
"e": 24390,
"s": 24362,
"text": "\n29 Apr, 2022"
},
{
"code": null,
"e": 24659,
"s": 24390,
"text": "Sometimes, while working with locations, we need a lot of data which has location points in form of latitudes and longitudes. These can be in form of a string and ... |
Functional Programming in R with purrr | by Thomas Mock | Towards Data Science | When you first started in R you likely were writing simple code.
print("Hello world!")5 * 6x <- c(1, 2, 3, 4, 5)
This is great, you are learning about strings, math, and vectors in R!
Then you get started with some basic analyses. You want to see if you can find the mean of some numbers.
employee <- c('John Doe','Peter... | [
{
"code": null,
"e": 237,
"s": 172,
"text": "When you first started in R you likely were writing simple code."
},
{
"code": null,
"e": 285,
"s": 237,
"text": "print(\"Hello world!\")5 * 6x <- c(1, 2, 3, 4, 5)"
},
{
"code": null,
"e": 356,
"s": 285,
"text": "Th... |
Matplotlib Linear Regression Animation in Jupyter Notebook | by B. Chen | Towards Data Science | When fitting values to a line using Linear Regression, it can be very helpful to illustrate how the line fits the data as more data are added. In this article, you’ll learn how to create a Matplotlib animation, this article extends the topic from the previous article “animating a simple sine wave in Jupyter Notebook” t... | [
{
"code": null,
"e": 540,
"s": 172,
"text": "When fitting values to a line using Linear Regression, it can be very helpful to illustrate how the line fits the data as more data are added. In this article, you’ll learn how to create a Matplotlib animation, this article extends the topic from the prev... |
Python - Convert Integer Matrix to String Matrix - GeeksforGeeks | 30 Dec, 2020
Given a Matrix with integer values, convert each element to String.
Input : test_list = [[4, 5, 7], [10, 8, 3], [19, 4, 6]]Output : [[‘4’, ‘5’, ‘7’], [’10’, ‘8’, ‘3’], [’19’, ‘4’, ‘6’]]Explanation : All elements of Matrix converted to Strings.
Input : test_list = [[4, 5, 7], [10, 8, 3]]Output : [[‘4’, ‘5’,... | [
{
"code": null,
"e": 24623,
"s": 24595,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 24691,
"s": 24623,
"text": "Given a Matrix with integer values, convert each element to String."
},
{
"code": null,
"e": 24867,
"s": 24691,
"text": "Input : test_list = [[... |
miscellaneous topics in C++ - GeeksQuiz | 29 Jul, 2020
// Objects of test can only be created using new
class Test
{
private:
~Test() {}
friend void destructTest(Test* );
};
// Only this function can destruct objects of Test
void destructTest(Test* ptr)
{
delete ptr;
}
int main()
{
// create an object
Test *ptr = new Test;
// destruct... | [
{
"code": null,
"e": 27610,
"s": 27582,
"text": "\n29 Jul, 2020"
},
{
"code": null,
"e": 27972,
"s": 27610,
"text": "// Objects of test can only be created using new\nclass Test\n{\nprivate:\n ~Test() {}\nfriend void destructTest(Test* );\n};\n \n// Only this function can dest... |
Rexx - pos String | This method returns the position of one string within another.
pos(substr,string1)
string1 − The source string.
string1 − The source string.
substr − the sub string to search for in the main string.
substr − the sub string to search for in the main string.
This method returns the position of one string within another.... | [
{
"code": null,
"e": 2402,
"s": 2339,
"text": "This method returns the position of one string within another."
},
{
"code": null,
"e": 2423,
"s": 2402,
"text": "pos(substr,string1)\n"
},
{
"code": null,
"e": 2452,
"s": 2423,
"text": "string1 − The source strin... |
Image Processing with Python — Blurring and Sharpening for Beginners | by Tonichi Edeza | Towards Data Science | In this article we shall discuss how to apply blurring and sharpening kernels onto images. These basic kernels form the backbone of a lot of more advanced kernel application. In my previous article I discussed the edge detection kernel, but I realized that I only stuck to greyscale images.
To act as a helpful guide, I ... | [
{
"code": null,
"e": 337,
"s": 46,
"text": "In this article we shall discuss how to apply blurring and sharpening kernels onto images. These basic kernels form the backbone of a lot of more advanced kernel application. In my previous article I discussed the edge detection kernel, but I realized that... |
Plotly - Legends | By default, Plotly chart with multiple traces shows legends automatically. If it has only one trace, it is not displayed automatically. To display, set showlegend parameter of Layout object to True.
layout = go.Layoyt(showlegend = True)
Default labels of legends are trace object names. To set legend label explicitly s... | [
{
"code": null,
"e": 2559,
"s": 2360,
"text": "By default, Plotly chart with multiple traces shows legends automatically. If it has only one trace, it is not displayed automatically. To display, set showlegend parameter of Layout object to True."
},
{
"code": null,
"e": 2598,
"s": 25... |
Subgraph filtering in Neo4j Graph Data Science library | by Tomaz Bratanic | Towards Data Science | It has been a while since I wrote a post about new features in the Neo4j Graph Data Science library (GDS). For those of you that never heard of the GDS library, it features more than 50 graph algorithms ranging from community detection to node embedding algorithms and more. In this blog post, I will present Subgraph fi... | [
{
"code": null,
"e": 617,
"s": 172,
"text": "It has been a while since I wrote a post about new features in the Neo4j Graph Data Science library (GDS). For those of you that never heard of the GDS library, it features more than 50 graph algorithms ranging from community detection to node embedding a... |
Decimal.Divide() Method in C# - GeeksforGeeks | 11 Oct, 2021
This method is used to divide the two specified decimal values.
Syntax: public static decimal Divide (decimal a1, decimal a2);
Parameters:a1: This parameter specifies the dividend.a2: This parameter specifies the divisor.
Return Value: The result of dividing a1 by a2.
Exceptions:
DivideByZeroException: Thi... | [
{
"code": null,
"e": 24614,
"s": 24586,
"text": "\n11 Oct, 2021"
},
{
"code": null,
"e": 24678,
"s": 24614,
"text": "This method is used to divide the two specified decimal values."
},
{
"code": null,
"e": 24741,
"s": 24678,
"text": "Syntax: public static deci... |
Number of ways to represent a number as sum of k fibonacci numbers - GeeksforGeeks | 13 May, 2021
Given two numbers N and K. Find the number of ways to represent N as the sum of K Fibonacci numbers. Examples:
Input : n = 12, k = 1
Output : 0
Input : n = 13, k = 3
Output : 2
Explanation : 2 + 3 + 8, 3 + 5 + 5.
Approach: The Fibonacci series is f(0)=1, f(1)=2 and f(i)=f(i-1)+f(i-2) for i>1. Let’s... | [
{
"code": null,
"e": 24307,
"s": 24279,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 24420,
"s": 24307,
"text": "Given two numbers N and K. Find the number of ways to represent N as the sum of K Fibonacci numbers. Examples: "
},
{
"code": null,
"e": 24526,
"s... |
Date Class in Java | Java provides the Date class available in java. util package, this class encapsulates the current date and time.
The Date class supports two constructors as shown in the following table.
Following are the methods of the date class.
This is a very easy method to get current date and time in Java. You can use a simple Da... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "Java provides the Date class available in java. util package, this class encapsulates the current date and time."
},
{
"code": null,
"e": 1249,
"s": 1175,
"text": "The Date class supports two constructors as shown in the following ta... |
Multithreading vs. Multiprocessing in Python | by Gennaro S. Rodrigues | Towards Data Science | Python is often regarded as an almost obscene programming language. A libertarian place where everything is permitted and our wildest dreams come true. Forget about labels and definitions, and, above all, brackets. It is a language that welcomes everyone, from the most experienced programmer (that weird guy that still ... | [
{
"code": null,
"e": 675,
"s": 172,
"text": "Python is often regarded as an almost obscene programming language. A libertarian place where everything is permitted and our wildest dreams come true. Forget about labels and definitions, and, above all, brackets. It is a language that welcomes everyone,... |
How to build a contextual assistant using RASA Forms | by Amal Menzli | Towards Data Science | We know very well that the ChatBots are the future of this generation and I believe that everyone must know the basics of how Chatbots work. This is exactly the aim of my article and I hope that after reading it you can build your own Bot.
You can find many tutorials on RASA that are using RASA APIs to build a Chatbot.... | [
{
"code": null,
"e": 412,
"s": 172,
"text": "We know very well that the ChatBots are the future of this generation and I believe that everyone must know the basics of how Chatbots work. This is exactly the aim of my article and I hope that after reading it you can build your own Bot."
},
{
"... |
gpic - Unix, Linux Command | It is the user’s responsibility to provide appropriate definitions of the
PS and
PE macros.
When the macro package being used does not supply such definitions
(for example, old versions of -ms),
appropriate definitions can be obtained with
-mpic: these will center each picture.
/usr/share/doc/groff/1.18.1.1/pic.ms
... | [
{
"code": null,
"e": 10858,
"s": 10577,
"text": "\nIt is the user’s responsibility to provide appropriate definitions of the\nPS and\nPE macros.\nWhen the macro package being used does not supply such definitions\n(for example, old versions of -ms),\nappropriate definitions can be obtained with\n-mp... |
Maximize the number by rearranging bits - GeeksforGeeks | 15 Feb, 2022
Given an unsigned number, find the maximum number that could be formed by using the bits of the given unsigned number.
Examples :
Input : 1 (0000....0001)
Output : 2147483648 (1000....0000)
Input : 7 (0000....0111)
Output : 3758096384 (0111....0000)
Method 1 (Simple) 1. Find binary representation of the ... | [
{
"code": null,
"e": 24621,
"s": 24593,
"text": "\n15 Feb, 2022"
},
{
"code": null,
"e": 24740,
"s": 24621,
"text": "Given an unsigned number, find the maximum number that could be formed by using the bits of the given unsigned number."
},
{
"code": null,
"e": 24752,
... |
How to Sort LinkedHashSet Elements in Descending Order in Java? - GeeksforGeeks | 23 Feb, 2022
The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained this class is used. When iterating through a HashSet the order is unpredictable, while a LinkedHashSet iteration is through the elements in the or... | [
{
"code": null,
"e": 23629,
"s": 23598,
"text": " \n23 Feb, 2022\n"
},
{
"code": null,
"e": 24094,
"s": 23629,
"text": "The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained ... |
Tile (Slice) YOLO Dataset for Small Objects Detection | by Rostyslav Neskorozhenyi | Towards Data Science | In one of my projects I was faced with the task of detecting very small cracks in very high resolution images. I was provided with an already labeled dataset (in YOLO format), and the simplest solution would be to train the object detection model on it as is. But such an approach would require a lot of computing power ... | [
{
"code": null,
"e": 663,
"s": 171,
"text": "In one of my projects I was faced with the task of detecting very small cracks in very high resolution images. I was provided with an already labeled dataset (in YOLO format), and the simplest solution would be to train the object detection model on it as... |
Design a running car animation using HTML and CSS - GeeksforGeeks | 28 Dec, 2020
Project Introduction: In this project, we are going to implement a car running on a track using HTML and CSS with sound effects. The prerequisites of this project are HTML, CSS, and JavaScript.
File structure:
index.html
style.css
script.js
HTML code: In the following code, we have placed the sky div in s... | [
{
"code": null,
"e": 24678,
"s": 24650,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 24872,
"s": 24678,
"text": "Project Introduction: In this project, we are going to implement a car running on a track using HTML and CSS with sound effects. The prerequisites of this project ... |
Conquer Class Imbalanced Dataset Issues using GANs | by Swanand Mhalagi | Towards Data Science | A common problem in real life deep learning applications is that some classes have a significantly higher number of examples in the training set than other classes. Let’s consider a manufacturer is building a visual inspection system to detect damaged products. No manufacturer will have as many damaged product images a... | [
{
"code": null,
"e": 854,
"s": 171,
"text": "A common problem in real life deep learning applications is that some classes have a significantly higher number of examples in the training set than other classes. Let’s consider a manufacturer is building a visual inspection system to detect damaged pro... |
Find combined mean and variance of two series in Python | Suppose we have two different series A1 and A2 of size b and a respectively. We have to find the mean and variance of combined series.
So, if the input is like A1 = [24, 46, 35, 79, 13, 77, 35] and A2 = [66, 68, 35, 24, 46], then the output will be Mean = [44.1429, 47.8], sd = [548.694, 294.56], combined mean = 45.6667... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "Suppose we have two different series A1 and A2 of size b and a respectively. We have to find the mean and variance of combined series."
},
{
"code": null,
"e": 1446,
"s": 1197,
"text": "So, if the input is like A1 = [24, 46, 35, 79, ... |
Working with Docker Volumes | To define Docker Volumes, they are file systems that can be mounted on Docker containers. They help in preserving the data and are independent of the container life cycle. One of the major advantages of Docker Volumes is that it allows the developers to backup their data and also allows easy sharing of file systems amo... | [
{
"code": null,
"e": 1662,
"s": 1062,
"text": "To define Docker Volumes, they are file systems that can be mounted on Docker containers. They help in preserving the data and are independent of the container life cycle. One of the major advantages of Docker Volumes is that it allows the developers to... |
3 ways to query BigQuery in Python | by Sophia Yang | Towards Data Science | How do you query BigQuery data? This article talks about 3 ways to query BigQuery data in Python. Hope you find them useful.
conda install notebook google-cloud-bigquery sqlalchemy pybigquery
To authenticate Google Cloud locally, you will need to install Google Cloud SDK and log in/authenticate through the following co... | [
{
"code": null,
"e": 297,
"s": 172,
"text": "How do you query BigQuery data? This article talks about 3 ways to query BigQuery data in Python. Hope you find them useful."
},
{
"code": null,
"e": 364,
"s": 297,
"text": "conda install notebook google-cloud-bigquery sqlalchemy pybig... |
How to use variable number of arguments to function in JavaScript? | To use a variable number of arguments to function, use the arguments object.
You can try to run the following code to implement arguments to a function in JavaScript
Live Demo
<html>
<body>
<script>
function functionArgument(val1, val2, val3) {
var res = "";
res += "Expected A... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "To use a variable number of arguments to function, use the arguments object."
},
{
"code": null,
"e": 1228,
"s": 1139,
"text": "You can try to run the following code to implement arguments to a function in JavaScript"
},
{
"c... |
C Program to Rotate bits of a number - GeeksforGeeks | 11 Dec, 2021
Bit Rotation: A rotation (or circular shift) is an operation similar to shift except that the bits that fall off at one end are put back to the other end. In left rotation, the bits that fall off at left end are put back at right end. In right rotation, the bits that fall off at right end are put back at l... | [
{
"code": null,
"e": 24988,
"s": 24960,
"text": "\n11 Dec, 2021"
},
{
"code": null,
"e": 25305,
"s": 24988,
"text": "Bit Rotation: A rotation (or circular shift) is an operation similar to shift except that the bits that fall off at one end are put back to the other end. In left ... |
How to calculate Execution Time of a Code Snippet in C++? | We can calculate the execution time of a code snippet by using following syntax −
auto start = high_resolution_clock::now(); // Start time
// Code snippet
auto stop = high_resolution_clock::now(); // Stop time
auto duration = duration_cast<microseconds>(stop - start); // Duration
The class high_resolution_clock is defi... | [
{
"code": null,
"e": 1144,
"s": 1062,
"text": "We can calculate the execution time of a code snippet by using following syntax −"
},
{
"code": null,
"e": 1343,
"s": 1144,
"text": "auto start = high_resolution_clock::now(); // Start time\n// Code snippet\nauto stop = high_resoluti... |
Cypress - Working with XHR | XHR is XML HTTP Request. It is an Application Programming Interface (API) which is available as an object, whose methods send data between a web browser and server. An object in XHR can request data from a server in the form of a response.
Cypress can not only be used for front end automation, but also can control the ... | [
{
"code": null,
"e": 2737,
"s": 2497,
"text": "XHR is XML HTTP Request. It is an Application Programming Interface (API) which is available as an object, whose methods send data between a web browser and server. An object in XHR can request data from a server in the form of a response."
},
{
... |
TypeScript - Number toFixed() | This method formats a number with a specific number of digits to the right of the decimal.
number.toFixed( [digits] )
digits − The number of digits to appear after the decimal point.
A string representation of number that does not use exponential notation and has the exact number of digits after the decimal place.
var... | [
{
"code": null,
"e": 2139,
"s": 2048,
"text": "This method formats a number with a specific number of digits to the right of the decimal."
},
{
"code": null,
"e": 2167,
"s": 2139,
"text": "number.toFixed( [digits] )\n"
},
{
"code": null,
"e": 2232,
"s": 2167,
... |
KnockoutJS - Observables | KnockoutJS is build upon the following 3 important concepts.
Observables and dependency tracking between them - DOM elements are connected to ViewModel via 'data-bind'. They exchange information through Observables. This automatically takes care of dependency tracking.
Observables and dependency tracking between them -... | [
{
"code": null,
"e": 1913,
"s": 1852,
"text": "KnockoutJS is build upon the following 3 important concepts."
},
{
"code": null,
"e": 2122,
"s": 1913,
"text": "Observables and dependency tracking between them - DOM elements are connected to ViewModel via 'data-bind'. They exchange... |
How to extract an HTML tag from a String using regex in Java? | The java.util.regex package of java provides various classes to find particular patterns in character sequences.
The pattern class of this package is a compiled representation of a regular expression. To match a regular expression with a String this class provides two methods namely −
compile() − This method accepts a ... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "The java.util.regex package of java provides various classes to find particular patterns in character sequences."
},
{
"code": null,
"e": 1348,
"s": 1175,
"text": "The pattern class of this package is a compiled representation of a r... |
Python - Split Strings on Prefix Occurrence - GeeksforGeeks | 30 Sep, 2021
Given a list of Strings, perform string split on the occurrence of prefix.
Input : test_list = [“geeksforgeeks”, “best”, “geeks”, “and”], pref = “geek” Output : [[‘geeksforgeeks’, ‘best’], [‘geeks’, ‘and’]] Explanation : At occurrence of string “geeks” split is performed.
Input : test_list = [“good”, “frui... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 23976,
"s": 23901,
"text": "Given a list of Strings, perform string split on the occurrence of prefix."
},
{
"code": null,
"e": 24174,
"s": 23976,
"text": "Input : test_li... |
Analysis of Duterte’s Speeches using NLP | by Daniel Del Rio | Towards Data Science | Given the present situation of the COVID-19 across different countries, the urgency for their governments to step up and address the pandemic has elevated even further. The story isn’t any different here in the Philippines, as the frequency of President Rodrigo Duterte’s press conferences addressed to the Filipino peop... | [
{
"code": null,
"e": 646,
"s": 172,
"text": "Given the present situation of the COVID-19 across different countries, the urgency for their governments to step up and address the pandemic has elevated even further. The story isn’t any different here in the Philippines, as the frequency of President R... |
An Introduction to Optical Character Recognition for Beginners | by Renu Khandelwal | Towards Data Science | In this article, you will learn
What is Optical Character Recognition(OCR)?
Usage of OCR
Simple code to read text from PDF files and images
You have scanned copies of several documents like certificates of courses candidates have taken. The course certificate could be a PDF or a JPEG or a PNG file. How can you extract ... | [
{
"code": null,
"e": 204,
"s": 172,
"text": "In this article, you will learn"
},
{
"code": null,
"e": 248,
"s": 204,
"text": "What is Optical Character Recognition(OCR)?"
},
{
"code": null,
"e": 261,
"s": 248,
"text": "Usage of OCR"
},
{
"code": null,
... |
Natural Language Processing with PySpark and Spark-NLP | by Allison Stafford | Towards Data Science | The question: what words (from complaints) are distinctly Equifax-y?
Today we’re diving deeper into the US Consumer Financial Protection Bureau’s Financial Services Consumer Complaint database to look at the text of the complaints filed against companies. The question: what words (from complaints) are distinctly Equifa... | [
{
"code": null,
"e": 240,
"s": 171,
"text": "The question: what words (from complaints) are distinctly Equifax-y?"
},
{
"code": null,
"e": 670,
"s": 240,
"text": "Today we’re diving deeper into the US Consumer Financial Protection Bureau’s Financial Services Consumer Complaint da... |
How to close a browser session in Selenium with python? | We can close a browser session in Selenium by the following ways −
Using the close() method.
Using the close() method.
Using the quit() method.
Using the quit() method.
Both these methods close the browser, but close() the browser in focus and quit() ends the driver session.
Code Implementation with close().
from selen... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "We can close a browser session in Selenium by the following ways −"
},
{
"code": null,
"e": 1155,
"s": 1129,
"text": "Using the close() method."
},
{
"code": null,
"e": 1181,
"s": 1155,
"text": "Using the close() ... |
Split the string into minimum parts such that each part is in the another string - GeeksforGeeks | 09 Sep, 2021
Given two strings A and B, the task is to split the string A into the minimum number of substrings such that each substring is in the string B.
Note: If there is no way to split the string, then print -1
Examples:
Input: A = “abcdab”, B = “dabc” Output: 2 Explanation: The two substrings of A which is also... | [
{
"code": null,
"e": 24711,
"s": 24683,
"text": "\n09 Sep, 2021"
},
{
"code": null,
"e": 24855,
"s": 24711,
"text": "Given two strings A and B, the task is to split the string A into the minimum number of substrings such that each substring is in the string B."
},
{
"code... |
Finding Armstrong numbers in a given range in JavaScript | A number is called Armstrong number if the following equation holds true for that number:
xy...z =xx +yy+...+zz, where n denotes the number of digits in the number.
153 is an Armstrong number because −
11 +55 +33 = 1 + 125 + 27 =153
We are required to write a JavaScript function that takes in two numbers, a range, and ... | [
{
"code": null,
"e": 1227,
"s": 1062,
"text": "A number is called Armstrong number if the following equation holds true for that number:\nxy...z =xx +yy+...+zz, where n denotes the number of digits in the number."
},
{
"code": null,
"e": 1264,
"s": 1227,
"text": "153 is an Armstr... |
Java - abs() Method | The method gives the absolute value of the argument. The argument can be int, float, long, double, short, byte.
Following are all the variants of this method −
double abs(double d)
float abs(float f)
int abs(int i)
long abs(long lng)
Here is the detail of parameters −
Any primitive data type.
This method Returns the a... | [
{
"code": null,
"e": 2489,
"s": 2377,
"text": "The method gives the absolute value of the argument. The argument can be int, float, long, double, short, byte."
},
{
"code": null,
"e": 2537,
"s": 2489,
"text": "Following are all the variants of this method −"
},
{
"code": ... |
How to Setup Compatibility in Microsoft SQL Server? | 17 Dec, 2021
SQL Server compatibility level is one of the database settings. It helps to keep the database compatible with SQL server versions. By default compatibility level of the database is lower than the SQL server version. It impacts many objects in the server.
For Example: If we are creating a database from scr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 284,
"s": 28,
"text": "SQL Server compatibility level is one of the database settings. It helps to keep the database compatible with SQL server versions. By default compatibility level of the databa... |
Scala Map mkString() method with example | 26 Jul, 2019
The mkString() method is utilized to represent the elements of the map as a string.
Method Definition: def mkString: String
Return Type: It returns the elements of the map as a string.
Example #1:
// Scala program of mkString()// method // Creating objectobject GfG{ // Main method def main(args:A... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2019"
},
{
"code": null,
"e": 112,
"s": 28,
"text": "The mkString() method is utilized to represent the elements of the map as a string."
},
{
"code": null,
"e": 152,
"s": 112,
"text": "Method Definition: def... |
Narcissistic number | 30 Apr, 2021
Given N, check whether it is a Narcissistic number or not.Note:Narcissistic Number is a number that is the sum of its own digits each raised to the power of the number of digits
Examples :
Input : 153Output : yesExplanation: 1^3+5^3+3^3=153
Input : 1634Output : yesExplanation: 1^4+6^4+3^4+4^4=1634
The ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 231,
"s": 53,
"text": "Given N, check whether it is a Narcissistic number or not.Note:Narcissistic Number is a number that is the sum of its own digits each raised to the power of the number of dig... |
Oracle India Pvt Ltd Interview Experience for Full Stack Java Developer | 03 Mar, 2021
Round 1(Online Assessment and Coding Challenge–90 minutes): This assessment consisted of two different online programmatic sets of coding challenges and both are important and have to answer them.
Expectations:
Ability to identify problem types and apply conventionally known techniques to solve them.
Usage... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 249,
"s": 52,
"text": "Round 1(Online Assessment and Coding Challenge–90 minutes): This assessment consisted of two different online programmatic sets of coding challenges and both are important an... |
Material Design Buttons using Jetpack Compose in Android | 16 Nov, 2021
Jetpack Compose is a modern toolkit for building native Android UI. Jetpack Compose simplifies and accelerates UI development on Android with less code, powerful tools, and intuitive Kotlin APIs. Compose is built to support material design principles. Many of its UI elements implement material design out o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Nov, 2021"
},
{
"code": null,
"e": 511,
"s": 28,
"text": "Jetpack Compose is a modern toolkit for building native Android UI. Jetpack Compose simplifies and accelerates UI development on Android with less code, powerful tools, and in... |
Minimum absolute difference of server loads | 14 Jun, 2021
There are some processes that need to be executed. The amount of load that process causes a server that runs it, is being represented by a single integer. The total load caused on a server is the sum of the loads of all the processes that run on that server. You have at your disposal two servers, on which ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Jun, 2021"
},
{
"code": null,
"e": 709,
"s": 52,
"text": "There are some processes that need to be executed. The amount of load that process causes a server that runs it, is being represented by a single integer. The total load caus... |
How to stream large .mp4 files? | 28 Jul, 2021
Streaming large video files from the server to the client which might be a web app or mobile apps inefficient manner!
We can’t send the entire video once to a client. because there are conditions like the bandwidth and data restrictions of the user.
Example:
Let’s say youtube, the user may watch some part... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 147,
"s": 28,
"text": "Streaming large video files from the server to the client which might be a web app or mobile apps inefficient manner! "
},
{
"code": null,
"e": 279,
"s": 147,
... |
PHP | DirectoryIterator isDot() Function | 26 Nov, 2019
The DirectoryIterator::isDot() function is an inbuilt function in PHP which is used to check the current DirectoryIterator item is ‘.’ or ‘..’
Syntax:
bool DirectoryIterator::isDot( void )
Parameters: This function does not accept any parameters.
Return Value: This function returns TRUE if the entry is . o... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 171,
"s": 28,
"text": "The DirectoryIterator::isDot() function is an inbuilt function in PHP which is used to check the current DirectoryIterator item is ‘.’ or ‘..’"
},
{
"code": null,
... |
List to Set in Java | 11 Dec, 2018
Given a list (ArrayList or LinkedList), convert it into a set (HashSet or TreeSet) of strings in Java.
Method 1 (Simple)We simply create an list. We traverse the given set and one by one add elements to the list.
// Java program to demonstrate conversion of// list to set using simple traversalimport java.u... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 156,
"s": 53,
"text": "Given a list (ArrayList or LinkedList), convert it into a set (HashSet or TreeSet) of strings in Java."
},
{
"code": null,
"e": 266,
"s": 156,
"text": "Me... |
Python – Convert Float String List to Float Values | 03 Jul, 2020
Sometimes, while working with Python Data, we can have a problem in which we need to perform conversion of Float Strings to float values. This kind of problem is quite common in all domains and find application quite often. Let’s discuss certain ways in which this task can be performed.
Input : test_list =... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jul, 2020"
},
{
"code": null,
"e": 316,
"s": 28,
"text": "Sometimes, while working with Python Data, we can have a problem in which we need to perform conversion of Float Strings to float values. This kind of problem is quite common ... |
Python – Mapping key values to Dictionary | 22 Apr, 2020
Sometimes, while working with Python records, we can have a problem in which we need to extract key’s value as the dictionary values required. This can have application in domains in which we require to reduce the data storage and in web development domain. Lets discuss certain ways in which this task can ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 373,
"s": 52,
"text": "Sometimes, while working with Python records, we can have a problem in which we need to extract key’s value as the dictionary values required. This can have application in do... |
How to build a basic CRUD app with Node.js and ReactJS ? | 10 Apr, 2022
In this article, we will create a basic Student app from scratch.
App functionality:
Create a new student
Update an existing student
Show students list
Delete a student
REST API in this project:
REST API
URL
First of all, we will work on the frontend part of our application using React.js.
Create Reac... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Apr, 2022"
},
{
"code": null,
"e": 120,
"s": 54,
"text": "In this article, we will create a basic Student app from scratch."
},
{
"code": null,
"e": 140,
"s": 120,
"text": "App functionality: "
},
{
"code... |
Javascript | Window Open() & Window Close() Method | 15 Jun, 2022
Window.open(): This method is used to open the web pages into a new window.
Syntax:
window.open(URL, name, specs, replace)
Parameters: This method accepts four parameters as mentioned above and described below:
URL: It is an optional parameter. It is used to set the URL of web pages which need to open. If... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Jun, 2022"
},
{
"code": null,
"e": 105,
"s": 28,
"text": "Window.open(): This method is used to open the web pages into a new window. "
},
{
"code": null,
"e": 113,
"s": 105,
"text": "Syntax:"
},
{
"code":... |
SQL Full Form | 12 Jun, 2020
SQL is a declarative language laying its basics on relation algebra. It is a standardized language supported by all major commercial databases. The query optimizer is an important component of SQL which takes an input the SQL query and executes, it in the fastest way possible.
These are main classification... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2020"
},
{
"code": null,
"e": 306,
"s": 28,
"text": "SQL is a declarative language laying its basics on relation algebra. It is a standardized language supported by all major commercial databases. The query optimizer is an impor... |
Program to find value of 1^k + 2^k + 3^k + ... + n^k | 10 Jun, 2021
Given two positive integers N and K. The task is to evaluate the value of 1K + 2 K + 3K + ... + NK.Examples
Input: N = 3, K = 4 Output: 98 Explanation: ∑(x4) = 14 + 24 + 34, where 1 ≤ x ≤ N ∑(x4) = 1 + 16 + 81 ∑(x4) = 98Input: N = 8, K = 4 Output: 8772
Approach:
The idea is to find the value of xK u... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 164,
"s": 54,
"text": "Given two positive integers N and K. The task is to evaluate the value of 1K + 2 K + 3K + ... + NK.Examples "
},
{
"code": null,
"e": 311,
"s": 164,
"tex... |
Set Theory Operations in Relational Algebra | 14 May, 2020
Prerequisite – Relational Algebra in DBMSThese Set Theory operations are the standard mathematical operations on set. These operations are Binary operation that is, these are operated on 2 relations unlike PROJECT, SELECT and RENAME operations. These operations are used to merge 2 sets in various ways.
The... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 May, 2020"
},
{
"code": null,
"e": 356,
"s": 52,
"text": "Prerequisite – Relational Algebra in DBMSThese Set Theory operations are the standard mathematical operations on set. These operations are Binary operation that is, these are... |
make - Unix, Linux Command | make - utility for building and maintaining groups of programs.
make [ -f makefile ] [ options ] ... [ targets ] ...
make [ -f makefile ] [ options ] ... [ targets ] ...
make The purpose of the make utility is to determine automatically which pieces of a large program need to be recompiled, and issue the commands to... | [
{
"code": null,
"e": 10775,
"s": 10711,
"text": "make - utility for building and maintaining groups of programs."
},
{
"code": null,
"e": 10830,
"s": 10775,
"text": "make [ -f makefile ] [ options ] ... [ targets ] ... \n"
},
{
"code": null,
"e": 10884,
"s": 10830... |
How to Convert Character to Factor in R? | 19 Dec, 2021
The as.factor() method in R Programming Language is used to convert the character vector to factor class.
Syntax:
as.factor(char-vec)
where char-vec is the character vector
The class indicative of the data type of the vector can be obtained using the class() method. Upon conversion, the data type is return... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 134,
"s": 28,
"text": "The as.factor() method in R Programming Language is used to convert the character vector to factor class."
},
{
"code": null,
"e": 142,
"s": 134,
"text": "... |
How to View All the Uploaded Images in Firebase Storage? | 21 Aug, 2021
In this article, we are going to Load all the images from the Firebase Storage and showing them in the RecyclerView. Normally we show an image after adding a link to the real-time database. Let’s say we want to show all the images uploaded as we see in the gallery. We will be just viewing all the images. S... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Aug, 2021"
},
{
"code": null,
"e": 499,
"s": 28,
"text": "In this article, we are going to Load all the images from the Firebase Storage and showing them in the RecyclerView. Normally we show an image after adding a link to the real-... |
Program to count number of elements present in a set of elements with recursive indexing in Python | Suppose we have a list of numbers called A and another number k, we have to make a new set
of possible elements {A[k], A[A[k]], A[A[A[k]]], ... } stopping before it's out of index. We have to
find the size of this set, otherwise -1 when there is a cycle.
So, if the input is like A = [1,2,3,4,5,6,7], k = 1, then the out... | [
{
"code": null,
"e": 1442,
"s": 1187,
"text": "Suppose we have a list of numbers called A and another number k, we have to make a new set\nof possible elements {A[k], A[A[k]], A[A[A[k]]], ... } stopping before it's out of index. We have to\nfind the size of this set, otherwise -1 when there is a cyc... |
Redis - List Blpop Command | Redis BLPOP command is used to remove and get the first element in a list, or block until one is available. BLPOP command just returns the first element, if available, or blocks the client for specific time to execute any command.
String reply, the value of element stored at the key or nil.
Following is the basic synta... | [
{
"code": null,
"e": 2410,
"s": 2179,
"text": "Redis BLPOP command is used to remove and get the first element in a list, or block until one is available. BLPOP command just returns the first element, if available, or blocks the client for specific time to execute any command."
},
{
"code": ... |
How to become a 4 star coder on codechef in only 3 contests ? | 03 May, 2020
Many people messaged me how you achieved 4 stars in only 3 contests in a month interval.That sounds amazing! But the reality is I am doing coding since 8 months and I have practiced on many platforms before jumping to the contests.I personally don’t know anyone who just started coding and became a 4 star o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 May, 2020"
},
{
"code": null,
"e": 461,
"s": 52,
"text": "Many people messaged me how you achieved 4 stars in only 3 contests in a month interval.That sounds amazing! But the reality is I am doing coding since 8 months and I have pr... |
What is a target type of lambda expression in Java? | A functional Interface for which a lambda expression has invoked is called target type of lambda expression. It means that if a lambda expression has invoked for some "X" interface then "X" is the target type of that lambda expression. Hence, we conclude that lambda expressions can be used only in those situations wher... | [
{
"code": null,
"e": 1554,
"s": 1187,
"text": "A functional Interface for which a lambda expression has invoked is called target type of lambda expression. It means that if a lambda expression has invoked for some \"X\" interface then \"X\" is the target type of that lambda expression. Hence, we con... |
C/C++ Program for the n-th Fibonacci number? | The Fibonacci sequence is a series where the next term is the sum of the previous two terms.The first two terms of the Fibonacci sequence is 0 followed by 1.
In this problem, we will find the nth number in the Fibonacci series. For this we will calculate all the numbers and print the n terms.
Input:8
Output:0 1 1 2 3 ... | [
{
"code": null,
"e": 1346,
"s": 1187,
"text": "The Fibonacci sequence is a series where the next term is the sum of the previous two terms.The first two terms of the Fibonacci sequence is 0 followed by 1. "
},
{
"code": null,
"e": 1482,
"s": 1346,
"text": "In this problem, we wil... |
Program to check if three points are collinear | 03 Jun, 2022
Given three points, check whether they lie on a straight (collinear) or notExamples :
Input : (1, 1), (1, 4), (1, 5)
Output : Yes
The points lie on a straight line
Input : (1, 5), (2, 5), (4, 6)
Output : No
The points do not lie on a straight line
First approach Three points lie on the straight line... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Jun, 2022"
},
{
"code": null,
"e": 140,
"s": 52,
"text": "Given three points, check whether they lie on a straight (collinear) or notExamples : "
},
{
"code": null,
"e": 305,
"s": 140,
"text": "Input : (1, 1), (... |
Python | Pandas Series.str.replace() to replace text in a series | 18 Apr, 2022
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages that makes importing and analyzing data much easier. Pandas Series.str.replace() method works like Python .replace() method only, but it works on... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 489,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages that makes im... |
Python list | pop() | 22 Jun, 2022
Python list pop() is an inbuilt function in Python that removes and returns the last value from the List or the given index value.
Syntax:
list_name.pop(index)
Parameter:
index (optional) – The value at index is popped out and removed. If the index is not given, then the last element is popped out and rem... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 184,
"s": 53,
"text": "Python list pop() is an inbuilt function in Python that removes and returns the last value from the List or the given index value."
},
{
"code": null,
"e": 192,
... |
How to build an array of all combinations of two NumPy arrays? | 05 Sep, 2020
Sometimes we need to find the combination of elements of two or more arrays. Numpy has a function to compute the combination of 2 or more Numpy arrays named as “numpy.meshgrid()“. This function is used to create a rectangular grid out of two given one-dimensional arrays representing the Cartesian indexing ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Sep, 2020"
},
{
"code": null,
"e": 380,
"s": 53,
"text": "Sometimes we need to find the combination of elements of two or more arrays. Numpy has a function to compute the combination of 2 or more Numpy arrays named as “numpy.meshgri... |
Python | Pandas Series.str.slice() | 24 Sep, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas str.slice() method is used to slice substrings from a string present in Pandas series ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Sep, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
Check if a number is in given base or not | 22 Jun, 2022
Given a number as a string and a base, check if the given number is in the given base or not.Examples:
Input : str = "1010", base = 2
Output : Yes
Input : str = "1015", base = 2
Output : No
Input : str = "AF87", base = 16
Output : Yes
The idea is to one by one check if all digits are in the given bas... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 157,
"s": 52,
"text": "Given a number as a string and a base, check if the given number is in the given base or not.Examples: "
},
{
"code": null,
"e": 293,
"s": 157,
"text": "... |
Java Program for efficiently print all prime factors of a given number | 19 Oct, 2021
Given a number n, write an efficient function to print all prime factors of n. For example, if the input number is 12, then output should be “2 2 3”. And if the input number is 315, then output should be “3 3 5 7”. Following are the steps to find all prime factors. 1) While n is divisible by 2, print 2 and... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 666,
"s": 54,
"text": "Given a number n, write an efficient function to print all prime factors of n. For example, if the input number is 12, then output should be “2 2 3”. And if the input number ... |
How to access popup login window in selenium using Python | 23 Sep, 2021
Many websites use sign-in using social media to make the login process easy for users. In most cases, if the button is clicked then a new popup window is opened where user has to enter their user credentials. Manually one can switch windows in a browser and enter the required credentials to log in. But in ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 728,
"s": 28,
"text": "Many websites use sign-in using social media to make the login process easy for users. In most cases, if the button is clicked then a new popup window is opened where user has... |
Output of C Program | Set 24 | 22 Feb, 2022
Predict the output of following C programs:Difficulty Level: Rookie Question 1
C
#include<stdio.h>int main(){ int arr[] = {10, 20, 30, 40, 50, 60}; int *ptr1 = arr; int *ptr2 = arr + 5; printf ("ptr2 - ptr1 = %d\n", ptr2 - ptr1); printf ("(char*)ptr2 - (char*) ptr1 = %d", (char*)ptr2 - (c... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Feb, 2022"
},
{
"code": null,
"e": 135,
"s": 54,
"text": "Predict the output of following C programs:Difficulty Level: Rookie Question 1 "
},
{
"code": null,
"e": 137,
"s": 135,
"text": "C"
},
{
"code": ... |
Python | Replace multiple occurrence of character by single | 29 Dec, 2020
Given a string and a character, write a Python program to replace multiple occurrences of the given character by a single character.
Examples:
Input : Geeksforgeeks, ch = 'e'
Output : Geksforgeks
Input : Wiiiin, ch = 'i'
Output : Win
Approach #1 : Naive ApproachThis method is a brute force approach in ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 161,
"s": 28,
"text": "Given a string and a character, write a Python program to replace multiple occurrences of the given character by a single character."
},
{
"code": null,
"e": 171,
... |
Using throw, catch and instanceof to handle Exceptions in Java | 06 Feb, 2019
Prerequisite : Try-Catch Block in JavaIn Java, it is possible that your program may encounter exceptions, for which the language provides try-catch statements to handle them. However, there is a possibility that the piece of code enclosed inside the ‘try’ block may be vulnerable to more than one exceptions... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Feb, 2019"
},
{
"code": null,
"e": 416,
"s": 52,
"text": "Prerequisite : Try-Catch Block in JavaIn Java, it is possible that your program may encounter exceptions, for which the language provides try-catch statements to handle them.... |
Floating point error in Python | 11 Nov, 2019
As it is know that 1.2 - 1.0 = 0.2 . But when you try to the same in python you will surprised by results:
>>> 1.2 - 1.0
Output:
0.199999999999999996
This can be considered as a bug in Python, but it is not. This has little to do with Python, and much more to do with how the underlying platform handles fl... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Nov, 2019"
},
{
"code": null,
"e": 161,
"s": 54,
"text": "As it is know that 1.2 - 1.0 = 0.2 . But when you try to the same in python you will surprised by results:"
},
{
"code": null,
"e": 176,
"s": 161,
"text":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.