title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Python String isalnum() Method
12 Aug, 2021 Python String isalnum() method checks whether all the characters in a given string are alphanumeric or not. Alphanumeric means a character that is either a letter or a number. Syntax: string_name.isalnum() Parameter: isalnum() method takes no parameters Return: True: If all the characters are alphanum...
[ { "code": null, "e": 53, "s": 25, "text": "\n12 Aug, 2021" }, { "code": null, "e": 229, "s": 53, "text": "Python String isalnum() method checks whether all the characters in a given string are alphanumeric or not. Alphanumeric means a character that is either a letter or a number...
C# Program to Print the Names that Contain ‘MAN’ Substring Using LINQ
06 Mar, 2022 LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matter whic...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Mar, 2022" }, { "code": null, "e": 547, "s": 28, "text": "LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. ...
How to create two dimensional array in JavaScript?
26 Jul, 2021 The two-dimensional array is a collection of items which share a common name and they are organized as a matrix in the form of rows and columns. The two-dimensional array is an array of arrays, so we create an array of one-dimensional array objects.The following program shows how to create an 2D array : Ex...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Jul, 2021" }, { "code": null, "e": 372, "s": 54, "text": "The two-dimensional array is a collection of items which share a common name and they are organized as a matrix in the form of rows and columns. The two-dimensional array is ...
jQuery UI | Tooltip
06 Dec, 2019 The tooltip widget in jQuery UI is different from the traditional tooltip primarily by making it more themeable and making it much more customizable. Some of the customizations available are: Extra content like footnotes etc can also be displayed by retrieving it through Ajax. Customizing the fields for Wa...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2019" }, { "code": null, "e": 220, "s": 28, "text": "The tooltip widget in jQuery UI is different from the traditional tooltip primarily by making it more themeable and making it much more customizable. Some of the customization...
Types of Parsers in Compiler Design
07 Jun, 2022 The parser is that phase of the compiler which takes a token string as input and with the help of existing grammar, converts it into the corresponding Intermediate Representation(IR). The parser is also known as Syntax Analyzer. Classification of Parser The parser is mainly classified into two categories,...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jun, 2022" }, { "code": null, "e": 284, "s": 54, "text": "The parser is that phase of the compiler which takes a token string as input and with the help of existing grammar, converts it into the corresponding Intermediate Representa...
How to Install and Use Hydra in Linux?
06 Oct, 2021 Weak passwords are still a big problem in security, nowadays guessing passwords and cracking algorithms is becoming easy and brute-forcing is a major kind of attack in the boom. A general rule for making a strong password is using a combination that is long(more than 8 letters) with capitals, symbols, and ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Oct, 2021" }, { "code": null, "e": 370, "s": 52, "text": "Weak passwords are still a big problem in security, nowadays guessing passwords and cracking algorithms is becoming easy and brute-forcing is a major kind of attack in the bo...
Robotic Process Automation(RPA) – Google Form Automation using UIPath
14 Oct, 2020 In this article, we are going to learn how we can automate filling the Google Forms using Uipath Studio. This project is a basic application of Robotic Process Automation (RPA). The user just needs to provide the Excel file that holds the data to be entered in the form and that’s it, rest of the work will ...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Oct, 2020" }, { "code": null, "e": 415, "s": 28, "text": "In this article, we are going to learn how we can automate filling the Google Forms using Uipath Studio. This project is a basic application of Robotic Process Automation (RPA...
Connecting to MySQL database from the command line?
To connect MySQL from the command line, firstly open command prompt. You can do this with the help of shortcut key “Windows + R”. On clicking, a panel will open and you need to type CMD and need to press OK button as shown below − After pressing the OK button, you will get command line window. Reach the MySQL Server “b...
[ { "code": null, "e": 1293, "s": 1062, "text": "To connect MySQL from the command line, firstly open command prompt. You can do this with the help of shortcut key “Windows + R”. On clicking, a panel will open and you need to type CMD and need to press OK button as shown below −" }, { "code": ...
SQL Tryit Editor v1.6
SELECT * FROM Customers WHERE City LIKE '[!bsp]%'; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of ...
[ { "code": null, "e": 24, "s": 0, "text": "SELECT * FROM Customers" }, { "code": null, "e": 51, "s": 24, "text": "WHERE City LIKE '[!bsp]%';" }, { "code": null, "e": 53, "s": 51, "text": "​" }, { "code": null, "e": 116, "s": 53, "text": "Edi...
Finetune a Facial Recognition Classifier to Recognize your Face using PyTorch | by Mike Chaykowsky | Towards Data Science
This is part of a series I am writing on tricking facial recognition systems using adversarial attacks with GANs. However, before we trick a facial recognition classifier we need to build one to trick. I personally want to build one that can recognize my own face. Instead of training a neural network from scratch I can...
[ { "code": null, "e": 286, "s": 172, "text": "This is part of a series I am writing on tricking facial recognition systems using adversarial attacks with GANs." }, { "code": null, "e": 1039, "s": 286, "text": "However, before we trick a facial recognition classifier we need to bui...
java.time.Instant Class
The java.time.Instant class models a single instantaneous point on the time-line. Following is the declaration for java.time.Instant class − public final class Instant extends Object implements Temporal, TemporalAdjuster, Comparable, Serializable Following are the fields for Java.time.Instant class − Followin...
[ { "code": null, "e": 1997, "s": 1915, "text": "The java.time.Instant class models a single instantaneous point on the time-line." }, { "code": null, "e": 2056, "s": 1997, "text": "Following is the declaration for java.time.Instant class −" }, { "code": null, "e": 2172...
How to insert Date value into table in JDBC?
You can insert date values in SQL using the date datatype, The java.sql.Date class maps to the SQL DATE type. The PreparedStatement interface provides a method named setDate(). Using this you can insert date into a table. This method accepts two parameters − An integer representing the parameter index of the place hold...
[ { "code": null, "e": 1172, "s": 1062, "text": "You can insert date values in SQL using the date datatype, The java.sql.Date class maps to the SQL DATE type." }, { "code": null, "e": 1321, "s": 1172, "text": "The PreparedStatement interface provides a method named setDate(). Using...
SQL BETWEEN Operator
The BETWEEN operator selects values within a given range. The values can be numbers, text, or dates. The BETWEEN operator is inclusive: begin and end values are included. Below is a selection from the "Products" table in the Northwind sample database: The following SQL statement selects all products with a price betw...
[ { "code": null, "e": 101, "s": 0, "text": "The BETWEEN operator selects values within a given range. The values can be numbers, text, or dates." }, { "code": null, "e": 172, "s": 101, "text": "The BETWEEN operator is inclusive: begin and end values are included. " }, { "c...
VGG-16 Transfer Learning in Classifying Log-Mel Spectrogram Images | by Muriel Kosaka | Towards Data Science
As a follow-up to my previous post, I will be applying transfer learning to the RAVDESS Audio Dataset in hopes to improve the model’s accuracy. To review, transfer learning is a deep learning approach in which a model that has been trained on one task is used as a starting point to train a model for a similar task. In ...
[ { "code": null, "e": 466, "s": 46, "text": "As a follow-up to my previous post, I will be applying transfer learning to the RAVDESS Audio Dataset in hopes to improve the model’s accuracy. To review, transfer learning is a deep learning approach in which a model that has been trained on one task is u...
Volume Calculation - Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Volume Calculation. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions i...
[ { "code": null, "e": 4224, "s": 3892, "text": "Following quiz provides Multiple Choice Questions (MCQs) related to Volume Calculation. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer b...
Python String isnumeric() Method
Python string method isnumeric() checks whether the string consists of only numeric characters. This method is present only on unicode objects. Note − To define a string as Unicode, one simply prefixes a 'u' to the opening quotation mark of the assignment. Below is the example. Following is the syntax for isnumeric() m...
[ { "code": null, "e": 2388, "s": 2244, "text": "Python string method isnumeric() checks whether the string consists of only numeric characters. This method is present only on unicode objects." }, { "code": null, "e": 2523, "s": 2388, "text": "Note − To define a string as Unicode, ...
How to store and retrieve a date into MySQL database using Python?
To insert a date in a MySQL database, you need to have a column of Type date or datetime in your table. Once you have that, you'll need to convert your date in a string format before inserting it to your database. To do this, you can use the datetime module's strftime formatting function. from datetime import datetime ...
[ { "code": null, "e": 1352, "s": 1062, "text": "To insert a date in a MySQL database, you need to have a column of Type date or datetime in your table. Once you have that, you'll need to convert your date in a string format before inserting it to your database. To do this, you can use the datetime mo...
User-defined variables vs Local Variables in MySQL?
The user defined variable is also known as session-specific variable. It is a type of loosely typed variable which can be initialized somewhere in session and contains the value of user defined variable until session ends. The user defined variable is prefixed with symbol @. For Example: @anyVariableName; There are two...
[ { "code": null, "e": 1285, "s": 1062, "text": "The user defined variable is also known as session-specific variable. It is a type of loosely typed variable which can be initialized somewhere in session and contains the value of user defined variable until session ends." }, { "code": null, ...
What would be a query to remove \n\r from the text in MySQL?
To remove \n\r from the text, you need to use REPLACE command. The syntax is as follows − UPDATE yourTableName SET yourColumnName=REPLACE(yourColumnName,’\r\n’,’ ‘); To understand the above syntax, let us create a table. The query to create a table is as follows − mysql> create table removeDemo -> ( -> Id int NOT NULL ...
[ { "code": null, "e": 1152, "s": 1062, "text": "To remove \\n\\r from the text, you need to use REPLACE command. The syntax is as follows −" }, { "code": null, "e": 1228, "s": 1152, "text": "UPDATE yourTableName SET yourColumnName=REPLACE(yourColumnName,’\\r\\n’,’ ‘);" }, { ...
C Program For Flattening A Multilevel Linked List - GeeksforGeeks
22 Dec, 2021 Given a linked list where in addition to the next pointer, each node has a child pointer, which may or may not point to a separate list. These child lists may have one or more children of their own, and so on, to produce a multilevel data structure, as shown in below figure.You are given the head of the fi...
[ { "code": null, "e": 24286, "s": 24258, "text": "\n22 Dec, 2021" }, { "code": null, "e": 24871, "s": 24286, "text": "Given a linked list where in addition to the next pointer, each node has a child pointer, which may or may not point to a separate list. These child lists may have...
How to set axis ticks in multiples of pi in Python Matplotlib?
To set axis ticks in multiples of pi in Python, we take following steps − Initialize a pi variable, create theta and y data points using numpy. Initialize a pi variable, create theta and y data points using numpy. Plot theta and y using plot() method. Plot theta and y using plot() method. Get or set the current tick lo...
[ { "code": null, "e": 1136, "s": 1062, "text": "To set axis ticks in multiples of pi in Python, we take following steps −" }, { "code": null, "e": 1206, "s": 1136, "text": "Initialize a pi variable, create theta and y data points using numpy." }, { "code": null, "e": 1...
C# Program to Demonstrate the Example of LINQ Union() Method with StringComparer - GeeksforGeeks
08 Dec, 2021 LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives a feature to .NET languages to create queries to retrieve data from the data source. Here in this article, we will demonstrate the example of the LINQ Union() method with the StringComparer. 1. Union() Method: This method...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n08 Dec, 2021" }, { "code": null, "e": 24579, "s": 24302, "text": "LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives a feature to .NET languages to create queries to retrieve data from the data ...
HTML | input value Attribute - GeeksforGeeks
16 Apr, 2019 The value attribute for <input> element in HTML is used to specify the initial value of the input element. It has different meaning for different input type: The “button”, “reset” and “submit” property specifies the text on the button. The “text”, “password” and “hidden” property specifies the initial valu...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n16 Apr, 2019" }, { "code": null, "e": 24874, "s": 24716, "text": "The value attribute for <input> element in HTML is used to specify the initial value of the input element. It has different meaning for different input type:" },...
File.WriteAllLines(String, String[], Encoding) Method in C# with Examples - GeeksforGeeks
09 Mar, 2021 File.WriteAllLines(String, String[], Encoding) is an inbuilt File class method that is used to create a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.Syntax: public static void WriteAllLines (string path, string[] contents, System.Text.En...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n09 Mar, 2021" }, { "code": null, "e": 24529, "s": 24302, "text": "File.WriteAllLines(String, String[], Encoding) is an inbuilt File class method that is used to create a new file, writes the specified string array to the file by ...
gcd() function Python
Greatest common divisor or gcd is a mathematical expression to find the highest number which can divide both the numbers whose gcd has to be found with the resulting remainder as zero. It has many mathematical applications. Python has a inbuilt gcd function in the math module which can be used for this purpose. It acce...
[ { "code": null, "e": 1375, "s": 1062, "text": "Greatest common divisor or gcd is a mathematical expression to find the highest number which can divide both the numbers whose gcd has to be found with the resulting remainder as zero. It has many mathematical applications. Python has a inbuilt gcd func...
Find a time for which angle between hour and minute hands is given theta - GeeksforGeeks
31 Aug, 2021 Given angle theta, find a possible time (in hh:mm format) when angle between hour hand and clock hand is theta. If no such time exists then print -1. Examples : Input : theta = 90.0 Output : 3:0 Input : theta = 60.0 Output : 2:0 We have discussed how to find angle for given time in below post.Calculate t...
[ { "code": null, "e": 24232, "s": 24204, "text": "\n31 Aug, 2021" }, { "code": null, "e": 24382, "s": 24232, "text": "Given angle theta, find a possible time (in hh:mm format) when angle between hour hand and clock hand is theta. If no such time exists then print -1." }, { ...
Five Best Practices for Writing Clean and Professional SQL Code | by Terence Shin | Towards Data Science
SQL is the universal language in the data world. If you’re a data analyst, data scientist, data engineer, data architect, etc., you need to write good SQL code. Learning how to write basic SQL queries isn’t hard, but learning how to write good SQL code is another story. Writing good SQL code isn’t necessarily hard, but...
[ { "code": null, "e": 332, "s": 171, "text": "SQL is the universal language in the data world. If you’re a data analyst, data scientist, data engineer, data architect, etc., you need to write good SQL code." }, { "code": null, "e": 529, "s": 332, "text": "Learning how to write bas...
How to Use Microsoft’s Graph API to Query, Create and Analyze Data from OneDrive, Outlook and more | by Dominik Polzer | Towards Data Science
From my emails, calendar entries, files in my cloud storage to the workgroups in Teams, a large part of my daily activities on my computer and phone are done with Microsoft applications. All these data are stored in the Microsoft Cloud, whether I like it or not. The good thing is that Microsoft provides an API that all...
[ { "code": null, "e": 591, "s": 172, "text": "From my emails, calendar entries, files in my cloud storage to the workgroups in Teams, a large part of my daily activities on my computer and phone are done with Microsoft applications. All these data are stored in the Microsoft Cloud, whether I like it ...
How to change the title size of a graph using ggplot2 in R?
The size of a graph title mattes a lot for the visibility because it is the first thing people look at after plot area. Its size must not be very large nor very small but is should be different from the axis titles and axes labels so that there exists a clarity in the graph. This can be done by using theme function. Co...
[ { "code": null, "e": 1380, "s": 1062, "text": "The size of a graph title mattes a lot for the visibility because it is the first thing people look at after plot area. Its size must not be very large nor very small but is should be different from the axis titles and axes labels so that there exists a...
Using Kafka for Collecting Web Application Metrics in Your Cloud Data Lake | by Lucio Daza | Towards Data Science
Metrics are the indicators (values) that reflect the state of a process or a system. When we have a sequence of values, we can also make a conclusion about trends or seasonality. In summary, metrics are indicators of how the process or the system evolves. Metrics can be generated by applications, hardware components (C...
[ { "code": null, "e": 1024, "s": 171, "text": "Metrics are the indicators (values) that reflect the state of a process or a system. When we have a sequence of values, we can also make a conclusion about trends or seasonality. In summary, metrics are indicators of how the process or the system evolves...
Initialization of static variables in C - GeeksforGeeks
31 Jul, 2018 In C, static variables can only be initialized using constant literals. For example, following program fails in compilation. #include<stdio.h>int initializer(void){ return 50;} int main(){ static int i = initializer(); printf(" value of i = %d", i); getchar(); return 0;} If we change the pr...
[ { "code": null, "e": 24436, "s": 24408, "text": "\n31 Jul, 2018" }, { "code": null, "e": 24561, "s": 24436, "text": "In C, static variables can only be initialized using constant literals. For example, following program fails in compilation." }, { "code": "#include<stdio....
Calculate age based on date of birth in MySQL?
Calculate Age based on date of birth with the help of DATE_FORMAT() method in MySQL. Firstly, get the current date time with the help of now() method and you can place your date of birth in DATE_FORMAT(). The syntax is as follows − SELECT DATE_FORMAT(FROM_DAYS(DATEDIFF(now(),'yourDateofbirth')), '%Y')+0 AS anyVariableN...
[ { "code": null, "e": 1267, "s": 1062, "text": "Calculate Age based on date of birth with the help of DATE_FORMAT() method in MySQL. Firstly, get the current date time with the help of now() method and you can place your date of birth in DATE_FORMAT()." }, { "code": null, "e": 1294, "...
Recurrent Neural Nets for Audio Classification | by Papia Nandi | Towards Data Science
RNNs or Recurrent Neural nets are a type of deep learning algorithm that can remember sequences. What kind of sequences? Handwriting/speech recognition Time series Text for natural language processing Things that depend on a previous item Yes. Unless the audio is a random stream of garbage (not the band), audio informa...
[ { "code": null, "e": 143, "s": 46, "text": "RNNs or Recurrent Neural nets are a type of deep learning algorithm that can remember sequences." }, { "code": null, "e": 167, "s": 143, "text": "What kind of sequences?" }, { "code": null, "e": 198, "s": 167, "text"...
How to Pull Data from an API using Python Requests | by Cameron Warren | Towards Data Science
The thing that I’m asked to do over and over again is automate pulling data from an API. Despite holding the title “Data Scientist” I’m on a small team, so I’m not only responsible for building models, but also pulling data, cleaning it, and pushing and pulling it wherever it needs to go. Many of you are probably in th...
[ { "code": null, "e": 380, "s": 47, "text": "The thing that I’m asked to do over and over again is automate pulling data from an API. Despite holding the title “Data Scientist” I’m on a small team, so I’m not only responsible for building models, but also pulling data, cleaning it, and pushing and pu...
Probabilistic Programming and Bayesian Inference for Time Series Analysis and Forecasting in Python | by Yuefeng Zhang, PhD | Towards Data Science
As described in [1][2], time series data includes many kinds of real experimental data taken from various domains such as finance, medicine, scientific research (e.g., global warming, speech analysis, earthquakes), etc. Time series forecasting has many real applications in various areas such as forecasting of business ...
[ { "code": null, "e": 681, "s": 171, "text": "As described in [1][2], time series data includes many kinds of real experimental data taken from various domains such as finance, medicine, scientific research (e.g., global warming, speech analysis, earthquakes), etc. Time series forecasting has many re...
MySQLi - PHP Syntax
MySQL works very well in combination of various programming languages like PERL, C, C++, JAVA and PHP. Out of these languages, PHP is the most popular one because of its web application development capabilities. This tutorial focuses heavily on using MySQL in a PHP environment. If you are interested in MySQL with PERL,...
[ { "code": null, "e": 2475, "s": 2263, "text": "MySQL works very well in combination of various programming languages like PERL, C, C++, JAVA and PHP. Out of these languages, PHP is the most popular one because of its web application development capabilities." }, { "code": null, "e": 2633...
Remove Element From List in R Language - GeeksforGeeks
21 Apr, 2021 R is an open-source programming language that is widely used as a statistical software and data analysis tool. R generally comes with the Command-line interface. R is available across widely used platforms like Windows, Linux, and macOS. Also, the R programming language is the latest cutting-edge tool. Thi...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n21 Apr, 2021" }, { "code": null, "e": 25478, "s": 24851, "text": "R is an open-source programming language that is widely used as a statistical software and data analysis tool. R generally comes with the Command-line interface. R...
Aho-Corasick Algorithm for Pattern Searching - GeeksforGeeks
05 Nov, 2021 Given an input text and an array of k words, arr[], find all occurrences of all words in the input text. Let n be the length of text and m be the total number characters in all words, i.e. m = length(arr[0]) + length(arr[1]) + ... + length(arr[k-1]). Here k is total numbers of input words. Example: Input...
[ { "code": null, "e": 24838, "s": 24810, "text": "\n05 Nov, 2021" }, { "code": null, "e": 25129, "s": 24838, "text": "Given an input text and an array of k words, arr[], find all occurrences of all words in the input text. Let n be the length of text and m be the total number char...
HSQLDB - Create Table
The basic mandatory requirements to create a table are table name, field names, and the data types to those fields. Optionally, you can also provide the key constraints to the table. Take a look at the following syntax. CREATE TABLE table_name (column_name column_type); Let us create a table named tutorials_tbl with t...
[ { "code": null, "e": 2165, "s": 1982, "text": "The basic mandatory requirements to create a table are table name, field names, and the data types to those fields. Optionally, you can also provide the key constraints to the table." }, { "code": null, "e": 2202, "s": 2165, "text": ...
Print all subsequences of a string using Iterative Method in C++
In this problem, we are given a string and we have to find the substring from the given string. The substring to be found should start with a vowel and end with constant character. A string is an array of characters. The substring that is to be generated in this problem can be generated by deleting some characters of t...
[ { "code": null, "e": 1243, "s": 1062, "text": "In this problem, we are given a string and we have to find the substring from the given string. The substring to be found should start with a vowel and end\nwith constant character." }, { "code": null, "e": 1279, "s": 1243, "text": "...
Count digits in a factorial in C++
We are given an integer value and the task is to first calculate the factorial of a number and then calculate the total number of digits in a result. Factorial of a number is calculated by multiplying the digits in a number while decrementing the value of digit by 1. It is denoted by the symbol ‘!’ i.e. 0!, 1!, 2!, 3!,...
[ { "code": null, "e": 1212, "s": 1062, "text": "We are given an integer value and the task is to first calculate the factorial of a number and then calculate the total number of digits in a result." }, { "code": null, "e": 1432, "s": 1212, "text": "Factorial of a number is calcula...
Number of sub-sequence such that it has one consecutive element with difference less than or equal to 1 - GeeksforGeeks
26 Sep, 2021 Given an array arr[] of N elements. The task is to find the number of sub-sequences which have at least two consecutive elements such that absolute difference between them is ≤ 1. Examples: Input: arr[] = {1, 6, 2, 1} Output: 6 {1, 2}, {1, 2, 1}, {2, 1}, {6, 2, 1}, {1, 1} and {1, 6, 2, 1} are the sub-seq...
[ { "code": null, "e": 24820, "s": 24792, "text": "\n26 Sep, 2021" }, { "code": null, "e": 25001, "s": 24820, "text": "Given an array arr[] of N elements. The task is to find the number of sub-sequences which have at least two consecutive elements such that absolute difference betw...
Python | Check for Nth index existence in list - GeeksforGeeks
27 Aug, 2019 Sometimes, while working with lists, we can have a problem in which we require to insert a particular element at an index. But, before that it is essential to know that particular index is part of list or not. Let’s discuss certain shorthands that can perform this task error free. Method #1 : Using len()Th...
[ { "code": null, "e": 24317, "s": 24289, "text": "\n27 Aug, 2019" }, { "code": null, "e": 24599, "s": 24317, "text": "Sometimes, while working with lists, we can have a problem in which we require to insert a particular element at an index. But, before that it is essential to know...
MySQL - Queries on Date Manipulation - GeeksforGeeks
09 May, 2021 In MySQL date is a data type and by default follows the format ‘YYYY-MM-DD’ but by using date formatting functions we can format date and can get the required format of date in the tables and can even manipulate the date by using different date functions. In this article let us execute some queries on date...
[ { "code": null, "e": 24304, "s": 24276, "text": "\n09 May, 2021" }, { "code": null, "e": 24560, "s": 24304, "text": "In MySQL date is a data type and by default follows the format ‘YYYY-MM-DD’ but by using date formatting functions we can format date and can get the required form...
How to add group labels for bar charts in Matplotlib?
To make grouped labels for bar charts, we can take the following steps − Create lists for labels, men_means and women_means with different data elements. Create lists for labels, men_means and women_means with different data elements. Return evenly spaced values within a given interval, using numpy.arrange() method. Re...
[ { "code": null, "e": 1135, "s": 1062, "text": "To make grouped labels for bar charts, we can take the following steps −" }, { "code": null, "e": 1216, "s": 1135, "text": "Create lists for labels, men_means and women_means with different data elements." }, { "code": null, ...
Kubernetes - Dashboard Setup
Setting up Kubernetes dashboard involves several steps with a set of tools required as the prerequisites to set it up. Docker (1.3+) go (1.5+) nodejs (4.2.2+) npm (1.3+) java (7+) gulp (3.9+) Kubernetes (1.1.2+) $ sudo apt-get update && sudo apt-get upgrade Installing Python $ sudo apt-get install python $ sudo apt-ge...
[ { "code": null, "e": 2314, "s": 2195, "text": "Setting up Kubernetes dashboard involves several steps with a set of tools required as the prerequisites to set it up." }, { "code": null, "e": 2328, "s": 2314, "text": "Docker (1.3+)" }, { "code": null, "e": 2338, "s...
C# Program to perform Currency Conversion
Let’s say you need to get the value of 10 dollars in INR. Firstly, set the variables: double usd, inr, val; Now set the dollars and convert it to INR. // how many dpllars usd = 10; // current value of US$ val = 69; inr = usd * val; Let us see the complete code − Live Demo using System; namespace Demo { public class...
[ { "code": null, "e": 1120, "s": 1062, "text": "Let’s say you need to get the value of 10 dollars in INR." }, { "code": null, "e": 1170, "s": 1120, "text": "Firstly, set the variables:\ndouble usd, inr, val;" }, { "code": null, "e": 1213, "s": 1170, "text": "No...
Aptitude - Discounts Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Discounts. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the qui...
[ { "code": null, "e": 4215, "s": 3892, "text": "Following quiz provides Multiple Choice Questions (MCQs) related to Discounts. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. Yo...
Print all nodes that don't have sibling | Practice | GeeksforGeeks
Given a Binary Tree of size N, find all the nodes which don't have any sibling. You need to return a list of integers containing all the nodes that don't have a sibling in sorted order. Note: Root node can not have a sibling so it cannot be included in our answer. Example 1: Input : 37 / 20 / ...
[ { "code": null, "e": 424, "s": 238, "text": "Given a Binary Tree of size N, find all the nodes which don't have any sibling. You need to return a list of integers containing all the nodes that don't have a sibling in sorted order." }, { "code": null, "e": 503, "s": 424, "text": "...
CMD Commands to Gather Information of a System - GeeksforGeeks
26 Nov, 2020 Some say that gathering information is only possible in Linux, but it can be done with windows using a command prompt. These are some useful commands used by hackers for gathering system information that every Geek should be aware of. To execute all these commands, run the Command Prompt as Administrator t...
[ { "code": null, "e": 24107, "s": 24079, "text": "\n26 Nov, 2020" }, { "code": null, "e": 24454, "s": 24107, "text": "Some say that gathering information is only possible in Linux, but it can be done with windows using a command prompt. These are some useful commands used by hacke...
Python program to check if a string is palindrome or not
Given a string, our task is to check weather this string is palindrome or not. Step1: Enter string as an input. Step2: Using string slicing we reverse the string and compare it back to the original string. Step3: Then display the result. my_string=input("Enter string:") if(my_string==my_string[::-1]): print("The str...
[ { "code": null, "e": 1141, "s": 1062, "text": "Given a string, our task is to check weather this string is palindrome or not." }, { "code": null, "e": 1300, "s": 1141, "text": "Step1: Enter string as an input.\nStep2: Using string slicing we reverse the string and compare it back...
Java Program to fill elements in an int array
Elements can be filled in an int array using the java.util.Arrays.fill() method. This method assigns the required int value to the int array in Java. The two parameters required are the array name and the value that is to be stored in the array elements. A program that demonstrates this is given as follows − Live Demo...
[ { "code": null, "e": 1317, "s": 1062, "text": "Elements can be filled in an int array using the java.util.Arrays.fill() method. This method assigns the required int value to the int array in Java. The two parameters required are the array name and the value that is to be stored in the array elements...
Set up R Server on Cloud | Towards Data Science
Objective: To set up a fully operational machine learning Server on Google Cloud Compute Engine’s virtual machine instance. In a real-world scenario, cloud computing and machine learning go hand-in-hand to build, transform and scale predictive modelling projects. Being a Linux server application, R Studio server is one...
[ { "code": null, "e": 296, "s": 172, "text": "Objective: To set up a fully operational machine learning Server on Google Cloud Compute Engine’s virtual machine instance." }, { "code": null, "e": 778, "s": 296, "text": "In a real-world scenario, cloud computing and machine learning...
WebSockets - Communicating with Server
The Web has been largely built around the request/response paradigm of HTTP. A client loads up a web page and then nothing happens until the user clicks onto the next page. Around 2005, AJAX started to make the web feel more dynamic. Still, all HTTP communication is steered by the client, which requires user interactio...
[ { "code": null, "e": 2495, "s": 2119, "text": "The Web has been largely built around the request/response paradigm of HTTP. A client loads up a web page and then nothing happens until the user clicks onto the next page. Around 2005, AJAX started to make the web feel more dynamic. Still, all HTTP com...
Neural Network Embeddings Explained | by Will Koehrsen | Towards Data Science
Applications of neural networks have expanded significantly in recent years from image segmentation to natural language processing to time-series forecasting. One notably successful use of deep learning is embedding, a method used to represent discrete variables as continuous vectors. This technique has found practical...
[ { "code": null, "e": 599, "s": 171, "text": "Applications of neural networks have expanded significantly in recent years from image segmentation to natural language processing to time-series forecasting. One notably successful use of deep learning is embedding, a method used to represent discrete va...
MySQL Tryit Editor v1.0
SELECT CustomerName, LENGTH(CustomerName) AS LengthOfName FROM Customers; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your a...
[ { "code": null, "e": 58, "s": 0, "text": "SELECT CustomerName, LENGTH(CustomerName) AS LengthOfName" }, { "code": null, "e": 74, "s": 58, "text": "FROM Customers;" }, { "code": null, "e": 76, "s": 74, "text": "​" }, { "code": null, "e": 148, "s...
How to share x axes of two subplots after they have been created in Matplotlib?
First, we can create two axes using the subplot method where nrows=2, ncols=1. That means, we can have two indices to plot the desired plot. We can use ax1.get_shared_x_axes().join(ax1,ax2) method for our plot. Create two lists of the numbers. Create two lists of the numbers. Add a subplot to the current figure, ax1, w...
[ { "code": null, "e": 1273, "s": 1062, "text": "First, we can create two axes using the subplot method where nrows=2, ncols=1. That means, we can have two indices to plot the desired plot. We can use ax1.get_shared_x_axes().join(ax1,ax2) method for our plot." }, { "code": null, "e": 1306,...
Longest balanced binary substring with equal count of 1s and 0s - GeeksforGeeks
06 Dec, 2021 Given a binary string str[] of size N. The task is to find the longest balanced substring. A substring is balanced if it contains an equal number of 0 and 1. Examples: Input: str = “110101010”Output: 10101010Explanation: The formed substring contain equal count of 1 and 0 i.e, count of 1 and 0 is same eq...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n06 Dec, 2021" }, { "code": null, "e": 24874, "s": 24716, "text": "Given a binary string str[] of size N. The task is to find the longest balanced substring. A substring is balanced if it contains an equal number of 0 and 1." },...
Linux Admin - Traffic Monitoring in CentOS
There are several third party tools that can add enhanced capabilities for CentOS traffic monitoring. In this tutorial, we will focus on those that are packaged in the main CentOS distribution repositories and the Fedora EPEL repository. There will always be situations where an Administrator (for one reason or another)...
[ { "code": null, "e": 2495, "s": 2257, "text": "There are several third party tools that can add enhanced capabilities for CentOS traffic monitoring. In this tutorial, we will focus on those that are packaged in the main CentOS distribution repositories and the Fedora EPEL repository." }, { "...
Tryit Editor v3.7
Tryit: HTML table - set row height
[]
How to add a new column to a PySpark DataFrame ? - GeeksforGeeks
13 Jan, 2022 In this article, we will discuss how to add a new column to PySpark Dataframe. Create the first data frame for demonstration: Here, we will be creating the sample data frame which we will be used further to demonstrate the approach purpose. Python3 # importing moduleimport pyspark # importing sparksession ...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n13 Jan, 2022" }, { "code": null, "e": 24291, "s": 24212, "text": "In this article, we will discuss how to add a new column to PySpark Dataframe." }, { "code": null, "e": 24338, "s": 24291, "text": "Create the ...
How to work the timezone using PowerShell?
To get the timezone of the System, you can use the Get-TimeZone command. PS C:\> Get-TimeZone Id : Mountain Standard Time DisplayName : (UTC-07:00) Mountain Time (US & Canada) StandardName : Mountain Standard Time DaylightName : Mountain Daylight Time ...
[ { "code": null, "e": 1135, "s": 1062, "text": "To get the timezone of the System, you can use the Get-TimeZone command." }, { "code": null, "e": 1455, "s": 1135, "text": "PS C:\\> Get-TimeZone\n\nId : Mountain Standard Time\nDisplayName : (U...
The Flawless Pipes of Python/ Pandas | by Dr. Gregor Scheithauer | Towards Data Science
By trade I am an R person. Especially the Tidyverse is such a powerful, clean, easy-to-understand and well documented data science platform. I highly recommend to every beginner the free online book R for Data Science. However, my team’s programming language of choice is Python/ Pandas — which is also a wonderful data ...
[ { "code": null, "e": 390, "s": 171, "text": "By trade I am an R person. Especially the Tidyverse is such a powerful, clean, easy-to-understand and well documented data science platform. I highly recommend to every beginner the free online book R for Data Science." }, { "code": null, "e":...
pod2html - Unix, Linux Command
pod2html --help --htmlroot=<name> --infile=<name> --outfile=<name> --podpath=<name>:...:<name> --podroot=<name> --libpods=<name>:...:<name> --recurse --norecurse --verbose --index --noindex --title=<name> --help Displays the usage message. --htmlroot=name Sets the ba...
[ { "code": null, "e": 10827, "s": 10577, "text": "\n pod2html --help --htmlroot=<name> --infile=<name> --outfile=<name>\n --podpath=<name>:...:<name> --podroot=<name>\n --libpods=<name>:...:<name> --recurse --norecurse --verbose\n --index --noindex --title=<name...
How to draw a polygon in OpenCV using Java?
A polygon with all the interior angles less than 180 is known as a convex polygon. The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw a polygon you need to invoke the fillConvexPoly() method of this class. This method accepts 3 parameters − A Mat object representing the image ...
[ { "code": null, "e": 1346, "s": 1062, "text": "A polygon with all the interior angles less than 180 is known as a convex polygon. The org.opencv.imgproc package of Java OpenCV library contains a class named Imgproc. To draw a polygon you need to invoke the fillConvexPoly() method of this class. This...
Reverse elements of a Parallel Stream in Java - GeeksforGeeks
11 Dec, 2018 Given a Parallel Stream in Java, the task is to reverse its elements. Examples: Input: Parallel Stream = {11, 22, 33, 44} Output: {44, 33, 22, 11} Input: Parallel Stream = {a, b, c, d} Output: {d, c, b, a} Below are the various ways to do so: Using Collectors class : Since Streams in Java don’t store any...
[ { "code": null, "e": 23583, "s": 23555, "text": "\n11 Dec, 2018" }, { "code": null, "e": 23653, "s": 23583, "text": "Given a Parallel Stream in Java, the task is to reverse its elements." }, { "code": null, "e": 23663, "s": 23653, "text": "Examples:" }, { ...
Angular Highcharts - Donut Chart
Following is an example of a Donut Chart. We have already seen the configurations used to draw a chart in Highcharts Configuration Syntax chapter. An example of a Donut Chart is given below. Let us now see the additional configurations/steps taken. Configure the chart type to be 'pie' based. chart.type decides the se...
[ { "code": null, "e": 2077, "s": 2035, "text": "Following is an example of a Donut Chart." }, { "code": null, "e": 2183, "s": 2077, "text": "We have already seen the configurations used to draw a chart in Highcharts Configuration Syntax chapter. " }, { "code": null, "e...
Using Reduce in Python. How to use the reduce function in... | by Luay Matalka | Towards Data Science
Python is an object-oriented programming (OOP) language. However, it provides some tools that provide a functional programming style. Some of these tools include the map(), filter(), and reduce() functions. In this tutorial, we will explore the reduce() function and unravel the versatility and usefulness that it provid...
[ { "code": null, "e": 496, "s": 172, "text": "Python is an object-oriented programming (OOP) language. However, it provides some tools that provide a functional programming style. Some of these tools include the map(), filter(), and reduce() functions. In this tutorial, we will explore the reduce() f...
numpy.char.center()
This function returns an array of the required width so that the input string is centered and padded on the left and right with fillchar. import numpy as np # np.char.center(arr, width,fillchar) print np.char.center('hello', 20,fillchar = '*') Here is its output − *******hello******** 63 Lectures 6 hours ...
[ { "code": null, "e": 2381, "s": 2243, "text": "This function returns an array of the required width so that the input string is centered and padded on the left and right with fillchar." }, { "code": null, "e": 2489, "s": 2381, "text": "import numpy as np \n# np.char.center(arr, w...
Java Examples - Execute multiple SQL statements
How to execute multiple SQL commands on a database simultaneously? Following example uses addBatch & executeBatch commands to execute multiple SQL commands simultaneously. import java.sql.*; public class jdbcConn { public static void main(String[] args) throws Exception { Class.forName("org.apache.derby.jdbc....
[ { "code": null, "e": 2135, "s": 2068, "text": "How to execute multiple SQL commands on a database simultaneously?" }, { "code": null, "e": 2240, "s": 2135, "text": "Following example uses addBatch & executeBatch commands to execute multiple SQL commands simultaneously." }, { ...
Python String | strip() - GeeksforGeeks
21 Jan, 2021 The strip() method in-built function of Python is used to remove all the leading and trailing spaces from a string. Syntax :string.strip([chars]) Parameter: chars(optional): Character or a set of characters, that needs to be removed from the string. Returns: A copy of the string with both leading and trail...
[ { "code": null, "e": 24026, "s": 23998, "text": "\n21 Jan, 2021" }, { "code": null, "e": 24142, "s": 24026, "text": "The strip() method in-built function of Python is used to remove all the leading and trailing spaces from a string." }, { "code": null, "e": 24172, ...
Highest and lowest in an array JavaScript
We are required to write a function that takes in an array of numbers and returns the difference between its highest and lowest number. At first, create an array − const arr = [23,54,65,76,87,87,431,-6,22,4,-454]; Now, find maximum and minimum values with Math.max() and Math.min() methods, respectively − const arrayDif...
[ { "code": null, "e": 1198, "s": 1062, "text": "We are required to write a function that takes in an array of numbers and returns the difference between its highest and lowest number." }, { "code": null, "e": 1226, "s": 1198, "text": "At first, create an array −" }, { "cod...
How can I display text over columns in a bar chart in Matplotlib?
To display text over columns in a bar chart, we can use text() method so that we could place text at a specific location (x and y) of the bars column. Create lists for x, y and percentage. Create lists for x, y and percentage. Make a bar plot using bar() method. Make a bar plot using bar() method. Iterate zipped x, y a...
[ { "code": null, "e": 1213, "s": 1062, "text": "To display text over columns in a bar chart, we can use text() method so that we could place text at a specific location (x and y) of the bars column." }, { "code": null, "e": 1251, "s": 1213, "text": "Create lists for x, y and perce...
WebDriver executeAsyncScript vs executeScript in Selenium
There are differences between executeAsyncScript and executeScript methods. For an executeScript method, JavaScript Executor runs the JavaScript with the reference to the present selected window or frame. The script within the method shall run as the body of the unnamed function. Inside the script, the documents are us...
[ { "code": null, "e": 1343, "s": 1062, "text": "There are differences between executeAsyncScript and executeScript methods. For an executeScript method, JavaScript Executor runs the JavaScript with the reference to the present selected window or frame. The script within the method shall run as the bo...
Pandas GroupBy – Count the occurrences of each combination
To groupby columns and count the occurrences of each combination in Pandas, we use the DataFrame.groupby() with size(). The groupby() method separates the DataFrame into groups. At first, let us import the pandas library with an alias pd − import pandas as pd Initialize the data of lists − # initializing the data mylis...
[ { "code": null, "e": 1240, "s": 1062, "text": "To groupby columns and count the occurrences of each combination in Pandas, we use the DataFrame.groupby() with size(). The groupby() method separates the DataFrame into groups." }, { "code": null, "e": 1302, "s": 1240, "text": "At f...
Shadowing of static functions in Java - GeeksforGeeks
19 Feb, 2021 In Java, if the name of a derived class static function is the same as a base class static function then the base class static function shadows (or conceals) the derived class static function. For example, the following Java code prints “A.fun()” Note: Static method is a class property, so if a static meth...
[ { "code": null, "e": 23919, "s": 23891, "text": "\n19 Feb, 2021" }, { "code": null, "e": 24359, "s": 23919, "text": "In Java, if the name of a derived class static function is the same as a base class static function then the base class static function shadows (or conceals) the d...
Python SQLite - Cursor Object
The sqlite3.Cursor class is an instance using which you can invoke methods that execute SQLite statements, fetch data from the result sets of the queries. You can create Cursor object using the cursor() method of the Connection object/class. import sqlite3 #Connecting to sqlite conn = sqlite3.connect('example.db') #C...
[ { "code": null, "e": 3447, "s": 3205, "text": "The sqlite3.Cursor class is an instance using which you can invoke methods that execute SQLite statements, fetch data from the result sets of the queries. You can create Cursor object using the cursor() method of the Connection object/class." }, { ...
Interpreting Coefficients in Linear and Logistic Regression | by Jonathan Benton | Towards Data Science
Though I briefly summarize linear regression and logistic regression below, this post focuses more on the models’ coefficients. For more information about linear and logistic regression models in general, click here and here. When I used to work at a restaurant, the beginning of every shift was marked by the same conve...
[ { "code": null, "e": 398, "s": 172, "text": "Though I briefly summarize linear regression and logistic regression below, this post focuses more on the models’ coefficients. For more information about linear and logistic regression models in general, click here and here." }, { "code": null, ...
How to Left Join Multiple Tables in SQL - GeeksforGeeks
06 Apr, 2021 Left Join is one of the Keywords used while writing queries in SQL. In SQL we normally use Join for the purpose of forming a new table by taking out common data like rows or records or tuples from both the tables which are having matching records in general. Here when it comes to Left Join in SQL it only ...
[ { "code": null, "e": 24214, "s": 24186, "text": "\n06 Apr, 2021" }, { "code": null, "e": 24474, "s": 24214, "text": "Left Join is one of the Keywords used while writing queries in SQL. In SQL we normally use Join for the purpose of forming a new table by taking out common data li...
Create Multiple Pie Charts using ggplot2 in R - GeeksforGeeks
08 Mar, 2021 Pie Chart, also known as circle chart, is the graphical representation of the relative size or frequency of the data in a circular format. Basically, it helps in visualizing the relative size or frequency of a particular group of data as a part of the whole. This article discusses how multiple pie charts c...
[ { "code": null, "e": 25266, "s": 25238, "text": "\n08 Mar, 2021" }, { "code": null, "e": 25630, "s": 25266, "text": "Pie Chart, also known as circle chart, is the graphical representation of the relative size or frequency of the data in a circular format. Basically, it helps in v...
How to customize how a JTabbedPane looks in Java?
To customize how a JTabbedPane looks, change its font style, font face, font size and the background and foreground colors. Let’s say the following is the JTabbedPane − JTabbedPane tabbedPane = new JTabbedPane(); Now, let us customize the above created JTabbedPane − tabbedPane.setBackground(Color.orange); tabbedPane.se...
[ { "code": null, "e": 1186, "s": 1062, "text": "To customize how a JTabbedPane looks, change its font style, font face, font size and the background and foreground colors." }, { "code": null, "e": 1231, "s": 1186, "text": "Let’s say the following is the JTabbedPane −" }, { ...
Pointer to C++ Classes
A pointer to a C++ class is done exactly the same way as a pointer to a structure and to access members of a pointer to a class you use the member access operator -> operator, just as you do with pointers to structures. Also as with all pointers, you must initialize the pointer before using it. Let us try the following...
[ { "code": null, "e": 2614, "s": 2318, "text": "A pointer to a C++ class is done exactly the same way as a pointer to a structure and to access members of a pointer to a class you use the member access operator -> operator, just as you do with pointers to structures. Also as with all pointers, you mu...
Convert string to char array in C++
This is a C++ program to Convert string to char array in C++. This can be done in many ways: Begin Assign value to string m. For i = 0 to sizeof(m) Print the char array. End Live Demo #include<iostream> #include<string.h> using namespace std; int main() { char m[] = "Tutorialspoint"; string str; i...
[ { "code": null, "e": 1155, "s": 1062, "text": "This is a C++ program to Convert string to char array in C++. This can be done in many ways:" }, { "code": null, "e": 1248, "s": 1155, "text": "Begin\n Assign value to string m.\n For i = 0 to sizeof(m)\n Print the char arra...
For Loop- primeCheck | Practice | GeeksforGeeks
What do you do when you need to execute certain statements more than once? You put them in a loop. Loops are very powerful. Majority of coding questions need loops to work. You can't even input testcases without loops! Here, we will use for loop and check if the given number n is prime or not. Note: A number is prime i...
[ { "code": null, "e": 497, "s": 278, "text": "What do you do when you need to execute certain statements more than once? You put them in a loop. Loops are very powerful. Majority of coding questions need loops to work. You can't even input testcases without loops!" }, { "code": null, "e":...
Logstash - Filters
Logstash uses filters in the middle of the pipeline between input and output. The filters of Logstash measures manipulate and create events like Apache-Access. Many filter plugins used to manage the events in Logstash. Here, in an example of the Logstash Aggregate Filter, we are filtering the duration every SQL transac...
[ { "code": null, "e": 2424, "s": 2055, "text": "Logstash uses filters in the middle of the pipeline between input and output. The filters of Logstash measures manipulate and create events like Apache-Access. Many filter plugins used to manage the events in Logstash. Here, in an example of the Logstas...
Stock Buy Sell to Maximize Profit - GeeksforGeeks
21 Mar, 2022 The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earn by buying on day 0, selling on day 3. Again, buy on day 4 and sell on day 6. If...
[ { "code": null, "e": 24741, "s": 24713, "text": "\n21 Mar, 2022" }, { "code": null, "e": 25143, "s": 24741, "text": "The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is...
What is Fat Tail? | Towards Data Science
Hi, this is Roh (ρ) The series “Journey to Tempered Stable Distribution” is designed to help people understand one of the fat-tail distributions: tempered stable distribution. The purpose of this document is, therefore, to introduce and explain concepts and tools that are required to understanding the level of exploiti...
[ { "code": null, "e": 192, "s": 172, "text": "Hi, this is Roh (ρ)" }, { "code": null, "e": 926, "s": 192, "text": "The series “Journey to Tempered Stable Distribution” is designed to help people understand one of the fat-tail distributions: tempered stable distribution. The purpos...
How to use Global Variable in Postman Request?
We can use a Global variable in Postman Request. . We can set, get and clear a Global variable at runtime using the scripts. This is achieved by the pm.* function. The script to use a Global variable can be included either in the Tests or Pre-Request Script tab To set a Global variable, the script should be − pm.global...
[ { "code": null, "e": 1324, "s": 1062, "text": "We can use a Global variable in Postman Request. . We can set, get and clear a Global variable at runtime using the scripts. This is achieved by the pm.* function. The script to use a Global variable can be included either in the Tests or Pre-Request Sc...
Redis - List Rpush Command
Redis RPUSH command inserts all the specified values at the tail of the list stored at the key. If the key does not exist, it is created as an empty list before performing the push operation. When the key holds a value that is not a list, an error is returned. Integer reply, the length of the list after the push operat...
[ { "code": null, "e": 2306, "s": 2045, "text": "Redis RPUSH command inserts all the specified values at the tail of the list stored at the key. If the key does not exist, it is created as an empty list before performing the push operation. When the key holds a value that is not a list, an error is re...
How to move the ResultSet cursor to the next row in JDBC?
Whenever we execute SQL statements using the executeQuery() method, it returns a ResultSet object which holds the tabular data returned by the SELECT queries(in general). The ResultSet object contains a cursor/pointer which points to the current row. Initially this cursor is positioned before first row (default positio...
[ { "code": null, "e": 1233, "s": 1062, "text": "Whenever we execute SQL statements using the executeQuery() method, it returns a ResultSet object which holds the tabular data returned by the SELECT queries(in general)." }, { "code": null, "e": 1386, "s": 1233, "text": "The ResultS...
Find Perimeter of a triangle in C++
In this problem, we will see the perimeter of a triangle, formula for the perimeter of different types of triangle and program to find them. Perimeter is defined as the total distance about the figure. Basically, it is the sum of all sides of the given figure. Perimeter of a triangle The perimeter of a triangle is the ...
[ { "code": null, "e": 1203, "s": 1062, "text": "In this problem, we will see the perimeter of a triangle, formula for the\nperimeter of different types of triangle and program to find them." }, { "code": null, "e": 1323, "s": 1203, "text": "Perimeter is defined as the total distan...
Basics of image classification with Keras | by John Olafenwa | Towards Data Science
In my previous post, I delved into some of the theoretical concepts underlying artificial neural networks. In this post, I would be explaining some common operations that you would frequently need in keras. First, how to save models and use them for prediction later, displaying images from the dataset and loading image...
[ { "code": null, "e": 538, "s": 172, "text": "In my previous post, I delved into some of the theoretical concepts underlying artificial neural networks. In this post, I would be explaining some common operations that you would frequently need in keras. First, how to save models and use them for predi...
Standard Chartered Interview Experience - GeeksforGeeks
30 Oct, 2019 I attended an interview with Standard Chartered on 20th Oct 2019. I hold about 9 years of exp in java. There is only one round that was the written round. Find the exact pair of the numbers in an array whose sum of values is equal to targets. Assume that there is only such a pair. This implementation needs...
[ { "code": null, "e": 26691, "s": 26663, "text": "\n30 Oct, 2019" }, { "code": null, "e": 26794, "s": 26691, "text": "I attended an interview with Standard Chartered on 20th Oct 2019. I hold about 9 years of exp in java." }, { "code": null, "e": 26846, "s": 26794, ...
Count of distinct strings that can be obtained after performing exactly one swap - GeeksforGeeks
10 Jan, 2022 Given a string s containing lowercase English alphabet characters. The task is to calculate the number of distinct strings that can be obtained after performing exactly one swap. Input: s = “geek”Output: 6Explanation: Following are the strings formed by doing exactly one swapstrings = [“egek”,”eegk”,”geek”...
[ { "code": null, "e": 27373, "s": 27345, "text": "\n10 Jan, 2022" }, { "code": null, "e": 27552, "s": 27373, "text": "Given a string s containing lowercase English alphabet characters. The task is to calculate the number of distinct strings that can be obtained after performing ex...
Convert a Binary Tree to a Circular Doubly Link List - GeeksforGeeks
13 Oct, 2021 Given a Binary Tree, convert it to a Circular Doubly Linked List (In-Place). The left and right pointers in nodes are to be used as previous and next pointers respectively in converted Circular Linked List. The order of nodes in the List must be the same as in Inorder for the given Binary Tree. The first...
[ { "code": null, "e": 37091, "s": 37063, "text": "\n13 Oct, 2021" }, { "code": null, "e": 37170, "s": 37091, "text": "Given a Binary Tree, convert it to a Circular Doubly Linked List (In-Place). " }, { "code": null, "e": 37300, "s": 37170, "text": "The left an...
Tailwind CSS Border Color - GeeksforGeeks
23 Mar, 2022 This class accepts more than one value in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS border-color property. This class is used to specify the border color of an element. Border Color classes: border-transparent: The border color will be transparent...
[ { "code": null, "e": 37385, "s": 37357, "text": "\n23 Mar, 2022" }, { "code": null, "e": 37614, "s": 37385, "text": "This class accepts more than one value in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS border-color propert...
Python | All Permutations of a string in lexicographical order without using recursion - GeeksforGeeks
26 Aug, 2019 Write a python program to print all the permutations of a string in lexicographical order. Examples: Input : python Output : hnopty hnopyt hnotpy hnotyp hnoypt ...... ytpnho ytpnoh ytpohn ytponh Input : xyz Output : xyz xzy yxz yzx zxy zyx Method 1:Using the default library itertools function permutat...
[ { "code": null, "e": 26269, "s": 26241, "text": "\n26 Aug, 2019" }, { "code": null, "e": 26360, "s": 26269, "text": "Write a python program to print all the permutations of a string in lexicographical order." }, { "code": null, "e": 26370, "s": 26360, "text": ...
HTML | DOM IFrame contentDocument Property - GeeksforGeeks
30 Sep, 2019 The IFrame contentDocument property in HTML DOM is used to return the document object generated by a frame or iframe element. It can be used in the host window to access the document object that belongs to a frame or iframe element. Syntax: iframeObject.contentDocument Return Value: It returns the referen...
[ { "code": null, "e": 26037, "s": 26009, "text": "\n30 Sep, 2019" }, { "code": null, "e": 26270, "s": 26037, "text": "The IFrame contentDocument property in HTML DOM is used to return the document object generated by a frame or iframe element. It can be used in the host window to ...
Perl | rename() Function - GeeksforGeeks
25 Jun, 2019 rename() function in Perl renames the old name of a file to a new name as given by the user. Syntax: rename(old_file_path, new_file_path) Parameters:old_file_path: path of the old file along with its namenew_file_path: path of the new file along with its name Returns0 on failure and 1 on success Example: #...
[ { "code": null, "e": 25315, "s": 25287, "text": "\n25 Jun, 2019" }, { "code": null, "e": 25408, "s": 25315, "text": "rename() function in Perl renames the old name of a file to a new name as given by the user." }, { "code": null, "e": 25453, "s": 25408, "text"...
How to Crop an Image using the Numpy Module? - GeeksforGeeks
12 Nov, 2020 In this article, we are going to learn about the most naive and efficient approach to crop an image without using any additional module. The numpy module is a Python library used for working with arrays, and large data sets. Python does not have any native support for arrays, as opposed to other high-level...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n12 Nov, 2020" }, { "code": null, "e": 25674, "s": 25537, "text": "In this article, we are going to learn about the most naive and efficient approach to crop an image without using any additional module." }, { "code": null...