title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Spring Boot Redis Data Example CRUD Operations - 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, I am going to introduce the... | [
{
"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,
... |
Analyze Customer Behavior the Right Way Using a Sunburst Chart Built with Python, Pandas and Plotly | by Giordan Pretelin | Towards Data Science | Sunburst charts, sometimes also called Ring Charts, Multi-Level Pie Charts or Radial Treemaps (Anychart, n.d.) are a fantastic way to visualize and understand hierarchical or sequential data.
Sunburst charts have two main use cases:
Understand largest contributors to a whole and the proportions of the components of the... | [
{
"code": null,
"e": 363,
"s": 171,
"text": "Sunburst charts, sometimes also called Ring Charts, Multi-Level Pie Charts or Radial Treemaps (Anychart, n.d.) are a fantastic way to visualize and understand hierarchical or sequential data."
},
{
"code": null,
"e": 404,
"s": 363,
"te... |
Find if an expression has duplicate parenthesis or not - GeeksforGeeks | 25 Jul, 2021
Given a balanced expression, find if it contains duplicate parenthesis or not. A set of parenthesis are duplicate if the same subexpression is surrounded by multiple parenthesis.
Examples:
Below expressions have duplicate parenthesis -
((a+b)+((c+d)))
The subexpression "c+d" is surrounded by two
pairs o... | [
{
"code": null,
"e": 25136,
"s": 25108,
"text": "\n25 Jul, 2021"
},
{
"code": null,
"e": 25316,
"s": 25136,
"text": "Given a balanced expression, find if it contains duplicate parenthesis or not. A set of parenthesis are duplicate if the same subexpression is surrounded by multip... |
Average - GeeksforGeeks | 24 Feb, 2022
Average a number expressing the central or typical value in a set of data, in particular the mode, median, or (most commonly) the mean, which is calculated by dividing the sum of the values in the set by their number.
The basic formula for the average of n numbers x1,x2,......xn is
A = (x1 + x... | [
{
"code": null,
"e": 24644,
"s": 24616,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 24863,
"s": 24644,
"text": "Average a number expressing the central or typical value in a set of data, in particular the mode, median, or (most commonly) the mean, which is calculated by divi... |
Detect Cycle in a Directed Graph - GeeksforGeeks | 22 Apr, 2022
Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else return false.Example,
Input: n = 4, e = 6
0 -> 1, 0 -> 2, 1 -> 2, 2 -> 0, 2 -> 3, 3 -> 3
Output: Yes
Explanation:
Diagram:
The diagram clearly sho... | [
{
"code": null,
"e": 37369,
"s": 37341,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 37552,
"s": 37369,
"text": "Given a directed graph, check whether the graph contains a cycle or not. Your function should return true if the given graph contains at least one cycle, else retu... |
Complete guide to Python’s cross-validation with examples | by Vaclav Dekanovsky | Towards Data Science | Examples and use cases of sklearn’s cross-validation explaining KFold, shuffling, stratification, and the data ratio of the train and test sets.
Cross-validation is an important concept in machine learning which helps the data scientists in two major ways: it can reduce the size of data and ensures that the artificial ... | [
{
"code": null,
"e": 317,
"s": 172,
"text": "Examples and use cases of sklearn’s cross-validation explaining KFold, shuffling, stratification, and the data ratio of the train and test sets."
},
{
"code": null,
"e": 667,
"s": 317,
"text": "Cross-validation is an important concept ... |
SymPy: Symbolic Computation in Python | by Khuyen Tran | Towards Data Science | Have you ever wished to solve a math equation in Python? Wouldn’t it be nice if we could solve an algebraic equation like below in one line of code
[-1/2, 0]
...or simply work with math symbols instead of boring Python code?
That is when SymPy comes in handy.
SymPy is a Python library that allows you to compute mathema... | [
{
"code": null,
"e": 319,
"s": 171,
"text": "Have you ever wished to solve a math equation in Python? Wouldn’t it be nice if we could solve an algebraic equation like below in one line of code"
},
{
"code": null,
"e": 329,
"s": 319,
"text": "[-1/2, 0]"
},
{
"code": null,
... |
Check if a binary tree is sorted level-wise or not - GeeksforGeeks | 23 Jun, 2021
Given a binary tree. The task is to check if the binary tree is sorted level-wise or not. A binary tree is level sorted if max( i-1th level) is less than min( ith level ). Examples:
Input : 1
/ \
/ \
2 3
/ \ / \
/ \ / \
... | [
{
"code": null,
"e": 25280,
"s": 25252,
"text": "\n23 Jun, 2021"
},
{
"code": null,
"e": 25464,
"s": 25280,
"text": "Given a binary tree. The task is to check if the binary tree is sorted level-wise or not. A binary tree is level sorted if max( i-1th level) is less than min( ith ... |
Tryit Editor v3.7 | CSS Image Reflection
Tryit: Image reflection below | [
{
"code": null,
"e": 30,
"s": 9,
"text": "CSS Image Reflection"
}
] |
JavaScript Date getUTCDate() Method - GeeksforGeeks | 19 Oct, 2021
Below is the example of Date getUTCDate() method.
Example:
javascript
<script> // If nothing is in parameter it takes // the current date while creating Date object var date = new Date(); // Date of the month from above date object // is being extracted using getUTCDate(). var ge... | [
{
"code": null,
"e": 30060,
"s": 30032,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 30112,
"s": 30060,
"text": "Below is the example of Date getUTCDate() method. "
},
{
"code": null,
"e": 30123,
"s": 30112,
"text": "Example: "
},
{
"code": null,... |
C# Access Modifiers | By now, you are quite familiar with the public keyword that appears
in many of our examples:
public string color;
The public keyword is an access modifier,
which is used to set the access level/visibility for classes, fields, methods and properties.
C# has the following access modifiers:
There's also two combination... | [
{
"code": null,
"e": 94,
"s": 0,
"text": "By now, you are quite familiar with the public keyword that appears \nin many of our examples:"
},
{
"code": null,
"e": 116,
"s": 94,
"text": "public string color;\n"
},
{
"code": null,
"e": 253,
"s": 116,
"text": "The... |
How to open PIL Image in Tkinter on Canvas? | Pillow package (or PIL) helps a lot to process and load images in Python projects. It is a free open-source library available in Python that adds support to load, process, and manipulate the images of different formats.
In order to open the Image in Tkinter canvas, we have to first import the library using from PIL imp... | [
{
"code": null,
"e": 1282,
"s": 1062,
"text": "Pillow package (or PIL) helps a lot to process and load images in Python projects. It is a free open-source library available in Python that adds support to load, process, and manipulate the images of different formats."
},
{
"code": null,
"... |
NHibernate - Fluent Hibernate | In this chapter, we will be covering fluent NHibernate. Fluent NHibernate is another way of mapping or you can say it is an alternative to NHibernate's standard XML mapping files. Instead of writing XML (.hbm.xml files) documents. With the help of Fluent NHibernate, you can write mappings in strongly typed C# code.
In ... | [
{
"code": null,
"e": 2650,
"s": 2333,
"text": "In this chapter, we will be covering fluent NHibernate. Fluent NHibernate is another way of mapping or you can say it is an alternative to NHibernate's standard XML mapping files. Instead of writing XML (.hbm.xml files) documents. With the help of Fluen... |
Converting Odd and Even-indexed characters in a string to uppercase/lowercase in JavaScript? | We need to write a function that reads a string and converts the odd indexed characters in the
string to upperCase and the even ones to lowerCase and returns a new string.
Full code for doing the same will be −
const text = 'Hello world, it is so nice to be alive.';
const changeCase = (str) => {
const newStr = str
... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "We need to write a function that reads a string and converts the odd indexed characters in the\nstring to upperCase and the even ones to lowerCase and returns a new string."
},
{
"code": null,
"e": 1273,
"s": 1234,
"text": "Full code... |
Learning Decision Trees. In the context of supervised learning... | by Arun Jagota | Towards Data Science | In the context of supervised learning, a decision tree is a tree for predicting the output for a given input. We start from the root of the tree and ask a particular question about the input. Depending on the answer, we go down to one or another of its children. The child we visit is the root of another tree. So we rep... | [
{
"code": null,
"e": 662,
"s": 172,
"text": "In the context of supervised learning, a decision tree is a tree for predicting the output for a given input. We start from the root of the tree and ask a particular question about the input. Depending on the answer, we go down to one or another of its ch... |
Introduction to the C99 Programming Language : Part I - GeeksforGeeks | 14 Feb, 2020
C99 is another name of ISO/IEC 9899:1999 standards specification for C that was adopted in 1999. This article mainly concentrates on the new features added in C99 by comparing with the C89 standard. In the development stage of the C99 standard, every element of the C language was re-examined, usage pattern... | [
{
"code": null,
"e": 24208,
"s": 24180,
"text": "\n14 Feb, 2020"
},
{
"code": null,
"e": 24729,
"s": 24208,
"text": "C99 is another name of ISO/IEC 9899:1999 standards specification for C that was adopted in 1999. This article mainly concentrates on the new features added in C99 ... |
java.time.Clock.tick() Method Example | The java.time.Clock.tick() method obtains a clock that returns instants from the specified clock truncated to the nearest occurrence of the specified duration.
Following is the declaration for java.time.Clock.tick() method.
public static Clock tick(Clock baseClock, Duration tickDuration)
baseClock − the base clock to ... | [
{
"code": null,
"e": 2075,
"s": 1915,
"text": "The java.time.Clock.tick() method obtains a clock that returns instants from the specified clock truncated to the nearest occurrence of the specified duration."
},
{
"code": null,
"e": 2139,
"s": 2075,
"text": "Following is the decla... |
Bootstrap 4 .justify-content-*-end class | To justify the flex items on the end, use the justify-content-end class.
To justify the flex items on the end, on different screen sizes, use the justify-content-*-end class. The flex items justified at the end would be visible like the following on different screen sizes −
Small Screen Size
<div class="d-flex justify-... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "To justify the flex items on the end, use the justify-content-end class."
},
{
"code": null,
"e": 1337,
"s": 1135,
"text": "To justify the flex items on the end, on different screen sizes, use the justify-content-*-end class. The fle... |
Get Day Number of Week in Java | To get the day of the week, use Calendar.DAY_OF_WEEK.
Firstly, declare a calendar object and get the current date and time.
Calendar calendar = Calendar.getInstance();
System.out.println(calendar.getTime().toString());
Now, fetch the day of the week in an integer variable.
int day = calendar.get(Calendar.DAY_OF_WEEK);
... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "To get the day of the week, use Calendar.DAY_OF_WEEK."
},
{
"code": null,
"e": 1186,
"s": 1116,
"text": "Firstly, declare a calendar object and get the current date and time."
},
{
"code": null,
"e": 1281,
"s": 1186,
... |
Bridge edge in a graph | Practice | GeeksforGeeks | Given a Graph of V vertices and E edges and another edge(c - d), the task is to find if the given edge is a Bridge. i.e., removing the edge disconnects the graph.
Example 1:
Input:
c = 1, d = 2
Output:
1
Explanation:
From the graph, we can clearly see that
blocking the edge 1-2 will result in
disconnection of the g... | [
{
"code": null,
"e": 389,
"s": 226,
"text": "Given a Graph of V vertices and E edges and another edge(c - d), the task is to find if the given edge is a Bridge. i.e., removing the edge disconnects the graph."
},
{
"code": null,
"e": 402,
"s": 391,
"text": "Example 1:"
},
{
... |
Functional Programming with Java - Functions | A function is a block of statements that performs a specific task. Functions accept data, process it, and return a result. Functions are written primarily to support the concept of re usability. Once a function is written, it can be called easily, without having to write the same code again and again.
Functional Progra... | [
{
"code": null,
"e": 2392,
"s": 2089,
"text": "A function is a block of statements that performs a specific task. Functions accept data, process it, and return a result. Functions are written primarily to support the concept of re usability. Once a function is written, it can be called easily, witho... |
Understanding data. Musings on information, memory... | by Cassie Kozyrkov | Towards Data Science | 2.9K plays2.9K
Everything our senses perceive is data, though its storage in our cranial wet stuff leaves something to be desired. Writing it down is a bit more reliable, especially when we write it down on a computer. When those notes are well-organized, we call them data... though I’ve seen some awfully messy elect... | [
{
"code": null,
"e": 191,
"s": 172,
"text": "\n\n2.9K plays2.9K\n\n"
},
{
"code": null,
"e": 613,
"s": 191,
"text": "Everything our senses perceive is data, though its storage in our cranial wet stuff leaves something to be desired. Writing it down is a bit more reliable, especia... |
Tryit Editor v3.7 | Tryit: JavaScript in head | [] |
Jupyter Data Science Stack + Docker in under 15 minutes | by Tanbal تنبل | Towards Data Science | Motivation: Say you want to play around with some cool data science libraries in Python or R but what you don’t want to do is spend hours on installing Python or R, working out what libraries you need, installing each and every one and then messing around with the tedium of getting things to work just right on your ver... | [
{
"code": null,
"e": 686,
"s": 171,
"text": "Motivation: Say you want to play around with some cool data science libraries in Python or R but what you don’t want to do is spend hours on installing Python or R, working out what libraries you need, installing each and every one and then messing around... |
Count even and odd digits in an Integer - GeeksforGeeks | 28 Feb, 2022
A certain number is given and the task is to count even digits and odd digits of the number and also even digits are present even a number of times and, similarly, for odd numbers.
Print Yes If:
If number contains even digits even number of time
Odd digits odd number of times
Else
Print No
Examp... | [
{
"code": null,
"e": 25164,
"s": 25136,
"text": "\n28 Feb, 2022"
},
{
"code": null,
"e": 25346,
"s": 25164,
"text": "A certain number is given and the task is to count even digits and odd digits of the number and also even digits are present even a number of times and, similarly,... |
Moneyball — Linear Regression. Using Linear Regression in Python to... | by Harry Bitten | Towards Data Science | In 2011, the film “Moneyball” was released. The film — adapted from the book by Micheal Lewis, is based on a true story, and follows Oakland A’s general manager Billy Beane, who, after losing his star players, must find a way to reach the playoffs whilst faced with a tight budget. Enter Paul DePodesta, an Ivy League gr... | [
{
"code": null,
"e": 744,
"s": 171,
"text": "In 2011, the film “Moneyball” was released. The film — adapted from the book by Micheal Lewis, is based on a true story, and follows Oakland A’s general manager Billy Beane, who, after losing his star players, must find a way to reach the playoffs whilst ... |
Dual Boot is Dead: Windows and Linux are now One | by Dimitris Poulopoulos | Towards Data Science | I used to have an Apple laptop as my daily driver. I could do almost everything there; development, proposal writing, music composition etc. But the fear of vendor lock-in, the concern that I am depended on Apple’s whims and vices — which are arguably very expensive — led me to seek a new solution.
See Part II here:
to... | [
{
"code": null,
"e": 472,
"s": 172,
"text": "I used to have an Apple laptop as my daily driver. I could do almost everything there; development, proposal writing, music composition etc. But the fear of vendor lock-in, the concern that I am depended on Apple’s whims and vices — which are arguably ver... |
MariaDB - Drop Tables | In this chapter, we will learn to delete tables.
Table deletion is very easy, but remember all deleted tables are irrecoverable. The general syntax for table deletion is as follows −
DROP TABLE table_name ;
Two options exist for performing a table drop: use the command prompt or a PHP script.
At the command prompt, si... | [
{
"code": null,
"e": 2411,
"s": 2362,
"text": "In this chapter, we will learn to delete tables."
},
{
"code": null,
"e": 2545,
"s": 2411,
"text": "Table deletion is very easy, but remember all deleted tables are irrecoverable. The general syntax for table deletion is as follows −... |
Accessing nested JavaScript objects with string key | You can use lodash's get method to get properties at any level safely. Getting first-level properties is pretty straightforward. Nested property access is tricky and you should use a tested library like lodash for it.
You can access a deeply nested object in the following way −
let _ = require("lodash");
let obj = {
... | [
{
"code": null,
"e": 1280,
"s": 1062,
"text": "You can use lodash's get method to get properties at any level safely. Getting first-level properties is pretty straightforward. Nested property access is tricky and you should use a tested library like lodash for it."
},
{
"code": null,
"e"... |
Spring AOP - XML Based PointCut | A JoinPoint represents a point in your application where you can plug-in AOP aspect. You can also say, it is the actual place in the application where an action will be taken using Spring AOP framework. Consider the following examples −
All methods classes contained in a package(s).
All methods classes contained in a p... | [
{
"code": null,
"e": 2506,
"s": 2269,
"text": "A JoinPoint represents a point in your application where you can plug-in AOP aspect. You can also say, it is the actual place in the application where an action will be taken using Spring AOP framework. Consider the following examples −"
},
{
"c... |
Longest common subarray in the given two arrays - GeeksforGeeks | 23 Dec, 2021
Given two arrays A[] and B[] of N and M integers respectively, the task is to find the maximum length of equal subarray or the longest common subarray between the two given array.
Examples:
Input: A[] = {1, 2, 8, 2, 1}, B[] = {8, 2, 1, 4, 7} Output: 3 Explanation: The subarray that is common to both array... | [
{
"code": null,
"e": 24547,
"s": 24519,
"text": "\n23 Dec, 2021"
},
{
"code": null,
"e": 24727,
"s": 24547,
"text": "Given two arrays A[] and B[] of N and M integers respectively, the task is to find the maximum length of equal subarray or the longest common subarray between the ... |
SVG - Path | <path> element is used to draw a connected straight lines.
Following is the syntax declaration of <path> element. We've shown main attributes only.
<path
d="data" >
</path>
<path> element is used to define any path. Path element uses Path data which comprises of number of commands. Commands behaves like a nip of ... | [
{
"code": null,
"e": 2424,
"s": 2364,
"text": "<path> element is used to draw a connected straight lines."
},
{
"code": null,
"e": 2513,
"s": 2424,
"text": "Following is the syntax declaration of <path> element. We've shown main attributes only."
},
{
"code": null,
"... |
Intro to Agent Based Modeling. An example of how agent based modeling... | by Bassel Karami | Towards Data Science | Table of contents:
1- Intro: why agent based modeling?
2- Our supermarket queueing problem
3- Model design
4- Model execution
5- Conclusion
Agent based modeling (ABM) is a bottom-up simulation technique where we analyze a system by its individual agents that interact with each other.
Suppose we want to predict the numb... | [
{
"code": null,
"e": 191,
"s": 172,
"text": "Table of contents:"
},
{
"code": null,
"e": 227,
"s": 191,
"text": "1- Intro: why agent based modeling?"
},
{
"code": null,
"e": 263,
"s": 227,
"text": "2- Our supermarket queueing problem"
},
{
"code": null... |
From Econometrics to Machine Learning | by Alexandre Wrg | Towards Data Science | As a Data scientist with a master’s degree in econometrics, I took some time to understand the subtleties that make machine learning a different discipline from econometrics. I would like to talk to you about these subtleties that are not obvious at first sight and that made me wonder all along my journey.
Econometrics... | [
{
"code": null,
"e": 479,
"s": 171,
"text": "As a Data scientist with a master’s degree in econometrics, I took some time to understand the subtleties that make machine learning a different discipline from econometrics. I would like to talk to you about these subtleties that are not obvious at first... |
Visualize Categorical Relationships With Catscatter | by Myriam | Towards Data Science | If you ever needed a way to plot categorial features showing its relationships, I’ve built this resource for you. A catscatter function built over matplotlib.pyplot object and using pandas to visualize relationships between your categorial variables as if it were a scatter plot. (I know, there’re no correlations here, ... | [
{
"code": null,
"e": 554,
"s": 171,
"text": "If you ever needed a way to plot categorial features showing its relationships, I’ve built this resource for you. A catscatter function built over matplotlib.pyplot object and using pandas to visualize relationships between your categorial variables as if... |
Create a Letter-Spacing Animation Effect using HTML and CSS - GeeksforGeeks | 22 Oct, 2021
In this article, we are going to create a letter-spacing animation using CSS. Letter spacing is the available space between the letters in a particular word, we will walk through each step to achieve this animation effect for our web page.
Approach:
Initially, letter-spacing will be -15px.
At 20%, letter-s... | [
{
"code": null,
"e": 24985,
"s": 24957,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 25225,
"s": 24985,
"text": "In this article, we are going to create a letter-spacing animation using CSS. Letter spacing is the available space between the letters in a particular word, we wi... |
What is the difference between height and line-height? | Height is the vertical measurement of the container, for example, height of a div.
Line-height is a CSS property to specify the line height i.e. the distance from the top of the first line of text to the top of the second. It is the space between the lines of two paragraphs.
You can try to run the following code to lea... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "Height is the vertical measurement of the container, for example, height of a div."
},
{
"code": null,
"e": 1338,
"s": 1145,
"text": "Line-height is a CSS property to specify the line height i.e. the distance from the top of the firs... |
HTML | <table> cellpadding Attribute - GeeksforGeeks | 29 May, 2019
The HTML <table> cellpadding Attribute is used to specify the space between the cell content and cell wall. The cellpadding attribute is set in terms of pixels.
Syntax:
<table cellpadding="pixels">
Attribute Values:
pixels: It holds the space between the cell content and cell wall in terms of pixels.
Note:... | [
{
"code": null,
"e": 24576,
"s": 24548,
"text": "\n29 May, 2019"
},
{
"code": null,
"e": 24737,
"s": 24576,
"text": "The HTML <table> cellpadding Attribute is used to specify the space between the cell content and cell wall. The cellpadding attribute is set in terms of pixels."
... |
How to change the text color of font in the legend using Matplotlib? | To change the text color of font in the legend in matplotlib, we can take the following steps−
Create x and y data points using numpy.
Plot x and y using plot() method, where color of line is red and label is "y=exp(x)".
To place the legend, use legend() method with location of the legend and store the returned value t... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "To change the text color of font in the legend in matplotlib, we can take the following steps−"
},
{
"code": null,
"e": 1197,
"s": 1157,
"text": "Create x and y data points using numpy."
},
{
"code": null,
"e": 1283,
... |
MediaPlayer class to implement a basic Audio Player in an Android Kotlin app? | This example demonstrates how to implement a MediaPlayer class to implement a basic Audio Player in an Android Kotlin app.
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.
<?x... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "This example demonstrates how to implement a MediaPlayer class to implement a basic Audio Player in an Android Kotlin app."
},
{
"code": null,
"e": 1314,
"s": 1185,
"text": "Step 1 − Create a new project in Android Studio, go to File... |
Checking semiprime numbers - JavaScript | We are required to write a JavaScript function that takes in a number and the function establishes if the provided number is a semiprime or not.
A semiprime number is that number which is a special type of composite number that is a product of two prime numbers. For example: 6, 15, 10, 77 are all semiprime. The square ... | [
{
"code": null,
"e": 1207,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in a number and the function establishes if the provided number is a semiprime or not."
},
{
"code": null,
"e": 1438,
"s": 1207,
"text": "A semiprime number is that number whi... |
Elegant Web Development With Emmett In Python | by Emmett Boudreau | Towards Data Science | Python web-development is a portion of Python programming that has been dominated by popular options such as Flask and Django for years. Those solutions are certainly great, and I have used them myself a lot. That being said, I think there are shortcomings to any software, as certain directions have to be taken, and so... | [
{
"code": null,
"e": 674,
"s": 172,
"text": "Python web-development is a portion of Python programming that has been dominated by popular options such as Flask and Django for years. Those solutions are certainly great, and I have used them myself a lot. That being said, I think there are shortcoming... |
Introduction to Internet of Things (IoT) | Set 1 | 03 Jul, 2022
Internet of Things (IoT) is the networking of physical objects that contain electronics embedded within their architecture in order to communicate and sense interactions amongst each other or with respect to the external environment. In the upcoming years, IoT-based technology will offer advanced levels of... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n03 Jul, 2022"
},
{
"code": null,
"e": 609,
"s": 54,
"text": "Internet of Things (IoT) is the networking of physical objects that contain electronics embedded within their architecture in order to communicate and sense interactions amon... |
SQL – SELECT SUM | 21 Jul, 2021
SELECT SUM is used to calculate the total value of an expression in SQL. It is the same as using the AGGREGATE function SUM ( ) in SQL.
In this article, we are going to see how to use “SELECT SUM” in SQL using suitable examples.
Syntax :
SELECT SUM(expr)
FROM Table_Name
WHERE condition;
expr : Expression ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Jul, 2021"
},
{
"code": null,
"e": 190,
"s": 54,
"text": "SELECT SUM is used to calculate the total value of an expression in SQL. It is the same as using the AGGREGATE function SUM ( ) in SQL."
},
{
"code": null,
"e": 2... |
wcstok() function in C++ with example | 12 Dec, 2021
The wcstok() function is defined in cwchar.h header file. The wcstok() function returns the next token in a null terminated wide string. The pointer delim points to the separator characters i.e. the delimiter.
.Syntax:
wchar_t* wcstok(wchar_t* str,
const wchar_t* delim,
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Dec, 2021"
},
{
"code": null,
"e": 238,
"s": 28,
"text": "The wcstok() function is defined in cwchar.h header file. The wcstok() function returns the next token in a null terminated wide string. The pointer delim points to the separa... |
K-fold Cross Validation in R Programming | 28 Dec, 2021
The prime aim of any machine learning model is to predict the outcome of real-time data. To check whether the developed model is efficient enough to predict the outcome of an unseen data point, performance evaluation of the applied machine learning model becomes very necessary. K-fold cross-validation tech... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Dec, 2021"
},
{
"code": null,
"e": 689,
"s": 54,
"text": "The prime aim of any machine learning model is to predict the outcome of real-time data. To check whether the developed model is efficient enough to predict the outcome of an... |
Minimize a string by removing all occurrences of another string | 27 May, 2022
Given two strings S1 and S2 of length N and M respectively, consisting of lowercase letters, the task is to find the minimum length to which S1 can be reduced by removing all occurrences of the string S2 from the string S1.
Examples:
Input: S1 =”fffoxoxoxfxo”, S2 = “fox”;Output: 3Explanation:By removing “f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 278,
"s": 54,
"text": "Given two strings S1 and S2 of length N and M respectively, consisting of lowercase letters, the task is to find the minimum length to which S1 can be reduced by removing all... |
Java Program for Find largest prime factor of a number | 17 Feb, 2018
Given a positive integer \’n\'( 1 <= n <= 1015). Find the largest prime factor of a number.
Input: 6
Output: 3
Explanation
Prime factor of 6 are- 2, 3
Largest of them is \'3\'
Input: 15
Output: 5
Java
// Java Program to find largest// prime factor of numberimport java.io.*;import java.util.*; class GFG ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Feb, 2018"
},
{
"code": null,
"e": 144,
"s": 52,
"text": "Given a positive integer \\’n\\'( 1 <= n <= 1015). Find the largest prime factor of a number."
},
{
"code": null,
"e": 250,
"s": 144,
"text": "Input: 6\nO... |
Remove Last character from String in Linux | 29 Jun, 2021
In this article, we will discuss how to remove the last character from the string in Linux.
In Linux, there are various commands and techniques present by which you can do this task in an easier way if you have some basic knowledge about the commands in Linux. Here, you will see the different commands by ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 121,
"s": 28,
"text": "In this article, we will discuss how to remove the last character from the string in Linux. "
},
{
"code": null,
"e": 398,
"s": 121,
"text": "In Linux, the... |
Java.lang.String class in Java | Set 2 | 04 Apr, 2022
public int codePointAt(int index) – It takes as parameter a index which must be from 0 to length() – 1. ad returns a character unicode point of a index.public int codePointBefore(int index) – It takes as parameter a index which must be from 0 to length() – 1. and returns a unicode point of a character just... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Apr, 2022"
},
{
"code": null,
"e": 2117,
"s": 52,
"text": "public int codePointAt(int index) – It takes as parameter a index which must be from 0 to length() – 1. ad returns a character unicode point of a index.public int codePointB... |
HTML vs XML | 25 May, 2022
HTML: HTML (Hyper Text Markup Language) is used to create web pages and web applications. It is a markup language. By HTML we can create our own static page. It is used for displaying the data not to transport the data. HTML is the combination of Hypertext and Markup language. Hypertext defines the link be... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 May, 2022"
},
{
"code": null,
"e": 626,
"s": 52,
"text": "HTML: HTML (Hyper Text Markup Language) is used to create web pages and web applications. It is a markup language. By HTML we can create our own static page. It is used for d... |
Node.js v8.serialize() Method | 28 Jul, 2020
The v8.serialize() method is an inbuilt application programming interface of the v8 module which is used to serialize any type of data into a buffer using default serializer.
Syntax:
v8.serialize(value);
Parameters: This method one parameter as described below and mentioned above.
value: This is a required... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 203,
"s": 28,
"text": "The v8.serialize() method is an inbuilt application programming interface of the v8 module which is used to serialize any type of data into a buffer using default serializer."... |
<cfloat> float.h in C/C++ with Examples | 25 Nov, 2019
This header file consists of platform-dependent and implementation specific floating point values. A floating point has four parts.
SignIts value can be either negative or non-negative.
BaseIt is also known as radix of exponent representation which represents different numbers with single number i.e. 2 for... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Nov, 2019"
},
{
"code": null,
"e": 184,
"s": 52,
"text": "This header file consists of platform-dependent and implementation specific floating point values. A floating point has four parts."
},
{
"code": null,
"e": 238,
... |
What happens if we does not initialize variables of an interface in java? | In Java final is the access modifier which can be used with a filed class and a method.
When a method if final it cannot be overridden.
When a variable is final its value cannot be modified further.
When a class is finale it cannot be extended.
If you declare a variable as final, it is mandatory to initialize it before... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "In Java final is the access modifier which can be used with a filed class and a method."
},
{
"code": null,
"e": 1198,
"s": 1150,
"text": "When a method if final it cannot be overridden."
},
{
"code": null,
"e": 1261,
... |
JUnit - Ignore Test | Sometimes it so happens that our code is not completely ready while running a test case. As a result, the test case fails. The @Ignore annotation helps in this scenario.
A test method annotated with @Ignore will not be executed.
A test method annotated with @Ignore will not be executed.
If a test class is annotated wit... | [
{
"code": null,
"e": 2142,
"s": 1972,
"text": "Sometimes it so happens that our code is not completely ready while running a test case. As a result, the test case fails. The @Ignore annotation helps in this scenario."
},
{
"code": null,
"e": 2201,
"s": 2142,
"text": "A test metho... |
Apache HIVE - Database Options - GeeksforGeeks | 04 Nov, 2020
Apache hive is a data-warehousing tool built on top of Hadoop. The structured data can be handled with the Hive query language. In this article, we are going to see options that are available with databases in the Hive.
The database is used for storing information. The hive will create a directory for each... | [
{
"code": null,
"e": 24346,
"s": 24318,
"text": "\n04 Nov, 2020"
},
{
"code": null,
"e": 24566,
"s": 24346,
"text": "Apache hive is a data-warehousing tool built on top of Hadoop. The structured data can be handled with the Hive query language. In this article, we are going to se... |
Build with PyCaret, Deploy with FastAPI | by Moez Ali | Towards Data Science | This is a step-by-step, beginner-friendly tutorial on how to build an end-to-end Machine Learning Pipeline with PyCaret and deploy it in production as a web API using FastAPI.
Build an end-to-end machine learning pipeline using PyCaret
What is a deployment and why do we deploy machine learning models
Develop an API usi... | [
{
"code": null,
"e": 348,
"s": 172,
"text": "This is a step-by-step, beginner-friendly tutorial on how to build an end-to-end Machine Learning Pipeline with PyCaret and deploy it in production as a web API using FastAPI."
},
{
"code": null,
"e": 408,
"s": 348,
"text": "Build an e... |
MFC - Progress Bars | Besides the Progress control, Visual C++ provides two other progress-oriented controls −
The Microsoft Progress Control Version 5.0
The Microsoft Progress Control Version 6.0
The main difference is in their ability to assume one or two orientations.
Let us look into a simple example.
Step 1 − Right-click on the dialog ... | [
{
"code": null,
"e": 2156,
"s": 2067,
"text": "Besides the Progress control, Visual C++ provides two other progress-oriented controls −"
},
{
"code": null,
"e": 2199,
"s": 2156,
"text": "The Microsoft Progress Control Version 5.0"
},
{
"code": null,
"e": 2242,
"s"... |
Number of Binary Trees for given Preorder Sequence length - GeeksforGeeks | 30 Apr, 2021
Count the number of Binary Tree possible for a given Preorder Sequence length n.Examples:
Input : n = 1
Output : 1
Input : n = 2
Output : 2
Input : n = 3
Output : 5
Background :
In Preorder traversal, we process the root node first, then traverse the left child node and then right child node. For e... | [
{
"code": null,
"e": 35848,
"s": 35820,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 35940,
"s": 35848,
"text": "Count the number of Binary Tree possible for a given Preorder Sequence length n.Examples: "
},
{
"code": null,
"e": 36017,
"s": 35940,
"text":... |
Redis - Set Srandmember Command | Redis SRANDMEMBER command is used to get a random member from set stored at specified key. If called with the additional count argument, return an array of count distinct elements if count is positive. If called with a negative count the behavior changes and the command is allowed to return the same element multiple ti... | [
{
"code": null,
"e": 2460,
"s": 2045,
"text": "Redis SRANDMEMBER command is used to get a random member from set stored at specified key. If called with the additional count argument, return an array of count distinct elements if count is positive. If called with a negative count the behavior change... |
ASP.NET - Ad Rotator | The AdRotator control randomly selects banner graphics from a list, which is specified in an external XML schedule file. This external XML schedule file is called the advertisement file.
The AdRotator control allows you to specify the advertisement file and the type of window that the link should follow in the Advertis... | [
{
"code": null,
"e": 2534,
"s": 2347,
"text": "The AdRotator control randomly selects banner graphics from a list, which is specified in an external XML schedule file. This external XML schedule file is called the advertisement file."
},
{
"code": null,
"e": 2715,
"s": 2534,
"tex... |
Calculate the Number of Months between two specific dates in SQL - GeeksforGeeks | 26 Apr, 2021
In this article, we will discuss the overview of SQL Query to Calculate the Number of Months between two specific dates and will implement with the help of an example for better understanding. Let’s discuss it step by step.
Overview :Here we will see, how to calculate the number of months between the two g... | [
{
"code": null,
"e": 24268,
"s": 24240,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 24492,
"s": 24268,
"text": "In this article, we will discuss the overview of SQL Query to Calculate the Number of Months between two specific dates and will implement with the help of an exam... |
Python 3 - Tkinter tkMessageBox | The tkMessageBox module is used to display message boxes in your applications. This module provides a number of functions that you can use to display an appropriate message.
Some of these functions are showinfo, showwarning, showerror, askquestion, askokcancel, askyesno, and askretryignore.
Here is the simple syntax to... | [
{
"code": null,
"e": 2514,
"s": 2340,
"text": "The tkMessageBox module is used to display message boxes in your applications. This module provides a number of functions that you can use to display an appropriate message."
},
{
"code": null,
"e": 2632,
"s": 2514,
"text": "Some of ... |
JSF - Quick Guide | JavaServer Faces (JSF) is a MVC web framework that simplifies the construction of User Interfaces (UI) for server-based applications using reusable UI components in a page. JSF provides a facility to connect UI widgets with data sources and to server-side event handlers. The JSF specification defines a set of standard ... | [
{
"code": null,
"e": 2445,
"s": 1952,
"text": "JavaServer Faces (JSF) is a MVC web framework that simplifies the construction of User Interfaces (UI) for server-based applications using reusable UI components in a page. JSF provides a facility to connect UI widgets with data sources and to server-si... |
Convert from any base to decimal and vice versa - GeeksforGeeks | 27 May, 2021
Given a number and its base, convert it to decimal. The base of number can be anything such that all digits can be represented using 0 to 9 and A to Z. The value of A is 10, the value of B is 11 and so on. Write a function to convert the number to decimal.
Examples:
Input number is given as string and out... | [
{
"code": null,
"e": 24668,
"s": 24640,
"text": "\n27 May, 2021"
},
{
"code": null,
"e": 24925,
"s": 24668,
"text": "Given a number and its base, convert it to decimal. The base of number can be anything such that all digits can be represented using 0 to 9 and A to Z. The value o... |
Using Python to Connect to a GraphQL API | by Melvynn Fernandez | Towards Data Science | Let’s automate and remove the margin for error, trying to get rid of the front end one step at a time.
What exactly is GraphQL?GraphQL in its simplest terms a query language used for the front end. We send a request and retrieve certain data back. GraphQL is also advanced enough to make changes in the data called mutat... | [
{
"code": null,
"e": 275,
"s": 172,
"text": "Let’s automate and remove the margin for error, trying to get rid of the front end one step at a time."
},
{
"code": null,
"e": 548,
"s": 275,
"text": "What exactly is GraphQL?GraphQL in its simplest terms a query language used for the... |
How to remove all non-printable characters in a string in PHP? - GeeksforGeeks | 07 May, 2019
Given a string which contains printable and not-printable characters. The task is to remove all non-printable characters from the string. Space ( ) is first printable char and tilde (~) is last printable ASCII characters. So the task is to replace all characters which do fall in that range means to take on... | [
{
"code": null,
"e": 25186,
"s": 25158,
"text": "\n07 May, 2019"
},
{
"code": null,
"e": 25597,
"s": 25186,
"text": "Given a string which contains printable and not-printable characters. The task is to remove all non-printable characters from the string. Space ( ) is first printa... |
GATE | GATE CS 1996 | Question 13 | 20 May, 2019
An advantage of chained hash table (external hashing) over the open addressing scheme is
(A) Worst case complexity of search operations is less(B) Space used is less(C) Deletion is easier(D) None of the aboveAnswer: (C)Explanation:
In Open Addressing scheme sometimes though element is present we can't dele... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 May, 2019"
},
{
"code": null,
"e": 117,
"s": 28,
"text": "An advantage of chained hash table (external hashing) over the open addressing scheme is"
},
{
"code": null,
"e": 260,
"s": 117,
"text": "(A) Worst case co... |
SQL Interview Questions | Set 2 | 14 Jun, 2022
Difference between Locking, Blocking and DeadlockingLocking: Locking occurs when a connection needs access to a piece of data in a database and it locks it for certain use so that no other transaction is able to access it.Blocking: Blocking occurs when a transaction tries to acquire an incompatible lock on... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Jun, 2022"
},
{
"code": null,
"e": 5165,
"s": 52,
"text": "Difference between Locking, Blocking and DeadlockingLocking: Locking occurs when a connection needs access to a piece of data in a database and it locks it for certain use s... |
How to create timeline using CSS? | 15 Sep, 2020
We can easily create a timeline using some basic HTML and CSS. HTML Code is used to create a basic structure of the timeline and CSS code is used to set the style.
HTML Code: In this section, we will create a structure of our timeline. Our structure will include four events.
Steps:
Create a div element wit... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Sep, 2020"
},
{
"code": null,
"e": 216,
"s": 52,
"text": "We can easily create a timeline using some basic HTML and CSS. HTML Code is used to create a basic structure of the timeline and CSS code is used to set the style."
},
{
... |
Python Program to check Armstrong Number | 29 Jun, 2022
Given a number x, determine whether the given number is Armstrong number or not. A positive integer of n digits is called an Armstrong number of order n (order is number of digits) if.
abcd... = pow(a,n) + pow(b,n) + pow(c,n) + pow(d,n) + ....
Example:
Input : 153
Output : Yes
153 is an Armstrong number.
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 239,
"s": 54,
"text": "Given a number x, determine whether the given number is Armstrong number or not. A positive integer of n digits is called an Armstrong number of order n (order is number of d... |
Java Program to Create Directories Recursively | 12 May, 2022
A directory/folder is a File System used in computing that acts as a named memory location for storing related files or even subfolders. This allows better management of files and folders and is premised on the concept of real-world folders used for storing files. This system is the implementation of compa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 529,
"s": 28,
"text": "A directory/folder is a File System used in computing that acts as a named memory location for storing related files or even subfolders. This allows better management of files... |
Augmented Faces with ARCore in Android | 17 Feb, 2022
Augmented Faces permit the application to naturally distinguish various regions of an individual’s face, and utilize those areas to overlay resources, for example, surfaces and models in a way that appropriately matches the contours and regions of an individual face. ARCore is a stage for building Augmente... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 472,
"s": 54,
"text": "Augmented Faces permit the application to naturally distinguish various regions of an individual’s face, and utilize those areas to overlay resources, for example, surfaces a... |
BufferedReader ready() method in Java with Examples - GeeksforGeeks | 28 May, 2020
The ready() method of BufferedReader class in Java is used to verify whether the buffer stream is ready to be read or not. A buffer stream is said to be ready in two cases either the buffer is not empty or the main stream is ready.
Syntax:
public boolean ready()
throws IOException
Overrides: Th... | [
{
"code": null,
"e": 24530,
"s": 24502,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 24762,
"s": 24530,
"text": "The ready() method of BufferedReader class in Java is used to verify whether the buffer stream is ready to be read or not. A buffer stream is said to be ready in t... |
Let’s Build a Streaming Data Pipeline | by Daniel Foley | Towards Data Science | Today's post is based on a project I recently did in work. I was really excited to implement it and to write it up as a blog post as it gave me a chance to do some data engineering and also do something that was quite valuable for my team. Not too long ago, I discovered that we had a relatively large amount of user log... | [
{
"code": null,
"e": 999,
"s": 171,
"text": "Today's post is based on a project I recently did in work. I was really excited to implement it and to write it up as a blog post as it gave me a chance to do some data engineering and also do something that was quite valuable for my team. Not too long ag... |
Different way to create a thread in Python - GeeksforGeeks | 01 Oct, 2020
A thread is an entity within a process that can be scheduled for execution. Also, it is the smallest unit of processing that can be performed in an Operating System.
1) Create a Thread without using an Explicit function:
By importing the module and creating the Thread class object separately we can easil... | [
{
"code": null,
"e": 25579,
"s": 25551,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 25746,
"s": 25579,
"text": "A thread is an entity within a process that can be scheduled for execution. Also, it is the smallest unit of processing that can be performed in an Operating Syste... |
Angular PrimeNG MegaMenu Component - GeeksforGeeks | 08 Sep, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the MegaMenu component in Angular PrimeNG. We will also learn abou... | [
{
"code": null,
"e": 26464,
"s": 26436,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 26855,
"s": 26464,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp... |
Compressed Tries - GeeksforGeeks | 24 Nov, 2021
A trie is a data structure that stores strings like a tree data structure. The maximum number of children in a node is equal to the size of the alphabet. One can easily print letters in alphabetical order which isn’t possible with hashing.
Properties of Trie:
It’s a multi-way tree.
Each node has from 1 to ... | [
{
"code": null,
"e": 24406,
"s": 24378,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 24646,
"s": 24406,
"text": "A trie is a data structure that stores strings like a tree data structure. The maximum number of children in a node is equal to the size of the alphabet. One can e... |
How data compression works: exploring LZ77 | by Dhanesh Budhrani | Towards Data Science | In this post we are going to explore LZ77, a lossless data-compression algorithm created by Lempel and Ziv in 1977. This algorithm is widely spread in our current systems since, for instance, ZIP and GZIP are based on LZ77.
LZ77 iterates sequentially through the input string and stores any new match into a search buffe... | [
{
"code": null,
"e": 396,
"s": 172,
"text": "In this post we are going to explore LZ77, a lossless data-compression algorithm created by Lempel and Ziv in 1977. This algorithm is widely spread in our current systems since, for instance, ZIP and GZIP are based on LZ77."
},
{
"code": null,
... |
Kth Ancestor in a Tree | Practice | GeeksforGeeks | Given a binary tree of size N, a node and a positive integer k., Your task is to complete the function kthAncestor(), the function should return the kth ancestor of the given node in the binary tree. If there does not exist any such ancestor then return -1.
Example 1:
Input:
K = 2
Node = 4
Output: 1
Expla... | [
{
"code": null,
"e": 497,
"s": 238,
"text": "Given a binary tree of size N, a node and a positive integer k., Your task is to complete the function kthAncestor(), the function should return the kth ancestor of the given node in the binary tree. If there does not exist any such ancestor then return ... |
Python Design Patterns - State | It provides a module for state machines, which are implemented using subclasses, derived from a specified state machine class. The methods are state independent and cause transitions declared using decorators.
The basic implementation of state pattern is shown below −
class ComputerState(object):
name = "state"
... | [
{
"code": null,
"e": 2689,
"s": 2479,
"text": "It provides a module for state machines, which are implemented using subclasses, derived from a specified state machine class. The methods are state independent and cause transitions declared using decorators."
},
{
"code": null,
"e": 2748,
... |
C Program to find two’s complement for a given number | The two’s complement for a given binary number can be calculated in two methods, which are as follows −
Method 1 − Convert the given binary number into one’s complement and then, add 1.
Method 1 − Convert the given binary number into one’s complement and then, add 1.
Method 2 − The trailing zero’s after the first bit s... | [
{
"code": null,
"e": 1166,
"s": 1062,
"text": "The two’s complement for a given binary number can be calculated in two methods, which are as follows −"
},
{
"code": null,
"e": 1248,
"s": 1166,
"text": "Method 1 − Convert the given binary number into one’s complement and then, add... |
Python PIL | Image.getdata() - GeeksforGeeks | 02 Aug, 2019
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to... | [
{
"code": null,
"e": 24510,
"s": 24482,
"text": "\n02 Aug, 2019"
},
{
"code": null,
"e": 24837,
"s": 24510,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which... |
How to exclude specific extension in Get-ChildItem in PowerShell? | To exclude specific extensions, you need to use –Exclude parameter in Get-ChildItem.
For example, as shown below when we run command, it will exclude .html files and display the rest.
Get-ChildItem D:\Temp\ -Recurse -Exclude *.html
Directory: D:\Temp
Mode LastWriteTime Length Name
---- ... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "To exclude specific extensions, you need to use –Exclude parameter in Get-ChildItem."
},
{
"code": null,
"e": 1246,
"s": 1147,
"text": "For example, as shown below when we run command, it will exclude .html files and display the rest... |
Adding Borders to Tables in CSS | The CSS border property is used to define a border for an element. The syntax of CSS border property is as follows−
Selector {
border: /*value*/
}
The following examples illustrate CSS border property−
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
table {
margin: 1em;
border: 3px double green;
border-rig... | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "The CSS border property is used to define a border for an element. The syntax of CSS border property is as follows−"
},
{
"code": null,
"e": 1212,
"s": 1178,
"text": "Selector {\n border: /*value*/\n}"
},
{
"code": null,
... |
An Introduction to Scala. Welcome to the first article in my... | by Jake Huneycutt | Towards Data Science | Welcome to the first article in my multi-part series on Scala. This tutorial is designed to teach introductory Scala as a precursor to learning Apache Spark.
This first section is available on Medium, but the rest of this guide can be found on the project Github page in the link below:
An Intro to Scala
Scala is an obj... | [
{
"code": null,
"e": 330,
"s": 172,
"text": "Welcome to the first article in my multi-part series on Scala. This tutorial is designed to teach introductory Scala as a precursor to learning Apache Spark."
},
{
"code": null,
"e": 459,
"s": 330,
"text": "This first section is availa... |
Pandas - Removing Duplicates | Duplicate rows are rows
that have been registered more than one time.
Duration Date Pulse Maxpulse Calories
0 60 '2020/12/01' 110 130 409.1
1 60 '2020/12/02' 117 145 479.0
2 60 '2020/12/03' 103 135 340.0
3 45 '2020/12... | [
{
"code": null,
"e": 71,
"s": 0,
"text": "Duplicate rows are rows \nthat have been registered more than one time."
},
{
"code": null,
"e": 1922,
"s": 71,
"text": "\n Duration Date Pulse Maxpulse Calories\n 0 60 '2020/12/01' 110 130 409.1\n ... |
Draw Histogram with Logarithmic Scale in R - GeeksforGeeks | 30 May, 2021
R is a programming language, mainly used for statistical computing and graphics. It implements various statistical techniques including linear modeling, classification, time series analysis, and clustering. A Histogram is commonly used to depict the frequency distribution of variables. It also is often use... | [
{
"code": null,
"e": 25162,
"s": 25134,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 25656,
"s": 25162,
"text": "R is a programming language, mainly used for statistical computing and graphics. It implements various statistical techniques including linear modeling, classifica... |
PHP - Function scandir() | array scandir ( string $directory [, int $sorting_order [, resource $context]] );
It returns an array of files and directories from the passed directory.
directory(Required)
The directory that will be scanned.
sorting_order(Optional)
It specifies the sort order. Default is 0 (ascending). If set to 1, it indicates des... | [
{
"code": null,
"e": 2840,
"s": 2757,
"text": "array scandir ( string $directory [, int $sorting_order [, resource $context]] );\n"
},
{
"code": null,
"e": 2913,
"s": 2840,
"text": "It returns an array of files and directories from the passed directory."
},
{
"code": nul... |
Performing total of a column in a temporary column in SAP | You need to perform select again on your query. Here is the sample
SELECT DATE, FUND_ID, PPT_ID, SOURCE_ID, AMOUNT, SUM (AMOUNT) as TOTAL
FROM (
SELECT
AD.CHV_DATE.DATE,
AD.CHV_FUND.FUND_ID,
AD.CHV_PARTICT.PPT_ID,
AD.CHV_PARTICT.SOURCE_ID,
SUM (AD.CHV_PARTICT.AMOUNT),
FROM
AD.CHV_DATE,
AD.CHV_FU... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "You need to perform select again on your query. Here is the sample"
},
{
"code": null,
"e": 1817,
"s": 1129,
"text": "SELECT DATE, FUND_ID, PPT_ID, SOURCE_ID, AMOUNT, SUM (AMOUNT) as TOTAL\nFROM (\n SELECT\n AD.CHV_DATE.DATE,\n ... |
Java Program to get the count of child nodes of any node in JTree | Use the getChildCount() method in Java to get the count of child nosed of any node i.e. even if it’s a root node or not.
Let’s say we want the count of child nodes for node 1, which is not a root node, therefore −
node1.getChildCount()
The following is an example to get the count of child nodes of any node −
package my... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "Use the getChildCount() method in Java to get the count of child nosed of any node i.e. even if it’s a root node or not."
},
{
"code": null,
"e": 1276,
"s": 1183,
"text": "Let’s say we want the count of child nodes for node 1, which ... |
Set the width of an element to 75% in Bootstrap | To set the width of an element to 75%, use the .w-75 class in Bootstrap.
You can try to run the following code to set element’s width −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.m... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "To set the width of an element to 75%, use the .w-75 class in Bootstrap."
},
{
"code": null,
"e": 1198,
"s": 1135,
"text": "You can try to run the following code to set element’s width −"
},
{
"code": null,
"e": 1208,
... |
C++ Files and Streams | So far, we have been using the iostream standard library, which provides cin and cout methods for reading from standard input and writing to standard output respectively.
This tutorial will teach you how to read and write from a file. This requires another standard C++ library called fstream, which defines three new da... | [
{
"code": null,
"e": 2489,
"s": 2318,
"text": "So far, we have been using the iostream standard library, which provides cin and cout methods for reading from standard input and writing to standard output respectively."
},
{
"code": null,
"e": 2649,
"s": 2489,
"text": "This tutori... |
How to use a List as a key of a Dictionary in Python 3? | 17 May, 2020
In Python, we use dictionaries to check if an item is present or not . Dictionaries use key:value pair to search if a key is present or not and if the key is present what is its value . We can use integer, string, tuples as dictionary keys but cannot use list as a key of it . The reason is explained below ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 337,
"s": 28,
"text": "In Python, we use dictionaries to check if an item is present or not . Dictionaries use key:value pair to search if a key is present or not and if the key is present what is i... |
Program to find Normal and Trace of a matrix | 07 Jul, 2022
Given a 2D matrix, the task is to find Trace and Normal of matrix.Normal of a matrix is defined as square root of sum of squares of matrix elements.Trace of a n x n square matrix is sum of diagonal elements.
Examples :
Input : mat[][] = {{7, 8, 9},
{6, 1, 2},
{5, 4, 3... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 261,
"s": 53,
"text": "Given a 2D matrix, the task is to find Trace and Normal of matrix.Normal of a matrix is defined as square root of sum of squares of matrix elements.Trace of a n x n square ma... |
Number of common digits present in two given numbers | 22 Apr, 2021
Given two positive numbers N and M, the task is to count the number of digits that are present in both N and M.
Examples:
Input: N = 748294, M = 34298156Output: 4Explanation: The digits that are present in both the numbers are {4, 8, 2, 9}. Therefore, the required count is 4.
Input: N = 111222, M = 333444O... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 166,
"s": 54,
"text": "Given two positive numbers N and M, the task is to count the number of digits that are present in both N and M."
},
{
"code": null,
"e": 176,
"s": 166,
"t... |
Difference between module.exports and exports in Node.js | 06 Jul, 2022
The module is a plain JavaScript Object representing the current module. It is local to each module and also it is private. It has exports property which is a plain JavaScript variable, set to module.exports. At the end of the file, Node.js return module.exports to the required function.
When we want to ex... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 317,
"s": 28,
"text": "The module is a plain JavaScript Object representing the current module. It is local to each module and also it is private. It has exports property which is a plain JavaScript... |
Python | Getting started with SymPy module | 21 Apr, 2022
SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python. SymPy only depends on mpmath, a pure Python library for ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 447,
"s": 53,
"text": "SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to b... |
Functors in C++ | 06 Feb, 2020
Please note that the title is Functors (Not Functions)!!
Consider a function that takes only one argument. However, while calling this function we have a lot more information that we would like to pass to this function, but we cannot as it accepts only one parameter. What can be done?
One obvious answer mi... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Feb, 2020"
},
{
"code": null,
"e": 111,
"s": 54,
"text": "Please note that the title is Functors (Not Functions)!!"
},
{
"code": null,
"e": 340,
"s": 111,
"text": "Consider a function that takes only one argument... |
How to Implement Custom Searchable Spinner in Android? | 28 Feb, 2022
Android Spinner is a view similar to the dropdown list which is used to select one option from the list of options. It provides an easy way to select one item from the list of items and it shows a dropdown list of all values when we click on it. The default value of the android spinner will be the currentl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Feb, 2022"
},
{
"code": null,
"e": 699,
"s": 28,
"text": "Android Spinner is a view similar to the dropdown list which is used to select one option from the list of options. It provides an easy way to select one item from the list of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.