title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
jQuery UI | draggable() and droppable() methods - GeeksforGeeks | 27 Oct, 2021
jQuery UI is a mixture of methods and a set of user interface effects, widgets, interactions and themes which can be provided in the web page using jQuery methods. If you want to build up a powerful web application that includes various features such as dragging, dropping, date picker, tooltips, etc. then ... | [
{
"code": null,
"e": 26288,
"s": 26260,
"text": "\n27 Oct, 2021"
},
{
"code": null,
"e": 26731,
"s": 26288,
"text": "jQuery UI is a mixture of methods and a set of user interface effects, widgets, interactions and themes which can be provided in the web page using jQuery methods.... |
PHP | Loops - GeeksforGeeks | 09 Mar, 2018
Like any other language, loop in PHP is used to execute a statement or a block of statements, multiple times until and unless a specific condition is met. This helps the user to save both time and effort of writing the same code multiple times.
PHP supports four types of looping techniques;
for loopwhile l... | [
{
"code": null,
"e": 42164,
"s": 42136,
"text": "\n09 Mar, 2018"
},
{
"code": null,
"e": 42409,
"s": 42164,
"text": "Like any other language, loop in PHP is used to execute a statement or a block of statements, multiple times until and unless a specific condition is met. This hel... |
Most frequent word in an array of strings - GeeksforGeeks | 25 Feb, 2022
Given an array of words find the most occurring word in itExamples:
Input : arr[] = {"geeks", "for", "geeks", "a",
"portal", "to", "learn", "can",
"be", "computer", "science",
"zoom", "yup", "fire", "in",
"be", "data", "geeks"}
Output :... | [
{
"code": null,
"e": 26309,
"s": 26281,
"text": "\n25 Feb, 2022"
},
{
"code": null,
"e": 26379,
"s": 26309,
"text": "Given an array of words find the most occurring word in itExamples: "
},
{
"code": null,
"e": 26680,
"s": 26379,
"text": "Input : arr[] = {\"g... |
Python calendar module : formatmonth() method - GeeksforGeeks | 04 Dec, 2020
Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions.
class calendar.TextCalendar(firstwe... | [
{
"code": null,
"e": 26419,
"s": 26391,
"text": "\n04 Dec, 2020"
},
{
"code": null,
"e": 26691,
"s": 26419,
"text": "Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calenda... |
Matplotlib.axes.Axes.set_aspect() in Python - GeeksforGeeks | 19 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library.
The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute.#Sample ... | [
{
"code": null,
"e": 26095,
"s": 26067,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 26193,
"s": 26095,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library."
},
{
"code": null,
"e": 26407,
"s": 26193,
"... |
How to convert uppercase string to lowercase using PHP ? - GeeksforGeeks | 19 May, 2021
The best way to convert uppercase string to lowercase in PHP is by using the strtolower() function. It takes the string as the input and converts it’s all characters to the lower case and returns the string value.
Syntax:
string strtolower( $string )
Return value: It returns the string converted into lower... | [
{
"code": null,
"e": 32651,
"s": 32623,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 32865,
"s": 32651,
"text": "The best way to convert uppercase string to lowercase in PHP is by using the strtolower() function. It takes the string as the input and converts it’s all characte... |
Java Program for Number of pairs with maximum sum - GeeksforGeeks | 13 Jan, 2022
Given an array arr[], count number of pairs arr[i], arr[j] such that arr[i] + arr[j] is maximum and i < j.
Example :
Input : arr[] = {1, 1, 1, 2, 2, 2}
Output : 3
Explanation: The maximum possible pair
sum where i
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Met... | [
{
"code": null,
"e": 26041,
"s": 26013,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 26148,
"s": 26041,
"text": "Given an array arr[], count number of pairs arr[i], arr[j] such that arr[i] + arr[j] is maximum and i < j."
},
{
"code": null,
"e": 29593,
"s": 261... |
Windows Forensic Analysis - GeeksforGeeks | 28 Oct, 2021
When doing Windows Forensic Analysis, it can be quite overwhelming to see a large amount of data that one needs to collect, assuming you know what you are looking for. In case you don’t know what are you looking for, the entire process becomes twice as hard.
In this article we will be discussing following ... | [
{
"code": null,
"e": 25579,
"s": 25551,
"text": "\n28 Oct, 2021"
},
{
"code": null,
"e": 25838,
"s": 25579,
"text": "When doing Windows Forensic Analysis, it can be quite overwhelming to see a large amount of data that one needs to collect, assuming you know what you are looking ... |
Django Migrations | Python - GeeksforGeeks | 03 Jul, 2019
Prerequisite: Django Models
The class defined in product/models.py is the mere idea of what our database is going to look like but it didn’t create any table in the database. We can assume class Phone as conceptual schema. Before the creation of any table, if we try to access the table before creation, it ... | [
{
"code": null,
"e": 26165,
"s": 26137,
"text": "\n03 Jul, 2019"
},
{
"code": null,
"e": 26193,
"s": 26165,
"text": "Prerequisite: Django Models"
},
{
"code": null,
"e": 26503,
"s": 26193,
"text": "The class defined in product/models.py is the mere idea of wha... |
Python program to crawl a web page and get most frequent words | 18 Nov, 2021
The task is to count the most frequent words, which extracts data from dynamic sources.First, create a web crawler or scraper with the help of the requests module and a beautiful soup module, which will extract data from the web pages and store them in a list. There might be some undesired words or symbols... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Nov, 2021"
},
{
"code": null,
"e": 480,
"s": 54,
"text": "The task is to count the most frequent words, which extracts data from dynamic sources.First, create a web crawler or scraper with the help of the requests module and a beaut... |
Program to Convert Radian to Degree in C | If input is in radian convert it to degree else input will be in radian convert it to degree. There are formulas that can be used for this conversion.
Radian is the standard unit for measuring angles whereas the complete angle of circle is divided into 360 degree. Also, radian is the smaller value as 1 degree = 180 rad... | [
{
"code": null,
"e": 1338,
"s": 1187,
"text": "If input is in radian convert it to degree else input will be in radian convert it to degree. There are formulas that can be used for this conversion."
},
{
"code": null,
"e": 1513,
"s": 1338,
"text": "Radian is the standard unit for... |
CSS elevation Property | 01 Oct, 2020
The CSS elevation property is used to set the sound source on the vertical axis depending on the listener’s environment.
Syntax:
elevation: angle:
Parameters: This property accepts single value as mentioned above and described below:
angle: This parameter holds the angle of the source, where the sound is... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 149,
"s": 28,
"text": "The CSS elevation property is used to set the sound source on the vertical axis depending on the listener’s environment."
},
{
"code": null,
"e": 158,
"s": 149... |
FIRST Set in Syntax Analysis | 31 Jul, 2021
FIRST(X) for a grammar symbol X is the set of terminals that begin the strings derivable from X.
Rules to compute FIRST set:
If x is a terminal, then FIRST(x) = { ‘x’ }If x-> Є, is a production rule, then add Є to FIRST(x).If X->Y1 Y2 Y3....Yn is a production, FIRST(X) = FIRST(Y1)If FIRST(Y1) contains Є ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Jul, 2021"
},
{
"code": null,
"e": 152,
"s": 54,
"text": "FIRST(X) for a grammar symbol X is the set of terminals that begin the strings derivable from X. "
},
{
"code": null,
"e": 181,
"s": 152,
"text": "Rules t... |
Python | Pandas MultiIndex.from_arrays() | 24 Dec, 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 MultiIndex.from_arrays() function is used to convert arrays into MultiIndex. It is one... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Dec, 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... |
Java protected Keyword | ❮ Java Keywords
The Student subclass accesses a Person class with protected attributes:
class Person {
protected String fname = "John";
protected String lname = "Doe";
protected String email = "john@doe.com";
protected int age = 24;
}
class Student extends Person {
private int graduationYear = 2018;
publi... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 90,
"s": 18,
"text": "The Student subclass accesses a Person class with protected attributes:"
},
{
"code": null,
"e": 629,
"s": 90,
"text": "class Person {\n protected Str... |
Instanceof operator in JavaScript | The instance of operator tests whether the prototype property of a constructor appears anywhere in the prototype chain of an object. In a simpler languange, it tests if a variable is of a certain type. But it has a few caveats. Let us look at some examples.
Strings and numbers are primitive values, not objects and ther... | [
{
"code": null,
"e": 1320,
"s": 1062,
"text": "The instance of operator tests whether the prototype property of a constructor appears anywhere in the prototype chain of an object. In a simpler languange, it tests if a variable is of a certain type. But it has a few caveats. Let us look at some examp... |
How to build a wide-and-deep model using Keras in TensorFlow 2.0 | by Lak Lakshmanan | Towards Data Science | In TensorFlow 2.0, Keras has support for feature columns, opening up the ability to represent structured data using standard feature engineering techniques like embedding, bucketizing, and feature crosses. In this article, I will first show you a simple example of using the Functional API to build a model that uses fea... | [
{
"code": null,
"e": 577,
"s": 172,
"text": "In TensorFlow 2.0, Keras has support for feature columns, opening up the ability to represent structured data using standard feature engineering techniques like embedding, bucketizing, and feature crosses. In this article, I will first show you a simple e... |
Concat a field in MySQL SELECT? | To concat a field in MySQL SELECT, use the CONCAT() function as shown in the below syntax.
SELECT CONCAT(yourColumnName1,’anyConcatenationString’),CONCAT(yourColumnName2,’anyC
oncatenationString’),....N from yourTableName;
To understand the above syntax, let us first create a table. The query to create a table is as... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "To concat a field in MySQL SELECT, use the CONCAT() function as shown in the below syntax."
},
{
"code": null,
"e": 1288,
"s": 1153,
"text": "SELECT CONCAT(yourColumnName1,’anyConcatenationString’),CONCAT(yourColumnName2,’anyC\n on... |
Python | Stack using Doubly Linked List - GeeksforGeeks | 30 Dec, 2020
A stack is a collection of objects that are inserted and removed using Last in First out Principle(LIFO). User can insert elements into the stack, and can only access or remove the recently inserted object on top of the stack. The main advantage of using LinkedList over array for implementing stack is the ... | [
{
"code": null,
"e": 26315,
"s": 26287,
"text": "\n30 Dec, 2020"
},
{
"code": null,
"e": 26810,
"s": 26315,
"text": "A stack is a collection of objects that are inserted and removed using Last in First out Principle(LIFO). User can insert elements into the stack, and can only acc... |
How to call a stored procedure using select statement in MySQL? | In MySQL, it is not possible to use select from procedure in FROM clause. You can use CALL command and after that the SELECT statement can be executed.
Let us first create a table:
mysql> create table DemoTable2
-> (
-> CustomerId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> CustomerName varchar(100),
-> Shi... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "In MySQL, it is not possible to use select from procedure in FROM clause. You can use CALL command and after that the SELECT statement can be executed."
},
{
"code": null,
"e": 1243,
"s": 1214,
"text": "Let us first create a table:"
... |
Angular 10 I18nPluralPipe API - GeeksforGeeks | 04 Aug, 2021
In this article, we are going to see what is I18nPluralPipe in Angular 10 and how to use it. The I18nPluralPipe is a map that takes a string value that pluralizes according to given rules.
Syntax:
{{ value | i18nPlural : map [ : rule]}}
NgModule: Module used by I18nPluralPipe is:
CommonModule
Approach:
C... | [
{
"code": null,
"e": 25109,
"s": 25081,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 25298,
"s": 25109,
"text": "In this article, we are going to see what is I18nPluralPipe in Angular 10 and how to use it. The I18nPluralPipe is a map that takes a string value that pluralizes ... |
Continuous Integration - Version Control | Version control systems, also known as source control, source code management systems, or revision control systems, are a mechanism for keeping multiple versions of your files, so that when you modify a file you can still access the previous revisions.
The first popular version control system was a proprietary UNIX too... | [
{
"code": null,
"e": 2239,
"s": 1986,
"text": "Version control systems, also known as source control, source code management systems, or revision control systems, are a mechanism for keeping multiple versions of your files, so that when you modify a file you can still access the previous revisions."... |
Shortest Common Supersequence | Practice | GeeksforGeeks | Given two strings X and Y of lengths m and n respectively, find the length of the smallest string which has both, X and Y as its sub-sequences.
Note: X and Y can have both uppercase and lowercase letters.
Example 1
Input:
X = abcd, Y = xycd
Output: 6
Explanation: Shortest Common Supersequence
would be abxycd which is o... | [
{
"code": null,
"e": 443,
"s": 238,
"text": "Given two strings X and Y of lengths m and n respectively, find the length of the smallest string which has both, X and Y as its sub-sequences.\nNote: X and Y can have both uppercase and lowercase letters."
},
{
"code": null,
"e": 453,
"s"... |
Timeit in Python with Examples? | Python provides many ways to measure the time of execution for a piece of python code. One way is to use the python inbuilt time module and save the time before and after the execution of the program?
When some program is running, many processes also run in the background to make that code executable. The time module d... | [
{
"code": null,
"e": 1263,
"s": 1062,
"text": "Python provides many ways to measure the time of execution for a piece of python code. One way is to use the python inbuilt time module and save the time before and after the execution of the program?"
},
{
"code": null,
"e": 1525,
"s": ... |
How to horizontal align text content into center in HTML ? - GeeksforGeeks | 25 Dec, 2020
In this article, we will align the text content into center using HTML. We use align=”center” attribute to set the text content into center.
Syntax:
<element_name align="center"> Contents... <element_name>
The align=”center” attribute is used to set the text content into center.
Example 1:
HTML
<!DOCTYPE h... | [
{
"code": null,
"e": 25376,
"s": 25348,
"text": "\n25 Dec, 2020"
},
{
"code": null,
"e": 25517,
"s": 25376,
"text": "In this article, we will align the text content into center using HTML. We use align=”center” attribute to set the text content into center."
},
{
"code": ... |
HTML <textarea> cols Attribute | The cols attribute of the <textarea> element is used to set the width of the textarea. The cols set it and the width is visible under the textarea itself.
Following is the syntax −
<textarea cols="num">
Above, num is the width of the textarea. The default value is 20.
Let us now see an example to implement the cols att... | [
{
"code": null,
"e": 1217,
"s": 1062,
"text": "The cols attribute of the <textarea> element is used to set the width of the textarea. The cols set it and the width is visible under the textarea itself."
},
{
"code": null,
"e": 1243,
"s": 1217,
"text": "Following is the syntax −"
... |
How to select only numeric columns from an R data frame? | The easiest way to do it is by using select_if function of dplyr package but we can also do
it through lapply.
Using dplyr
> df <- data.frame(X1=1:10,X2=11:20,X3=21:30,X4=letters[1:10], X5=letters[11:20])
> df
X1 X2 X3 X4 X5
1 1 11 21 a k
2 2 12 22 b l
3 3 13 23 c m
4 4 14 24 d n
5 5 15 25 e o
6 6 16 26 f p
7 7 17 27 g... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "The easiest way to do it is by using select_if function of dplyr package but we can also do\nit through lapply."
},
{
"code": null,
"e": 1185,
"s": 1173,
"text": "Using dplyr"
},
{
"code": null,
"e": 1586,
"s": 1185,
... |
XML - Processing | This chapter describes the Processing Instructions (PIs). As defined by the XML 1.0 Recommendation,
Processing instructions (PIs) can be used to pass information to applications. PIs can appear anywhere in the document outside the markup. They can appear in the prolog, including the document type definition (DTD), in t... | [
{
"code": null,
"e": 2061,
"s": 1961,
"text": "This chapter describes the Processing Instructions (PIs). As defined by the XML 1.0 Recommendation,"
},
{
"code": null,
"e": 2320,
"s": 2061,
"text": "Processing instructions (PIs) can be used to pass information to applications. PIs... |
Containerize your whole Data Science Environment (or anything you want) with Docker-Compose | by Donny Hanz | Towards Data Science | In this article I want to explore with you how you can create a containerized data science environment or whatever other systems you might want, that you can quickly deploy to any machine running Docker, may it be your laptop or a cloud computer. The tool I want to demonstrate to you for that purpose is Docker-Compose,... | [
{
"code": null,
"e": 1214,
"s": 172,
"text": "In this article I want to explore with you how you can create a containerized data science environment or whatever other systems you might want, that you can quickly deploy to any machine running Docker, may it be your laptop or a cloud computer. The too... |
LINQ - ASP.Net | As a set of .NET framework extensions, LINQ is the preferred mechanism for data access by ASP.NET developers. ASP.NET 3.5 has a built-in tool LINQDataSource control that enables usage of LINQ easily in ASP.NET. ASP.NET uses the above-mentioned control as a data source. Real life projects mostly encompass websites or wi... | [
{
"code": null,
"e": 2217,
"s": 1736,
"text": "As a set of .NET framework extensions, LINQ is the preferred mechanism for data access by ASP.NET developers. ASP.NET 3.5 has a built-in tool LINQDataSource control that enables usage of LINQ easily in ASP.NET. ASP.NET uses the above-mentioned control a... |
HTM5 checkValidity() method | The HTML5 checkValidity() works in Google Chrome and Opera as well. This works as well:
<!DOCTYPE html>
<html>
<body>
<style>
.valid { color: #0B7866; }
.invalid { color: #0B6877; }
</style>
<div id="result"></div>
<script>
function check(input) {
var ou... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "The HTML5 checkValidity() works in Google Chrome and Opera as well. This works as well:"
},
{
"code": null,
"e": 2038,
"s": 1150,
"text": "<!DOCTYPE html>\n<html>\n <body>\n <style>\n .valid { color: #0B7866; }\n ... |
How to read a 2d array from a file in java? | A 2d array is an array of one dimensional arrays to read the contents of a file to a 2d array –
Instantiate Scanner or other relevant class to read data from a file.
Create an array to store the contents.
To copy contents, you need two loops one nested within the other. the outer loop is to traverse through the array ... | [
{
"code": null,
"e": 1158,
"s": 1062,
"text": "A 2d array is an array of one dimensional arrays to read the contents of a file to a 2d array –"
},
{
"code": null,
"e": 1228,
"s": 1158,
"text": "Instantiate Scanner or other relevant class to read data from a file."
},
{
"c... |
AtomicLong set() method in Java with examples - GeeksforGeeks | 29 Jan, 2019
The Java.util.concurrent.atomic.AtomicLong.set() is an inbuilt method in java that updates the previous value and sets it to a new value which is passed in the parameter.
Syntax:
public final void set(long newVal)
Parameters: The function accepts a single mandatory parameter newVal which is to be updated.... | [
{
"code": null,
"e": 24532,
"s": 24504,
"text": "\n29 Jan, 2019"
},
{
"code": null,
"e": 24703,
"s": 24532,
"text": "The Java.util.concurrent.atomic.AtomicLong.set() is an inbuilt method in java that updates the previous value and sets it to a new value which is passed in the par... |
Sieve of Eratosthenes | Practice | GeeksforGeeks | Given a number N, calculate the prime numbers up to N using Sieve of Eratosthenes.
Example 1:
Input:
N = 10
Output:
2 3 5 7
Explanation:
Prime numbers less than equal to N
are 2 3 5 and 7.
Example 2:
Input:
N = 35
Output:
2 3 5 7 11 13 17 19 23 29 31
Explanation:
Prime numbers less than equal to 35 are
2 3 5 7 1... | [
{
"code": null,
"e": 323,
"s": 238,
"text": "Given a number N, calculate the prime numbers up to N using Sieve of Eratosthenes. "
},
{
"code": null,
"e": 334,
"s": 323,
"text": "Example 1:"
},
{
"code": null,
"e": 432,
"s": 334,
"text": "Input:\nN = 10\n\nOut... |
How to traverse Hierarchical data in Oracle? | Problem Statement: You need to traverse the hierarchy data from top to bottom marking the level of each row in the hierarchy.
Solution:
Oracle provides CONNECT BY clause to specify a hierarchical query i.e. how to connect the parent nodes and child nodes and the PRIOR operator to define the join condition/s between the... | [
{
"code": null,
"e": 1188,
"s": 1062,
"text": "Problem Statement: You need to traverse the hierarchy data from top to bottom marking the level of each row in the hierarchy."
},
{
"code": null,
"e": 1198,
"s": 1188,
"text": "Solution:"
},
{
"code": null,
"e": 1490,
... |
Top 7 FREE Artificial Intelligence Courses from the Ivy League Universities | by Roman Orac | Towards Data Science | 1
2
3
4
5
6
7
8
9
10
Powered by Play.ht
Create audio with Play.ht
Powered by Play.ht
These days it feels like every week comes with a new AI course. With such volume, we need to be really selective with our time, energy and focus. A simple but effective strategy is to attend the courses from the best minds in the field... | [
{
"code": null,
"e": 174,
"s": 172,
"text": "1"
},
{
"code": null,
"e": 176,
"s": 174,
"text": "2"
},
{
"code": null,
"e": 178,
"s": 176,
"text": "3"
},
{
"code": null,
"e": 180,
"s": 178,
"text": "4"
},
{
"code": null,
"e": 182... |
Big Data Analytics - Summarizing Data | Reporting is very important in big data analytics. Every organization must have a regular provision of information to support its decision making process. This task is normally handled by data analysts with SQL and ETL (extract, transfer, and load) experience.
The team in charge of this task has the responsibility of s... | [
{
"code": null,
"e": 2815,
"s": 2554,
"text": "Reporting is very important in big data analytics. Every organization must have a regular provision of information to support its decision making process. This task is normally handled by data analysts with SQL and ETL (extract, transfer, and load) expe... |
Arithmetic Operations on Images using OpenCV | Set-1 (Addition and Subtraction) - GeeksforGeeks | 13 Dec, 2021
Arithmetic Operations like Addition, Subtraction, and Bitwise Operations(AND, OR, NOT, XOR) can be applied to the input images. These operations can be helpful in enhancing the properties of the input images. The Image arithmetics are important for analyzing the input image properties. The operated images ... | [
{
"code": null,
"e": 41552,
"s": 41524,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 42006,
"s": 41552,
"text": "Arithmetic Operations like Addition, Subtraction, and Bitwise Operations(AND, OR, NOT, XOR) can be applied to the input images. These operations can be helpful in ... |
How to Convert images to NumPy array? | 29 Aug, 2020
Images are an easier way to represent the working model. In Machine Learning, Python uses the image data in the format of Height, Width, Channel format. i.e. Images are converted into Numpy Array in Height, Width, Channel format.
NumPy: By default in higher versions of Python like 3.x onwards, NumPy is av... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 285,
"s": 54,
"text": "Images are an easier way to represent the working model. In Machine Learning, Python uses the image data in the format of Height, Width, Channel format. i.e. Images are conve... |
Puzzle 14 | (Strategy for a 2 Player Coin Game) | 30 May, 2022
Puzzle: Consider a two-player coin game where each Player A and Player B gets the turn one by one. There is a row of even number of coins, and a player on his/her turn can pick a coin from any of the two corners of the row. The player that collects coins with more value wins the game. Develop a strategy f... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 May, 2022"
},
{
"code": null,
"e": 652,
"s": 54,
"text": "Puzzle: Consider a two-player coin game where each Player A and Player B gets the turn one by one. There is a row of even number of coins, and a player on his/her turn can pi... |
Management Information System (MIS) | 10 Jul, 2022
Management Information System (MIS) is one of the five major Computer Based Information Systems (CBIS). Its purpose is to meet the general information needs of the managers in firm or organization. MIS is a computer based system that makes information available to users with similar needs. Management Infor... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jul, 2022"
},
{
"code": null,
"e": 495,
"s": 54,
"text": "Management Information System (MIS) is one of the five major Computer Based Information Systems (CBIS). Its purpose is to meet the general information needs of the managers i... |
How to create paper corner fold effect on hover by using HTML and CSS? | 30 Jun, 2021
The folding effect is quite attractive on the website, may you have seen on some websites when you hover on the paging layout it gets folded on the corner. The folding corner effect can be achieved by using HTML and CSS only. The below sections will guide you on how to create the animation. In this article... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 624,
"s": 28,
"text": "The folding effect is quite attractive on the website, may you have seen on some websites when you hover on the paging layout it gets folded on the corner. The folding corner ... |
Python nonlocal Keyword | 02 May, 2022
Python nonlocal keyword is used to reference a variable in the nearest scope. The nonlocal keyword won’t work on local or global variables and therefore must be used to reference variables in another scopes except the global and local one. The nonlocal keyword is used in nested functions to reference a var... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 May, 2022"
},
{
"code": null,
"e": 366,
"s": 28,
"text": "Python nonlocal keyword is used to reference a variable in the nearest scope. The nonlocal keyword won’t work on local or global variables and therefore must be used to refere... |
NumPy - Broadcasting | The term broadcasting refers to the ability of NumPy to treat arrays of different shapes during arithmetic operations. Arithmetic operations on arrays are usually done on corresponding elements. If two arrays are of exactly the same shape, then these operations are smoothly performed.
import numpy as np
a = np.array(... | [
{
"code": null,
"e": 2529,
"s": 2243,
"text": "The term broadcasting refers to the ability of NumPy to treat arrays of different shapes during arithmetic operations. Arithmetic operations on arrays are usually done on corresponding elements. If two arrays are of exactly the same shape, then these op... |
Find longest length number in a string in C++ | In this problem, we are given a string str consisting of character and alphabets only. Our task is to find the longest length number in a string.
Problem Description: we need to find the length of the number i.e. consecutive numerical characters in the string.
Let’s take an example to understand the problem,
Input: s... | [
{
"code": null,
"e": 1209,
"s": 1062,
"text": "In this problem, we are given a string str consisting of character and alphabets only. Our task is to find the longest length number in a string. "
},
{
"code": null,
"e": 1324,
"s": 1209,
"text": "Problem Description: we need to fin... |
psql - Unix, Linux Command | psql [ option... ] [ dbname
[ username ] ]
psql is a terminal-based front-end to
PostgreSQL. It enables you to type in
queries interactively, issue them to
PostgreSQL, and see the query results.
Alternatively, input can be from a file. In addition, it provides a
number of meta-commands and various shell-like feat... | [
{
"code": null,
"e": 10628,
"s": 10579,
"text": "\npsql [ option... ] [ dbname\n\n [ username ] ]\n"
},
{
"code": null,
"e": 10976,
"s": 10628,
"text": "\npsql is a terminal-based front-end to\nPostgreSQL. It enables you to type in\nqueries interactively, issue them to\nPostgre... |
Max and Min Products | Practice | GeeksforGeeks | Given a set, we need to find the maximum and minimum possible product among all subsets of the set.
Example 1:
Input :
arr[] = {1, 2, 3};
Output :
Maximum product = 6
Minimum product = 1
Explanation :
Maximum product is obtained by multiplying
2, 3
Minimum product is obtained by multiplying
1
Example 2:
Input :
ar... | [
{
"code": null,
"e": 338,
"s": 238,
"text": "Given a set, we need to find the maximum and minimum possible product among all subsets of the set."
},
{
"code": null,
"e": 350,
"s": 338,
"text": "\nExample 1:"
},
{
"code": null,
"e": 535,
"s": 350,
"text": "Inpu... |
\iff - Tex Command | \iff - Used to draw if and only if symbol.
{ \iff }
\iff command draws if and only if symbol.
\iff
⟺
\iff
⟺
\iff
14 Lectures
52 mins
Ashraf Said
11 Lectures
1 hours
Ashraf Said
9 Lectures
1 hours
Emenwa Global, Ejike IfeanyiChukwu
29 Lectures
2.5 hours
Moha... | [
{
"code": null,
"e": 8029,
"s": 7986,
"text": "\\iff - Used to draw if and only if symbol."
},
{
"code": null,
"e": 8038,
"s": 8029,
"text": "{ \\iff }"
},
{
"code": null,
"e": 8080,
"s": 8038,
"text": "\\iff command draws if and only if symbol."
},
{
... |
Create Inverted Navbar in Bootstrap | To create an inverted navbar with a black background and with white text, simply add the .navbar-inverse class to the .navbar class.
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="/scripts/jquery... | [
{
"code": null,
"e": 1195,
"s": 1062,
"text": "To create an inverted navbar with a black background and with white text, simply add the .navbar-inverse class to the .navbar class."
},
{
"code": null,
"e": 1206,
"s": 1195,
"text": " Live Demo"
},
{
"code": null,
"e": 2... |
How to compare pointers in C/C++? | We can compare pointers if they are pointing to the same array. Relational pointers can be used to compare two pointers. Pointers can’t be multiplied or divided.
Live Demo
#include <stdio.h>
int main() {
int *p2;
int *p1;
p2 = (int *)300;
p1 = (int *)200;
if(p1 > p2) {
printf("P1 is greater than p... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "We can compare pointers if they are pointing to the same array. Relational pointers can be used to compare two pointers. Pointers can’t be multiplied or divided."
},
{
"code": null,
"e": 1235,
"s": 1224,
"text": " Live Demo"
},
{... |
Matplotlib - Anaconda distribution | Anaconda is a free and open source distribution of the Python and R programming languages for large-scale data processing, predictive analytics, and scientific computing. The distribution makes package management and deployment simple and easy. Matplotlib and lots of other useful (data) science tools form part of the d... | [
{
"code": null,
"e": 3089,
"s": 2516,
"text": "Anaconda is a free and open source distribution of the Python and R programming languages for large-scale data processing, predictive analytics, and scientific computing. The distribution makes package management and deployment simple and easy. Matplotl... |
How to make a text bold and italic in JavaFX? | You can set the desired font to the text node in JavaFX using the setFont() method. This method accepts an object of the class javafx.scene.text.Font.
The Font class represents the fonts in JavaFX, this class provides several variants of a method named font() as shown below −
font(double size)
font(String family)
font(... | [
{
"code": null,
"e": 1213,
"s": 1062,
"text": "You can set the desired font to the text node in JavaFX using the setFont() method. This method accepts an object of the class javafx.scene.text.Font."
},
{
"code": null,
"e": 1339,
"s": 1213,
"text": "The Font class represents the f... |
groupdel command in Linux with examples - GeeksforGeeks | 20 May, 2019
groupdel command is used to delete a existing group. It will delete all entry that refers to the group, modifies the system account files, and it is handled by superuser or root user.
Syntax:
groupdel [options] GROUP
Files:
/etc/group : It contains the account information of the Group.
/etc/gshadow : It co... | [
{
"code": null,
"e": 24406,
"s": 24378,
"text": "\n20 May, 2019"
},
{
"code": null,
"e": 24590,
"s": 24406,
"text": "groupdel command is used to delete a existing group. It will delete all entry that refers to the group, modifies the system account files, and it is handled by sup... |
How to do advanced analytics on graph data in Azure Cosmos DB | by René Bremer | Towards Data Science | Azure Cosmos DB is a fully managed multi-database service. It enables you to build highly responsive applications worldwide. As part of Cosmos DB, Gremlin is supported for graph databases. Since Cosmos DB is optimized for fast processing (OLTP), traversal limits may apply for heavy analytic workloads (OLAP). In that ca... | [
{
"code": null,
"e": 613,
"s": 171,
"text": "Azure Cosmos DB is a fully managed multi-database service. It enables you to build highly responsive applications worldwide. As part of Cosmos DB, Gremlin is supported for graph databases. Since Cosmos DB is optimized for fast processing (OLTP), traversal... |
AI with Python â Logic Programming | In this chapter, we will focus logic programming and how it helps in Artificial Intelligence.
We already know that logic is the study of principles of correct reasoning or in simple words it is the study of what comes after what. For example, if two statements are true then we can infer any third statement from it.
Log... | [
{
"code": null,
"e": 2299,
"s": 2205,
"text": "In this chapter, we will focus logic programming and how it helps in Artificial Intelligence."
},
{
"code": null,
"e": 2522,
"s": 2299,
"text": "We already know that logic is the study of principles of correct reasoning or in simple ... |
Linux Admin - MySQL Setup On CentOS 7 | As touched upon briefly when configuring CentOS for use with Maria DB, there is no native MySQL package in the CentOS 7 yum repository. To account for this, we will need to add a MySQL hosted repository.
One thing to note is MySQL will require a different set of base dependencies from MariaDB. Also using MySQL will bre... | [
{
"code": null,
"e": 2461,
"s": 2257,
"text": "As touched upon briefly when configuring CentOS for use with Maria DB, there is no native MySQL package in the CentOS 7 yum repository. To account for this, we will need to add a MySQL hosted repository."
},
{
"code": null,
"e": 2672,
"s... |
Basic CRUD (Create, Read, Update, Delete) in ASP.NET MVC Using C# and Entity Framework - GeeksforGeeks | 05 Jun, 2020
Prerequisites:
Download and Install Microsoft SQL Server Management Studio
Download and Setting Up Visual Studio Community Version
MVC stands for Model View Controller. It is a design pattern that is employed to separate the business logic, presentation logic, and data. Basically, it provides a pattern to ... | [
{
"code": null,
"e": 23727,
"s": 23699,
"text": "\n05 Jun, 2020"
},
{
"code": null,
"e": 23742,
"s": 23727,
"text": "Prerequisites:"
},
{
"code": null,
"e": 23802,
"s": 23742,
"text": "Download and Install Microsoft SQL Server Management Studio"
},
{
"... |
Autorun a Python script on windows startup - GeeksforGeeks | 14 Sep, 2021
Adding a Python script to windows start-up basically means the python script will run as the windows boots up. This can be done by two step process –
Step #1: Adding script to windows Startup folder After the windows boots up it runs (equivalent to double-clicking) all the application present in its startu... | [
{
"code": null,
"e": 24053,
"s": 24025,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 24203,
"s": 24053,
"text": "Adding a Python script to windows start-up basically means the python script will run as the windows boots up. This can be done by two step process –"
},
{
... |
How to Strip Outputs and Execute Interactive Code in a Python Script | by Khuyen Tran | Towards Data Science | Have you ever seen a tutorial with an interactive Python code like this:
...and wished to get only the code that can be executed like below?
It might be time-consuming to delete all >>> symbols and remove all outputs, especially when the code is long. Is there a way that you can get the clean inputs like above in one l... | [
{
"code": null,
"e": 245,
"s": 172,
"text": "Have you ever seen a tutorial with an interactive Python code like this:"
},
{
"code": null,
"e": 313,
"s": 245,
"text": "...and wished to get only the code that can be executed like below?"
},
{
"code": null,
"e": 505,
... |
C++ Program to Check Cycle in a Graph using Topological Sort | In a Directed Acyclic Graph, we can sort vertices in linear order using topological sort.
Topological sort is only work on Directed Acyclic Graph. In a Directed Acyclic Graph (DAG), there can be more than one topological sort.
We shall consider a C++ program, which will perform topological sort to check cycle in a grap... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "In a Directed Acyclic Graph, we can sort vertices in linear order using topological sort."
},
{
"code": null,
"e": 1289,
"s": 1152,
"text": "Topological sort is only work on Directed Acyclic Graph. In a Directed Acyclic Graph (DAG), ... |
Plotting regression and residual plot in Matplotlib | To establish a simple relationship between the observations of a given joint distribution of a variable, we can create the plot for the regression model using Seaborn.
To fit the dataset using the regression model, we have to first import the necessary libraries in Python.
We will create plots for each regression model... | [
{
"code": null,
"e": 1230,
"s": 1062,
"text": "To establish a simple relationship between the observations of a given joint distribution of a variable, we can create the plot for the regression model using Seaborn."
},
{
"code": null,
"e": 1336,
"s": 1230,
"text": "To fit the dat... |
Diagonal sum | Practice | GeeksforGeeks | Given a square matrix of size n×n. Your task is to calculate the sum of its diagonals.
Example 1:
Input: matrix = {{1, 1, 1},
{1, 1, 1}, {1, 1, 1}}
Output: 6
Example 2:
Input: matrix = {{1, 2}, {3, 4}}
Output: 10
Your Task:
You don't need to read or print anyhting. Your task is to complete the function DiagonalS... | [
{
"code": null,
"e": 327,
"s": 238,
"text": "Given a square matrix of size n×n. Your task is to calculate the sum of its diagonals.\n "
},
{
"code": null,
"e": 338,
"s": 327,
"text": "Example 1:"
},
{
"code": null,
"e": 400,
"s": 338,
"text": "Input: matrix = ... |
Dial's Algorithm (Optimized Dijkstra for small range weights) - GeeksforGeeks | 08 Apr, 2022
Dijkstra’s shortest path algorithm runs in O(Elog V) time when implemented with adjacency list representation (See C implementation and STL based C++ implementations for details).
Input : Source = 0, Maximum Weight W = 14
Output :
Vertex Distance from Source
0 0
1 ... | [
{
"code": null,
"e": 25092,
"s": 25064,
"text": "\n08 Apr, 2022"
},
{
"code": null,
"e": 25272,
"s": 25092,
"text": "Dijkstra’s shortest path algorithm runs in O(Elog V) time when implemented with adjacency list representation (See C implementation and STL based C++ implementatio... |
Count the NaN values in one or more columns in Pandas DataFrame - GeeksforGeeks | 17 Aug, 2020
Let us see how to count the total number of NaN values in one or more columns in a Pandas DataFrame. In order to count the NaN values in the DataFrame, we are required to assign a dictionary to the DataFrame and that dictionary should contain numpy.nan values which is a NaN(null) value.
Consider the follow... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n17 Aug, 2020"
},
{
"code": null,
"e": 24580,
"s": 24292,
"text": "Let us see how to count the total number of NaN values in one or more columns in a Pandas DataFrame. In order to count the NaN values in the DataFrame, we are requ... |
Nth natural number after removing all numbers consisting of the digit 9 - GeeksforGeeks | 13 Apr, 2022
Given a positive integer N, the task is to find the Nth natural number after removing all the natural numbers containing digit 9.
Examples:
Input: N = 8Output: 8Explanation:Since 9 is the first natural number that contains the digit 9 and is the 9th natural number, therefore, no removal required to find th... | [
{
"code": null,
"e": 24325,
"s": 24297,
"text": "\n13 Apr, 2022"
},
{
"code": null,
"e": 24455,
"s": 24325,
"text": "Given a positive integer N, the task is to find the Nth natural number after removing all the natural numbers containing digit 9."
},
{
"code": null,
"... |
Get Absolute path of a file in Java | The method java.io.File.getAbsolutePath() is used to obtain the absolute path of a file in the form of a string. This method requires no parameters.
A program that demonstrates this is given as follows −
Live Demo
import java.io.File;
public class Demo {
public static void main(String[] args) {
File file = ne... | [
{
"code": null,
"e": 1211,
"s": 1062,
"text": "The method java.io.File.getAbsolutePath() is used to obtain the absolute path of a file in the form of a string. This method requires no parameters."
},
{
"code": null,
"e": 1266,
"s": 1211,
"text": "A program that demonstrates this ... |
Can we declare interface members as private or protected in java8? | Interface in Java is similar to a class but, it contains only abstract methods and fields which are final and static.
Since all the methods are abstract you cannot instantiate it. To use it, you need to implement this interface using a class and provide body to all the abstract methods in it.
If the members of the inte... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "Interface in Java is similar to a class but, it contains only abstract methods and fields which are final and static."
},
{
"code": null,
"e": 1356,
"s": 1180,
"text": "Since all the methods are abstract you cannot instantiate it. To... |
if – Django Template Tags | 02 Dec, 2021
A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenience to rendering data in a template. Django templates not only allow passing data from view to template, but also provides some limited... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 679,
"s": 52,
"text": "A Django template is a text document or a Python string marked-up using the Django template language. Django being a powerful Batteries included framework provides convenienc... |
GATE | GATE CS 1997 | Question 14 | 19 Nov, 2018
The correct matching for the following pairs is
(A) DMA I/O (1) High speed RAM
(B) Cache (2) Disk
(C) Interrupt I/O (3) Printer
(D) Condition Code Register (4) ALU
Codes:
A B C D
a 4 3 1 2
b 2 1 3 4
c 4 3 2 1
d 2 ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 76,
"s": 28,
"text": "The correct matching for the following pairs is"
},
{
"code": null,
"e": 249,
"s": 76,
"text": "(A) DMA I/O (1) High speed RAM\n(B) Cache... |
UML - Quick Guide | UML is a standard language for specifying, visualizing, constructing, and documenting the
artifacts of software systems.
UML was created by the Object Management Group (OMG) and UML 1.0 specification draft was proposed to the OMG in January 1997.
OMG is continuously making efforts to create a truly industry standard.
U... | [
{
"code": null,
"e": 2209,
"s": 2088,
"text": "UML is a standard language for specifying, visualizing, constructing, and documenting the\nartifacts of software systems."
},
{
"code": null,
"e": 2335,
"s": 2209,
"text": "UML was created by the Object Management Group (OMG) and UML... |
Java Program to Print a given matrix in reverse spiral form | 10 Jan, 2022
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how to do the reverse printing. See the following examples.
Input:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Output:
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jan, 2022"
},
{
"code": null,
"e": 227,
"s": 28,
"text": "Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how to do the reverse printing. See th... |
Negative weight cycle | Practice | GeeksforGeeks | Given a weighted directed graph with n nodes and m edges. Nodes are labeled from 0 to n-1, the task is to check if it contains a negative weight cycle or not.
Note: edges[i] is defined as u, v and weight.
Example 1:
Input: n = 3, edges = {{0,1,-1},{1,2,-2},
{2,0,-3}}
Output: 1
Explanation: The graph contains negative... | [
{
"code": null,
"e": 445,
"s": 238,
"text": "Given a weighted directed graph with n nodes and m edges. Nodes are labeled from 0 to n-1, the task is to check if it contains a negative weight cycle or not.\nNote: edges[i] is defined as u, v and weight.\n "
},
{
"code": null,
"e": 456,
... |
JavaScript Math pow( ) Method | 09 Feb, 2022
Below is the example of the Math pow() Method.
Example:<script type="text/javascript"> document.write(Math.pow(3, 4));</script>
<script type="text/javascript"> document.write(Math.pow(3, 4));</script>
Output:81
81
The Math.pow() method is used to power of a number i.e., the value of number raised to ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Feb, 2022"
},
{
"code": null,
"e": 75,
"s": 28,
"text": "Below is the example of the Math pow() Method."
},
{
"code": null,
"e": 159,
"s": 75,
"text": "Example:<script type=\"text/javascript\"> document.write(M... |
seaborn.lineplot() method in Python | 17 Jul, 2020
Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. The colors stand out, the layers blend nicely together, the contours flow throughout, and the overall package not only has a nice aesthetic qua... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jul, 2020"
},
{
"code": null,
"e": 416,
"s": 52,
"text": "Seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. The colors... |
What is the AddSingleton vs AddScoped vs Add Transient C# Asp.net Core? | There are three ways by which dependencies can be registered in Startup.cs. i.e.
AddSingleton, AddScoped and AddTransient.
When we register a type as singleton, only one instance is available throughout the
application and for every request.
It is similar to having a static object.
The instance is created for the first... | [
{
"code": null,
"e": 1310,
"s": 1187,
"text": "There are three ways by which dependencies can be registered in Startup.cs. i.e.\nAddSingleton, AddScoped and AddTransient."
},
{
"code": null,
"e": 1429,
"s": 1310,
"text": "When we register a type as singleton, only one instance is... |
Python – Consecutive Row summation in Matrix | 29 Dec, 2019
This particular article focuses on a problem that has utility in competitive as well as day-day programming. Sometimes, we need to get the sum between the like indices when compared with the next list. The sum between the like elements in that index is returned. Let’s discuss certain ways in which this tas... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2019"
},
{
"code": null,
"e": 355,
"s": 28,
"text": "This particular article focuses on a problem that has utility in competitive as well as day-day programming. Sometimes, we need to get the sum between the like indices when co... |
Number of children of given node in n-ary Tree | 23 Jun, 2021
Given a node x, find the number of children of x(if it exists) in the given n-ary tree.
Example :
Input : x = 50
Output : 3
Explanation : 50 has 3 children having values 40, 100 and 20.
Approach :
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
captions off, se... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Jun, 2021"
},
{
"code": null,
"e": 144,
"s": 54,
"text": "Given a node x, find the number of children of x(if it exists) in the given n-ary tree. "
},
{
"code": null,
"e": 156,
"s": 144,
"text": "Example : "
... |
How to convert a number into array in JavaScript ? | 26 Jul, 2021
We have given a number and the task is to convert the given number into an array using JavaScript.
Examples:
Input: 235283
Output: [2, 3, 5, 2, 8, 3]
Input: 8998123
Output: [8, 9, 9, 8, 1, 2, 3]
Input: 1234567
Output: [1, 2, 3, 4, 5, 6, 7]
In this article, we will use two different methods to convert the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Jul, 2021"
},
{
"code": null,
"e": 151,
"s": 52,
"text": "We have given a number and the task is to convert the given number into an array using JavaScript."
},
{
"code": null,
"e": 161,
"s": 151,
"text": "Exampl... |
Python | Remove spaces from dictionary keys | 18 Dec, 2018
In Python, dictionary is a collection which is unordered, changeable and indexed. Dictionaries are written with curly brackets, and they have keys and values. It is used to hash a particular key.
Let’s see how to remove spaces from dictionary keys in Python.
Method #1:Using translate() function here we vis... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Dec, 2018"
},
{
"code": null,
"e": 224,
"s": 28,
"text": "In Python, dictionary is a collection which is unordered, changeable and indexed. Dictionaries are written with curly brackets, and they have keys and values. It is used to ha... |
Numbers with sum of digits equal to the sum of digits of its all prime factor | 13 Jun, 2022
Given a range, the task is to find the count of the numbers in the given range such that the sum of its digit is equal to the sum of all its prime factors digits sum.Examples:
Input: l = 2, r = 10
Output: 5
2, 3, 4, 5 and 7 are such numbers
Input: l = 15, r = 22
Output: 3
17, 19 and 22 are such numbers
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 206,
"s": 28,
"text": "Given a range, the task is to find the count of the numbers in the given range such that the sum of its digit is equal to the sum of all its prime factors digits sum.Examples:... |
ROTATE Instructions in 8085 | 28 Apr, 2022
ROTATE is a logical operation of the 8085 microprocessor. It is a 1-byte instruction. This instruction does not require any operand after the opcode. It operates the content of the accumulator and the result is also stored in the accumulator. The Rotate instruction is used to rotate the bits of accumulator... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Apr, 2022"
},
{
"code": null,
"e": 747,
"s": 52,
"text": "ROTATE is a logical operation of the 8085 microprocessor. It is a 1-byte instruction. This instruction does not require any operand after the opcode. It operates the content ... |
CSS border-spacing Property - GeeksforGeeks | 22 Aug, 2021
The border-spacing Property is used to set the distance between the borders of neighboring cells in the Table. This property works only when the border-collapse property is set to no-collapse separate.
Default Value:
2px
Syntax:
border-spacing: length|initial|inherit;
Property values:
length-length: ... | [
{
"code": null,
"e": 23656,
"s": 23628,
"text": "\n22 Aug, 2021"
},
{
"code": null,
"e": 23859,
"s": 23656,
"text": "The border-spacing Property is used to set the distance between the borders of neighboring cells in the Table. This property works only when the border-collapse pr... |
Relative vs Absolute: Understanding Compositional Data with Simulations | by Krishna Yerramsetty | Towards Data Science | One of the things I am constantly asked to do at my work is to compare NGS data across samples. These could be replicates or could be coming from completely different environments or processing steps. We all intuitively understood that these data are always constrained by the sequencing depth and therefore the conclusi... | [
{
"code": null,
"e": 962,
"s": 172,
"text": "One of the things I am constantly asked to do at my work is to compare NGS data across samples. These could be replicates or could be coming from completely different environments or processing steps. We all intuitively understood that these data are alwa... |
Pivot Tables with Pandas. An Excel favorite in Python | by Ryan Lewis | Towards Data Science | Most everyone who has worked with any type of data has likely used Microsoft Excel’s PivotTable function. It’s a quick, user-friendly tool that allows users to to calculate, aggregate, and summarize data sets enabling further analysis of patterns and trends. Excel provides an intuitive GUI that allows analysts to simpl... | [
{
"code": null,
"e": 680,
"s": 172,
"text": "Most everyone who has worked with any type of data has likely used Microsoft Excel’s PivotTable function. It’s a quick, user-friendly tool that allows users to to calculate, aggregate, and summarize data sets enabling further analysis of patterns and tren... |
How to Upload Project on GitHub from Jupyter Notebook? - GeeksforGeeks | 05 Aug, 2021
A Jupyter notebook is neither a simple text editor nor a full-featured IDE, rather it is an electronic file which contains both programming code and text descriptions. It can also contain embedded charts, plots, images, videos, and links. They run in a web browser like Firefox or Google Chrome.
They can c... | [
{
"code": null,
"e": 24557,
"s": 24529,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 24854,
"s": 24557,
"text": "A Jupyter notebook is neither a simple text editor nor a full-featured IDE, rather it is an electronic file which contains both programming code and text descripti... |
ArrayDeque peek() Method in Java - GeeksforGeeks | 10 Dec, 2018
The java.util.ArrayDeque.peek() method in Java is used to retrieve or fetch the element at the head of the Deque. The element retrieved does not get deleted or removed from the Queue instead the method just returns it. If no element is present in the deque then Null is returned.
Syntax:
Array_Deque.peek()
... | [
{
"code": null,
"e": 24120,
"s": 24092,
"text": "\n10 Dec, 2018"
},
{
"code": null,
"e": 24400,
"s": 24120,
"text": "The java.util.ArrayDeque.peek() method in Java is used to retrieve or fetch the element at the head of the Deque. The element retrieved does not get deleted or rem... |
Object Detection with YOLOv3 using Keras | by Renu Khandelwal | Towards Data Science | Part 1- CNN, R-CNN, Fast R-CNN, Faster R-CNN
Part 2 —Understanding YOLO, YOLOv2, YOLO v3
This is the third article in the series where we will predict the bounding boxes and classes using YOLOv3. Code available at github
You only look once (YOLO) at an image to predict what objects are present and where they are presen... | [
{
"code": null,
"e": 217,
"s": 172,
"text": "Part 1- CNN, R-CNN, Fast R-CNN, Faster R-CNN"
},
{
"code": null,
"e": 261,
"s": 217,
"text": "Part 2 —Understanding YOLO, YOLOv2, YOLO v3"
},
{
"code": null,
"e": 393,
"s": 261,
"text": "This is the third article in... |
How can we add a FOREIGN KEY constraint to the field of an existing MySQL table? | We can add a FOREIGN KEY constraint to a column of an existing MySQL table with the help of ALTER TABLE statement.
ALTER TABLE table_name ADD FOREIGN KEY (colum_name) REFERENCES table having Primary Key(column_name);
Suppose we want to add a FOREIGN KEY constraint on the table ‘Orders1’ referencing to the table ‘Custom... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "We can add a FOREIGN KEY constraint to a column of an existing MySQL table with the help of ALTER TABLE statement."
},
{
"code": null,
"e": 1279,
"s": 1177,
"text": "ALTER TABLE table_name ADD FOREIGN KEY (colum_name) REFERENCES tabl... |
Exploring the full-text search index in Neo4j on a movies dataset | by Tomaz Bratanic | Towards Data Science | The full-text search index was introduced in Neo4j version 3.5 with Apache Lucene powering the index. The agenda of this blog post is to introduce basic Lucene query language and describe how to use it in Neo4j. As you will see, we can also combine Lucene with Cypher to manipulate results.
I got most of the inspiration... | [
{
"code": null,
"e": 462,
"s": 171,
"text": "The full-text search index was introduced in Neo4j version 3.5 with Apache Lucene powering the index. The agenda of this blog post is to introduce basic Lucene query language and describe how to use it in Neo4j. As you will see, we can also combine Lucene... |
PHP | compact() Function - GeeksforGeeks | 29 Nov, 2019
The compact() function is an inbuilt function in PHP and it is used to create an array using variables. This function is opposite of extract() function. It creates an associative array whose keys are variable names and their corresponding values are array values.
Syntax:
array compact("variable 1", "variab... | [
{
"code": null,
"e": 24972,
"s": 24944,
"text": "\n29 Nov, 2019"
},
{
"code": null,
"e": 25236,
"s": 24972,
"text": "The compact() function is an inbuilt function in PHP and it is used to create an array using variables. This function is opposite of extract() function. It creates... |
Continuous Integration - Build Scripts | Now let’s look at certain aspects of the MSBuild file to see what they mean. These aspects are important to know from a Continuous Integration Cycle.
Build scripts are used to build the solution which will be a part of the entire continuous Integration cycle. Let’s look at the general build script which is created as a... | [
{
"code": null,
"e": 2136,
"s": 1986,
"text": "Now let’s look at certain aspects of the MSBuild file to see what they mean. These aspects are important to know from a Continuous Integration Cycle."
},
{
"code": null,
"e": 2718,
"s": 2136,
"text": "Build scripts are used to build ... |
Apache Commons IO - FileUtils | Provides method to manipulates files like moving, opening, checking existence, reading of file etc. These methods use File Object.
Following is the declaration for org.apache.commons.io.FileUtils Class −
public class FileUtils
extends Object
The features of FileUtils are stated below −
Methods to write to a file.
Me... | [
{
"code": null,
"e": 2535,
"s": 2404,
"text": "Provides method to manipulates files like moving, opening, checking existence, reading of file etc. These methods use File Object."
},
{
"code": null,
"e": 2608,
"s": 2535,
"text": "Following is the declaration for org.apache.commons... |
AI with Python â Reinforcement Learning | In this chapter, you will learn in detail about the concepts reinforcement learning in AI with Python.
This type of learning is used to reinforce or strengthen the network based on critic information. That is, a network being trained under reinforcement learning, receives some feedback from the environment. However, th... | [
{
"code": null,
"e": 2308,
"s": 2205,
"text": "In this chapter, you will learn in detail about the concepts reinforcement learning in AI with Python."
},
{
"code": null,
"e": 2732,
"s": 2308,
"text": "This type of learning is used to reinforce or strengthen the network based on c... |
Laravel - Hashing | Hashing is the process of transforming a string of characters into a shorter fixed value or a key that represents the original string. Laravel uses the Hash facade which provides a secure way for storing passwords in a hashed manner.
The following screenshot shows how to create a controller named passwordController whi... | [
{
"code": null,
"e": 2706,
"s": 2472,
"text": "Hashing is the process of transforming a string of characters into a shorter fixed value or a key that represents the original string. Laravel uses the Hash facade which provides a secure way for storing passwords in a hashed manner."
},
{
"code... |
How To Simulate Traffic On Urban Networks Using SUMO | by Skanda Vivek | Towards Data Science | Understanding, predicting, and ultimately — reducing traffic congestion in urban networks is a complex problem. Even understanding the emergence of traffic congestion in the most simple case — a single lane road, is challenging. The Simulation of Urban Mobility (SUMO) platform is an open source platform that enables si... | [
{
"code": null,
"e": 892,
"s": 172,
"text": "Understanding, predicting, and ultimately — reducing traffic congestion in urban networks is a complex problem. Even understanding the emergence of traffic congestion in the most simple case — a single lane road, is challenging. The Simulation of Urban Mo... |
Angular ng Bootstrap Pagination Component - GeeksforGeeks | 08 Sep, 2021
Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites.
In this article, we will see how to use Pagination in angular ng bootstrap. Pagination is used to make a group of pages.
In... | [
{
"code": null,
"e": 26464,
"s": 26436,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 26648,
"s": 26464,
"text": "Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make ... |
Concatenate multiple rows and columns in a single row with MySQL | To concatenate multiple rows and columns in single row, you can use GROUP_CONCAT() along with CONCAT(). Let us first create a table −
mysql> create table DemoTable1463
-> (
-> ClientId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> ClientName varchar(20),
-> ClientAge int
-> );
Query OK, 0 rows affected (1.... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "To concatenate multiple rows and columns in single row, you can use GROUP_CONCAT() along with CONCAT(). Let us first create a table −"
},
{
"code": null,
"e": 1390,
"s": 1196,
"text": "mysql> create table DemoTable1463\n -> (\n -... |
Deploy Python Flask App on Heroku | 19 Oct, 2021
Flask is a web application framework written in Python. Flask is based on the Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects. This article revolves around how to deploy a flask app on Heroku. To demonstrate this, we are first going to create a sample application for a better unde... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 386,
"s": 52,
"text": "Flask is a web application framework written in Python. Flask is based on the Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects. This article revolves... |
How to align block elements to center using CSS ? | 12 Aug, 2021
The “blocks” are known for taking full line space, forcing other elements to start on a new line. In other words, they have a width of 100% of the webpage or container holding the block. In this article, we are going to see how to block elements that usually behave and how to center them using CSS.
Block ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Aug, 2021"
},
{
"code": null,
"e": 329,
"s": 28,
"text": "The “blocks” are known for taking full line space, forcing other elements to start on a new line. In other words, they have a width of 100% of the webpage or container holding... |
Python PostgreSQL – Drop Table | 23 Aug, 2021
In this article, we are going to see how to drop tables in PostgreSQL using pyscopg2 module Python. In PostgreSQL DROP TABLE is used to remove the existing table from the database. It removes table definition and all associated data, indexes, rules, triggers, and constraints for that table. If the particul... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 409,
"s": 54,
"text": "In this article, we are going to see how to drop tables in PostgreSQL using pyscopg2 module Python. In PostgreSQL DROP TABLE is used to remove the existing table from the dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.