title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Inference in Graph Database. In this blog post, I will try to... | by Atakan Güney | Towards Data Science | In this blog post, I will try to explain what the inference is on Semantic Web and to show how the inference can be applied in a local graph database. The outline of my blog is the following:
What is Inference?What is used for?Types of the procedureGraph Database and OntologyInference on DatabaseConclusion
What is Infe... | [
{
"code": null,
"e": 364,
"s": 172,
"text": "In this blog post, I will try to explain what the inference is on Semantic Web and to show how the inference can be applied in a local graph database. The outline of my blog is the following:"
},
{
"code": null,
"e": 480,
"s": 364,
"te... |
Allocate minimum number of pages in C++ | Allocate a minimum number of pages is a programming problem. Let's discuss this problem in detail and see what can be the solution to it.
You are given the number of pages of n different books. Also, there are m students to whom the books are to be assigned. The books are arranged in ascending order of the number of pa... | [
{
"code": null,
"e": 1200,
"s": 1062,
"text": "Allocate a minimum number of pages is a programming problem. Let's discuss this problem in detail and see what can be the solution to it."
},
{
"code": null,
"e": 1542,
"s": 1200,
"text": "You are given the number of pages of n diffe... |
What is the difference between static classes and non-static inner classes in Java? | Following are the notable differences between inner classes and static inner classes.
The static inner class can access the static members of the outer class directly. But, to access the instance members of the outer class you need to instantiate the outer class.
public class Outer {
int num = 234;
static int dat... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "Following are the notable differences between inner classes and static inner classes."
},
{
"code": null,
"e": 1326,
"s": 1148,
"text": "The static inner class can access the static members of the outer class directly. But, to access... |
Deep Transfer Learning for Natural Language Processing — Text Classification with Universal Embeddings | by Dipanjan (DJ) Sarkar | Towards Data Science | Transfer learning is an exciting concept where we try to leverage prior knowledge from one domain and task into a different domain and task. The inspiration comes from us — humans, ourselves — where in, we have an inherent ability to not learn everything from scratch. We transfer and leverage our knowledge from what we... | [
{
"code": null,
"e": 1064,
"s": 171,
"text": "Transfer learning is an exciting concept where we try to leverage prior knowledge from one domain and task into a different domain and task. The inspiration comes from us — humans, ourselves — where in, we have an inherent ability to not learn everything... |
synchronized Keyword in Java | When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write within a same file then they may corrupt the data because one of the ... | [
{
"code": null,
"e": 1517,
"s": 1062,
"text": "When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write wi... |
PyQt5 - Create a digital clock - GeeksforGeeks | 22 Apr, 2020
In this article we will see how to create a digital clock using PyQt5, this digital clock will basically tells the current time in the 24 hour format.
In order to create a digital clock we have to do the following:
1. Create a vertical layout2. Create label to show the current time and put it in the layout... | [
{
"code": null,
"e": 23753,
"s": 23725,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 23904,
"s": 23753,
"text": "In this article we will see how to create a digital clock using PyQt5, this digital clock will basically tells the current time in the 24 hour format."
},
{
... |
Check whether HTML element has scrollbars using JavaScript - GeeksforGeeks | 20 Sep, 2019
Given an HTML document and the task is to identify whether a particular element has scrollBars or not. There are two approaches to solve this problem which are discussed below:
Approach 1:
Select the particular element.
Get the element.scrollWidth and .clientWidth property for horizontal scrollbar.
Calcula... | [
{
"code": null,
"e": 24705,
"s": 24677,
"text": "\n20 Sep, 2019"
},
{
"code": null,
"e": 24882,
"s": 24705,
"text": "Given an HTML document and the task is to identify whether a particular element has scrollBars or not. There are two approaches to solve this problem which are dis... |
Email OTP Verification using PHP in Live Server | 07 Apr, 2022
The task is to create and design a sign-up and login form. In the sign-up form, the user will sign-up with a custom username and password and a valid email then the user will receive an OTP through the email, and after successful verification of OTP user account will be created and data will be stored in M... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 529,
"s": 28,
"text": "The task is to create and design a sign-up and login form. In the sign-up form, the user will sign-up with a custom username and password and a valid email then the user will ... |
How to write Regular Expressions? | 08 Jul, 2016
A regular expression (sometimes called a rational expression) is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. “find and replace”-like operations.(Wikipedia).
Regular expressions are a generalized way to match patterns with ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2016"
},
{
"code": null,
"e": 296,
"s": 54,
"text": "A regular expression (sometimes called a rational expression) is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or st... |
Virtual LAN (VLAN) | 21 Oct, 2021
Virtual LAN (VLAN) is a concept in which we can divide the devices logically on layer 2 (data link layer). Generally, layer 3 devices divide broadcast domain but broadcast domain can be divided by switches using the concept of VLAN.
A broadcast domain is a network segment in which if a device broadcast a ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 286,
"s": 52,
"text": "Virtual LAN (VLAN) is a concept in which we can divide the devices logically on layer 2 (data link layer). Generally, layer 3 devices divide broadcast domain but broadcast do... |
Min flips of continuous characters to make all characters same in a string | 05 Nov, 2021
Given a string consisting only of 1’s and 0’s. In one flip we can change any continuous sequence of this string. Find this minimum number of flips so the string consist of same characters only.Examples:
Input : 00011110001110
Output : 2
We need to convert 1's sequence
so string consist of all 0's.
Input... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 257,
"s": 52,
"text": "Given a string consisting only of 1’s and 0’s. In one flip we can change any continuous sequence of this string. Find this minimum number of flips so the string consist of sa... |
Difference between OpenSUSE and Fedora | 28 Jun, 2022
1. OpenSUSE : OpenSUSE is a Linux distribution developed by The openSUSE Project. It was initially released on October 2005. It was developed for creating usable open-source tools for software developers and system administrators and it also provides a user-friendly environment and feature-rich server envi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 345,
"s": 28,
"text": "1. OpenSUSE : OpenSUSE is a Linux distribution developed by The openSUSE Project. It was initially released on October 2005. It was developed for creating usable open-source t... |
Find the position of the given row in a 2-D array | 26 May, 2021
Given a matrix mat[][] of size m * n which is sorted in row-wise fashion and an array row[], the task is to check if any row in the matrix is equal to the given array row[].Examples:
Input: mat[][] = { {1, 1, 2, 3, 1}, {2, 1, 3, 3, 2}, {2, 4, 5, 8, 3}, {4, 5, 5, 8, 3}, {8, 7, 10, 13, 6}}row[] = {4, 5, 5,... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 239,
"s": 54,
"text": "Given a matrix mat[][] of size m * n which is sorted in row-wise fashion and an array row[], the task is to check if any row in the matrix is equal to the given array row[].E... |
Types of Antialiasing Techniques | 10 Jul, 2020
At some point when you watch video or play game on your screen you may experience blocky or pixelated edges on your screen, this impact is known as Aliasing or normally called as “jaggies”. This can be simply killed by raising your screen resolution, however as not every person has a high-end PC, there are... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 414,
"s": 28,
"text": "At some point when you watch video or play game on your screen you may experience blocky or pixelated edges on your screen, this impact is known as Aliasing or normally called... |
GATE | GATE CS 2020 | Question 23 | 26 May, 2021
Consider a relational database containing the following schemas.
The primary key of each table is indicated by underlining the constituent fields.
SELECT s.sno, s.sname
FROM Suppliers s, Catalogue c
WHERE s.sno=c.sno AND
cost > (SELECT AVG (cost)
FROM Catalogue
WHERE pno = ‘P4’
... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 118,
"s": 53,
"text": "Consider a relational database containing the following schemas."
},
{
"code": null,
"e": 200,
"s": 118,
"text": "The primary key of each table is indicat... |
Object Model in Java | 28 Jan, 2022
The object model is a system or interface which is basically used to visualize elements in terms of objects in a software application. It is modeled using object-oriented techniques and before any programming or development is done, the object model is used to create a system model or an architecture. It d... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 522,
"s": 28,
"text": "The object model is a system or interface which is basically used to visualize elements in terms of objects in a software application. It is modeled using object-oriented tech... |
PHP program to print the number pattern | To print the number pattern in PHP, the code is as follows −
Live Demo
<?php
function num_pattern($val)
{
$num = 1;
for ($m = 0; $m < $val; $m++)
{
for ($n = 0; $n <= $m; $n++ )
{
echo $num." ";
}
$num = $num + 1;
echo "\n";
}
}
$val = 6;
num_pattern($val);
?>
1
2 2
3... | [
{
"code": null,
"e": 1248,
"s": 1187,
"text": "To print the number pattern in PHP, the code is as follows −"
},
{
"code": null,
"e": 1259,
"s": 1248,
"text": " Live Demo"
},
{
"code": null,
"e": 1500,
"s": 1259,
"text": "<?php\nfunction num_pattern($val)\n{\n ... |
Pairwise Software Testing | 20 Jun, 2019
Pairwise Testing is a type of software testing in which permutation and combination method is used to test the software. Pairwise testing is used to test all the possible discrete combinations of the parameters involved.
Pairwise testing is a P&C based method, in which to test a system or an application, f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jun, 2019"
},
{
"code": null,
"e": 249,
"s": 28,
"text": "Pairwise Testing is a type of software testing in which permutation and combination method is used to test the software. Pairwise testing is used to test all the possible disc... |
Modify the default font in Python Tkinter | In order to change the default behavior of tkinter widgets, we generally override the option_add() method. The properties and values passed to option_add() method will reflect the changes in all the widgets in the application. Thus, changing the default font will affect the font for all the widgets defined in the appli... | [
{
"code": null,
"e": 1515,
"s": 1187,
"text": "In order to change the default behavior of tkinter widgets, we generally override the option_add() method. The properties and values passed to option_add() method will reflect the changes in all the widgets in the application. Thus, changing the default... |
Mastermind Game using Python | 11 Nov, 2019
Given the present generation’s acquaintance with gaming and its highly demanded technology, many aspire to pursue the idea of developing and advancing it further. Eventually, everyone starts at the beginning. Mastermind is an old code-breaking game played by two players. The game goes back to the 19th cent... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Nov, 2019"
},
{
"code": null,
"e": 406,
"s": 54,
"text": "Given the present generation’s acquaintance with gaming and its highly demanded technology, many aspire to pursue the idea of developing and advancing it further. Eventually,... |
MySQL | AES_ENCRYPT ( ) Function | 25 Aug, 2021
The MySQL AES_ENCRYPT function is used for encrypting a string using Advanced Encryption Standard (AES) algorithm. The MySQL AES_ENCRYPT function encodes the data with 128 bits key length but it can be extended up to 256 bits key length. It encrypts a string and returns a binary string.
The value returned... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 317,
"s": 28,
"text": "The MySQL AES_ENCRYPT function is used for encrypting a string using Advanced Encryption Standard (AES) algorithm. The MySQL AES_ENCRYPT function encodes the data with 128 bit... |
ASP.NET Core - Middleware | In this chapter, we will understand how to set up middleware. Middleware in ASP.NET Core controls how our application responds to HTTP requests. It can also control how our application looks when there is an error, and it is a key piece in how we authenticate and authorize a user to perform specific actions.
Middleware... | [
{
"code": null,
"e": 2905,
"s": 2595,
"text": "In this chapter, we will understand how to set up middleware. Middleware in ASP.NET Core controls how our application responds to HTTP requests. It can also control how our application looks when there is an error, and it is a key piece in how we authen... |
What is Defunctionalization | 25 Jun, 2021
Defunctionalization is a compile-time conversion which removes higher-order functions by replacing the higher-order functions with a single first-order apply function.
This method was first represented by John C. Reynolds in the year 1972. It was represented in John C. Reynolds’s paper named “Definitional... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2021"
},
{
"code": null,
"e": 197,
"s": 28,
"text": "Defunctionalization is a compile-time conversion which removes higher-order functions by replacing the higher-order functions with a single first-order apply function. "
},
... |
PHP | Classes | 25 Mar, 2018
Like C++ and Java, PHP also supports object oriented programming
Classes are the blueprints of objects. One of the big differences between functions and classes is that a class contains both data (variables) and functions that form a package called an: ‘object’.Class is a programmer-defined data type, whic... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Mar, 2018"
},
{
"code": null,
"e": 119,
"s": 54,
"text": "Like C++ and Java, PHP also supports object oriented programming"
},
{
"code": null,
"e": 476,
"s": 119,
"text": "Classes are the blueprints of objects. O... |
HTML Heading | 28 Jun, 2022
In this article, we will know HTML Heading, & its implementation through the examples. A HTML heading tag is used to define the headings of a page. There are six levels of headings defined by HTML. These 6 heading elements are h1, h2, h3, h4, h5, and h6; with h1 being the highest level and h6 being the lea... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 364,
"s": 53,
"text": "In this article, we will know HTML Heading, & its implementation through the examples. A HTML heading tag is used to define the headings of a page. There are six levels of he... |
Data type of case labels of switch statement in C++? | 12 Aug, 2021
In C++ switch statement, the expression of each case label must be an integer constant expression. For example, the following program fails in compilation.
CPP
/* Using non-const in case label */#include<stdio.h>int main(){ int i = 10; int c = 10; switch(c) { case i: // not a "const int" expressio... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Aug, 2021"
},
{
"code": null,
"e": 210,
"s": 52,
"text": "In C++ switch statement, the expression of each case label must be an integer constant expression. For example, the following program fails in compilation. "
},
{
"c... |
Python | Working with buttons in Kivy with .kv file | 25 Jun, 2019
Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
The Button is a Label with associated actions that are triggered when t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 264,
"s": 28,
"text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it doe... |
What does intern() method in java? | The intern() method of the String method returns a canonical representation for the string object. A pool of strings, initially empty, is maintained privately by the class String.
For any two strings s and t, s.intern() == t.intern() is true if and only if s.equals(t) is true.
All literal strings and string-valued cons... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "The intern() method of the String method returns a canonical representation for the string object. A pool of strings, initially empty, is maintained privately by the class String."
},
{
"code": null,
"e": 1340,
"s": 1242,
"text": "Fo... |
Find the value of ln(N!) using Recursion - GeeksforGeeks | 14 May, 2021
Given a number N, the task is to find the log value of the factorial of N i.e. log(N!).Note: ln means log with base e.Examples:
Input: N = 2
Output: 0.693147
Input: N = 3
Output: 1.791759
Approach:Method -1: Calculate n! first, then take its log value.Method -2: By using the property of log, i.e. tak... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 26093,
"s": 25963,
"text": "Given a number N, the task is to find the log value of the factorial of N i.e. log(N!).Note: ln means log with base e.Examples: "
},
{
"code": null,
"... |
What are the different types of classes in Java? | Any normal class which does not have any abstract method or a class that has an implementation of all the methods of its parent class or interface and its own methods is a concrete class.
Live Demo
public class Concrete { // Concrete Class
static int product(int a, int b) {
return a * b;
}
public static ... | [
{
"code": null,
"e": 1250,
"s": 1062,
"text": "Any normal class which does not have any abstract method or a class that has an implementation of all the methods of its parent class or interface and its own methods is a concrete class."
},
{
"code": null,
"e": 1260,
"s": 1250,
"te... |
How can MySQL COALESCE() function be used with MySQL SUM() function to customize the output? | When MySQL SUM() function got a column, having no values, an argument then it will return NULL, rather than 0, as output. But if we want to customize this output to show 0 as output then we can use MySQL COALESCE() function which accepts two arguments and returns the second argument if the first argument is NULL, other... | [
{
"code": null,
"e": 1509,
"s": 1062,
"text": "When MySQL SUM() function got a column, having no values, an argument then it will return NULL, rather than 0, as output. But if we want to customize this output to show 0 as output then we can use MySQL COALESCE() function which accepts two arguments a... |
Chef - ChefSpec | Test Driven Development (TDD) is a way to write unit test before writing any actual recipe code. The test should be real and should validate what a recipe does. It should actually fail as there was no recipe developed. Once the recipe is developed, the test should pass.
ChefSpec is built on the popular RSpec framework ... | [
{
"code": null,
"e": 2651,
"s": 2380,
"text": "Test Driven Development (TDD) is a way to write unit test before writing any actual recipe code. The test should be real and should validate what a recipe does. It should actually fail as there was no recipe developed. Once the recipe is developed, the ... |
Attention in computer vision | by Javier Fernandez | Towards Data Science | Ever since the introduction of Transformer in the work “Attention is all you need”, there has been a transition in the field of NLP towards replacing Recurrent Neural Networks (RNN) with attention-based networks. In current literature, there are already many great articles that describe this method. Here are two of the... | [
{
"code": null,
"e": 591,
"s": 171,
"text": "Ever since the introduction of Transformer in the work “Attention is all you need”, there has been a transition in the field of NLP towards replacing Recurrent Neural Networks (RNN) with attention-based networks. In current literature, there are already m... |
How to splice duplicate item in array JavaScript | We have an array of Number / String literals that contain some duplicate values, we have to
remove these values from the array without creating a new array or storing the duplicate values
anywhere else.
We will use the Array.prototype.splice() method to remove entries inplace, and we will take help
of Array.prototype.i... | [
{
"code": null,
"e": 1265,
"s": 1062,
"text": "We have an array of Number / String literals that contain some duplicate values, we have to\nremove these values from the array without creating a new array or storing the duplicate values\nanywhere else."
},
{
"code": null,
"e": 1475,
"... |
Ngx-Bootstrap - accordion | Accordion is a control to display collapsible panels and it is used to display information in limited space.
Displays collapsible content panels for presenting information in a limited amount of space.
accordion
accordion
closeOthers − boolean, if true expanding one item will close all others
closeOthers − boolean, if ... | [
{
"code": null,
"e": 2209,
"s": 2100,
"text": "Accordion is a control to display collapsible panels and it is used to display information in limited space."
},
{
"code": null,
"e": 2302,
"s": 2209,
"text": "Displays collapsible content panels for presenting information in a limit... |
Deploying Keras Deep Learning Models with Java | by Ben Weber | Towards Data Science | The Keras library provides an approachable interface to deep learning, making neural networks accessible to a broad audience. However, one of the challenges I’ve faced is transitioning from exploring models in Keras to productizing models. Keras is written in Python, and until recently had limited support outside of th... | [
{
"code": null,
"e": 664,
"s": 172,
"text": "The Keras library provides an approachable interface to deep learning, making neural networks accessible to a broad audience. However, one of the challenges I’ve faced is transitioning from exploring models in Keras to productizing models. Keras is writte... |
Program to calculate First and Follow sets of given grammar | 05 Nov, 2021
Before proceeding, it is highly recommended to be familiar with the basics in Syntax Analysis, LL(1) parsing, and the rules of calculating First and Follow sets of a grammar.
Introduction to Syntax AnalysisWhy First and Follow?FIRST Set in Syntax AnalysisFOLLOW Set in Syntax Analysis
Introduction to Synta... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 228,
"s": 52,
"text": "Before proceeding, it is highly recommended to be familiar with the basics in Syntax Analysis, LL(1) parsing, and the rules of calculating First and Follow sets of a grammar.... |
Number of distinct subsets of a set | 07 Apr, 2021
Given an array of n distinct elements, count total number of subsets.Examples:
Input : {1, 2, 3}
Output : 8
Explanation
the array contain total 3 element.its subset
are {}, {1}, {2}, {3}, {1, 2}, {2, 3}, {3, 1}, {1, 2, 3}.
so the output is 8..
We know number of subsets of set of size n is 2n How does ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 134,
"s": 53,
"text": "Given an array of n distinct elements, count total number of subsets.Examples: "
},
{
"code": null,
"e": 300,
"s": 134,
"text": "Input : {1, 2, 3}\nOutpu... |
Processing time with Pandas DataFrame | 07 Jan, 2022
Pandas was created with regards to financial modeling, so as you may expect, it contains a genuinely ample number of tools for working with dates and times. Sometimes the given format of the date and time in our dataset cannot be directly used for analysis, so we pre-process these time values to obtain fea... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jan, 2022"
},
{
"code": null,
"e": 393,
"s": 28,
"text": "Pandas was created with regards to financial modeling, so as you may expect, it contains a genuinely ample number of tools for working with dates and times. Sometimes the give... |
k-th missing element in sorted array | 10 Jun, 2022
Given an increasing sequence a[], we need to find the K-th missing contiguous element in the increasing sequence which is not present in the sequence. If no k-th missing element is there output -1.
Examples :
Input : a[] = {2, 3, 5, 9, 10};
k = 1;
Output : 1
Explanation: Missing Element in the... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jun, 2022"
},
{
"code": null,
"e": 253,
"s": 54,
"text": "Given an increasing sequence a[], we need to find the K-th missing contiguous element in the increasing sequence which is not present in the sequence. If no k-th missing elem... |
Hypothesis Testing in R Programming | 22 Jun, 2020
A hypothesis is made by the researchers about the data collected for any experiment or data set. A hypothesis is an assumption made by the researchers that are not mandatory true. In simple words, a hypothesis is a decision taken by the researchers based on the data of the population collected. Hypothesis ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 909,
"s": 28,
"text": "A hypothesis is made by the researchers about the data collected for any experiment or data set. A hypothesis is an assumption made by the researchers that are not mandatory t... |
CSS | border-inline-style Property | 18 Mar, 2020
The border-inline-style property is an inbuilt property in CSS which is used to set the individual logical block inline-border-style property values in a single place in the style sheet. It sets the inline border-style top(left), and bottom(right) of the defining border element.
Syntax:
border-inline-style... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Mar, 2020"
},
{
"code": null,
"e": 308,
"s": 28,
"text": "The border-inline-style property is an inbuilt property in CSS which is used to set the individual logical block inline-border-style property values in a single place in the s... |
Color game using Tkinter in Python | 16 Jul, 2020
Prerequisite : Python GUI Tkinter
TKinter is widely used for developing GUI applications. Along with applications, we can also use Tkinter GUI to develop games.
Let’s try to make a game using Tkinter. In this game player has to enter color of the word that appears on the screen and hence the score increase... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Jul, 2020"
},
{
"code": null,
"e": 87,
"s": 53,
"text": "Prerequisite : Python GUI Tkinter"
},
{
"code": null,
"e": 214,
"s": 87,
"text": "TKinter is widely used for developing GUI applications. Along with applic... |
HashMap size() Method in Java | 26 Nov, 2018
The java.util.HashMap.size() method of HashMap class is used to get the size of the map which refers to the number of the key-value pair or mappings in the Map.
Syntax:
Hash_Map.size()
Parameters: The method does not take any parameters.
Return Value: The method returns the size of the map which also means... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 214,
"s": 53,
"text": "The java.util.HashMap.size() method of HashMap class is used to get the size of the map which refers to the number of the key-value pair or mappings in the Map."
},
{
... |
Check if a given string is a valid number (Integer or Floating Point) | SET 1(Basic approach) | 10 Oct, 2019
Validate if a given string is numeric.
Examples:
Input : str = "11.5"
Output : true
Input : str = "abc"
Output : false
Input : str = "2e10"
Output : true
Input : 10e5.4
Output : false
The following cases need to be handled in the code.
Ignore the leading and trailing white spaces.Ignore the ‘+’, ‘-‘ an... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Oct, 2019"
},
{
"code": null,
"e": 93,
"s": 54,
"text": "Validate if a given string is numeric."
},
{
"code": null,
"e": 103,
"s": 93,
"text": "Examples:"
},
{
"code": null,
"e": 242,
"s": 103,
... |
Use enumerate() and zip() together in Python | 28 Nov, 2021
In this article, we will discuss how to use enumerate() and zip() functions in python.
Python enumerate() is used to convert into a list of tuples using the list() method.
Syntax:
enumerate(iterable, start=0)
Parameters:
Iterable: any object that supports iteration
Start: the index value from which the cou... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 141,
"s": 54,
"text": "In this article, we will discuss how to use enumerate() and zip() functions in python."
},
{
"code": null,
"e": 226,
"s": 141,
"text": "Python enumerate()... |
Spirally traversing a matrix | Practice | GeeksforGeeks | Given a matrix of size r*c. Traverse the matrix in spiral form.
Example 1:
Input:
r = 4, c = 4
matrix[][] = {{1, 2, 3, 4},
{5, 6, 7, 8},
{9, 10, 11, 12},
{13, 14, 15,16}}
Output:
1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10
Explanation:
Example 2:
Input:
r = 3, c = 4
matrix[][] = {{1, 2, ... | [
{
"code": null,
"e": 302,
"s": 238,
"text": "Given a matrix of size r*c. Traverse the matrix in spiral form."
},
{
"code": null,
"e": 313,
"s": 302,
"text": "Example 1:"
},
{
"code": null,
"e": 504,
"s": 313,
"text": "Input:\nr = 4, c = 4\nmatrix[][] = {{1, 2,... |
Python Pandas – Display all the column names in a DataFrame | To display only the column names in a DataFrame, use dataframe.columns.
Import the required library with an alias −
import pandas as pd;
Following is the DataFrame −
dataFrame = pd.DataFrame(
{
"Car": ['BMW', 'Audi', 'BMW', 'Lexus', 'Tesla', 'Lexus', 'Mustang'],"Place": ['Delhi','Bangalore','Hyderabad','Chandi... | [
{
"code": null,
"e": 1259,
"s": 1187,
"text": "To display only the column names in a DataFrame, use dataframe.columns."
},
{
"code": null,
"e": 1303,
"s": 1259,
"text": "Import the required library with an alias −"
},
{
"code": null,
"e": 1324,
"s": 1303,
"tex... |
POST method – Python requests | 22 Sep, 2021
Requests library is one of the important aspects of Python for making HTTP requests to a specified URL. This article revolves around how one can make POST request to a specified URL using requests.post() method. Before checking out the POST method, let’s figure out what a POST request is –
POST is a requ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Sep, 2021"
},
{
"code": null,
"e": 321,
"s": 28,
"text": "Requests library is one of the important aspects of Python for making HTTP requests to a specified URL. This article revolves around how one can make POST request to a specifi... |
Mounting a Volume Inside Docker Container | 31 Oct, 2020
When you are working on a micro-service architecture using Docker Containers, you create multiple Docker Containers to create and test different components of your application. Now, some of those components might require sharing files and directories. If you copy the same files in all the Containers separa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Oct, 2020"
},
{
"code": null,
"e": 523,
"s": 28,
"text": "When you are working on a micro-service architecture using Docker Containers, you create multiple Docker Containers to create and test different components of your application... |
Hospital Management System in C++ | 18 Jan, 2021
In this article, a C++ program is discussed to manage the Hospital Management System. Given data of Hospitals with the name of hospital, contact and doctors and patients below are the functionalities that needed to be implemented:
Functions Supported:
Print Hospital DATA
Print Patients data
SORT BY Beds Pr... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 283,
"s": 52,
"text": "In this article, a C++ program is discussed to manage the Hospital Management System. Given data of Hospitals with the name of hospital, contact and doctors and patients belo... |
How to sort a Scala Map by key | 13 Aug, 2019
Map is same as dictionary which holds key:value pairs. In this article, we will learn how to sort a Scala Map by key. We can sort the map by key, from low to high or high to low, using sortBy.Syntax :
mapName.toSeq.sortBy(_._1):_*
Let’s try to understand it with better example.Example #1:
// Scala program ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Aug, 2019"
},
{
"code": null,
"e": 229,
"s": 28,
"text": "Map is same as dictionary which holds key:value pairs. In this article, we will learn how to sort a Scala Map by key. We can sort the map by key, from low to high or high to l... |
R – Repeat loop | 21 Apr, 2020
Repeat loop in R is used to iterate over a block of code multiple number of times. And also it executes the same code again and again until a break statement is found.
Repeat loop, unlike other loops, doesn’t use a condition to exit the loop instead it looks for a break statement that executes if a conditi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 196,
"s": 28,
"text": "Repeat loop in R is used to iterate over a block of code multiple number of times. And also it executes the same code again and again until a break statement is found."
},
... |
Python Program to convert List of Integer to List of String | 23 Jan, 2020
Given a List of Integers. The task is to convert them to List of Strings.
Examples:
Input: [1, 12, 15, 21, 131]
Output: ['1', '12', '15', '21', '131']
Input: [0, 1, 11, 15, 58]
Output: ['0', '1', '11', '15', '58']
Method 1: Using map()
# Python code to convert list of # string into sorted list of integer... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 Jan, 2020"
},
{
"code": null,
"e": 127,
"s": 53,
"text": "Given a List of Integers. The task is to convert them to List of Strings."
},
{
"code": null,
"e": 137,
"s": 127,
"text": "Examples:"
},
{
"code":... |
How to Remove the Legend in Matplotlib? | 01 Feb, 2021
Matplotlib is one of the most popular data visualization libraries present in Python. Using this matplotlib library, if we want to visualize more than a single variable, we might want to explain what each variable represents. For this purpose, there is a function called legend() present in matplotlib libra... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 422,
"s": 28,
"text": "Matplotlib is one of the most popular data visualization libraries present in Python. Using this matplotlib library, if we want to visualize more than a single variable, we mi... |
File mkdir() method in Java with examples | 28 Jan, 2019
The mkdir() method is a part of File class. The mkdir() function is used to create a new directory denoted by the abstract pathname. The function returns true if directory is created else returns false.
Function Signature:
public boolean mkdir()
Syntax:
file.mkdir()
Parameters: This method do not accepts a... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 256,
"s": 53,
"text": "The mkdir() method is a part of File class. The mkdir() function is used to create a new directory denoted by the abstract pathname. The function returns true if directory is... |
Getting frequency counts of a columns in Pandas DataFrame | 28 Dec, 2018
Given a Pandas dataframe, we need to find the frequency counts of each item in one or more columns of this dataframe. This can be achieved in multiple ways:
Method #1: Using Series.value_counts()
This method is applicable to pandas.Series object. Since each DataFrame object is a collection of Series object... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Dec, 2018"
},
{
"code": null,
"e": 185,
"s": 28,
"text": "Given a Pandas dataframe, we need to find the frequency counts of each item in one or more columns of this dataframe. This can be achieved in multiple ways:"
},
{
"cod... |
Flatten BST to sorted list | Decreasing order | 10 Nov, 2021
Given a binary search tree, the task is to flatten it to a sorted list in decreasing order. Precisely, the value of each node must be greater than the values of all the nodes at its right, and its left node must be NULL after flattening. We must do it in O(H) extra space where ‘H’ is the height of BST.
Exa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 332,
"s": 28,
"text": "Given a binary search tree, the task is to flatten it to a sorted list in decreasing order. Precisely, the value of each node must be greater than the values of all the nodes ... |
C++ Program to Find All Roots of a Quadratic Equation | A quadratic equation is in the form ax2 + bx + c. The roots of the quadratic equation are given by the following formula −
There are three cases −
b2 < 4*a*c - The roots are not real i.e. they are complex
b2 = 4*a*c - The roots are real and both roots are the same.
b2 > 4*a*c - The roots are real and both roots are dif... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "A quadratic equation is in the form ax2 + bx + c. The roots of the quadratic equation are given by the following formula −"
},
{
"code": null,
"e": 1209,
"s": 1185,
"text": "There are three cases −"
},
{
"code": null,
"e"... |
How to Read Text File Into List in Python? - GeeksforGeeks | 19 Dec, 2021
In this article, we are going to see how to read text files into lists in Python.
File for demonstration:
We open the file in reading mode, then read all the text using the read() and store it into a variable called data. after that we replace the end of the line(‘/n’) with ‘ ‘ and split the text further w... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n19 Dec, 2021"
},
{
"code": null,
"e": 23983,
"s": 23901,
"text": "In this article, we are going to see how to read text files into lists in Python."
},
{
"code": null,
"e": 24007,
"s": 23983,
"text": "File for... |
Plotly - Box Plot Violin Plot and Contour Plot | This chapter focusses on detail understanding about various plots including box plot, violin plot, contour plot and quiver plot. Initially, we will begin with the Box Plot follow.
A box plot displays a summary of a set of data containing the minimum, first quartile, median, third quartile, and maximum. In a box plot, w... | [
{
"code": null,
"e": 2540,
"s": 2360,
"text": "This chapter focusses on detail understanding about various plots including box plot, violin plot, contour plot and quiver plot. Initially, we will begin with the Box Plot follow."
},
{
"code": null,
"e": 3037,
"s": 2540,
"text": "A ... |
Shuffle or Randomize a list in Java | To shuffle a list in Java, the code is as follows −
Live Demo
import java.util.*;
public class Demo{
public static void main(String[] args){
ArrayList<String> my_list = new ArrayList<String>();
my_list.add("Hello");
my_list.add(",");
my_list.add("this");
my_list.add("is");
my_lis... | [
{
"code": null,
"e": 1114,
"s": 1062,
"text": "To shuffle a list in Java, the code is as follows −"
},
{
"code": null,
"e": 1125,
"s": 1114,
"text": " Live Demo"
},
{
"code": null,
"e": 1599,
"s": 1125,
"text": "import java.util.*;\npublic class Demo{\n publ... |
How to create an empty DataFrame in R ? - GeeksforGeeks | 07 Apr, 2021
In this article, we are going to see how to create an empty DataFrame in R Programming Language. An empty data frame corresponds to the tabular structure where the axes are of length 0, that is it does not contain any data items.
Method 1: We first create a matrix with both rows and columns and then conver... | [
{
"code": null,
"e": 24303,
"s": 24275,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 24533,
"s": 24303,
"text": "In this article, we are going to see how to create an empty DataFrame in R Programming Language. An empty data frame corresponds to the tabular structure where the... |
C# | Get object at the top of the Stack - Peek operation - GeeksforGeeks | 01 Feb, 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is called pushing the item and when you remove it, it is called popping the item. Stack<T>.Peek Method is used to returns the object at the top of ... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24677,
"s": 24302,
"text": "Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is ... |
Level of a Node in Binary Tree | Practice | GeeksforGeeks | Given a Binary Tree and a target key you need to find the level of target key in the given Binary Tree.
Note: The level of the root node is 1.
3
/ \
2 5
/ \
1 4
Key: 4
Level: 3
Note: if no such key exists then return 0.
Example 1:
Input:
1
/ \
2 ... | [
{
"code": null,
"e": 342,
"s": 238,
"text": "Given a Binary Tree and a target key you need to find the level of target key in the given Binary Tree."
},
{
"code": null,
"e": 381,
"s": 342,
"text": "Note: The level of the root node is 1."
},
{
"code": null,
"e": 468,
... |
How to concatenate column values and create a new column in an R data frame? | Sometimes we want to combine column values of two columns to create a new column. This is mostly used when we have a unique column that maybe combined with a numerical or any other type of column. Also, we can do this by separating the column values that is going to be created with difference characters. And it can be ... | [
{
"code": null,
"e": 1420,
"s": 1062,
"text": "Sometimes we want to combine column values of two columns to create a new column. This is mostly used when we have a unique column that maybe combined with a numerical or any other type of column. Also, we can do this by separating the column values tha... |
Find the player who will win the Coin game - GeeksforGeeks | 06 Apr, 2022
Given N coins, the task is to find who win the coin game.Coin game is a game in which each player picks coins from the given N coins in such a way that he can pick coins ranging from 1 to 5 coins in one turn and the game continues for both the players. The player who picks the last coin loses the game.Exam... | [
{
"code": null,
"e": 25204,
"s": 25176,
"text": "\n06 Apr, 2022"
},
{
"code": null,
"e": 25518,
"s": 25204,
"text": "Given N coins, the task is to find who win the coin game.Coin game is a game in which each player picks coins from the given N coins in such a way that he can pick... |
Can we override only one method while implementing Java interface? | An interface in Java is a specification of method prototypes. Whenever you need to guide the programmer or, make a contract specifying how the methods and fields of a type should be you can define an interface.
To create an object of this type you need to implement this interface, provide body for all the abstract meth... | [
{
"code": null,
"e": 1273,
"s": 1062,
"text": "An interface in Java is a specification of method prototypes. Whenever you need to guide the programmer or, make a contract specifying how the methods and fields of a type should be you can define an interface."
},
{
"code": null,
"e": 1452,... |
Pandas read_csv - Read CSV file in Pandas and prepare Dataframe - 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 will see how we can read... | [
{
"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,
... |
Java Program to get Milli seconds from Instant | Create an Instant and get an Instant using milliseconds passed as parameter from the epoch of 1970-01-
01T00:00:00Z. This is done using ofEpochMilli():
Instant instant = Instant.ofEpochMilli(342627282920l);
Now, get the Epoch milliseconds from Instant:
instant. toEpochMilli();
import java.time.Instant;
public class Dem... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "Create an Instant and get an Instant using milliseconds passed as parameter from the epoch of 1970-01-\n01T00:00:00Z. This is done using ofEpochMilli():"
},
{
"code": null,
"e": 1269,
"s": 1214,
"text": "Instant instant = Instant.ofE... |
Tryit Editor v3.7 | Tryit: Bad background image for page | [] |
Powershell - Rename File | Rename-Item cmdlet is used to rename a File by passing the path of the file to be renamed and target name.
In this example, we'll rename a folder D:\Temp\Test\test.txt to test1.txt
Type the following command in PowerShell ISE Console
Rename-Item D:\temp\Test\test.txt test1.txt
You can see the test.txt renamed to test1.... | [
{
"code": null,
"e": 2141,
"s": 2034,
"text": "Rename-Item cmdlet is used to rename a File by passing the path of the file to be renamed and target name."
},
{
"code": null,
"e": 2215,
"s": 2141,
"text": "In this example, we'll rename a folder D:\\Temp\\Test\\test.txt to test1.tx... |
OpenCV - Adding Text | You can add text to an image using the method arrowedLine() of the imgproc class. Following is the syntax of this method.
putText(img, text, org, fontFace, fontScale, Scalar color, int thickness)
This method accepts the following parameters −
mat − A Mat object representing the image to which the text is to be added.
... | [
{
"code": null,
"e": 3126,
"s": 3004,
"text": "You can add text to an image using the method arrowedLine() of the imgproc class. Following is the syntax of this method."
},
{
"code": null,
"e": 3201,
"s": 3126,
"text": "putText(img, text, org, fontFace, fontScale, Scalar color, i... |
TensorFlow 2.4 on Apple Silicon M1: installation under Conda environment | by Fabrice Daniel | Towards Data Science | Updated Instructions for TensorFlow 2.4 alpha 3. See details at the end of the article.
—
The previous article was about the Machine Learning packages that works natively on Apple Silicon. I also explained how TensorFlow and scikit-learn can be installed on a Mac M1.
In this article ATF 2.4 stand for TensorFlow 2.4 for... | [
{
"code": null,
"e": 260,
"s": 172,
"text": "Updated Instructions for TensorFlow 2.4 alpha 3. See details at the end of the article."
},
{
"code": null,
"e": 262,
"s": 260,
"text": "—"
},
{
"code": null,
"e": 440,
"s": 262,
"text": "The previous article was ab... |
Predicting survivors of Titanic. Who will survive a shipwreck? We can... | by Dorian Lazar | Towards Data Science | RMS Titanic was a British passenger liner operated by the White Star Line that sank in the North Atlantic Ocean in the early morning hours of April 15, 1912, after striking an iceberg during her maiden voyage from Southampton to New York City. Of the estimated 2,224 passengers and crew aboard, more than 1,500 died, mak... | [
{
"code": null,
"e": 581,
"s": 172,
"text": "RMS Titanic was a British passenger liner operated by the White Star Line that sank in the North Atlantic Ocean in the early morning hours of April 15, 1912, after striking an iceberg during her maiden voyage from Southampton to New York City. Of the esti... |
DynamoDB - Create Table | Creating a table generally consists of spawning the table, naming it, establishing its primary key attributes, and setting attribute data types.
Utilize the GUI Console, Java, or another option to perform these tasks.
Create a table by accessing the console at https://console.aws.amazon.com/dynamodb. Then choose the “C... | [
{
"code": null,
"e": 2536,
"s": 2391,
"text": "Creating a table generally consists of spawning the table, naming it, establishing its primary key attributes, and setting attribute data types."
},
{
"code": null,
"e": 2609,
"s": 2536,
"text": "Utilize the GUI Console, Java, or ano... |
How to change the color of gridlines of a ggplot2 graph in R? | To change the color of gridlines of a ggplot2 graph in R, we can use theme function with
panel.grid.major and panel.grid.minor arguments where we can set the minor and major
gridlines color of the plot panel to desired color.
To understand how it can be done, check out the below Example.
Following snippet creates a sam... | [
{
"code": null,
"e": 1288,
"s": 1062,
"text": "To change the color of gridlines of a ggplot2 graph in R, we can use theme function with\npanel.grid.major and panel.grid.minor arguments where we can set the minor and major\ngridlines color of the plot panel to desired color."
},
{
"code": nul... |
Apply a Function over a List of elements in R Programming - lapply() Function - GeeksforGeeks | 16 Dec, 2021
lapply() function in R Programming Language is used to apply a function over a list of elements.
Syntax: lapply(list, func)
Parameters:
list: list of elements
func: operation to be applied
R
# R program to illustrate# lapply() function # Creating a matrixA = matrix(1:9, 3, 3) # Creating another matri... | [
{
"code": null,
"e": 25162,
"s": 25134,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 25260,
"s": 25162,
"text": "lapply() function in R Programming Language is used to apply a function over a list of elements. "
},
{
"code": null,
"e": 25287,
"s": 25260,
"... |
A Python Pandas Introduction to Excel Users | by Frank Andrade | Towards Data Science | Pandas is probably the best tool to do real-world data analysis in Python. It allows us to clean data, wrangle data, make visualizations, and more.
You can think of Pandas as a supercharged Microsoft Excel. Most of the tasks you can do in Excel can be done in Pandas too and vice versa. That said, there are many areas w... | [
{
"code": null,
"e": 320,
"s": 172,
"text": "Pandas is probably the best tool to do real-world data analysis in Python. It allows us to clean data, wrangle data, make visualizations, and more."
},
{
"code": null,
"e": 523,
"s": 320,
"text": "You can think of Pandas as a superchar... |
InfluxDB Data Retention. How to down-sample data and keep it for... | by Shawn Stafford | Towards Data Science | Time series data is often used by operations teams to investigate performance issues. Since we cannot anticipate the source of a performance issue ahead of time, we often err on the side of caution and collect as much data as possible as frequently as possible. This makes it easy to get a very granular picture of what ... | [
{
"code": null,
"e": 682,
"s": 171,
"text": "Time series data is often used by operations teams to investigate performance issues. Since we cannot anticipate the source of a performance issue ahead of time, we often err on the side of caution and collect as much data as possible as frequently as pos... |
Java Program to create DefaultTableModel from two dimensional array | The DefaultTableModel is an implementation of TableModel that uses a Vector of Vectors to store the cell value objects. At first create a two dimensional array for rows and columns −
DefaultTableModel tableModel = new DefaultTableModel(new Object[][] {
{ "India", "Asia" }, { "Canada", "North America" }, { "Singapore... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "The DefaultTableModel is an implementation of TableModel that uses a Vector of Vectors to store the cell value objects. At first create a two dimensional array for rows and columns −"
},
{
"code": null,
"e": 1565,
"s": 1245,
"text": ... |
Tolerance Stackups. And how to use Monte Carlo Simulations... | by Marguerite Siboni | Towards Data Science | Imagine you have 2 pucks that you want to fit tightly in an opening. If you just needed these three parts to fit together once, you could measure how tall the pucks were and then make your cut to that size and adjust it until it’s perfect. If you are trying to fit these three parts together a lot of times, that’s when ... | [
{
"code": null,
"e": 702,
"s": 172,
"text": "Imagine you have 2 pucks that you want to fit tightly in an opening. If you just needed these three parts to fit together once, you could measure how tall the pucks were and then make your cut to that size and adjust it until it’s perfect. If you are tryi... |
How do you test if a value is equal to NaN in Javascript? | The global NaN property in javascript is a value representing Not-A-Number. It is the returned value
When Math functions fail (Math.sqrt(-500))
When a function trying to parse a number fails (parseFloat("test"))
NaN compares unequal (via ==, !=, ===, and !==) to any other value, including to another NaN value.
To test ... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "The global NaN property in javascript is a value representing Not-A-Number. It is the returned value"
},
{
"code": null,
"e": 1206,
"s": 1163,
"text": "When Math functions fail (Math.sqrt(-500))"
},
{
"code": null,
"e": 1... |
\cal - Tex Command | \cal - turns on calligraphic mode; only affects uppercase letters and digits.
{ \cal ... }
\cal command turns on calligraphic mode; only affects uppercase letters and digits.
\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ
ABCDEFGHIJKLMNOPQRSTUVWXYZ
\cal 0123456789
0123456789
\cal abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqr... | [
{
"code": null,
"e": 8065,
"s": 7986,
"text": "\\cal - turns on calligraphic mode; only affects uppercase letters and digits."
},
{
"code": null,
"e": 8078,
"s": 8065,
"text": "{ \\cal ... }"
},
{
"code": null,
"e": 8162,
"s": 8078,
"text": "\\cal command tur... |
Minimum rotations to unlock a circular lock | 28 Apr, 2021
You are given a lock which is made up of n-different circular rings and each ring has 0-9 digit printed serially on it. Initially all n-rings together show a n-digit integer but there is particular code only which can open the lock. You can rotate each ring any number of time in either direction. You have ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 439,
"s": 52,
"text": "You are given a lock which is made up of n-different circular rings and each ring has 0-9 digit printed serially on it. Initially all n-rings together show a n-digit integer ... |
XOR of all subarray XORs | Set 1 | 08 Jul, 2022
Given an array of integers, we need to get the total XOR of all subarray XORs where subarray XOR can be obtained by XORing all elements of it.
Examples :
Input : arr[] = [3, 5, 2, 4, 6]
Output : 7
Total XOR of all subarray XORs is,
(3) ^ (5) ^ (2) ^ (4) ^ (6)
(3^5) ^ (5^2) ^ (2^4) ^ (4^6)
(3^5^2) ^ (5^2^4... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 197,
"s": 54,
"text": "Given an array of integers, we need to get the total XOR of all subarray XORs where subarray XOR can be obtained by XORing all elements of it."
},
{
"code": null,
... |
Creating an Alpine Docker Container | 31 Oct, 2020
Alpine is a Linux Distribution. Docker provides you with the low sized (only 5 MB) Alpine Linux Image. The Alpine Linux Docker Image has advantages over the Ubuntu Image because of its relatively lower size and it provides almost all the functionalities that an Ubuntu Image can. In this article, we will se... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Oct, 2020"
},
{
"code": null,
"e": 482,
"s": 28,
"text": "Alpine is a Linux Distribution. Docker provides you with the low sized (only 5 MB) Alpine Linux Image. The Alpine Linux Docker Image has advantages over the Ubuntu Image becau... |
JavaScript unescape() Function | 22 Nov, 2021
Prerequisite: JavaScript escape() Function
Below is the example of the unescape() function.
Example:<script> // Special character encoded with // escape function document.write(unescape("Geeks%20for%20Geeks%21%21%21")); document.write("<br>"); // Print encoded string using escape() function ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 71,
"s": 28,
"text": "Prerequisite: JavaScript escape() Function"
},
{
"code": null,
"e": 120,
"s": 71,
"text": "Below is the example of the unescape() function."
},
{
"c... |
Python | Pandas Dataframe.rank() | 17 Sep, 2018
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Pandas Dataframe.rank() method returns a rank of every respective index of a series passed. T... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Sep, 2018"
},
{
"code": null,
"e": 242,
"s": 28,
"text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp... |
turtle.setundobuffer() function in Python | 17 May, 2021
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This function is used to set or disable undobuffer. It takes the size parameter. If the si... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 May, 2021"
},
{
"code": null,
"e": 245,
"s": 28,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver... |
How to display multiple horizontal images in Bootstrap card ? | 12 Jul, 2019
Pre-requisite: Bootstrap Cards
Bootstrap cards provide a flexible and extensible content container with multiple variants and options such as styling the Tables, stacking multiple images horizontally/vertically, making the stacked contents responsive, etc. Cards include so many options for customizing thei... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jul, 2019"
},
{
"code": null,
"e": 59,
"s": 28,
"text": "Pre-requisite: Bootstrap Cards"
},
{
"code": null,
"e": 387,
"s": 59,
"text": "Bootstrap cards provide a flexible and extensible content container with mult... |
How to implement Google Login in your Web app with Firebase ? | 12 Jun, 2020
Firebase offers a great number of options to implement Login in your app. Some of which are:
Using Email.
Using Phone number.
Using Google.
Using Facebook etc.
The best part is you don’t have to worry about handling the login flow, Firebase takes care of it.
Approach:
First of all, create a Firebase projec... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n12 Jun, 2020"
},
{
"code": null,
"e": 145,
"s": 52,
"text": "Firebase offers a great number of options to implement Login in your app. Some of which are:"
},
{
"code": null,
"e": 158,
"s": 145,
"text": "Using Email.... |
Python | os.path.islink() method | 12 Jun, 2019
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub module of OS module in Python used for common path name manipulati... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2019"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin... |
How to Setup Sublime Text 3 for Python in Windows? | 01 Jun, 2020
Written by a Google engineer sublime text is a cross-platform IDE developed in C++ and Python. It has basic built-in support for Python. Sublime text is fast and you can customize this editor as per your need to create a full-fledged Python development environment. You can install packages such as debuggin... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 486,
"s": 54,
"text": "Written by a Google engineer sublime text is a cross-platform IDE developed in C++ and Python. It has basic built-in support for Python. Sublime text is fast and you can cust... |
Oracle DataBase – Grant Privileges to a User in SQL Command Line | 12 Jan, 2022
As we create a new user in the Oracle database, we first need to grant it the required privileges. After that only we can use that user to perform any task, provided that task comes under the role of privileges provided to it. This is illustrated below. For this article, we will be using the SQL Command-Li... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jan, 2022"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "As we create a new user in the Oracle database, we first need to grant it the required privileges. After that only we can use that user to perform any task, provided that task... |
How to Calculate IP Subnet Address with ipcalc Tool ? | 30 May, 2021
Subnetting is something you’ll have to deal with if you’re doing any kind of moderate to advanced networking. While some people can do the binary math in their heads to figure out the correct subnet-mask, others may find it difficult to calculate. For those people, Ipcalc is a Linux utility that may assist... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 441,
"s": 28,
"text": "Subnetting is something you’ll have to deal with if you’re doing any kind of moderate to advanced networking. While some people can do the binary math in their heads to figure... |
How to check if string contains only digits in Java | 05 Jul, 2022
Given string str, the task is to write a Java program to check whether a string contains only digits or not. If so, then print true, otherwise false.
Examples:
Input: str = “1234” Output: true Explanation: The given string contains only digits so that output is true.
Input: str = “GeeksforGeeks2020” Outp... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 203,
"s": 52,
"text": "Given string str, the task is to write a Java program to check whether a string contains only digits or not. If so, then print true, otherwise false. "
},
{
"code": n... |
JavaTuples setValue() method | 27 Aug, 2018
The setValue() method in org.javatuples is used to set the value in the LabelValueClassObject or KeyValueClassObject. This method can be used with only LabelValue class or KeyValue class of javatuples library. It returns another ClassObject with the value as the element passed as the parameter, and the key... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Aug, 2018"
},
{
"code": null,
"e": 376,
"s": 28,
"text": "The setValue() method in org.javatuples is used to set the value in the LabelValueClassObject or KeyValueClassObject. This method can be used with only LabelValue class or Key... |
Program to Subtract two 8 Bit numbers in 8051 Microprocessor | Now, in this section we will see how to subtract two 8-bit numbers using 8051 microcontroller. The register A (Accumulator) is used as one operand in the operations. There are seven registers R0 – R7 in different register banks. We can use any of them as second operand.
We are taking two number 73H and BDH at location ... | [
{
"code": null,
"e": 1333,
"s": 1062,
"text": "Now, in this section we will see how to subtract two 8-bit numbers using 8051 microcontroller. The register A (Accumulator) is used as one operand in the operations. There are seven registers R0 – R7 in different register banks. We can use any of them a... |
Python program maximum of three. | Given three number a b and c, our task is that we have to find the maximum element in among in given number.
Input: a = 2, b = 4, c = 3
Output: 4
Step 1: input three user input number.
Step2: Add three numbers to list.
Step 3: Using max() function to find the greatest number max(lst).
Step 4: And finally we will pri... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "Given three number a b and c, our task is that we have to find the maximum element in among in given number."
},
{
"code": null,
"e": 1210,
"s": 1171,
"text": "Input: a = 2, b = 4, c = 3\nOutput: 4 \n"
},
{
"code": null,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.