title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Minimum Cost To Make Two Strings Identical - GeeksforGeeks | 04 Mar, 2022
Given two strings X and Y, and two values costX and costY. We need to find minimum cost required to make the given two strings identical. We can delete characters from both the strings. The cost of deleting a character from string X is costX and from Y is costY. Cost of removing all characters from a strin... | [
{
"code": null,
"e": 24841,
"s": 24813,
"text": "\n04 Mar, 2022"
},
{
"code": null,
"e": 25160,
"s": 24841,
"text": "Given two strings X and Y, and two values costX and costY. We need to find minimum cost required to make the given two strings identical. We can delete characters ... |
Java Program to Write a Paragraph in a Word Document - GeeksforGeeks | 02 Dec, 2020
Java provides us various packages in-built into the environment, which facilitate the ease of reading, writing, and modifying the documents. The package org.apache.poi.xwpf.usermodel provides us the various features of formatting and appending the content in word documents. There are various classes availa... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 24542,
"s": 23948,
"text": "Java provides us various packages in-built into the environment, which facilitate the ease of reading, writing, and modifying the documents. The package org.apache... |
Get table column names in alphabetical order in MySQL? | To get the table column names in alphabetical order, you need to use ORDER BY. The syntax
is as follows −
SELECT anyReferenceName.COLUMN_NAME FROM
INFORMATION_SCHEMA.COLUMNS anyReferenceName
WHERE anyReferenceName.TABLE_NAME = ’yourTableName’
ORDER BY anyReferenceName.COLUMN_NAME
First, we need to get all the columns a... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "To get the table column names in alphabetical order, you need to use ORDER BY. The syntax\nis as follows −"
},
{
"code": null,
"e": 1343,
"s": 1168,
"text": "SELECT anyReferenceName.COLUMN_NAME FROM\nINFORMATION_SCHEMA.COLUMNS anyRef... |
11 Essential Code Blocks for EDA (Exploratory Data Analysis) | by Susan Maina | Jan, 2021 | Towards Data Science | Towards Data Science | Exploratory Data Analysis, or EDA, is one of the first steps of the data science process. It involves learning as much as possible about the data, without spending too much time. Here, you get an instinctive as well as a high-level practical understanding of the data. By the end of this process, you should have a gener... | [
{
"code": null,
"e": 610,
"s": 172,
"text": "Exploratory Data Analysis, or EDA, is one of the first steps of the data science process. It involves learning as much as possible about the data, without spending too much time. Here, you get an instinctive as well as a high-level practical understanding... |
Report Groups | Groups in JasperReports help to organize data on report in a logical manner. A report group represents a sequence of consecutive records in the data source, which have something in common, such as the value of a certain report fields. A report group is defined by the <group> element. A report can have any number of gro... | [
{
"code": null,
"e": 2641,
"s": 2254,
"text": "Groups in JasperReports help to organize data on report in a logical manner. A report group represents a sequence of consecutive records in the data source, which have something in common, such as the value of a certain report fields. A report group is ... |
Get unique values from a column in Pandas DataFrame - GeeksforGeeks | 10 Dec, 2018
Let’s discuss how to get unique values from a column in Pandas DataFrame.
Create a simple dataframe with dictionary of lists, say columns name are A, B, C, D, E with duplicate elements.
Now, let’s get the unique values of a column in this dataframe.
Example #1: Get the unique values of ‘B’ column
# Import ... | [
{
"code": null,
"e": 24671,
"s": 24643,
"text": "\n10 Dec, 2018"
},
{
"code": null,
"e": 24745,
"s": 24671,
"text": "Let’s discuss how to get unique values from a column in Pandas DataFrame."
},
{
"code": null,
"e": 24857,
"s": 24745,
"text": "Create a simple ... |
Update a column of text with MySQL REPLACE() | Let us first create a table −
mysql> create table DemoTable
(
Code varchar(100)
);
Query OK, 0 rows affected (0.50 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values('8565-9848-7474');
Query OK, 1 row affected (0.13 sec)
mysql> insert into DemoTable values('9994-6464-873... | [
{
"code": null,
"e": 1092,
"s": 1062,
"text": "Let us first create a table −"
},
{
"code": null,
"e": 1185,
"s": 1092,
"text": "mysql> create table DemoTable\n(\n Code varchar(100)\n);\nQuery OK, 0 rows affected (0.50 sec)"
},
{
"code": null,
"e": 1241,
"s": 118... |
Working with Missing Data in Pandas - GeeksforGeeks | 20 May, 2021
Missing Data can occur when no information is provided for one or more items or for a whole unit. Missing Data is a very big problem in a real-life scenarios. Missing Data can also refer to as NA(Not Available) values in pandas. In DataFrame sometimes many datasets simply arrive with missing data, either b... | [
{
"code": null,
"e": 24441,
"s": 24413,
"text": "\n20 May, 2021"
},
{
"code": null,
"e": 24985,
"s": 24441,
"text": "Missing Data can occur when no information is provided for one or more items or for a whole unit. Missing Data is a very big problem in a real-life scenarios. Miss... |
Express.js | app.METHOD() Function - GeeksforGeeks | 18 Jun, 2020
The app.METHOD() function is used to route an HTTP request, where METHOD is the HTTP method of the request, such as GET, PUT, POST, and so on, in lowercase. Thus, the actual methods are app.get(), app.post(), app.put(), and so on.
Syntax:
app.METHOD(path, callback [, callback ...])
Parameters:
Path: The pa... | [
{
"code": null,
"e": 24759,
"s": 24731,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 24990,
"s": 24759,
"text": "The app.METHOD() function is used to route an HTTP request, where METHOD is the HTTP method of the request, such as GET, PUT, POST, and so on, in lowercase. Thus, ... |
HTML Web Resources | In this chapter, we will learn about the various web resources in Microsoft Dynamics CRM.
An HTML Web Resource in CRM can contain any HTML content that can be rendered on a browser. Consider the following scenarios where you would like to use HTML Web Resources −
You have a static HTML page that you want to show inside... | [
{
"code": null,
"e": 2131,
"s": 2041,
"text": "In this chapter, we will learn about the various web resources in Microsoft Dynamics CRM."
},
{
"code": null,
"e": 2305,
"s": 2131,
"text": "An HTML Web Resource in CRM can contain any HTML content that can be rendered on a browser. ... |
Beyond Grid Search: Hypercharge Hyperparameter Tuning for XGBoost | by Druce Vertes | Towards Data Science | Bayesian optimization of machine learning model hyperparameters works faster and better than grid search. Here’s how we can speed up hyperparameter tuning with 1) Bayesian optimization with Hyperopt and Optuna, running on... 2) the Ray distributed machine learning framework, with a unified Ray Tune API to many hyperpar... | [
{
"code": null,
"e": 618,
"s": 172,
"text": "Bayesian optimization of machine learning model hyperparameters works faster and better than grid search. Here’s how we can speed up hyperparameter tuning with 1) Bayesian optimization with Hyperopt and Optuna, running on... 2) the Ray distributed machine... |
Error-in-Variables Models: Deming Regression | by Dr. Robert Kübler | Towards Data Science | Machine learning is often all about the following question:
Given a dataset (X, y), where X is a feature matrix and y is a target vector, find an f with f(X) ≈ y.
We usually do not enforce a strict equality à la f(X) = y because there are errors in the target values y. These errors arise from the fact that we usually ... | [
{
"code": null,
"e": 107,
"s": 47,
"text": "Machine learning is often all about the following question:"
},
{
"code": null,
"e": 210,
"s": 107,
"text": "Given a dataset (X, y), where X is a feature matrix and y is a target vector, find an f with f(X) ≈ y."
},
{
"code": nu... |
numpy.geomspace() in Python - GeeksforGeeks | 31 May, 2021
numpy.geomspace() is used to return numbers spaced evenly on a log scale (a geometric progression). This is similar to numpy.logspace() but with endpoints specified directly. Each output sample is a constant multiple of the previous.
Syntax : numpy.geomspace(start, stop, num=50, endpoint=True, dtype=None... | [
{
"code": null,
"e": 23755,
"s": 23727,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 23991,
"s": 23755,
"text": "numpy.geomspace() is used to return numbers spaced evenly on a log scale (a geometric progression). This is similar to numpy.logspace() but with endpoints specifie... |
How to download APK files from Google Play Store on Linux | Do you know how to download APK (Android packaging kit) files from Google Play store on Linux? One of the easiest way is to install APK on Android mobile for downloading APK files from Google Play Store to Hard Disk and install them on the Android device manually.
There are several ways to download APK file(s) on Linux... | [
{
"code": null,
"e": 1327,
"s": 1062,
"text": "Do you know how to download APK (Android packaging kit) files from Google Play store on Linux? One of the easiest way is to install APK on Android mobile for downloading APK files from Google Play Store to Hard Disk and install them on the Android devic... |
DUAL table in SQL - GeeksforGeeks | 25 Aug, 2020
There may be a situation where we want to query something that is not from a table. For example, getting the current date or querying a simple arithmetic expression like 2+2.
In Oracle, clause FROM is not exceptional. If we don’t write the FROM clause in Oracle, we’ll get an error.
Example-1: Oracle Query
... | [
{
"code": null,
"e": 24374,
"s": 24346,
"text": "\n25 Aug, 2020"
},
{
"code": null,
"e": 24549,
"s": 24374,
"text": "There may be a situation where we want to query something that is not from a table. For example, getting the current date or querying a simple arithmetic expressio... |
How to find Segmentation Error in C & C++ ? (Using GDB) | 03 Sep, 2018
What is Segmentation Error ?– It is the runtime error caused because of the memory access violation. For Eg :-Stackoverflow, read violation etc..We often face this problem when working out with pointers in c++/c.In this example we will see how to find the segmentation error in the program. We will find whi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Sep, 2018"
},
{
"code": null,
"e": 517,
"s": 52,
"text": "What is Segmentation Error ?– It is the runtime error caused because of the memory access violation. For Eg :-Stackoverflow, read violation etc..We often face this problem wh... |
Program to find third side of triangle using law of cosines | 08 Jun, 2022
Given two sides A, B and angle C. Find the third side of the triangle using law of cosines.Examples:
Input : a = 5, b = 8, c = 49
Output : 6.04339
In particular, the Law of Cosines can be used to find the length of the third side of a triangle when you know the length of two sides and the angle in be... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jun, 2022"
},
{
"code": null,
"e": 157,
"s": 54,
"text": "Given two sides A, B and angle C. Find the third side of the triangle using law of cosines.Examples: "
},
{
"code": null,
"e": 205,
"s": 157,
"text": "In... |
Neo4j Create Relationship | 23 Aug, 2019
In Neo4j to create relationship between nodes you have to use the CREATE statement like we used to create nodes. lets create relation between two already created nodes.Example:
Already created nodes:
Query to create relation:$ MATCH (a:GeeksforGeeks), (b:W3School)
WHERE a.Name = "A Computer Science Portal... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Aug, 2019"
},
{
"code": null,
"e": 205,
"s": 28,
"text": "In Neo4j to create relationship between nodes you have to use the CREATE statement like we used to create nodes. lets create relation between two already created nodes.Example... |
Lagrange’s Interpolation | 03 Dec, 2021
What is Interpolation? Interpolation is a method of finding new data points within the range of a discrete set of known data points (Source Wiki). In other words interpolation is the technique to estimate the value of a mathematical function, for any intermediate value of the independent variable. For exam... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Dec, 2021"
},
{
"code": null,
"e": 460,
"s": 54,
"text": "What is Interpolation? Interpolation is a method of finding new data points within the range of a discrete set of known data points (Source Wiki). In other words interpolatio... |
Select a random number from stream, with O(1) space | 21 Jan, 2022
Given a stream of numbers, generate a random number from the stream. You are allowed to use only O(1) space and the input is in the form of a stream, so can’t store the previously seen numbers. So how do we generate a random number from the whole stream such that the probability of picking any number is 1/... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Jan, 2022"
},
{
"code": null,
"e": 850,
"s": 52,
"text": "Given a stream of numbers, generate a random number from the stream. You are allowed to use only O(1) space and the input is in the form of a stream, so can’t store the previ... |
Python | Parse a website with regex and urllib | 23 Jan, 2019
Let’s discuss the concept of parsing using python. In python we have lot of modules but for parsing we only need urllib and re i.e regular expression. By using both of these libraries we can fetch the data on web pages.
Note that parsing of websites means that fetch the whole source code and that we want t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jan, 2019"
},
{
"code": null,
"e": 272,
"s": 52,
"text": "Let’s discuss the concept of parsing using python. In python we have lot of modules but for parsing we only need urllib and re i.e regular expression. By using both of these ... |
Swing Examples - Using Buttons | Following example showcase how to use standard buttons in a Java Swing application.
We are using the following APIs.
JButton − To create a standard button.
JButton − To create a standard button.
JButton.setEnabled(false); − To disable a button.
JButton.setEnabled(false); − To disable a button.
getRootPane().setDefaultB... | [
{
"code": null,
"e": 2123,
"s": 2039,
"text": "Following example showcase how to use standard buttons in a Java Swing application."
},
{
"code": null,
"e": 2156,
"s": 2123,
"text": "We are using the following APIs."
},
{
"code": null,
"e": 2195,
"s": 2156,
"te... |
How to Concatenate tuples to nested tuples in Python | When it is required to concatenate tuples to nested tuples, the '+' operator can be used. A tuple is an immutable data type. It means, values once defined can't be changed by accessing their index elements. If we try to change the elements, it results in an error. They are important contains since they ensure read-only... | [
{
"code": null,
"e": 1391,
"s": 1062,
"text": "When it is required to concatenate tuples to nested tuples, the '+' operator can be used. A tuple is an immutable data type. It means, values once defined can't be changed by accessing their index elements. If we try to change the elements, it results i... |
Contractive Autoencoder (CAE) - GeeksforGeeks | 18 Jan, 2022
Contractive Autoencoder was proposed by the researchers at the University of Toronto in 2011 in the paper Contractive auto-encoders: Explicit invariance during feature extraction. The idea behind that is to make the autoencoders robust of small changes in the training dataset.
To deal with the above challe... | [
{
"code": null,
"e": 23953,
"s": 23925,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 24231,
"s": 23953,
"text": "Contractive Autoencoder was proposed by the researchers at the University of Toronto in 2011 in the paper Contractive auto-encoders: Explicit invariance during fea... |
What are C++ Floating-Point Constants? | Floating-point constants specify values that must have a fractional part.
Floating-point constants have a "mantissa," which specifies the value of the number, an "exponent," which specifies the magnitude of the number, and an optional suffix that specifies the constant's type(double or float).
The mantissa is specified... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "Floating-point constants specify values that must have a fractional part."
},
{
"code": null,
"e": 1357,
"s": 1136,
"text": "Floating-point constants have a \"mantissa,\" which specifies the value of the number, an \"exponent,\" whic... |
JavaScript - Array constructor Property | JavaScript array constructor property returns a reference to the array function that created the instance's prototype.
Its syntax is as follows −
array.constructor
Returns the function that created this object's instance.
Try the following example.
<html>
<head>
<title>JavaScript Array constructor Property</t... | [
{
"code": null,
"e": 2585,
"s": 2466,
"text": "JavaScript array constructor property returns a reference to the array function that created the instance's prototype."
},
{
"code": null,
"e": 2612,
"s": 2585,
"text": "Its syntax is as follows −"
},
{
"code": null,
"e":... |
How to convert a data frame to data.table in R? | Since operations with data.table are sometimes faster than the data frames, we might want to convert a data frame to a data.table object. The main difference between data frame and data.table is that data frame is available in the base R but to use data.table we have to install the package data.table. We can do this wi... | [
{
"code": null,
"e": 1436,
"s": 1062,
"text": "Since operations with data.table are sometimes faster than the data frames, we might want to convert a data frame to a data.table object. The main difference between data frame and data.table is that data frame is available in the base R but to use data... |
CAST function in Cassandra - GeeksforGeeks | 30 Oct, 2019
CAST function helps in Converts data from one data type to another data type in Cassandra.
In Cassandra CAST function Supported in SELECT statements. lets have a look how we can used CAST function in select statement.
SELECT CAST([fieldname] AS [data type])
FROM [table name]
Basic function of CAST:
It Co... | [
{
"code": null,
"e": 23647,
"s": 23619,
"text": "\n30 Oct, 2019"
},
{
"code": null,
"e": 23738,
"s": 23647,
"text": "CAST function helps in Converts data from one data type to another data type in Cassandra."
},
{
"code": null,
"e": 23865,
"s": 23738,
"text": ... |
AVRO - Deserialization Using Parsers | As mentioned earlier, one can read an Avro schema into a program either by generating a class corresponding to a schema or by using the parsers library. In Avro, data is always stored with its corresponding schema. Therefore, we can always read a serialized item without code generation.
This chapter describes how to re... | [
{
"code": null,
"e": 2149,
"s": 1861,
"text": "As mentioned earlier, one can read an Avro schema into a program either by generating a class corresponding to a schema or by using the parsers library. In Avro, data is always stored with its corresponding schema. Therefore, we can always read a serial... |
C# | Creating a read-only wrapper for the List - GeeksforGeeks | 27 Jan, 2019
List<T>.AsReadOnly Method is used to get a read-only ReadOnlyCollection<T> wrapper for the current collection.
Syntax:
public System.Collections.ObjectModel.ReadOnlyCollection AsReadOnly ();
Return Value: It returns an object that acts as a read-only wrapper around the current List<T>.
Example:
// C# code ... | [
{
"code": null,
"e": 23994,
"s": 23966,
"text": "\n27 Jan, 2019"
},
{
"code": null,
"e": 24105,
"s": 23994,
"text": "List<T>.AsReadOnly Method is used to get a read-only ReadOnlyCollection<T> wrapper for the current collection."
},
{
"code": null,
"e": 24113,
"s":... |
Operating System - Processes | A process is basically a program in execution. The execution of a process must progress in a sequential fashion.
To put it in simple terms, we write our computer programs in a text file and when we execute this program, it becomes a process which performs all the tasks mentioned in the program.
When a program is loaded... | [
{
"code": null,
"e": 2027,
"s": 1914,
"text": "A process is basically a program in execution. The execution of a process must progress in a sequential fashion."
},
{
"code": null,
"e": 2210,
"s": 2027,
"text": "To put it in simple terms, we write our computer programs in a text f... |
How to check the existence of key in an object using AngularJS ? - GeeksforGeeks | 14 Oct, 2020
Given an object containing (key, value) pair and the task is to check whether a key exists in an object or not using AngularJS.
Approach: The approach is to use the in operator to check whether a key exists in object or not. In first example the key “Prop_1” is input and it exists in the object. In the sec... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 25237,
"s": 25109,
"text": "Given an object containing (key, value) pair and the task is to check whether a key exists in an object or not using AngularJS."
},
{
"code": null,
"e"... |
\mapsto - Tex Command | \mapsto - Used to draw mapsto symbol.
{ \mapsto }
\mapsto command is used to draw mapsto symbol.
\mapsto
↦
\mapsto
↦
\mapsto
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 h... | [
{
"code": null,
"e": 8024,
"s": 7986,
"text": "\\mapsto - Used to draw mapsto symbol."
},
{
"code": null,
"e": 8036,
"s": 8024,
"text": "{ \\mapsto }"
},
{
"code": null,
"e": 8083,
"s": 8036,
"text": "\\mapsto command is used to draw mapsto symbol."
},
{
... |
Topic Modeling in Python: Latent Dirichlet Allocation (LDA) | by Shashank Kapadia | Towards Data Science | Preface: This article aims to provide consolidated information on the underlying topic and is not to be considered as the original work. The information and the code are repurposed through several online articles, research papers, books, and open-source code
Topic Models, in a nutshell, are a type of statistical langua... | [
{
"code": null,
"e": 431,
"s": 172,
"text": "Preface: This article aims to provide consolidated information on the underlying topic and is not to be considered as the original work. The information and the code are repurposed through several online articles, research papers, books, and open-source c... |
How to join tables using SQL to combine datasets | by Kate Marie Lewis | Towards Data Science | For the last 4 weeks my friends and I have been helping each other learn new skills while social distancing. We are learning data science as an online study group. We are nearly finished the SQL portion. I am so proud of everyone’s efforts and how willing they have been to have a go at something new.
In the last couple... | [
{
"code": null,
"e": 474,
"s": 172,
"text": "For the last 4 weeks my friends and I have been helping each other learn new skills while social distancing. We are learning data science as an online study group. We are nearly finished the SQL portion. I am so proud of everyone’s efforts and how willing... |
How to replace values of a Python dictionary? | You can assign a dictionary value to a variable in Python using the access operator []. For example,
my_dict = {
'foo': 42,
'bar': 12.5
}
new_var = my_dict['foo']
print(new_var)
This will give the output −
42
This syntax can also be used to reassign the value associated with this key. For example,
my_dict = {
... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "You can assign a dictionary value to a variable in Python using the access operator []. For example,"
},
{
"code": null,
"e": 1246,
"s": 1163,
"text": "my_dict = {\n 'foo': 42,\n 'bar': 12.5\n}\nnew_var = my_dict['foo']\nprint(ne... |
How to disable action bar permanently in Android? | This example demonstrate about How to disable action bar permanently 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.java
<? xml version= "1.0" encoding= "utf-8" ?>
<R... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "This example demonstrate about How to disable action bar permanently in Android."
},
{
"code": null,
"e": 1272,
"s": 1143,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detai... |
Sorting algorithm visualization : Heap Sort - GeeksforGeeks | 28 Dec, 2021
An algorithm like Heap sort can be understood easily by visualizing. In this article, a program that visualizes the Heap Sort Algorithm has been implemented.
The Graphical User Interface(GUI) is implemented in Python using pygame library.
Generate random array and fill the pygame window with bars. Bars ar... | [
{
"code": null,
"e": 24347,
"s": 24316,
"text": " \n28 Dec, 2021\n"
},
{
"code": null,
"e": 24505,
"s": 24347,
"text": "An algorithm like Heap sort can be understood easily by visualizing. In this article, a program that visualizes the Heap Sort Algorithm has been implemented."
... |
Creating Word Embeddings for Out-Of-Vocabulary (OOV) words such as Singlish | by Timothy Tan | Towards Data Science | In this article, I will share how I created Singlish Word Embeddings to be used for downstream Natural Language Processing (NLP) tasks.
But why you might ask?
To understand my motivation for such a task, you first need to understand what word embeddings are and their importance in NLP.
When it comes to Natural Language... | [
{
"code": null,
"e": 308,
"s": 172,
"text": "In this article, I will share how I created Singlish Word Embeddings to be used for downstream Natural Language Processing (NLP) tasks."
},
{
"code": null,
"e": 331,
"s": 308,
"text": "But why you might ask?"
},
{
"code": null,... |
Train a Neural Network to classify images and optimize CPU inferencing in 10mins | by Ojas Dileep Sawant | Towards Data Science | There are tons of resources out there on simplified Training and optimized pre-trained Inferencing models. However, training something custom to optimize performance on readily available hardware with minimal effort still seemed far fetched!
In this article we will leverage the concept of transfer learning where a mode... | [
{
"code": null,
"e": 414,
"s": 172,
"text": "There are tons of resources out there on simplified Training and optimized pre-trained Inferencing models. However, training something custom to optimize performance on readily available hardware with minimal effort still seemed far fetched!"
},
{
... |
Design Patterns for MongoDB. Design decisions every full stack... | by Semi Koen | Towards Data Science | Since the dawn of computing, data is ever growing — this has a direct impact on the needs for storage, processing and analytics technologies. The past decade, developers have moved from SQL to NoSQL databases, with MongoDB being dominant in terms of popularity, as an operational data store in the world of enterprise ap... | [
{
"code": null,
"e": 504,
"s": 172,
"text": "Since the dawn of computing, data is ever growing — this has a direct impact on the needs for storage, processing and analytics technologies. The past decade, developers have moved from SQL to NoSQL databases, with MongoDB being dominant in terms of popul... |
Data Visualization Using Pandas Bokeh | by Raji Rai | Towards Data Science | Exploratory data analysis is the foundation for understanding and building effective ML models. Data visualization is a key part of EDA, and there are many tools available for this. Bokeh is an interactive visualization library. It provides intuitive and versatile graphics. Bokeh can help to quickly and easily make int... | [
{
"code": null,
"e": 582,
"s": 172,
"text": "Exploratory data analysis is the foundation for understanding and building effective ML models. Data visualization is a key part of EDA, and there are many tools available for this. Bokeh is an interactive visualization library. It provides intuitive and ... |
Zoho Interview | Set 4 - GeeksforGeeks | 22 Jul, 2019
Round one:Note: They have two patterns, for me they asked programming pattern, which is really tough.Time: 2.15 hrs40 Questions full of programming, first 10 questions have half mark, next 30 Questions have 1 mark, no Compilation Errors.1) First 10 questions is to find the output of program which contains ... | [
{
"code": null,
"e": 24974,
"s": 24946,
"text": "\n22 Jul, 2019"
},
{
"code": null,
"e": 25683,
"s": 24974,
"text": "Round one:Note: They have two patterns, for me they asked programming pattern, which is really tough.Time: 2.15 hrs40 Questions full of programming, first 10 quest... |
Why does Python automatically exit a script when it’s done? - GeeksforGeeks | 26 Nov, 2020
Python is a scripting language. This means that a Python code is executed line by line with the help of a Python interpreter. When a python interpreter encounters an end-of-file character, it is unable to retrieve any data from the script. This EOF(end-of-file) character is the same as the EOF that informs... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 24662,
"s": 24292,
"text": "Python is a scripting language. This means that a Python code is executed line by line with the help of a Python interpreter. When a python interpreter encounters ... |
Handling errors in SAP GUI Scripting code | You can take reference from GUI Scripting help section and it can explain things in detail.
It provides you default property types as per requirement. If you want to perform next step, stop or abort user step, you can use the following properties.
See the below code that uses above property type to display different me... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "You can take reference from GUI Scripting help section and it can explain things in detail."
},
{
"code": null,
"e": 1310,
"s": 1154,
"text": "It provides you default property types as per requirement. If you want to perform next ste... |
GATE | GATE-CS-2014-(Set-2) | Question 65 - GeeksforGeeks | 10 Sep, 2021
Consider the grammar defined by the following production rules, with two operators ∗ and +
S --> T * P
T --> U | T * U
P --> Q + P | Q
Q --> Id
U --> Id
Which one of the following is TRUE?
(A) + is left associative, while ∗ is right associative(B) + is right associative, while ∗ is le... | [
{
"code": null,
"e": 25693,
"s": 25665,
"text": "\n10 Sep, 2021"
},
{
"code": null,
"e": 25784,
"s": 25693,
"text": "Consider the grammar defined by the following production rules, with two operators ∗ and +"
},
{
"code": null,
"e": 25868,
"s": 25784,
"text": ... |
7 libraries that help in time-series problems | by Pratik Gandhi | Towards Data Science | Time series problems are one of the toughest problems to solve in data science. Traditional methods that are time-aware like ARIMA, SARIMA are great but lately they have largely been accompanied by the non-time aware and robust machine learning algorithms like XGBoost, LigthGBM, and so forth because of need and proven ... | [
{
"code": null,
"e": 744,
"s": 172,
"text": "Time series problems are one of the toughest problems to solve in data science. Traditional methods that are time-aware like ARIMA, SARIMA are great but lately they have largely been accompanied by the non-time aware and robust machine learning algorithms... |
DAX Filter - ALL function | Returns all the rows in a table or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table.
ALL ({<table> | <column>, [<column>], [<column>] ...})
table
The table that you want to clear filters on.... | [
{
"code": null,
"e": 2214,
"s": 2001,
"text": "Returns all the rows in a table or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table."
},
{
"code": null,
"e": 227... |
Abstract Syntax Tree (AST) in Java - GeeksforGeeks | 12 Aug, 2021
Abstract Syntax Tree is a kind of tree representation of the abstract syntactic structure of source code written in a programming language. Each node of the tree denotes a construct occurring in the source code.
There is numerous importance of AST with application in compilers as abstract syntax trees are ... | [
{
"code": null,
"e": 23892,
"s": 23864,
"text": "\n12 Aug, 2021"
},
{
"code": null,
"e": 24104,
"s": 23892,
"text": "Abstract Syntax Tree is a kind of tree representation of the abstract syntactic structure of source code written in a programming language. Each node of the tree d... |
Supermarket Data Analysis with Pandas | by Soner Yıldırım | Towards Data Science | Pandas is the most widely-used data analysis and manipulation library for Python. Its intuitive and versatile functions make the data analysis process efficient, simple, and easy to understand.
In this article, we will practice pandas on a supermarket sales dataset available on Kaggle. It contains sales data of differe... | [
{
"code": null,
"e": 366,
"s": 172,
"text": "Pandas is the most widely-used data analysis and manipulation library for Python. Its intuitive and versatile functions make the data analysis process efficient, simple, and easy to understand."
},
{
"code": null,
"e": 552,
"s": 366,
"... |
Find the version of the Pandas and its dependencies in Python | Pandas is the important package for data analysis in Python. There are different versions available for Pandas. Due to some version mismatch, it may create some problems. So we need to find the version numbers of the Pandas. We can see them easily using the following code.
We can use the command like below, to get the ... | [
{
"code": null,
"e": 1336,
"s": 1062,
"text": "Pandas is the important package for data analysis in Python. There are different versions available for Pandas. Due to some version mismatch, it may create some problems. So we need to find the version numbers of the Pandas. We can see them easily using... |
RxJS - Creation Operator iif | This operator will decide which Observable will be subscribed.
iif(condition: Function):Observable
condition − The condition is a function if its return true the observable will be subscribed.
An observable will be returned based on the condition.
import { iif, of } from 'rxjs';
import { mergeMap, first, last } from '... | [
{
"code": null,
"e": 1887,
"s": 1824,
"text": "This operator will decide which Observable will be subscribed."
},
{
"code": null,
"e": 1924,
"s": 1887,
"text": "iif(condition: Function):Observable\n"
},
{
"code": null,
"e": 2018,
"s": 1924,
"text": "condition ... |
Find minimum number of coins that make a given value - GeeksforGeeks | 18 Oct, 2021
Given a value V, if we want to make a change for V cents, and we have an infinite supply of each of C = { C1, C2, .., Cm} valued coins, what is the minimum number of coins to make the change? If it’s not possible to make a change, print -1.
Examples:
Input: coins[] = {25, 10, 5}, V = 30
Output: Minimum 2... | [
{
"code": null,
"e": 25927,
"s": 25899,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 26168,
"s": 25927,
"text": "Given a value V, if we want to make a change for V cents, and we have an infinite supply of each of C = { C1, C2, .., Cm} valued coins, what is the minimum number ... |
How to create a ColorPicker using JavaFX? | A color picker gives you a standard color palette fro which you can select a required color. You can create a color picker by instantiating the javafx.scene.control.ColorPicker class.
The following Example demonstrates the creation of a ColorPicker.
import javafx.application.Application;
import javafx.geometry.Insets;
... | [
{
"code": null,
"e": 1246,
"s": 1062,
"text": "A color picker gives you a standard color palette fro which you can select a required color. You can create a color picker by instantiating the javafx.scene.control.ColorPicker class."
},
{
"code": null,
"e": 1312,
"s": 1246,
"text":... |
Implement Queue using array | Practice | GeeksforGeeks | Implement a Queue using an Array. Queries in the Queue are of the following type:
(i) 1 x (a query of this type means pushing 'x' into the queue)
(ii) 2 (a query of this type means to pop element from queue and print the poped element)
Example 1:
Input:
Q = 5
Queries = 1 2 1 3 2 1 4 2
Output: 2 3
Explanation:
In... | [
{
"code": null,
"e": 481,
"s": 238,
"text": "Implement a Queue using an Array. Queries in the Queue are of the following type:\n(i) 1 x (a query of this type means pushing 'x' into the queue)\n(ii) 2 (a query of this type means to pop element from queue and print the poped element)"
},
{
... |
Unix / Linux - Shell Manpage Help | All the Unix commands come with a number of optional and mandatory options. It is very common to forget the complete syntax of these commands.
Because no one can possibly remember every Unix command and all its options, we have online help available to mitigate this right from when Unix was at its development stage.
Un... | [
{
"code": null,
"e": 2890,
"s": 2747,
"text": "All the Unix commands come with a number of optional and mandatory options. It is very common to forget the complete syntax of these commands."
},
{
"code": null,
"e": 3065,
"s": 2890,
"text": "Because no one can possibly remember ev... |
Do You Know Python Has A Built-In Database? | by Christopher Tao | Towards Data Science | If you are a software developer, I believe you must know or even have used an extremely light-weighted database — SQLite. It has almost all the features you need as a relational database, but everything is saved in a single file. On the official site, here are some scenarios that you could use SQLite.
Embedded devices ... | [
{
"code": null,
"e": 475,
"s": 172,
"text": "If you are a software developer, I believe you must know or even have used an extremely light-weighted database — SQLite. It has almost all the features you need as a relational database, but everything is saved in a single file. On the official site, her... |
Mockito - Exception Handling | Mockito provides the capability to a mock to throw exceptions, so exception handling can be tested. Take a look at the following code snippet.
//add the behavior to throw exception
doThrow(new Runtime Exception("divide operation not implemented"))
.when(calcService).add(10.0,20.0);
Here we've added an exception cla... | [
{
"code": null,
"e": 2123,
"s": 1980,
"text": "Mockito provides the capability to a mock to throw exceptions, so exception handling can be tested. Take a look at the following code snippet."
},
{
"code": null,
"e": 2267,
"s": 2123,
"text": "//add the behavior to throw exception\n... |
Program to add two numbers represented as strings in Python | Suppose we have two strings S, and T, these two are representing an integer, we have to add them and find the result in the same string representation.
So, if the input is like "256478921657", "5871257468", then the output will be "262350179125", as 256478921657 + 5871257468 = 262350179125
To solve this, we will follow... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "Suppose we have two strings S, and T, these two are representing an integer, we have to add them and find the result in the same string representation."
},
{
"code": null,
"e": 1353,
"s": 1214,
"text": "So, if the input is like \"256... |
How to Create Simple Visualizations with Google Charts and Pandas Dataframes | by Alan Jones | Towards Data Science | Google Charts have been around for more years than I care to remember, so I think we can safely assume that it is a mature and stable technology.
It can also be used to create attractive charts and graphs.
Here, we can see a simple line chart which is interactive to the extent that when you hover over a point on the gr... | [
{
"code": null,
"e": 318,
"s": 172,
"text": "Google Charts have been around for more years than I care to remember, so I think we can safely assume that it is a mature and stable technology."
},
{
"code": null,
"e": 378,
"s": 318,
"text": "It can also be used to create attractive... |
Deploying a Simple Machine Learning Model into a WebApp using TensorFlow.js | by Carlos Aguayo | Towards Data Science | Go ahead and try it in your browser or phone:
https://carlos-aguayo.github.io/tfjs.html
The beauty in TensorFlow.js is that you can train a Machine Learning Model in Python using Keras or Tensorflow and deploy it on a browser using TensorFlow.js. No need for an external service to run your queries.
This fun and simple ... | [
{
"code": null,
"e": 218,
"s": 172,
"text": "Go ahead and try it in your browser or phone:"
},
{
"code": null,
"e": 260,
"s": 218,
"text": "https://carlos-aguayo.github.io/tfjs.html"
},
{
"code": null,
"e": 472,
"s": 260,
"text": "The beauty in TensorFlow.js i... |
MariaDB - Alter Command | The ALTER command provides a way to change an existing table's structure, meaning modifications like removing or adding columns, modifying indices, changing data types, or changing names. ALTER also waits to apply changes when a metadata lock is active.
ALTER paired with DROP removes an existing column. However, it fai... | [
{
"code": null,
"e": 2616,
"s": 2362,
"text": "The ALTER command provides a way to change an existing table's structure, meaning modifications like removing or adding columns, modifying indices, changing data types, or changing names. ALTER also waits to apply changes when a metadata lock is active.... |
SQL Server Index Analysis and Optimization | by Evgeniy Gribkov | Towards Data Science | Quite often there is a need to optimize indexes and statistics for quicker search for the necessary data and better construction of a query execution plan by an optimizer.
The following areas of work can be understood as index optimization:
creation of missing indexes
removal of overlapping indexes
removal of unused in... | [
{
"code": null,
"e": 344,
"s": 172,
"text": "Quite often there is a need to optimize indexes and statistics for quicker search for the necessary data and better construction of a query execution plan by an optimizer."
},
{
"code": null,
"e": 413,
"s": 344,
"text": "The following ... |
Difference Between RGB, CMYK, HSV, and YIQ Color Models - GeeksforGeeks | 19 Nov, 2021
The colour spaces in image processing aim to facilitate the specifications of colours in some standard way. Different types of colour spaces are used in multiple fields like in hardware, in multiple applications of creating animation, etc. The colour model aims to facilitate the specifications of colours i... | [
{
"code": null,
"e": 24277,
"s": 24249,
"text": "\n19 Nov, 2021"
},
{
"code": null,
"e": 24606,
"s": 24277,
"text": "The colour spaces in image processing aim to facilitate the specifications of colours in some standard way. Different types of colour spaces are used in multiple f... |
How to perform post hoc test for Kruskal-Wallis in R? | The Kruskal-Wallis test is the non-parametric analogue of one-way analysis of variance. The non-parametric tests are used in situations when the assumptions of parametric tests are not met. If we find significant difference in Kruskal-Wallis then post hoc tests are done to find where the difference exists. For this pur... | [
{
"code": null,
"e": 1477,
"s": 1062,
"text": "The Kruskal-Wallis test is the non-parametric analogue of one-way analysis of variance. The non-parametric tests are used in situations when the assumptions of parametric tests are not met. If we find significant difference in Kruskal-Wallis then post h... |
Unary operator in C++ | Unary operator is operators that act upon a single operand to produce a new value. The unary operators are as follows:
These operators have right-to-left associativity. Unary expressions generally involve syntax that precedes a postfix or primary expression.
Let's look at an example of the -(minus) and casting() unary ... | [
{
"code": null,
"e": 1181,
"s": 1062,
"text": "Unary operator is operators that act upon a single operand to produce a new value. The unary operators are as follows:"
},
{
"code": null,
"e": 1321,
"s": 1181,
"text": "These operators have right-to-left associativity. Unary express... |
Build, Train and Deploy A Real-World Flower Classifier of 102 Flower Types | by Juv Chan | Towards Data Science | I love flowers. The lotus flower above is one of my most favorite flower photos taken during my visit to the Summer Palace Beijing in 2008. Since I am a developer and enjoy learning and working on artificial intelligence and cloud projects, I decide to write this blog post to share my project on building a real-world f... | [
{
"code": null,
"e": 555,
"s": 172,
"text": "I love flowers. The lotus flower above is one of my most favorite flower photos taken during my visit to the Summer Palace Beijing in 2008. Since I am a developer and enjoy learning and working on artificial intelligence and cloud projects, I decide to wr... |
How to call a JavaScript function from an onmouseover event? | The onmouseover event triggers when you bring your mouse over any element.
You can try to run the following example to learn how to call a JavaScript function from onmouseover event
Live Demo
<html>
<head>
<script>
<!--
function over() {
document.write ("Mouse Over");
... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "The onmouseover event triggers when you bring your mouse over any element."
},
{
"code": null,
"e": 1244,
"s": 1137,
"text": "You can try to run the following example to learn how to call a JavaScript function from onmouseover event"... |
Random vs Secure Random numbers in Java | Java provides two classes for having random numbers generation - SecureRandom.java and Random.java.The random numbers can be used generally for encryption key or session key or simply password on web server.SecureRandom is under java.security package while Random.java comes under java.util package.The basic and importa... | [
{
"code": null,
"e": 1627,
"s": 1062,
"text": "Java provides two classes for having random numbers generation - SecureRandom.java and Random.java.The random numbers can be used generally for encryption key or session key or simply password on web server.SecureRandom is under java.security package wh... |
Difference between HashMap and HashSet in Java. | HashMap and HashSet both are one of the most important classes of Java Collection framework.
Following are the important differences between HashMap and HashSet.
JavaTester.java
Live Demo
import java.util.HashSet;
public class JavaTester {
public static void main(String[] args){
HashSet<String> hs = new HashS... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "HashMap and HashSet both are one of the most important classes of Java Collection framework."
},
{
"code": null,
"e": 1224,
"s": 1155,
"text": "Following are the important differences between HashMap and HashSet."
},
{
"code"... |
How to Build a Poisson Hidden Markov Model Using Python and Statsmodels | by Sachin Date | Towards Data Science | A Poisson Hidden Markov Model is a mixture of two regression models: A Poisson regression model which is visible and a Markov model which is ‘hidden’. In a Poisson HMM, the mean value predicted by the Poisson model depends on not only the regression variables of the Poisson model, but also on the current state or regim... | [
{
"code": null,
"e": 531,
"s": 171,
"text": "A Poisson Hidden Markov Model is a mixture of two regression models: A Poisson regression model which is visible and a Markov model which is ‘hidden’. In a Poisson HMM, the mean value predicted by the Poisson model depends on not only the regression varia... |
How to set list in descending order in HTML5 ? | 31 Mar, 2021
HTML Lists are used to create informative lists. Any list will have one or more list items. We have three types of lists in HTML.
ul: An unordered list is referred to as an ul. Simple bullets would be used to list the items.
ol: A number that is arranged in a certain order. This will list the items using v... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Mar, 2021"
},
{
"code": null,
"e": 158,
"s": 28,
"text": "HTML Lists are used to create informative lists. Any list will have one or more list items. We have three types of lists in HTML."
},
{
"code": null,
"e": 253,
... |
How to Detect Shapes in Images in Python using OpenCV? | 13 Jan, 2021
Prerequisites: OpenCV
OpenCV is an open source library used mainly for processing images and videos to identify shapes, objects, text etc. It is mostly used with python. In this article we are going to see how to detect shapes in image. For this we need cv2.findContours() function of OpenCV, and also we ar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jan, 2021"
},
{
"code": null,
"e": 50,
"s": 28,
"text": "Prerequisites: OpenCV"
},
{
"code": null,
"e": 451,
"s": 50,
"text": "OpenCV is an open source library used mainly for processing images and videos to ident... |
numpy.roll() in Python | 09 Mar, 2022
The numpy.roll() function rolls array elements along the specified axis. Basically what happens is that elements of the input array are being shifted. If an element is being rolled first to the last position, it is rolled back to the first position.
Syntax :
numpy.roll(array, shift, axis = None)
Paramet... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Mar, 2022"
},
{
"code": null,
"e": 280,
"s": 28,
"text": "The numpy.roll() function rolls array elements along the specified axis. Basically what happens is that elements of the input array are being shifted. If an element is being r... |
Traits vs. Interfaces in PHP | 05 Aug, 2019
The main difference between the Traits and Interfaces in PHP is that the Traits define the actual implementation of each method within each class, so many classes implement the same interface but having different behavior, while traits are just chunks of code injected in a class in PHP.
Traits
Traits are n... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Aug, 2019"
},
{
"code": null,
"e": 341,
"s": 53,
"text": "The main difference between the Traits and Interfaces in PHP is that the Traits define the actual implementation of each method within each class, so many classes implement t... |
Working with forms using Express.js in Node.js | 01 Apr, 2021
In this article, we will be working with forms using ExpressJS in NodeJS.
Using server side programming in Node.js, we can create forms where we can put certain parameters which upon filling gets stored in the database.
Setting up environment:
You can refer to this website for downloading Node.js. Along wi... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 128,
"s": 54,
"text": "In this article, we will be working with forms using ExpressJS in NodeJS."
},
{
"code": null,
"e": 274,
"s": 128,
"text": "Using server side programming i... |
Most commonly used tags in HTML | 02 Jun, 2022
HTML contains lots of predefined tags. Some of them are described below:
Document structure tag:
HTML tag: It is the root of the HTML document which is used to specify that the document is HTML.
Syntax:
<html> Statements... </html>
Code:
html
<html> <head> <title>Title of your web page</title... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jun, 2022"
},
{
"code": null,
"e": 126,
"s": 52,
"text": "HTML contains lots of predefined tags. Some of them are described below: "
},
{
"code": null,
"e": 151,
"s": 126,
"text": "Document structure tag: "
},
... |
R – Vector | 22 Apr, 2020
R programming is one of the most popular languages when it comes to data science, statistical computations or scientific research. R programming is widely used in machine learning and it is very efficient and user-friendly. It provides flexibility in doing big statistical operations with a few lines of cod... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 362,
"s": 52,
"text": "R programming is one of the most popular languages when it comes to data science, statistical computations or scientific research. R programming is widely used in machine lea... |
Node.js crypto.createHash() Method | 24 Jun, 2022
The crypto.createHash() method is used to create a Hash object that can be used to create hash digests by using the stated algorithm.
Syntax:
crypto.createHash( algorithm, options )
Parameters: This method accept two parameters as mentioned above and described below:
algorithm: It is dependent on the acce... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 189,
"s": 54,
"text": "The crypto.createHash() method is used to create a Hash object that can be used to create hash digests by using the stated algorithm. "
},
{
"code": null,
"e": 19... |
Python | Get tuple element data types | 18 Oct, 2019
Tuples can be a collection of various data types, and unlike simpler data types, conventional methods of getting the type of each element of tuple is not possible. For this we need to have different ways to achieve this task. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Oct, 2019"
},
{
"code": null,
"e": 318,
"s": 28,
"text": "Tuples can be a collection of various data types, and unlike simpler data types, conventional methods of getting the type of each element of tuple is not possible. For this we... |
A Classification Problem with Python — Homesite Quote Conversion | by Shirley Chen | Towards Data Science | Homesite, a leading provider of homeowners insurance, does not currently have a dynamic conversion rate model that can give them confidence a quoted price will lead to a purchase. Using an anonymized database of information on customer and sales activity, including property and coverage information, they are challengin... | [
{
"code": null,
"e": 717,
"s": 172,
"text": "Homesite, a leading provider of homeowners insurance, does not currently have a dynamic conversion rate model that can give them confidence a quoted price will lead to a purchase. Using an anonymized database of information on customer and sales activity,... |
Interesting Patterns | Practice | GeeksforGeeks | Given an integer N. Your task is to identify the pattern from the Examples and print the pattern.
Example 1:
Input:
N = 4
Output:
4444444
4333334
4322234
4321234
4322234
4333334
4444444
Example 2:
Input:
N = 3
Output:
33333
32223
32123
32223
33333
Your Task:
You don't need to read input or print anythin... | [
{
"code": null,
"e": 324,
"s": 226,
"text": "Given an integer N. Your task is to identify the pattern from the Examples and print the pattern."
},
{
"code": null,
"e": 338,
"s": 326,
"text": "Example 1: "
},
{
"code": null,
"e": 421,
"s": 338,
"text": "Input:\... |
How long JWT token valid ? - GeeksforGeeks | 01 Dec, 2021
JSON web token is an efficient, secured as well mostly used method of transferring or exchanging data on the internet. Generally, it is used for authentication and authorization in applications. The workflow of the authentication is we generate the token at the server and send back it to the client which i... | [
{
"code": null,
"e": 24842,
"s": 24814,
"text": "\n01 Dec, 2021"
},
{
"code": null,
"e": 25406,
"s": 24842,
"text": "JSON web token is an efficient, secured as well mostly used method of transferring or exchanging data on the internet. Generally, it is used for authentication and... |
Absolute and Relative Imports in Python | Many times when we create python code we find that we need to access code from another python file or package. This is when you need to import that other python file or package into your current code. So the straight forward way to achieve this is just written the below statement at the top of your current python progr... | [
{
"code": null,
"e": 1386,
"s": 1062,
"text": "Many times when we create python code we find that we need to access code from another python file or package. This is when you need to import that other python file or package into your current code. So the straight forward way to achieve this is just ... |
Struts 2 - Control Tags | The Struts 2 tags has a set of tags that makes it easy to control the flow of page execution.
Following is the list of important Struts 2 Control Tags −
These tags perform basic condition flow found in every language.
'If' tag is used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag as shown below −
<s... | [
{
"code": null,
"e": 2340,
"s": 2246,
"text": "The Struts 2 tags has a set of tags that makes it easy to control the flow of page execution."
},
{
"code": null,
"e": 2399,
"s": 2340,
"text": "Following is the list of important Struts 2 Control Tags −"
},
{
"code": null,
... |
jQuery - Drawsvg.js | Drawsvg.js is a jQuery plugin to draw svg images
A Simple of drawsvg example as shown below −
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "UTF-8">
<link rel = "shortcut icon" type = "image/x-icon" href = "favicon.ico">
<link rel = "stylesheet"
href = "https://fonts.googleapi... | [
{
"code": null,
"e": 2371,
"s": 2322,
"text": "Drawsvg.js is a jQuery plugin to draw svg images"
},
{
"code": null,
"e": 2416,
"s": 2371,
"text": "A Simple of drawsvg example as shown below −"
},
{
"code": null,
"e": 14699,
"s": 2416,
"text": "<!DOCTYPE html>\... |
ES6 - getTimezoneOffset() Method | Javascript date getTimezoneOffset() method returns the time-zone offset in minutes for the current locale. The time-zone offset is the minutes in difference, the Greenwich Mean Time (GMT) is relative to your local time.
For example, if your time zone is GMT+10, -600 will be returned. Daylight savings time prevents this... | [
{
"code": null,
"e": 2497,
"s": 2277,
"text": "Javascript date getTimezoneOffset() method returns the time-zone offset in minutes for the current locale. The time-zone offset is the minutes in difference, the Greenwich Mean Time (GMT) is relative to your local time."
},
{
"code": null,
"... |
wxPython - Layout Management | A GUI widget can be placed inside the container window by specifying its absolute coordinates measured in pixels. The coordinates are relative to the dimensions of the window defined by size argument of its constructor. Position of the widget inside the window is defined by pos argument of its constructor.
import wx
... | [
{
"code": null,
"e": 2190,
"s": 1882,
"text": "A GUI widget can be placed inside the container window by specifying its absolute coordinates measured in pixels. The coordinates are relative to the dimensions of the window defined by size argument of its constructor. Position of the widget inside the... |
numpy.matrix() in Python - GeeksforGeeks | 09 Mar, 2022
This class returns a matrix from a string of data or array-like object. Matrix obtained is a specialised 2D array.Syntax :
numpy.matrix(data, dtype = None) :
Parameters :
data : data needs to be array-like or string
dtype : Data type of returned array.
Returns :
data interpreted as a matrix
# Py... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n09 Mar, 2022"
},
{
"code": null,
"e": 24425,
"s": 24302,
"text": "This class returns a matrix from a string of data or array-like object. Matrix obtained is a specialised 2D array.Syntax :"
},
{
"code": null,
"e": 244... |
Find the nearest value and the index of NumPy Array - GeeksforGeeks | 03 Mar, 2021
In this article, let’s discuss finding the nearest value and the index in an array with NumPy. Numpy provides a high-performance multidimensional array object, and tools for working with these arrays. We will make use of two of many functions provided by NumPy library to calculate the nearest value and the... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n03 Mar, 2021"
},
{
"code": null,
"e": 24370,
"s": 23901,
"text": "In this article, let’s discuss finding the nearest value and the index in an array with NumPy. Numpy provides a high-performance multidimensional array object, and... |
Quine in Python | The Quine is a program, which takes no input, but it produces output. It will show it’s own source code. Additionally, Quine has some conditions. We cannot open the source code file inside the program.
Live Demo
a='a=%r;print (a%%a)';print (a%a)
a='a=%r;print (a%%a)';print (a%a)
Here a simple string formatting is wor... | [
{
"code": null,
"e": 1264,
"s": 1062,
"text": "The Quine is a program, which takes no input, but it produces output. It will show it’s own source code. Additionally, Quine has some conditions. We cannot open the source code file inside the program."
},
{
"code": null,
"e": 1275,
"s":... |
Understanding Word N-grams and N-gram Probability in Natural Language Processing | by Sunny Srinidhi | Towards Data Science | Originally published on my blog.
N-gram is probably the easiest concept to understand in the whole machine learning space, I guess. An N-gram means a sequence of N words. So for example, “Medium blog” is a 2-gram (a bigram), “A Medium blog post” is a 4-gram, and “Write on Medium” is a 3-gram (trigram). Well, that wasn’... | [
{
"code": null,
"e": 205,
"s": 172,
"text": "Originally published on my blog."
},
{
"code": null,
"e": 622,
"s": 205,
"text": "N-gram is probably the easiest concept to understand in the whole machine learning space, I guess. An N-gram means a sequence of N words. So for example,... |
Tryit Editor v3.7 | Tryit: ABC with utf8 | [] |
Python Web Scraping - Data Extraction | Analyzing a web page means understanding its sructure . Now, the question arises why it is important for web scraping? In this chapter, let us understand this in detail.
Web page analysis is important because without analyzing we are not able to know in which form we are going to receive the data from (structured or un... | [
{
"code": null,
"e": 2082,
"s": 1912,
"text": "Analyzing a web page means understanding its sructure . Now, the question arises why it is important for web scraping? In this chapter, let us understand this in detail."
},
{
"code": null,
"e": 2328,
"s": 2082,
"text": "Web page ana... |
UnitTest Framework - Assertion | Python testing framework uses Python's built-in assert() function which tests a particular condition. If the assertion fails, an AssertionError will be raised. The testing framework will then identify the test as Failure. Other exceptions are treated as Error.
The following three sets of assertion functions are defined... | [
{
"code": null,
"e": 2359,
"s": 2098,
"text": "Python testing framework uses Python's built-in assert() function which tests a particular condition. If the assertion fails, an AssertionError will be raised. The testing framework will then identify the test as Failure. Other exceptions are treated as... |
2D Transformation | Rotation of objects - GeeksforGeeks | 02 Dec, 2021
We have to rotate an object by a given angle about a given pivot point and print the new co-ordinates.Examples:
Input : {(100, 100), (150, 200), (200, 200),
(200, 150)} is to be rotated about
(0, 0) by 90 degrees
Output : (-100, 100), (-200, 150), (-200, 200), (-150, 200)
Input : {(10... | [
{
"code": null,
"e": 24231,
"s": 24203,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 24344,
"s": 24231,
"text": "We have to rotate an object by a given angle about a given pivot point and print the new co-ordinates.Examples: "
},
{
"code": null,
"e": 24526,
"s... |
How to compare two strings using regex in Python? | We can compare given strings using the following code
import re
s1 = 'Pink Forest'
s2 = 'Pink Forrest'
if bool(re.search(s1,s2))==True:
print 'Strings match'
else:
print 'Strings do not match'
This gives the output
Strings do not match | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "We can compare given strings using the following code"
},
{
"code": null,
"e": 1261,
"s": 1116,
"text": "import re\ns1 = 'Pink Forest'\ns2 = 'Pink Forrest'\nif bool(re.search(s1,s2))==True:\n print 'Strings match'\nelse:\n print ... |
Create a full search engine via Flask, ElasticSearch, javascript, D3js, asynchrous request (xml http request) and Bootstrap | by Adrien Sieg | Towards Data Science | A search engine is a system — displaying some filters — in order to customize your search results and allows you to find exactly what you want. When a user queries a search engine, relevant results are returned based on the search engine’s algorithm.
Filters turn out to a list (dropdown list), a table, ... any elements... | [
{
"code": null,
"e": 423,
"s": 172,
"text": "A search engine is a system — displaying some filters — in order to customize your search results and allows you to find exactly what you want. When a user queries a search engine, relevant results are returned based on the search engine’s algorithm."
}... |
What is pytest and what are its advantages? | Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of pytest shall be known.
Pytest can be used for creating and executing test cases. It can be used in wide
ra... | [
{
"code": null,
"e": 1299,
"s": 1062,
"text": "Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest –version. The version of pytest shall be known."
},
{
"c... |
java.util.regex.Matcher.appendReplacement() | The java.time.Matcher.appendReplacement(StringBuffer sb, String replacement) method implements a non-terminal append-and-replace step.
Following is the declaration for java.time.Matcher.appendReplacement(StringBuffer sb, String replacement) method.
public Matcher appendReplacement(StringBuffer sb, String replacement)
... | [
{
"code": null,
"e": 2259,
"s": 2124,
"text": "The java.time.Matcher.appendReplacement(StringBuffer sb, String replacement) method implements a non-terminal append-and-replace step."
},
{
"code": null,
"e": 2373,
"s": 2259,
"text": "Following is the declaration for java.time.Matc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.