title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to convert Lower case to Upper Case using C#? | To convert Lower case to Upper case, use the ToUpper() method in C#.
Let’s say your string is −
str = "david";
To convert the above lowercase string in uppercase, use the ToUpper() method −
Console.WriteLine("Converted to UpperCase : {0}", str.ToUpper());
The following is the code in C# to convert character case −
usin... | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "To convert Lower case to Upper case, use the ToUpper() method in C#."
},
{
"code": null,
"e": 1158,
"s": 1131,
"text": "Let’s say your string is −"
},
{
"code": null,
"e": 1173,
"s": 1158,
"text": "str = \"david\"... |
Super keyword in JavaScript? | The super keyword is used to access and call functions on an object's parent. The super.prop and super[expr] expressions are legible in any method definition in both classes and object literals. It is used in the "extended" class, which uses "extends" keyword.
super(arguments);
In the following example, the characteris... | [
{
"code": null,
"e": 1323,
"s": 1062,
"text": "The super keyword is used to access and call functions on an object's parent. The super.prop and super[expr] expressions are legible in any method definition in both classes and object literals. It is used in the \"extended\" class, which uses \"extends... |
Decimal to binary conversion without using arithmetic operators - GeeksforGeeks | 06 Apr, 2021
Find the binary equivalent of the given non-negative number n without using arithmetic operators.Examples:
Input : n = 10
Output : 1010
Input : n = 38
Output : 100110
Note that + in below algorithm/program is used for concatenation purpose. Algorithm:
decToBin(n)
if n == 0
return "0"
... | [
{
"code": null,
"e": 24327,
"s": 24299,
"text": "\n06 Apr, 2021"
},
{
"code": null,
"e": 24436,
"s": 24327,
"text": "Find the binary equivalent of the given non-negative number n without using arithmetic operators.Examples: "
},
{
"code": null,
"e": 24497,
"s": 2... |
MySQL - ALTER VIEW Statement | A MySQL view is a composition of a table in the form of a predefined SQL query. It is stored in the database with an associated name.
You can change the definition of an existing view using the ALTER VIEW Statement
Following is the syntax of the ALTER VIEW Statement −
ALTER
[ALGORITHM = {UNDEFINED | MERGE | TEMPTABL... | [
{
"code": null,
"e": 2467,
"s": 2333,
"text": "A MySQL view is a composition of a table in the form of a predefined SQL query. It is stored in the database with an associated name."
},
{
"code": null,
"e": 2548,
"s": 2467,
"text": "You can change the definition of an existing vie... |
SIC/XE Architecture - GeeksforGeeks | 20 May, 2019
SIC/XE stands for Simplified Instructional Computer Extra Equipment or Extra Expensive. This computer is an advance version of SIC. Both SIC and SIC/XE are closely related to each other that’s why they are Upward Compatible.
SIC/XE machine architecture:
1. Memory:
Memory consists of 8 bit-bytes and the mem... | [
{
"code": null,
"e": 26159,
"s": 26131,
"text": "\n20 May, 2019"
},
{
"code": null,
"e": 26384,
"s": 26159,
"text": "SIC/XE stands for Simplified Instructional Computer Extra Equipment or Extra Expensive. This computer is an advance version of SIC. Both SIC and SIC/XE are closely... |
PostgreSQL - Identity Column - GeeksforGeeks | 28 Aug, 2020
In PostgreSQL, the GENERATED AS IDENTITY constraint is used to create a PostgreSQL identity column. It allows users to automatically assign a unique value to a column. The GENERATED AS IDENTITY constraint is the SQL standard-conforming variant of the PostgreSQL’s SERIAL column.
Syntax:
column_name type GEN... | [
{
"code": null,
"e": 24000,
"s": 23972,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 24279,
"s": 24000,
"text": "In PostgreSQL, the GENERATED AS IDENTITY constraint is used to create a PostgreSQL identity column. It allows users to automatically assign a unique value to a col... |
Sorting array of strings (or words) using Trie - GeeksforGeeks | 17 Sep, 2021
Given an array of strings, print them in alphabetical (dictionary) order. If there are duplicates in input array, we need to print them only once.Examples:
Input : "abc", "xy", "bcd"
Output : abc bcd xy
Input : "geeks", "for", "geeks", "a", "portal",
"to", "learn", "can", "be", "comput... | [
{
"code": null,
"e": 24506,
"s": 24478,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 24664,
"s": 24506,
"text": "Given an array of strings, print them in alphabetical (dictionary) order. If there are duplicates in input array, we need to print them only once.Examples: "
},... |
D3.js zoomIdentity() Function - GeeksforGeeks | 06 Sep, 2020
The d3.zoomIdentity() function in D3.js is used to get the identity transform, where k = 1, tx = ty = 0.
Syntax:
d3.zoomIdentity;
Parameters: This function does not accept any parameter.
Return Value: This function returns the identity transform.
Below programs illustrate the d3.zoomIdentity() function in... | [
{
"code": null,
"e": 25220,
"s": 25192,
"text": "\n06 Sep, 2020"
},
{
"code": null,
"e": 25325,
"s": 25220,
"text": "The d3.zoomIdentity() function in D3.js is used to get the identity transform, where k = 1, tx = ty = 0."
},
{
"code": null,
"e": 25333,
"s": 25325... |
JavaFX | Building a Media Player - GeeksforGeeks | 23 Jun, 2020
This JavaFX library is used to make feature-rich internet apps (they offer similar experience and features as that of desktop apps). Like other Java libraries, the products built upon this library are platform independent, they can run on devices such as mobile phones, TVs, computers etc.
Other JVM based t... | [
{
"code": null,
"e": 25439,
"s": 25411,
"text": "\n23 Jun, 2020"
},
{
"code": null,
"e": 25729,
"s": 25439,
"text": "This JavaFX library is used to make feature-rich internet apps (they offer similar experience and features as that of desktop apps). Like other Java libraries, the... |
Find the largest number | Practice | GeeksforGeeks | Given an integer N the task is to find the largest number which is smaller or equal to it and has its digits in non-decreasing order.
Examples 1:
Input:
N = 200
Output:
199
Explanation:
If the given number
is 200, the largest
number which is smaller
or equal to it having
digits in non decreasing
order is 199.
E... | [
{
"code": null,
"e": 374,
"s": 238,
"text": "Given an integer N the task is to find the largest number which is smaller or equal to it and has its digits in non-decreasing order.\n "
},
{
"code": null,
"e": 386,
"s": 374,
"text": "Examples 1:"
},
{
"code": null,
"e": ... |
10 Fabulous Python Decorators | by Emmett Boudreau | Towards Data Science | A great thing about the Python programming language is all of the features that it packs into a small package that are incredibly useful. A lot of said features can completely alter the functionality of Python code, which makes the language more versatile. Furthermore, some of these functionalities can serve to shorten... | [
{
"code": null,
"e": 674,
"s": 172,
"text": "A great thing about the Python programming language is all of the features that it packs into a small package that are incredibly useful. A lot of said features can completely alter the functionality of Python code, which makes the language more versatile... |
How to use autocomplete attribute in HTML? | The autocomplete attribute is used with form element to set the autocomplete feature on or off. If the autocomplete feature is on, the browser will automatically show values, based on what users entered before in the field.
If the autocomplete feature is off, the browser won’t automatically show values, based on what u... | [
{
"code": null,
"e": 1286,
"s": 1062,
"text": "The autocomplete attribute is used with form element to set the autocomplete feature on or off. If the autocomplete feature is on, the browser will automatically show values, based on what users entered before in the field."
},
{
"code": null,
... |
How to plot a gradient color line in matplotlib? | To plot a gradient color line in matplotlib, we can take the following steps −
Create x, y and c data points, using numpy.
Create x, y and c data points, using numpy.
Create scatter points over the axes (closely so as to get a line), using the scatter() method with c and marker='_'.
Create scatter points over the axes ... | [
{
"code": null,
"e": 1141,
"s": 1062,
"text": "To plot a gradient color line in matplotlib, we can take the following steps −"
},
{
"code": null,
"e": 1185,
"s": 1141,
"text": "Create x, y and c data points, using numpy."
},
{
"code": null,
"e": 1229,
"s": 1185,
... |
C++ Program to Demonstrate the Implementation of 4-Color Problem | This is a C++ Program to Demonstrate the Implementation of 4-Color Problem.
Begin
Develop function issafe() to check if the current color assignment
is safe for vertex v i.e. checks whether the edge exists or not.
If it exists,
then next check whether the color to be filled in the new vertex is already u... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "This is a C++ Program to Demonstrate the Implementation of 4-Color Problem."
},
{
"code": null,
"e": 2137,
"s": 1138,
"text": "Begin\n Develop function issafe() to check if the current color assignment\n is safe for vertex v i.e.... |
jQuery - CSS Selectors Methods | The jQuery library supports nearly all of the selectors included in Cascading Style Sheet (CSS) specifications 1 through 3, as outlined on the World Wide Web Consortium's site.
Using JQuery library developers can enhance their websites without worrying about browsers and their versions as long as the browsers have Java... | [
{
"code": null,
"e": 2499,
"s": 2322,
"text": "The jQuery library supports nearly all of the selectors included in Cascading Style Sheet (CSS) specifications 1 through 3, as outlined on the World Wide Web Consortium's site."
},
{
"code": null,
"e": 2658,
"s": 2499,
"text": "Using... |
Deep Reinforcement Learning and Hyperparameter Tuning | by Christian Hubbs | Towards Data Science | One of the most difficult and time consuming parts of deep reinforcement learning is the optimization of hyperparameters. These values — such as the discount factor [latex]\gamma[/latex], or the learning rate — can make all the difference in the performance of your agent.
Agents need to be trained to see how the hyperp... | [
{
"code": null,
"e": 445,
"s": 172,
"text": "One of the most difficult and time consuming parts of deep reinforcement learning is the optimization of hyperparameters. These values — such as the discount factor [latex]\\gamma[/latex], or the learning rate — can make all the difference in the performa... |
Angular 2 - Lifecycle Hooks | Angular 2 application goes through an entire set of processes or has a lifecycle right from its initiation to the end of the application.
The following diagram shows the entire processes in the lifecycle of the Angular 2 application.
Following is a description of each lifecycle hook.
ngOnChanges − When the value of a d... | [
{
"code": null,
"e": 2435,
"s": 2297,
"text": "Angular 2 application goes through an entire set of processes or has a lifecycle right from its initiation to the end of the application."
},
{
"code": null,
"e": 2531,
"s": 2435,
"text": "The following diagram shows the entire proce... |
How to convert string into a number using AngularJS ? - GeeksforGeeks | 30 Sep, 2020
In this article, we will see how to convert a string into a number with the help of AngularJS.
Approach:
The parseInt() method is used for converting the string to an integer.
We will check whether the string is an integer or not by the isNumber() method.
Example 1: In the first example, the string ’90’ ... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 25204,
"s": 25109,
"text": "In this article, we will see how to convert a string into a number with the help of AngularJS."
},
{
"code": null,
"e": 25215,
"s": 25204,
"tex... |
How to plot an array in Python using Matplotlib? | To plot an array in Python, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Create two arrays, x and y, using numpy.
Set the title of the curve using title() method.
Plot x and y data points, with red color.
To display the figure, use show() method.
import n... | [
{
"code": null,
"e": 1124,
"s": 1062,
"text": "To plot an array in Python, we can take the following steps −"
},
{
"code": null,
"e": 1200,
"s": 1124,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null,
"e": 1241,
... |
Aptitude - Number System Online Quiz | Following quiz provides Multiple Choice Questions (MCQs) related to Number System. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the... | [
{
"code": null,
"e": 4219,
"s": 3892,
"text": "Following quiz provides Multiple Choice Questions (MCQs) related to Number System. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button... |
Reading a CSV file in Java using OpenCSV - GeeksforGeeks | 29 Jul, 2021
A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally it is a comma “, ”).
OpenCSV is a CSV parser library for Java. OpenCSV supports all the basic CSV-type operations you are want to do. Java 7 is currently the minim... | [
{
"code": null,
"e": 24455,
"s": 24427,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 24620,
"s": 24455,
"text": "A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally it is a comma “, ”)... |
Stop Installing Tensorflow using pip for performance sake! | by Michael Phi | Towards Data Science | Stop installing Tensorflow using pip! Use conda instead. If you don’t know what conda is, it’s an open source package and environment management system that runs cross-platform. So it works on Mac, Windows, and Linux. If you aren’t already using conda, I recommend that you start as it makes managing your data science t... | [
{
"code": null,
"e": 392,
"s": 46,
"text": "Stop installing Tensorflow using pip! Use conda instead. If you don’t know what conda is, it’s an open source package and environment management system that runs cross-platform. So it works on Mac, Windows, and Linux. If you aren’t already using conda, I r... |
Python - Normal Distribution in Statistics - GeeksforGeeks | 10 Jan, 2020
scipy.stats.norm() is a 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 : [optional]lo... | [
{
"code": null,
"e": 23941,
"s": 23913,
"text": "\n10 Jan, 2020"
},
{
"code": null,
"e": 24168,
"s": 23941,
"text": "scipy.stats.norm() is a normal continuous random variable. It is inherited from the of generic methods as an instance of the rv_continuous class. It completes the ... |
How to add CSS properties to an element dynamically using jQuery ? - GeeksforGeeks | 24 Mar, 2021
In this article, we will see how to add some CSS properties dynamically using jQuery. To add CSS properties dynamically, we use css() method. The css() method is used to change style property of the selected element.
The css() method can be used in different ways. This method can also be used to check the... | [
{
"code": null,
"e": 25364,
"s": 25336,
"text": "\n24 Mar, 2021"
},
{
"code": null,
"e": 25582,
"s": 25364,
"text": "In this article, we will see how to add some CSS properties dynamically using jQuery. To add CSS properties dynamically, we use css() method. The css() method is u... |
What is the difference between break and continue statements in C#? | The break statement terminates the loop and transfers execution to the statement immediately following the loop.
The continue statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
When the break statement is encountered inside a loop, the loop is immediat... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "The break statement terminates the loop and transfers execution to the statement immediately following the loop."
},
{
"code": null,
"e": 1307,
"s": 1175,
"text": "The continue statement causes the loop to skip the remainder of its b... |
JavaFX - Pie Chart | A pie-chart is a representation of values as slices of a circle with different colors. These slices are labeled and the values corresponding to each slice is represented in the chart.
Following is a Pie Chart depicting the mobile sales of various companies at an instance.
In JavaFX, a pie chart is represented by a clas... | [
{
"code": null,
"e": 2084,
"s": 1900,
"text": "A pie-chart is a representation of values as slices of a circle with different colors. These slices are labeled and the values corresponding to each slice is represented in the chart."
},
{
"code": null,
"e": 2173,
"s": 2084,
"text":... |
Building Calculator using PyQt5 in Python - GeeksforGeeks | 28 May, 2020
In this article we will see how we can create a calculator using PyQt5,A calculator is something used for making mathematical calculations, in particular a small electronic device with a keyboard and a visual display. below is the how the calculator will looks like
Create a label to show the numbers and t... | [
{
"code": null,
"e": 23927,
"s": 23899,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 24194,
"s": 23927,
"text": "In this article we will see how we can create a calculator using PyQt5,A calculator is something used for making mathematical calculations, in particular a small e... |
How to multiply two vectors in R as in mathematics? | In mathematics, when two vectors are multiplied the output is a scalar quantity which is the sum of the product of the values. For example, if we have two vectors x and y each containing 1 and 2 then the multiplication of the two vectors will be 5. In R, we can do it by using t(x)%*%y.
Live Demo
x1<-1:2
y1<-1:2
t(x1)%... | [
{
"code": null,
"e": 1349,
"s": 1062,
"text": "In mathematics, when two vectors are multiplied the output is a scalar quantity which is the sum of the product of the values. For example, if we have two vectors x and y each containing 1 and 2 then the multiplication of the two vectors will be 5. In R... |
Java Graphics2D Class 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
In this tutorials, we are going to see how to... | [
{
"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,
... |
GWT - RPC Communication | A GWT based application is generally consists of a client side module and server side module. Client side code runs in browser and server side code runs in web server. Client side code has to make an HTTP request accross the network to access server side data.
RPC, Remote Procedure Call is the mechansim used by GWT in ... | [
{
"code": null,
"e": 2284,
"s": 2023,
"text": "A GWT based application is generally consists of a client side module and server side module. Client side code runs in browser and server side code runs in web server. Client side code has to make an HTTP request accross the network to access server sid... |
R is Slow - And It's Your Fault! | Drew Seewald | Towards Data Science | Anyone who works in the data science space is familiar with R. You’ve surely come across someone making the argument that R is a slow language and can’t handle larger data. That simply isn’t always the case. A lot of R code I’ve seen in the wild shows that there is a lack of fundamental understanding of how the languag... | [
{
"code": null,
"e": 597,
"s": 172,
"text": "Anyone who works in the data science space is familiar with R. You’ve surely come across someone making the argument that R is a slow language and can’t handle larger data. That simply isn’t always the case. A lot of R code I’ve seen in the wild shows tha... |
Interactive Data Visualization with Vega | by Déborah Mesquita | Towards Data Science | I’m always learning new visualization tools because this helps me identify the right one for the task at hand. When it comes to Data Visualization, d3 is usually the go-to choice, but recently I've been playing with Vega and I'm loving it.
Vega introduces a visualization grammar. A grammar is basically a set of rules t... | [
{
"code": null,
"e": 412,
"s": 172,
"text": "I’m always learning new visualization tools because this helps me identify the right one for the task at hand. When it comes to Data Visualization, d3 is usually the go-to choice, but recently I've been playing with Vega and I'm loving it."
},
{
"... |
Why to use fgets() over scanf() in C? - GeeksforGeeks | 14 Mar, 2019
Any time you use an *f function, whether it be printf, scanf, or their derivatives (fprintf, fscanf, etc...), you are doing more things than you might realize. Not only are you reading (or writing) something, but-and here’s the problem- you are interpreting it. The format string can be thought of as kind o... | [
{
"code": null,
"e": 23843,
"s": 23815,
"text": "\n14 Mar, 2019"
},
{
"code": null,
"e": 24417,
"s": 23843,
"text": "Any time you use an *f function, whether it be printf, scanf, or their derivatives (fprintf, fscanf, etc...), you are doing more things than you might realize. Not... |
FAB - Speed Dial in Flutter - GeeksforGeeks | 23 Sep, 2020
Floating action button, commonly abbreviated as FAB, is a primary action button that has a fixed position hovering over in an app, without altering the contents of the screen. Speed dial is a transition type of FAB, where it emits multiple entities as an action of a FAB in the same screen.
FAB has three pa... | [
{
"code": null,
"e": 27185,
"s": 27157,
"text": "\n23 Sep, 2020"
},
{
"code": null,
"e": 27476,
"s": 27185,
"text": "Floating action button, commonly abbreviated as FAB, is a primary action button that has a fixed position hovering over in an app, without altering the contents of... |
Difference Between TreeSet and SortedSet in Java - GeeksforGeeks | 01 Nov, 2021
TreeSet is one of the implementations of the Navigable sub-interface. It is underlying data structure is a red-black tree. The elements are stored in ascending order and more methods are available in TreeSet compare to SortedSet. We can also change the sorting parameter using a Comparator. For example, Com... | [
{
"code": null,
"e": 26129,
"s": 26101,
"text": "\n01 Nov, 2021"
},
{
"code": null,
"e": 26515,
"s": 26129,
"text": "TreeSet is one of the implementations of the Navigable sub-interface. It is underlying data structure is a red-black tree. The elements are stored in ascending ord... |
Explain typecasting in Javascript? | Converting a data type into another is known as type casting. Sometimes there is a need to convert the data type of one value to another. Under some circumstances JavaScript will perform automatic type conversion.
Automatic Type Conversion
JavaScript expects a boolean in a conditional expression. So JavaScript will tem... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "Converting a data type into another is known as type casting. Sometimes there is a need to convert the data type of one value to another. Under some circumstances JavaScript will perform automatic type conversion."
},
{
"code": null,
"e": 13... |
Print Matrix in spiral way
| This algorithm is used to print the array elements in a spiral way. At first starting from the first row, print the whole content and then follow the last column to print, then the last row and so on, thus it prints the elements in spiral fashion.
The time complexity of this algorithm is O(MN), M is the number of rows... | [
{
"code": null,
"e": 1311,
"s": 1062,
"text": "This algorithm is used to print the array elements in a spiral way. At first starting from the first row, print the whole content and then follow the last column to print, then the last row and so on, thus it prints the elements in spiral fashion. "
}... |
A Data Scientist’s Guide to Data Structures & Algorithms, Part 1 | by Paulina Zheng | Towards Data Science | Note: This is part 1 of a 2-part series. For the follow-up post, see here.
In data science, computer science and statistics converge. As data scientists, we use statistical principles to write code such that we can effectively explore the problem at hand.
This necessitates at least a basic understanding of data structu... | [
{
"code": null,
"e": 247,
"s": 172,
"text": "Note: This is part 1 of a 2-part series. For the follow-up post, see here."
},
{
"code": null,
"e": 428,
"s": 247,
"text": "In data science, computer science and statistics converge. As data scientists, we use statistical principles to... |
Design IIR Bandpass Chebyshev Type-1 Filter using Scipy - Python - GeeksforGeeks | 10 Nov, 2021
IIR stands for Infinite Impulse Response, It is one of the striking features of many linear-time invariant systems that are distinguished by having an impulse response h(t)/h(n) which does not become zero after some point but instead continues infinitely.
IIR Chebyshev is a filter that is linear-time invar... | [
{
"code": null,
"e": 24620,
"s": 24592,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 24876,
"s": 24620,
"text": "IIR stands for Infinite Impulse Response, It is one of the striking features of many linear-time invariant systems that are distinguished by having an impulse resp... |
Selection Sort | In the selection sort technique, the list is divided into two parts. In one part all elements are sorted and in another part the items are unsorted. At first, we take the maximum or minimum data from the array. After getting the data (say minimum) we place it at the beginning of the list by replacing the data of first ... | [
{
"code": null,
"e": 1495,
"s": 1062,
"text": "In the selection sort technique, the list is divided into two parts. In one part all elements are sorted and in another part the items are unsorted. At first, we take the maximum or minimum data from the array. After getting the data (say minimum) we pl... |
Append data to an empty Pandas DataFrame - GeeksforGeeks | 17 Aug, 2020
Let us see how to append data to an empty Pandas DataFrame.
Creating the Data Frame and assigning the columns to it
# importing the moduleimport pandas as pd # creating the DataFrame of int and floata = [[1, 1.2], [2, 1.4], [3, 1.5], [4, 1.8]]t = pd.DataFrame(a, columns =["A", "B"]) # displaying the Data... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n17 Aug, 2020"
},
{
"code": null,
"e": 25615,
"s": 25555,
"text": "Let us see how to append data to an empty Pandas DataFrame."
},
{
"code": null,
"e": 25671,
"s": 25615,
"text": "Creating the Data Frame and as... |
How to check if one date is between two dates in JavaScript ? | 20 Jun, 2022
The task is to determine if the given date is in between the given 2 dates or not? Here are a few of the most used techniques discussed with the help of JavaScript. In the first approach, we will use .split() method and the new Date() constructor. And in the second approach we will use the .getTime() metho... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jun, 2022"
},
{
"code": null,
"e": 704,
"s": 28,
"text": "The task is to determine if the given date is in between the given 2 dates or not? Here are a few of the most used techniques discussed with the help of JavaScript. In the fir... |
Python – Resolve Float Keys in Dictionary | 01 Aug, 2020
Given a dictionary with variety of floating-point keys, find a way to access them as single value.
Input : test_dict = {“010.78” : “Gfg”, “9.0” : “is”, “10” : “Best”}, K = “09.0”Output : “is”Explanation : 09.0 -> 9.0 whose value is “is”.
Input : test_dict = {“010.78” : “Gfg”, “9.0” : “is”, “10” : “Best”}, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 127,
"s": 28,
"text": "Given a dictionary with variety of floating-point keys, find a way to access them as single value."
},
{
"code": null,
"e": 266,
"s": 127,
"text": "Input :... |
Python | Get duplicate tuples from list | 21 Nov, 2019
Sometimes, while working with records, we can have a problem of extracting those records which occur more than once. This kind of application can occur in web development domain. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using list comprehension + set() + count()Initial ap... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 271,
"s": 28,
"text": "Sometimes, while working with records, we can have a problem of extracting those records which occur more than once. This kind of application can occur in web development doma... |
Program to find the sum of the series 1 + x + x^2+ x^3+ .. + x^n | 08 Nov, 2021
Given an integer X, the task is to print the series and find the sum of the series Examples :
Input: X = 2, N = 5 Output: Sum = 31 1 2 4 8 16Input: X = 1, N = 10 Output: Sum = 10 1 1 1 1 1 1 1 1 1 1
Approach: The idea is to traverse over the series and compute the sum of the N terms of the series. Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Nov, 2021"
},
{
"code": null,
"e": 124,
"s": 28,
"text": "Given an integer X, the task is to print the series and find the sum of the series Examples : "
},
{
"code": null,
"e": 231,
"s": 124,
"text": "Input: X =... |
Test whether the elements of a given NumPy array is zero or not in Python | 02 Sep, 2020
In numpy, we can check that whether none of the elements of given array is zero or not with the help of numpy.all() function. In this function pass an array as parameter. If any of one element of the passed array is zero then it returns False otherwise it returns True boolean value.
Syntax: numpy.all()
Par... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 312,
"s": 28,
"text": "In numpy, we can check that whether none of the elements of given array is zero or not with the help of numpy.all() function. In this function pass an array as parameter. If a... |
Python – Store Function as dictionary value | 14 Oct, 2020
Given a dictionary, assign its keys as function calls.
Case 1 : Without Params.
The way that is employed to achieve this task is that, function name is kept as dictionary values, and while calling with keys, brackets ‘()’ are added.
Python3
# Python3 code to demonstrate working of # Functions as dictionar... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n14 Oct, 2020"
},
{
"code": null,
"e": 108,
"s": 53,
"text": "Given a dictionary, assign its keys as function calls."
},
{
"code": null,
"e": 134,
"s": 108,
"text": "Case 1 : Without Params. "
},
{
"code": nu... |
Python | Three element sum in list | 23 Nov, 2021
The problem of getting the number of pairs that lead to a particular solution has been dealt with many times, this article aims at extending that to 3 numbers and discussing several ways in which this particular problem can be solved. Let’s discuss certain ways in which this can be performed.Method #1: Usi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 563,
"s": 28,
"text": "The problem of getting the number of pairs that lead to a particular solution has been dealt with many times, this article aims at extending that to 3 numbers and discussing s... |
Initialize an ArrayList in Java | 13 May, 2022
ArrayList is a part of collection framework and is present in java.util package. It provides us dynamic arrays in Java. Though, it may be slower than standard arrays but can be helpful in programs where lots of manipulation in the array is needed.
ArrayList inherits AbstractList class and implements List i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 May, 2022"
},
{
"code": null,
"e": 302,
"s": 54,
"text": "ArrayList is a part of collection framework and is present in java.util package. It provides us dynamic arrays in Java. Though, it may be slower than standard arrays but can ... |
Python | Pandas Series.median() | 11 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.median() function return the median ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Feb, 2019"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index... |
Express.js res.set() Function | 05 May, 2021
The res.set() function is used to set the response HTTP header field to value. To set multiple fields at once, pass an object as the parameter.Syntax:
res.set(field [, value])
Parameters: The field parameter is the name of the field and the value parameter is the value assigned to the field parameter.Ret... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 181,
"s": 28,
"text": "The res.set() function is used to set the response HTTP header field to value. To set multiple fields at once, pass an object as the parameter.Syntax: "
},
{
"code": ... |
How to Add Axes to a Figure in Matplotlib with Python? | 02 Dec, 2020
Matplotlib is a library in Python used to create figures and provide tools for customizing it. It allows plotting different types of data, geometrical figures. In this article, we will see how to add axes to a figure in matplotlib.
We can add axes to a figure in matplotlib by passing a list argument in the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 284,
"s": 52,
"text": "Matplotlib is a library in Python used to create figures and provide tools for customizing it. It allows plotting different types of data, geometrical figures. In this articl... |
How to Append Text to End of File in Linux? | 07 Mar, 2021
On Linux, while working with files in a terminal sometimes we need to append the same data of a command output or file content. Append means simply add the data to the file without erasing existing data. Today we are going to see how can we append the text in the file on the terminal.
The >> operator redir... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Mar, 2021"
},
{
"code": null,
"e": 314,
"s": 28,
"text": "On Linux, while working with files in a terminal sometimes we need to append the same data of a command output or file content. Append means simply add the data to the file wi... |
Buffer clear() methods in Java with Examples | 18 Jul, 2019
The clear() method of java.nio.ByteBuffer Class is used to clear this buffer. The position is set to zero, the limit is set to the capacity, and the mark is discarded. Invoke this method before using a sequence of channel-read or put operations to fill this buffer.
For example:
buf.clear(); // Prepar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2019"
},
{
"code": null,
"e": 294,
"s": 28,
"text": "The clear() method of java.nio.ByteBuffer Class is used to clear this buffer. The position is set to zero, the limit is set to the capacity, and the mark is discarded. Invoke ... |
PHP - MySQL Login | This tutorial demonstrates how to create a login page with MySQL Data base. Before enter into the code part, You would need special privileges to create or to delete a MySQL database. So assuming you have access to root user, you can create any database using mysql mysqladmin binary.
Config.php file is having informati... | [
{
"code": null,
"e": 3042,
"s": 2757,
"text": "This tutorial demonstrates how to create a login page with MySQL Data base. Before enter into the code part, You would need special privileges to create or to delete a MySQL database. So assuming you have access to root user, you can create any database... |
Program to find valid matrix given row and column sums in Python | Suppose we have two arrays rowSum and colSum with non-negative values where rowSum[i] has the sum of the elements in the ith row and colSum[j] has the sum of the elements in the jth column of a 2D matrix. We have to find any matrix with non-negative values of size (rowSum size x colSum size) that satisfies the given ro... | [
{
"code": null,
"e": 1406,
"s": 1062,
"text": "Suppose we have two arrays rowSum and colSum with non-negative values where rowSum[i] has the sum of the elements in the ith row and colSum[j] has the sum of the elements in the jth column of a 2D matrix. We have to find any matrix with non-negative val... |
Program to find longest common prefix from list of strings in Python | Suppose we have a list of lowercase strings, we have to find the longest common prefix.
So, if the input is like ["antivirus", "anticlockwise", "antigravity"], then the output will be "anti"
To solve this, we will follow these steps −
sort the list words alphabetically
prefix := a new list
flag := 0
for i in range 0 to... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "Suppose we have a list of lowercase strings, we have to find the longest common prefix."
},
{
"code": null,
"e": 1253,
"s": 1150,
"text": "So, if the input is like [\"antivirus\", \"anticlockwise\", \"antigravity\"], then the output ... |
How to preselect Dropdown Using JavaScript Programmatically? | To preselect a dropdown item using JavaScript, use the selectedIndex property. Add an index of what item you want to be selected.
Dropdown item list is created in HTML using the <select> tag. For JavaScript, we use the <script> tag. Here, under the <script> tag, add_select_id is the id of the <select> tag, whereas add_... | [
{
"code": null,
"e": 1192,
"s": 1062,
"text": "To preselect a dropdown item using JavaScript, use the selectedIndex property. Add an index of what item you want to be selected."
},
{
"code": null,
"e": 1510,
"s": 1192,
"text": "Dropdown item list is created in HTML using the <sel... |
Binary Search in C++ program? | binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array. If they are not equal, the half in which the target cannot lie is elim... | [
{
"code": null,
"e": 1887,
"s": 1062,
"text": "binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array. If ... |
DHTML JavaScript - GeeksforGeeks | 03 Dec, 2018
DHTML stands for Dynamic HTML. Dynamic means that the content of the web page can be customized or changed according to user inputs i.e. a page that is interactive with the user. In earlier times, HTML was used to create a static page. It only defined the structure of the content that was displayed on the ... | [
{
"code": null,
"e": 23885,
"s": 23857,
"text": "\n03 Dec, 2018"
},
{
"code": null,
"e": 24696,
"s": 23885,
"text": "DHTML stands for Dynamic HTML. Dynamic means that the content of the web page can be customized or changed according to user inputs i.e. a page that is interactive... |
Understanding Scope & Lifetime of Variables - 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
In this tutorial, we are going to learn about... | [
{
"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,
... |
PostgreSQL - DROP INDEX - GeeksforGeeks | 28 Aug, 2020
In PostgreSQL, the DROP INDEX statement to remove an existing index.
Syntax:
DROP INDEX [ CONCURRENTLY]
[ IF EXISTS ] index_name
[ CASCADE | RESTRICT ];
Let’s analyze the above syntax:
index_name : This is used to specify the name of the index that you want to remove after the DROP INDEX clause.
IF EXI... | [
{
"code": null,
"e": 23926,
"s": 23898,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 23995,
"s": 23926,
"text": "In PostgreSQL, the DROP INDEX statement to remove an existing index."
},
{
"code": null,
"e": 24083,
"s": 23995,
"text": "Syntax:\nDROP INDEX ... |
AutoML in Python: A comparison between Hyperopt Sklearn and TPOT | by Angelica Lo Duca | Towards Data Science | Automated Machine Learning (AutoML) involves the automation of the tasks of applying Machine Learning to real-world problems. AutoML covers the complete pipeline from the raw dataset to the deployable machine learning model.
Python provides some libraries which provide AutoML. In this tutorial I compare two popular lib... | [
{
"code": null,
"e": 396,
"s": 171,
"text": "Automated Machine Learning (AutoML) involves the automation of the tasks of applying Machine Learning to real-world problems. AutoML covers the complete pipeline from the raw dataset to the deployable machine learning model."
},
{
"code": null,
... |
Check if a list exists in given list of lists in Python | Lists can be nested, means the elements of a list are themselves lists. In this article we will see how to find out if a given list is present as an element in the outer bigger list.
This is a very simple and straight forward method. We use the in clause just to check if the inner list is present as an element in the b... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "Lists can be nested, means the elements of a list are themselves lists. In this article we will see how to find out if a given list is present as an element in the outer bigger list."
},
{
"code": null,
"e": 1394,
"s": 1245,
"text": ... |
How to fit text container width dynamically according to screen size using CSS ? - GeeksforGeeks | 12 Feb, 2021
In this article, we have given a text paragraph and the task is to fit the text width dynamically according to screen size using HTML and CSS. Some of the important properties used in the code are as follows-
display-grid: It helps us to display the content on the page in the grid structure.
grid-gap: This... | [
{
"code": null,
"e": 25296,
"s": 25268,
"text": "\n12 Feb, 2021"
},
{
"code": null,
"e": 25505,
"s": 25296,
"text": "In this article, we have given a text paragraph and the task is to fit the text width dynamically according to screen size using HTML and CSS. Some of the importan... |
Linear Algebra Essentials with Numpy (part 1) | by Dario Radečić | Towards Data Science | Ah, math. You can’t avoid it forever. You can try, and then try harder, but sooner or later some basic intuition behind it will be needed, provided that you are serious in your endeavors to advance your career in data science.
When it comes to linear algebra, I really like this quote:
If Data Science was Batman, Linear... | [
{
"code": null,
"e": 399,
"s": 172,
"text": "Ah, math. You can’t avoid it forever. You can try, and then try harder, but sooner or later some basic intuition behind it will be needed, provided that you are serious in your endeavors to advance your career in data science."
},
{
"code": null,
... |
How to set initial value and auto increment in MySQL? | The AUTO_INCREMENT attribute is used to generate a unique identify for new rows. If a column is declared as ‘NOT NULL’, it is possible to assign NULL to that column to generate a sequence of numbers.
When any value is inserted into an AUTO_INCREMENT column, the column gets set to that value, and the sequence also gets ... | [
{
"code": null,
"e": 1262,
"s": 1062,
"text": "The AUTO_INCREMENT attribute is used to generate a unique identify for new rows. If a column is declared as ‘NOT NULL’, it is possible to assign NULL to that column to generate a sequence of numbers."
},
{
"code": null,
"e": 1482,
"s": 1... |
fork() and Binary Tree - GeeksforGeeks | 10 Jul, 2018
Given a program on fork() system call.
#include <stdio.h>#include <unistd.h>int main(){ fork(); fork() && fork() || fork(); fork(); printf("forked\n"); return 0;}
How many processes will be spawned after executing the above program?
A fork() system call spawn processes as leaves of growing bina... | [
{
"code": null,
"e": 24122,
"s": 24094,
"text": "\n10 Jul, 2018"
},
{
"code": null,
"e": 24161,
"s": 24122,
"text": "Given a program on fork() system call."
},
{
"code": "#include <stdio.h>#include <unistd.h>int main(){ fork(); fork() && fork() || fork(); fork(); ... |
Associative arrays in C++ - GeeksforGeeks | 09 Feb, 2022
Associative arrays are also called map or dictionaries. In C++. These are special kind of arrays, where indexing can be numeric or any other data type i.e can be numeric 0, 1, 2, 3.. OR character a, b, c, d... OR string geek, computers... These indexes are referred as keys and data stored at that position ... | [
{
"code": null,
"e": 24528,
"s": 24500,
"text": "\n09 Feb, 2022"
},
{
"code": null,
"e": 24975,
"s": 24528,
"text": "Associative arrays are also called map or dictionaries. In C++. These are special kind of arrays, where indexing can be numeric or any other data type i.e can be n... |
GATE | GATE-CS-2003 | Question 79 - GeeksforGeeks | 28 Jun, 2021
A processor uses 2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both 32 bits wide. The memory is byte addressable. For virtual to physical address translation, the 10 most significant bits of the... | [
{
"code": null,
"e": 24440,
"s": 24412,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25417,
"s": 24440,
"text": "A processor uses 2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical a... |
Populating Next Right Pointers in Each Node in C++ | Suppose we have a complete binary tree, where each node has following fields: (data, left, right, next), the left will point to left subtree, right will point to right subtree, and the next pointer will point to the next node. If there is no node in the right hand side, then that will be null. So initially each next po... | [
{
"code": null,
"e": 1511,
"s": 1062,
"text": "Suppose we have a complete binary tree, where each node has following fields: (data, left, right, next), the left will point to left subtree, right will point to right subtree, and the next pointer will point to the next node. If there is no node in the... |
Python PIL | ImageDraw.Draw.arc() - GeeksforGeeks | 02 Aug, 2019
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageDraw module provide simple 2D graphics for Image objects. You can use this module to create new images, annotate or retouch existing images, and to generate graphics on the fly for web use.
Ima... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 24596,
"s": 24292,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageDraw module provide simple 2D graphics for Image ... |
Association, Composition and Aggregation in Java - GeeksforGeeks | 04 Apr, 2022
Association is a relation between two separate classes which establishes through their Objects. Association can be one-to-one, one-to-many, many-to-one, many-to-many. In Object-Oriented programming, an Object communicates to another object to use functionality and services provided by that object. Composit... | [
{
"code": null,
"e": 24272,
"s": 24244,
"text": "\n04 Apr, 2022"
},
{
"code": null,
"e": 24634,
"s": 24272,
"text": "Association is a relation between two separate classes which establishes through their Objects. Association can be one-to-one, one-to-many, many-to-one, many-to-ma... |
Count ways to split a string into two subsets that are reverse of each other - GeeksforGeeks | 30 Mar, 2022
Given a string S consisting of N characters, the task is to find the number of ways to split the string into two subsets such that the first subset is the reverse of the second subset.
Examples:
Input: S = “cabaacba”Output: 4Explanation:Below are the ways of partitioning the string satisfying the given con... | [
{
"code": null,
"e": 24914,
"s": 24886,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 25099,
"s": 24914,
"text": "Given a string S consisting of N characters, the task is to find the number of ways to split the string into two subsets such that the first subset is the reverse ... |
Adding Filters in VueJS - GeeksforGeeks | 20 Nov, 2020
A Filter is a simple JavaScript function which is used to change the output of a data to the browser. Filters in Vue.JS don’t change the data directly wherever we store them, it only applies formatting to our data. The data remains the same only the output of a data to a browser is changed. Vue.JS doesn’t... | [
{
"code": null,
"e": 25326,
"s": 25298,
"text": "\n20 Nov, 2020"
},
{
"code": null,
"e": 25929,
"s": 25326,
"text": "A Filter is a simple JavaScript function which is used to change the output of a data to the browser. Filters in Vue.JS don’t change the data directly wherever we... |
Angular Material 7 - Auto-Complete | The <mat-autocomplete>, an Angular Directive, is used as a special input control with an inbuilt dropdown to show all possible matches to a custom query. This control acts as a real-time suggestion box as soon as the user types in the input area. <mat-autocomplete> can be used to provide search results from local or re... | [
{
"code": null,
"e": 3094,
"s": 2755,
"text": "The <mat-autocomplete>, an Angular Directive, is used as a special input control with an inbuilt dropdown to show all possible matches to a custom query. This control acts as a real-time suggestion box as soon as the user types in the input area. <mat-a... |
How to sum elements at the same index in array of arrays into a single array? JavaScript | We have an array of arrays and are required to write a function that takes in this array and
returns a new array that represents the sum of corresponding elements of original array.
If the original array is −
[
[43, 2, 21],[1, 2, 4, 54],[5, 84, 2],[11, 5, 3, 1]
]
Then the output should be −
[60, 93, 30, 55]
Let’s wr... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "We have an array of arrays and are required to write a function that takes in this array and\nreturns a new array that represents the sum of corresponding elements of original array."
},
{
"code": null,
"e": 1271,
"s": 1244,
"text": ... |
11 Examples to Master Python List Comprehensions | by Soner Yıldırım | Towards Data Science | List is a built-in data structure in Python and a collection of data points in square brackets. Lists can be used to store any data type or a mixture of different data types.
In this post, we will cover list comprehensions in python with 11 examples. I tried to order the examples according to their complexity levels (i... | [
{
"code": null,
"e": 347,
"s": 172,
"text": "List is a built-in data structure in Python and a collection of data points in square brackets. Lists can be used to store any data type or a mixture of different data types."
},
{
"code": null,
"e": 507,
"s": 347,
"text": "In this pos... |
Are the private variables and private methods of a parent class inherited by the child class in Java? | No, a child class can’t inherit private members of the parent class, it can inherit only protected, default, and public members of it. If you try it gives you a compile time error as: −
class Super{
private int data = 30;
public void display(){
System.out.println("Hello this is the method of the super class... | [
{
"code": null,
"e": 1248,
"s": 1062,
"text": "No, a child class can’t inherit private members of the parent class, it can inherit only protected, default, and public members of it. If you try it gives you a compile time error as: −"
},
{
"code": null,
"e": 1638,
"s": 1248,
"text... |
Consuming RESTful Web Services | This chapter will discuss in detail about consuming a RESTful Web Services by using jQuery AJAX.
Create a simple Spring Boot web application and write a controller class files which is used to redirects into the HTML file to consumes the RESTful web services.
We need to add the Spring Boot starter Thymeleaf and Web dep... | [
{
"code": null,
"e": 3122,
"s": 3025,
"text": "This chapter will discuss in detail about consuming a RESTful Web Services by using jQuery AJAX."
},
{
"code": null,
"e": 3285,
"s": 3122,
"text": "Create a simple Spring Boot web application and write a controller class files which ... |
Python program to find occurrence to each character in given string | In this article, we will learn about the solution to the problem statement given below.
Problem statement − We are given a string, we need to find the occurrence of each character in a given string.
Here we will be discussing 3 approaches as discussed below:L
Live Demo
test_str = "Tutorialspoint"
#count dictionary
cou... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "In this article, we will learn about the solution to the problem statement given below."
},
{
"code": null,
"e": 1261,
"s": 1150,
"text": "Problem statement − We are given a string, we need to find the occurrence of each character in... |
Python | Numpy dstack() method | 19 Sep, 2019
With the help of numpy.dstack() method, we can get the combined array index by index and store like a stack by using numpy.dstack() method.
Syntax : numpy.dstack((array1, array2))
Return : Return combined array index by index.
Example #1 :In this example we can see that by using numpy.dstack() method, we a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Sep, 2019"
},
{
"code": null,
"e": 168,
"s": 28,
"text": "With the help of numpy.dstack() method, we can get the combined array index by index and store like a stack by using numpy.dstack() method."
},
{
"code": null,
"e"... |
How to create a Hotkey in Python? | 24 Jan, 2021
This article is about How to create a HotKey Using Python. But first, let’s discuss what is a Hotkey. A Hotkey is an assigned key or sequence of keys programmed to execute a command or perform a selected task during a software application: For instance, on Windows computers, the hotkey Ctrl+S are often won... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 387,
"s": 54,
"text": "This article is about How to create a HotKey Using Python. But first, let’s discuss what is a Hotkey. A Hotkey is an assigned key or sequence of keys programmed to execute a ... |
Python Program for Sieve of Eratosthenes | 22 Jun, 2022
Sieve of Eratosthenes is a method for finding all primes up to (and possibly including) a given natural. This method works well when is relatively small, allowing us to determine whether any natural number less than or equal to is prime or composite.
Implementation:
Given a number n, print all primes smal... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 306,
"s": 54,
"text": "Sieve of Eratosthenes is a method for finding all primes up to (and possibly including) a given natural. This method works well when is relatively small, allowing us to deter... |
Octave – Basics of Plotting Data | 03 Nov, 2021
Octave has some in-built functions for visualizing the data. Few simple plots can give us a better way to understand our data. Whenever we perform a learning algorithm on an Octave environment, we can get a better sense of that algorithm and analyze it. Octave has lots of simple tools that we can use for a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Nov, 2021"
},
{
"code": null,
"e": 604,
"s": 52,
"text": "Octave has some in-built functions for visualizing the data. Few simple plots can give us a better way to understand our data. Whenever we perform a learning algorithm on an ... |
Tensorflow.js tf.losses.meanSquaredError() Function | 31 May, 2021
Tensorflow.js is an open-source JavaScript library developed by Google for running and training machine learning models and deep learning neural networks in browser and node.js environment.
Mean squared error is the average of squared differences between the predicted and the actual values. The result is a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 218,
"s": 28,
"text": "Tensorflow.js is an open-source JavaScript library developed by Google for running and training machine learning models and deep learning neural networks in browser and node.j... |
Ruby For Beginners | 30 Jul, 2018
Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. This article will cover its basic syntax and some basic programs. This article is divided into various sections for various topics.1.Se... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n30 Jul, 2018"
},
{
"code": null,
"e": 427,
"s": 53,
"text": "Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. Th... |
Minimum Distance Between Words of a String | 15 Dec, 2021
Given a string s and two words w1 and w2 that are present in S. The task is to find the minimum distance between w1 and w2. Here, distance is the number of steps or words between the first and the second word.
Examples:
Input : s = “geeks for geeks contribute practice”, w1 = “geeks”, w2 = “practice” Outp... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 265,
"s": 54,
"text": "Given a string s and two words w1 and w2 that are present in S. The task is to find the minimum distance between w1 and w2. Here, distance is the number of steps or words bet... |
Python PIL | ImageOps.flip() method | 11 Jul, 2019
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageOps module contains a number of ‘ready-made’ image processing operations. This module is somewhat experimental, and most operators only work on L and RGB images.
ImageOps.flip() Flip the image ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Jul, 2019"
},
{
"code": null,
"e": 304,
"s": 28,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The ImageOps module contains a number of ‘ready-made’ image processing... |
Frameless Window in ElectronJS | 12 Dec, 2021
ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime.
In a co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Dec, 2021"
},
{
"code": null,
"e": 328,
"s": 28,
"text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable ... |
pthread_cancel() in C with example | 06 Sep, 2017
prerequisite: Multithreading, pthread_self() in C with Example
pthread_cancel() = This function cancel a particular thread using thread id. This function send a cancellation request to the thread.
Syntax : – int pthread_cancel(pthread_t thread);
First Program : – Cancel self thread
// C program to demons... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Sep, 2017"
},
{
"code": null,
"e": 117,
"s": 54,
"text": "prerequisite: Multithreading, pthread_self() in C with Example"
},
{
"code": null,
"e": 251,
"s": 117,
"text": "pthread_cancel() = This function cancel a ... |
Program for Next Fit algorithm in Memory Management | 25 Apr, 2022
Prerequisite: Partition allocation methods What is Next Fit ? Next fit is a modified version of ‘first fit’. It begins as the first fit to find a free partition but when called next time it starts searching from where it left off, not from the beginning. This policy makes use of a roving pointer. The point... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Apr, 2022"
},
{
"code": null,
"e": 563,
"s": 54,
"text": "Prerequisite: Partition allocation methods What is Next Fit ? Next fit is a modified version of ‘first fit’. It begins as the first fit to find a free partition but when call... |
Text detection using Python | 14 Sep, 2021
Python language is widely used for modern machine learning and data analysis. One can detect an image, speech, can even detect an object through Python. For now, we will detect whether the text from the user gives a positive feeling or negative feeling by classifying the text as positive, negative, or neut... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 468,
"s": 28,
"text": "Python language is widely used for modern machine learning and data analysis. One can detect an image, speech, can even detect an object through Python. For now, we will detec... |
Fermat’s Factorization Method | 10 Jun, 2021
Fermat’s Factorization method is based on the representation of an odd integer as the difference of two squares. For an integer n, we want a and b such as:
n = a2 - b2 = (a+b)(a-b)
where (a+b) and (a-b) are
the factors of the number n
Example:
Input: n = 6557
Output: [79,83]
Explanation:
For the abo... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 212,
"s": 54,
"text": "Fermat’s Factorization method is based on the representation of an odd integer as the difference of two squares. For an integer n, we want a and b such as: "
},
{
"c... |
Rust - Ownership | The memory for a program can be allocated in the following −
Stack
Heap
A stack follows a last in first out order. Stack stores data values for which the size is known at compile time. For example, a variable of fixed size i32 is a candidate for stack allocation. Its size is known at compile time. All scalar types can ... | [
{
"code": null,
"e": 2282,
"s": 2221,
"text": "The memory for a program can be allocated in the following −"
},
{
"code": null,
"e": 2288,
"s": 2282,
"text": "Stack"
},
{
"code": null,
"e": 2293,
"s": 2288,
"text": "Heap"
},
{
"code": null,
"e": 25... |
What does the “+” (plus sign) CSS selector mean? | 04 Dec, 2018
The “+” sign selector is used to select the elements that are placed immediately after the specified element but not inside the particular elements.
Note: The IE8 and earlier versions </DOCTYPE> must be declared to work element + element selector.
Syntax:
element + element {
// CSS property
}
Example... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Dec, 2018"
},
{
"code": null,
"e": 177,
"s": 28,
"text": "The “+” sign selector is used to select the elements that are placed immediately after the specified element but not inside the particular elements."
},
{
"code": null... |
OpenCV - Filter2D | The Filter2D operation convolves an image with the kernel. You can perform this operation on an image using the Filter2D() method of the imgproc class. Following is the syntax of this method −
filter2D(src, dst, ddepth, kernel)
This method accepts the following parameters −
src − A Mat object representing the source (... | [
{
"code": null,
"e": 3331,
"s": 3138,
"text": "The Filter2D operation convolves an image with the kernel. You can perform this operation on an image using the Filter2D() method of the imgproc class. Following is the syntax of this method −"
},
{
"code": null,
"e": 3367,
"s": 3331,
... |
How to Create Gradient Background Animation using HTML and CSS ? | 12 Jun, 2020
Gradient animation can be added to the background of your websites by using simple HTML and CSS @keyframes rule that generate the desired animation.
HTML Code: In the following example, the basic structure of the HTML page is implemented.
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2020"
},
{
"code": null,
"e": 177,
"s": 28,
"text": "Gradient animation can be added to the background of your websites by using simple HTML and CSS @keyframes rule that generate the desired animation."
},
{
"code": null... |
PHP - Logical Operators Example | Try following example to understand all the logical operators. Copy and paste following PHP program in test.php file and keep it in your PHP Server's document root and browse it using any browser.
<html>
<head>
<title>Logical Operators</title>
</head>
<body>
<?php
$a = 42;
... | [
{
"code": null,
"e": 3088,
"s": 2891,
"text": "Try following example to understand all the logical operators. Copy and paste following PHP program in test.php file and keep it in your PHP Server's document root and browse it using any browser."
},
{
"code": null,
"e": 4596,
"s": 3088... |
SVG path attribute | 31 Mar, 2022
The path attribute defines a text path or the motion path along with the characters of a text are displayed or a referenced element is animated respectively. The elements that are using this attribute includes: <animateMotion> and <textPath>.
Syntax:
path = path-data
Attribute Values: The path attribute a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 271,
"s": 28,
"text": "The path attribute defines a text path or the motion path along with the characters of a text are displayed or a referenced element is animated respectively. The elements that... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.