title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Azure Synapse Analytics & Power BI | by Yousry Mohamed | Towards Data Science | Quoting Microsoft’s Synapse product page
Azure Synapse Analytics is a limitless analytics service that brings together data integration, enterprise data warehousing and big data analytics. It gives you the freedom to query data on your terms, using either serverless or dedicated resources at scale.
I quite agree with t... | [
{
"code": null,
"e": 88,
"s": 47,
"text": "Quoting Microsoft’s Synapse product page"
},
{
"code": null,
"e": 347,
"s": 88,
"text": "Azure Synapse Analytics is a limitless analytics service that brings together data integration, enterprise data warehousing and big data analytics. ... |
Math.Min() Method in C# | The Math.Min() method in C# is used to return the larger of two specified numbers. This method works for both the numbers being Double, Decimal, Int16, Int32, etc.
Following is the syntax −
public static ulong Min (ulong val1, ulong val2);
public static uint Min (uint val1, uint val2);
public static ushort Min (ushort ... | [
{
"code": null,
"e": 1226,
"s": 1062,
"text": "The Math.Min() method in C# is used to return the larger of two specified numbers. This method works for both the numbers being Double, Decimal, Int16, Int32, etc."
},
{
"code": null,
"e": 1252,
"s": 1226,
"text": "Following is the s... |
Print all possible ways to convert one string into another string | Edit-Distance - GeeksforGeeks | 23 Apr, 2021
Prerequisite: Dynamic Programming | Set 5 (Edit Distance) Given two strings str1 and str2, the task is to print the all possible ways to convert ‘str1’ into ‘str2’. Below are the operations that can be performed on “str1”:
InsertRemoveReplace
Insert
Remove
Replace
All of the above operations are of equal... | [
{
"code": null,
"e": 24431,
"s": 24403,
"text": "\n23 Apr, 2021"
},
{
"code": null,
"e": 24656,
"s": 24431,
"text": "Prerequisite: Dynamic Programming | Set 5 (Edit Distance) Given two strings str1 and str2, the task is to print the all possible ways to convert ‘str1’ into ‘str2’... |
Understanding and Implementing LeNet-5 CNN Architecture (Deep Learning) | by Richmond Alake | Towards Data Science | Learn the basics of AI and Deep Learning with TensorFlow and Keras in this Live Training Session hosted by Me.
LeNet was introduced in the research paper “Gradient-Based Learning Applied To Document Recognition” in the year 1998 by Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Many of the listed authors ... | [
{
"code": null,
"e": 283,
"s": 172,
"text": "Learn the basics of AI and Deep Learning with TensorFlow and Keras in this Live Training Session hosted by Me."
},
{
"code": null,
"e": 603,
"s": 283,
"text": "LeNet was introduced in the research paper “Gradient-Based Learning Applied... |
The Easiest Way to Pull Stock Data into your Python Program: yfinance | by Kevin Tang | Towards Data Science | I’ve been working on a fun stock ticker project recently and I came across something I’ve never thought about before: what’s the best way to pull current and historical stock market price data into my Python program?
It turns out that for me, the best option was yfinance — a Python library that gives you current and hi... | [
{
"code": null,
"e": 389,
"s": 172,
"text": "I’ve been working on a fun stock ticker project recently and I came across something I’ve never thought about before: what’s the best way to pull current and historical stock market price data into my Python program?"
},
{
"code": null,
"e": 8... |
QlikView - Joins | Joins in QlikView are used to combine data from two data sets into one. Joins in QlikView mean the same as in joins in SQL. Only the column and row values that match the join conditions are shown in the output. In case you are completely new to joins, you may like
to first learn about them here.
Let us consider the fol... | [
{
"code": null,
"e": 3217,
"s": 2920,
"text": "Joins in QlikView are used to combine data from two data sets into one. Joins in QlikView mean the same as in joins in SQL. Only the column and row values that match the join conditions are shown in the output. In case you are completely new to joins, y... |
Implementing Random Forest in R. A Practical Application of Random... | by Joe Tran | Towards Data Science | In order to understand RF, we need to first understand about decision trees. Rajesh S. Brid wrote a detailed article about decision trees. We will not go too much in details about the definition of decision trees since that is not the purpose of this article. I just want to quickly summarise a few points. A decision tr... | [
{
"code": null,
"e": 775,
"s": 172,
"text": "In order to understand RF, we need to first understand about decision trees. Rajesh S. Brid wrote a detailed article about decision trees. We will not go too much in details about the definition of decision trees since that is not the purpose of this arti... |
Non maximum suppression (NMS) in python | Towards Data Science | Have you ever used an object detection algorithm? If yes, then chances are high that you have already used the Non-maximum suppression algorithm. Maybe it was part of a deep learning model you used and you haven’t even noticed. Because even very sophisticated algorithms face the problem they recognize the same object m... | [
{
"code": null,
"e": 507,
"s": 172,
"text": "Have you ever used an object detection algorithm? If yes, then chances are high that you have already used the Non-maximum suppression algorithm. Maybe it was part of a deep learning model you used and you haven’t even noticed. Because even very sophistic... |
Image Augmentation with skimage — Python | by Mathanraj Sharma | Towards Data Science | Hey buddies, recently I was working on an image classification problem. But unfortunately, there were not enough samples in one of class. I searched the internet and learned about a technique called image augmentation. Here I have shared my understanding of this technique and shared some codes using skimage. You can fi... | [
{
"code": null,
"e": 530,
"s": 171,
"text": "Hey buddies, recently I was working on an image classification problem. But unfortunately, there were not enough samples in one of class. I searched the internet and learned about a technique called image augmentation. Here I have shared my understanding ... |
What happens when we use COMMIT in MySQL stored procedure and one of the transaction, under START transaction, fails? | Suppose one of the queries fails or generates errors and another query (s) properly executed the MySQL still commit the changes of the properly executed query(s). It can be understood from the following example in which we are using the table ‘employee.tbl’ having the following data −
mysql> Select * from employee.tbl;... | [
{
"code": null,
"e": 1348,
"s": 1062,
"text": "Suppose one of the queries fails or generates errors and another query (s) properly executed the MySQL still commit the changes of the properly executed query(s). It can be understood from the following example in which we are using the table ‘employee.... |
C program to calculate power of a given number | Take two integers from the user for base and exponent and calculate the power as explained below.
Consider the following for writing a C program.
Suppose base =3
Exponent = 4
Power=3*3*3*3
Follow the algorithm given below −
Step 1: Declare int and long variables.
Step 2: Enter base value through console.
Step 3: Enter ... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "Take two integers from the user for base and exponent and calculate the power as explained below."
},
{
"code": null,
"e": 1208,
"s": 1160,
"text": "Consider the following for writing a C program."
},
{
"code": null,
"e":... |
Inserting data in table in SAP HANA | Like other database, you can insert rows in column based table in SAP HANA using Insert statement. Insert statement can be written in SQL editor in HANA.
To open SQL editor, you can select HANA system and click on SQL sign at top.
Below SQL statements can be used to insert the data −
INSERT INTO TEST.PROD_DESC VALUES (... | [
{
"code": null,
"e": 1216,
"s": 1062,
"text": "Like other database, you can insert rows in column based table in SAP HANA using Insert statement. Insert statement can be written in SQL editor in HANA."
},
{
"code": null,
"e": 1293,
"s": 1216,
"text": "To open SQL editor, you can ... |
Ruby - LDAP Tutorial | Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries like OpenLDAP, UMich LDAP, Netscape SDK, ActiveDirectory.
The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
You can download and install a complete Ruby/LDAP package from SOURCEFO... | [
{
"code": null,
"e": 2445,
"s": 2294,
"text": "Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries like OpenLDAP, UMich LDAP, Netscape SDK, ActiveDirectory."
},
{
"code": null,
"e": 2543,
"s": 2445,
"text": "The common API for application ... |
ArrayDeque peekFirst() Method in Java - GeeksforGeeks | 10 Dec, 2018
The java.util.ArrayDeque.peekFirst() method in Java is used to retrieve or fetch the first element 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 or it is empty, then Null is returned.
Syntax:
Arra... | [
{
"code": null,
"e": 25397,
"s": 25369,
"text": "\n10 Dec, 2018"
},
{
"code": null,
"e": 25692,
"s": 25397,
"text": "The java.util.ArrayDeque.peekFirst() method in Java is used to retrieve or fetch the first element of the deque. The element retrieved does not get deleted or remo... |
Largest right circular cone that can be inscribed within a sphere - GeeksforGeeks | 17 Mar, 2021
Given sphere of radius . The task is to find the radius of base and height of the largest right circular cone that can be inscribed within it.Examples:
Input : R = 10
Output : r = 9.42809, h = 13.3333
Input : R = 25
Output : r = 23.5702, h = 33.3333
Approach:Let the radius of the cone = r height of ... | [
{
"code": null,
"e": 26561,
"s": 26533,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 26715,
"s": 26561,
"text": "Given sphere of radius . The task is to find the radius of base and height of the largest right circular cone that can be inscribed within it.Examples: "
},
{... |
Sum of all the multiples of 3 and 7 below N - GeeksforGeeks | 05 Apr, 2021
Given a number N, the task is to find the sum of all the multiples of 3 and 7 below N. Note: A number must not repeat itself in the sum.
Examples:
Input: N = 10 Output: 25 3 + 6 + 7 + 9 = 25
Input: N = 24 Output: 105 3 + 6 + 7 + 9 + 12 + 14 + 15 + 18 + 21 = 105
Approach:
We know that multiples of 3 fo... | [
{
"code": null,
"e": 26333,
"s": 26305,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 26470,
"s": 26333,
"text": "Given a number N, the task is to find the sum of all the multiples of 3 and 7 below N. Note: A number must not repeat itself in the sum."
},
{
"code": null... |
Class getEnumConstants() method in Java with Examples - GeeksforGeeks | 27 Dec, 2019
The getEnumConstants() method of java.lang.Class class is used to get the Enum constants of this class. The method returns the Enum constants of this class in the form of an array of objects comprising the enum class represented by this class.
Syntax:
public T[] getEnumConstants()
Parameter: This method d... | [
{
"code": null,
"e": 25777,
"s": 25749,
"text": "\n27 Dec, 2019"
},
{
"code": null,
"e": 26021,
"s": 25777,
"text": "The getEnumConstants() method of java.lang.Class class is used to get the Enum constants of this class. The method returns the Enum constants of this class in the ... |
C# - Param Arrays | At times, while declaring a method, you are not sure of the number of arguments passed as a parameter. C# param arrays (or parameter arrays) come into help at such times.
The following example demonstrates this −
using System;
namespace ArrayApplication {
class ParamArray {
public int AddElements(params int[]... | [
{
"code": null,
"e": 2441,
"s": 2270,
"text": "At times, while declaring a method, you are not sure of the number of arguments passed as a parameter. C# param arrays (or parameter arrays) come into help at such times."
},
{
"code": null,
"e": 2483,
"s": 2441,
"text": "The followi... |
CSS | counter-increment Property - GeeksforGeeks | 24 Aug, 2021
The CSS counter-increment Property is used to increment/decrement value of a counter. A CSS counter is a variable that is used to track how many times a variable is used.
Syntax:
counter-increment: none | identifier | initial | inherit;
Default Value: none
Property values:
none: This is the default va... | [
{
"code": null,
"e": 23616,
"s": 23588,
"text": "\n24 Aug, 2021"
},
{
"code": null,
"e": 23788,
"s": 23616,
"text": "The CSS counter-increment Property is used to increment/decrement value of a counter. A CSS counter is a variable that is used to track how many times a variable i... |
JSTL - fn:substringBefore() Function | The fn:substringBefore() function returns the part of a string before a specified substring.
The fn:substringBefore() function has the following syntax −
java.lang.String substringBefore(java.lang.String, java.lang.String)
Following example explains the functionality of the fn:substringBefore() function −
<%@ taglib u... | [
{
"code": null,
"e": 2332,
"s": 2239,
"text": "The fn:substringBefore() function returns the part of a string before a specified substring."
},
{
"code": null,
"e": 2393,
"s": 2332,
"text": "The fn:substringBefore() function has the following syntax −"
},
{
"code": null,
... |
Hearing aids for Impaired People using MATLAB - GeeksforGeeks | 24 Feb, 2022
In this article, we are going to discuss how to develop a digital hearing aid using MATLAB.
MATLAB stands for Matrix Laboratory. It is a high-performance language that is used for technical computing. It allows matrix manipulations, plotting of functions, implementation of algorithms and creation of user i... | [
{
"code": null,
"e": 24228,
"s": 24200,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 24320,
"s": 24228,
"text": "In this article, we are going to discuss how to develop a digital hearing aid using MATLAB."
},
{
"code": null,
"e": 24681,
"s": 24320,
"text":... |
JavaScript | Object Accessors - GeeksforGeeks | 12 Mar, 2019
There are two keywords which define the accessors functions: a getter and setter for the fullName property. When the property is accessed, the return value from the getter is used. When a value is set, the setter is called and passed the value that was set.
JavaScript Getter (The get Keyword):
Example: Thi... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n12 Mar, 2019"
},
{
"code": null,
"e": 25167,
"s": 24909,
"text": "There are two keywords which define the accessors functions: a getter and setter for the fullName property. When the property is accessed, the return value from th... |
Lua - Garbage Collection | Lua uses automatic memory management that uses garbage collection based on certain algorithms that is in-built in Lua. As a result of automatic memory management, as a developer −
No need to worry about allocating memory for objects.
No need to free them when no longer needed except for setting it to nil.
Lua uses a ga... | [
{
"code": null,
"e": 2283,
"s": 2103,
"text": "Lua uses automatic memory management that uses garbage collection based on certain algorithms that is in-built in Lua. As a result of automatic memory management, as a developer −"
},
{
"code": null,
"e": 2337,
"s": 2283,
"text": "No... |
Swift - Switch Statement | A switch statement in Swift completes its execution as soon as the first matching case is completed instead of falling through the bottom of subsequent cases like it happens in C and C++ programing languages. Following is a generic syntax of switch statement in C and C++ −
switch(expression) {
case constant-expressi... | [
{
"code": null,
"e": 2527,
"s": 2253,
"text": "A switch statement in Swift completes its execution as soon as the first matching case is completed instead of falling through the bottom of subsequent cases like it happens in C and C++ programing languages. Following is a generic syntax of switch stat... |
Beautiful custom colormaps with Matplotlib | by Kerry Halupka | Towards Data Science | If your Matplotlib chart needs a colormap and you’re not using an inbuilt map, chances are you’re going to have a bad time. I used to dread editing colormaps in Python. Every help thread I looked at showed a different approach, and none of them quite matched my situation. This was always disappointing because colormaps... | [
{
"code": null,
"e": 625,
"s": 172,
"text": "If your Matplotlib chart needs a colormap and you’re not using an inbuilt map, chances are you’re going to have a bad time. I used to dread editing colormaps in Python. Every help thread I looked at showed a different approach, and none of them quite matc... |
Java SAX Library - GeeksforGeeks | 17 Apr, 2019
SAX (Simple API for XML), is the most widely adopted API for XML in Java and is considered the de-facto standard. Although it started as a library exclusive for Java, it is now a well-known API distributed over a variety of programming languages. It is an open source project and has recently switched to So... | [
{
"code": null,
"e": 24818,
"s": 24790,
"text": "\n17 Apr, 2019"
},
{
"code": null,
"e": 25648,
"s": 24818,
"text": "SAX (Simple API for XML), is the most widely adopted API for XML in Java and is considered the de-facto standard. Although it started as a library exclusive for Ja... |
Balanced Binary Tree in Python | In a binary tree, each node contains two children, i.e left child and right child. Let us suppose we have a binary tree and we need to check if the tree is balanced or not. A Binary tree is said to be balanced if the difference of height of left subtree and right subtree is less than or equal to '1'.
Example
Input-1:
... | [
{
"code": null,
"e": 1364,
"s": 1062,
"text": "In a binary tree, each node contains two children, i.e left child and right child. Let us suppose we have a binary tree and we need to check if the tree is balanced or not. A Binary tree is said to be balanced if the difference of height of left subtree... |
Rank function in MySQL? | The rank() function can be used to give a rank for every row within the partition of a result set.
First, let us create a table −
mysql> create table RankDemo
mysql> (
mysql> id int
mysql> );
Query OK, 0 rows affected (0.53 sec)
Inserting records into table.
mysql> insert into RankDemo values(1);
Query OK, 1 r... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "The rank() function can be used to give a rank for every row within the partition of a result set."
},
{
"code": null,
"e": 1192,
"s": 1161,
"text": "First, let us create a table −"
},
{
"code": null,
"e": 1300,
"s": ... |
How to add a new column to an existing table using JDBC API? | You can add a new column to a table using the ALTER TABLE command.
ALTER TABLE table_name ADD column_name datatype;
Assume we have a table named Sales in the database with 5 columns namely ProductName, CustomerName, DispatchDate, DeliveryTime, Price and, Location as shown below:
+-------------+--------------+----------... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "You can add a new column to a table using the ALTER TABLE command."
},
{
"code": null,
"e": 1178,
"s": 1129,
"text": "ALTER TABLE table_name ADD column_name datatype;"
},
{
"code": null,
"e": 1342,
"s": 1178,
"tex... |
Playit | #myDIV { background-color:lightblue; transform:scale(1.1);} | [] |
Python - cmath.polar() function - GeeksforGeeks | 28 May, 2020
cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.polar() function is used to convert a complex number to polar coordinates. The value passed in this function can be int, float, and complex numbers.
Syntax: cmath.polar(x)
Parameter:This met... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 24583,
"s": 24317,
"text": "cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.polar() function is used to convert a complex ... |
arc function in C - GeeksforGeeks | 23 May, 2019
The header file graphics.h contains arc() function which draws an arc with center at (x, y) and given radius. start_angle is the starting point of angle and end_angle is the ending point of the angle. The value of the angle can vary from 0 to 360 degree.
Syntax :
void arc(int x, int y, int start_angle,
... | [
{
"code": null,
"e": 24234,
"s": 24206,
"text": "\n23 May, 2019"
},
{
"code": null,
"e": 24489,
"s": 24234,
"text": "The header file graphics.h contains arc() function which draws an arc with center at (x, y) and given radius. start_angle is the starting point of angle and end_an... |
Python List sort() Method | Python list method sort() sorts objects of list, use compare func if given.
Following is the syntax for sort() method −
list.sort([func])
NA
NA
This method does not return any value but it changes from the original list.
The following example shows the usage of sort() method.
#!/usr/bin/python
aList = [123, 'xyz', 'z... | [
{
"code": null,
"e": 2320,
"s": 2244,
"text": "Python list method sort() sorts objects of list, use compare func if given."
},
{
"code": null,
"e": 2364,
"s": 2320,
"text": "Following is the syntax for sort() method −"
},
{
"code": null,
"e": 2383,
"s": 2364,
... |
GATE | GATE CS 1997 | Question 40 - GeeksforGeeks | 20 Nov, 2018
Consider a logic circuit shown in figure below. The functions f1,f2 and f (in canonical sum of products form in decimal notation) are :f1(w,x,y,z) = ∑ 8,9,10f2(w,x,y,z) = ∑ 7,8,12,13,14,15f(w,x,y,z) = ∑ 8,9
The Function f3 is
a. ∑9,10
b. ∑9
c. ∑1,8,9
d. ∑8,10,15
(A) a(B) b(C) c(D) dAnswer: (B)Explanation:... | [
{
"code": null,
"e": 25613,
"s": 25585,
"text": "\n20 Nov, 2018"
},
{
"code": null,
"e": 25821,
"s": 25613,
"text": "Consider a logic circuit shown in figure below. The functions f1,f2 and f (in canonical sum of products form in decimal notation) are :f1(w,x,y,z) = ∑ 8,9,10f2(w,x... |
PyQt5 - Setting background color to lineedit of ComboBox - GeeksforGeeks | 04 May, 2020
In this article we will see how we can set the background color to the line edit part of combo box, line edit part of the combo box is in which text is shown and edit.
In order to add background color to the line edit part of the combo box, do the following –
1. Create a combo box2. Create a line edit widg... | [
{
"code": null,
"e": 26223,
"s": 26195,
"text": "\n04 May, 2020"
},
{
"code": null,
"e": 26391,
"s": 26223,
"text": "In this article we will see how we can set the background color to the line edit part of combo box, line edit part of the combo box is in which text is shown and e... |
Continued Fraction Factorization algorithm - GeeksforGeeks | 02 Sep, 2020
The continued fraction factorization method (CFRAC) is a general-purpose factorization algorithm valid for integers. It calculates factors of a given integer number without considering its unique properties. It has a sub-exponential running time. It was first described in 1931 by D. H. Lehmer and R. E. P... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 25952,
"s": 25537,
"text": "The continued fraction factorization method (CFRAC) is a general-purpose factorization algorithm valid for integers. It calculates factors of a given integer numbe... |
PHP | imagecopymerge() Function - GeeksforGeeks | 23 Aug, 2019
The imagecopymerge() function is an inbuilt function in PHP which is used to copy and merge the image into a single image. This function returns True on success or False on failure.
Syntax:
bool imagecopymerge ( $dst_image, $src_image, $dst_x, $dst_y,
$src_x, $src_y, $src_w, $src_h, $pct )
Parameters: Thi... | [
{
"code": null,
"e": 26281,
"s": 26253,
"text": "\n23 Aug, 2019"
},
{
"code": null,
"e": 26463,
"s": 26281,
"text": "The imagecopymerge() function is an inbuilt function in PHP which is used to copy and merge the image into a single image. This function returns True on success or... |
Python | sympy.cos() method - GeeksforGeeks | 19 Jul, 2019
In simpy, cos() method is cosine function. Using the cos(x) method in simpy module, we can compute the cosine of x.
Syntax : sympy.cos(x)
Return : Returns the cosine of x
Code #1:Below is the example using cos() method to find cosine function.
# importing sympy libraryfrom sympy import * # calling cos()... | [
{
"code": null,
"e": 25585,
"s": 25557,
"text": "\n19 Jul, 2019"
},
{
"code": null,
"e": 25701,
"s": 25585,
"text": "In simpy, cos() method is cosine function. Using the cos(x) method in simpy module, we can compute the cosine of x."
},
{
"code": null,
"e": 25758,
... |
MongoDB count() Method - db.Collection.count() - GeeksforGeeks | 28 Jan, 2021
The count() method counts the number of documents that match the selection criteria. It returns the number of documents that match the selection criteria. It takes two arguments first one is the selection criteria and the other is optional.
This method is equivalent to db.collection.find().count().
You c... | [
{
"code": null,
"e": 25623,
"s": 25595,
"text": "\n28 Jan, 2021"
},
{
"code": null,
"e": 25865,
"s": 25623,
"text": "The count() method counts the number of documents that match the selection criteria. It returns the number of documents that match the selection criteria. It takes... |
Send mails using a Bash Script - GeeksforGeeks | 16 Feb, 2022
Sending email via the command line can be quite a great feature to have especially on Linux which will allow some users to avoid using the GUI and installing all of the dependencies. We will look into the following article on how to write a BASH (shell) script that can send a custom email to any other emai... | [
{
"code": null,
"e": 25675,
"s": 25647,
"text": "\n16 Feb, 2022"
},
{
"code": null,
"e": 26007,
"s": 25675,
"text": "Sending email via the command line can be quite a great feature to have especially on Linux which will allow some users to avoid using the GUI and installing all o... |
Implementation of Perceptron Algorithm for NOT Logic Gate - GeeksforGeeks | 08 Jun, 2020
In the field of Machine Learning, the Perceptron is a Supervised Learning Algorithm for binary classifiers. The Perceptron Model implements the following function:
For a particular choice of the weight vector and bias parameter , the model predicts output for the corresponding input vector .
NOT log... | [
{
"code": null,
"e": 26839,
"s": 26811,
"text": "\n08 Jun, 2020"
},
{
"code": null,
"e": 27003,
"s": 26839,
"text": "In the field of Machine Learning, the Perceptron is a Supervised Learning Algorithm for binary classifiers. The Perceptron Model implements the following function:... |
Difference between List and Dictionary in Python - GeeksforGeeks | 21 Sep, 2021
Lists are just like the arrays, declared in other languages. Lists need not be homogeneous always which makes it a most powerful tool in Python. A single list may contain DataTypes like Integers, Strings, as well as Objects. Lists are mutable, and hence, they can be altered even after their creation.Exampl... | [
{
"code": null,
"e": 25494,
"s": 25466,
"text": "\n21 Sep, 2021"
},
{
"code": null,
"e": 25805,
"s": 25494,
"text": "Lists are just like the arrays, declared in other languages. Lists need not be homogeneous always which makes it a most powerful tool in Python. A single list may ... |
Powers of 2 to required sum using Bit Masking - GeeksforGeeks | 03 Jun, 2021
Given an integer N, the task is to find the numbers which when added after being raised to the Power of 2 gives the integer N.Examples:
Input: N = 12345 Output: 0, 3, 4, 5, 12, 13 Explanation: 12345 = 2^0 + 2^3 + 2^4 + 2^5 + 2^12 + 2^13Input: N = 10000 Output: 4, 8, 9, 10, 13 Explanation: 10000 = 2^4 + 2... | [
{
"code": null,
"e": 26515,
"s": 26487,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 26653,
"s": 26515,
"text": "Given an integer N, the task is to find the numbers which when added after being raised to the Power of 2 gives the integer N.Examples: "
},
{
"code": nul... |
Square root of a number using log - GeeksforGeeks | 26 Apr, 2021
For a given number find the square root using log function. Number may be int, float or double.
Examples:
Input : n = 9
Output : 3
Input : n = 2.93
Output : 1.711724
We can find square root of a number using sqrt() method.
C++
Java
Python3
C#
PHP
Javascript
// C++ program to demonstrate finding// squ... | [
{
"code": null,
"e": 25961,
"s": 25933,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 26057,
"s": 25961,
"text": "For a given number find the square root using log function. Number may be int, float or double."
},
{
"code": null,
"e": 26068,
"s": 26057,
"te... |
p5.js | saveCanvas() Function - GeeksforGeeks | 18 Mar, 2020
The saveCanvas() function is used to save a p5.Table object to a file. The format of the file saved can be defined as a parameter to the function. It saves a text file with comma-separated-values by default, however, it can be used to save it using-tab separated-values or generate an HTML table from it.
Sy... | [
{
"code": null,
"e": 26049,
"s": 26021,
"text": "\n18 Mar, 2020"
},
{
"code": null,
"e": 26354,
"s": 26049,
"text": "The saveCanvas() function is used to save a p5.Table object to a file. The format of the file saved can be defined as a parameter to the function. It saves a text ... |
Minimum Bipartite Groups - GeeksforGeeks | 13 Aug, 2021
Given Adjacency List representation of graph of N vertices from 1 to N, the task is to count the minimum bipartite groups of the given graph.
Examples:
Input: N = 5 Below is the given graph with number of nodes is 5:
Output: 3 Explanation: Possible groups satisfying the Bipartite property: [2, 5], [1, 3... | [
{
"code": null,
"e": 25943,
"s": 25915,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 26085,
"s": 25943,
"text": "Given Adjacency List representation of graph of N vertices from 1 to N, the task is to count the minimum bipartite groups of the given graph."
},
{
"code":... |
TreeMap floorKey() in Java with Examples - GeeksforGeeks | 17 Sep, 2018
Pre-requisite: TreeMap in Java
The floorKey() method is used to return the greatest key less than or equal to given key from the parameter.
Syntax:
public K floorKey(K key)
Parameter: This method accepts a mandatory parameter key which is the key to be matched.
Return Value: The method call returns the gre... | [
{
"code": null,
"e": 26053,
"s": 26025,
"text": "\n17 Sep, 2018"
},
{
"code": null,
"e": 26084,
"s": 26053,
"text": "Pre-requisite: TreeMap in Java"
},
{
"code": null,
"e": 26193,
"s": 26084,
"text": "The floorKey() method is used to return the greatest key le... |
Python Functools - lru_cache() - GeeksforGeeks | 26 Jun, 2020
The functools module in Python deals with higher-order functions, that is, functions operating on(taking as arguments) or returning functions and other such callable objects. The functools module provides a wide array of methods such as cached_property(func), cmp_to_key(func), lru_cache(func), wraps(func),... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n26 Jun, 2020"
},
{
"code": null,
"e": 26045,
"s": 25665,
"text": "The functools module in Python deals with higher-order functions, that is, functions operating on(taking as arguments) or returning functions and other such callab... |
Logcheck Tool - Monitor Kali Linux System Log Activity - GeeksforGeeks | 18 May, 2021
Logcheck is a package or tool to check system log files for security violations and unusual activity, it utilizes the program called logtail remembering the last position is read from the log file. Analyzes security or unusual activity from syslog to monitor Apache log files for errors caused by PHP Script... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 26111,
"s": 25651,
"text": "Logcheck is a package or tool to check system log files for security violations and unusual activity, it utilizes the program called logtail remembering the last p... |
Maximum sum alternating subsequence - GeeksforGeeks | 08 Mar, 2022
Given an array, the task is to find sum of maximum sum alternating subsequence starting with first element. Here alternating sequence means first decreasing, then increasing, then decreasing, ... For example 10, 5, 14, 3 is an alternating sequence. Note that the reverse type of sequence (increasing – decre... | [
{
"code": null,
"e": 26181,
"s": 26153,
"text": "\n08 Mar, 2022"
},
{
"code": null,
"e": 26560,
"s": 26181,
"text": "Given an array, the task is to find sum of maximum sum alternating subsequence starting with first element. Here alternating sequence means first decreasing, then ... |
What is Puppet Domain-Specific Language? - GeeksforGeeks | 01 Jun, 2020
Puppet is an open-source configuration management automation tool. Puppet permits system administrators to type in infrastructure as code, using the Puppet Descriptive Language rather than utilizing any customized and individual scripts to do so. This means in case the system administrator erroneously alte... | [
{
"code": null,
"e": 26273,
"s": 26245,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 26880,
"s": 26273,
"text": "Puppet is an open-source configuration management automation tool. Puppet permits system administrators to type in infrastructure as code, using the Puppet Descrip... |
stty command in Linux with Examples - GeeksforGeeks | 18 Feb, 2021
stty command in Linux is used to change and print terminal line settings. Basically, this command shows or changes terminal characteristics.
Syntax:
stty [-F DEVICE | --file=DEVICE] [SETTING]...
stty [-F DEVICE | --file=DEVICE] [-a|--all]
stty [-F DEVICE | --file=DEVICE] [-g|--save]
Example: It will displ... | [
{
"code": null,
"e": 25533,
"s": 25505,
"text": "\n18 Feb, 2021"
},
{
"code": null,
"e": 25674,
"s": 25533,
"text": "stty command in Linux is used to change and print terminal line settings. Basically, this command shows or changes terminal characteristics."
},
{
"code": ... |
Batch Script - Calling a Function | A function is called in Batch Script by using the call command. Following is the syntax.
call :function_name
Following example shows how a function can be called from the main program.
@echo off
SETLOCAL
CALL :Display
EXIT /B %ERRORLEVEL%
:Display
SET /A index=2
echo The value of index is %index%
EXIT /B 0
One ... | [
{
"code": null,
"e": 2258,
"s": 2169,
"text": "A function is called in Batch Script by using the call command. Following is the syntax."
},
{
"code": null,
"e": 2279,
"s": 2258,
"text": "call :function_name\n"
},
{
"code": null,
"e": 2355,
"s": 2279,
"text": "... |
AngularJS - Expressions | Expressions are used to bind application data to HTML. Expressions are written inside double curly braces such as in {{ expression}}. Expressions behave similar to ngbind directives. AngularJS expressions are pure JavaScript expressions and output the data where they are used.
<p>Expense on Books : {{cost * quantity}} ... | [
{
"code": null,
"e": 2977,
"s": 2699,
"text": "Expressions are used to bind application data to HTML. Expressions are written inside double curly braces such as in {{ expression}}. Expressions behave similar to ngbind directives. AngularJS expressions are pure JavaScript expressions and output the d... |
Check for star graph - GeeksforGeeks | 07 Nov, 2021
You are given an n * n matrix which represents a graph with n-vertices, check whether the input matrix represents a star graph or not.Example:
Input : Mat[][] = {{0, 1, 0},
{1, 0, 1},
{0, 1, 0}}
Output : Star graph
Input : Mat[][] = {{0, 1, 0},
{1... | [
{
"code": null,
"e": 25203,
"s": 25175,
"text": "\n07 Nov, 2021"
},
{
"code": null,
"e": 25348,
"s": 25203,
"text": "You are given an n * n matrix which represents a graph with n-vertices, check whether the input matrix represents a star graph or not.Example: "
},
{
"cod... |
Deepnote: a Collaborative Framework for Your Python Notebooks | by Angelica Lo Duca | Towards Data Science | In my wandering around the various data science tools and frameworks, I discovered Deepnote, an online framework that allows you to create and run notebooks in Python.
Compared to the more famous Jupyterlab and Colab frameworks, Deepnote allows you to write Python notebooks collaboratively and in real time. Your collab... | [
{
"code": null,
"e": 340,
"s": 172,
"text": "In my wandering around the various data science tools and frameworks, I discovered Deepnote, an online framework that allows you to create and run notebooks in Python."
},
{
"code": null,
"e": 527,
"s": 340,
"text": "Compared to the mo... |
java.util.concurrent Package - GeeksforGeeks | 03 May, 2022
Java Concurrency package covers concurrency, multithreading, and parallelism on the Java platform. Concurrency is the ability to run several or multi programs or applications in parallel. The backbone of Java concurrency is threads (a lightweight process, which has its own files and stacks and can access t... | [
{
"code": null,
"e": 25373,
"s": 25345,
"text": "\n03 May, 2022"
},
{
"code": null,
"e": 26162,
"s": 25373,
"text": "Java Concurrency package covers concurrency, multithreading, and parallelism on the Java platform. Concurrency is the ability to run several or multi programs or a... |
Python | Create a stopwatch using clock object in kivy using .kv file - GeeksforGeeks | 01 Feb, 2021
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 Desktop applications.
Kivy Tutorial – Learn Kivy with Examples.
Clock Object: The Clock obj... | [
{
"code": null,
"e": 25765,
"s": 25737,
"text": "\n01 Feb, 2021"
},
{
"code": null,
"e": 26002,
"s": 25765,
"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 applicatio... |
How to load an image and show the image using Keras? | To load an image and show the image using Keras, we will use load_image() method to load an image and set the target size of the image to be shown.
Use load_img() method to load the figure.
Set the target size of the image.
To display the figure, use show() method.
from keras.preprocessing import image
img = image.load... | [
{
"code": null,
"e": 1210,
"s": 1062,
"text": "To load an image and show the image using Keras, we will use load_image() method to load an image and set the target size of the image to be shown."
},
{
"code": null,
"e": 1252,
"s": 1210,
"text": "Use load_img() method to load the ... |
WPF - Application Level | Defining a style on app level can make it accessible throughout the entire application. Let’s take the same example, but here, we will put the styles in app.xaml file to make it accessible throughout application. Here is the XAML code in app.xaml.
<Application x:Class = "Styles.App"
xmlns = "http://schemas.microsof... | [
{
"code": null,
"e": 2268,
"s": 2020,
"text": "Defining a style on app level can make it accessible throughout the entire application. Let’s take the same example, but here, we will put the styles in app.xaml file to make it accessible throughout application. Here is the XAML code in app.xaml."
},... |
Breadth First Traversal in C | We shall not see the implementation of Breadth First Traversal (or Breadth First Search) in C programming language. For our reference purpose, we shall follow our example and take this as our graph model −
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define MAX 5
struct Vertex {
char label;
bool... | [
{
"code": null,
"e": 2786,
"s": 2580,
"text": "We shall not see the implementation of Breadth First Traversal (or Breadth First Search) in C programming language. For our reference purpose, we shall follow our example and take this as our graph model −"
},
{
"code": null,
"e": 5482,
... |
Remove object from array in MongoDB? | To remove object from an array in MongoDB, you can use $pull operator. The syntax is as follows:
db.yourCollectionName.update( {'_id':ObjectId("5c6ea036a0c51185aefbd14f")},
{$pull:{"yourArrayName":{"yourArrayFieldName":yourValue}}},
false,true);
To understand the above syntax, let us create a collection with document. ... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "To remove object from an array in MongoDB, you can use $pull operator. The syntax is as follows:"
},
{
"code": null,
"e": 1308,
"s": 1159,
"text": "db.yourCollectionName.update( {'_id':ObjectId(\"5c6ea036a0c51185aefbd14f\")},\n{$pull... |
Learn Decision making under uncertainty — Part 1: Solve the problem with mean values | by Ramakrishna Thiruveedhi | Towards Data Science | Many decision-making problems can be solved as a linear system of equations. Handling uncertainty in the problem is not straightforward. In this series of articles, we will explore the concept of using Stochastic Programming on a simple business problem. This first article covers the basic approach of building a model ... | [
{
"code": null,
"e": 732,
"s": 171,
"text": "Many decision-making problems can be solved as a linear system of equations. Handling uncertainty in the problem is not straightforward. In this series of articles, we will explore the concept of using Stochastic Programming on a simple business problem. ... |
Python - Calculate the median of column values of a Pandas DataFrame | To calculate the median of column values, use the median() method. At first, import the required Pandas library −
import pandas as pd
Now, create a DataFrame with two columns −
dataFrame1 = pd.DataFrame(
{
"Car": ['BMW', 'Lexus', 'Audi', 'Tesla', 'Bentley', 'Jaguar'],
"Units": [100, 150, 110, 80, 110, 90... | [
{
"code": null,
"e": 1176,
"s": 1062,
"text": "To calculate the median of column values, use the median() method. At first, import the required Pandas library −"
},
{
"code": null,
"e": 1196,
"s": 1176,
"text": "import pandas as pd"
},
{
"code": null,
"e": 1239,
"... |
MongoDB - Deployment | When you are preparing a MongoDB deployment, you should try to understand how your application is going to hold up in production. It’s a good idea to develop a consistent, repeatable approach to managing your deployment environment so that you can minimize any surprises once you’re in production.
The best approach inco... | [
{
"code": null,
"e": 2851,
"s": 2553,
"text": "When you are preparing a MongoDB deployment, you should try to understand how your application is going to hold up in production. It’s a good idea to develop a consistent, repeatable approach to managing your deployment environment so that you can minim... |
Chi-Square Test for Independence in Python with Examples from the IBM HR Analytics Dataset | by Dehao Zhang | Towards Data Science | Suppose you are exploring a dataset and you want to examine if two categorical variables are dependent on each other.
The motivation could be a better understanding of the relationship between an outcome variable and a predictor, identification of dependent predictors, etc.
In this case, a Chi-square test can be an eff... | [
{
"code": null,
"e": 289,
"s": 171,
"text": "Suppose you are exploring a dataset and you want to examine if two categorical variables are dependent on each other."
},
{
"code": null,
"e": 446,
"s": 289,
"text": "The motivation could be a better understanding of the relationship b... |
Exceptionally odd | Practice | GeeksforGeeks | Given an array of N positive integers where all numbers occur even number of times except one number which occurs odd number of times. Find the exceptional number.
Example 1:
Input:
N = 7
Arr[] = {1, 2, 3, 2, 3, 1, 3}
Output: 3
Example 2:
Input:
N = 7
Arr[] = {5, 7, 2, 7, 5, 2, 5}
Output: 5
Your Task:
You don't nee... | [
{
"code": null,
"e": 402,
"s": 238,
"text": "Given an array of N positive integers where all numbers occur even number of times except one number which occurs odd number of times. Find the exceptional number."
},
{
"code": null,
"e": 413,
"s": 402,
"text": "Example 1:"
},
{
... |
Escape sequences in Java | A character preceded by a backslash (\) is an escape sequence and has a special meaning to the compiler.
The following table shows the Java escape sequences.
Let us see an example of Character Escape Sequences in Java.
Live Demo
public class Demo {
public static void main(String[] args) {
char ch = '\u039A';
... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "A character preceded by a backslash (\\) is an escape sequence and has a special meaning to the compiler."
},
{
"code": null,
"e": 1220,
"s": 1167,
"text": "The following table shows the Java escape sequences."
},
{
"code": n... |
Bootstrap 3 truncate long text inside rows of a table in a responsive way with HTML | To truncate long texts inside rows of a table, use the following CSS −
.table td.demo {
max-width: 177px;
}
.table td.demo span {
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
white-space: nowrap;
max-width: 100%;
}
The following is the HTML −
<td class = "demo">
<span>This is d... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "To truncate long texts inside rows of a table, use the following CSS −"
},
{
"code": null,
"e": 1316,
"s": 1133,
"text": ".table td.demo {\n max-width: 177px;\n}\n.table td.demo span {\n overflow: hidden;\n text-overflow: ellip... |
MySQL: How to Write a Query That Returns the Top Records in a Group | by Casey McMullen | Towards Data Science | This article will show you a simple query example in MySQL 5.7 (along with an example using the rank() function in MySQL 8.0) that will return the top 3 orders per month out of an orders table.
If you’ve ever wanted to write a query that returns the top n number of records out of a group or category, you’ve come to the... | [
{
"code": null,
"e": 366,
"s": 172,
"text": "This article will show you a simple query example in MySQL 5.7 (along with an example using the rank() function in MySQL 8.0) that will return the top 3 orders per month out of an orders table."
},
{
"code": null,
"e": 760,
"s": 366,
"... |
Python | How to Parse Command-Line Options | 12 Jun, 2019
In this article, we will discuss how to write a Python program to parse options supplied on the command line (found in sys.argv). The argparse module can be used to parse command-line options.
Code #1 : Using argparse module
'''Hypothetical command-line tool for searching a collection of files for one or m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2019"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "In this article, we will discuss how to write a Python program to parse options supplied on the command line (found in sys.argv). The argparse module can be used to parse comm... |
Scala - Variables | Variables are nothing but reserved memory locations to store values. This means that when you create a variable, you reserve some space in memory.
Based on the data type of a variable, the compiler allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to va... | [
{
"code": null,
"e": 2279,
"s": 2132,
"text": "Variables are nothing but reserved memory locations to store values. This means that when you create a variable, you reserve some space in memory."
},
{
"code": null,
"e": 2529,
"s": 2279,
"text": "Based on the data type of a variabl... |
LIFO (Last-In-First-Out) approach in Programming | 21 Jun, 2022
Prerequisites – FIFO (First-In-First-Out) approach in Programming, FIFO vs LIFO approach in Programming LIFO is an abbreviation for last in, first out. It is a method for handling data structures where the first element is processed last and the last element is processed first.Real-life example:
In this e... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 351,
"s": 53,
"text": "Prerequisites – FIFO (First-In-First-Out) approach in Programming, FIFO vs LIFO approach in Programming LIFO is an abbreviation for last in, first out. It is a method for han... |
Passing and Returning Objects in C++ | 17 Mar, 2021
In C++ we can pass class’s objects as arguments and also return them from a function the same way we pass and return other variables. No special keyword or header file is required to do so.
To pass an object as an argument we write the object name as the argument while calling the function the same way we... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Mar, 2021"
},
{
"code": null,
"e": 245,
"s": 54,
"text": "In C++ we can pass class’s objects as arguments and also return them from a function the same way we pass and return other variables. No special keyword or header file is req... |
List BinarySearch() Method in C# | 02 Sep, 2021
List<T>.BinarySearch() Method uses a binary search algorithm to locate a specific element in the sorted List<T> or a portion of it. There are 3 methods in the overload list of this method as follows:
BinarySearch(T)
BinarySearch(T, IComparer<T>)
BinarySearch(Int32, Int32, T, IComparer<T>)
This method sear... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 228,
"s": 28,
"text": "List<T>.BinarySearch() Method uses a binary search algorithm to locate a specific element in the sorted List<T> or a portion of it. There are 3 methods in the overload list of... |
MapReduce – Understanding With Real-Life Example | 30 Jul, 2020
MapReduce is a programming model used to perform distributed processing in parallel in a Hadoop cluster, which Makes Hadoop working so fast. When you are dealing with Big Data, serial processing is no more of any use. MapReduce has mainly two tasks which are divided phase-wise:
Map Task
Reduce Task
Let us ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jul, 2020"
},
{
"code": null,
"e": 333,
"s": 54,
"text": "MapReduce is a programming model used to perform distributed processing in parallel in a Hadoop cluster, which Makes Hadoop working so fast. When you are dealing with Big Dat... |
PHP | DateTime format() Function | 10 Oct, 2019
The DateTime::format() function is an inbuilt function in PHP which is used to return the new formatted date according to the specified format.
Syntax:
Object oriented stylestring DateTime::format( string $format )orstring DateTimeImmutable::format( string $format )orstring DateTimeInterface::format( strin... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Oct, 2019"
},
{
"code": null,
"e": 172,
"s": 28,
"text": "The DateTime::format() function is an inbuilt function in PHP which is used to return the new formatted date according to the specified format."
},
{
"code": null,
... |
Y Fractal tree in Python using Turtle | 02 Jul, 2020
A fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple process over and over in an ongoing feedback loop. Driven by recursion, fractals are images of dynamic systems – the pictures of Chaos.
In this... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jul, 2020"
},
{
"code": null,
"e": 328,
"s": 28,
"text": "A fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple process ove... |
A Shell program To Find The GCD | Linux | 18 Jan, 2021
The given problem asked in fico placement interview round. Find the gcd of two given numbers using shell scripting We are given two numbers A and B and now task is to find the Greatest Common divisor (gcd) of two given number using shell scripting .Asked in interview : FICOExample:
Input
25 15
Output
5... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n18 Jan, 2021"
},
{
"code": null,
"e": 337,
"s": 52,
"text": "The given problem asked in fico placement interview round. Find the gcd of two given numbers using shell scripting We are given two numbers A and B and now task is to find th... |
JavaScript | Iterator | 29 Jan, 2020
It’s an object or pattern that allows us to traverse over a list or collection. Iterators define the sequences and implement the iterator protocol that returns an object by using a next() method that contains the value and done. The value contains the next value of iterator sequence and the done is the boo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jan, 2020"
},
{
"code": null,
"e": 496,
"s": 28,
"text": "It’s an object or pattern that allows us to traverse over a list or collection. Iterators define the sequences and implement the iterator protocol that returns an object by us... |
How to set or get the config variables in Codeigniter ? | 28 Nov, 2021
Config Class: The Config class provides means to retrieve configuration preferences. The config items in Codeigniter can be set and get in the environment. The config value $this->config can be used to get and set items in the environment. The config items are contained within an array, namely, $config. Th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 496,
"s": 28,
"text": "Config Class: The Config class provides means to retrieve configuration preferences. The config items in Codeigniter can be set and get in the environment. The config value $t... |
Angular ng Bootstrap Toast Component | 06 Jul, 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 Toast in angular ng bootstrap. The Toast component is used to make a component that ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 379,
"s": 28,
"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 responsive w... |
GATE | GATE CS 2020 | Question 43 | 01 Sep, 2021
Consider the productions A → PQ and A → XY. Each of the five non-terminals A,P,Q,X, and Y has two attributes: s is a synthesized attribute, and i is an inherited attribute. Consider the following rules.
Rule 1: P.i=A.i+2, Q.i=P.i+A.i, and A.s=P.s+Q.s
Rule 2: X.i=A.i+Y.s and Y.i=X.s+A.i
Which one of the fo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 231,
"s": 28,
"text": "Consider the productions A → PQ and A → XY. Each of the five non-terminals A,P,Q,X, and Y has two attributes: s is a synthesized attribute, and i is an inherited attribute. Co... |
Python | String Split including spaces | 01 May, 2019
The problems and at the same time applications of list splitting is quite common while working with python strings. The spaces are usually tend to ignore in the use cases. But sometimes, we might not need to omit the spaces but include them in our programming output. Let’s discuss certain ways in which thi... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 May, 2019"
},
{
"code": null,
"e": 384,
"s": 52,
"text": "The problems and at the same time applications of list splitting is quite common while working with python strings. The spaces are usually tend to ignore in the use cases. Bu... |
Python PIL | Image.transpose() method | 17 Jun, 2021
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Jun, 2021"
},
{
"code": null,
"e": 425,
"s": 28,
"text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to ... |
Find floor and ceil in an unsorted array | 08 Jul, 2022
Given an unsorted array arr[] and an element x, find floor and ceiling of x in arr[0..n-1].Floor of x is the largest element which is smaller than or equal to x. Floor of x doesn’t exist if x is smaller than smallest element of arr[].Ceil of x is the smallest element which is greater than or equal to x. Ce... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 428,
"s": 52,
"text": "Given an unsorted array arr[] and an element x, find floor and ceiling of x in arr[0..n-1].Floor of x is the largest element which is smaller than or equal to x. Floor of x d... |
Scala | Either | 17 Apr, 2019
In Scala Either, functions exactly similar to an Option. The only dissimilarity is that with Either it is practicable to return a string which can explicate the instructions about the error that appeared. The Either has two children which are named as Right and Left where, Right is similar to the Some clas... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Apr, 2019"
},
{
"code": null,
"e": 521,
"s": 28,
"text": "In Scala Either, functions exactly similar to an Option. The only dissimilarity is that with Either it is practicable to return a string which can explicate the instructions a... |
SQL NOT NULL Constraint | 22 Sep, 2021
In SQL, constraints are some set of rules that are applied to the data type of the specified table. Or we can say that using constraints we can apply limits on the type of data that can be stored in the particular column of the table. Constraints are typically placed specified along with CREATE statement. ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Sep, 2021"
},
{
"code": null,
"e": 378,
"s": 28,
"text": "In SQL, constraints are some set of rules that are applied to the data type of the specified table. Or we can say that using constraints we can apply limits on the type of dat... |
How to check whether a form or a control is touched or not in Angular 10 ? | 03 Jun, 2021
In this article, we are going to check whether a form is touched or not in Angular 10. The touched property is used to report that the control or the form is touched or not.
Syntax:
form.touched
Return Value:
boolean: the boolean value to check whether a form is touched or not.
NgModule: Module used by the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jun, 2021"
},
{
"code": null,
"e": 202,
"s": 28,
"text": "In this article, we are going to check whether a form is touched or not in Angular 10. The touched property is used to report that the control or the form is touched or not."
... |
Python | Program to print duplicates from a list of integers | 30 Jun, 2022
Given a list of integers with duplicate elements in it. The task to generate another list, which contains only the duplicate elements. In simple words, the new list should contain the elements which appear more than one.
Examples :
Input : list = [10, 20, 30, 20, 20, 30, 40, 50, -20, 60, 60, -20, -20]
Out... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 273,
"s": 52,
"text": "Given a list of integers with duplicate elements in it. The task to generate another list, which contains only the duplicate elements. In simple words, the new list should co... |
Python | Pandas Series.to_csv() | 24 Jun, 2020
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.to_csv() function write the given se... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n24 Jun, 2020"
},
{
"code": null,
"e": 311,
"s": 54,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based inde... |
int keyword in C | 15 Jun, 2022
In the C programming language, the keyword ‘int’ is used in a type declaration to give a variable an integer type. However, the fact that the type represents integers does not mean it can represent all integers. The size of an int variable is fixed and determined by the C implementation you use. The C Stan... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n15 Jun, 2022"
},
{
"code": null,
"e": 661,
"s": 52,
"text": "In the C programming language, the keyword ‘int’ is used in a type declaration to give a variable an integer type. However, the fact that the type represents integers does no... |
Find all distinct palindromic sub-strings of a given string | 14 Jul, 2022
Given a string of lowercase ASCII characters, find all distinct continuous palindromic sub-strings of it.
Examples:
Input: str = "abaaa"
Output: Below are 5 palindrome sub-strings
a
aa
aaa
aba
b
Input: str = "geek"
Output: Below are 4 palindrome sub-strings
e
ee
g
k
Method 1:
Step 1: Finding all pali... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n14 Jul, 2022"
},
{
"code": null,
"e": 159,
"s": 52,
"text": "Given a string of lowercase ASCII characters, find all distinct continuous palindromic sub-strings of it. "
},
{
"code": null,
"e": 170,
"s": 159,
"text":... |
How to remove array element in MongoDB? | To remove array element in MongoDB, you can use pullandin operator. The syntax is as follows:
db.yourCollectionName.update({},
{$pull:{yourFirstArrayName:{$in:["yourValue"]},yourSecondArrayName:"yourValue"}},
{multi:true}
);
To understand the above syntax, let us create a collection with document. The query to cr... | [
{
"code": null,
"e": 1156,
"s": 1062,
"text": "To remove array element in MongoDB, you can use pullandin operator. The syntax is as follows:"
},
{
"code": null,
"e": 1293,
"s": 1156,
"text": "db.yourCollectionName.update({},\n {$pull:{yourFirstArrayName:{$in:[\"yourValue\"]},yo... |
TestNG - Run JUnit Tests | Now that you have understood TestNG and its various tests, you must be worried by now as to how to refactor your existing JUnit code. There's no need to worry, as TestNG provides a way to shift from JUnit to TestNG at your own pace. You can execute your existing JUnit test cases using TestNG.
TestNG can automatically r... | [
{
"code": null,
"e": 2354,
"s": 2060,
"text": "Now that you have understood TestNG and its various tests, you must be worried by now as to how to refactor your existing JUnit code. There's no need to worry, as TestNG provides a way to shift from JUnit to TestNG at your own pace. You can execute your... |
Replace the odd positioned elements with their cubes and even positioned elements with their squares - GeeksforGeeks | 09 Dec, 2021
Given an array arr[] of n elements, the task is to replace all the odd positioned elements with their cubes and even positioned elements with their squares i.e. the resultant array must be {arr[0]3, arr[1]2, arr[2]3, arr[3]2, ...}.Examples:
Input: arr[]= {2, 3, 4, 5} Output: 8 9 64 25 Updated array will b... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 24647,
"s": 24405,
"text": "Given an array arr[] of n elements, the task is to replace all the odd positioned elements with their cubes and even positioned elements with their squares i.e. th... |
Tryit Editor v3.6 - Show Python | f = open("demofile.txt", "r")
for x in f: | [
{
"code": null,
"e": 30,
"s": 0,
"text": "f = open(\"demofile.txt\", \"r\")"
}
] |
Coding a production ready API - part 1: implementing an ORM | by Mike Huls | Towards Data Science | Imagine going to a restaurant. You sit down, look at the menu and select some dishes. Then you walk to the kitchen, tell the chef what you want to eat and wait for him to finish before taking your meal back to your table. What’s going on in this weird restaurant?
An application without an API is much like a restaurant ... | [
{
"code": null,
"e": 436,
"s": 172,
"text": "Imagine going to a restaurant. You sit down, look at the menu and select some dishes. Then you walk to the kitchen, tell the chef what you want to eat and wait for him to finish before taking your meal back to your table. What’s going on in this weird res... |
How to change the href value of <a> tag after click on button using JavaScript ? - GeeksforGeeks | 27 Apr, 2020
JavaScript is a high-level, interpreted, dynamically-typed and client-side scripting language. HTML is used to create static web pages. JavaScript enables interactive web pages when used along with HTML and CSS. Document Object Manipulation (DOM) is a programming interface for HTML and XML documents. DOM a... | [
{
"code": null,
"e": 25080,
"s": 25052,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 25803,
"s": 25080,
"text": "JavaScript is a high-level, interpreted, dynamically-typed and client-side scripting language. HTML is used to create static web pages. JavaScript enables interact... |
Python Program for Common Divisors of Two Numbers | In this article, we will learn about the solution to the problem statement given below.
Problem statement − We are given two integers, we need to display the common divisors of two numbers
Here we are computing the minimum of the two numbers we take as input. A loop to
calculate the divisors by computed by dividing eac... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "In this article, we will learn about the solution to the problem statement given below."
},
{
"code": null,
"e": 1251,
"s": 1150,
"text": "Problem statement − We are given two integers, we need to display the common divisors of two n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.