title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Floating Action Button using Fab Option Library in Android - GeeksforGeeks
19 Feb, 2021 Floating Action Button using Fab Options is another unique way of displaying various options. With the help of this, we can Navigate to different screens easily. This Floating Action button display various menu with Animation. So it increases user experience. In this article, we are going to learn how to i...
[ { "code": null, "e": 25116, "s": 25088, "text": "\n19 Feb, 2021" }, { "code": null, "e": 25657, "s": 25116, "text": "Floating Action Button using Fab Options is another unique way of displaying various options. With the help of this, we can Navigate to different screens easily. T...
D3.js selection.classed() Function - GeeksforGeeks
06 Sep, 2020 The selection.classed() function is used to set the class to the selected element. This function can also be used to unset the class to a particular element that is selected. Syntax: selection.classed(names[, value]); Parameters: The above-given function takes two parameters which are given above and desc...
[ { "code": null, "e": 24598, "s": 24570, "text": "\n06 Sep, 2020" }, { "code": null, "e": 24773, "s": 24598, "text": "The selection.classed() function is used to set the class to the selected element. This function can also be used to unset the class to a particular element that i...
Building a Question and Answer Chatbot with Amazon Kendra and AWS Fargate | by Yi Ai | Towards Data Science
Amazon announced the general availability of Amazon Kendra a few weeks ago, Kendra is a highly accurate and easy to use enterprise search service powered by machine learning. In this post I will build a question and answer chatbot solution using React with Amplify, WebSocket API in AWS API Gateway, AWS Fargate and Amaz...
[ { "code": null, "e": 222, "s": 47, "text": "Amazon announced the general availability of Amazon Kendra a few weeks ago, Kendra is a highly accurate and easy to use enterprise search service powered by machine learning." }, { "code": null, "e": 378, "s": 222, "text": "In this post...
Logical and Cartesian Indexing in Julia
22 Apr, 2020 Julia, like most technical computing languages, provides a first-class array implementation with very important functions that make working with N-Dimensional arrays quite easy. One of the latest features, the dot(.) based broadcasting makes most of the “repetitive” array operations, a one-lined code. Inde...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 331, "s": 28, "text": "Julia, like most technical computing languages, provides a first-class array implementation with very important functions that make working with N-Dimensional arrays quite eas...
Python program to find the highest 3 values in a dictionary
25 Aug, 2021 Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element, Dictionary holds key:value pair. Examples: Input : my_dict = {'A': 67, 'B': 23, 'C': 45, 'D': 56, 'E': 12, 'F': ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Aug, 2021" }, { "code": null, "e": 260, "s": 52, "text": "Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element,...
C# Program to Get and Print the Command Line Arguments Using Environment Class
01 Nov, 2021 In C#, Environment Class provides information about the current platform and manipulates, the current platform. It is useful for getting and setting various operating system-related information. We can use it in such a way that it retrieves command-line arguments information, exit codes information, enviro...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Nov, 2021" }, { "code": null, "e": 856, "s": 28, "text": "In C#, Environment Class provides information about the current platform and manipulates, the current platform. It is useful for getting and setting various operating system-r...
Given a matrix of ‘O’ and ‘X’, find the largest subsquare surrounded by ‘X’
24 Jun, 2022 Given a matrix where every element is either ‘O’ or ‘X’, find the largest subsquare surrounded by ‘X’. In the below article, it is assumed that the given matrix is also a square matrix. The code given below can be easily extended for rectangular matrices. Examples: Input: mat[N][N] = { {'X', 'O', 'X', 'X'...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 308, "s": 52, "text": "Given a matrix where every element is either ‘O’ or ‘X’, find the largest subsquare surrounded by ‘X’. In the below article, it is assumed that the given matrix is also a squ...
How to create content area scrollable instead of the page using CSS ?
14 Dec, 2020 Making a particular content area scrollable is done by using CSS overflow property. There are different values in overflow property that are listed below. visible: The property indicates that it can be rendered outside the block box and it is not clipped. hidden: This property indicates that the overflow ...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Dec, 2020" }, { "code": null, "e": 208, "s": 52, "text": "Making a particular content area scrollable is done by using CSS overflow property. There are different values in overflow property that are listed below. " }, { "cod...
VBScript Split Function
A Split Function returns an array that contains a specific number of values split based on a Delimiter. Split(expression[,delimiter[,count[,compare]]]) expression, a Required parameter. The String Expression that can contain strings with delimiters. expression, a Required parameter. The String Expression that can con...
[ { "code": null, "e": 2318, "s": 2214, "text": "A Split Function returns an array that contains a specific number of values split based on a Delimiter." }, { "code": null, "e": 2368, "s": 2318, "text": "Split(expression[,delimiter[,count[,compare]]]) \n" }, { "code": null,...
Java.io.ObjectStreamClass in Java
29 Apr, 2022 This class is serialization’s descriptor for classes. It contains the name and serialVersionUID of the class. The ObjectStreamClass for a specific class loaded in this Java VM can be found/created using the lookup method. It extends class Object and implement serialisable. Fields: static ObjectStreamField[...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Apr, 2022" }, { "code": null, "e": 460, "s": 54, "text": "This class is serialization’s descriptor for classes. It contains the name and serialVersionUID of the class. The ObjectStreamClass for a specific class loaded in this Java V...
C# | Difference between Static Constructors and Non-Static Constructors
10 Feb, 2022 Static constructors are used to initialize the static members of the class and are implicitly called before the creation of the first instance of the class. Non-static constructors are used to initialize the non-static members of the class. Below are the differences between the Static Constructors and Non-...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Feb, 2022" }, { "code": null, "e": 380, "s": 52, "text": "Static constructors are used to initialize the static members of the class and are implicitly called before the creation of the first instance of the class. Non-static constr...
File.ReadAllBytes() Method in C# with Examples
09 Mar, 2021 File.ReadAllBytes(String) is an inbuilt File class method that is used to open a specified or created binary file and then reads the contents of the file into a byte array and then closes the file.Syntax: public static byte[] ReadAllBytes (string path); Parameter: This function accepts a parameter which ...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Mar, 2021" }, { "code": null, "e": 235, "s": 28, "text": "File.ReadAllBytes(String) is an inbuilt File class method that is used to open a specified or created binary file and then reads the contents of the file into a byte array and...
Count BST nodes that lie in a given range | Practice | GeeksforGeeks
Given a Binary Search Tree (BST) and a range l-h(inclusive), count the number of nodes in the BST that lie in the given range. The values smaller than root go to the left side The values greater and equal to the root go to the right side Example 1: Input: 10 / \ 5 50 / / \ 1 40 100 l = ...
[ { "code": null, "e": 366, "s": 238, "text": "Given a Binary Search Tree (BST) and a range l-h(inclusive), count the number of nodes in the BST that lie in the given range. " }, { "code": null, "e": 415, "s": 366, "text": "The values smaller than root go to the left side" }, {...
Neo4j - Unwind Clause
The unwind clause is used to unwind a list into a sequence of rows. Following is a sample Cypher Query which unwinds a list. UNWIND [a, b, c, d] AS x RETURN x To execute the above query, carry out the following steps − Step 1 − Open the Neo4j desktop App and start the Neo4j Server. Open the built-in browser app of Ne...
[ { "code": null, "e": 2407, "s": 2339, "text": "The unwind clause is used to unwind a list into a sequence of rows." }, { "code": null, "e": 2464, "s": 2407, "text": "Following is a sample Cypher Query which unwinds a list." }, { "code": null, "e": 2500, "s": 2464,...
Intuitive Understanding of Randomized Singular Value Decomposition | by Xinyu Chen (陈新宇) | Towards Data Science
Matrix decomposition is a powerful tool for many machine learning problems and which has been widely used in data compression, dimensionality reduction, and sparsity learning, to name but a few. In many cases, for purposes of approximating a data matrix by a low-rank structure, Singular Value Decomposition (SVD) is oft...
[ { "code": null, "e": 924, "s": 171, "text": "Matrix decomposition is a powerful tool for many machine learning problems and which has been widely used in data compression, dimensionality reduction, and sparsity learning, to name but a few. In many cases, for purposes of approximating a data matrix b...
Difference between HTML and CSS - GeeksforGeeks
28 Jul, 2020 HTMLHTML stands for Hyper Text Markup Language and it is the language which is used to define the structure of a web page. HTML is used along with CSS and Java script to design web pages. HTML is the basic building block of a website. It has different attributes and elements with different properties.Each ...
[ { "code": null, "e": 31761, "s": 31733, "text": "\n28 Jul, 2020" }, { "code": null, "e": 32231, "s": 31761, "text": "HTMLHTML stands for Hyper Text Markup Language and it is the language which is used to define the structure of a web page. HTML is used along with CSS and Java scr...
Graph Theory | BFS Shortest Path Problem on a Grid | by Kelvin Jose | Towards Data Science
Hi all, welcome back to another post of my brand new series on Graph Theory named Graph Theory: Go Hero. I undoubtedly recommend the complete series, if you are planning to get started with or want to have a quick refresher. We’re going to see how we can use Breadth First Search (BFS) to solve a shortest path problem. ...
[ { "code": null, "e": 571, "s": 172, "text": "Hi all, welcome back to another post of my brand new series on Graph Theory named Graph Theory: Go Hero. I undoubtedly recommend the complete series, if you are planning to get started with or want to have a quick refresher. We’re going to see how we can ...
Checking the Given Indexes are Equal or not in C# - GeeksforGeeks
28 Nov, 2019 The Index Structure is introduced in C# 8.0. It represents a type that can be used to index a collection or sequence and it can be started from the start or the end. You are allowed to compare two indexes with each to check whether they are equal or not with the help of the following methods(Equal Method) ...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n28 Nov, 2019" }, { "code": null, "e": 24639, "s": 24302, "text": "The Index Structure is introduced in C# 8.0. It represents a type that can be used to index a collection or sequence and it can be started from the start or the en...
Eigenvalues, eigenvectors and PCA | Towards Data Science
I have learned about eigenvalues and eigenvectors in University in a linear algebra course. It was very dry and mathematical, so I did not get, what it is all about. But I want to present this topic to you in a more intuitive way and I will use many animations to illustrate it. First, we will look at how applying a mat...
[ { "code": null, "e": 451, "s": 172, "text": "I have learned about eigenvalues and eigenvectors in University in a linear algebra course. It was very dry and mathematical, so I did not get, what it is all about. But I want to present this topic to you in a more intuitive way and I will use many anima...
C# - Anonymous Methods
We discussed that delegates are used to reference any methods that has the same signature as that of the delegate. In other words, you can call a method that can be referenced by a delegate using that delegate object. Anonymous methods provide a technique to pass a code block as a delegate parameter. Anonymous methods ...
[ { "code": null, "e": 2488, "s": 2270, "text": "We discussed that delegates are used to reference any methods that has the same signature as that of the delegate. In other words, you can call a method that can be referenced by a delegate using that delegate object." }, { "code": null, "e"...
How to resolve ‘node’ is not recognized as an internal or external command error after installing Node.js ?
10 Jul, 2020 There are many different ways to install node.js on a computer. The simplest method to verify whether node.js has been properly installed in your computer is simply type node-v in the command prompt or Windows PowerShell. But many times, it happens, most commonly if you’re a beginner, the command prompt pr...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jul, 2020" }, { "code": null, "e": 250, "s": 28, "text": "There are many different ways to install node.js on a computer. The simplest method to verify whether node.js has been properly installed in your computer is simply type node-...
mkdir command in Linux with Examples
08 Sep, 2021 mkdir command in Linux allows the user to create directories (also referred to as folders in some operating systems ). This command can create multiple directories at once as well as set the permissions for the directories. It is important to note that the user executing this command must have enough permi...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2021" }, { "code": null, "e": 441, "s": 28, "text": "mkdir command in Linux allows the user to create directories (also referred to as folders in some operating systems ). This command can create multiple directories at once as ...
How to add an element horizontally in Html page using JavaScript?
26 Oct, 2021 There can be some cases where we have the requirement to add elements in a horizontal manner. Like, if your elements are linked list nodes and you want to add them horizontally. Now the question arises how we can do this in better way.One approach can be to use “display” property with the value “inline gri...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Oct, 2021" }, { "code": null, "e": 596, "s": 28, "text": "There can be some cases where we have the requirement to add elements in a horizontal manner. Like, if your elements are linked list nodes and you want to add them horizontall...
How to read multiple data files into Pandas?
23 Aug, 2021 In this article, we are going to see how to read multiple data files into pandas, data files are of multiple types, here are a few ways to read multiple files by using the pandas package in python. The demonstrative files can be download from here If our data files are in CSV format then the read_csv() met...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 226, "s": 28, "text": "In this article, we are going to see how to read multiple data files into pandas, data files are of multiple types, here are a few ways to read multiple files by using the pan...
Split Pandas Dataframe by Column Index
29 Aug, 2020 Pandas support two data structures for storing data the series (single column) and dataframe where values are stored in a 2D table (rows and columns). To index a dataframe using the index we need to make use of dataframe.iloc() method which takes Syntax: pandas.DataFrame.iloc[] Parameters:Index Positio...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Aug, 2020" }, { "code": null, "e": 303, "s": 52, "text": "Pandas support two data structures for storing data the series (single column) and dataframe where values are stored in a 2D table (rows and columns). To index a dataframe...
C# - Passing Parameters by Value
This is the default mechanism for passing parameters to a method. In this mechanism, when a method is called, a new storage location is created for each value parameter. The values of the actual parameters are copied into them. Hence, the changes made to the parameter inside the method have no effect on the argument. T...
[ { "code": null, "e": 2440, "s": 2270, "text": "This is the default mechanism for passing parameters to a method. In this mechanism, when a method is called, a new storage location is created for each value parameter." }, { "code": null, "e": 2638, "s": 2440, "text": "The values o...
Variable number of arguments in C++
Sometimes, you may come across a situation, when you want to have a function, which can take variable number of arguments, i.e., parameters, instead of predefined number of parameters. The C/C++ programming language provides a solution for this situation and you are allowed to define a function which can accept variabl...
[ { "code": null, "e": 1495, "s": 1062, "text": "Sometimes, you may come across a situation, when you want to have a function, which can take variable number of arguments, i.e., parameters, instead of predefined number of parameters. The C/C++ programming language provides a solution for this situatio...
Looping through the content of a file in Bash
Often it is a requirement to read each of the line from a file using a bash script. There are various approaches to read the lines form a file. In the below example we have first described how to create a sample file and then run a script reading that sample file. # Open vi Editor vi a_file.txt # Input the below lines ...
[ { "code": null, "e": 1327, "s": 1062, "text": "Often it is a requirement to read each of the line from a file using a bash script. There are various approaches to read the lines form a file. In the below example we have first described how to create a sample file and then run a script reading that s...
How to create everyday notifications at certain time in Android?
This example demonstrate about How to create everyday notifications at certain time in Android Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <? xml version = "1.0" encoding...
[ { "code": null, "e": 1157, "s": 1062, "text": "This example demonstrate about How to create everyday notifications at certain time in Android" }, { "code": null, "e": 1286, "s": 1157, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all ...
How to get the list of local groups using PowerShell?
To get the local groups on the windows system using PowerShell, you can use the Get-LocalGroup (Module: Microsoft.PowerShell.LocalAccounts) command. This command will list down all the groups on the particular system. If we check the properties of this command, it supports Name, Description, ObjectClass (user or group)...
[ { "code": null, "e": 1280, "s": 1062, "text": "To get the local groups on the windows system using PowerShell, you can use the Get-LocalGroup (Module: Microsoft.PowerShell.LocalAccounts) command. This command will list down all the groups on the particular system." }, { "code": null, "e"...
How to remove the outline of an oval in Tkinter?
With Tkinter canvas, we can draw shapes for 2D or 3D applications, we can create images, draw animation, and many more things. Let us suppose that we have to create an oval that should be drawn aesthetically on the canvas. There can be other features that can be present to give the oval and other shapes an aesthetic lo...
[ { "code": null, "e": 1510, "s": 1062, "text": "With Tkinter canvas, we can draw shapes for 2D or 3D applications, we can create images, draw animation, and many more things. Let us suppose that we have to create an oval that should be drawn aesthetically on the canvas. There can be other features th...
Create DataFrame Row by Row in R - GeeksforGeeks
27 Jun, 2021 In this article, we will discuss how to create dataframe row by row in R Programming Language. An empty data frame in R language can be created using the data.frame() method in R. For better clarity, the data types of the columns can be defined during the declaration. Each row of the data frame is a vector...
[ { "code": null, "e": 24618, "s": 24590, "text": "\n27 Jun, 2021" }, { "code": null, "e": 24713, "s": 24618, "text": "In this article, we will discuss how to create dataframe row by row in R Programming Language." }, { "code": null, "e": 25047, "s": 24713, "tex...
Program to calculate value of nCr in C++
Given with n C r, where C represents combination, n represents total numbers and r represents selection from the set, the task is to calculate the value of nCr. Combination is the selection of data from the given in a without the concern of arrangement. Permutation and combination differs in the sense that permutation ...
[ { "code": null, "e": 1223, "s": 1062, "text": "Given with n C r, where C represents combination, n represents total numbers and r represents selection from the set, the task is to calculate the value of nCr." }, { "code": null, "e": 1490, "s": 1223, "text": "Combination is the se...
JSF - h:outputStylesheet
The h:outputStylesheet tag renders an HTML element of the type "link" with type "text/css". This tag is used to add external stylesheet file to JSF page. <h:outputStylesheet library = "css" name = "styles.css" /> <link type = "text/css" rel = "stylesheet" href = "/helloworld/javax.faces.resource/styles.css.jsf?ln...
[ { "code": null, "e": 2106, "s": 1952, "text": "The h:outputStylesheet tag renders an HTML element of the type \"link\" with type \"text/css\". This tag is used to add external stylesheet file to JSF page." }, { "code": null, "e": 2166, "s": 2106, "text": "<h:outputStylesheet libr...
Real-time and video processing object detection using Tensorflow, OpenCV and Docker. | by Léo Beaucourt | Towards Data Science
In this article, I will present how I managed to use Tensorflow Object-detection API in a Docker container to perform both real-time (webcam) and video post-processing. I used OpenCV with python3 multiprocessing and multi-threading libraries. I will focus on hurdles I have encountered, and what solutions I have found (...
[ { "code": null, "e": 290, "s": 47, "text": "In this article, I will present how I managed to use Tensorflow Object-detection API in a Docker container to perform both real-time (webcam) and video post-processing. I used OpenCV with python3 multiprocessing and multi-threading libraries." }, { ...
How to find the size of a variable without using sizeof in C#?
To get the size of a variable, sizeof is used. int x; x = sizeof(int); To get the size of a variable, without using the sizeof, try the following code − // without using sizeof byte[] dataBytes = BitConverter.GetBytes(x); int d = dataBytes.Length; Here is the complete code. Live Demo using System; class Demo { publ...
[ { "code": null, "e": 1109, "s": 1062, "text": "To get the size of a variable, sizeof is used." }, { "code": null, "e": 1133, "s": 1109, "text": "int x;\nx = sizeof(int);" }, { "code": null, "e": 1215, "s": 1133, "text": "To get the size of a variable, without ...
Function pointer to member function in C++
In C++ , function pointers when dealing with member functions of classes or structs, it is invoked using an object pointer or a this call. We can only call members of that class (or derivatives) using a pointer of that type as they are type safe. Live Demo #include <iostream> using namespace std; class AB { public:...
[ { "code": null, "e": 1309, "s": 1062, "text": "In C++ , function pointers when dealing with member functions of classes or structs, it is invoked using an object pointer or a this call. We can only call members of that class (or derivatives) using a pointer of that type as they are type safe." }, ...
How to train a Tensorflow face object detection model | by Dion van Velde | Towards Data Science
Artificial Intelligence makes it possible to analyse images. In this blogpost I will focus on training a object detector with customized classes. The first thing you will have to do is the setup. In the Tensorflow documentation is written how to setup on your local machine. We are going to train a real-time object reco...
[ { "code": null, "e": 599, "s": 172, "text": "Artificial Intelligence makes it possible to analyse images. In this blogpost I will focus on training a object detector with customized classes. The first thing you will have to do is the setup. In the Tensorflow documentation is written how to setup on ...
How to print date using GregorianCalendar class in Java?
The GregorianCalendar class supports standard calendars it supports Julian and Gregorian calendars you can create an object of GregorianCalendar using one of its constructors. Following are various examples demonstrating how to print date using this class − Following example creates GregorianCalander by passing year, m...
[ { "code": null, "e": 1320, "s": 1062, "text": "The GregorianCalendar class supports standard calendars it supports Julian and Gregorian calendars you can create an object of GregorianCalendar using one of its constructors. Following are various examples demonstrating how to print date using this cla...
Can interfaces have Static methods in Java?
An interface in Java is similar to class but, it contains only abstract methods and fields which are final and static. A static method is declared using the static keyword and it will be loaded into the memory along with the class. You can access static methods using class name without instantiation. Since Java8 you ca...
[ { "code": null, "e": 1181, "s": 1062, "text": "An interface in Java is similar to class but, it contains only abstract methods and fields which are final and static." }, { "code": null, "e": 1364, "s": 1181, "text": "A static method is declared using the static keyword and it wil...
MongoEngine - Document Inheritance
It is possible to define an inherited class of any user defined Document class. The inherited class may add extra fields if required. However, since such as a class is not a direct subclass of Document class, it will not create a new collection, instead its objects are stored in a collection used by its parent class. I...
[ { "code": null, "e": 2948, "s": 2310, "text": "It is possible to define an inherited class of any user defined Document class. The inherited class may add extra fields if required. However, since such as a class is not a direct subclass of Document class, it will not create a new collection, instead...
Conversion of four-digit hex to ASCII in 8051
We have already seen how to convert Hexadecimal digit to its ASCII equivalent. In this section, we will see how to convert two-byte (4-digit) Hexadecimal number to ASCII. Each nibble of these numbers is converted to its ASCII value. We are using one subroutine to convert a hexadecimal digit to ASCII. In this program, w...
[ { "code": null, "e": 1295, "s": 1062, "text": "We have already seen how to convert Hexadecimal digit to its ASCII equivalent. In this section, we will see how to convert two-byte (4-digit) Hexadecimal number to ASCII. Each nibble of these numbers is converted to its ASCII value." }, { "code"...
How to check cursor array list is empty or not in Android sqlite?
Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you d...
[ { "code": null, "e": 1457, "s": 1062, "text": "Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the re...
SQL | BETWEEN & IN Operator - GeeksforGeeks
11 Jan, 2022 BETWEEN The SQL BETWEEN condition allows you to easily test if an expression is within a range of values (inclusive). The values can be text, date, or numbers. It can be used in a SELECT, INSERT, UPDATE, or DELETE statement. The SQL BETWEEN Condition will return the records where expression is within the r...
[ { "code": null, "e": 23852, "s": 23824, "text": "\n11 Jan, 2022" }, { "code": null, "e": 23860, "s": 23852, "text": "BETWEEN" }, { "code": null, "e": 24187, "s": 23860, "text": "The SQL BETWEEN condition allows you to easily test if an expression is within a r...
How to display multiple lines of text in Tkinter Label?
Tkinter Label widgets are created by defining the Label(parent, **options) constructor in the program. We use the Label widget to display Text or Images in any application. If we want to display a text, we have to assign a value to the text attribute in the constructor. You can also add multiple lines of text in the la...
[ { "code": null, "e": 1498, "s": 1062, "text": "Tkinter Label widgets are created by defining the Label(parent, **options) constructor in the program. We use the Label widget to display Text or Images in any application. If we want to display a text, we have to assign a value to the text attribute in...
Advanced Image Processing in R. ‘ImageMagick’ is one of the famous open... | by AbdulMajedRaja RS | Towards Data Science
‘ImageMagick’ is one of the famous open source libraries available for editing and manipulating Images of different types (Raster & Vector Images). magick is an R-package binding to ‘ImageMagick’ for Advanced Image-Processing in R, authored by Jeroen Ooms. magick supports many common image formats like png, jpeg, tiff ...
[ { "code": null, "e": 429, "s": 172, "text": "‘ImageMagick’ is one of the famous open source libraries available for editing and manipulating Images of different types (Raster & Vector Images). magick is an R-package binding to ‘ImageMagick’ for Advanced Image-Processing in R, authored by Jeroen Ooms...
Find the frequency of a number in an array - GeeksforGeeks
14 May, 2021 Given an array, a[], and an element x, find a number of occurrences of x in a[].Examples: Input : a[] = {0, 5, 5, 5, 4} x = 5 Output : 3 Input : a[] = {1, 2, 3} x = 4 Output : 0 If array is not sorted The idea is simple, we initialize count as 0. We traverse the array in a lin...
[ { "code": null, "e": 25258, "s": 25230, "text": "\n14 May, 2021" }, { "code": null, "e": 25350, "s": 25258, "text": "Given an array, a[], and an element x, find a number of occurrences of x in a[].Examples: " }, { "code": null, "e": 25462, "s": 25350, "text":...
vector::at() and vector::swap() in C++ STL
30 Jun, 2022 Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container. at() function is used reference the element present at the position given as the parameter to the function. Syntax: ve...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 240, "s": 52, "text": "Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by t...
Flutter – Magic 8 Ball App
15 Jan, 2021 We will be building a Magic 8 Ball app that will give you the answers to all fun tricky questions (basically it is a fun game app that will change its state of image Flatbutton using Stateful widgets). For this, we will use Stateless and Stateful Flutter widgets, a Flatbutton. We will be using VS Code IDE...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Jan, 2021" }, { "code": null, "e": 333, "s": 54, "text": "We will be building a Magic 8 Ball app that will give you the answers to all fun tricky questions (basically it is a fun game app that will change its state of image Flatbutt...
SQL - GeeksforGeeks
03 Aug, 2021 CREATE TABLE temp ( id INT, name VARCHAR(100) ); INSERT INTO temp VALUES (1, "abc"); INSERT INTO temp VALUES (2, "abc"); INSERT INTO temp VALUES (3, "bcd"); INSERT INTO temp VALUES (4, "cde"); SELECT Count(*) FROM temp GROUP BY name; count(*) -------- 2 1 1 SELECT 'T' AS...
[ { "code": null, "e": 31567, "s": 31539, "text": "\n03 Aug, 2021" }, { "code": null, "e": 31835, "s": 31567, "text": "CREATE TABLE temp \n ( \n id INT, \n name VARCHAR(100) \n ); \n\nINSERT INTO temp VALUES (1, \"abc\"); \nINSERT INTO temp VALUES (2, \"abc\"); \nINSERT...
Why to use char[] array over a string for storing passwords in Java?
20 Jun, 2022 1. Strings are immutable: Strings are immutable in Java and therefore if a password is stored as plain text it will be available in memory until Garbage collector clears it and as Strings are used in the String pool for re-usability there are high chances that it will remain in memory for long duration, w...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jun, 2022" }, { "code": null, "e": 715, "s": 54, "text": "1. Strings are immutable: Strings are immutable in Java and therefore if a password is stored as plain text it will be available in memory until Garbage collector clears it ...
Ways to apply LEFT, RIGHT, MID in Pandas
28 Jul, 2020 Many times we need to extract specific characters present within a string in Pandas data frame. In order to solve this issue, we have concept of Left, Right, and Mid in pandas. Example 1: Extract Characters From the Left Python3 # importing pandas libraryimport pandas as pd # creating and initializing a l...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2020" }, { "code": null, "e": 205, "s": 28, "text": "Many times we need to extract specific characters present within a string in Pandas data frame. In order to solve this issue, we have concept of Left, Right, and Mid in pandas...
How to use bcrypt for hashing passwords in PHP?
04 Jul, 2019 Everyone knows and understands that storing the password in a clear text in the database is a quite rude thing and not secure. Yet, several do it because it makes an internet site quite easy for password recovery or testing.The bcrypt is a password hashing technique used to build password security. It is u...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jul, 2019" }, { "code": null, "e": 438, "s": 28, "text": "Everyone knows and understands that storing the password in a clear text in the database is a quite rude thing and not secure. Yet, several do it because it makes an internet ...
Python User defined functions
26 Jul, 2021 A function is a set of statements that take inputs, do some specific computation and produce output. The idea is to put some commonly or repeatedly done tasks together and make a function so that instead of writing the same code again and again for different inputs, we can call the function.Functions that ...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Jul, 2021" }, { "code": null, "e": 568, "s": 53, "text": "A function is a set of statements that take inputs, do some specific computation and produce output. The idea is to put some commonly or repeatedly done tasks together and ma...
Angular PrimeNG Chips Component
25 Aug, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Chips component in Angular PrimeNG. Chips component: It is use...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2021" }, { "code": null, "e": 309, "s": 28, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websi...
Introduction of Statistics and its Types
29 Jun, 2020 Statistics simply means numerical data, and is field of math that generally deals with collection of data, tabulation, and interpretation of numerical data. It is actually a form of mathematical analysis that uses different quantitative models to produce a set of experimental data or studies of real life. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Jun, 2020" }, { "code": null, "e": 646, "s": 52, "text": "Statistics simply means numerical data, and is field of math that generally deals with collection of data, tabulation, and interpretation of numerical data. It is actually a ...
Python | Numbers in a list within a given range
30 Jun, 2022 Given a list, print the number of numbers in the given range. Examples: Input : [10, 20, 30, 40, 50, 40, 40, 60, 70] range: 40-80 Output : 6 Input : [10, 20, 30, 40, 50, 40, 40, 60, 70] range: 10-40 Output : 4 Multiple Line Approach:Traverse in the list and check for every number. If the number lies...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 116, "s": 52, "text": "Given a list, print the number of numbers in the given range. " }, { "code": null, "e": 127, "s": 116, "text": "Examples: " }, { "code": null, ...
Global and Local variables in JavaScript
28 Jun, 2019 Variables: It holds the data or information which can be changed anytime. JavaScript use reserved keyword var to declare variables. In JavaScript, there are two types of variable and also it tells you where in your program you are allowed to use the variables and functions that you’ve defined. Local Variab...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2019" }, { "code": null, "e": 349, "s": 54, "text": "Variables: It holds the data or information which can be changed anytime. JavaScript use reserved keyword var to declare variables. In JavaScript, there are two types of vari...
Scanner nextBoolean() method in Java with Examples
12 Oct, 2018 The nextBoolean() method of java.util.Scanner class scans the next token of the input as a Boolean. If the translation is successful, the scanner advances past the input that matched. Syntax: public boolean nextBoolean() Parameters: The function does not accepts any parameter. Return Value: This function r...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2018" }, { "code": null, "e": 212, "s": 28, "text": "The nextBoolean() method of java.util.Scanner class scans the next token of the input as a Boolean. If the translation is successful, the scanner advances past the input that ...
GCD of two numbers in PL/SQL
12 Jul, 2018 Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations. Given two numbers and task is to find the GCD (Greatest Common ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jul, 2018" }, { "code": null, "e": 272, "s": 28, "text": "Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare ...
Parameterless Method in Scala
12 Jun, 2019 Prerequisites – Scala | Functions A parameterless method is a function that does not take parameters, defined by the absence of any empty parenthesis. Invocation of a paramaterless function should be done without parenthesis. This enables the change of def to val without any change in the client code which...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jun, 2019" }, { "code": null, "e": 62, "s": 28, "text": "Prerequisites – Scala | Functions" }, { "code": null, "e": 375, "s": 62, "text": "A parameterless method is a function that does not take parameters, define...
Python | Pandas Dataframe.sort_values() | Set-1
20 Oct, 2021 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 sort_values() function sorts a data frame in Ascending or Descending order of passed C...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Oct, 2021" }, { "code": null, "e": 562, "s": 53, "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 i...
Total number of non-decreasing numbers with n digits
17 Feb, 2022 A number is non-decreasing if every digit (except the first one) is greater than or equal to previous digit. For example, 223, 4455567, 899, are non-decreasing numbers.So, given the number of digits n, you are required to find the count of total non-decreasing numbers with n digits.Examples: Input: n = ...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Feb, 2022" }, { "code": null, "e": 349, "s": 54, "text": "A number is non-decreasing if every digit (except the first one) is greater than or equal to previous digit. For example, 223, 4455567, 899, are non-decreasing numbers.So, gi...
Maximum games played by winner
30 Apr, 2021 There are N players which are playing a tournament. We need to find the maximum number of games the winner can play. In this tournament, two players are allowed to play against each other only if the difference between games played by them is not more than one.Examples: Input : N = 3 Output : 2 Maximum ...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Apr, 2021" }, { "code": null, "e": 327, "s": 54, "text": "There are N players which are playing a tournament. We need to find the maximum number of games the winner can play. In this tournament, two players are allowed to play again...
Public vs Protected Access Modifier in Java
08 Oct, 2021 Whenever we are writing our classes, we have to provide some information about our classes to the JVM like whether this class can be accessed from anywhere or not, whether child class creation is possible or not, whether object creation is possible or not, etc. we can specify this information by using an a...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Oct, 2021" }, { "code": null, "e": 502, "s": 53, "text": "Whenever we are writing our classes, we have to provide some information about our classes to the JVM like whether this class can be accessed from anywhere or not, whether ch...
Dart - Static Keyword - GeeksforGeeks
25 Jul, 2021 The static keyword is used for memory management of global data members. The static keyword can be applied to the fields and methods of a class. The static variables and methods are part of the class instead of a specific instance. The static keyword is used for a class-level variable and method that is t...
[ { "code": null, "e": 23969, "s": 23941, "text": "\n25 Jul, 2021" }, { "code": null, "e": 24202, "s": 23969, "text": "The static keyword is used for memory management of global data members. The static keyword can be applied to the fields and methods of a class. The static variabl...
Count number of edges in an undirected graph in C++
Given the task is to count the number of edges in an undirected graph. An undirected graph is a set of vertices which are connected together to form a graph, whose all the edges are bidirectional. Undirected graphs can travel in any direction from one node to another connected node. Below is a visual representation of ...
[ { "code": null, "e": 1346, "s": 1062, "text": "Given the task is to count the number of edges in an undirected graph. An undirected graph is a set of vertices which are connected together to form a graph, whose all the edges are bidirectional. Undirected graphs can travel in any direction from one n...
How to Print to the Console in Android Studio? - GeeksforGeeks
23 Mar, 2021 In computer technology, the console is simply a combination of a monitor and an input device. Generally, the input device is referred to here as the pair of mouse and keyboard. In order to proceed with the topic, we have to understand the terminology of computer science, which is an important part of the p...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n23 Mar, 2021" }, { "code": null, "e": 25721, "s": 24725, "text": "In computer technology, the console is simply a combination of a monitor and an input device. Generally, the input device is referred to here as the pair of mouse ...
Apache Tapestry - Quick Guide
Apache Tapestry is an open source web framework written in Java. It is a component based web framework. Tapestry components are Java Classes. They are neither inherited from a framework specific base class nor implementation of an interface and they are just plain POJOs (Plain old Java Objects). The important feature o...
[ { "code": null, "e": 2371, "s": 2074, "text": "Apache Tapestry is an open source web framework written in Java. It is a component based web framework. Tapestry components are Java Classes. They are neither inherited from a framework specific base class nor implementation of an interface and they are...
Bit Manipulation technique to replace boolean arrays of fixed size less than 64 - GeeksforGeeks
28 Jan, 2022 Space complexity is the most underestimated asset by programmers. One can barely see a Memory Limit Exceed (MLE) while submitting a solution. But, saving memory is the most important thing a programmer should take care about. If one needs to create an Application for a user, it should be made as memory eff...
[ { "code": null, "e": 25290, "s": 25262, "text": "\n28 Jan, 2022" }, { "code": null, "e": 25761, "s": 25290, "text": "Space complexity is the most underestimated asset by programmers. One can barely see a Memory Limit Exceed (MLE) while submitting a solution. But, saving memory is...
How to select part of a Timestamp in a MySQL Query?
To select part of a timestamp in a query, you need to use YEAR() function. The syntax is as follows in MySQL. select YEAR(yourTimestampColumnName) as anyAliasName from yourTableName; To understand the above syntax, let us create a table. The query to create a table is as follows − mysql> create table SelectPartOfTimest...
[ { "code": null, "e": 1172, "s": 1062, "text": "To select part of a timestamp in a query, you need to use YEAR() function. The syntax is as follows in MySQL." }, { "code": null, "e": 1245, "s": 1172, "text": "select YEAR(yourTimestampColumnName) as anyAliasName from yourTableName;...
Python - Text Processing Environment
To successfully create and run the example code in this tutorial we will need an environment set up which will have both general-purpose python as well as the special packages required for Data science. We will first look as installing the general-purpose python which can be python 2 or python 3. But we will prefer pyt...
[ { "code": null, "e": 3002, "s": 2587, "text": "To successfully create and run the example code in this tutorial we will need an environment set up which will have both general-purpose python as well as the special packages required for Data science. We will first look as installing the general-purpo...
List FindLastIndex() Method in C# | Set -1 - GeeksforGeeks
25 Jan, 2019 This method is used to search for an element which matches the conditions defined by a specified predicate and returns the zero-based index of the last occurrence within the List<T> or a portion of it. There are 3 methods in the overload list of this method: FindLastIndex(Predicate<T>) Method FindLastIndex...
[ { "code": null, "e": 24117, "s": 24089, "text": "\n25 Jan, 2019" }, { "code": null, "e": 24376, "s": 24117, "text": "This method is used to search for an element which matches the conditions defined by a specified predicate and returns the zero-based index of the last occurrence ...
How to select first and last row record using LIMIT in MySQL?
Let us first create a table. The query to create a table is as follows mysql> create table FirstAndLastDataDemo -> ( -> EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> EmployeeName varchar(20), -> EmployeeAge int -> ); Query OK, 0 rows affected (0.59 sec) Insert some records in the table using ins...
[ { "code": null, "e": 1133, "s": 1062, "text": "Let us first create a table. The query to create a table is as follows" }, { "code": null, "e": 1340, "s": 1133, "text": "mysql> create table FirstAndLastDataDemo\n -> (\n -> EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n ...
Implementing Web Scraping in Python with BeautifulSoup?
BeautifulSoup is a class in the bs4 module of python. Basic purpose of building beautifulsoup is to parse HTML or XML documents. It is easy to install beautifulsoup on using pip module. Just run the below command on your command shell. pip install bs4 Running above command on your terminal, will see your screen somethi...
[ { "code": null, "e": 1191, "s": 1062, "text": "BeautifulSoup is a class in the bs4 module of python. Basic purpose of building beautifulsoup is to parse HTML or XML documents." }, { "code": null, "e": 1298, "s": 1191, "text": "It is easy to install beautifulsoup on using pip modu...
Delegation vs Inheritance in C#
A delegate is a reference type variable that holds the reference to a method. The reference can be changed at runtime. To declare a delegate. delegate <return type> <delegate-name> <parameter list> Delegation has run-time flexibility i.e. you can easily change it at runtime. The instance you create in Delegation is of ...
[ { "code": null, "e": 1181, "s": 1062, "text": "A delegate is a reference type variable that holds the reference to a method. The reference can be changed at runtime." }, { "code": null, "e": 1204, "s": 1181, "text": "To declare a delegate." }, { "code": null, "e": 126...
How to Compare Equality of Struct, Slice and Map in Golang? - GeeksforGeeks
17 May, 2020 In Golang, reflect.DeepEqual function is used to compare the equality of struct, slice, and map in Golang. It is used to check if two elements are “deeply equal” or not. Deep means that we are comparing the contents of the objects recursively. Two distinct types of values are never deeply equal. Two identi...
[ { "code": null, "e": 24418, "s": 24390, "text": "\n17 May, 2020" }, { "code": null, "e": 24790, "s": 24418, "text": "In Golang, reflect.DeepEqual function is used to compare the equality of struct, slice, and map in Golang. It is used to check if two elements are “deeply equal” o...
Jackson - Environment Setup
You really do not need to set up your own environment to start learning Guava, a JAVA based library. Reason is very simple, we already have setup Java Programming environment online, so that you can compile and execute all the available examples online at the same time when you are doing your theory work. This gives yo...
[ { "code": null, "e": 2213, "s": 1753, "text": "You really do not need to set up your own environment to start learning Guava, a JAVA based library. Reason is very simple, we already have setup Java Programming environment online, so that you can compile and execute all the available examples online ...
Adding Noise to a Numeric Vector in R Programming - jitter() Function - GeeksforGeeks
19 Jun, 2020 In R programming, jittering means adding small amount of random noise to a numeric vector object. In this article, we’ll learn to use jitter() function and create a plot to visualize them. Syntax: jitter(x, factor) Parameters:x: represents numeric vectorfactor: represents numeric value for factor specifica...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n19 Jun, 2020" }, { "code": null, "e": 25431, "s": 25242, "text": "In R programming, jittering means adding small amount of random noise to a numeric vector object. In this article, we’ll learn to use jitter() function and create ...
Program to find the highest altitude of a point in Python
Suppose there is a biker who is going on a road trip. There are n different points in his road trip at different altitudes. The biker starts his trip from point 0 with altitude 0. If we have a sequence called gain with n elements, gain[i] is the net gain in altitude between points i and i + 1 for all (0 <= i < n). We h...
[ { "code": null, "e": 1427, "s": 1062, "text": "Suppose there is a biker who is going on a road trip. There are n different points in his road trip at different altitudes. The biker starts his trip from point 0 with altitude 0. If we have a sequence called gain with n elements, gain[i] is the net gai...
Polynomial Regression with Scikit learn: What You Should Know | by Angela Shi | Towards Data Science
Polynomial regression is an algorithm that is well known. It is a special case of linear regression, by the fact that we create some polynomial features before creating a linear regression. Or it can be considered as a linear regression with a feature space mapping (aka a polynomial kernel). With this kernel trick, it ...
[ { "code": null, "e": 580, "s": 172, "text": "Polynomial regression is an algorithm that is well known. It is a special case of linear regression, by the fact that we create some polynomial features before creating a linear regression. Or it can be considered as a linear regression with a feature spa...
Spring - Page Redirection Example
The following example show how to write a simple web-based application which makes use of redirect to transfer a http request to another page. To start with, let us have a working Eclipse IDE in place and take the following steps to develop a Dynamic Formbased Web Application using Spring Web Framework − Here is the co...
[ { "code": null, "e": 2598, "s": 2292, "text": "The following example show how to write a simple web-based application which makes use of redirect to transfer a http request to another page. To start with, let us have a working Eclipse IDE in place and take the following steps to develop a Dynamic Fo...
Program to display hostname and IP address C
In this section we will see how to see the Host name and IP address of the local system in an easier way. We will write a C program to find the host name and IP. Some of the following functions are used. These functions have a different task. Let us see the functions and their tasks. #include <stdio.h> #include <stdlib...
[ { "code": null, "e": 1224, "s": 1062, "text": "In this section we will see how to see the Host name and IP address of the local system in an easier way. We will write a C program to find the host name and IP." }, { "code": null, "e": 1347, "s": 1224, "text": "Some of the followin...
Rotate Matrix in Python
Suppose we have one n x n 2D matrix. We have to rotate this matrix 90 degrees clockwise. So if the matrix is like- Then the output will be To solve this, we will follow these steps − Consider temp_mat = [], col := length of matrix – 1 for col in range 0 to length of matrixtemp := []for row in range length of matrix – 1...
[ { "code": null, "e": 1177, "s": 1062, "text": "Suppose we have one n x n 2D matrix. We have to rotate this matrix 90 degrees clockwise. So if the matrix is like-" }, { "code": null, "e": 1201, "s": 1177, "text": "Then the output will be" }, { "code": null, "e": 1245, ...
Beginner’s guide to transfer learning on Google Colab | by Suchandra Datta | Towards Data Science
Mammoth quantities of pristine data are one of the most valuable resources in these times, which is the potential source of huge revenue thanks to advances in deep learning and associated hardware that’s needed to speed up those innumerable matrix multiplications. What if we don’t have a lot of data and procuring more ...
[ { "code": null, "e": 730, "s": 172, "text": "Mammoth quantities of pristine data are one of the most valuable resources in these times, which is the potential source of huge revenue thanks to advances in deep learning and associated hardware that’s needed to speed up those innumerable matrix multipl...
Set custom Auto Increment with ZEROFILL in MySQL
Let us first create a table. Here. We have set UserId column with ZEROFILL and AUTO_INCREMENT mysql> create table DemoTable1831 ( UserId int(7) zerofill auto_increment, PRIMARY KEY(UserId) ); Query OK, 0 rows affected (0.00 sec) Insert some records in the table using insert command − mysql> insert i...
[ { "code": null, "e": 1156, "s": 1062, "text": "Let us first create a table. Here. We have set UserId column with ZEROFILL and AUTO_INCREMENT" }, { "code": null, "e": 1311, "s": 1156, "text": "mysql> create table DemoTable1831\n (\n UserId int(7) zerofill auto_increment,\n...
Domain constraints in DBMS - GeeksforGeeks
01 Sep, 2021 In DBMS, constraints are the set of rules that ensures that when an authorized user modifies the database they do not disturb the data consistency and the constraints are specified within the DDL commands like “alter” and “create” command. There are several types of constraints available in DBMS and they a...
[ { "code": null, "e": 24236, "s": 24208, "text": "\n01 Sep, 2021" }, { "code": null, "e": 24547, "s": 24236, "text": "In DBMS, constraints are the set of rules that ensures that when an authorized user modifies the database they do not disturb the data consistency and the constrai...
How to Load Excel Files with Hidden Rows and Columns into Pandas | by Zeya LT | Towards Data Science
I learned something new recently — that it is possible to exclude hidden rows and/or columns when reading Excel files as Pandas DataFrames, all thanks to the openpyxl package, and I’d like to share it with you. It is not uncommon to have rows or columns of an Excel file hidden. Less-relevant columns may be hidden to ke...
[ { "code": null, "e": 383, "s": 172, "text": "I learned something new recently — that it is possible to exclude hidden rows and/or columns when reading Excel files as Pandas DataFrames, all thanks to the openpyxl package, and I’d like to share it with you." }, { "code": null, "e": 578, ...
Struts 2 - Sending Email
This chapter explains how you can send an email using your Struts 2 application. For this exercise, you need to download and install the mail.jar from JavaMail API 1.4.4 and place the mail.jar file in your WEB-INF\lib folder and then proceed to follow the standard steps of creating action, view and configuration files....
[ { "code": null, "e": 2327, "s": 2246, "text": "This chapter explains how you can send an email using your Struts 2 application." }, { "code": null, "e": 2567, "s": 2327, "text": "For this exercise, you need to download and install the mail.jar from JavaMail API 1.4.4 and place th...
A Dog Detector and Breed Classifier | by Henry Dashwood | Towards Data Science
In a field like physics, things keep getting harder, to the point that it’s very difficult to understand what’s going on at the cutting edge unless it’s in highly simplified terms. In computer science though, and artificial intelligence in particular, knowledge built up slowly over 70+ years by people all over the worl...
[ { "code": null, "e": 700, "s": 172, "text": "In a field like physics, things keep getting harder, to the point that it’s very difficult to understand what’s going on at the cutting edge unless it’s in highly simplified terms. In computer science though, and artificial intelligence in particular, kno...
Machine Learning Basics: Support Vector Regression | by Gurucharan M K | Towards Data Science
In the previous stories, I explained the Machine Learning program for building Linear and Polynomial Regression model in Python. In this article, we will go through the program for building a Support Vector Regression model based on non-linear data. Support Vector Machine (SVM) is a very popular Machine Learning algori...
[ { "code": null, "e": 297, "s": 47, "text": "In the previous stories, I explained the Machine Learning program for building Linear and Polynomial Regression model in Python. In this article, we will go through the program for building a Support Vector Regression model based on non-linear data." }, ...
Spring Boot - Zuul Proxy Server and Routing
Zuul Server is a gateway application that handles all the requests and does the dynamic routing of microservice applications. The Zuul Server is also known as Edge Server. For Example, /api/user is mapped to the user service and /api/products is mapped to the product service and Zuul Server dynamically routes the reque...
[ { "code": null, "e": 3331, "s": 3159, "text": "Zuul Server is a gateway application that handles all the requests and does the dynamic routing of microservice applications. The Zuul Server is also known as Edge Server." }, { "code": null, "e": 3522, "s": 3331, "text": "For Exampl...
Differences between == and equals() method in Java
In java both == and equals() method is used to check the equality of two variables or objects. Following are the important differences between == and equals() method. public class JavaTester { public static void main(String args[]) { String s1 = new String("TUTORIALSPOINT"); String s2 = new String("TUTOR...
[ { "code": null, "e": 1282, "s": 1187, "text": "In java both == and equals() method is used to check the equality of two variables or objects." }, { "code": null, "e": 1354, "s": 1282, "text": "Following are the important differences between == and equals() method." }, { "...
How to apply background image with linear gradient using Tailwind CSS ?
25 May, 2021 In this article, we will see how to apply background images with a linear gradient using Tailwind CSS. Tailwind CSS is a highly customizable, utility-first CSS framework from which we can use utility classes to build any design. To apply background images with linear gradients we use the background image ...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 May, 2021" }, { "code": null, "e": 158, "s": 54, "text": "In this article, we will see how to apply background images with a linear gradient using Tailwind CSS. " }, { "code": null, "e": 543, "s": 158, "text": "T...
Program for Identity Matrix
15 Jun, 2022 Introduction to Identity Matrix : The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or main diagonal are 1’s and all other elements are zeros. In the below image, every matrix is an Identity Matrix. In linear algebra, this is sometimes called a...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 86, "s": 52, "text": "Introduction to Identity Matrix :" }, { "code": null, "e": 314, "s": 86, "text": " The dictionary definition of an Identity Matrix is a square matrix in wh...
Python | Get Top N elements from Records
29 Oct, 2019 Sometimes, while working with data, we can have a problem in which we have records and we require to find the highest N scores from it. This kind of application is popular in web development domain. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using sorted() + lambdaThe combi...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Oct, 2019" }, { "code": null, "e": 291, "s": 28, "text": "Sometimes, while working with data, we can have a problem in which we have records and we require to find the highest N scores from it. This kind of application is popular in ...
PHP in_array() Function
03 Dec, 2021 In this article, we will see how to find the value in the array using the in_array() function in PHP, & will also understand its implementation through the examples. The in_array() function is an inbuilt function in PHP that is used to check whether a given value exists in an array or not. It returns TRUE ...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Dec, 2021" }, { "code": null, "e": 219, "s": 53, "text": "In this article, we will see how to find the value in the array using the in_array() function in PHP, & will also understand its implementation through the examples." }, ...
Largest sum contiguous subarray having only non-negative elements
02 Mar, 2022 Given an integer array arr[], the task is to find the largest sum contiguous subarray of non-negative elements and return its sum. Examples: Input: arr[] = {1, 4, -3, 9, 5, -6} Output: 14 Explanation: Subarray [9, 5] is the subarray having maximum sum with all non-negative elements. Input: arr[] = {12, 0,...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Mar, 2022" }, { "code": null, "e": 185, "s": 54, "text": "Given an integer array arr[], the task is to find the largest sum contiguous subarray of non-negative elements and return its sum." }, { "code": null, "e": 196, ...
JavaScript Array map() Method
01 Nov, 2021 Below is an example of the Array map() method. Example: JavaScript <script> // JavaScript to illustrate map() method function func() { // Original array var arr = [14, 10, 11, 00]; // new mapped array var new_arr = arr.map(Math.sqrt); document.write(new_arr); ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Nov, 2021" }, { "code": null, "e": 77, "s": 28, "text": "Below is an example of the Array map() method. " }, { "code": null, "e": 88, "s": 77, "text": "Example: " }, { "code": null, "e": 99, "s":...
Date compareTo() method in Java with examples
07 Nov, 2019 The compareTo() method of Java Date class compares two dates and sort them for order. Syntax: public int compareTo(Date anotherDate) Parameters: The function accepts a single parameter anotherDate which specifies the date to be compared . Return Value: The function gives three return values specified belo...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Nov, 2019" }, { "code": null, "e": 140, "s": 54, "text": "The compareTo() method of Java Date class compares two dates and sort them for order." }, { "code": null, "e": 148, "s": 140, "text": "Syntax:" }, { ...