title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
OpenCV - Laplacian Transformation | Laplacian Operator is also a derivative operator which is used to find edges in an image. It is a second order derivative mask. In this mask we have two further classifications one is Positive Laplacian Operator and other is Negative Laplacian Operator.
Unlike other operators Laplacian didn’t take out edges in any part... | [
{
"code": null,
"e": 3258,
"s": 3004,
"text": "Laplacian Operator is also a derivative operator which is used to find edges in an image. It is a second order derivative mask. In this mask we have two further classifications one is Positive Laplacian Operator and other is Negative Laplacian Operator.... |
H2 Database - Backup | BACKUP is the command used to take database backup into a separate .zip file. Objects are not locked, and when it takes backup the transaction log is also copied. Admin rights are required to execute this command.
Following is the generic syntax of the Backup command.
BACKUP TO fileNameString;
In this example, let us ... | [
{
"code": null,
"e": 2321,
"s": 2107,
"text": "BACKUP is the command used to take database backup into a separate .zip file. Objects are not locked, and when it takes backup the transaction log is also copied. Admin rights are required to execute this command."
},
{
"code": null,
"e": 23... |
Extract arrays separately from array of Objects in JavaScript | Suppose, we have an array of objects like this −
const arr = [{
name : 'Client 1',
total: 900,
value: 12000
}, {
name : 'Client 2',
total: 10,
value: 800
}, {
name : 'Client 3',
total: 5,
value : 0
}];
We are required to write a JavaScript function that takes in one such array and extracts a ... | [
{
"code": null,
"e": 1111,
"s": 1062,
"text": "Suppose, we have an array of objects like this −"
},
{
"code": null,
"e": 1291,
"s": 1111,
"text": "const arr = [{\n name : 'Client 1',\n total: 900,\n value: 12000\n}, {\n name : 'Client 2',\n total: 10,\n value: 800\n},... |
Equivalence Partitioning Testing | Equivalence Partitioning also called as equivalence class partitioning. It is abbreviated as ECP. It is a software testing technique that divides the input test data of the application under test into each partition at least once of equivalent data from which test cases can be derived.
An advantage of this approach is ... | [
{
"code": null,
"e": 6032,
"s": 5745,
"text": "Equivalence Partitioning also called as equivalence class partitioning. It is abbreviated as ECP. It is a software testing technique that divides the input test data of the application under test into each partition at least once of equivalent data from... |
Python Program to print the diamond shape | The looping features in python can be used to create many nicely formatted diagrams using various characters from the keyboard. One such shape is diamond shape which will involve multiple loops. This is because we have to print the character both vertically and horizontally. Also we have to take care of the shape gradu... | [
{
"code": null,
"e": 1562,
"s": 1062,
"text": "The looping features in python can be used to create many nicely formatted diagrams using various characters from the keyboard. One such shape is diamond shape which will involve multiple loops. This is because we have to print the character both vertic... |
Building a Machine Learning Pipeline with Scikit-Learn | by Ezgi Gumusbas | Towards Data Science | Data science projects need iterative progress. For example, we clean and prepare data for modeling with transforming to the proper format, run the model, get results, improve the model/change the model and work on feature engineering, get new results, compare them with other results, etc. It is not easy and smart to do... | [
{
"code": null,
"e": 614,
"s": 171,
"text": "Data science projects need iterative progress. For example, we clean and prepare data for modeling with transforming to the proper format, run the model, get results, improve the model/change the model and work on feature engineering, get new results, com... |
Latent Semantic Analysis — Deduce the hidden topic from the document | by Sanket Doshi | Towards Data Science | Making computers learn and understand the human language is still the most difficult task. Language contains huge vocabulary and each work has different meaning based on the context and making computers learn the context is an open question. In this we will try to deduce the hidden topics represented by the text and wi... | [
{
"code": null,
"e": 539,
"s": 172,
"text": "Making computers learn and understand the human language is still the most difficult task. Language contains huge vocabulary and each work has different meaning based on the context and making computers learn the context is an open question. In this we wi... |
java.time.LocalDate.of() Method Example | The java.time.LocalDate.of(int year, Month month, int dayOfMonth) method obtains an instance of LocalDate from a year, month and day.
Following is the declaration for java.time.LocalDate.of(int year, Month month, int dayOfMonth) method.
public static LocalDate of(int year, Month month, int dayOfMonth)
year − the year ... | [
{
"code": null,
"e": 2049,
"s": 1915,
"text": "The java.time.LocalDate.of(int year, Month month, int dayOfMonth) method obtains an instance of LocalDate from a year, month and day."
},
{
"code": null,
"e": 2152,
"s": 2049,
"text": "Following is the declaration for java.time.Local... |
CSS | columns Property - GeeksforGeeks | 08 Aug, 2019
In CSS the columns property is used to set the number of columns and the width of the columns. This is a shorthand property and can take multiple values at a time.
Syntax:
columns: column-width columns-count | auto | initial | inherit;
PropertyValues:
auto: This sets the column-width and column-count valu... | [
{
"code": null,
"e": 24983,
"s": 24955,
"text": "\n08 Aug, 2019"
},
{
"code": null,
"e": 25147,
"s": 24983,
"text": "In CSS the columns property is used to set the number of columns and the width of the columns. This is a shorthand property and can take multiple values at a time.... |
move_to_element method - Action Chains in Selenium Python - GeeksforGeeks | 15 May, 2020
Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and drop. Acti... | [
{
"code": null,
"e": 24574,
"s": 24546,
"text": "\n15 May, 2020"
},
{
"code": null,
"e": 25172,
"s": 24574,
"text": "Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mous... |
How to create a gradient Video Progress Bar? - GeeksforGeeks | 28 May, 2020
Dynamic Progress Bars in videos are quite visually attractive in themselves. Here, we’ll be creating a progress bar that changes its color gradientally using simple HTML, CSS, and some JavaScript. The gradient here refers to change in color from one to another quite smoothly. Here we will be changing the g... | [
{
"code": null,
"e": 26731,
"s": 26703,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 27072,
"s": 26731,
"text": "Dynamic Progress Bars in videos are quite visually attractive in themselves. Here, we’ll be creating a progress bar that changes its color gradientally using simpl... |
Boosting performance with XGBoost | by Shubham Goyal | Towards Data Science | In this blog, we are going to see how XGBoost works and some of the important features of XGBoost with the help of an example.
So, many of us heard about tree models and boosting techniques. Let’s put these concepts together and talk about XGBoost, the most powerful machine learning Algorithm out there.
XGboost called ... | [
{
"code": null,
"e": 299,
"s": 172,
"text": "In this blog, we are going to see how XGBoost works and some of the important features of XGBoost with the help of an example."
},
{
"code": null,
"e": 477,
"s": 299,
"text": "So, many of us heard about tree models and boosting techniq... |
ASP.NET MVC - Actions | ASP.NET MVC Action Methods are responsible to execute requests and generate responses to it. By default, it generates a response in the form of ActionResult. Actions typically have a one-to-one mapping with user interactions.
For example, enter a URL into the browser, click on any particular link, and submit a form, et... | [
{
"code": null,
"e": 2495,
"s": 2269,
"text": "ASP.NET MVC Action Methods are responsible to execute requests and generate responses to it. By default, it generates a response in the form of ActionResult. Actions typically have a one-to-one mapping with user interactions."
},
{
"code": null,... |
How to Setup Your JupyterLab Project Environment | by Frank Zickert | Quantum Machine Learning | Towards Data Science | Create and Customize Your Containerized and Script-controlled JupyterLab Project Environment in a minute.
This post is part of the book: Hands-On Quantum Machine Learning With Python.
Get the first three chapters for free here.
The JupyterLab-Configuration lets you easily create your JupyterLab configuration that runs ... | [
{
"code": null,
"e": 278,
"s": 172,
"text": "Create and Customize Your Containerized and Script-controlled JupyterLab Project Environment in a minute."
},
{
"code": null,
"e": 356,
"s": 278,
"text": "This post is part of the book: Hands-On Quantum Machine Learning With Python."
... |
Optional of() method in Java with examples - GeeksforGeeks | 30 Jul, 2019
The of() method of java.util.Optional class in Java is used to get an instance of this Optional class with the specified value of the specified type.
Syntax:
public static <T>
Optional<T> of(T value)
Parameters: This method accepts value as parameter of type T to create an Optional instance with this v... | [
{
"code": null,
"e": 24644,
"s": 24616,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 24794,
"s": 24644,
"text": "The of() method of java.util.Optional class in Java is used to get an instance of this Optional class with the specified value of the specified type."
},
{
... |
Postorder traversal of Binary Tree without recursion and without stack - GeeksforGeeks | 01 Jul, 2021
Prerequisite – Inorder/preorder/postorder traversal of tree Given a binary tree, perform postorder traversal.
We have discussed below methods for postorder traversal. 1) Recursive Postorder Traversal. 2) Postorder traversal using Stack. 2) Postorder traversal using two Stacks.In this method a DFS based so... | [
{
"code": null,
"e": 37642,
"s": 37614,
"text": "\n01 Jul, 2021"
},
{
"code": null,
"e": 37753,
"s": 37642,
"text": "Prerequisite – Inorder/preorder/postorder traversal of tree Given a binary tree, perform postorder traversal. "
},
{
"code": null,
"e": 38019,
"s":... |
Public vs Protected in C++ with Examples | 29 Oct, 2019
Public
All the class members declared under public will be available to everyone. The data members and member functions declared public can be accessed by other classes too. The public members of a class can be accessed from anywhere in the program using the direct member access operator (.) with the objec... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 35,
"s": 28,
"text": "Public"
},
{
"code": null,
"e": 352,
"s": 35,
"text": "All the class members declared under public will be available to everyone. The data members and membe... |
Python | Pandas Timestamp.year | 08 Jan, 2019
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Timestamp.year attribute return the year in which the date in the given Timestamp obje... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Jan, 2019"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
Meta Class in Models – Django | 27 May, 2022
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. Do also ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 384,
"s": 28,
"text": "Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle... |
INSERT ON DUPLICATE KEY UPDATE in MySQL | 23 Dec, 2020
INSERT ON DUPLICATE KEY UPDATE statement is available in MySQL as an extension to the INSERT statement. Whenever a new row is inserted into a table in case the row causes a duplicate entry in the UNIQUE index or PRIMARY KEY, MySQL will throw an error.
When the ON DUPLICATE KEY UPDATE option is defined in t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Dec, 2020"
},
{
"code": null,
"e": 280,
"s": 28,
"text": "INSERT ON DUPLICATE KEY UPDATE statement is available in MySQL as an extension to the INSERT statement. Whenever a new row is inserted into a table in case the row causes a du... |
GATE | GATE CS 2021 | Set 2 | Question 42 | 23 May, 2021
Let S be the following schedule of operations of three transactions T1, T2 and T3 in a relational database system:
R2(Y),R1(X),R3(Z),R1(Y)W1(X),R2(Z),W2(Y),R3(X),W3(Z)
Consider the statements P and Q below:
P: S is conflict-serializable.
Q: If T3 commits before T1 finishes, then S is recoverable.
Which on... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2021"
},
{
"code": null,
"e": 143,
"s": 28,
"text": "Let S be the following schedule of operations of three transactions T1, T2 and T3 in a relational database system:"
},
{
"code": null,
"e": 197,
"s": 143,
... |
Homogeneity of Variance Test in R Programming | 12 Oct, 2020
In statistics, a sequence of random variables is homoscedastic if all its random variables have the same finite variance. This is also known as homogeneity of variance. In this article, let’s explain methods for checking the homogeneity of variances test in R programming across two or more groups. Some sta... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Oct, 2020"
},
{
"code": null,
"e": 557,
"s": 28,
"text": "In statistics, a sequence of random variables is homoscedastic if all its random variables have the same finite variance. This is also known as homogeneity of variance. In thi... |
Standard Normal Distribution (SND) – Java Program | 06 Feb, 2018
The standard normal distribution is a special case of the normal distribution. It occurs when a normal random variable has a mean of 0 and a standard deviation of 1. The normal random variable of a standard normal distribution is called a standard score or a z score.A conversion from Normally distributed t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Feb, 2018"
},
{
"code": null,
"e": 397,
"s": 28,
"text": "The standard normal distribution is a special case of the normal distribution. It occurs when a normal random variable has a mean of 0 and a standard deviation of 1. The norma... |
Egg Dropping Puzzle | DP-11 | 09 Jun, 2022
The following is a description of the instance of this famous puzzle involving n=2 eggs and a building with k=36 floors.Suppose that we wish to know which stories in a 36-storey building are safe to drop eggs from, and which will cause the eggs to break on landing. We make a few assumptions:.....An egg tha... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 1415,
"s": 52,
"text": "The following is a description of the instance of this famous puzzle involving n=2 eggs and a building with k=36 floors.Suppose that we wish to know which stories in a 36-st... |
Python | Merge Range Characters in List | 19 Feb, 2020
Sometimes, we require to merge some of the elements as single element in the list. This is usually with the cases with character to string conversion. This type of task is usually required in development domain to merge the names into one element. Let’s discuss certain ways in which this can be performed.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 335,
"s": 28,
"text": "Sometimes, we require to merge some of the elements as single element in the list. This is usually with the cases with character to string conversion. This type of task is usu... |
Golang Program that uses String Switch | 04 May, 2020
With the help of switch case we can implement the functionality of as many if statements. In Golang, switch cases can work with strings, list of variables including integer values as well as floating values.
Syntax:
switch optstatement; optexpression{case expression1: Statement..case expression2: Statement... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "With the help of switch case we can implement the functionality of as many if statements. In Golang, switch cases can work with strings, list of variables including integer va... |
Laravel | Delete Records | 27 Apr, 2020
To delete records we can use DB facade with the delete method. To do so follow the below steps one by one:
Step 1: Create Controller UserController by executing this command.php artisan make:controller UserController
php artisan make:controller UserController
Step 2: We can delete records in two ways.First... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 135,
"s": 28,
"text": "To delete records we can use DB facade with the delete method. To do so follow the below steps one by one:"
},
{
"code": null,
"e": 245,
"s": 135,
"text": ... |
C# | Convert.ToDateTime(String, IFormatProvider) Method | 02 Sep, 2021
This method is used to convert the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.Syntax:
public static DateTime ToDateTime (string value, IFormatProvider provider);
Parameters:
value: A string that contains a date an... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 207,
"s": 28,
"text": "This method is used to convert the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.Synt... |
JavaScript | Get the text of a span element | 23 May, 2019
Given an HTML document and the task is to get the text of a <span> element. There are two methods used to get the span elements which are discussed below:
HTML DOM textContent Property: This property set/return the text content of the defined node, and all its descendants. By setting the textContent proper... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 183,
"s": 28,
"text": "Given an HTML document and the task is to get the text of a <span> element. There are two methods used to get the span elements which are discussed below:"
},
{
"code"... |
How do we use easy_install to install Python modules? | easy_install was released in 2004, as part of setuptools. It was notable at the time for installing packages from PyPI using requirement specifiers, and automatically installing dependencies.
pip came later in 2008, as alternative to easy_install, although still largely built on top of setuptools components. You should... | [
{
"code": null,
"e": 1254,
"s": 1062,
"text": "easy_install was released in 2004, as part of setuptools. It was notable at the time for installing packages from PyPI using requirement specifiers, and automatically installing dependencies."
},
{
"code": null,
"e": 1536,
"s": 1254,
... |
Apache NiFi - Custom Processor | Apache NiFi is an open source platform and gives developers the options to add their custom processor in the NiFi library. Follow these steps to create a custom processor.
Download Maven latest version from the link given below.
https://maven.apache.org/download.cgi
Download Maven latest version from the link given bel... | [
{
"code": null,
"e": 2490,
"s": 2318,
"text": "Apache NiFi is an open source platform and gives developers the options to add their custom processor in the NiFi library. Follow these steps to create a custom processor."
},
{
"code": null,
"e": 2585,
"s": 2490,
"text": "Download M... |
Lines and Indentation in Python | Python provides no braces to indicate blocks of code for class and function definitions or flow control. Blocks of code are denoted by line indentation, which is rigidly enforced.
The number of spaces in the indentation is variable, but all statements within the block must be indented the same amount. For example −
if ... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "Python provides no braces to indicate blocks of code for class and function definitions or flow control. Blocks of code are denoted by line indentation, which is rigidly enforced."
},
{
"code": null,
"e": 1379,
"s": 1242,
"text": "Th... |
TD3: Learning To Run With AI. Learn to build one of the most powerful... | by Donal Byrne | Towards Data Science | This article looks at one of the most powerful and state of the art algorithms in Reinforcement Learning (RL), Twin Delayed Deep Deterministic Policy Gradients (TD3)( Fujimoto et al., 2018). By the end of this article you should have a solid understanding of what makes TD3 perform so well, be capable of implementing th... | [
{
"code": null,
"e": 595,
"s": 172,
"text": "This article looks at one of the most powerful and state of the art algorithms in Reinforcement Learning (RL), Twin Delayed Deep Deterministic Policy Gradients (TD3)( Fujimoto et al., 2018). By the end of this article you should have a solid understanding... |
Functions in Power BI — (Table.FindText) | by Peter Hui | Towards Data Science | I’ve always been amazed at the simple find function. You can find anything that matches your criteria, even if your search item is hidden in different work sheets, open text or tables.
Just imagine, you can search for anything that appears anywhere in your raw data. Even if it is hidden somewhere in an open text field.... | [
{
"code": null,
"e": 357,
"s": 172,
"text": "I’ve always been amazed at the simple find function. You can find anything that matches your criteria, even if your search item is hidden in different work sheets, open text or tables."
},
{
"code": null,
"e": 508,
"s": 357,
"text": "J... |
Convert Java Object to Json String using GSON - GeeksforGeeks | 04 Apr, 2019
JSON Stand for JavaScript Object Notation. It’s a standard text-based format which shows structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications. JSON is highly recommended to transmit data between a server and web application.
To convert a Java obje... | [
{
"code": null,
"e": 24842,
"s": 24814,
"text": "\n04 Apr, 2019"
},
{
"code": null,
"e": 25127,
"s": 24842,
"text": "JSON Stand for JavaScript Object Notation. It’s a standard text-based format which shows structured data based on JavaScript object syntax. It is commonly used for... |
Java Program for Common Divisors of Two Numbers - GeeksforGeeks | 04 Dec, 2018
Given two integer numbers, the task is to find the count of all common divisors of given numbers?
Input : a = 12, b = 24
Output: 6
// all common divisors are 1, 2, 3,
// 4, 6 and 12
Input : a = 3, b = 17
Output: 1
// all common divisors are 1
Input : a = 20, b = 36
Output: 3
// all common divisors are 1... | [
{
"code": null,
"e": 26149,
"s": 26121,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 26247,
"s": 26149,
"text": "Given two integer numbers, the task is to find the count of all common divisors of given numbers?"
},
{
"code": null,
"e": 26464,
"s": 26247,
"... |
Neighbourhood Segmentation and Clustering using Foursquare API | by Mathangpeddi | Towards Data Science | Whoever said money can’t buy happiness didn’t know where to go shopping.
For many shoppers, visiting shopping malls is a great way to relax and enjoy themselves during weekends and holidays. Property developers are also taking advantage of this trend to build more shopping malls to cater to the demand. As a result, the... | [
{
"code": null,
"e": 244,
"s": 171,
"text": "Whoever said money can’t buy happiness didn’t know where to go shopping."
},
{
"code": null,
"e": 948,
"s": 244,
"text": "For many shoppers, visiting shopping malls is a great way to relax and enjoy themselves during weekends and holid... |
How to delete different rows and columns of a matrix using a single line code in R? | Deletion or addition of rows and columns in a matrix of any size is mostly done by using single square brackets and it is also the easiest way. To delete rows and columns, we just need to use the column index or row index and if we want to delete more than one of them then we can separate them by commas by inserting th... | [
{
"code": null,
"e": 1498,
"s": 1062,
"text": "Deletion or addition of rows and columns in a matrix of any size is mostly done by using single square brackets and it is also the easiest way. To delete rows and columns, we just need to use the column index or row index and if we want to delete more t... |
GATE | GATE CS 2019 | Question 56 - GeeksforGeeks | 19 Feb, 2019
Suppose Y is distributed uniformly in the open interval (1, 6). The probability that the polynomial 3x2 + 6xY + 3Y + 6 has only real roots is (rounded off to 1 decimal place) _________.
Note: This was Numerical Type question.(A) 0.80(B) 0.17(C) 0.20(D) 1Answer: (A)Explanation: For a quadratic polynomial ax... | [
{
"code": null,
"e": 25741,
"s": 25713,
"text": "\n19 Feb, 2019"
},
{
"code": null,
"e": 25927,
"s": 25741,
"text": "Suppose Y is distributed uniformly in the open interval (1, 6). The probability that the polynomial 3x2 + 6xY + 3Y + 6 has only real roots is (rounded off to 1 dec... |
Construct a DataFrame in Pandas using string data in Python | Here we will see how we can construct a pandas dataframe using string type data. Pandas supports csv files, but we can do the same using string also. For string type data, we have to use one wrapper, that helps to simulate as the data is taken as csv reader.
Here we are using a string that takes data and separated by s... | [
{
"code": null,
"e": 1321,
"s": 1062,
"text": "Here we will see how we can construct a pandas dataframe using string type data. Pandas supports csv files, but we can do the same using string also. For string type data, we have to use one wrapper, that helps to simulate as the data is taken as csv re... |
Spring Cloud - Service Discovery Using Eureka | Service discovery is one of the most critical parts when an application is deployed as microservices in the cloud. This is because for any use operation, an application in a microservice architecture may require access to multiple services and the communication amongst them.
Service discovery helps tracking the service... | [
{
"code": null,
"e": 2154,
"s": 1878,
"text": "Service discovery is one of the most critical parts when an application is deployed as microservices in the cloud. This is because for any use operation, an application in a microservice architecture may require access to multiple services and the commu... |
How to float three div side by side using CSS? - GeeksforGeeks | 12 Feb, 2019
Three or more different div can be put side-by-side using CSS. Use CSS property to set the height and width of div and use display property to place div in side-by-side format.
float:left; This property is used for those elements(div) that will float on left side.
float:right; This property is used for tho... | [
{
"code": null,
"e": 24816,
"s": 24788,
"text": "\n12 Feb, 2019"
},
{
"code": null,
"e": 24993,
"s": 24816,
"text": "Three or more different div can be put side-by-side using CSS. Use CSS property to set the height and width of div and use display property to place div in side-by... |
Find Unique pair in an array with pairs of numbers - GeeksforGeeks | 29 Apr, 2021
Given an array where every element appears twice except a pair (two elements). Find the elements of this unique pair.Examples:
Input : 6, 1, 3, 5, 1, 3, 7, 6
Output : 5 7
All elements appear twice except 5 and 7
Input : 1 3 4 1
Output : 3 4
The idea is based on below post.Find Two Missing Numbers | ... | [
{
"code": null,
"e": 24742,
"s": 24714,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 24871,
"s": 24742,
"text": "Given an array where every element appears twice except a pair (two elements). Find the elements of this unique pair.Examples: "
},
{
"code": null,
"e... |
Improving Plotly’s Polar Bar Charts | by Ray Heberer | Towards Data Science | Polar Bar Charts can be great ways to display categorical information if you want to draw more attention to the categories with higher values. They were used to great effect in the Wall Street Journal’s article on Amazon’s HQ2 Shortlist. But even with the powerful visualization tools at our fingertips, producing charts... | [
{
"code": null,
"e": 527,
"s": 172,
"text": "Polar Bar Charts can be great ways to display categorical information if you want to draw more attention to the categories with higher values. They were used to great effect in the Wall Street Journal’s article on Amazon’s HQ2 Shortlist. But even with the... |
How to remove the mapped network drive using PowerShell? | To remove mapped drives from PowerShell on windows systems, you can use both PowerShell and cmd commands.
You can use the below command for a single mapped drive-by specifying the disk drive letter or by using the wildcard character (*).
To remove a single mapped drive.
net use K: /delete
PS C:\WINDOWS\system32> net us... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "To remove mapped drives from PowerShell on windows systems, you can use both PowerShell and cmd commands."
},
{
"code": null,
"e": 1300,
"s": 1168,
"text": "You can use the below command for a single mapped drive-by specifying the di... |
Image Processing with Python. Bytes, sampling, and filters — an... | by James Briggs | Towards Data Science | Image processing is often a reasonably infrequent task. Of course, this will depend heavily on our roles — but even in heavy analytical roles such as data science or machine learning — image manipulation is pretty common.
In machine learning, we may need to take a number of images and classify them based on what their ... | [
{
"code": null,
"e": 394,
"s": 172,
"text": "Image processing is often a reasonably infrequent task. Of course, this will depend heavily on our roles — but even in heavy analytical roles such as data science or machine learning — image manipulation is pretty common."
},
{
"code": null,
"... |
Bootstrap Confidence Interval with R Programming - GeeksforGeeks | 10 Jul, 2021
Bootstrapping is a statistical method for inference about a population using sample data. It can be used to estimate the confidence interval(CI) by drawing samples with replacement from sample data. Bootstrapping can be used to assign CI to various statistics that have no closed-form or complicated solutio... | [
{
"code": null,
"e": 24756,
"s": 24728,
"text": "\n10 Jul, 2021"
},
{
"code": null,
"e": 25173,
"s": 24756,
"text": "Bootstrapping is a statistical method for inference about a population using sample data. It can be used to estimate the confidence interval(CI) by drawing samples... |
ExpressJS - RESTFul APIs | An API is always needed to create mobile applications, single page applications, use AJAX calls and provide data to clients. An popular architectural style of how to structure and name these APIs and the endpoints is called REST(Representational Transfer State). HTTP 1.1 was designed keeping REST principles in mind. RE... | [
{
"code": null,
"e": 2460,
"s": 2061,
"text": "An API is always needed to create mobile applications, single page applications, use AJAX calls and provide data to clients. An popular architectural style of how to structure and name these APIs and the endpoints is called REST(Representational Transfe... |
Create custom gym environments from scratch — A stock market example | by Adam King | Towards Data Science | OpenAI’s gym is an awesome package that allows you to create custom reinforcement learning agents. It comes with quite a few pre-built environments like CartPole, MountainCar, and a ton of free Atari games to experiment with.
These environments are great for learning, but eventually you’ll want to setup an agent to sol... | [
{
"code": null,
"e": 398,
"s": 172,
"text": "OpenAI’s gym is an awesome package that allows you to create custom reinforcement learning agents. It comes with quite a few pre-built environments like CartPole, MountainCar, and a ton of free Atari games to experiment with."
},
{
"code": null,
... |
C program to explain the goto statement | The C program evaluates the square root for five numbers. The variable count stores the count of numbers read. When count is less than or equal to 5, goto read statement directs the control to the label read. Otherwise, the program prints a message and stops.
It is used after the normal sequence of program execution by... | [
{
"code": null,
"e": 1322,
"s": 1062,
"text": "The C program evaluates the square root for five numbers. The variable count stores the count of numbers read. When count is less than or equal to 5, goto read statement directs the control to the label read. Otherwise, the program prints a message and ... |
Find nth term of a given recurrence relation - GeeksforGeeks | 08 Apr, 2021
Let an be a sequence of numbers, which is defined by the recurrence relation a1=1 and an+1/an=2n. The task is to find the value of log2(an) for a given n.Examples:
Input: 5
Output: 10
Explanation:
log2(an) = (n * (n - 1)) / 2
= (5*(5-1))/2
= 10
Input: 100
Output: 4950
, We multiply all of the above i... | [
{
"code": null,
"e": 24692,
"s": 24664,
"text": "\n08 Apr, 2021"
},
{
"code": null,
"e": 24858,
"s": 24692,
"text": "Let an be a sequence of numbers, which is defined by the recurrence relation a1=1 and an+1/an=2n. The task is to find the value of log2(an) for a given n.Examples:... |
Parsing Fixed Width Text Files with Pandas | by Amy Rask | Towards Data Science | A fixed width file is similar to a csv file, but rather than using a delimiter, each field has a set number of characters. This creates files with all the data tidily lined up with an appearance similar to a spreadsheet when opened in a text editor. This is convenient if you’re looking at raw data files in a text edito... | [
{
"code": null,
"e": 564,
"s": 172,
"text": "A fixed width file is similar to a csv file, but rather than using a delimiter, each field has a set number of characters. This creates files with all the data tidily lined up with an appearance similar to a spreadsheet when opened in a text editor. This ... |
The Trolley Problem Isn’t Theoretical Anymore | by Jessie J. Smith | Towards Data Science | You are the conductor of a run-a-way trolley that is hurtling down its track at 85 miles an hour, heading straight for a group of young boys playing on the tracks, blissfully unaware of their impending doom. You realize that you can pull a lever to switch the trolley to an alternate track, saving the lives of these boy... | [
{
"code": null,
"e": 714,
"s": 172,
"text": "You are the conductor of a run-a-way trolley that is hurtling down its track at 85 miles an hour, heading straight for a group of young boys playing on the tracks, blissfully unaware of their impending doom. You realize that you can pull a lever to switch... |
8 Popular SQL Window Functions Replicated In Python | by AnBento | Towards Data Science | Update: Many of you contacted me asking for valuable resources to learn Python for Data Science or Data Analysis while transitioning from SQL. Below I share 4 courses/platforms that I strongly recommend to keep learning:
SQL & Python Advanced Coding Problems (StrataScratch)→ Best platform I found to prepare SQL coding ... | [
{
"code": null,
"e": 392,
"s": 171,
"text": "Update: Many of you contacted me asking for valuable resources to learn Python for Data Science or Data Analysis while transitioning from SQL. Below I share 4 courses/platforms that I strongly recommend to keep learning:"
},
{
"code": null,
"e... |
The 6 Steps of a SQL Select Statement Process | by Wendy Navarrete | Towards Data Science | In this article, I will describe step by step the logical process phases during the execution of a query into a relational database. For doing that, I am going to use two simple unnormalized form tables: Citizen and City. They are described as followed:
Citizen table contains data of distinguished citizens and the iden... | [
{
"code": null,
"e": 426,
"s": 172,
"text": "In this article, I will describe step by step the logical process phases during the execution of a query into a relational database. For doing that, I am going to use two simple unnormalized form tables: Citizen and City. They are described as followed:"
... |
Program to find area of largest square of 1s in a given matrix in python | Suppose we have a binary matrix, we have to find largest square of 1s in that given matrix.
So, if the input is like
then the output will be 16.
To solve this, we will follow these steps −
res := 0
for i in range 0 to size of matrix, dores := maximum of res and matrix[i, 0]
res := maximum of res and matrix[i, 0]
for i ... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "Suppose we have a binary matrix, we have to find largest square of 1s in that given matrix."
},
{
"code": null,
"e": 1179,
"s": 1154,
"text": "So, if the input is like"
},
{
"code": null,
"e": 1207,
"s": 1179,
"te... |
Python 3 - time localtime() Method | The method localtime() is similar to gmtime() but it converts number of seconds to local time. If secs is not provided or None, the current time as returned by time() is used. The dst flag is set to 1 when DST applies to the given time.
Following is the syntax for localtime() method −
time.localtime([ sec ])
sec − The... | [
{
"code": null,
"e": 2577,
"s": 2340,
"text": "The method localtime() is similar to gmtime() but it converts number of seconds to local time. If secs is not provided or None, the current time as returned by time() is used. The dst flag is set to 1 when DST applies to the given time."
},
{
"c... |
Maximum number of overlapping string - GeeksforGeeks | 15 Oct, 2020
Given two strings S and T, the task is to count the number of the overlapping string T in the string S.Note: If there are some mismatch words as a subsequence which do not matche to the string T, then print -1. Examples:
Input: S = “chirpchirp”, T = “chirp” Output: 0 Explanation: There are no overlapping s... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n15 Oct, 2020"
},
{
"code": null,
"e": 24522,
"s": 24301,
"text": "Given two strings S and T, the task is to count the number of the overlapping string T in the string S.Note: If there are some mismatch words as a subsequence whic... |
How to create Latex tables directly from Python code | by Joseph Early | Towards Data Science | Creating tables of results plays a major part in communicating the outcomes of experiments in data science. Various solutions exist for producing tables in Python and drawing them in the console output, but how do you transfer them to a written report? Usually, this requires some time-consuming and mind-numbing copying... | [
{
"code": null,
"e": 543,
"s": 172,
"text": "Creating tables of results plays a major part in communicating the outcomes of experiments in data science. Various solutions exist for producing tables in Python and drawing them in the console output, but how do you transfer them to a written report? Us... |
Understanding NumPy sum. If you are not clear on what NumPy is... | by Kshitij Bajracharya | Towards Data Science | If you are not clear on what NumPy is or how it works, see this post first.
towardsdatascience.com
In that post on introduction to NumPy, I did a row-wise addition on a NumPy array. Then one of the readers of the post responded by saying that what I had done was a column-wise addition, not row-wise. Indeed, when I was ... | [
{
"code": null,
"e": 248,
"s": 172,
"text": "If you are not clear on what NumPy is or how it works, see this post first."
},
{
"code": null,
"e": 271,
"s": 248,
"text": "towardsdatascience.com"
},
{
"code": null,
"e": 646,
"s": 271,
"text": "In that post on in... |
SQLite - Python | In this chapter, you will learn how to use SQLite in Python programs.
SQLite3 can be integrated with Python using sqlite3 module, which was written by Gerhard Haring. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249. You do not need to install this module separately because ... | [
{
"code": null,
"e": 2708,
"s": 2638,
"text": "In this chapter, you will learn how to use SQLite in Python programs."
},
{
"code": null,
"e": 3024,
"s": 2708,
"text": "SQLite3 can be integrated with Python using sqlite3 module, which was written by Gerhard Haring. It provides an ... |
How to get the name of a test method that was run in a TestNG teardown method? | TestNG supports native dependency injection. It allows to declare additional parameters in methods. At runtime, TestNG automatically fills these parameters with the correct values. Here's a set of native dependencies in TestNG:
ITestContext
XmlTest
Method
ITestResult
These dependencies help to retrieve the name of Test... | [
{
"code": null,
"e": 1290,
"s": 1062,
"text": "TestNG supports native dependency injection. It allows to declare additional parameters in methods. At runtime, TestNG automatically fills these parameters with the correct values. Here's a set of native dependencies in TestNG:"
},
{
"code": nul... |
What is Metapackage in C# Asp.net Core? | It is known that Microsoft.AspNetCore package is one of the packages added to
many ASP.NET Core templates.
The Microsoft.AspNetCore package is repeatedly included as one of the usual project
dependencies when opening a new ASP.NET Core project. It delivers many of the
crucial packages to position up a basic ASP.NET Cor... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "It is known that Microsoft.AspNetCore package is one of the packages added to\nmany ASP.NET Core templates."
},
{
"code": null,
"e": 1397,
"s": 1169,
"text": "The Microsoft.AspNetCore package is repeatedly included as one of the usua... |
Java Program to validate if a String contains only numbers | To validate if a String has only numbers, you can try the following codes. We have used the matches() method in Java here to check for number in a string.
Live Demo
public class Demo {
public static void main(String []args) {
String str = "978";
System.out.println("Checking for string that has only numb... | [
{
"code": null,
"e": 1217,
"s": 1062,
"text": "To validate if a String has only numbers, you can try the following codes. We have used the matches() method in Java here to check for number in a string."
},
{
"code": null,
"e": 1228,
"s": 1217,
"text": " Live Demo"
},
{
"c... |
Perl - Sending Email | If you are working on Linux/Unix machine then you can simply use sendmail utility inside your Perl program to send email. Here is a sample script that can send an email to a given email ID. Just make sure the given path for sendmail utility is correct. This may be different for your Linux/Unix machine.
#!/usr/bin/perl
... | [
{
"code": null,
"e": 2524,
"s": 2220,
"text": "If you are working on Linux/Unix machine then you can simply use sendmail utility inside your Perl program to send email. Here is a sample script that can send an email to a given email ID. Just make sure the given path for sendmail utility is correct. ... |
How to make a Google Translation API using Python? - GeeksforGeeks | 07 Aug, 2020
Google Translate is a free multilingual translation service, based on statistical and neural machine translation, developed by Google. It is widely used to translate complete websites or webpages from one languages to another.
We will be creating a python terminal application which will take the source la... | [
{
"code": null,
"e": 24828,
"s": 24800,
"text": "\n07 Aug, 2020"
},
{
"code": null,
"e": 25056,
"s": 24828,
"text": "Google Translate is a free multilingual translation service, based on statistical and neural machine translation, developed by Google. It is widely used to transla... |
Training on a TPU in parallel using PyTorch XLA | by Abhishek Swain | Towards Data Science | Taken from the Kaggle TPU documentation:
TPUs are now available on Kaggle, for free. TPUs are hardware accelerators specialized in deep learning tasks. They are supported in Tensorflow 2.1 both through the Keras high-level API and, at a lower level, in models using a custom training loop.
You can use up to 30 hours per... | [
{
"code": null,
"e": 212,
"s": 171,
"text": "Taken from the Kaggle TPU documentation:"
},
{
"code": null,
"e": 461,
"s": 212,
"text": "TPUs are now available on Kaggle, for free. TPUs are hardware accelerators specialized in deep learning tasks. They are supported in Tensorflow 2... |
GATE | GATE-CS-2015 (Set 2) | Question 65 - GeeksforGeeks | 29 Sep, 2021
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using ... | [
{
"code": null,
"e": 24049,
"s": 24021,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 24628,
"s": 24049,
"text": "A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice... |
ES6 - while loop | The while loop executes the instructions each time the condition specified evaluates to true. In other words, the loop evaluates the condition before the block of code is executed.
Following is the syntax for the while loop.
while (expression) {
Statement(s) to be executed if expression is true
}
var num = 5;
var f... | [
{
"code": null,
"e": 2458,
"s": 2277,
"text": "The while loop executes the instructions each time the condition specified evaluates to true. In other words, the loop evaluates the condition before the block of code is executed."
},
{
"code": null,
"e": 2502,
"s": 2458,
"text": "F... |
Explain the difference between a table, view and synonym in SQL | Let us understand what table, view and synonym in the structured query language (SQL) are.
A table is a repository of data, where in the table it is a physical entity. A table resides physically in the database.
A view is not a part of the database’s physical representation. It is precompiled, so that data retrieval be... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "Let us understand what table, view and synonym in the structured query language (SQL) are."
},
{
"code": null,
"e": 1274,
"s": 1153,
"text": "A table is a repository of data, where in the table it is a physical entity. A table reside... |
WebSockets - Functionalities | Web Socket represents a major upgrade in the history of web communications. Before its existence, all communication between the web clients and the servers relied only on HTTP.
Web Socket helps in dynamic flow of the connections that are persistent full duplex. Full duplex refers to the communication from both the ends... | [
{
"code": null,
"e": 2296,
"s": 2119,
"text": "Web Socket represents a major upgrade in the history of web communications. Before its existence, all communication between the web clients and the servers relied only on HTTP."
},
{
"code": null,
"e": 2470,
"s": 2296,
"text": "Web S... |
Regularization in R Programming - GeeksforGeeks | 23 Dec, 2021
Regularization is a form of regression technique that shrinks or regularizes or constraints the coefficient estimates towards 0 (or zero). In this technique, a penalty is added to the various parameters of the model in order to reduce the freedom of the given model. The concept of Regularization can be bro... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n23 Dec, 2021"
},
{
"code": null,
"e": 25180,
"s": 24851,
"text": "Regularization is a form of regression technique that shrinks or regularizes or constraints the coefficient estimates towards 0 (or zero). In this technique, a pen... |
ES6 - Array Method splice() | splice() method changes the content of an array, adding new elements while removing old elements.
array.splice(index, howMany, [element1][, ..., elementN]);
index − Index at which to start changing the array.
index − Index at which to start changing the array.
howMany − An integer indicating the number of old arr... | [
{
"code": null,
"e": 2375,
"s": 2277,
"text": "splice() method changes the content of an array, adding new elements while removing old elements."
},
{
"code": null,
"e": 2440,
"s": 2375,
"text": "array.splice(index, howMany, [element1][, ..., elementN]); \n"
},
{
"cod... |
How to get away with few Labels: Label Propagation | by Dr. Robert Kübler | Towards Data Science | A classic task for us data scientists is building a classification model for some problem. In a perfect world, data samples — including their corresponding labels — are handed to us on a silver plate. We then do our machine learning tricks and mathemagic to come to some useful insights that we derived from the data. So... | [
{
"code": null,
"e": 506,
"s": 172,
"text": "A classic task for us data scientists is building a classification model for some problem. In a perfect world, data samples — including their corresponding labels — are handed to us on a silver plate. We then do our machine learning tricks and mathemagic ... |
ML basics: Loan prediction. The complete Data Science pipeline on a... | by Tariq Massaoudi | Towards Data Science | Dream Housing Finance company deals in all home loans. They have presence across all urban, semi urban and rural areas. Customer first apply for home loan after that company validates the customer eligibility for loan.
The Company wants to automate the loan eligibility process (real time) based on customer detail provi... | [
{
"code": null,
"e": 390,
"s": 171,
"text": "Dream Housing Finance company deals in all home loans. They have presence across all urban, semi urban and rural areas. Customer first apply for home loan after that company validates the customer eligibility for loan."
},
{
"code": null,
"e":... |
Visualizing protein interaction networks in Python | by Ford Combs | Towards Data Science | Protein interaction data is incredibly important. It describes the interplay between the biomolecules encoded by genes. It allows us to understand the complexities of cellular function and even predict potential therapeutics. There are many databases that contain protein interaction data, but STRING is one of the best.... | [
{
"code": null,
"e": 838,
"s": 172,
"text": "Protein interaction data is incredibly important. It describes the interplay between the biomolecules encoded by genes. It allows us to understand the complexities of cellular function and even predict potential therapeutics. There are many databases that... |
Impala - Alter Table | The Alter table statement in Impala is used to perform changes on a given table. Using this statement, we can add, delete, or modify columns in an existing table and we can also rename it.
This Chapter explains various types of alter statements with syntax and examples. First of all assume that we have a table named cu... | [
{
"code": null,
"e": 2474,
"s": 2285,
"text": "The Alter table statement in Impala is used to perform changes on a given table. Using this statement, we can add, delete, or modify columns in an existing table and we can also rename it."
},
{
"code": null,
"e": 2670,
"s": 2474,
"t... |
BigDecimal toString() Method in Java with Examples - GeeksforGeeks | 05 Apr, 2019
The java.math.BigDecimal.toString() method is used to represent the current BigDecimal by which this method is called into String form, using scientific notation if an exponent is needed. It is done by following steps:
A standard canonical string form of the BigDecimal is created by converting the absolute... | [
{
"code": null,
"e": 24015,
"s": 23987,
"text": "\n05 Apr, 2019"
},
{
"code": null,
"e": 24234,
"s": 24015,
"text": "The java.math.BigDecimal.toString() method is used to represent the current BigDecimal by which this method is called into String form, using scientific notation i... |
Beginner’s Guide to Building Neural Networks in TensorFlow | by Evan Heitman | Towards Data Science | If you’re reading this you’ve probably had some exposure to neural networks and TensorFlow, but you might feel somewhat daunted by the various terms associated with deep learning that are often glossed over or left unexplained in many introductions to the technology. This article will shine a light on some of these top... | [
{
"code": null,
"e": 567,
"s": 171,
"text": "If you’re reading this you’ve probably had some exposure to neural networks and TensorFlow, but you might feel somewhat daunted by the various terms associated with deep learning that are often glossed over or left unexplained in many introductions to the... |
How to convert decimal to hexadecimal in JavaScript? | The number class has a toString method that accepts base as argument. We can pass base 16(hex numbers) to get the desired number converted to hexadecimal string.
console.log(Number(255).toString(16))
console.log(Number(17).toString(16))
ff
11
We can convert these numbers back to decimal using the parseInt function. The... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "The number class has a toString method that accepts base as argument. We can pass base 16(hex numbers) to get the desired number converted to hexadecimal string."
},
{
"code": null,
"e": 1299,
"s": 1224,
"text": "console.log(Number(2... |
Python – Create a string made of the first and last two characters from a given string | 12 Nov, 2020
Here we are going to see the approach of forming a string made from the first and last 2 characters of a given string.
Input: Geeksforgeeks
Output: Geks
Input: Hi, There
Output: Hire
Method #1: Using list slicing
In this example, we are going to loop through the string and store the length of the string ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Nov, 2020"
},
{
"code": null,
"e": 147,
"s": 28,
"text": "Here we are going to see the approach of forming a string made from the first and last 2 characters of a given string."
},
{
"code": null,
"e": 213,
"s": 147,
... |
XSSCon – Simple and Powerful XSS Scanner tool | 28 Jul, 2021
XSSCon tool is a Python-based tool that features a powerful XSS (Cross-Site Scripting) Scanner. XSS is the most common vulnerability, which is identified on almost every web-based application; you only have to find an input field where you can inject your malicious payload. Automation can reduce your manua... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 601,
"s": 28,
"text": "XSSCon tool is a Python-based tool that features a powerful XSS (Cross-Site Scripting) Scanner. XSS is the most common vulnerability, which is identified on almost every web-b... |
MySQL | CAST( ) Function | 25 Nov, 2019
The MySQL CAST() function is used for converting a value from one datatype to another specific datatype. The CAST() function accepts two parameters which are the value to be converted and the datatype to which the value needs to be converted.
The datatypes in which a given value can be converted are:
DATE ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Nov, 2019"
},
{
"code": null,
"e": 271,
"s": 28,
"text": "The MySQL CAST() function is used for converting a value from one datatype to another specific datatype. The CAST() function accepts two parameters which are the value to be c... |
Python | Pandas Split strings into two List/Columns using str.split() | 07 May, 2019
Pandas provide a method to split string around a passed separator/delimiter. After that, the string can be stored as a list in a series or it can also be used to create multiple column data frames from a single separated string.
It works similarly to the Python’s default split() method but it can only be a... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 May, 2019"
},
{
"code": null,
"e": 282,
"s": 53,
"text": "Pandas provide a method to split string around a passed separator/delimiter. After that, the string can be stored as a list in a series or it can also be used to create multi... |
File createNewFile() method in Java with Examples | 12 May, 2020
The createNewFile() function is a part of File class in Java . This function creates new empty file. The function returns true if the abstract file path does not exist and a new file is created. It returns false if the filename already exists.
Function signature:
public boolean createNewFile()
Syntax:
bool... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 May, 2020"
},
{
"code": null,
"e": 272,
"s": 28,
"text": "The createNewFile() function is a part of File class in Java . This function creates new empty file. The function returns true if the abstract file path does not exist and a n... |
Upload and Download files from Google Drive storage using Python | 26 Nov, 2020
In this article, we are going to see how can we download files from our Google Drive to our PC and upload files from our PC to Google Drive using its API in Python. It is a REST API that allows you to leverage Google Drive storage from within your app or program. So, let’s go ahead and write a Python scrip... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 373,
"s": 52,
"text": "In this article, we are going to see how can we download files from our Google Drive to our PC and upload files from our PC to Google Drive using its API in Python. It is a R... |
Gerrit - Make & Commit Your Change | When you modify the code in the local file system, you can check for the changes within the directory using the following command.
$ git diff
In the project directory, we will modify some changes in the file called Example/Example.hooks.php and run the above command. We will get the result as shown in the following sc... | [
{
"code": null,
"e": 2369,
"s": 2238,
"text": "When you modify the code in the local file system, you can check for the changes within the directory using the following command."
},
{
"code": null,
"e": 2381,
"s": 2369,
"text": "$ git diff\n"
},
{
"code": null,
"e": 2... |
Apache Derby - Drop Table | The DROP TABLE statement is used to remove an existing table including all its triggers, constraints, permissions.
Following is the Syntax of the DROP TABLE statement.
ij> DROP TABLE table_name;
Suppose you have a table named Student in the database. The following SQL statement deletes a table named Student.
ij> DROP ... | [
{
"code": null,
"e": 2295,
"s": 2180,
"text": "The DROP TABLE statement is used to remove an existing table including all its triggers, constraints, permissions."
},
{
"code": null,
"e": 2348,
"s": 2295,
"text": "Following is the Syntax of the DROP TABLE statement."
},
{
... |
ConcurrentLinkedDeque in Java with Examples - GeeksforGeeks | 16 Sep, 2020
The ConcurrentLinkedDeque class in Java is a part of the Java Collection Framework and implements the Collection interface and the AbstractCollection class. It belongs to java.util.concurrent package. It is used to implement Deque with the help of LinkedList concurrently.
Features of ConcurrentLinkedDeque
... | [
{
"code": null,
"e": 24332,
"s": 24304,
"text": "\n16 Sep, 2020"
},
{
"code": null,
"e": 24605,
"s": 24332,
"text": "The ConcurrentLinkedDeque class in Java is a part of the Java Collection Framework and implements the Collection interface and the AbstractCollection class. It bel... |
A Flask Full of Whiskey (WSGI). Serving up python web applications has... | by Ashok Chilakapati | Towards Data Science | Serving up python web applications has never been easier with the suite of WSGI servers currently at our disposal. Both uWSGI and gunicorn behind Nginx are excellent performers for serving up a Flask app...
Yup, what more could you ask for in life right? There are a number of varieties too, to suit one’s preference. Jo... | [
{
"code": null,
"e": 379,
"s": 172,
"text": "Serving up python web applications has never been easier with the suite of WSGI servers currently at our disposal. Both uWSGI and gunicorn behind Nginx are excellent performers for serving up a Flask app..."
},
{
"code": null,
"e": 688,
"s... |
Print all LCS sequences | Practice | GeeksforGeeks | You are given two strings s and t. Now your task is to print all longest common sub-sequences in lexicographical order.
Example 1:
Input: s = abaaa, t = baabaca
Output: aaaa abaa baaa
Example 2:
Input: s = aaa, t = a
Output: a
Your Task:
You do not need to read or print anything. Your task is to complete the function... | [
{
"code": null,
"e": 358,
"s": 238,
"text": "You are given two strings s and t. Now your task is to print all longest common sub-sequences in lexicographical order."
},
{
"code": null,
"e": 369,
"s": 358,
"text": "Example 1:"
},
{
"code": null,
"e": 423,
"s": 369,... |
Dart Programming - Calling a Function | A function must be called to execute it. This process is termed as function invocation.
function_name()
The following example illustrates how a function can be invoked −
void main() {
test();
}
test() {
//function definition
print("function called");
}
It will produce the following output −
function c... | [
{
"code": null,
"e": 2613,
"s": 2525,
"text": "A function must be called to execute it. This process is termed as function invocation."
},
{
"code": null,
"e": 2630,
"s": 2613,
"text": "function_name()\n"
},
{
"code": null,
"e": 2696,
"s": 2630,
"text": "The f... |
How to Create Expandable RecyclerView items in Android using Kotlin? - GeeksforGeeks | 24 Mar, 2021
RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 support packages. It has been created to make possible construction of any lists with XML layouts as an item that can be customized v... | [
{
"code": null,
"e": 25188,
"s": 25157,
"text": " \n24 Mar, 2021\n"
},
{
"code": null,
"e": 26050,
"s": 25188,
"text": "RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in th... |
What is the difference between Declaring and Initializing a variable in JavaScript? | The following is stated about declaration and initialization of a variable in ECMAScript specification −
A var statement declares variables that are scoped to the running execution context’s VariableEnvironment. Var variables are created when their containing Lexical Environment is instantiated and are initialized to u... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "The following is stated about declaration and initialization of a variable in ECMAScript specification −"
},
{
"code": null,
"e": 1615,
"s": 1167,
"text": "A var statement declares variables that are scoped to the running execution c... |
How to set default value for empty row in MySQL? | To set default value for empty row, use the concept of COALESCE(). Let us first create a table −
mysql> create table DemoTable1863
(
FirstName varchar(20)
);
Query OK, 0 rows affected (0.00 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1863 values('Chris');
Quer... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "To set default value for empty row, use the concept of COALESCE(). Let us first create a table −"
},
{
"code": null,
"e": 1272,
"s": 1159,
"text": "mysql> create table DemoTable1863\n (\n FirstName varchar(20)\n );\nQuery... |
Node.js fs.promise.readdir() Method | 08 Oct, 2021
The fs.promise.readdir() method defined in the File System module of Node.js. The file System module is basically to interact with the hard disk of the users computer. The readdir() method is used to read the files and folders names. The fs.promise.readdir() method returns a resolved or rejected promise an... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 435,
"s": 28,
"text": "The fs.promise.readdir() method defined in the File System module of Node.js. The file System module is basically to interact with the hard disk of the users computer. The rea... |
What is the inline function in JavaScript ? | 16 Jun, 2022
In JavaScript, inline function is a special type of anonymous function which is assigned to a variable, or in other words, an anonymous function with a name. JavaScript does not support the traditional concept of inline function like in C or C++. Thus anonymous function and inline function is practically t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 421,
"s": 52,
"text": "In JavaScript, inline function is a special type of anonymous function which is assigned to a variable, or in other words, an anonymous function with a name. JavaScript does ... |
UTC_TIMESTAMP() function in MySQL | 13 Oct, 2020
UTC_TIMESTAMP() function in MySQL is used to check current Coordinated Universal Time (UTC) date and time value. It returns the current UTC date and time value in YYYY-MM-DD HH:MM:SS or YYYYMMDDHHMMSS.uuu format, depending on whether the function is used in string or numeric context.
Syntax :
UTC_TIMESTAMP... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Oct, 2020"
},
{
"code": null,
"e": 313,
"s": 28,
"text": "UTC_TIMESTAMP() function in MySQL is used to check current Coordinated Universal Time (UTC) date and time value. It returns the current UTC date and time value in YYYY-MM-DD H... |
JavaScript | Auto-filling one field same as other | 18 Nov, 2020
(This article takes some prior knowledge of HTML, CSS, and JavaScript.)You might have noticed that sometimes websites like e-commerce or some government website have two address fields in their forms. One for primary address and another for secondary address(or one for billing address and another for shipp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Nov, 2020"
},
{
"code": null,
"e": 1000,
"s": 28,
"text": "(This article takes some prior knowledge of HTML, CSS, and JavaScript.)You might have noticed that sometimes websites like e-commerce or some government website have two addr... |
Java Program for Merge Sort for Linked Lists | 21 Oct, 2021
Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes some other algorithms (such as quicksort) perform poorly, and others (such as heapsort) completely impossible.
Let head be the first node of the linked list to be sorted and headRef be the poi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 278,
"s": 52,
"text": "Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes some other algorithms (such as quicksort) perform poorly, a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.