title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to Insert Records to a Table using JDBC Connection? - GeeksforGeeks | 20 Nov, 2020
Before inserting contents in a table we need to connect our java application to our database. Java has its own API which JDBC API which uses JDBC drivers for database connections. Before JDBC, ODBC API was used but it was written in C which means it was platform-dependent. JDBC API provides the application... | [
{
"code": null,
"e": 26017,
"s": 25989,
"text": "\n20 Nov, 2020"
},
{
"code": null,
"e": 26402,
"s": 26017,
"text": "Before inserting contents in a table we need to connect our java application to our database. Java has its own API which JDBC API which uses JDBC drivers for datab... |
TCS Digital Interview Experience (On-Campus) - GeeksforGeeks | 13 Jan, 2022
Company – TCS (Digital Profile)
Job Profile – System Engineer
Eligibility:
All Branches B.Tech, M.Tech
% in X and XII – 60% or 6.0 CGPA
In Pursuing Degree – 70% or 7.0 CGPA
In UG (for PGs) – 60% or 6.0 CGPA
Round 1(Aptitude Test):
It was divided into two parts and was held in two days. First day it was... | [
{
"code": null,
"e": 26125,
"s": 26097,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 26157,
"s": 26125,
"text": "Company – TCS (Digital Profile)"
},
{
"code": null,
"e": 26187,
"s": 26157,
"text": "Job Profile – System Engineer"
},
{
"code": null,
... |
How to use useMediaQuery Component in ReactJS ? - GeeksforGeeks | 13 Apr, 2021
The useMediaQuery Component is a CSS media query hook for React. Using this functionality, we can write our own CSS media query for which this function looks for a match, and it renders if the query matches. Material UI for React has this component available for us, and it is very easy to integrate. We can... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 26449,
"s": 26071,
"text": "The useMediaQuery Component is a CSS media query hook for React. Using this functionality, we can write our own CSS media query for which this function looks for a... |
How to detect operating system on the client machine using JavaScript ? - GeeksforGeeks | 16 Aug, 2019
To detect the operating system on the client machine, one can simply use navigator.appVersion or navigator.userAgent property.The Navigator appVersion property is a read-only property and it returns a string which represents the version information of the browser.
Syntax
navigator.appVersion
Example 1: Thi... | [
{
"code": null,
"e": 26102,
"s": 26074,
"text": "\n16 Aug, 2019"
},
{
"code": null,
"e": 26367,
"s": 26102,
"text": "To detect the operating system on the client machine, one can simply use navigator.appVersion or navigator.userAgent property.The Navigator appVersion property is ... |
Python - Convert Key-Value list Dictionary to List of Lists - GeeksforGeeks | 22 Apr, 2020
Sometimes, while working with Python dictionary, we can have a problem in which we need to perform the flattening a key value pair of dictionary to a list and convert to lists of list. This can have applications in domains in which we have data. Lets discuss certain ways in which this task can be performed... | [
{
"code": null,
"e": 25533,
"s": 25505,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 25842,
"s": 25533,
"text": "Sometimes, while working with Python dictionary, we can have a problem in which we need to perform the flattening a key value pair of dictionary to a list and conv... |
How to Get directory of Current Script in Python? - GeeksforGeeks | 26 Nov, 2020
A Parent directory is a directory above another file/directory in a hierarchical file system. Getting the Parent directory is essential in performing certain tasks related to filesystem management. In this article, we will take a look at methods used for obtaining the Parent directory of the currently runn... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Nov, 2020"
},
{
"code": null,
"e": 26085,
"s": 25537,
"text": "A Parent directory is a directory above another file/directory in a hierarchical file system. Getting the Parent directory is essential in performing certain tasks... |
How to hide div element by default and show it on click using JavaScript and Bootstrap ? - GeeksforGeeks | 31 Dec, 2019
The task is to show a hidden div on click using Bootstrap. There are two methods to solve this problem which are discussed below:
Approach 1:
Set display: none property of the div that needs to be displayed.
Use .show() method to display the div element.
Example: This example implements the above approach.... | [
{
"code": null,
"e": 26502,
"s": 26474,
"text": "\n31 Dec, 2019"
},
{
"code": null,
"e": 26632,
"s": 26502,
"text": "The task is to show a hidden div on click using Bootstrap. There are two methods to solve this problem which are discussed below:"
},
{
"code": null,
"... |
Flutter - A Simple Multi-Player Dice Game - GeeksforGeeks | 16 Aug, 2021
Here, we are going to create a dice game. As the name suggests there will be two dice and either player one or player two rolls the dice and according to the result the winner is decided.
Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and emb... | [
{
"code": null,
"e": 25209,
"s": 25181,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 25397,
"s": 25209,
"text": "Here, we are going to create a dice game. As the name suggests there will be two dice and either player one or player two rolls the dice and according to the resul... |
Angular PrimeNG Tooltip Component - GeeksforGeeks | 11 Sep, 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 Tooltip component in Angular PrimeNG. We will also learn about... | [
{
"code": null,
"e": 24718,
"s": 24690,
"text": "\n11 Sep, 2021"
},
{
"code": null,
"e": 25108,
"s": 24718,
"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 resp... |
Currying Functions in Scala with Examples - GeeksforGeeks | 13 Feb, 2019
Currying in Scala is simply a technique or a process of transforming a function. This function takes multiple arguments into a function that takes single argument. It is applied widely in multiple functional languages. Syntax
def function name(argument1, argument2) = operation
Let’s understand with a simpl... | [
{
"code": null,
"e": 23990,
"s": 23962,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 24216,
"s": 23990,
"text": "Currying in Scala is simply a technique or a process of transforming a function. This function takes multiple arguments into a function that takes single argument.... |
How do we create an image map in HTML? | To add an image map, use the <map> tag in HTML. The HTML <map> tag is used for defining an image map along with <img> tag.
The following is the attribute −
You can try to run the following code to learn how to create an image map in HTML −
<!DOCTYPE html>
<html>
<head>
<title>HTML map Tag</title>
</head>
... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "To add an image map, use the <map> tag in HTML. The HTML <map> tag is used for defining an image map along with <img> tag."
},
{
"code": null,
"e": 1218,
"s": 1185,
"text": "The following is the attribute −"
},
{
"code": null... |
Python | Numpy numpy.matrix.H() - GeeksforGeeks | 08 Apr, 2019
With the help of Numpy numpy.matrix.H() method, we can make a conjugate Transpose of any complex matrix either having dimension one or more than more.
Syntax : numpy.matrix.H()
Return : Return conjugate transpose of every complex matrix
Example #1 :In this example we can see that with the help of matrix.H(... | [
{
"code": null,
"e": 24420,
"s": 24392,
"text": "\n08 Apr, 2019"
},
{
"code": null,
"e": 24571,
"s": 24420,
"text": "With the help of Numpy numpy.matrix.H() method, we can make a conjugate Transpose of any complex matrix either having dimension one or more than more."
},
{
... |
How to set "step" on axis X in my figure in Matplotlib Python 2.6.6? | To set Step on X-axis in a figure in Matplotlib Python, we can take the following Steps −
Create a list of data points, x.
Add a subplot to the current figure using subplot() method.
Set xticks and ticklabels with rotation=45.
To display the figure, use show() method.
import matplotlib.pyplot as plt
plt.rcParams["figur... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "To set Step on X-axis in a figure in Matplotlib Python, we can take the following Steps −"
},
{
"code": null,
"e": 1185,
"s": 1152,
"text": "Create a list of data points, x."
},
{
"code": null,
"e": 1245,
"s": 1185,
... |
Convex Hull | Practice | GeeksforGeeks | Convex Hull of a set of points, in 2D plane, is a convex polygon with minimum area such that each point lies either on the boundary of polygon or inside it. Now given a set of points the task is to find the convex hull of points.
Example 1:
Input: points_list = {{1,2},{3,1},{5,6}}
Output: {{1,2},{3,1},{5,6}}
Example... | [
{
"code": null,
"e": 470,
"s": 238,
"text": "Convex Hull of a set of points, in 2D plane, is a convex polygon with minimum area such that each point lies either on the boundary of polygon or inside it. Now given a set of points the task is to find the convex hull of points.\n "
},
{
"code": ... |
How set AWS Access Keys in Windows or Mac Environment - onlinetutorialspoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
It is important to know how to set AWS Access... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Static Members of a C++ Class | We can define class members static using static keyword. When we declare a member of a class as static it means no matter how many objects of the class are created, there is only one copy of the static member.
A static member is shared by all objects of the class. All static data is initialized to zero when the first o... | [
{
"code": null,
"e": 2528,
"s": 2318,
"text": "We can define class members static using static keyword. When we declare a member of a class as static it means no matter how many objects of the class are created, there is only one copy of the static member."
},
{
"code": null,
"e": 2926,
... |
Java AWT | Ellipse2D - GeeksforGeeks | 31 Oct, 2019
Ellipse2D class is present in java.awt.geom package and it is used to define an ellipse by stating its framing rectangle. This class is only the abstract superclass for all objects which store a 2D ellipse.
Ellipse2D.Double defines an ellipse with double precision.
Ellipse2D.Float defines an ellipse with f... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n31 Oct, 2019"
},
{
"code": null,
"e": 24155,
"s": 23948,
"text": "Ellipse2D class is present in java.awt.geom package and it is used to define an ellipse by stating its framing rectangle. This class is only the abstract superclas... |
0/1 Knapsack using Least Cost Branch and Bound - GeeksforGeeks | 01 Feb, 2022
Given N items with weights W[0..n-1], values V[0..n-1] and a knapsack with capacity C, select the items such that:
The sum of weights taken into the knapsack is less than or equal to C.The sum of values of the items in the knapsack is maximum among all the possible combinations.
The sum of weights taken ... | [
{
"code": null,
"e": 24700,
"s": 24672,
"text": "\n01 Feb, 2022"
},
{
"code": null,
"e": 24817,
"s": 24700,
"text": "Given N items with weights W[0..n-1], values V[0..n-1] and a knapsack with capacity C, select the items such that: "
},
{
"code": null,
"e": 24982,
... |
SQL Interview Questions | Dear readers, these SQL Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of SQL. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start wi... | [
{
"code": null,
"e": 2883,
"s": 2453,
"text": "Dear readers, these SQL Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of SQL. As per my experience good interviewers hardly plan to ask any par... |
Biopython - Plotting | This chapter explains about how to plot sequences. Before moving to this topic, let us understand the basics of plotting.
Matplotlib is a Python plotting library which produces quality figures in a variety of formats. We can create different types of plots like line chart, histograms, bar chart, pie chart, scatter char... | [
{
"code": null,
"e": 2228,
"s": 2106,
"text": "This chapter explains about how to plot sequences. Before moving to this topic, let us understand the basics of plotting."
},
{
"code": null,
"e": 2434,
"s": 2228,
"text": "Matplotlib is a Python plotting library which produces quali... |
How to Optimize Learning Rate with TensorFlow — It’s Easier Than You Think | by Dario Radečić | Towards Data Science | Tuning neural network models is no joke. There are so many hyperparameters to tune, and tuning all of them at once using a grid search approach could take weeks, even months. Learning rate is a hyperparameter you can tune in a couple of minutes, provided you know how. This article will teach you how.
The learning rate ... | [
{
"code": null,
"e": 474,
"s": 172,
"text": "Tuning neural network models is no joke. There are so many hyperparameters to tune, and tuning all of them at once using a grid search approach could take weeks, even months. Learning rate is a hyperparameter you can tune in a couple of minutes, provided ... |
Reshape pandas dataframe in Python | Towards Data Science | There are many different ways to reshape a pandas dataframe from wide to long form. But the melt() method is the most flexible and probably the only one you need to use once you learn it well, just like how you only need to learn one method pivot_table() to reshape from long to wide (see my other post below).
towardsda... | [
{
"code": null,
"e": 483,
"s": 172,
"text": "There are many different ways to reshape a pandas dataframe from wide to long form. But the melt() method is the most flexible and probably the only one you need to use once you learn it well, just like how you only need to learn one method pivot_table() ... |
Color Spaces in OpenCV | Python - GeeksforGeeks | 20 Apr, 2022
Color spaces are a way to represent the color channels present in the image that gives the image that particular hue. There are several different color spaces and each has its own significance. Some of the popular color spaces are RGB (Red, Green, Blue), CMYK (Cyan, Magenta, Yellow, Black), HSV (Hue, Satur... | [
{
"code": null,
"e": 26403,
"s": 26375,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 27778,
"s": 26403,
"text": "Color spaces are a way to represent the color channels present in the image that gives the image that particular hue. There are several different color spaces and ... |
Matplotlib.patches.Circle class in Python - GeeksforGeeks | 27 Apr, 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 matplotlib.patches.Circle class is used to create a circular patch at a given center xy = (... | [
{
"code": null,
"e": 24798,
"s": 24770,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 25010,
"s": 24798,
"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 an... |
Vector of Vectors in C++ STL with Examples | 14 Feb, 2020
Prerequisite: Vectors in C++ STL
Vectors are known 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.
Vector of Vectors is a two-dimensional vector with a variable number of rows where ea... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Feb, 2020"
},
{
"code": null,
"e": 85,
"s": 52,
"text": "Prerequisite: Vectors in C++ STL"
},
{
"code": null,
"e": 274,
"s": 85,
"text": "Vectors are known as dynamic arrays with the ability to resize itself auto... |
HTML | data value attribute | 15 Jul, 2021
The HTML data value attribute is used to Specify the machine-readable translation of the content of the element.Syntax:
<data attribute> Contents... </data>
Example:
html
<!DOCTYPE html><html> <head> <title>data tag</title></head> <body> <h1 style="color:green;">GeeksforGeeks</h1> <h2> HTML data... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 149,
"s": 28,
"text": "The HTML data value attribute is used to Specify the machine-readable translation of the content of the element.Syntax: "
},
{
"code": null,
"e": 187,
"s": 149... |
Retrieving File Data From HDFS using Python Snakebite | 16 Jun, 2022
Prerequisite: Hadoop Installation, HDFS
Python Snakebite is a very popular Python library that we can use to communicate with the HDFS. Using the Python client library provided by the Snakebite package we can easily write Python code that works on HDFS. It uses protobuf messages to communicate directly wit... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Jun, 2022"
},
{
"code": null,
"e": 68,
"s": 28,
"text": "Prerequisite: Hadoop Installation, HDFS"
},
{
"code": null,
"e": 485,
"s": 68,
"text": "Python Snakebite is a very popular Python library that we can use to... |
HTTP header | X-Forwarded-Host | 22 Nov, 2019
The HTTP X-Forwarded-Host header is a request-type header de-facto standard header. This header is used to identify the original request made by the client. Because the hostnames and the ports differ in the reverse proxies that time this header took the leade and identify the original request. This header ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Nov, 2019"
},
{
"code": null,
"e": 524,
"s": 54,
"text": "The HTTP X-Forwarded-Host header is a request-type header de-facto standard header. This header is used to identify the original request made by the client. Because the hostn... |
Operations on Matrices in R | 28 Jun, 2022
Matrices in R are a bunch of values, either real or complex numbers, arranged in a group of fixed number of rows and columns. Matrices are used to depict the data in a structured and well-organized format. It is necessary to enclose the elements of a matrix in parentheses or brackets. A matrix with 9 eleme... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 689,
"s": 28,
"text": "Matrices in R are a bunch of values, either real or complex numbers, arranged in a group of fixed number of rows and columns. Matrices are used to depict the data in a structu... |
Stern-Brocot Sequence | 07 May, 2021
Stern Brocot sequence is similar to Fibonacci sequence but it is different in the way fibonacci sequence is generated . Generation of Stern Brocot sequence :
1. First and second element of the sequence is 1 and 1.2. Consider the second member of the sequence . Then, sum the considered member of the sequen... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 May, 2021"
},
{
"code": null,
"e": 211,
"s": 52,
"text": "Stern Brocot sequence is similar to Fibonacci sequence but it is different in the way fibonacci sequence is generated . Generation of Stern Brocot sequence : "
},
{
"... |
PostgreSQL – WHERE clause | 28 Aug, 2020
The PostgreSQL WHERE clause is used to filter results returned by the SELECT statement.
Syntax: SELECT select_list FROM table_name WHERE condition;
Let’s analyze the above syntax:
The WHERE clause appears right after the FROM clause of the SELECT statement
The condition evaluates to true, false, or unknown... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 116,
"s": 28,
"text": "The PostgreSQL WHERE clause is used to filter results returned by the SELECT statement."
},
{
"code": null,
"e": 176,
"s": 116,
"text": "Syntax: SELECT sel... |
Python | sympy.evalf() method | 18 Jun, 2019
With the help of sympy.evalf() method, we are able to evaluate the mathematical expressions.
Syntax : sympy.evalf()Return : Return the evaluated mathematical expression.
Example #1 :In this example we can see that by using sympy.evalf() method, we are able to evaluate the mathematical expressions.
# Import... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2019"
},
{
"code": null,
"e": 121,
"s": 28,
"text": "With the help of sympy.evalf() method, we are able to evaluate the mathematical expressions."
},
{
"code": null,
"e": 198,
"s": 121,
"text": "Syntax : symp... |
GUI Billing System and Menu Card Using Python | 25 May, 2022
So imagine that we’re starting a new restaurant or being appointed as one of the employees in a restaurant company, and we find out that there’s no fast method of doing the billing of customers, and it usually takes times for us to calculate the amount that a customer has to pay. This can be really annoyin... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 535,
"s": 52,
"text": "So imagine that we’re starting a new restaurant or being appointed as one of the employees in a restaurant company, and we find out that there’s no fast method of doing the b... |
Neural Network: How Many Layers and Neurons Are Necessary | by Angela Shi | Towards Data Science | When creating Neural Networks, one has to ask: how many hidden layers, and how many neurons in each layer are necessary?
When it comes to complex real data, Andrew Ng suggests in his course on Coursera: Improving Deep Neural Networks, that it is a highly iterative process, and so we have to run many tests to find the o... | [
{
"code": null,
"e": 293,
"s": 172,
"text": "When creating Neural Networks, one has to ask: how many hidden layers, and how many neurons in each layer are necessary?"
},
{
"code": null,
"e": 516,
"s": 293,
"text": "When it comes to complex real data, Andrew Ng suggests in his cou... |
How to join two Arrays using STL in C++? - GeeksforGeeks | 19 Mar, 2019
Given two arrays, join these two arrays using STL in C++.
Example:
Input:arr1[] = {1, 45, 54, 71, 76, 12},arr2[] = {1, 7, 5, 4, 6, 12}Output: {1, 4, 5, 6, 7, 12, 45, 54, 71, 76}
Input:arr1[] = {1, 7, 5, 4, 6, 12},arr2[] = {10, 12, 11}Output: {1, 4, 5, 6, 7, 10, 11, 12}
Approach: Joining can be done with th... | [
{
"code": null,
"e": 23732,
"s": 23704,
"text": "\n19 Mar, 2019"
},
{
"code": null,
"e": 23790,
"s": 23732,
"text": "Given two arrays, join these two arrays using STL in C++."
},
{
"code": null,
"e": 23799,
"s": 23790,
"text": "Example:"
},
{
"code": n... |
How to use subSet() method of Java NavigableSet Class | Use the subset() method to get elements from a limit. At first, create NavigableSet and add elements −
NavigableSet<Integer> set = new TreeSet<>();
set.add(10);
set.add(25);
set.add(40);
set.add(55);
set.add(70);
set.add(85);
Now, use the subset() method −
set.subSet(40, 85)
The following is an example to implement sub... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "Use the subset() method to get elements from a limit. At first, create NavigableSet and add elements −"
},
{
"code": null,
"e": 1288,
"s": 1165,
"text": "NavigableSet<Integer> set = new TreeSet<>();\nset.add(10);\nset.add(25);\nset.a... |
Spring Boot Hazelcast Cache Example OnlineTutorialsPoint | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
Hazelcast is an in-memory distributed caching... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Calculate Inverse cosine of a value in R Programming - acos() Function - GeeksforGeeks | 01 Jun, 2020
acos() function in R Language is used to calculate the inverse cosine value of the numeric value passed to it as argument.
Syntax: acos(x)
Parameter:x: Numeric value
Example 1:
# R code to calculate inverse cosine of a value # Assigning values to variables x1 <- -1x2 <- 0.5 # Using acos() Functionacos(x1... | [
{
"code": null,
"e": 24900,
"s": 24872,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 25023,
"s": 24900,
"text": "acos() function in R Language is used to calculate the inverse cosine value of the numeric value passed to it as argument."
},
{
"code": null,
"e": 250... |
Scala Set toArray() method with example - GeeksforGeeks | 18 Oct, 2019
The toArray() is utilized to return an array consisting of all the elements of the set.
Method Definition: def toArray: Array[A]
Return Type: It returns an array consisting of all the elements of the set.
Example #1:
// Scala program of toArray() // method // Creating object object GfG { // Main me... | [
{
"code": null,
"e": 25411,
"s": 25383,
"text": "\n18 Oct, 2019"
},
{
"code": null,
"e": 25499,
"s": 25411,
"text": "The toArray() is utilized to return an array consisting of all the elements of the set."
},
{
"code": null,
"e": 25540,
"s": 25499,
"text": "Me... |
Program to calculate volume of Ellipsoid - GeeksforGeeks | 17 Mar, 2021
Ellipsoid, closed surface of which all plane cross sections are either ellipses or circles. An ellipsoid is symmetrical about three mutually perpendicular axes that intersect at the center. It is a three-dimensional, closed geometric shape, all planar sections of which are ellipses or circles. An ellipsoid... | [
{
"code": null,
"e": 26277,
"s": 26249,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 26930,
"s": 26277,
"text": "Ellipsoid, closed surface of which all plane cross sections are either ellipses or circles. An ellipsoid is symmetrical about three mutually perpendicular axes tha... |
BinarySearch() method in C# | BinarySearch() works on a sorted list whether its numeric, alphanumeric or strings. It finds you the index of an element.
Let’s say the following is our list.
List<int> list = new List<int>();
list.Add(70);
list.Add(150);
list.Add(220);
list.Add(250);
list.Add(300);
Now to check the index where 250 is placed, use Binar... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "BinarySearch() works on a sorted list whether its numeric, alphanumeric or strings. It finds you the index of an element."
},
{
"code": null,
"e": 1221,
"s": 1184,
"text": "Let’s say the following is our list."
},
{
"code": n... |
Option Greeks in Python. JAX for automatic... | by Roman Paolucci | Towards Data Science | Option greeks are essential to every options trader. But, what are the greeks precisely? The greeks are the partial-derivatives of the Black-Scholes equation with respect to each variable...
The Greeks
Delta — Δ — first partial-derivative with respect to the underlying asset
Gamma — γ — 2nd partial-derivative with resp... | [
{
"code": null,
"e": 238,
"s": 47,
"text": "Option greeks are essential to every options trader. But, what are the greeks precisely? The greeks are the partial-derivatives of the Black-Scholes equation with respect to each variable..."
},
{
"code": null,
"e": 249,
"s": 238,
"text... |
MySQL - Insert current date/time? | To insert only date value, use curdate() in MySQL. With that, if you want to get the entire datetime, then you can use now() method.
Let us first create a table −
mysql> create table CurDateDemo
-> (
-> ArrivalDate datetime
-> );
Query OK, 0 rows affected (0.74 sec)
Now you can insert only date with the help o... | [
{
"code": null,
"e": 1195,
"s": 1062,
"text": "To insert only date value, use curdate() in MySQL. With that, if you want to get the entire datetime, then you can use now() method."
},
{
"code": null,
"e": 1225,
"s": 1195,
"text": "Let us first create a table −"
},
{
"code... |
Java Virtual Machine - The JIT Compiler | In this chapter, we shall learn about JIT compiler, and the difference between compiled and interpreted languages.
Languages such as C, C++ and FORTRAN are compiled languages. Their code is delivered as binary code targeted at the underlying machine. This means that the high-level code is compiled into binary code at o... | [
{
"code": null,
"e": 1965,
"s": 1850,
"text": "In this chapter, we shall learn about JIT compiler, and the difference between compiled and interpreted languages."
},
{
"code": null,
"e": 2317,
"s": 1965,
"text": "Languages such as C, C++ and FORTRAN are compiled languages. Their ... |
Bootstrap 4 .justify-content-*-start class | Use the justify-content-start class in Bootstrap to justify content in the beginning.
The justify-content-*-start class is used in Bootstrap to justify content in the beginning on different screen sizes like the following on small, medium, and large screen sizes −
You can try to run the following code to implement the ... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "Use the justify-content-start class in Bootstrap to justify content in the beginning."
},
{
"code": null,
"e": 1327,
"s": 1148,
"text": "The justify-content-*-start class is used in Bootstrap to justify content in the beginning on di... |
javac - Unix, Linux Command | There are two ways to pass source code file names to
javac:
Inner class definitions produce additional class files.
These class files have names combining the inner and outer class names,
such as
MyClass$MyInnerClass.class.
You should arrange source files in a directory tree that reflects
their package tree.
For ex... | [
{
"code": null,
"e": 10639,
"s": 10577,
"text": "\nThere are two ways to pass source code file names to\njavac: "
},
{
"code": null,
"e": 10805,
"s": 10639,
"text": "\nInner class definitions produce additional class files.\nThese class files have names combining the inner and ou... |
Support Vector Machine (SVM) for Anomaly Detection | by Mahbubul Alam | Towards Data Science | An expert or a novice in machine learning, you probably have heard about Support Vector Machine (SVM) — a supervised machine learning algorithm frequently cited and used in classification problems. SVMs use hyperplanes in multi-dimensional space to separate one class of observations from another. Naturally, SVM is used... | [
{
"code": null,
"e": 541,
"s": 172,
"text": "An expert or a novice in machine learning, you probably have heard about Support Vector Machine (SVM) — a supervised machine learning algorithm frequently cited and used in classification problems. SVMs use hyperplanes in multi-dimensional space to separa... |
Deploying a basic Streamlit app. This article demonstrates the... | by KSV Muralidhar | Towards Data Science | Streamlit is an app framework to deploy machine learning apps built using Python. It is an open-source framework which is similar to the Shiny package in R. This article assumes the reader to have basic working knowledge of Conda environment, Git and machine learning with Python.
We’ll fit a Logistic Regression model t... | [
{
"code": null,
"e": 452,
"s": 171,
"text": "Streamlit is an app framework to deploy machine learning apps built using Python. It is an open-source framework which is similar to the Shiny package in R. This article assumes the reader to have basic working knowledge of Conda environment, Git and mach... |
Finding first non-repeating character JavaScript | We have an array of Numbers/String literals where most of the entries are repeated. Our job is
to write a function that takes in this array and returns the index of first such element which does
not make consecutive appearances.
If there are no such elements in the array, our function should return -1. So now, let's wr... | [
{
"code": null,
"e": 1291,
"s": 1062,
"text": "We have an array of Numbers/String literals where most of the entries are repeated. Our job is\nto write a function that takes in this array and returns the index of first such element which does\nnot make consecutive appearances."
},
{
"code": ... |
Segment-Tree Module in Python - GeeksforGeeks | 21 Aug, 2021
Prerequisite: Segment Tree Implementation A Segment Tree is a data structure that allows programmers to solve range queries over the given array effectively and to modifying the array values. Basically, Segment Tree is a very flexible and efficient data structure and a large number of problems can be solve... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n21 Aug, 2021"
},
{
"code": null,
"e": 24633,
"s": 24292,
"text": "Prerequisite: Segment Tree Implementation A Segment Tree is a data structure that allows programmers to solve range queries over the given array effectively and to... |
Generate pseudo-random numbers in Python | Many computer applications need random number to be generated. However, none of them generate a truly random number. Python, like any other programming technique, uses a pseudo-random generator. Python’s random generation is based upon Mersenne Twister algorithm that produces 53-bit precision floats. The technique is f... | [
{
"code": null,
"e": 1447,
"s": 1062,
"text": "Many computer applications need random number to be generated. However, none of them generate a truly random number. Python, like any other programming technique, uses a pseudo-random generator. Python’s random generation is based upon Mersenne Twister ... |
PyTorch for Deep Learning: A Quick Guide for Starters | by Javaid Nabi | Towards Data Science | In 2019, the war for ML frameworks has two main contenders: PyTorch and TensorFlow. There is a growing adoption of PyTorch by researchers and students due to ease of use, while in industry, Tensorflow is currently still the platform of choice.
Some of the key advantages of PyTorch are:
Simplicity: It is very pythonic a... | [
{
"code": null,
"e": 290,
"s": 46,
"text": "In 2019, the war for ML frameworks has two main contenders: PyTorch and TensorFlow. There is a growing adoption of PyTorch by researchers and students due to ease of use, while in industry, Tensorflow is currently still the platform of choice."
},
{
... |
Createview - Class Based Views Django - GeeksforGeeks | 16 Jan, 2020
Create View refers to a view (logic) to create an instance of a table in the database. We have already discussed basics of Create View in Create View – Function based Views Django. Class-based views provide an alternative way to implement views as Python objects instead of functions. They do not replace fu... | [
{
"code": null,
"e": 23937,
"s": 23909,
"text": "\n16 Jan, 2020"
},
{
"code": null,
"e": 24347,
"s": 23937,
"text": "Create View refers to a view (logic) to create an instance of a table in the database. We have already discussed basics of Create View in Create View – Function ba... |
How to check Internet connection availability on Android? | This example demonstrates how do I check internet connection availability 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"?>
<a... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "This example demonstrates how do I check internet connection availability in android."
},
{
"code": null,
"e": 1276,
"s": 1148,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ... |
Find the largest number that can be formed with the given digits - GeeksforGeeks | 19 Apr, 2022
Given an array of integers arr[] representing digits of a number. The task is to write a program to generate the largest number possible using these digits.Note: The digits in the array are in between 0 and 9. That is, 0<arr[i]<9.Examples:
Input : arr[] = {4, 7, 9, 2, 3}
Output : Largest number: 97432
... | [
{
"code": null,
"e": 25517,
"s": 25489,
"text": "\n19 Apr, 2022"
},
{
"code": null,
"e": 25759,
"s": 25517,
"text": "Given an array of integers arr[] representing digits of a number. The task is to write a program to generate the largest number possible using these digits.Note: T... |
An Easy Way to Draw Spider Charts on Tableau — Part I | by Brant W | Towards Data Science | A spider chart is also called radar chart, it can be used to describe data with 3 or more dimensions with quantitative measures. Basically, whenever you want to analyze data using a pie chart, you can consider if you want to try a more advanced radar chart.
Tableau is one of the most popular data visualization tools no... | [
{
"code": null,
"e": 430,
"s": 172,
"text": "A spider chart is also called radar chart, it can be used to describe data with 3 or more dimensions with quantitative measures. Basically, whenever you want to analyze data using a pie chart, you can consider if you want to try a more advanced radar char... |
Python Design Patterns - Gist | Python is an open source scripting language, which is high-level, interpreted, interactive and object-oriented. It is designed to be highly readable. The syntax of Python language is easy to understand and uses English keywords frequently.
In this section, we will learn about the different features of Python language.
... | [
{
"code": null,
"e": 2719,
"s": 2479,
"text": "Python is an open source scripting language, which is high-level, interpreted, interactive and object-oriented. It is designed to be highly readable. The syntax of Python language is easy to understand and uses English keywords frequently."
},
{
... |
Difference between @Inject and @Autowired | @Inject and @Autowired both annotations are used for autowiring in your application.
@Inject annotation is part of Java CDI which was introduced in Java 6, whereas @Autowire annotation is part of spring framework. Both annotations fulfill same purpose therefore, anything of these we can use in our application.
public c... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "@Inject and @Autowired both annotations are used for autowiring in your application."
},
{
"code": null,
"e": 1374,
"s": 1147,
"text": "@Inject annotation is part of Java CDI which was introduced in Java 6, whereas @Autowire annotati... |
Program to find total unique duration from a list of intervals in Python | Suppose we have a list of intervals where each list represents an interval [start, end] (inclusive). We have to find the total unique duration it covers.
So, if the input is like intervals = [[2, 11],[13, 31],[41, 61]], then the output will be 50, as the total unique covered distance is (11 - 2 + 1) = 10 then (31 - 13 ... | [
{
"code": null,
"e": 1216,
"s": 1062,
"text": "Suppose we have a list of intervals where each list represents an interval [start, end] (inclusive). We have to find the total unique duration it covers."
},
{
"code": null,
"e": 1432,
"s": 1216,
"text": "So, if the input is like int... |
How to make a phone call using intent in Android using Kotlin? | This example demonstrates how to make a phone call using intent in Android 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-8"?>... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "This example demonstrates how to make a phone call using intent in Android using Kotlin"
},
{
"code": null,
"e": 1279,
"s": 1150,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all require... |
Check if two strings can be made equal by reversing a substring of one of the strings - GeeksforGeeks | 16 Jun, 2021
Given two strings X and Y of length N, the task is to check if both the strings can be made equal by reversing any substring of X exactly once. If it is possible, then print “Yes”. Otherwise, print “No”.
Examples:
Input: X = “adcbef”, Y = “abcdef”Output: YesExplanation: Strings can be made equal by reversi... | [
{
"code": null,
"e": 24944,
"s": 24916,
"text": "\n16 Jun, 2021"
},
{
"code": null,
"e": 25148,
"s": 24944,
"text": "Given two strings X and Y of length N, the task is to check if both the strings can be made equal by reversing any substring of X exactly once. If it is possible, ... |
How do I display the indexes of a collection in MongoDB? | In order to display the indexes of a collection, you can use getIndexes(). The syntax is as follows −
db.yourCollectionName.getIndexes();
To understand the concept, let us create a collection with the document. The query to create a collection with a document is as follows −
> db.indexDemo.insertOne({"StudentName":"Lar... | [
{
"code": null,
"e": 1164,
"s": 1062,
"text": "In order to display the indexes of a collection, you can use getIndexes(). The syntax is as follows −"
},
{
"code": null,
"e": 1200,
"s": 1164,
"text": "db.yourCollectionName.getIndexes();"
},
{
"code": null,
"e": 1338,
... |
BabylonJS - Dynamic Texture | The Dynamic Texture of BabylonJS creates a canvas and you can easily write text on the texture. It also allows you to work with canvas and use all the features available with html5 canvas to be used with dynamic texture.
We will work on an example, which will show how to write text on the texture and will also draw a b... | [
{
"code": null,
"e": 2404,
"s": 2183,
"text": "The Dynamic Texture of BabylonJS creates a canvas and you can easily write text on the texture. It also allows you to work with canvas and use all the features available with html5 canvas to be used with dynamic texture."
},
{
"code": null,
... |
AbstractSet Class in Java with Examples - GeeksforGeeks | 17 Jan, 2022
AbstractSet class in Java is a part of the Java Collection Framework which implements the Collection interface and extends the AbstractCollection class. It provides a skeletal implementation of the Set interface. This class does not override any of the implementations from the AbstractCollection class, but... | [
{
"code": null,
"e": 23748,
"s": 23720,
"text": "\n17 Jan, 2022"
},
{
"code": null,
"e": 24124,
"s": 23748,
"text": "AbstractSet class in Java is a part of the Java Collection Framework which implements the Collection interface and extends the AbstractCollection class. It provide... |
How to use deleteOne() function in MongoDB? | The deleteOne() function in MongoDB deletes at most one matching document from a collection. Let us first create a collection with documents −
> db.demo363.insertOne({"Name":"Chris"});
{
"acknowledged" : true,
"insertedId" : ObjectId("5e57d2c3d0ada61456dc9369")
}
> db.demo363.insertOne({"Name":"David"});
{
"ac... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "The deleteOne() function in MongoDB deletes at most one matching document from a collection. Let us first create a collection with documents −"
},
{
"code": null,
"e": 1711,
"s": 1205,
"text": "> db.demo363.insertOne({\"Name\":\"Chri... |
Amazon Web Services - CloudFront | CloudFront is a CDN (Content Delivery Network). It retrieves data from Amazon S3 bucket and distributes it to multiple datacenter locations. It delivers the data through a network of data centers called edge locations. The nearest edge location is routed when the user requests for data, resulting in lowest latency, low... | [
{
"code": null,
"e": 2655,
"s": 2291,
"text": "CloudFront is a CDN (Content Delivery Network). It retrieves data from Amazon S3 bucket and distributes it to multiple datacenter locations. It delivers the data through a network of data centers called edge locations. The nearest edge location is route... |
Add a background color to the form input with CSS | To add background color to the form input, use the background-color property.
You can try to run the following code to implement the background color property to form
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
input[type=text] {
width: 100%;
padding: 10px 15px;
... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "To add background color to the form input, use the background-color property."
},
{
"code": null,
"e": 1229,
"s": 1140,
"text": "You can try to run the following code to implement the background color property to form"
},
{
"... |
Count of same length Strings that exists lexicographically in between two given Strings - GeeksforGeeks | 06 May, 2021
Given two string S1 and S2 of length L, the task is to count the number of strings of length L, that exists in between S1 and S2, which are lexicographically greater than S1 but smaller than S2. Examples:
Input: S1 = “b”, S2 = “f” Output: 3 Explaination: These are 3 strings which come lexicographically i... | [
{
"code": null,
"e": 26159,
"s": 26131,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 26366,
"s": 26159,
"text": "Given two string S1 and S2 of length L, the task is to count the number of strings of length L, that exists in between S1 and S2, which are lexicographically great... |
Calculate Volume and Surface area Of Sphere - GeeksforGeeks | 24 Nov, 2021
Given radius of sphere, calculate the volume and surface area of sphere.Sphere: Just like a circle, which geometrically is a two-dimensional object, a sphere is defined mathematically as the set of points that are all at the same distance r from a given point, but in three-dimensional space. This distance ... | [
{
"code": null,
"e": 25336,
"s": 25308,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 26060,
"s": 25336,
"text": "Given radius of sphere, calculate the volume and surface area of sphere.Sphere: Just like a circle, which geometrically is a two-dimensional object, a sphere is de... |
How to bind the spacebar key to a certain method in Tkinter? | Tkinter methods can be bound with the Keys or Mouse to perform certain operations or events in an application. Let us suppose for a particular application, we want to bind the <Space> Key such that it will perform a certain operation. We can bind any key to a particular operation or event by defining the bind(<key>, ca... | [
{
"code": null,
"e": 1398,
"s": 1062,
"text": "Tkinter methods can be bound with the Keys or Mouse to perform certain operations or events in an application. Let us suppose for a particular application, we want to bind the <Space> Key such that it will perform a certain operation. We can bind any ke... |
Uploading Large Files to GitHub. 3 ways to avoid getting error messages... | by Eden Au | Towards Data Science | GitHub has a strict file limit of 100MB. If you are just uploading lines of codes, this is not something that you need to worry about. However, if you want to upload a bit of data, or something in binary, this is a limit that you might want to cross. Here are three different ways to overcome the 100MB limit.
Originally... | [
{
"code": null,
"e": 482,
"s": 172,
"text": "GitHub has a strict file limit of 100MB. If you are just uploading lines of codes, this is not something that you need to worry about. However, if you want to upload a bit of data, or something in binary, this is a limit that you might want to cross. Here... |
Count of smaller or equal elements in the sorted array in C++ | We are given an array of integers. The goal is to find the count of elements of an array which are less than or equal to the given value K.
Input
Arr[]= { 1, 2, 3, 14, 50, 69, 90 } K=12
Output
Numbers smaller or equal to K: 3
Explanation
Numbers 1,2,3 is smaller or equal to 12.
Input
Arr[]= { 12, 13, 13, 13, 14, 50... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "We are given an array of integers. The goal is to find the count of elements of an array which are less than or equal to the given value K."
},
{
"code": null,
"e": 1209,
"s": 1202,
"text": "Input "
},
{
"code": null,
"e"... |
Single dimensional array vs multidimensional array in JavaScript. | Following is the code for single and multidimentsional array in JavaScript −
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verda... | [
{
"code": null,
"e": 1139,
"s": 1062,
"text": "Following is the code for single and multidimentsional array in JavaScript −"
},
{
"code": null,
"e": 1150,
"s": 1139,
"text": " Live Demo"
},
{
"code": null,
"e": 2368,
"s": 1150,
"text": "<!DOCTYPE html>\n<html ... |
clear command in Linux with examples - GeeksforGeeks | 26 Aug, 2020
clear is a standard Unix computer operating system command that is used to clear the terminal screen. This command first looks for a terminal type in the environment and after that, it figures out the terminfo database for how to clear the screen. And this command will ignore any command-line parameters th... | [
{
"code": null,
"e": 24431,
"s": 24403,
"text": "\n26 Aug, 2020"
},
{
"code": null,
"e": 24887,
"s": 24431,
"text": "clear is a standard Unix computer operating system command that is used to clear the terminal screen. This command first looks for a terminal type in the environme... |
Automate Reports in Google Sheets Using Data from Google BigQuery | by Marie Sharapa | Towards Data Science | Before we talk about settings, a few words about the features and benefits of Google BigQuery for those who aren’t familiar with this cloud storage service.
Advantages of Google BigQuery:
A fast cloud solution that allows you to process terabytes of data in seconds
Suitable for both small and large companies
Cost-effec... | [
{
"code": null,
"e": 328,
"s": 171,
"text": "Before we talk about settings, a few words about the features and benefits of Google BigQuery for those who aren’t familiar with this cloud storage service."
},
{
"code": null,
"e": 359,
"s": 328,
"text": "Advantages of Google BigQuery... |
How to change current country code in android? | This example demonstrate about How to change current country code 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"?>
<LinearLa... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "This example demonstrate about How to change current country code in android."
},
{
"code": null,
"e": 1269,
"s": 1140,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details ... |
How to obtain the highest occurring character in a String using C#? | The highest occurring character in a string is one that occurs most number of times. This can be demonstrated using the following example.
String: apples are red
The highest occurring character in the above string is e as it occurs 3 times, which is more than the occurrence of any other character.
A program that obtain... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "The highest occurring character in a string is one that occurs most number of times. This can be demonstrated using the following example."
},
{
"code": null,
"e": 1361,
"s": 1201,
"text": "String: apples are red\nThe highest occurri... |
NamedParameterJdbcTemplate Class | The org.springframework.jdbc.core.NamedParameterJdbcTemplate class is a template class with a basic set of JDBC operations, allowing the use of named parameters rather than traditional '?' placeholders. This class delegates to a wrapped JdbcTemplate once the substitution from named parameters to JDBC style '?' placehol... | [
{
"code": null,
"e": 2833,
"s": 2396,
"text": "The org.springframework.jdbc.core.NamedParameterJdbcTemplate class is a template class with a basic set of JDBC operations, allowing the use of named parameters rather than traditional '?' placeholders. This class delegates to a wrapped JdbcTemplate onc... |
CSS - content | The content property defines content to be inserted in generated content operations. This property is used along with :before or :after pseudo elements.
string − Any permitted string value. This is always enclosed in quotation marks.
string − Any permitted string value. This is always enclosed in quotation marks.
URI −... | [
{
"code": null,
"e": 2779,
"s": 2626,
"text": "The content property defines content to be inserted in generated content operations. This property is used along with :before or :after pseudo elements."
},
{
"code": null,
"e": 2860,
"s": 2779,
"text": "string − Any permitted string... |
Find the mean vector of a Matrix | 13 Apr, 2021
Given a matrix of size M x N, the task is to find the Mean Vector of the given matrix. Examples:
Input : mat[][] = {{1, 2, 3},
{4, 5, 6},
{7, 8, 9}}
Output : Mean Vector is [4 5 6]
Mean of column 1 is (1 + 4 + 7) / 3 = 4
Mean of column 2 is (2 + 5 + 8) / 3 = 5... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 152,
"s": 53,
"text": "Given a matrix of size M x N, the task is to find the Mean Vector of the given matrix. Examples: "
},
{
"code": null,
"e": 560,
"s": 152,
"text": "Input ... |
Python Tkinter – Checkbutton Widget | 26 Mar, 2020
Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and easiest way to create GUI applications. C... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 404,
"s": 52,
"text": "Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python ... |
Project Idea | Jal Sanrakshan | 26 Jul, 2018
Project Title: Jal Sanrakshan
One Line Idea: Gamify water conservation
IntroductionIndian households water use involves a water storage system called a ‘tank’ which stores water from where water is consumed. And its also the fact that we are in the midst of severe water crises, thanks to global warming and... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jul, 2018"
},
{
"code": null,
"e": 58,
"s": 28,
"text": "Project Title: Jal Sanrakshan"
},
{
"code": null,
"e": 99,
"s": 58,
"text": "One Line Idea: Gamify water conservation"
},
{
"code": null,
"e": 5... |
What are increment (++) and decrement (--) operators in C#? | To increment a value in C#, you can use the increment operators i.e. Pre-Increment and Post-Increment Operators.
The following is an example −
using System;
class Demo {
static void Main() {
int a = 250;
Console.WriteLine(a);
a++;
Console.WriteLine(a);
++a;
Console.WriteLine(a)... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "To increment a value in C#, you can use the increment operators i.e. Pre-Increment and Post-Increment Operators."
},
{
"code": null,
"e": 1205,
"s": 1175,
"text": "The following is an example −"
},
{
"code": null,
"e": 15... |
Topic Modelling in Python with spaCy and Gensim | by Tarek Ghanoum | Towards Data Science | Hackers recently attacked an international company. They copied several thousand documents and published the data on the dark web. The company reached out to my employer and asked if we could go through the data to assess the type of information contained in the documents. My first thought was: Topic Modelling.
Topic M... | [
{
"code": null,
"e": 485,
"s": 172,
"text": "Hackers recently attacked an international company. They copied several thousand documents and published the data on the dark web. The company reached out to my employer and asked if we could go through the data to assess the type of information contained... |
Running chrome browser in inconginto Mode in Selenium | We can run Chrome browser Incognito mode with Selenium webdriver. Incognito mode is a safe mode of opening a browser. This can be done with the help of the DesiredCapabilities and ChromeOptions class.
We shall create an object of the ChromeOptions class and apply addArguments method on it. Then pass −−incognito as a pa... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "We can run Chrome browser Incognito mode with Selenium webdriver. Incognito mode is a safe mode of opening a browser. This can be done with the help of the DesiredCapabilities and ChromeOptions class."
},
{
"code": null,
"e": 1471,
"s": ... |
How to format date and time in android? | This example demonstrates how do I format date and 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="utf-8"?>
<RelativeLayout xml... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "This example demonstrates how do I format date and time in android."
},
{
"code": null,
"e": 1259,
"s": 1130,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create ... |
Sentence classification using Bi-LSTM | by akshay uppal | Towards Data Science | So there are various ways for sentence classification like a bag of words approach or neural networks etc. In this article, I would be discussing mainly the sentence classification task using deep learning model (specifically Bi-LSTM)
This article mainly is concerned with some basic introduction and jumps right into im... | [
{
"code": null,
"e": 407,
"s": 172,
"text": "So there are various ways for sentence classification like a bag of words approach or neural networks etc. In this article, I would be discussing mainly the sentence classification task using deep learning model (specifically Bi-LSTM)"
},
{
"code"... |
SQLite - Useful Functions | SQLite has many built-in functions to perform processing on string or numeric data. Following is the list of few useful SQLite built-in functions and all are case in-sensitive which means you can use these functions either in lower-case form or in upper-case or in mixed form. For more details, you can check official do... | [
{
"code": null,
"e": 2982,
"s": 2638,
"text": "SQLite has many built-in functions to perform processing on string or numeric data. Following is the list of few useful SQLite built-in functions and all are case in-sensitive which means you can use these functions either in lower-case form or in upper... |
COBOL - Program Structure | A COBOL program structure consists of divisions as shown in the following image −
A brief introduction of these divisions is given below −
Sections are the logical subdivision of program logic. A section is a collection of paragraphs.
Sections are the logical subdivision of program logic. A section is a collection of p... | [
{
"code": null,
"e": 2104,
"s": 2022,
"text": "A COBOL program structure consists of divisions as shown in the following image −"
},
{
"code": null,
"e": 2161,
"s": 2104,
"text": "A brief introduction of these divisions is given below −"
},
{
"code": null,
"e": 2257,
... |
Cosine similarity: How does it measure the similarity, Maths behind and usage in Python | by Varun | Towards Data Science | What is cosine similarity?
Cosine similarity measures the similarity between two vectors by calculating the cosine of the angle between the two vectors.
Cosine similarity is one of the most widely used and powerful similarity measure in Data Science. It is used in multiple applications such as finding similar documents... | [
{
"code": null,
"e": 199,
"s": 172,
"text": "What is cosine similarity?"
},
{
"code": null,
"e": 325,
"s": 199,
"text": "Cosine similarity measures the similarity between two vectors by calculating the cosine of the angle between the two vectors."
},
{
"code": null,
"... |
Mode 1—strobed I/O | We call mode 1 as the strobed Input Output or handshake Input Output. We use this mode when the data is supplied by the input device to the microprocessor at irregular interval of time. A port which is functioned to program in mode uses three handshake signals. These handshake signals are provided by Port C. Only port ... | [
{
"code": null,
"e": 1964,
"s": 1062,
"text": "We call mode 1 as the strobed Input Output or handshake Input Output. We use this mode when the data is supplied by the input device to the microprocessor at irregular interval of time. A port which is functioned to program in mode uses three handshake ... |
Design and Analysis Merge Sort | In this chapter, we will discuss merge sort and analyze its complexity.
The problem of sorting a list of numbers lends itself immediately to a divide-and-conquer strategy: split the list into two halves, recursively sort each half, and then merge the two sorted sub-lists.
In this algorithm, the numbers are stored in an... | [
{
"code": null,
"e": 2671,
"s": 2599,
"text": "In this chapter, we will discuss merge sort and analyze its complexity."
},
{
"code": null,
"e": 2872,
"s": 2671,
"text": "The problem of sorting a list of numbers lends itself immediately to a divide-and-conquer strategy: split the ... |
Monitoring and TroubleShooting using Cloudwatch | Functions created in AWS Lambda are monitored by Amazon CloudWatch. It helps in logging all the requests made to the Lambda function when it is triggered.
Consider that the following code is uploaded in AWS Lambda with function name as lambda and cloudwatch.
exports.handler = (event, context, callback) => {
// TODO ... | [
{
"code": null,
"e": 2561,
"s": 2406,
"text": "Functions created in AWS Lambda are monitored by Amazon CloudWatch. It helps in logging all the requests made to the Lambda function when it is triggered."
},
{
"code": null,
"e": 2665,
"s": 2561,
"text": "Consider that the following... |
Data Science Fundamentals (R): Import & Export Data from Excel — xlsx | by Carrie Lo | Towards Data Science | Data science is a very broad topic, before entering into this enormous forest, you ought to know the most fundamental part which is importing and exporting data correctly. Without the data, you cannot perform all the machine learning techniques or draw insightful analysis. You may think that importing and exporting are... | [
{
"code": null,
"e": 678,
"s": 47,
"text": "Data science is a very broad topic, before entering into this enormous forest, you ought to know the most fundamental part which is importing and exporting data correctly. Without the data, you cannot perform all the machine learning techniques or draw ins... |
java.time.Duration.ofSeconds() Method Example | The java.time.Duration.ofSeconds(long seconds) method obtains a Duration representing a number of seconds and an adjustment in nanoseconds.
Following is the declaration for java.time.Duration.ofSeconds(long seconds) method.
public static Duration ofSeconds(long seconds, long nanoAdjustment)
seconds − the number of sec... | [
{
"code": null,
"e": 2055,
"s": 1915,
"text": "The java.time.Duration.ofSeconds(long seconds) method obtains a Duration representing a number of seconds and an adjustment in nanoseconds."
},
{
"code": null,
"e": 2139,
"s": 2055,
"text": "Following is the declaration for java.time... |
How to use function Alias in PowerShell? | Like the Parameter alias, we can also set the function alias name to refer to the function as a different name.
function Test-NewConnection{
[CmdletBinding()]
[Alias("TC")]
param(
[Parameter(Mandatory=$true)]
[String]$Server
)
Write-Output "Testing $server connection"
}
Now, instead of the Te... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "Like the Parameter alias, we can also set the function alias name to refer to the function as a different name."
},
{
"code": null,
"e": 1360,
"s": 1174,
"text": "function Test-NewConnection{\n [CmdletBinding()]\n [Alias(\"TC\")]... |
What is an inline function in C language? | The inline function can be substituted at the place where the function call is happening. Function substitution is always compiler choice.
In an inline function, a function call is replaced by the actual program code.
In an inline function, a function call is replaced by the actual program code.
Most of the Inline func... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "The inline function can be substituted at the place where the function call is happening. Function substitution is always compiler choice."
},
{
"code": null,
"e": 1280,
"s": 1201,
"text": "In an inline function, a function call is r... |
Angular PrimeNG Menu Component - GeeksforGeeks | 08 Sep, 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 Menu component in Angular PrimeNG. We will also learn about th... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 25514,
"s": 25109,
"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 resp... |
How to get android application version name? | This example demonstrate about How to get android application version name.
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"?>
<Linear... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "This example demonstrate about How to get android application version name."
},
{
"code": null,
"e": 1267,
"s": 1138,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to... |
fseek() vs rewind() in C | fseek() in C language is used to move file pointer to a specific position. Offset and stream are the destination of pointer, given in the function parameters. If successful, it returns zero, else non-zero value is returned.
Here is the syntax of fseek() in C language,
int fseek(FILE *stream, long int offset, int whence... | [
{
"code": null,
"e": 1286,
"s": 1062,
"text": "fseek() in C language is used to move file pointer to a specific position. Offset and stream are the destination of pointer, given in the function parameters. If successful, it returns zero, else non-zero value is returned."
},
{
"code": null,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.