title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Generate n-bit Gray Codes | 08 Jul, 2022
Given a number N, generate bit patterns from 0 to 2^N-1 such that successive patterns differ by one bit.
Examples:
Input: N = 2
Output: 00 01 11 10
Input: N = 3
Output: 000 001 011 010 110 111 101 100
Method-1
The above sequences are Gray Codes of different widths. Following is an interesting pattern in G... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 159,
"s": 54,
"text": "Given a number N, generate bit patterns from 0 to 2^N-1 such that successive patterns differ by one bit."
},
{
"code": null,
"e": 169,
"s": 159,
"text": "... |
Difference between Method and Function in Python | 06 Jul, 2022
Here, key differences between Method and Function in Python are explained. Java is also an OOP language, but there is no concept of Function in it. But Python has both concept of Method and Function.
Python Method
Method is called by its name, but it is associated to an object (dependent).A method definiti... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 252,
"s": 52,
"text": "Here, key differences between Method and Function in Python are explained. Java is also an OOP language, but there is no concept of Function in it. But Python has both concep... |
Humanize Package in Python | 23 May, 2020
Humanize is a package in python which contains various humanization utilities like turning a number into a human-readable size or throughput or number. In this article, we will discuss how to install this package and what are the different utilities present in this package.
Installation: To install this pa... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 May, 2020"
},
{
"code": null,
"e": 329,
"s": 54,
"text": "Humanize is a package in python which contains various humanization utilities like turning a number into a human-readable size or throughput or number. In this article, we wi... |
Program for finding the Integral of a given function using Booleβs Rule | 19 May, 2021
Given a function, f(x), tabulated at points
equally spaced by
such that
[Tex]f_2=f(x_2)[/Tex]
.....and so on
The upper and lower limits a, b correspond to which the integral needs to be found, the task is to find the integral value of the given equation f(x).Examples:
Input: a = 0, b = 4,
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 73,
"s": 28,
"text": "Given a function, f(x), tabulated at points "
},
{
"code": null,
"e": 94,
"s": 75,
"text": "equally spaced by "
},
{
"code": null,
"e": 108,
... |
Restoring Division Algorithm For Unsigned Integer | 22 Apr, 2020
A division algorithm provides a quotient and a remainder when we divide two number. They are generally of two type slow algorithm and fast algorithm. Slow division algorithm are restoring, non-restoring, non-performing restoring, SRT algorithm and under fast comes NewtonβRaphson and Goldschmidt.
In this ar... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 351,
"s": 54,
"text": "A division algorithm provides a quotient and a remainder when we divide two number. They are generally of two type slow algorithm and fast algorithm. Slow division algorithm ... |
CSS scroll-margin-top property | 07 Sep, 2020
The scroll-margin-top property is used to set all the scroll margins to the top of an element at once. The value specified for the scroll-margin-top determines how much of the page that is primarily outside the support should remain visible.
Hence, the scroll-margin-top values represent outsets that define... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Sep, 2020"
},
{
"code": null,
"e": 270,
"s": 28,
"text": "The scroll-margin-top property is used to set all the scroll margins to the top of an element at once. The value specified for the scroll-margin-top determines how much of the... |
jQuery | keyup() with Examples | 13 Feb, 2019
The keyup() is an inbuilt method in jQuery which is used to trigger the keyup event whenever User releases a key from the keyboard. So, Using keyup() method we can detect if any key is released from the keyboard.
Syntax:
$(selector).keyup(function)
Here selector is the selected element.
Parameters: It ac... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "The keyup() is an inbuilt method in jQuery which is used to trigger the keyup event whenever User releases a key from the keyboard. So, Using keyup() method we can detect if a... |
Python | Corner detection with Harris Corner Detection method using OpenCV | 08 Feb, 2022
Harris Corner detection algorithm was developed to identify the internal corners of an image. The corners of an image are basically identified as the regions in which there are variations in large intensity of the gradient in all possible dimensions and directions. Corners extracted can be a part of the im... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 603,
"s": 28,
"text": "Harris Corner detection algorithm was developed to identify the internal corners of an image. The corners of an image are basically identified as the regions in which there ar... |
Express.js res.sendFile() Function | 03 Sep, 2021
The res.sendFile() function basically transfers the file at the given path and it sets the Content-Type response HTTP header field based on the filename extension. Syntax:
res.sendFile(path [, options] [, fn])
Parameter: The path parameter describes the path and the options parameter contains various prop... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n03 Sep, 2021"
},
{
"code": null,
"e": 226,
"s": 53,
"text": "The res.sendFile() function basically transfers the file at the given path and it sets the Content-Type response HTTP header field based on the filename extension. Syntax: "
... |
VSAM - RRDS | RRDS is known as Relative Record Data Set. RRDS cluster is similar to an ESDS cluster. The only difference is that RRDS records are accessed by Relative Record Number (RRN), we must code NUMBERED inside the DEFINE CLUSTER command. Following are the key features of RRDS β
A Relative record dataset has records that are i... | [
{
"code": null,
"e": 2171,
"s": 1899,
"text": "RRDS is known as Relative Record Data Set. RRDS cluster is similar to an ESDS cluster. The only difference is that RRDS records are accessed by Relative Record Number (RRN), we must code NUMBERED inside the DEFINE CLUSTER command. Following are the key ... |
Render HTML Forms (GET & POST) in Django | 16 Aug, 2021
Django is often called βBatteries Included Frameworkβ because it has a default setting for everything and has features that can help anyone develop a website rapidly. Talking about forms, In HTML, a form is a collection of elements inside <form>...</form> that allow a visitor to do things like entering tex... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 746,
"s": 54,
"text": "Django is often called βBatteries Included Frameworkβ because it has a default setting for everything and has features that can help anyone develop a website rapidly. Talking... |
How to validate Email Address in Android on EditText using Kotlin? | This example demonstrates how to validate Email Address in Android on EditText using Kotlin.
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="utf-... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "This example demonstrates how to validate Email Address in Android on EditText using Kotlin."
},
{
"code": null,
"e": 1283,
"s": 1155,
"text": "Step 1 β Create a new project in Android Studio, go to File β New Project and fill all re... |
How to group data by time intervals in Python Pandas? - GeeksforGeeks | 26 Dec, 2020
Prerequisites: Pandas
Grouping data by time intervals is very obvious when you come across Time-Series Analysis. A time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time.
Pandas provid... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n26 Dec, 2020"
},
{
"code": null,
"e": 24314,
"s": 24292,
"text": "Prerequisites: Pandas"
},
{
"code": null,
"e": 24586,
"s": 24314,
"text": "Grouping data by time intervals is very obvious when you come across... |
Tryit Editor v3.7 | CSS Math Functions
Tryit: Using the max() function | [
{
"code": null,
"e": 28,
"s": 9,
"text": "CSS Math Functions"
}
] |
The netrc file processing using Python | The netrc class in python is used to read the data from the .netrc file presnt in unix systems in userβs home firectory. These are hidden files containing userβs login credential details. This is helpful for tool slike ftp, curl etc to successfully read the ,netrc file and use it for their actions.
The below program sh... | [
{
"code": null,
"e": 1362,
"s": 1062,
"text": "The netrc class in python is used to read the data from the .netrc file presnt in unix systems in userβs home firectory. These are hidden files containing userβs login credential details. This is helpful for tool slike ftp, curl etc to successfully read... |
Data Structure and Algorithms - Shell Sort | Shell sort is a highly efficient sorting algorithm and is based on insertion sort algorithm. This algorithm avoids large shifts as in case of insertion sort, if the smaller value is to the far right and has to be moved to the far left.
This algorithm uses insertion sort on a widely spread elements, first to sort them a... | [
{
"code": null,
"e": 2816,
"s": 2580,
"text": "Shell sort is a highly efficient sorting algorithm and is based on insertion sort algorithm. This algorithm avoids large shifts as in case of insertion sort, if the smaller value is to the far right and has to be moved to the far left."
},
{
"co... |
Creating Deep Neural Networks from Scratch, an Introduction to Reinforcement Learning | by Abhav Kedia | Towards Data Science | This post is the first of a three part series that will give a detailed walk-through of a solution to the Cartpole-v1 problem on OpenAI gym β using only numpy from the python libraries. This solution is far from an optimal solution (you can find those on the gym website), but rather is focused on doing it from first pr... | [
{
"code": null,
"e": 609,
"s": 171,
"text": "This post is the first of a three part series that will give a detailed walk-through of a solution to the Cartpole-v1 problem on OpenAI gym β using only numpy from the python libraries. This solution is far from an optimal solution (you can find those on ... |
Git Ignore and .gitignore | When sharing your code with others, there are often files or parts of your project, you do not want to share.
Examples
log files
temporary files
hidden files
personal files
etc.
Git can specify which files or parts of your project should be
ignored by Git using a .gitignore file.
Git will not track files and folders s... | [
{
"code": null,
"e": 110,
"s": 0,
"text": "When sharing your code with others, there are often files or parts of your project, you do not want to share."
},
{
"code": null,
"e": 119,
"s": 110,
"text": "Examples"
},
{
"code": null,
"e": 129,
"s": 119,
"text": "... |
Set file attributes in Java | One of the file attribute that can be set is to make the file read-only. This can be done by using the method java.io.File.setReadOnly(). This method requires no parameters and it returns true if the file is set to read-only and false otherwise.
The java.io.File.canRead() and java.io.File.canWrite() methods are used to... | [
{
"code": null,
"e": 1308,
"s": 1062,
"text": "One of the file attribute that can be set is to make the file read-only. This can be done by using the method java.io.File.setReadOnly(). This method requires no parameters and it returns true if the file is set to read-only and false otherwise."
},
... |
endDrawer Widget in Flutter - GeeksforGeeks | 13 Nov, 2020
The endDrawer is the panel displayed to the side of the body (Scaffold Widget). It is generally hidden in mobile devices. We can open it by swiping in from right to left, or we can customise it to open on-press of an icon or a button. This widget is similar to the already present Drawer widget in flutter e... | [
{
"code": null,
"e": 23936,
"s": 23908,
"text": "\n13 Nov, 2020"
},
{
"code": null,
"e": 24436,
"s": 23936,
"text": "The endDrawer is the panel displayed to the side of the body (Scaffold Widget). It is generally hidden in mobile devices. We can open it by swiping in from right t... |
Is there any alternative for CONCAT() in MySQL? | Yes, an alternative is CONCAT_WS(). Let us first create a table β
mysql> create table DemoTable
(
StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
StudentName varchar(100)
);
Query OK, 0 rows affected (0.74 sec)
Insert some records in the table using insert command β
mysql> insert into DemoTable(StudentNa... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "Yes, an alternative is CONCAT_WS(). Let us first create a table β"
},
{
"code": null,
"e": 1288,
"s": 1128,
"text": "mysql> create table DemoTable\n (\n StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n StudentName varchar(1... |
scipy stats.mode() function | Python | 11 Feb, 2019
scipy.stats.mode(array, axis=0) function calculates the mode of the array elements along the specified axis of the array (list in python).
Its formula β
where,
l : Lower Boundary of modal class
h : Size of modal class
fm : Frequency corresponding to modal class
f1 : Frequency preceding to modal class
f2 :... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Feb, 2019"
},
{
"code": null,
"e": 167,
"s": 28,
"text": "scipy.stats.mode(array, axis=0) function calculates the mode of the array elements along the specified axis of the array (list in python)."
},
{
"code": null,
"e":... |
Java - valueOf() Method | The valueOf method returns the relevant Number Object holding the value of the argument passed. The argument can be a primitive data type, String, etc.
This method is a static method. The method can take two arguments, where one is a String and the other is a radix.
Following are all the variants of this method β
stati... | [
{
"code": null,
"e": 2663,
"s": 2511,
"text": "The valueOf method returns the relevant Number Object holding the value of the argument passed. The argument can be a primitive data type, String, etc."
},
{
"code": null,
"e": 2778,
"s": 2663,
"text": "This method is a static method... |
Calling Python from C | Set 1 | 27 Mar, 2019
In this article, we will mainly focus on safe execution of a Python callable from C, returning a result back to C and writing C code that needs to access a Python function as a callback.
The code below focuses on the tricky parts that are involved in calling Python from C.
Code #1 : [Step 1 and 2] Own the ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Mar, 2019"
},
{
"code": null,
"e": 215,
"s": 28,
"text": "In this article, we will mainly focus on safe execution of a Python callable from C, returning a result back to C and writing C code that needs to access a Python function as ... |
void pointer in C | The void pointer in C is a pointer which is not associated with any data types. It points to some data location in the storage means points to the address of variables. It is also called general purpose pointer. In C, malloc() and calloc() functions return void * or generic pointers.
It has some limitations β
1) Pointe... | [
{
"code": null,
"e": 1472,
"s": 1187,
"text": "The void pointer in C is a pointer which is not associated with any data types. It points to some data location in the storage means points to the address of variables. It is also called general purpose pointer. In C, malloc() and calloc() functions ret... |
How to Change Date Format in jQuery UI DatePicker ? | 10 Nov, 2021
In this article, we are going to learn about the Datepicker in jQuery. jQuery is the fastest and lightweight JavaScript library that is used to simplify the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript.
jQuery is widely famous for its motto of... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 320,
"s": 53,
"text": "In this article, we are going to learn about the Datepicker in jQuery. jQuery is the fastest and lightweight JavaScript library that is used to simplify the interactions betw... |
Design Snake Game | 06 Oct, 2020
Let us see how to design a basic Snake Game which provides the following functionalities:β’ Snake can move in a given direction and when it eats the food, the length of snake increases. β’ When snake crosses itself, the game will over. β’ Food will be generated at a given interval.Asked In: Amazon, Microsoft,... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Oct, 2020"
},
{
"code": null,
"e": 890,
"s": 54,
"text": "Let us see how to design a basic Snake Game which provides the following functionalities:β’ Snake can move in a given direction and when it eats the food, the length of snake ... |
PostgreSQL β ROW_NUMBER Function | 10 Feb, 2021
In PostgreSQL, the ROW_NUMBER() function is used to assign a unique integer to every row that is returned by a query.
Syntax:
ROW_NUMBER() OVER(
[PARTITION BY column_1, column_2, ...]
[ORDER BY column_3, column_4, ...]
)
Letβs analyze the above syntax:
The set of rows on which the ROW_NUMBER() func... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n10 Feb, 2021"
},
{
"code": null,
"e": 171,
"s": 53,
"text": "In PostgreSQL, the ROW_NUMBER() function is used to assign a unique integer to every row that is returned by a query."
},
{
"code": null,
"e": 282,
"s": 171,
... |
Python | Check for Descending Sorted List | 11 May, 2020
The sorted operation of list is essential operation in many application. But it takes best of O(nlogn) time complexity, hence one hopes to avoid this. So, to check if this is required or not, knowing if list is by default reverse sorted or not, one can check if list is sorted or not. Lets discuss various w... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 May, 2020"
},
{
"code": null,
"e": 361,
"s": 28,
"text": "The sorted operation of list is essential operation in many application. But it takes best of O(nlogn) time complexity, hence one hopes to avoid this. So, to check if this is ... |
How to write to an HTML file in Python ? | 26 Mar, 2021
Python language has great uses today in almost every field, it can be used along with other technologies to make our lives easier. One such use of python is getting the data output in an HTML file.
We can save any amount of our input data into an HTML file in python using the following examples in two ways... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 226,
"s": 28,
"text": "Python language has great uses today in almost every field, it can be used along with other technologies to make our lives easier. One such use of python is getting the data o... |
Node.js Buffer.writeUInt8() Method | 13 Oct, 2021
The Buffer.writeUInt8() method is an inbuilt application programming interface of class Buffer within Buffer module which is used to write values to buffer at the specified offset. The value should be a valid unsigned 8-bit integer otherwise behavior is undefined.
Syntax:
Buffer.writeUInt8( value, offset )... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Oct, 2021"
},
{
"code": null,
"e": 293,
"s": 28,
"text": "The Buffer.writeUInt8() method is an inbuilt application programming interface of class Buffer within Buffer module which is used to write values to buffer at the specified of... |
How to get title of current HTML page using jQuery ? | 02 Mar, 2020
Suppose you have given an HTML page and the task is to get the title of an HTML page with the help of only jQuery. There are two approaches that are discussed below:
Approach 1: The $(βtitleβ) jQuery selector is used to select the title element of the document and we can use text() method on the selector t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Mar, 2020"
},
{
"code": null,
"e": 194,
"s": 28,
"text": "Suppose you have given an HTML page and the task is to get the title of an HTML page with the help of only jQuery. There are two approaches that are discussed below:"
},
{... |
Simplify Calculus for Machine Learning with SymPy | by Jeremiah Lutes | Towards Data Science | Machine learning requires some calculus. Many of the online Machine learning courses donβt always cover the basics of calculus assuming the user already has a foundation. If you are anything like me, you might need a bit of a refresher. Letβs take a look at a few basic calculus concepts and how to write them in your co... | [
{
"code": null,
"e": 507,
"s": 171,
"text": "Machine learning requires some calculus. Many of the online Machine learning courses donβt always cover the basics of calculus assuming the user already has a foundation. If you are anything like me, you might need a bit of a refresher. Letβs take a look ... |
Cryptography - Quick Guide | Human being from ages had two inherent needs β (a) to communicate and share information and (b) to communicate selectively. These two needs gave rise to the art of coding the messages in such a way that only the intended people could have access to the information. Unauthorized people could not extract any information,... | [
{
"code": null,
"e": 2405,
"s": 2033,
"text": "Human being from ages had two inherent needs β (a) to communicate and share information and (b) to communicate selectively. These two needs gave rise to the art of coding the messages in such a way that only the intended people could have access to the ... |
C# | Arrays of Strings - GeeksforGeeks | 19 Nov, 2019
An array is a collection of the same type variable. Whereas a string is a sequence of Unicode characters or array of characters. Therefore arrays of strings is an array of arrays of characters. Here, string array and arrays of strings both are same term.
For Example, if you want to store the name of studen... | [
{
"code": null,
"e": 24440,
"s": 24412,
"text": "\n19 Nov, 2019"
},
{
"code": null,
"e": 24695,
"s": 24440,
"text": "An array is a collection of the same type variable. Whereas a string is a sequence of Unicode characters or array of characters. Therefore arrays of strings is an ... |
A NumPy affair: Broadcasting. This article explores the concept of... | by Richmond Alake | Towards Data Science | This article explores the concept of Broadcasting that is utilized in the scientific computing package that is NumPy.
We will introduce the concept of Broadcasting by giving a simple definition, along with some examples to illustrate how Broadcasting is implemented in Python by leveraging NumPy arrays. A further detail... | [
{
"code": null,
"e": 290,
"s": 172,
"text": "This article explores the concept of Broadcasting that is utilized in the scientific computing package that is NumPy."
},
{
"code": null,
"e": 625,
"s": 290,
"text": "We will introduce the concept of Broadcasting by giving a simple def... |
Protractor - Writing the First Test | In this chapter, let us understand how to write the first test in Protractor.
Protractor needs the following two files to run β
It is one of the important files to run Protractor. In this file, we will write our actual test code. The test code is written by using the syntax of our testing framework.
For example, if we ... | [
{
"code": null,
"e": 1969,
"s": 1891,
"text": "In this chapter, let us understand how to write the first test in Protractor."
},
{
"code": null,
"e": 2019,
"s": 1969,
"text": "Protractor needs the following two files to run β"
},
{
"code": null,
"e": 2192,
"s": 20... |
Predict Customer Churn with PySpark and Machine Learning | by Ke Chen | Towards Data Science | Customer churn refers to when a customer ceases his/her relationship with a company. It has a considerable impact on the businessβ health and long-term success, as it could significantly lower revenues and profits. According to the statistics by Forrester research, it costs 5 times more to acquire new customers than it... | [
{
"code": null,
"e": 753,
"s": 172,
"text": "Customer churn refers to when a customer ceases his/her relationship with a company. It has a considerable impact on the businessβ health and long-term success, as it could significantly lower revenues and profits. According to the statistics by Forrester... |
Predictive Modeling and Multiclass Classification: Tackling the Taarifa Challenge | by Antonio Stark | Towards Data Science | Classification predictive problems are one of the most encountered problems in data science. In this article, weβre going to solve a multiclass classification problem using three main classification families: Nearest Neighbors, Decision Trees, and Support Vector Machines (SVMs).
The dataset and original code can be acc... | [
{
"code": null,
"e": 452,
"s": 172,
"text": "Classification predictive problems are one of the most encountered problems in data science. In this article, weβre going to solve a multiclass classification problem using three main classification families: Nearest Neighbors, Decision Trees, and Support... |
Moving a file from one directory to another using Java | We can use Files.move() API to move file from one directory to another. Following is the syntax of the move method.
public static Path move(Path source,Path target,CopyOption... options) throws IOException
Where
source β Source path of file to be moved
source β Source path of file to be moved
target β Target path of fi... | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "We can use Files.move() API to move file from one directory to another. Following is the syntax of the move method."
},
{
"code": null,
"e": 1268,
"s": 1178,
"text": "public static Path move(Path source,Path target,CopyOption... opti... |
Natural Language Processing Workflow | by Jason Wong | Towards Data Science | Natural Language Processing (NLP) is the study of how computers interact (i.e. understand, interpret, manipulate) with humans through language, (e.g. speech, text). NLP got its start from the field of Linguistics, the study of language, primarily focusing on its semantics, phonetics, and grammar. Before machine learnin... | [
{
"code": null,
"e": 771,
"s": 172,
"text": "Natural Language Processing (NLP) is the study of how computers interact (i.e. understand, interpret, manipulate) with humans through language, (e.g. speech, text). NLP got its start from the field of Linguistics, the study of language, primarily focusing... |
How to change each column width of a JTable in Java? | A JTable is a subclass of JComponent for displaying complex data structures.
A JTable can follow the Model View Controller (MVC) design pattern for displaying the data in rows and columns.
The DefaultTableModel class can extend AbstractTableModel and it can be used to add the rows and columns to a JTable dynamically.
T... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "A JTable is a subclass of JComponent for displaying complex data structures."
},
{
"code": null,
"e": 1251,
"s": 1139,
"text": "A JTable can follow the Model View Controller (MVC) design pattern for displaying the data in rows and co... |
How to get the number of seconds between two Dates in JavaScript? | To get the number of seconds between two dates, use the Maths.abs() method.
You can try to run the following code to get seconds between two dates β
Live Demo
<html>
<head>
<title>JavaScript Get Seconds</title>
</head>
<body>
<script>
var date1, date2;
date1 = new Date();
... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "To get the number of seconds between two dates, use the Maths.abs() method."
},
{
"code": null,
"e": 1211,
"s": 1138,
"text": "You can try to run the following code to get seconds between two dates β"
},
{
"code": null,
"... |
Tic Tac Toe | Practice | GeeksforGeeks | A Tic-Tac-Toe board is given after some moves are played. Find out if the given board is valid, i.e., is it possible to reach this board position after some moves or not.
Note that every arbitrary filled grid of 9 spaces isnβt valid e.g. a grid filled with 3 X and 6 O isnβt valid situation because each player needs to ... | [
{
"code": null,
"e": 409,
"s": 238,
"text": "A Tic-Tac-Toe board is given after some moves are played. Find out if the given board is valid, i.e., is it possible to reach this board position after some moves or not."
},
{
"code": null,
"e": 580,
"s": 409,
"text": "Note that every... |
C++ Library - <map> | Map is dictionary like data structure. It is a sequence of (key, value) pair, where only single value is associated with each unique key. It is often referred as associative array.
In map key values generally used to sort the elements. For map data type of key and value can differ and it is represented as
typedef pair<... | [
{
"code": null,
"e": 2784,
"s": 2603,
"text": "Map is dictionary like data structure. It is a sequence of (key, value) pair, where only single value is associated with each unique key. It is often referred as associative array."
},
{
"code": null,
"e": 2910,
"s": 2784,
"text": "I... |
MATLAB - Data Import | Importing data in MATLAB means loading data from an external file. The importdata function allows loading various data files of different formats. It has the following five forms β
A = importdata(filename)
Loads data into array A from the file denoted by filename.
A = importdata('-pastespecial')
Loads data from the sys... | [
{
"code": null,
"e": 2322,
"s": 2141,
"text": "Importing data in MATLAB means loading data from an external file. The importdata function allows loading various data files of different formats. It has the following five forms β"
},
{
"code": null,
"e": 2347,
"s": 2322,
"text": "A... |
Setting the Image Brightness using CSS3 | To set image brightness in CSS, use filter brightness(%). Remember, the value 0 makes the image black, 100% is for original image and default. Rest, you can set any value of your choice, but values above 100% would make the image brighter.
Let us now see an example β
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
img... | [
{
"code": null,
"e": 1302,
"s": 1062,
"text": "To set image brightness in CSS, use filter brightness(%). Remember, the value 0 makes the image black, 100% is for original image and default. Rest, you can set any value of your choice, but values above 100% would make the image brighter."
},
{
... |
Estimating Parameters of Compartmental Models from Observed Data | by Abhay Shukla | Towards Data Science | In this post, we will define SEIR and SEIRD models and minimize nonlinear least squares to estimate their parameters from observed data of coronavirus cases. To perform well, nonlinear optimization techniques such as LevenbergβMarquardt (LM) algorithm need good initial guess to solve Nonlinear least squares optimizatio... | [
{
"code": null,
"e": 610,
"s": 172,
"text": "In this post, we will define SEIR and SEIRD models and minimize nonlinear least squares to estimate their parameters from observed data of coronavirus cases. To perform well, nonlinear optimization techniques such as LevenbergβMarquardt (LM) algorithm nee... |
How to count number of columns in a table with jQuery | To count number of columns in a table with jQuery, use the each() function with attr(). You can try to run the following code to learn how to count column in a table:
Live Demo
<html>
<head>
<title>jQuery Example</title>
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "To count number of columns in a table with jQuery, use the each() function with attr(). You can try to run the following code to learn how to count column in a table:"
},
{
"code": null,
"e": 1239,
"s": 1229,
"text": "Live Demo"
},... |
Powerful Text Augmentation Using NLPAUG | by Raj Sangani | Towards Data Science | Data Augmentation is the practice of synthesizing new data from data at hand. This could be applied to any form of data from numbers to images. Usually, the augmented data is similar to the data that is already available. In all Machine Learning problems the dataset determines how well the problem can be solved. Someti... | [
{
"code": null,
"e": 1262,
"s": 172,
"text": "Data Augmentation is the practice of synthesizing new data from data at hand. This could be applied to any form of data from numbers to images. Usually, the augmented data is similar to the data that is already available. In all Machine Learning problems... |
Bootstrap - Navbar | The navbar is one of the prominent features of Bootstrap sites. Navbars are responsive 'meta' components that serve as navigation headers for your application or site. Navbars collapse in mobile views and become horizontal as the available viewport width increases. At its core, the navbar includes styling for site name... | [
{
"code": null,
"e": 3675,
"s": 3331,
"text": "The navbar is one of the prominent features of Bootstrap sites. Navbars are responsive 'meta' components that serve as navigation headers for your application or site. Navbars collapse in mobile views and become horizontal as the available viewport widt... |
Trace or track Python statement execution (trace) | Function in the 'trace' module in Python library generates trace of program execution, and annotated statement coverage. It also has functions to list functions called during run by generating caller relationships.
Following two Python scripts are used as an example to demonstrate features of trace module.
#myfunctions... | [
{
"code": null,
"e": 1277,
"s": 1062,
"text": "Function in the 'trace' module in Python library generates trace of program execution, and annotated statement coverage. It also has functions to list functions called during run by generating caller relationships."
},
{
"code": null,
"e": 1... |
Laravel - Redirections | Named route is used to give specific name to a route. The name can be assigned using the βasβ array key.
Route::get('user/profile', ['as' => 'profile', function () {
//
}]);
Note β Here, we have given the name profile to a route user/profile.
Observe the following example to understand more about Redirecting to nam... | [
{
"code": null,
"e": 2577,
"s": 2472,
"text": "Named route is used to give specific name to a route. The name can be assigned using the βasβ array key."
},
{
"code": null,
"e": 2650,
"s": 2577,
"text": "Route::get('user/profile', ['as' => 'profile', function () {\n //\n}]);\n"
... |
Node.js server.address() Method | 03 Sep, 2021
The server.address() is an inbuilt application programming interface of class Socket within tls module which is used to get the bound address of the server.
Syntax:
const server.address()
Parameters: This method does not accept any parameter.
Return Value: This method return the bound address containing t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Sep, 2021"
},
{
"code": null,
"e": 185,
"s": 28,
"text": "The server.address() is an inbuilt application programming interface of class Socket within tls module which is used to get the bound address of the server."
},
{
"cod... |
Policy based data structures in g++ | 23 May, 2022
The g++ compiler also supports some data structures that are not part of the C++ standard library. Such structures are called policy-based data structures. These data structures are designed for high-performance, flexibility, semantic safety, and conformance to the corresponding containers in std.To use th... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 May, 2022"
},
{
"code": null,
"e": 426,
"s": 54,
"text": "The g++ compiler also supports some data structures that are not part of the C++ standard library. Such structures are called policy-based data structures. These data structu... |
How to Map a Rune to Uppercase in Golang? | 27 Sep, 2019
Rune is a superset of ASCII or it is an alias of int32. It holds all the characters available in the worldβs writing system, including accents and other diacritical marks, control codes like tab and carriage return, and assigns each one a standard number. This standard number is known as a Unicode code poi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2019"
},
{
"code": null,
"e": 790,
"s": 28,
"text": "Rune is a superset of ASCII or it is an alias of int32. It holds all the characters available in the worldβs writing system, including accents and other diacritical marks, con... |
Software Testing | Database Testing | 16 May, 2019
Database Testing is a type of software testing that checks the schema, tables, triggers etc. of the database under test. It involves creating complex queries for performing the load or stress test on the database and check its responsiveness. It checks integrity and consistency of data.
Database testing us... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 May, 2019"
},
{
"code": null,
"e": 316,
"s": 28,
"text": "Database Testing is a type of software testing that checks the schema, tables, triggers etc. of the database under test. It involves creating complex queries for performing th... |
Types of Digital Signature Attacks | 22 Jun, 2022
Digital Signature is a mathematical technique that verifies the authenticity of the message or document and also provides non-repudiation where the sender cannot deny signing the document. As the digital signature provides authenticity and non-repudiation in order to secure important data, it is very much ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 393,
"s": 53,
"text": "Digital Signature is a mathematical technique that verifies the authenticity of the message or document and also provides non-repudiation where the sender cannot deny signing... |
How to Change Apache HTTP Port in Linux? | 19 Feb, 2021
The Apache HTTP server is one of the internetβs most popular web servers today, thanks to its versatility, consistency, and a plethora of features, some of which are actually not available on other web servers, such as Nginxβs competitor. Some of Apacheβs most significant features include the ability to lo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2021"
},
{
"code": null,
"e": 648,
"s": 28,
"text": "The Apache HTTP server is one of the internetβs most popular web servers today, thanks to its versatility, consistency, and a plethora of features, some of which are actually ... |
Jupyter notebook VS Python IDLE | 26 May, 2020
This article will help you if you are confused about which platform to begin coding Python on as Python gives you a variety of options. We have compared two of the options.
Jupyter Notebook is basically a web application. Unlike IDEs (Integrated Development Environment), it uses the internet to run. And... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 May, 2020"
},
{
"code": null,
"e": 226,
"s": 53,
"text": "This article will help you if you are confused about which platform to begin coding Python on as Python gives you a variety of options. We have compared two of the options."
... |
Python SQLite β ORDER BY Clause | 27 Apr, 2021
In this article, we will discuss ORDER BY clause in SQLite using Python. The ORDER BY statement is a SQL statement that is used to sort the data in either ascending or descending according to one or more columns. By default, ORDER BY sorts the data in ascending order.
DESC is used to sort the data in desce... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2021"
},
{
"code": null,
"e": 297,
"s": 28,
"text": "In this article, we will discuss ORDER BY clause in SQLite using Python. The ORDER BY statement is a SQL statement that is used to sort the data in either ascending or descend... |
waitpid() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1600,
"s": 1588,
"text": "Unix - Home"
},
{
"code": null,
"e": 1623,
"s": 1600,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1646,
"s": 1623,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1665,
"s": 1... |
Python | Pandas dataframe.mode() | 24 Nov, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas dataframe.mode() function gets the mode(s) of each element along the axis selected. Ad... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n24 Nov, 2018"
},
{
"code": null,
"e": 267,
"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 im... |
Working with Images in Python using Matplotlib | 10 May, 2020
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.
The image module in matplotlib library is used for working with images in Python. The image mod... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 240,
"s": 28,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed t... |
How to read Excel file and select specific rows and columns in R? | 20 May, 2021
In this article, we will discuss how to read an Excel file and select specific rows and columns from it using R Programming Language.
File Used:
To read an Excel file into R we have to pass its path as an argument to read_excel() function readxl library.
Syntax:
read_excel(path)
To select a specific column... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 May, 2021"
},
{
"code": null,
"e": 162,
"s": 28,
"text": "In this article, we will discuss how to read an Excel file and select specific rows and columns from it using R Programming Language."
},
{
"code": null,
"e": 173,... |
What is NgClass in Angular 10 ? | 30 Apr, 2021
In this article, we are going to see what is NgClass in Angular 10 and how to use it.
NgClass is used to Add or remove CSS classes on an HTML element
Syntax:
<element [ngClass] = "typescript_property">
Approach:
Create the angular app to be used
In app.component.html make an element and sets its class usi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 114,
"s": 28,
"text": "In this article, we are going to see what is NgClass in Angular 10 and how to use it."
},
{
"code": null,
"e": 178,
"s": 114,
"text": "NgClass is used to A... |
Python | Implementation of Polynomial Regression | 22 Feb, 2022
Polynomial Regression is a form of linear regression in which the relationship between the independent variable x and dependent variable y is modeled as an nth degree polynomial. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Feb, 2022"
},
{
"code": null,
"e": 397,
"s": 54,
"text": "Polynomial Regression is a form of linear regression in which the relationship between the independent variable x and dependent variable y is modeled as an nth degree polynom... |
Java Program to Take a Snapshot From System Camera | 29 Jul, 2021
It is better to have a brief knowledge of the Swing class of java as it is applied in the implementation to do so as whenever there arises a need to deal with images or dealing with the two-dimensional matrix as an output or usage of it in generating the output in java, Swing class comes into play in achie... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 376,
"s": 54,
"text": "It is better to have a brief knowledge of the Swing class of java as it is applied in the implementation to do so as whenever there arises a need to deal with images or deali... |
Minimum distance to the corner of a grid from source | 16 Jun, 2022
Given a binary grid of order r * c and an initial position. The task is to find the minimum distance from the source to get to the any corner of the grid. A move can be made to a cell grid[i][j] only if grid[i][j] = 0 and only left, right, up and down movements are permitted. If no valid path exists then p... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 381,
"s": 54,
"text": "Given a binary grid of order r * c and an initial position. The task is to find the minimum distance from the source to get to the any corner of the grid. A move can be made ... |
How to Select Rows from Pandas DataFrame? | 10 Jul, 2020
pandas.DataFrame.loc is a function used to select rows from Pandas DataFrame based on the condition provided. In this article, letβs learn to select the rows from Pandas DataFrame based on some conditions.
Syntax: df.loc[df[βcnameβ] βconditionβ]
Parameters:df: represents data framecname: represents column ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 234,
"s": 28,
"text": "pandas.DataFrame.loc is a function used to select rows from Pandas DataFrame based on the condition provided. In this article, letβs learn to select the rows from Pandas DataF... |
Sort the Queue using Recursion | 09 Nov, 2021
Given a queue and the task is to sort it using recursion without using any loop. We can only use the following functions of queue:
empty(q): Tests whether the queue is empty or not. push(q): Adds a new element to the queue. pop(q): Removes front element from the queue. size(q): Returns the number of elem... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 185,
"s": 52,
"text": "Given a queue and the task is to sort it using recursion without using any loop. We can only use the following functions of queue: "
},
{
"code": null,
"e": 448,... |
VBA - Year Function | The Year function returns an integer that represents a year of the specified date.
Year(date)
Add a button and add the following function.
Private Sub Constant_demo_Click()
msgbox(Year("2013-06-30"))
End sub
When you execute the above function, it produces the following output.
2013
101 Lectures
6 hour... | [
{
"code": null,
"e": 2018,
"s": 1935,
"text": "The Year function returns an integer that represents a year of the specified date."
},
{
"code": null,
"e": 2031,
"s": 2018,
"text": "Year(date) \n"
},
{
"code": null,
"e": 2076,
"s": 2031,
"text": "Add a button a... |
What is CallableStatement in JDBC? | The CallableStatement interface provides methods to execute the stored procedures. Since the JDBC API provides a stored procedure SQL escape syntax, you can call stored procedures of all RDBMS in single standard way.
You can create an object of the CallableStatement (interface) using the prepareCall() method of the Con... | [
{
"code": null,
"e": 1279,
"s": 1062,
"text": "The CallableStatement interface provides methods to execute the stored procedures. Since the JDBC API provides a stored procedure SQL escape syntax, you can call stored procedures of all RDBMS in single standard way."
},
{
"code": null,
"e":... |
PostgreSQL - Removing Temporary Table - GeeksforGeeks | 28 Aug, 2020
In PostgreSQL, one can drop a temporary table by the use of the DROP TABLE statement.
Syntax: DROP TABLE temp_table_name;
Unlike the CREATE TABLE statement, the DROP TABLE statement does not have the TEMP or TEMPORARY keyword created specifically for temporary tables. To demonstrate the process of dropping... | [
{
"code": null,
"e": 24138,
"s": 24110,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 24224,
"s": 24138,
"text": "In PostgreSQL, one can drop a temporary table by the use of the DROP TABLE statement."
},
{
"code": null,
"e": 24260,
"s": 24224,
"text": "Synt... |
instanceof operator vs isInstance() Method in Java | 03 Jan, 2022
The instanceof operator and isInstance() method both are used for checking the class of the object. But the main difference comes when we want to check the class of objects dynamically then isInstance() method will work. There is no way we can do this by instanceof operator.
The isInstance method is equiva... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Jan, 2022"
},
{
"code": null,
"e": 328,
"s": 52,
"text": "The instanceof operator and isInstance() method both are used for checking the class of the object. But the main difference comes when we want to check the class of objects d... |
GATE | GATE-CS-2007 | Question 85 | 20 Nov, 2018
In a look-ahead carry generator, the carry generate function Gi and the carry propagate function Pi for inputs Ai and Bi are given by:
Pi = Ai β¨ Bi and Gi = AiBi
The expressions for the sum bit Si and the carry bit Ci+1 of the look-ahead carry adder are given by:
Si = Pi β¨ Ci and Ci+1 = Gi + PiCi , where ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Nov, 2018"
},
{
"code": null,
"e": 163,
"s": 28,
"text": "In a look-ahead carry generator, the carry generate function Gi and the carry propagate function Pi for inputs Ai and Bi are given by:"
},
{
"code": null,
"e": 191... |
Python | Pandas dataframe.eval() | 20 Nov, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas dataframe.eval() function is used to evaluate an expression in the context of the call... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Nov, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
Noble integers in an array (count of greater elements is equal to value) | 11 Jul, 2022
Given an array arr[], find a Noble integer in it. An integer x is said to be Noble in arr[] if the number of integers greater than x is equal to x. If there are many Noble integers, return any of them. If there is no, then return -1.
Examples :
Input : [7, 3, 16, 10]
Output : 3
Number of integers great... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jul, 2022"
},
{
"code": null,
"e": 288,
"s": 54,
"text": "Given an array arr[], find a Noble integer in it. An integer x is said to be Noble in arr[] if the number of integers greater than x is equal to x. If there are many Noble in... |
How to hash string with md5 function in Node.js ? | 13 Jun, 2022
Hashing means taking any string as a key and generating some other string for it as a value. Itβs like key-value pair in maps or dictionaries. md5 hash is an encryption algorithm that takes the various bits of a file and outputs a unique text string. md5 is a one-way encryption algorithm, i.e. there is no ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 690,
"s": 28,
"text": "Hashing means taking any string as a key and generating some other string for it as a value. Itβs like key-value pair in maps or dictionaries. md5 hash is an encryption algori... |
IBM HR Analytics Employee Attrition & Performance using KNN | 02 Jun, 2022
Attrition is a problem that impacts all businesses, irrespective of geography, industry and size of the company. It is a major problem to an organization, and predicting turnover is at the forefront of the needs of Human Resources (HR) in many organizations. Organizations face huge costs resulting from emp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jun, 2022"
},
{
"code": null,
"e": 710,
"s": 28,
"text": "Attrition is a problem that impacts all businesses, irrespective of geography, industry and size of the company. It is a major problem to an organization, and predicting turno... |
Encrypting and Decrypting the Files Using GnuPG in Linux | 18 Jun, 2021
GnuPG is an encryption module that uses OpenPGP at its core. PGP stands for Pretty Good Privacy. It is an encryption program that provides authentication and cryptographic privacy for data communication. In the age where data is the new oil, the modern age thieves wonβt intrude in through doors, windows or... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2021"
},
{
"code": null,
"e": 540,
"s": 28,
"text": "GnuPG is an encryption module that uses OpenPGP at its core. PGP stands for Pretty Good Privacy. It is an encryption program that provides authentication and cryptographic pri... |
Python program to convert camel case string to snake case | 01 Feb, 2021
Given a string in camel case, write a Python program to convert the given string from camel case to snake case.Examples:
Input : GeeksForGeeks
Output : geeks_for_geeks
Input : ThisIsInCamelCase
Output : this_is_in_camel_case
Letβs see the different ways we can do this task. Method #1 : Naive ApproachThis... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 150,
"s": 28,
"text": "Given a string in camel case, write a Python program to convert the given string from camel case to snake case.Examples: "
},
{
"code": null,
"e": 255,
"s": 15... |
String containing first letter of every word in a given string with spaces | 02 Jul, 2022
String str is given which contains lowercase English letters and spaces. It may contain multiple spaces. Get the first letter of every word and return the result as a string. The result should not contain any space.
Examples:
Input : str = "geeks for geeks"
Output : gfg
Input : str = "happy coding"
Ou... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jul, 2022"
},
{
"code": null,
"e": 269,
"s": 52,
"text": "String str is given which contains lowercase English letters and spaces. It may contain multiple spaces. Get the first letter of every word and return the result as a string.... |
What is Collation and Character Set in MySQL? | 07 Sep, 2020
MySQL Collation has always been a mystifying topic for beginners of MySQL learners. A MySQL collation is a well-defined set of rules which are used to compare characters of a particular character-set by using their corresponding encoding. Each character set in MySQL might have more than one collation, and... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Sep, 2020"
},
{
"code": null,
"e": 451,
"s": 54,
"text": "MySQL Collation has always been a mystifying topic for beginners of MySQL learners. A MySQL collation is a well-defined set of rules which are used to compare characters of ... |
MongoDB β Comparison Query Operators | 10 May, 2020
MongoDB uses various comparison query operators to compare the values of the documents. The following table contains the comparison query operators:
In the following examples, we are working with:
Database: GeeksforGeeksCollection: contributorDocument: three documents that contain the details of the contri... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 177,
"s": 28,
"text": "MongoDB uses various comparison query operators to compare the values of the documents. The following table contains the comparison query operators:"
},
{
"code": null... |
Count consonants in a string (Iterative and recursive methods) | 15 Jul, 2022
Given a string, count total number of consonants in it. A consonant is a English alphabet character that is not vowel (a, e, i, o and u). Examples of constants are b, c, d, f, g, ..
Examples :
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
captions off, selected
Engl... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Jul, 2022"
},
{
"code": null,
"e": 234,
"s": 52,
"text": "Given a string, count total number of consonants in it. A consonant is a English alphabet character that is not vowel (a, e, i, o and u). Examples of constants are b, c, d, f... |
Bayesβ Theorem, Simply Explained. If ignorance is bliss, knowing how to... | by Riccardo Di Sipio | Towards Data Science | Bayesβ Theorem formalizes how to calculate the probability of an event to occur given our incomplete knowledge about other factors affecting its realization, and our pre-existing belief. For example, is it going to rain today if the sky is cloudy?
Letβs start with some basic definitions. The probability of an event A t... | [
{
"code": null,
"e": 420,
"s": 172,
"text": "Bayesβ Theorem formalizes how to calculate the probability of an event to occur given our incomplete knowledge about other factors affecting its realization, and our pre-existing belief. For example, is it going to rain today if the sky is cloudy?"
},
... |
What's the difference between assignment operator and copy constructor in C++? | The Copy constructor and the assignment operators are used to initialize one object to another object. The main difference between them is that the copy constructor creates a separate memory block for the new object. But the assignment operator does not make new memory space. It uses reference variable to point to the ... | [
{
"code": null,
"e": 1405,
"s": 1062,
"text": "The Copy constructor and the assignment operators are used to initialize one object to another object. The main difference between them is that the copy constructor creates a separate memory block for the new object. But the assignment operator does not... |
Face Recognition for Beginners. Face Recognition is a recognition... | by Divyansh Dwivedi | Towards Data Science | Face Recognition is a recognition technique used to detect faces of individuals whose images saved in the data set. Despite the point that other methods of identification can be more accurate, face recognition has always remained a significant focus of research because of its non-meddling nature and because it is peopl... | [
{
"code": null,
"e": 538,
"s": 172,
"text": "Face Recognition is a recognition technique used to detect faces of individuals whose images saved in the data set. Despite the point that other methods of identification can be more accurate, face recognition has always remained a significant focus of re... |
8 Types of Sampling Techniques. Understanding Sampling Methods (Visuals... | by Prakhar Mishra | Towards Data Science | Sampling is the process of selecting a subset(a predetermined number of observations) from a larger population. Itβs a pretty common technique wherein, we run experiments and draw conclusions about the population, without the need of having to study the entire population. In this blog, we will go through two types of s... | [
{
"code": null,
"e": 508,
"s": 171,
"text": "Sampling is the process of selecting a subset(a predetermined number of observations) from a larger population. Itβs a pretty common technique wherein, we run experiments and draw conclusions about the population, without the need of having to study the e... |
Division without using β/β operator in C++ Program | In this tutorial, we are going to learn how to divide a number without using the division (/) operator.
We have given two numbers, the program should return the quotient of the division operation.
We are going to use the subtraction (-) operator for the division.
Let's see the steps to solve the problem.
Initialize the... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "In this tutorial, we are going to learn how to divide a number without using the division (/) operator."
},
{
"code": null,
"e": 1259,
"s": 1166,
"text": "We have given two numbers, the program should return the quotient of the divis... |
Design and Implement Special Stack Data Structure | Added Space Optimized Version - GeeksforGeeks | 21 Feb, 2022
Question: Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you sho... | [
{
"code": null,
"e": 39005,
"s": 38977,
"text": "\n21 Feb, 2022"
},
{
"code": null,
"e": 39410,
"s": 39005,
"text": "Question: Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() ... |
How do I display only the visible text with jQuery? | To display only the visible text, use the concept of β visible selector in jQuery. It selects the
element currently visible. Following is the code β
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initialscale=
1.0">
<title>Document</title>
<l... | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "To display only the visible text, use the concept of β visible selector in jQuery. It selects the\nelement currently visible. Following is the code β"
},
{
"code": null,
"e": 1222,
"s": 1211,
"text": " Live Demo"
},
{
"code":... |
Cryptography with Python - XOR Process | In this chapter, let us understand the XOR process along with its coding in Python.
XOR algorithm of encryption and decryption converts the plain text in the format ASCII bytes and uses XOR procedure to convert it to a specified byte. It offers the following advantages to its users β
Fast computation
No difference mark... | [
{
"code": null,
"e": 2376,
"s": 2292,
"text": "In this chapter, let us understand the XOR process along with its coding in Python."
},
{
"code": null,
"e": 2577,
"s": 2376,
"text": "XOR algorithm of encryption and decryption converts the plain text in the format ASCII bytes and u... |
Android Popup Menu Example | Popup menu just like a menu, it going to be display either above of the view or below of the view according to space on activity. Here is the simple solution to create android popup menu.
Step 1 β Create a new project in Android Studio, go to File β New Project and fill all required details to create a new project.
Ste... | [
{
"code": null,
"e": 1250,
"s": 1062,
"text": "Popup menu just like a menu, it going to be display either above of the view or below of the view according to space on activity. Here is the simple solution to create android popup menu."
},
{
"code": null,
"e": 1379,
"s": 1250,
"te... |
\bigvee - Tex Command | \bigvee - Used to draw big V symbol.
{ \bigvee }
\bigvee command draws V symbol.
\bigvee
β
\bigvee
β
\bigvee
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 hours
Moham... | [
{
"code": null,
"e": 8023,
"s": 7986,
"text": "\\bigvee - Used to draw big V symbol."
},
{
"code": null,
"e": 8035,
"s": 8023,
"text": "{ \\bigvee }"
},
{
"code": null,
"e": 8067,
"s": 8035,
"text": "\\bigvee command draws V symbol."
},
{
"code": null,... |
Array sum in C++ STL | The array is a linear data structure that stores elements of the same data type in continuous memory locations.
Array sum is the sum of all elements of the array.
In c++ programming language there are multiple methods by with you can find the array sum.
The basic method to find the sum of all elements of the array is t... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "The array is a linear data structure that stores elements of the same data type in continuous memory locations."
},
{
"code": null,
"e": 1225,
"s": 1174,
"text": "Array sum is the sum of all elements of the array."
},
{
"code... |
How to detect shake event in Android app? | This example demonstrates how to do I 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="utf-8"?>
<LinearLayout xmlns:android="http://s... | [
{
"code": null,
"e": 1112,
"s": 1062,
"text": "This example demonstrates how to do I in android."
},
{
"code": null,
"e": 1241,
"s": 1112,
"text": "Step 1 β Create a new project in Android Studio, go to File β New Project and fill all required details to create a new project."
... |
Mouse swipe controls in Angular 9 using HammerJS - GeeksforGeeks | 19 Aug, 2020
Angular is an application design framework and development platform for creating efficient and sophisticated single-page apps. It has been changed a lot from its first release. And it keeps adding new features and modifications in its releases which is a good thing. But sometimes what we have used in the p... | [
{
"code": null,
"e": 24743,
"s": 24715,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 25135,
"s": 24743,
"text": "Angular is an application design framework and development platform for creating efficient and sophisticated single-page apps. It has been changed a lot from its f... |
Kibana - Introduction To Elk Stack | Kibana is an open source visualization tool mainly used to analyze a large volume of logs in the form of line graph, bar graph, pie charts, heatmaps etc. Kibana works in sync with Elasticsearch and Logstash which together forms the so called ELK stack.
ELK stands for Elasticsearch, Logstash, and Kibana. ELK is one of t... | [
{
"code": null,
"e": 2358,
"s": 2105,
"text": "Kibana is an open source visualization tool mainly used to analyze a large volume of logs in the form of line graph, bar graph, pie charts, heatmaps etc. Kibana works in sync with Elasticsearch and Logstash which together forms the so called ELK stack."... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.