title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
C# ToLower() Method | The ToLower() method in C# is used to return a copy of this string converted to lowercase.
The syntax is as follows -
public string ToLower ();
Let us now see an example -
Live Demo
using System;
public class Demo {
public static void Main(String[] args) {
string str1 = "WELCOME!";
string str2 = "Thisis... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "The ToLower() method in C# is used to return a copy of this string converted to lowercase."
},
{
"code": null,
"e": 1180,
"s": 1153,
"text": "The syntax is as follows -"
},
{
"code": null,
"e": 1206,
"s": 1180,
"t... |
Program to print triangular number series till n - GeeksforGeeks | 19 Mar, 2021
A triangular number or triangle number counts objects arranged in an equilateral triangle, as in the diagram on the right. The n-th triangular number is the number of dots composing a triangle with n dots on a side, and is equal to the sum of the n natural numbers from 1 to n.
Examples :
Input : 5
Outpu... | [
{
"code": null,
"e": 25259,
"s": 25231,
"text": "\n19 Mar, 2021"
},
{
"code": null,
"e": 25538,
"s": 25259,
"text": "A triangular number or triangle number counts objects arranged in an equilateral triangle, as in the diagram on the right. The n-th triangular number is the number... |
TimeSpan.FromDays() Method in C# | The TimeSpan.FromDays() method in C# is used to return a TimeSpan that
represents a specified number of days, where the specification is accurate to the nearest millisecond.
The syntax is as follows −
public static TimeSpan FromDays (double val);
Above, the parameter val is the number of days, accurate to the nearest
m... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "The TimeSpan.FromDays() method in C# is used to return a TimeSpan that\nrepresents a specified number of days, where the specification is accurate to the nearest millisecond."
},
{
"code": null,
"e": 1263,
"s": 1236,
"text": "The syn... |
ZoneOffset of(String) method in Java with Examples - GeeksforGeeks | 11 Dec, 2018
The of(String) method of ZoneOffset Class in java.time package is used to obtain an instance of ZoneOffset using the offsetId passed as the parameter. This method takes the offsetId as parameter in the form of String and converts it into the ZoneOffset. The ID of the returned offset will be normalized to o... | [
{
"code": null,
"e": 24850,
"s": 24822,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 25264,
"s": 24850,
"text": "The of(String) method of ZoneOffset Class in java.time package is used to obtain an instance of ZoneOffset using the offsetId passed as the parameter. This method ... |
pulseIn() and pulseInLong() in Arduino | If there is an incoming pulse on a pin, and you need to measure the duration of the pulse then the pulseIn() function comes in handy.
The syntax is −
pulseIn(pin, value)
Where pin is the number of the pin on which you wish to measure the pulse. The value is the level of the pulse. It can be HIGH or LOW.
For example, if... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "If there is an incoming pulse on a pin, and you need to measure the duration of the pulse then the pulseIn() function comes in handy."
},
{
"code": null,
"e": 1212,
"s": 1196,
"text": "The syntax is −"
},
{
"code": null,
... |
Python program to multiply all numbers in the list? | First we create 3 list for user input .here we use traversing technique. Initializing the value of product to 1, traverse all the element and multiply every number with the product one by one till the end of list.
Input: A=[5,6,3]
Output:90
Explanation:5*6*3
Step 1: input all numbers in the list (lst).
Step 2: to mu... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "First we create 3 list for user input .here we use traversing technique. Initializing the value of product to 1, traverse all the element and multiply every number with the product one by one till the end of list."
},
{
"code": null,
"e": 13... |
Erlang - put | This method is used to add a key value pair to the map.
put(key1,value1,map1)
key1 − This is key which needs to be added to the map.
key1 − This is key which needs to be added to the map.
Value1 − This is the value associated with key1 which needs to be added to the map.
Value1 − This is the value associated with key1... | [
{
"code": null,
"e": 2357,
"s": 2301,
"text": "This method is used to add a key value pair to the map."
},
{
"code": null,
"e": 2380,
"s": 2357,
"text": "put(key1,value1,map1)\n"
},
{
"code": null,
"e": 2435,
"s": 2380,
"text": "key1 − This is key which needs ... |
Java - Multithreading | Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making optimal use of the available resources specially when your computer ... | [
{
"code": null,
"e": 2716,
"s": 2377,
"text": "Java is a multi-threaded programming language which means we can develop multi-threaded program using Java. A multi-threaded program contains two or more parts that can run concurrently and each part can handle a different task at the same time making o... |
Calculate Hyperbolic cosine of a value in R Programming - cosh() Function - GeeksforGeeks | 09 Mar, 2021
cosh() function in R Language is used to calculate the hyperbolic cosine value of the numeric value passed to it as the argument.
Syntax: cosh(x)Parameter: x: Numeric value
Example 1:
Python3
# R code to calculate cosine of a value # Assigning values to variablesx1 <- 90x2 <- 30 # Using cosh() Functionc... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n09 Mar, 2021"
},
{
"code": null,
"e": 24982,
"s": 24851,
"text": "cosh() function in R Language is used to calculate the hyperbolic cosine value of the numeric value passed to it as the argument. "
},
{
"code": null,
... |
Python 3 - Tkinter PanedWindow | A PanedWindow is a container widget that may contain any number of panes, arranged horizontally or vertically.
Each pane contains one widget and each pair of panes is separated by a moveable (via mouse movements) sash. Moving a sash causes the widgets on either side of the sash to be resized.
Here is the simple syntax ... | [
{
"code": null,
"e": 2451,
"s": 2340,
"text": "A PanedWindow is a container widget that may contain any number of panes, arranged horizontally or vertically."
},
{
"code": null,
"e": 2634,
"s": 2451,
"text": "Each pane contains one widget and each pair of panes is separated by a ... |
Visualizing Intersections and Overlaps with Python | by Thiago Carvalho | Towards Data Science | A prevalent task in any data analysis is comparing multiple sets of something. You may have lists of IPs for each landing page of your website, clients who bought certain items from your store, multiple answers from a survey, and so many others.
This article will use Python to explore ways to visualize overlaps and int... | [
{
"code": null,
"e": 418,
"s": 172,
"text": "A prevalent task in any data analysis is comparing multiple sets of something. You may have lists of IPs for each landing page of your website, clients who bought certain items from your store, multiple answers from a survey, and so many others."
},
{... |
Relational Algebra for Query Optimization | When a query is placed, it is at first scanned, parsed and validated. An internal representation of the query is then created such as a query tree or a query graph. Then alternative execution strategies are devised for retrieving results from the database tables. The process of choosing the most appropriate execution s... | [
{
"code": null,
"e": 2602,
"s": 2223,
"text": "When a query is placed, it is at first scanned, parsed and validated. An internal representation of the query is then created such as a query tree or a query graph. Then alternative execution strategies are devised for retrieving results from the databa... |
How to use Font Awesome in Native Android Application? | This example demonstrates how do I use FontAwesome in the native android applications.
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": 1149,
"s": 1062,
"text": "This example demonstrates how do I use FontAwesome in the native android applications."
},
{
"code": null,
"e": 1278,
"s": 1149,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required... |
Implementing Capsule Network in TensorFlow | by Parth Rajesh Dedhia | Towards Data Science | We are well aware that Convolution Neural Network(CNN) has outperformed humans in many computer vision tasks. All the CNN based models have the same base architecture of the Convolution layer followed by Pooling layers with intermediate Batch Normalization layers, for normalizing batch in the forward pass and controlli... | [
{
"code": null,
"e": 530,
"s": 171,
"text": "We are well aware that Convolution Neural Network(CNN) has outperformed humans in many computer vision tasks. All the CNN based models have the same base architecture of the Convolution layer followed by Pooling layers with intermediate Batch Normalizatio... |
How to get a Popup Dialog in Tkinter/Python? | Tkinter is a standard Python library that is used to create and develop GUI-based applications. We can create an application in Tkinter and add widgets to it that make the application more interactive.
Let's suppose we want to show a popup dialog in an application. In this case, we can use the built-in messagebox modul... | [
{
"code": null,
"e": 1264,
"s": 1062,
"text": "Tkinter is a standard Python library that is used to create and develop GUI-based applications. We can create an application in Tkinter and add widgets to it that make the application more interactive."
},
{
"code": null,
"e": 1493,
"s":... |
How to format a floating number to fixed width in Python? | You can use string formatting to format floating point numbers to a fixed width in Python. For example, if you want the decimal points to be aligned with width of 12 characters and 4 digits on the right of the decimal, you can use the following:
>>> x = 12.35874
>>> print "{:12.4f}".format(x)
12.3587
You can also ... | [
{
"code": null,
"e": 1308,
"s": 1062,
"text": "You can use string formatting to format floating point numbers to a fixed width in Python. For example, if you want the decimal points to be aligned with width of 12 characters and 4 digits on the right of the decimal, you can use the following:"
},
... |
Creating an Interactive Datetime Filter with Pandas and Streamlit | by M Khorasani | Towards Data Science | Perhaps the most proliferated type of data that we grapple with on a daily basis is time-series data. Basically, anything that is indexed using date, time, or both can be considered as a time-series dataset. And more often than not, you may require to filter your time-series data with, well, date and time themselves. F... | [
{
"code": null,
"e": 815,
"s": 172,
"text": "Perhaps the most proliferated type of data that we grapple with on a daily basis is time-series data. Basically, anything that is indexed using date, time, or both can be considered as a time-series dataset. And more often than not, you may require to fil... |
Check if variable is tuple in Python | When it is required to check if a variable is a tuple, the 'type' method can be used. A tuple is an immutable data type. It means, values once defined can't be changed by accessing their index elements. If we try to change the elements, it results in an error. They are important contains since they ensure read-only ac... | [
{
"code": null,
"e": 1388,
"s": 1062,
"text": "When it is required to check if a variable is a tuple, the 'type' method can be used. A tuple is an immutable data type. It means, values once defined can't be changed by accessing their index elements. If we try to change the elements, it results in a... |
PyQt5 – How to change background color of Main window ? - GeeksforGeeks | 26 Mar, 2020
The first step in creating desktop applications with PyQt is getting a window to show up on your desktop, in this article, we will see how we can change the color of this window. In order to change the color of the main window we use setStylesheet() method.
Syntax : setStyleSheet(“background-color: grey;”)... | [
{
"code": null,
"e": 24459,
"s": 24431,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24717,
"s": 24459,
"text": "The first step in creating desktop applications with PyQt is getting a window to show up on your desktop, in this article, we will see how we can change the color ... |
tcpdump - Unix, Linux Command | Tcpdump prints out the headers of packets on a network interface
that match the boolean expression. It can also be run with the
-w flag, which causes it to save the packet data to a file for later
analysis, and/or with the
-r flag, which causes it to read from a saved packet file rather than to
read packets from a net... | [
{
"code": null,
"e": 10995,
"s": 10577,
"text": "\nTcpdump prints out the headers of packets on a network interface\nthat match the boolean expression. It can also be run with the\n-w flag, which causes it to save the packet data to a file for later\nanalysis, and/or with the\n-r flag, which causes... |
How to check whether a vector contains an NA value or not in R? | An NA value in R represents “Not Available” that means missing value. If a vector has even one NA value then the calculations for that vector becomes a little difficult because we will either have to remove that NA, replace it or neglect it during the calculations. To do any of these things, we will have to make some c... | [
{
"code": null,
"e": 1570,
"s": 1062,
"text": "An NA value in R represents “Not Available” that means missing value. If a vector has even one NA value then the calculations for that vector becomes a little difficult because we will either have to remove that NA, replace it or neglect it during the c... |
Sum of lengths of all 12 edges of any rectangular parallelepiped - GeeksforGeeks | 28 May, 2021
Given the area of three faces of the rectangular parallelepiped which has a common vertex. Our task is to find the sum of lengths of all 12 edges of this parallelepiped.In geometry, a parallelepiped is a three-dimensional figure formed by six parallelograms. By analogy, it relates to a parallelogram just a... | [
{
"code": null,
"e": 26585,
"s": 26557,
"text": "\n28 May, 2021"
},
{
"code": null,
"e": 27011,
"s": 26585,
"text": "Given the area of three faces of the rectangular parallelepiped which has a common vertex. Our task is to find the sum of lengths of all 12 edges of this parallele... |
Python String - GeeksforGeeks | 14 May, 2022
In Python, Strings are arrays of bytes representing Unicode characters. However, Python does not have a character data type, a single character is simply a string with a length of 1. Square brackets can be used to access elements of the string.
Strings in Python can be created using single quotes or double... | [
{
"code": null,
"e": 42675,
"s": 42647,
"text": "\n14 May, 2022"
},
{
"code": null,
"e": 42920,
"s": 42675,
"text": "In Python, Strings are arrays of bytes representing Unicode characters. However, Python does not have a character data type, a single character is simply a string ... |
Measure similarity between images using Python-OpenCV - GeeksforGeeks | 18 Aug, 2021
Prerequisites: Python OpenCVSuppose we have two data images and a test image. Let’s find out which data image is more similar to the test image using python and OpenCV library in Python.Let’s first load the image and find out the histogram of images.Importing library
import cv2
Importing image data
ima... | [
{
"code": null,
"e": 25755,
"s": 25727,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 26025,
"s": 25755,
"text": "Prerequisites: Python OpenCVSuppose we have two data images and a test image. Let’s find out which data image is more similar to the test image using python and Op... |
How to open an image from the URL in PIL? - GeeksforGeeks | 26 Mar, 2021
In this article, we will learn How to open an image from the URL using the PIL module in python. For the opening of the image from a URL in Python, we need two Packages urllib and Pillow(PIL).
Install the required libraries and then import them. To install use the following commands:
pip install pillow
Cop... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n26 Mar, 2021"
},
{
"code": null,
"e": 25730,
"s": 25537,
"text": "In this article, we will learn How to open an image from the URL using the PIL module in python. For the opening of the image from a URL in Python, we need two Pac... |
Gotchas in Python - GeeksforGeeks | 02 Sep, 2021
Python is a go-to language for most of the newcomers into the programming world. This is because it is fairly simple, highly in-demand, and ultimately powerful. But there are some cases which might confuse or rather trick a rookie coder. These are called “Gotchas”! Originating from the informal term “Got Y... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 26277,
"s": 25537,
"text": "Python is a go-to language for most of the newcomers into the programming world. This is because it is fairly simple, highly in-demand, and ultimately powerful. Bu... |
Leftmost Column with atleast one 1 in a row-wise sorted binary matrix - GeeksforGeeks | 26 May, 2021
Given a binary matrix mat[][] containing 0’s and 1’s. Each row of the matrix is sorted in the non-decreasing order, the task is to find the left-most column of the matrix with at least one 1 in it.Note: If no such column exists return -1.Examples:
Input:
mat[2][2] = { {0, 0},
{1, 1} }
Output... | [
{
"code": null,
"e": 26821,
"s": 26793,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 27069,
"s": 26821,
"text": "Given a binary matrix mat[][] containing 0’s and 1’s. Each row of the matrix is sorted in the non-decreasing order, the task is to find the left-most column of the... |
C# Program For Removing Duplicates From A Sorted Linked List - GeeksforGeeks | 14 Dec, 2021
Write a function that takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed once. For example if the linked list is 11->11->11->21->43->43->60 then removeDuplicates() should convert the list to 11->21->43->60.
Algorithm: Traverse the l... | [
{
"code": null,
"e": 26253,
"s": 26225,
"text": "\n14 Dec, 2021"
},
{
"code": null,
"e": 26535,
"s": 26253,
"text": "Write a function that takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed once. For exampl... |
PyQt5 QListWidget – Setting Vertical Scroll Bar - GeeksforGeeks | 06 Aug, 2020
In this article we will see how we can set the vertical scroll bar of the QListWidget. QListWidget is a convenience class that provides a list view with a classic item-based interface for adding and removing items. QListWidget uses an internal model to manage each QListWidgetItem in the list. Setting verti... | [
{
"code": null,
"e": 25646,
"s": 25618,
"text": "\n06 Aug, 2020"
},
{
"code": null,
"e": 26143,
"s": 25646,
"text": "In this article we will see how we can set the vertical scroll bar of the QListWidget. QListWidget is a convenience class that provides a list view with a classic ... |
Lodash _.assignInWith() Method - GeeksforGeeks | 18 Sep, 2020
The _.assignInWith() method of Object in lodash is similar to _.assignIn the method and the only difference is that it accepts customizer which is called in order to generate assigned value. Moreover, if the customizer used here returns undefined then the assignment is dealt with by the method instead.
Not... | [
{
"code": null,
"e": 38679,
"s": 38651,
"text": "\n18 Sep, 2020"
},
{
"code": null,
"e": 38983,
"s": 38679,
"text": "The _.assignInWith() method of Object in lodash is similar to _.assignIn the method and the only difference is that it accepts customizer which is called in order ... |
Implementing Iterator pattern of a single Linked List - GeeksforGeeks | 19 May, 2021
STL is one of the pillars of C++. It makes life a lot easier, especially when your focus is on problem-solving and you don’t want to spend time implementing something that is already available which guarantees a robust solution. One of the key aspects of Software Engineering is to avoid reinventing the whe... | [
{
"code": null,
"e": 25823,
"s": 25795,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 26167,
"s": 25823,
"text": "STL is one of the pillars of C++. It makes life a lot easier, especially when your focus is on problem-solving and you don’t want to spend time implementing someth... |
Program to convert List of Integer to List of String in Java - GeeksforGeeks | 11 Dec, 2018
The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the insertion order, it allows positional access and insertion of elements. List Interface is implemented by ArrayList, LinkedList, Vector and Stack cl... | [
{
"code": null,
"e": 25867,
"s": 25839,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 26181,
"s": 25867,
"text": "The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the ins... |
HTML | HTML stands for Hyper Text Markup Language. It is a formatting language used to define the appearance and contents of a web page. It allows us to organize text, graphics, audio, and video on a web page.
Key Points:
The word Hypertext refers to the text which acts as a link.
The word Hypertext refers to the text which ... | [
{
"code": null,
"e": 2676,
"s": 2473,
"text": "HTML stands for Hyper Text Markup Language. It is a formatting language used to define the appearance and contents of a web page. It allows us to organize text, graphics, audio, and video on a web page."
},
{
"code": null,
"e": 2689,
"s"... |
Deploying scikit-learn Models at Scale | by Yufeng G | Towards Data Science | Scikit-learn is great for putting together a quick model to test out your dataset. But what if you want to run it against incoming live data? Find out how to serve your scikit-learn model in an auto-scaling, serverless environment!
Today, we’ll take a trained scikit-learn model and deploy it on Cloud ML Engine. Use thi... | [
{
"code": null,
"e": 403,
"s": 171,
"text": "Scikit-learn is great for putting together a quick model to test out your dataset. But what if you want to run it against incoming live data? Find out how to serve your scikit-learn model in an auto-scaling, serverless environment!"
},
{
"code": n... |
Why do we use the novalidate attribute in HTML? | The novalidate attribute in HTML is used to signify that the form won’t get validated on submit. It is a Boolean attribute and useful if you want the user to save the progress of form filing. If the form validation is disabled, the user can easily save the form and continue & submit the form later. While continuing, th... | [
{
"code": null,
"e": 1438,
"s": 1062,
"text": "The novalidate attribute in HTML is used to signify that the form won’t get validated on submit. It is a Boolean attribute and useful if you want the user to save the progress of form filing. If the form validation is disabled, the user can easily save ... |
Remove a specific element from a LinkedList in Java | A specific element in the LinkedList can be removed using the java.util.LinkedList.remove()
method. This method removes the specified element the first time it occurs in the LinkedList and
if the element is not in the LinkedList then no change occurs. The parameter required for the
LinkedList.remove() method is the ele... | [
{
"code": null,
"e": 1402,
"s": 1062,
"text": "A specific element in the LinkedList can be removed using the java.util.LinkedList.remove()\nmethod. This method removes the specified element the first time it occurs in the LinkedList and\nif the element is not in the LinkedList then no change occurs.... |
How to find the proportion of row values in R dataframe? - GeeksforGeeks | 07 Apr, 2021
The proportion of row value in a data frame is equivalent to the cell value divided by the summation of the cell values belonging to that entire row. The sum of all the row proportion values in a data frame is equivalent to 1. In this article, we are going to see how to find the proportion of row values in... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 25590,
"s": 25242,
"text": "The proportion of row value in a data frame is equivalent to the cell value divided by the summation of the cell values belonging to that entire row. The sum of al... |
Can a C++ class have an object of self type? - GeeksforGeeks | 31 Jul, 2018
A class declaration can contain static object of self type, it can also have pointer to self type, but it cannot have a non-static object of self type.
For example, following program works fine.
// A class can have a static member of self type#include<iostream> using namespace std; class Test { static T... | [
{
"code": null,
"e": 24150,
"s": 24122,
"text": "\n31 Jul, 2018"
},
{
"code": null,
"e": 24302,
"s": 24150,
"text": "A class declaration can contain static object of self type, it can also have pointer to self type, but it cannot have a non-static object of self type."
},
{
... |
Program to check if a string contains any special character in C | Given a string str[], the task is to check whether the string contains any special character and if the string have a special character then print “The String is not accepted” else print “The string is accepted”.
Special characters are those characters which are neither numeric nor alphabetic i.e. − !@#$%^&*()+=-\][‘;/... | [
{
"code": null,
"e": 1275,
"s": 1062,
"text": "Given a string str[], the task is to check whether the string contains any special character and if the string have a special character then print “The String is not accepted” else print “The string is accepted”."
},
{
"code": null,
"e": 139... |
TypeScript | toPrecision() Function - GeeksforGeeks | 11 Jun, 2020
The toPrecision() method in TypeScript is used to return the string representation in exponential or fixed-point to the specified precision.
Syntax:
number.toPrecision( [ precision ] )
Parameter: It represents an integer value specifying the number of significant digits.
Return Value: The toPrecision() me... | [
{
"code": null,
"e": 24922,
"s": 24894,
"text": "\n11 Jun, 2020"
},
{
"code": null,
"e": 25063,
"s": 24922,
"text": "The toPrecision() method in TypeScript is used to return the string representation in exponential or fixed-point to the specified precision."
},
{
"code": ... |
How to extract the regression coefficients, standard error of coefficients, t scores, and p-values from a regression model in R? | Regression analysis output in R gives us so many values but if we believe that our model is good enough, we might want to extract only coefficients, standard errors, and t-scores or p-values because these are the values that ultimately matters, specifically the coefficients as they help us to interpret the model. We ca... | [
{
"code": null,
"e": 1462,
"s": 1062,
"text": "Regression analysis output in R gives us so many values but if we believe that our model is good enough, we might want to extract only coefficients, standard errors, and t-scores or p-values because these are the values that ultimately matters, specific... |
JPA - Quick Guide | Any enterprise application performs database operations by storing and retrieving vast amounts of data. Despite all the available technologies for storage management, application developers normally struggle to perform database operations efficiently.
Generally, Java developers use lots of code, or use the proprietary ... | [
{
"code": null,
"e": 1991,
"s": 1739,
"text": "Any enterprise application performs database operations by storing and retrieving vast amounts of data. Despite all the available technologies for storage management, application developers normally struggle to perform database operations efficiently."
... |
Difference Between Atomic, Volatile and Synchronized in Java - GeeksforGeeks | 17 Nov, 2021
Synchronized is the modifier applicable only for methods and blocks but not for the variables and for classes. There may be a chance of data inconsistency problem to overcome this problem we should go for a synchronized keyword when multiple threads are trying to operate simultaneously on the same java obj... | [
{
"code": null,
"e": 24858,
"s": 24830,
"text": "\n17 Nov, 2021"
},
{
"code": null,
"e": 25817,
"s": 24858,
"text": "Synchronized is the modifier applicable only for methods and blocks but not for the variables and for classes. There may be a chance of data inconsistency problem ... |
Generate all combinations of supplied words in JavaScript | We are required to write a JavaScript function that takes in an array of strings. The function should then generate and return all possible combinations of the strings of the array.
The code for this will be −
const arr = ['a', 'b', 'c', 'd'];
const permutations = (len, val, existing) => {
if(len==0){
res.push... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an array of strings. The function should then generate and return all possible combinations of the strings of the array."
},
{
"code": null,
"e": 1272,
"s": 1244,
"text": "... |
Check if input is a number or letter in JavaScript? | To check if the input is a number or letter, use the isNaN() function from JavaScript. It returns
true if the value is NaN i.e. Not a Number. 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>Doc... | [
{
"code": null,
"e": 1228,
"s": 1062,
"text": "To check if the input is a number or letter, use the isNaN() function from JavaScript. It returns\ntrue if the value is NaN i.e. Not a Number. Following is the code −"
},
{
"code": null,
"e": 1239,
"s": 1228,
"text": " Live Demo"
}... |
k-th smallest absolute difference of two elements in an array - GeeksforGeeks | 05 Jan, 2022
We are given an array of size n containing positive integers. The absolute difference between values at indices i and j is |a[i] – a[j]|. There are n*(n-1)/2 such pairs and we are asked to print the kth (1 <= k <= n*(n-1)/2) the smallest absolute difference among all these pairs.Examples:
Input : a[] = {... | [
{
"code": null,
"e": 40883,
"s": 40855,
"text": "\n05 Jan, 2022"
},
{
"code": null,
"e": 41174,
"s": 40883,
"text": "We are given an array of size n containing positive integers. The absolute difference between values at indices i and j is |a[i] – a[j]|. There are n*(n-1)/2 such ... |
12 Amazing Pandas & NumPy Functions | by Kunal Dhariwal | Towards Data Science | We all know that Pandas and NumPy are amazing, and they play a crucial role in our day to day analysis. Without Pandas and NumPy, we would be left deserted in this huge world of data analytics and science. Today, I am going to share 12 amazing Pandas and NumPy functions that will make your life and analysis much easier... | [
{
"code": null,
"e": 584,
"s": 171,
"text": "We all know that Pandas and NumPy are amazing, and they play a crucial role in our day to day analysis. Without Pandas and NumPy, we would be left deserted in this huge world of data analytics and science. Today, I am going to share 12 amazing Pandas and ... |
Find maximum depth of nested parenthesis in a string - GeeksforGeeks | 25 Mar, 2022
We are given a string having parenthesis like below “( ((X)) (((Y))) )” We need to find the maximum depth of balanced parenthesis, like 4 in the above example. Since ‘Y’ is surrounded by 4 balanced parentheses. If parenthesis is unbalanced then return -1.
Examples :
Input : S = "( a(b) (c) (d(e(f)g)... | [
{
"code": null,
"e": 25124,
"s": 25096,
"text": "\n25 Mar, 2022"
},
{
"code": null,
"e": 25386,
"s": 25124,
"text": "We are given a string having parenthesis like below “( ((X)) (((Y))) )” We need to find the maximum depth of balanced parenthesis, like 4 in the above example... |
File getAbsolutePath() method in Java with Examples - GeeksforGeeks | 30 Jan, 2019
The getAbsolutePath() method is a part of File class. This function returns the absolute pathname of the given file object.If the pathname of the file object is absolute then it simply returns the path of the current file object.
For Example: if we create a file object using the path as “program.txt”, it p... | [
{
"code": null,
"e": 24935,
"s": 24907,
"text": "\n30 Jan, 2019"
},
{
"code": null,
"e": 25165,
"s": 24935,
"text": "The getAbsolutePath() method is a part of File class. This function returns the absolute pathname of the given file object.If the pathname of the file object is ab... |
DTD - Entities | Entities are used to define shortcuts to special characters within the XML documents. Entities can be primarily of four types −
Built-in entities
Built-in entities
Character entities
Character entities
General entities
General entities
Parameter entities
Parameter entities
In general, entities can be declared internall... | [
{
"code": null,
"e": 1794,
"s": 1666,
"text": "Entities are used to define shortcuts to special characters within the XML documents. Entities can be primarily of four types −"
},
{
"code": null,
"e": 1812,
"s": 1794,
"text": "Built-in entities"
},
{
"code": null,
"e":... |
Reverse a sublist of a linked list | Practice | GeeksforGeeks | Given a linked list and positions m and n. Reverse the linked list from position m to n.
Example 1:
Input :
N = 10
Linked List = 1->7->5->3->9->8->10
->2->2->5->NULL
m = 1, n = 8
Output : 2 10 8 9 3 5 7 1 2 5
Explanation :
The nodes from position 1 to 8
are reversed, resulting in
2 10 8 9 3 5 7... | [
{
"code": null,
"e": 327,
"s": 238,
"text": "Given a linked list and positions m and n. Reverse the linked list from position m to n."
},
{
"code": null,
"e": 338,
"s": 327,
"text": "Example 1:"
},
{
"code": null,
"e": 568,
"s": 338,
"text": "Input :\nN = 10\n... |
WSDL - <definition> Element | The <definitions> element must be the root element of all WSDL documents. It defines the name of the web service.
Here is the piece of code from the last chapter that uses the definitions element.
<definitions name="HelloService"
targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl"
xmlns="http://schem... | [
{
"code": null,
"e": 1918,
"s": 1804,
"text": "The <definitions> element must be the root element of all WSDL documents. It defines the name of the web service."
},
{
"code": null,
"e": 2001,
"s": 1918,
"text": "Here is the piece of code from the last chapter that uses the defini... |
Assignment Operators in Python - GeeksforGeeks | 29 Aug, 2020
Operators are used to perform operations on values and variables. These are the special symbols that carry out arithmetic, logical, bitwise computations. The value the operator operates on is known as Operand.
Here, we will cover Assignment Operators in Python. So, Assignment Operators are used to assignin... | [
{
"code": null,
"e": 24063,
"s": 24035,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 24273,
"s": 24063,
"text": "Operators are used to perform operations on values and variables. These are the special symbols that carry out arithmetic, logical, bitwise computations. The value... |
Sum the common elements | Practice | GeeksforGeeks | You are given two arrays of size n1 and n2. Your task is to find all the elements that are common to both the arrays and sum them print them in the order as they appear in the second array. If there are no common elements the output would be 0.
Note: The arrays may contain duplicate elements. However, you need to sum o... | [
{
"code": null,
"e": 471,
"s": 226,
"text": "You are given two arrays of size n1 and n2. Your task is to find all the elements that are common to both the arrays and sum them print them in the order as they appear in the second array. If there are no common elements the output would be 0."
},
{
... |
How to convert byte literals to python strings? | To convert byte literals to Python strings, you need to decode the bytes. It can be done using the decode method on the bytes object.
>>> b"abcde".decode("utf-8")
u'abcde'
You can also map bytes to chr if the bytes represent ASCII encoding as follows −
bytes = [112, 52, 52]
print("".join(map(chr, bytes)))
p44 | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "To convert byte literals to Python strings, you need to decode the bytes. It can be done using the decode method on the bytes object. "
},
{
"code": null,
"e": 1235,
"s": 1197,
"text": ">>> b\"abcde\".decode(\"utf-8\")\nu'abcde'"
}... |
PHP - imap_search() Function | PHP−IMAP functions helps you to access email accounts, IMAP stands for Internet Mail Access Protocol using these functions you can also work with NNTP, POP3 protocols and local mailbox access methods.
The imap_search() accepts a resource value representing an IMAP stream, and a string value representing the search crit... | [
{
"code": null,
"e": 2958,
"s": 2757,
"text": "PHP−IMAP functions helps you to access email accounts, IMAP stands for Internet Mail Access Protocol using these functions you can also work with NNTP, POP3 protocols and local mailbox access methods."
},
{
"code": null,
"e": 3176,
"s": ... |
log() function in C++ | The C/C++ library function double log(double x) returns the natural logarithm (basee
logarithm) of x. Following is the declaration for log() function.
double log(double x)
The parameter is a floating point value. And this function returns natural logarithm
of x.
Live Demo
#include <iostream>
#include <cmath>
using nam... | [
{
"code": null,
"e": 1213,
"s": 1062,
"text": "The C/C++ library function double log(double x) returns the natural logarithm (basee\nlogarithm) of x. Following is the declaration for log() function."
},
{
"code": null,
"e": 1234,
"s": 1213,
"text": "double log(double x)"
},
{... |
Building bar charts using Matplotlib | by Mubarak Ganiyu | Towards Data Science | A bar graph is a data visualization technique that can be used to represent numerical values in a dataset to show how different datapoints vary from each other. It utilizes a bar as a measure of magnitudes. The bigger the bar, the higher the number. For instance, if one is comparing wealth, a bigger bar in a bar graph ... | [
{
"code": null,
"e": 543,
"s": 171,
"text": "A bar graph is a data visualization technique that can be used to represent numerical values in a dataset to show how different datapoints vary from each other. It utilizes a bar as a measure of magnitudes. The bigger the bar, the higher the number. For i... |
Change Y-Axis to Percentage Points in ggplot2 Barplot in R - GeeksforGeeks | 24 Jun, 2021
In this article, we will discuss how to change the Y-axis to percentage using the ggplot2 bar plot in R Programming Language.
First, you need to install the ggplot2 package if it is not previously installed in R Studio. To install and load write the below command in R Console :
install.packages("ggplot2")
... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 24977,
"s": 24851,
"text": "In this article, we will discuss how to change the Y-axis to percentage using the ggplot2 bar plot in R Programming Language."
},
{
"code": null,
"e": ... |
How to get the Azure storage container blobs (files) using Azure CLI in PowerShell? | To get the azure storage container blobs using Azure CLI, we can use “az storage account” along with the blob commands. If you are not connected to the Azure cloud then use “az login” and set the proper subscription using “az account set” before running the storage commands.
To get access to the Azure storage account, ... | [
{
"code": null,
"e": 1463,
"s": 1187,
"text": "To get the azure storage container blobs using Azure CLI, we can use “az storage account” along with the blob commands. If you are not connected to the Azure cloud then use “az login” and set the proper subscription using “az account set” before running... |
Mathematics | L U Decomposition of a System of Linear Equations | 20 Jul, 2021
LU decomposition of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular matrix, such that the product of these two matrices gives the original matrix. It was introduced by Alan Turing in 1948, who also created the Turing ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Jul, 2021"
},
{
"code": null,
"e": 368,
"s": 52,
"text": "LU decomposition of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular matrix, such tha... |
Node.js Streams | 08 Oct, 2021
Streams are one of the fundamental concepts of Node.js. Streams are a type of data-handling methods and are used to read or write input into output sequentially. Streams are used to handle reading/writing files or exchanging information in an efficient way.
The official Node.js documentation defines stream... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 286,
"s": 28,
"text": "Streams are one of the fundamental concepts of Node.js. Streams are a type of data-handling methods and are used to read or write input into output sequentially. Streams are u... |
Python | OCR on All the Images present in a Folder Simultaneously | 11 Nov, 2019
If you have a folder full of images that has some text which needs to be extracted into a separate folder with the corresponding image file name or in a single file, then this is the perfect code you are looking for.
This article not only gives you the basis of OCR (Optical Character Recognition) but also ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n11 Nov, 2019"
},
{
"code": null,
"e": 269,
"s": 52,
"text": "If you have a folder full of images that has some text which needs to be extracted into a separate folder with the corresponding image file name or in a single file, then thi... |
How to use javascript function in check box? | 08 Feb, 2022
Checkboxes are used for instances where a user may wish to select multiple options, such as in the instance of a “check all that apply” question, in forms. HTML Checkboxes Selected. A checkbox element can be placed onto a web page in a pre-checked fashion by setting the checked attribute with a “yes” value... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 365,
"s": 54,
"text": "Checkboxes are used for instances where a user may wish to select multiple options, such as in the instance of a “check all that apply” question, in forms. HTML Checkboxes Se... |
Debugging ReactJS applications | While building a real-world application, the most important thing that a developer should know is how to properly debug the React application. There are many ways to debug our React application and some of the proven methods are explained below −
Tools like ESLint help to write better and clean codes, as it follows pro... | [
{
"code": null,
"e": 1434,
"s": 1187,
"text": "While building a real-world application, the most important thing that a developer should know is how to properly debug the React application. There are many ways to debug our React application and some of the proven methods are explained below −"
},
... |
Creating a chessboard pattern with JavaScript and DOM | 10 Sep, 2021
A chessboard pattern can be created very easily using JavaScript and the concept of document object module (DOM). Using this method, you can create a chessboard with any number of rows and columns as you desire by just tweaking few parameters. Also, the lines of code written using this method will also be ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Sep, 2021"
},
{
"code": null,
"e": 479,
"s": 52,
"text": "A chessboard pattern can be created very easily using JavaScript and the concept of document object module (DOM). Using this method, you can create a chessboard with any numb... |
Scala - for Loops | A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times. There are various forms of for loop in Scala which are described below −
The simplest syntax of for loop with ranges in Scala is −
for( var x <- Range ){
statement(s);
}
Here, t... | [
{
"code": null,
"e": 2344,
"s": 2132,
"text": "A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times. There are various forms of for loop in Scala which are described below −"
},
{
"code": null,
"e": 2402... |
Python – Skew-Normal Distribution in Statistics | 10 Jan, 2020
scipy.stats.skewnorm() is a skew-normal continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the methods with details specific for this particular distribution.
Parameters :
q : lower and upper tail probabilityx : quantilesloc : [op... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 264,
"s": 28,
"text": "scipy.stats.skewnorm() is a skew-normal continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the met... |
DynamoDB - Environment | The DynamoDB Environment only consists of using your Amazon Web Services account to access the DynamoDB GUI console, however, you can also perform a local install.
Navigate to the following website − https://aws.amazon.com/dynamodb/
Click the “Get Started with Amazon DynamoDB” button, or the “Create an AWS Account” but... | [
{
"code": null,
"e": 2689,
"s": 2525,
"text": "The DynamoDB Environment only consists of using your Amazon Web Services account to access the DynamoDB GUI console, however, you can also perform a local install."
},
{
"code": null,
"e": 2758,
"s": 2689,
"text": "Navigate to the fo... |
trunc() in Python | 22 Jan, 2022
Truncate in Python
There are many built-in modules in python. Out of these module there is one interesting module known as math module which have several functions in it like, ceil, floor, truncate, factorial, fabs, etc.
Out of these functions there is an interesting function called truncate which behaves ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n22 Jan, 2022"
},
{
"code": null,
"e": 72,
"s": 53,
"text": "Truncate in Python"
},
{
"code": null,
"e": 274,
"s": 72,
"text": "There are many built-in modules in python. Out of these module there is one interesting ... |
How to create Calendar in ReactJS ? | 29 Oct, 2021
In this article, we are going to learn how we can create calendars in ReactJS. You can use this calendar in your to-do list, e-commerce site, Ticket booking site, and many more apps.
React is a free and open-source front-end JavaScript library for building user interfaces or UI components. It is maintained... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 211,
"s": 28,
"text": "In this article, we are going to learn how we can create calendars in ReactJS. You can use this calendar in your to-do list, e-commerce site, Ticket booking site, and many mor... |
HTML | loop Attribute | 31 Aug, 2021
The HTML loop Attribute is used to restart the audio and video again and again after finishing it. It contains the Boolean value.
Syntax:
<element loop>
Applicable
<audio>
<video>
<marquee>
<bgsound>
Example 1: Below Example illustrates the use of loop attribute in <audio> element.
html
<!DOCTYPE ht... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 159,
"s": 28,
"text": "The HTML loop Attribute is used to restart the audio and video again and again after finishing it. It contains the Boolean value. "
},
{
"code": null,
"e": 169,
... |
Why java.lang.VerifyError Occurs in Java and How to Solve this? | 30 May, 2022
The Java Virtual Machine (JVM) distrusts all loaded bytecode as a core tenet of the Java Security Model. During runtime, the JVM will load .class files and attempt to link them together to form an executable — but the validity of these loaded .class files is unknown. To ensure that the loaded .class files... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2022"
},
{
"code": null,
"e": 445,
"s": 28,
"text": "The Java Virtual Machine (JVM) distrusts all loaded bytecode as a core tenet of the Java Security Model. During runtime, the JVM will load .class files and attempt to link the... |
Find minimum steps required to reach the end of a matrix | Set – 1 | 12 Sep, 2021
Given a 2d-matrix consisting of positive integers, the task is to find the minimum number of steps required to reach the end(leftmost-bottom cell) of the matrix. If we are at cell (i, j) we can go to cells (i, j+arr[i][j]) or (i+arr[i][j], j). We can not go out of bounds. If no path exists, print -1.
Examp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Sep, 2021"
},
{
"code": null,
"e": 354,
"s": 52,
"text": "Given a 2d-matrix consisting of positive integers, the task is to find the minimum number of steps required to reach the end(leftmost-bottom cell) of the matrix. If we are at... |
cron command in Linux with Examples | 22 Jan, 2021
The cron is a software utility, offered by a Linux-like operating system that automates the scheduled task at a predetermined time. It is a daemon process, which runs as a background process and performs the specified operations at the predefined time when a certain event or condition is triggered without ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 1092,
"s": 52,
"text": "The cron is a software utility, offered by a Linux-like operating system that automates the scheduled task at a predetermined time. It is a daemon process, which runs as a b... |
Function overloading and return type in C++ | You can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by the types and/or the number of arguments in the argument list. You cannot overload function declarations that differ only by return type.
The function overloading is basically th... | [
{
"code": null,
"e": 1342,
"s": 1062,
"text": "You can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by the types and/or the number of arguments in the argument list. You cannot overload function declarations that d... |
Live Video Sketching through Webcam using Computer Vision | by Kaushik Jadhav | Towards Data Science | Computer Vision refers to a field of Computer Science that focuses on enabling computers to see, identify and process images in the same way as the human mind does. It is a branch of Artificial Intelligence that allows computer to extract useful features from a set of images, perform the required operations on them and... | [
{
"code": null,
"e": 513,
"s": 171,
"text": "Computer Vision refers to a field of Computer Science that focuses on enabling computers to see, identify and process images in the same way as the human mind does. It is a branch of Artificial Intelligence that allows computer to extract useful features ... |
HTTP headers | Expect-CT - GeeksforGeeks | 19 Nov, 2019
The HTTP Expect-CT header is a response-type header that prevents the usage of wrongly issued certificates for a site and makes sure that they do not go unnoticed and it also allows sites to decide on reporting or enforcement of Certificate Transparency requirements.
Syntax:
Expect-CT max-age=<age>, enforc... | [
{
"code": null,
"e": 24746,
"s": 24718,
"text": "\n19 Nov, 2019"
},
{
"code": null,
"e": 25014,
"s": 24746,
"text": "The HTTP Expect-CT header is a response-type header that prevents the usage of wrongly issued certificates for a site and makes sure that they do not go unnoticed ... |
H2 Database - JDBC Connection | H2 is a JAVA database. We can interact with this database by using JDBC. In this chapter, we will see how to create a JDBC connection with H2 database and the CRUD operations with the H2 database.
Generally, there are five steps to create a JDBC connection.
Step 1 − Registering the JDBC database driver.
Class.forName (... | [
{
"code": null,
"e": 2304,
"s": 2107,
"text": "H2 is a JAVA database. We can interact with this database by using JDBC. In this chapter, we will see how to create a JDBC connection with H2 database and the CRUD operations with the H2 database."
},
{
"code": null,
"e": 2365,
"s": 2304... |
How to Count Occurrences of Each Character in String in Android? | This example demonstrates How to Count Occurrences of Each Character in String 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 = "u... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "This example demonstrates How to Count Occurrences of Each Character in String in Android."
},
{
"code": null,
"e": 1282,
"s": 1153,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requ... |
The Top Data Science Datasets Right Now | Towards Data Science | IntroductionKaggleDatasetsSummaryReferences
Introduction
Kaggle
Datasets
Summary
References
Over a certain amount of time, you might notice that there are similar datasets being utilized in data science blogs, undergraduate studies, graduate courses, and online learning. These datasets can sometimes reflect the current... | [
{
"code": null,
"e": 216,
"s": 172,
"text": "IntroductionKaggleDatasetsSummaryReferences"
},
{
"code": null,
"e": 229,
"s": 216,
"text": "Introduction"
},
{
"code": null,
"e": 236,
"s": 229,
"text": "Kaggle"
},
{
"code": null,
"e": 245,
"s": 23... |
Split Space Delimited String and Trim Extra Commas and Spaces in JavaScript? | Let’s say the following is our string −
var sentence = "My,,,,,,, Name,,,, is John ,,, Smith";
Use regular expression along with split() and join() to remove extra spaces and commas.
Following is the code −
var sentence = "My,,,,,,, Name,,,, is John ,,, Smith";
console.log("Before removing extra comma and space="+sente... | [
{
"code": null,
"e": 1102,
"s": 1062,
"text": "Let’s say the following is our string −"
},
{
"code": null,
"e": 1157,
"s": 1102,
"text": "var sentence = \"My,,,,,,, Name,,,, is John ,,, Smith\";"
},
{
"code": null,
"e": 1269,
"s": 1157,
"text": "Use regular ex... |
GATE | Gate IT 2005 | Question 78 - GeeksforGeeks | 03 Sep, 2021
Consider the following message M = 1010001101. The cyclic redundancy check (CRC) for this message using the divisor polynomial x5 + x4 + x2 + 1 is :
(A) 01110(B) 01011(C) 10101(D) 10110Answer: (A)Explanation:
M = 1010001101
Divisor polynomial: 1.x5 +1.x4+0.x3+1.x2+0.x2+1.x0
Divisor polynomial bit= 1101... | [
{
"code": null,
"e": 25791,
"s": 25763,
"text": "\n03 Sep, 2021"
},
{
"code": null,
"e": 25940,
"s": 25791,
"text": "Consider the following message M = 1010001101. The cyclic redundancy check (CRC) for this message using the divisor polynomial x5 + x4 + x2 + 1 is :"
},
{
... |
Python - Poisson Discrete Distribution in Statistics - GeeksforGeeks | 10 Jan, 2020
scipy.stats.poisson() is a poisson discrete random variable. It is inherited from the of generic methods as an instance of the rv_discrete class. It completes the methods with details specific for this particular distribution.
Parameters :
x : quantilesloc : [optional]location parameter. Default = 0scale :... | [
{
"code": null,
"e": 26181,
"s": 26153,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 26408,
"s": 26181,
"text": "scipy.stats.poisson() is a poisson discrete random variable. It is inherited from the of generic methods as an instance of the rv_discrete class. It completes the ... |
C - Recursion | Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to call a function inside the same function, then it is called a recursive call of the function.
void recursion() {
recursion(); /* function calls itself */
}
int main() {
recursion();
}
The C pro... | [
{
"code": null,
"e": 2298,
"s": 2084,
"text": "Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to call a function inside the same function, then it is called a recursive call of the function."
},
{
"code": null,
"e": 23... |
Algorithmic Trading using Sentiment Analysis on News Articles | by Jason Yip | Towards Data Science | Well I was supposed to study for my exams but I was very tempted to explore this while I was taking breaks. I realized that I could use elements from my previous projects to work on this. I previously wrote about Automating Social Media Contests with Web Scraping which is relevant to news scraping and I also wrote abou... | [
{
"code": null,
"e": 606,
"s": 172,
"text": "Well I was supposed to study for my exams but I was very tempted to explore this while I was taking breaks. I realized that I could use elements from my previous projects to work on this. I previously wrote about Automating Social Media Contests with Web ... |
Difference between prefix and postfix operators in C#? | The increment operator ++ if used as prefix on a variable, the value of variable gets incremented by 1. After that the value is returned unlike Postfix operator. It is called Prefix increment operator. In the same way the prefix decrement operator works but it decrements by 1.
For example, an example of prefix operator... | [
{
"code": null,
"e": 1340,
"s": 1062,
"text": "The increment operator ++ if used as prefix on a variable, the value of variable gets incremented by 1. After that the value is returned unlike Postfix operator. It is called Prefix increment operator. In the same way the prefix decrement operator works... |
Matplotlib.artist.Artist.set_picker() in Python - GeeksforGeeks | 10 May, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Artist class contains Abstract base class for objects that render into a FigureCanvas. All visible elements in a figure are subclasses of Artist.
The set_picker() method in artist module of matplotlib libr... | [
{
"code": null,
"e": 24312,
"s": 24284,
"text": "\n10 May, 2020"
},
{
"code": null,
"e": 24560,
"s": 24312,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Artist class contains Abstract base class for objects that re... |
DAX Statistical - STDEVX.P function | Evaluates the given expression for each row of the given table and returns the standard deviation of expression assuming that the table refers to the entire population.
STDEVX.P (<table>, <expression>)
table
A table or any DAX expression that returns a table of data.
expression
Any DAX expression that returns a singl... | [
{
"code": null,
"e": 2170,
"s": 2001,
"text": "Evaluates the given expression for each row of the given table and returns the standard deviation of expression assuming that the table refers to the entire population."
},
{
"code": null,
"e": 2205,
"s": 2170,
"text": "STDEVX.P (<ta... |
Reading from and Writing into Binary files | The BinaryReader and BinaryWriter classes are used for reading from and writing to a binary file.
The BinaryReader class is used to read binary data from a file. A BinaryReader object is created by passing a FileStream object to its constructor.
The following table describes commonly used methods of the BinaryReader cl... | [
{
"code": null,
"e": 2368,
"s": 2270,
"text": "The BinaryReader and BinaryWriter classes are used for reading from and writing to a binary file."
},
{
"code": null,
"e": 2516,
"s": 2368,
"text": "The BinaryReader class is used to read binary data from a file. A BinaryReader objec... |
C++ Program to Compute Combinations using Recurrence Relation for nCr | This is a C++ program to compute Combinations using Recurrence Relation for nCr.
Begin
function CalCombination():
Arguments: n, r.
Body of the function:
Calculate combination by using
the formula: n! / (r! * (n-r)!.
End
#include<iostream>
using namespace std;
float CalCombination(float n, flo... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "This is a C++ program to compute Combinations using Recurrence Relation for nCr."
},
{
"code": null,
"e": 1309,
"s": 1143,
"text": "Begin\n function CalCombination():\n Arguments: n, r.\n Body of the function:\n Calc... |
Biopython - Installation | This section explains how to install Biopython on your machine. It is very easy to install and it will not take more than five minutes.
Step 1 − Verifying Python Installation
Biopython is designed to work with Python 2.5 or higher versions. So, it is mandatory that python be installed first. Run the below command in yo... | [
{
"code": null,
"e": 2242,
"s": 2106,
"text": "This section explains how to install Biopython on your machine. It is very easy to install and it will not take more than five minutes."
},
{
"code": null,
"e": 2281,
"s": 2242,
"text": "Step 1 − Verifying Python Installation"
},
... |
Commonly asked Interview Questions for Front End Developers - GeeksforGeeks | 05 Dec, 2016
1) CSS, JS best practices? Strict mode, etc.
2) Mention some IE CSS issues faced by developers.
3) How to defer an element’s event handler if it depends on an external script that takes some time to load?
4) Optimal strategy for winning a game where let’s say, I start with 1, opponent can cite a number X w... | [
{
"code": null,
"e": 25751,
"s": 25723,
"text": "\n05 Dec, 2016"
},
{
"code": null,
"e": 25796,
"s": 25751,
"text": "1) CSS, JS best practices? Strict mode, etc."
},
{
"code": null,
"e": 25847,
"s": 25796,
"text": "2) Mention some IE CSS issues faced by develo... |
How to Build Your First Python Package | by Shaked Zychlinski | Towards Data Science | This blogpost is now available in Polish too, read it on BulldogJob.pl
About two years ago I published my very first data-science related blogpost. It was about Categorical Correlations, and I honestly thought no-one will find it useful. It was just experimental, and for myself. 1.7K claps later, I’ve learned that I ca... | [
{
"code": null,
"e": 117,
"s": 46,
"text": "This blogpost is now available in Polish too, read it on BulldogJob.pl"
},
{
"code": null,
"e": 502,
"s": 117,
"text": "About two years ago I published my very first data-science related blogpost. It was about Categorical Correlations, ... |
Decision Tree Classifier explained in real-life: picking a vacation destination | by Carolina Bento | Towards Data Science | This is article number one in a series dedicated to Tree Based Algorithms, a group of widely used Supervised Machine Learning Algorithms.
Stay tuned if you’d like to see Decision Trees, Random Forests and Gradient Boosting Decision Trees, explained with real-life examples and some Python code.
Decision Tree is a Superv... | [
{
"code": null,
"e": 310,
"s": 172,
"text": "This is article number one in a series dedicated to Tree Based Algorithms, a group of widely used Supervised Machine Learning Algorithms."
},
{
"code": null,
"e": 467,
"s": 310,
"text": "Stay tuned if you’d like to see Decision Trees, ... |
Java | Functions | Question 11 - GeeksforGeeks | 24 May, 2019
Predict the output of the following program.
class Test{ public static void main(String[] args) { String str = "geeks"; str.toUpperCase(); str += "forgeeks"; String string = str.substring(2,13); string = string + str.charAt(4);; System.out.println(string); ... | [
{
"code": null,
"e": 25799,
"s": 25771,
"text": "\n24 May, 2019"
},
{
"code": null,
"e": 25844,
"s": 25799,
"text": "Predict the output of the following program."
},
{
"code": "class Test{ public static void main(String[] args) { String str = \"geeks\"; ... |
Batch Script - VOL | This batch command displays the volume labels.
VOL
@echo off
VOL
The output will display the current volume label. For example,
Volume in drive C is Windows8_OS
Volume Serial Number is E41C-6F43
Print
Add Notes
Bookmark this page | [
{
"code": null,
"e": 2216,
"s": 2169,
"text": "This batch command displays the volume labels."
},
{
"code": null,
"e": 2221,
"s": 2216,
"text": "VOL\n"
},
{
"code": null,
"e": 2236,
"s": 2221,
"text": "@echo off \nVOL"
},
{
"code": null,
"e": 2299,... |
Python | Aggregate values by tuple keys - GeeksforGeeks | 29 Oct, 2019
Sometimes, while working with records, we can have a problem in which we need to group the like keys and aggregate the values of like keys. This can have application in any kind of scoring. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using Counter() + generator expressionThe... | [
{
"code": null,
"e": 24410,
"s": 24382,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 24664,
"s": 24410,
"text": "Sometimes, while working with records, we can have a problem in which we need to group the like keys and aggregate the values of like keys. This can have applicati... |
JSTL - fn:toUpperCase() Function | The fn:toUpperCase() function converts all the characters of a string to uppercase.
The fn:toUpperCase() function has the following syntax −
java.lang.String tolowercase(java.lang.String)
Following example explains the functionality of the fn:toUpperCase() function −
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core... | [
{
"code": null,
"e": 2323,
"s": 2239,
"text": "The fn:toUpperCase() function converts all the characters of a string to uppercase."
},
{
"code": null,
"e": 2380,
"s": 2323,
"text": "The fn:toUpperCase() function has the following syntax −"
},
{
"code": null,
"e": 2428... |
Make Your Data Science Life Easy With Docker | by Fahad Akbar | Towards Data Science | One of the preliminary steps that you take when you embark on your data science journey is dealing with the installation of different software such as Python, Jyupter Notebook, some IDEs and countless libraries. Once you successfully pass through this, you often encounter situations where your code seems to work fine o... | [
{
"code": null,
"e": 607,
"s": 172,
"text": "One of the preliminary steps that you take when you embark on your data science journey is dealing with the installation of different software such as Python, Jyupter Notebook, some IDEs and countless libraries. Once you successfully pass through this, yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.