title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
string at() in C++ - GeeksforGeeks | 08 Jul, 2021
std::string::at can be used to extract characters by characters from a given string. It supports two different syntaxes both having similar parameters: Syntax 1:
char& string::at (size_type idx)
Syntax 2:
const char& string::at (size_type idx) const
idx : index number
Both forms return the character t... | [
{
"code": null,
"e": 25632,
"s": 25604,
"text": "\n08 Jul, 2021"
},
{
"code": null,
"e": 25796,
"s": 25632,
"text": "std::string::at can be used to extract characters by characters from a given string. It supports two different syntaxes both having similar parameters: Syntax 1: ... |
Detection of a specific color(blue here) using OpenCV with Python - GeeksforGeeks | 31 Dec, 2021
The following code in python uses OpenCV library which is employed for image processing techniques. The program allows the detection of a specific color in a live stream video content. A video is composed of infinite frames at different time instants. We will detect the colour of every frame one by one. Th... | [
{
"code": null,
"e": 25995,
"s": 25967,
"text": "\n31 Dec, 2021"
},
{
"code": null,
"e": 26351,
"s": 25995,
"text": "The following code in python uses OpenCV library which is employed for image processing techniques. The program allows the detection of a specific color in a live ... |
Dealing with class imbalanced image datasets using the Focal Tversky Loss | by Robin Vinod | Towards Data Science | Class imbalanced datasets is a frequent problem experienced when trying to train segmentation networks. The first time I trained an image segmentation model, I was getting over 96% accuracy straight off the bat. Either I unknowingly made the biggest breakthrough since the inception of the first CNN, or there was someth... | [
{
"code": null,
"e": 519,
"s": 171,
"text": "Class imbalanced datasets is a frequent problem experienced when trying to train segmentation networks. The first time I trained an image segmentation model, I was getting over 96% accuracy straight off the bat. Either I unknowingly made the biggest break... |
Perfect Square factors of a Number - GeeksforGeeks | 30 May, 2021
Given an integer N, the task is to find the number of factors of N which are a perfect square.
Examples:
Input: N = 100 Output: 4 Explanation: There are four factors of 100 (1, 4, 25, 100) that are perfect square.Input: N = 900 Output: 8 Explanation: There are eight factors of 900 (1, 4, 9, 25, 36, 100, ... | [
{
"code": null,
"e": 26169,
"s": 26141,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 26264,
"s": 26169,
"text": "Given an integer N, the task is to find the number of factors of N which are a perfect square."
},
{
"code": null,
"e": 26276,
"s": 26264,
"tex... |
Features of C++ 20 - GeeksforGeeks | 31 Dec, 2020
C++ has a tradition of introducing new improvements and features in every 3 years in the form of a standard. With the last standard having released in 2017 as C++ 17, C++20 is going to be the latest standard. Below ere are some major features in C++ 20:
C++ Concepts library
3-way comparisons
Map contains
R... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n31 Dec, 2020"
},
{
"code": null,
"e": 25919,
"s": 25665,
"text": "C++ has a tradition of introducing new improvements and features in every 3 years in the form of a standard. With the last standard having released in 2017 as C++ ... |
Cross Join in LINQ - GeeksforGeeks | 01 Jan, 2020
In LINQ, the cross join is a process in which the elements of two sequences are combined with each other means the element of first sequence or collection is combined with the elements of another sequence or collection without any key selection or any filtering condition and the number of elements present ... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n01 Jan, 2020"
},
{
"code": null,
"e": 26170,
"s": 25547,
"text": "In LINQ, the cross join is a process in which the elements of two sequences are combined with each other means the element of first sequence or collection is combi... |
Sorting array of strings (or words) using Trie | Set-2 (Handling Duplicates) - GeeksforGeeks | 09 Jul, 2021
Given an array of strings, print them in alphabetical (dictionary) order. If there are duplicates in input array, we need to print all the occurrences.Examples:
Input : arr[] = { "abc", "xyz", "abcd", "bcd", "abc" }
Output : abc abc abcd bcd xyz
Input : arr[] = { "geeks", "for", "geeks", "a", "portal", ... | [
{
"code": null,
"e": 25733,
"s": 25705,
"text": "\n09 Jul, 2021"
},
{
"code": null,
"e": 25896,
"s": 25733,
"text": "Given an array of strings, print them in alphabetical (dictionary) order. If there are duplicates in input array, we need to print all the occurrences.Examples: "... |
Building a custom tf.data pipeline for object detection | by Florian Hermisch | Towards Data Science | Building an efficient input pipeline is an important performance optimization for training deep neural networks. Beside this, data provisioning needs even to be well structured and transparent do be ruled out as a source of errors for your training. While a lot of current developments are running on PyTorch — Tensorflo... | [
{
"code": null,
"e": 948,
"s": 171,
"text": "Building an efficient input pipeline is an important performance optimization for training deep neural networks. Beside this, data provisioning needs even to be well structured and transparent do be ruled out as a source of errors for your training. While... |
The Battle of Interactive Geographic Visualization Part 1 — Interactive Geoplot Using One Line of Code | by Francis Adrian Viernes | Towards Data Science | Geospatial data is probably one of the most complex forms of data that currently exists. For one reason, this form of data is not used in the usual conversations between analysts. For example, analysts do not usually talk about latitude and longitude, and/or, shapefiles.
For another reason, the pattern exhibited by geo... | [
{
"code": null,
"e": 443,
"s": 171,
"text": "Geospatial data is probably one of the most complex forms of data that currently exists. For one reason, this form of data is not used in the usual conversations between analysts. For example, analysts do not usually talk about latitude and longitude, and... |
JavaScript program to merge two objects into a single object and adds the values for same keys | We have to write a function that takes in two objects, merges them into a single object, and adds the values for same keys. This has to be done in linear time and constant space, means using at most only one loop and merging the properties in the pre-existing objects and not creating any new variable.
So, let’s write t... | [
{
"code": null,
"e": 1365,
"s": 1062,
"text": "We have to write a function that takes in two objects, merges them into a single object, and adds the values for same keys. This has to be done in linear time and constant space, means using at most only one loop and merging the properties in the pre-ex... |
How to pass a value in where clause on PreparedStatement using JDBC? | To execute a statement with Where clause using PreparedStatement. Prepare the query by replacing the value in the clause with place holder “?” and, pass this query as a parameter to the prepareStatement() method.
String query = "SELECT * FROM mobile_sales WHERE unit_sale >= ?";
//Creating the PreparedStatement object
P... | [
{
"code": null,
"e": 1275,
"s": 1062,
"text": "To execute a statement with Where clause using PreparedStatement. Prepare the query by replacing the value in the clause with place holder “?” and, pass this query as a parameter to the prepareStatement() method."
},
{
"code": null,
"e": 143... |
How to Convert Pandas Dataframe to Keras RNN and Back to Pandas for Multivariate Regression Problems | by Ran Pelta | Towards Data Science | The problem I encountered was rather common (I think): Taking data in a pandas dataframe format and making predictions using a time series regression model with keras RNN where I have more than one independent X (AKA features or predictors) and one dependent y. To be more precise, the problem was not to build the model... | [
{
"code": null,
"e": 677,
"s": 172,
"text": "The problem I encountered was rather common (I think): Taking data in a pandas dataframe format and making predictions using a time series regression model with keras RNN where I have more than one independent X (AKA features or predictors) and one depend... |
What are static member functions in C#? | Static functions can access only static variables. The static functions exist even before the object is created.
Set static functions as −
public static int getNum() {}
The following is an example demonstrating the use of static functions −
Live Demo
using System;
namespace Demo {
class StaticVar {
public st... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "Static functions can access only static variables. The static functions exist even before the object is created."
},
{
"code": null,
"e": 1201,
"s": 1175,
"text": "Set static functions as −"
},
{
"code": null,
"e": 1231,
... |
Stop Wasting Time with PyTorch Datasets! | by Eric Hofesmann | Towards Data Science | PyTorch is one of the most popular deep learning libraries out there. It provides one of the best balances between being easy to learn and a powerful framework for creating and training models quickly. Extensions of it like PyTorch Lightning make it even easier to write up and scale up networks.
While it’s great that y... | [
{
"code": null,
"e": 469,
"s": 172,
"text": "PyTorch is one of the most popular deep learning libraries out there. It provides one of the best balances between being easy to learn and a powerful framework for creating and training models quickly. Extensions of it like PyTorch Lightning make it even ... |
Get all methods of any object JavaScript | We are required to write a program (function) that takes in an object reference and returns an array of all the methods (member functions) that lives on that object.We are only required to return the methods in the array and not any other property that might have value of type other than a function.
We will use the Obj... | [
{
"code": null,
"e": 1363,
"s": 1062,
"text": "We are required to write a program (function) that takes in an object reference and returns an array of all the methods (member functions) that lives on that object.We are only required to return the methods in the array and not any other property that ... |
Automatically Generate Hotel Descriptions with LSTM | by Susan Li | Towards Data Science | In order to build a content based recommender system, I collected hotel descriptions for 152 hotels in Seattle. I was thinking of some other ways to torture this good quality clean data set.
Hey! why not train my own text-generating neural network of hotel descriptions? That is, create a language model for generating n... | [
{
"code": null,
"e": 363,
"s": 172,
"text": "In order to build a content based recommender system, I collected hotel descriptions for 152 hotels in Seattle. I was thinking of some other ways to torture this good quality clean data set."
},
{
"code": null,
"e": 604,
"s": 363,
"tex... |
OpenCV - Gaussian Blur | In Gaussian Blur operation, the image is convolved with a Gaussian filter instead of the box filter. The Gaussian filter is a low-pass filter that removes the high-frequency components are reduced.
You can perform this operation on an image using the Gaussianblur() method of the imgproc class. Following is the syntax o... | [
{
"code": null,
"e": 3202,
"s": 3004,
"text": "In Gaussian Blur operation, the image is convolved with a Gaussian filter instead of the box filter. The Gaussian filter is a low-pass filter that removes the high-frequency components are reduced."
},
{
"code": null,
"e": 3340,
"s": 320... |
How to convert character to ASCII code using JavaScript ? - GeeksforGeeks | 15 Sep, 2020
The purpose of this article is to get the ASCII code of any character by using JavaScript charCodeAt() method. This method is used to return the number indicating the Unicode value of the character at the specified index.
Syntax:
string.charCodeAt(index);
Example: Below code illustrates that they can take... | [
{
"code": null,
"e": 25376,
"s": 25348,
"text": "\n15 Sep, 2020"
},
{
"code": null,
"e": 25598,
"s": 25376,
"text": "The purpose of this article is to get the ASCII code of any character by using JavaScript charCodeAt() method. This method is used to return the number indicating ... |
Python String split() Method | Python string method split() returns a list of all the words in the string, using str as the separator (splits on all whitespace if left unspecified), optionally limiting the number of splits to num.
Following is the syntax for split() method −
str.split(str="", num=string.count(str)).
str − This is any delimeter, by... | [
{
"code": null,
"e": 2445,
"s": 2244,
"text": "Python string method split() returns a list of all the words in the string, using str as the separator (splits on all whitespace if left unspecified), optionally limiting the number of splits to num."
},
{
"code": null,
"e": 2490,
"s": ... |
Data Structure - Circular Linked List | Circular Linked List is a variation of Linked list in which the first element points to the last element and the last element points to the first element. Both Singly Linked List and Doubly Linked List can be made into a circular linked list.
In singly linked list, the next pointer of the last node points to the first ... | [
{
"code": null,
"e": 2823,
"s": 2580,
"text": "Circular Linked List is a variation of Linked list in which the first element points to the last element and the last element points to the first element. Both Singly Linked List and Doubly Linked List can be made into a circular linked list."
},
{
... |
F# - Functions | In F#, functions work like data types. You can declare and use a function in the same way like any other variable.
Since functions can be used like any other variables, you can −
Create a function, with a name and associate that name with a type.
Assign it a value.
Perform some calculation on that value.
Pass it as a p... | [
{
"code": null,
"e": 2276,
"s": 2161,
"text": "In F#, functions work like data types. You can declare and use a function in the same way like any other variable."
},
{
"code": null,
"e": 2340,
"s": 2276,
"text": "Since functions can be used like any other variables, you can −"
... |
Tryit Editor v3.7 | Tryit: HTML table - hover rows | [] |
Why should you be careful about String concatenation (+) operator in loops using Java? | Strings are used to store a sequence of characters in Java, they are treated as objects. The String class of the java.lang package represents a String.
You can create a String either by using the new keyword (like any other object) or, by assigning value to the literal (like any other primitive datatype).
Public class ... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "Strings are used to store a sequence of characters in Java, they are treated as objects. The String class of the java.lang package represents a String."
},
{
"code": null,
"e": 1369,
"s": 1214,
"text": "You can create a String either... |
Find the amplitude and number of waves for the given array | 24 Feb, 2022
Given an array arr[] of N integers, the task is to find the amplitude and number of waves for the given array. If the array is not a wave array then print -1.
Wave Array: An array is a wave array if it is continuously strictly increasing and decreasing or vice-versa. Amplitude is defined as the maximum dif... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Feb, 2022"
},
{
"code": null,
"e": 187,
"s": 28,
"text": "Given an array arr[] of N integers, the task is to find the amplitude and number of waves for the given array. If the array is not a wave array then print -1."
},
{
"c... |
Prototype Method – Python Design Patterns | 12 Sep, 2021
Prototype Method is a Creational Design Pattern which aims to reduce the number of classes used for an application. It allows you to copy existing objects independent of the concrete implementation of their classes. Generally, here the object is created by copying a prototypical instance during run-time. I... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Sep, 2021"
},
{
"code": null,
"e": 636,
"s": 54,
"text": "Prototype Method is a Creational Design Pattern which aims to reduce the number of classes used for an application. It allows you to copy existing objects independent of the ... |
Shell Script to Check Hard Disk Revolutions Per Minute (RPM) Speed | 30 Jun, 2021
RPM is an acronym for Revolution Per Minute. RPM is the number of revolutions a hard disk makes in a single minute. Normally, the higher the RPM of a disk the better it is, however with higher RPM comes higher cost. Below is a shell script to check the RPM of a hard disk.
hdparm is an acronym for hard disk... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 301,
"s": 28,
"text": "RPM is an acronym for Revolution Per Minute. RPM is the number of revolutions a hard disk makes in a single minute. Normally, the higher the RPM of a disk the better it is, ho... |
Self Dual functions in Digital Logic | 07 Apr, 2022
A function is said to be Self dual if and only if its dual is equivalent to the given function, i.e., if a given function is f(X, Y, Z) = (XY + YZ + ZX) then its dual is, fd(X, Y, Z) = (X + Y).(Y + Z).(Z + X) (fd = dual of the given function) = (XY + YZ + ZX), it is equivalent to the given function. So fun... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 381,
"s": 53,
"text": "A function is said to be Self dual if and only if its dual is equivalent to the given function, i.e., if a given function is f(X, Y, Z) = (XY + YZ + ZX) then its dual is, fd(... |
List all values of a certain field in MongoDB? | To get the list of all values of certain fields in MongoDB, you can use distinct(). The syntax is as follows −
db.yourCollectionName.distinct( "yourFieldName");
To understand the above syntax, let us create a collection with the document. The query to create a collection with a document is as follows −
> db.listAllValu... | [
{
"code": null,
"e": 1298,
"s": 1187,
"text": "To get the list of all values of certain fields in MongoDB, you can use distinct(). The syntax is as follows −"
},
{
"code": null,
"e": 1348,
"s": 1298,
"text": "db.yourCollectionName.distinct( \"yourFieldName\");"
},
{
"code... |
Windows 10 Toast Notifications with Python | We can create a notifier for the events that occurred in Windows using Python. This is very simple with the win10toast module. If you are familiar with the Toast in Android then understanding the Toast notifications with Python is a piece of cake. We can generate notifications whenever an event occurs as a remainder. L... | [
{
"code": null,
"e": 1517,
"s": 1187,
"text": "We can create a notifier for the events that occurred in Windows using Python. This is very simple with the win10toast module. If you are familiar with the Toast in Android then understanding the Toast notifications with Python is a piece of cake. We ca... |
DateTime.FromOADate() Method in C# | 28 Jan, 2019
DateTime.FromOADate(Double) Method is used to return a DateTime equivalent to the specified OLE Automation Date.
Syntax: public static DateTime FromOADate (double d);Here, it takes an OLE Automation Date value.
Return Value: This method returns an object that represents the same date and time as d.
Excepti... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 141,
"s": 28,
"text": "DateTime.FromOADate(Double) Method is used to return a DateTime equivalent to the specified OLE Automation Date."
},
{
"code": null,
"e": 239,
"s": 141,
"t... |
Python Turtle Tutorial | 08 Feb, 2021
Turtle is a Python module that provides a drawing board like feature, which enables users to create pictures and shapes. Turtle is one of the most popular ways of introducing programming to kids and is part of the original LOGO programming language.
The on-screen pen that is used for drawing is called the ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n08 Feb, 2021"
},
{
"code": null,
"e": 304,
"s": 54,
"text": "Turtle is a Python module that provides a drawing board like feature, which enables users to create pictures and shapes. Turtle is one of the most popular ways of introducing... |
Python | Generate QR Code using pyqrcode module | 17 May, 2020
Let’s see how to generate QR code in Python using pyqrcode module.
pyqrcode module is a QR code generator. The module automates most of the building process for creating QR codes. This module attempts to follow the QR code standard as closely as possible. The terminology and the encodings used in pyqrcode ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 121,
"s": 54,
"text": "Let’s see how to generate QR code in Python using pyqrcode module."
},
{
"code": null,
"e": 394,
"s": 121,
"text": "pyqrcode module is a QR code generator... |
Microsoft Azure – Create Alert For Conditional Access Policy Changes | 16 Dec, 2021
In this article, we will look into the process of creating an alert for Conditional Access Policy Changes. Conditional Access brings signals together, to make decisions, and enforce organizational policies.
Creation of a New Conditional Access Policy,Deletion of a Conditional Access Policy,Changes to any ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "In this article, we will look into the process of creating an alert for Conditional Access Policy Changes. Conditional Access brings signals together, to make decisions, and e... |
JavaScript | Importing and Exporting Modules | 14 Feb, 2019
JavaScript Modules are basically libraries which are included in the given program. They are used for connecting two JavaScript programs together to call the functions written in one program without writing the body of the functions itself in another program.
Importing a library: It means include a library... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Feb, 2019"
},
{
"code": null,
"e": 314,
"s": 54,
"text": "JavaScript Modules are basically libraries which are included in the given program. They are used for connecting two JavaScript programs together to call the functions writte... |
Array Size in Perl | The size of an array in Perl can be determined using the scalar context on the array - the returned value will be the number of elements in the array −
@array = (1,2,3);
print "Size: ",scalar @array,"\n";
The value returned will always be the physical size of the array, not the number of valid elements. You can demonst... | [
{
"code": null,
"e": 1214,
"s": 1062,
"text": "The size of an array in Perl can be determined using the scalar context on the array - the returned value will be the number of elements in the array −"
},
{
"code": null,
"e": 1267,
"s": 1214,
"text": "@array = (1,2,3);\nprint \"Siz... |
Yii - Installation | The most straightforward way to get started with Yii2 is to use the basic application template provided by the Yii2 team. This template is also available through the Composer tool.
Step 1 − Find a suitable directory in your hard drive and download the Composer PHAR (PHP archive) via the following command.
curl -sS http... | [
{
"code": null,
"e": 3014,
"s": 2833,
"text": "The most straightforward way to get started with Yii2 is to use the basic application template provided by the Yii2 team. This template is also available through the Composer tool."
},
{
"code": null,
"e": 3140,
"s": 3014,
"text": "S... |
Make all column names lower case in MySQL with a single query | Let us first create a −
mysql> create table DemoTable1
-> (
-> StudentFirstName varchar(20),
-> StudentLastName varchar(20),
-> StudentAge int,
-> StudentCountryName varchar(20)
-> );
Query OK, 0 rows affected (4.20 sec)
Let us now make all column names lower case in MySQL −
mysql> select concat('alte... | [
{
"code": null,
"e": 1086,
"s": 1062,
"text": "Let us first create a −"
},
{
"code": null,
"e": 1301,
"s": 1086,
"text": "mysql> create table DemoTable1\n -> (\n -> StudentFirstName varchar(20),\n -> StudentLastName varchar(20),\n -> StudentAge int,\n -> StudentCountryN... |
How to add the entry in the windows host file using PowerShell? | To add the content to the host file, we need to first retrieve the content using the Get-Content command and the need to set the content to the host file after adding the entry. The Code is shown below. We need to add the global entry to it.
$file = "C:\Windows\System32\drivers\etc\hosts"
$hostfile = Get-Content $file
... | [
{
"code": null,
"e": 1429,
"s": 1187,
"text": "To add the content to the host file, we need to first retrieve the content using the Get-Content command and the need to set the content to the host file after adding the entry. The Code is shown below. We need to add the global entry to it."
},
{
... |
Program to calculate area of a parallelogram | 05 Apr, 2021
Given integers A and B denoting the length of sides of a parallelogram and Y that is the angle between the sides and length of diagonals D1 and D2 of the parallelogram and an angle 0 at the intersection of the diagonal, the task is to find the area of the parallelogram from the information provided.
A para... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 329,
"s": 28,
"text": "Given integers A and B denoting the length of sides of a parallelogram and Y that is the angle between the sides and length of diagonals D1 and D2 of the parallelogram and an ... |
Python | numpy.datetime64() method | 05 Sep, 2019
With the help of numpy.datetime64() method, we can get the date in a numpy array in a particular format i.e year-month-day by using numpy.datetime64() method.
Syntax : numpy.datetime64(date)Return : Return the date in a format ‘yyyy-mm-dd’.
Example #1 :In this example we can see that by using numpy.datetim... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n05 Sep, 2019"
},
{
"code": null,
"e": 187,
"s": 28,
"text": "With the help of numpy.datetime64() method, we can get the date in a numpy array in a particular format i.e year-month-day by using numpy.datetime64() method."
},
{
"c... |
Inserting m into n such that m starts at bit j and ends at bit i. | 31 May, 2021
We are given two numbers n and m, and two-bit positions, i and j. Insert bits of m into n starting from j to i. We can assume that the bits j through i have enough space to fit all of m. That is, if m = 10011, you can assume that there are at least 5 bits between j and i. You would not, for example, have j... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 443,
"s": 52,
"text": "We are given two numbers n and m, and two-bit positions, i and j. Insert bits of m into n starting from j to i. We can assume that the bits j through i have enough space to f... |
Double Hashing | Difficulty Level :
Medium
Double hashing is a collision resolving technique in Open Addressed Hash tables. Double hashing uses the idea of applying a second hash function to key when a collision occurs.
Advantages of Double hashing
The advantage of Double hashing is that it is one of the best form of probing, producing... | [
{
"code": null,
"e": 26,
"s": 0,
"text": "Difficulty Level :\nMedium"
},
{
"code": null,
"e": 203,
"s": 26,
"text": "Double hashing is a collision resolving technique in Open Addressed Hash tables. Double hashing uses the idea of applying a second hash function to key when a coll... |
MATLAB - Arrays | All variables of all data types in MATLAB are multidimensional arrays. A vector is a one-dimensional array and a matrix is a two-dimensional array.
We have already discussed vectors and matrices. In this chapter, we will discuss multidimensional arrays. However, before that, let us discuss some special types of arrays.... | [
{
"code": null,
"e": 2423,
"s": 2275,
"text": "All variables of all data types in MATLAB are multidimensional arrays. A vector is a one-dimensional array and a matrix is a two-dimensional array."
},
{
"code": null,
"e": 2596,
"s": 2423,
"text": "We have already discussed vectors ... |
How to Create Option Menu in Android using Kotlin? | 04 Oct, 2021
In this article, we will learn how to create an options menu in the Android app using Kotlin. To have an options menu in an Activity, we need to create a new menu XML file and inflate it using menuInflator.inflate( ) method. In menu.xml we will design the options menu as the requirement of the app.
Step 1:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 328,
"s": 28,
"text": "In this article, we will learn how to create an options menu in the Android app using Kotlin. To have an options menu in an Activity, we need to create a new menu XML file and... |
response.cookies – Python requests | 01 Mar, 2020
Python requests are generally used to fetch the content from a particular resource URI. Whenever we make a request to a specified URI through Python, it returns a response object. Now, this response object would be used to access certain features such as content, headers, etc. This article revolves around ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Mar, 2020"
},
{
"code": null,
"e": 483,
"s": 28,
"text": "Python requests are generally used to fetch the content from a particular resource URI. Whenever we make a request to a specified URI through Python, it returns a response obj... |
PostgreSQL - Environment Setup | To start understanding the PostgreSQL basics, first let us install the PostgreSQL. This chapter explains about installing the PostgreSQL on Linux, Windows and Mac OS platforms.
Follow the given steps to install PostgreSQL on your Linux machine. Make sure you are logged in as root before you proceed for the installation... | [
{
"code": null,
"e": 3136,
"s": 2959,
"text": "To start understanding the PostgreSQL basics, first let us install the PostgreSQL. This chapter explains about installing the PostgreSQL on Linux, Windows and Mac OS platforms."
},
{
"code": null,
"e": 3281,
"s": 3136,
"text": "Follo... |
Pandas.DataFrame.iterrows() function in Python | 23 May, 2022
Pandas DataFrame.iterrows() is used to iterate over a pandas Data frame rows in the form of (index, series) pair. This function iterates over the data frame column, it will return a tuple with the column name and content in form of series.
Syntax: DataFrame.iterrows() Yields: index- The index of the row... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 May, 2022"
},
{
"code": null,
"e": 296,
"s": 53,
"text": "Pandas DataFrame.iterrows() is used to iterate over a pandas Data frame rows in the form of (index, series) pair. This function iterates over the data frame column, it will r... |
How to create a multiline entry with Tkinter? | 16 Mar, 2021
Tkinter is a library in Python for developing GUI. It provides various widgets for developing GUI(Graphical User Interface). The Entry widget in tkinter helps to take user input, but it collects the input limited to a single line of text. Therefore, to create a Multiline entry text in tkinter there are a n... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 377,
"s": 54,
"text": "Tkinter is a library in Python for developing GUI. It provides various widgets for developing GUI(Graphical User Interface). The Entry widget in tkinter helps to take user in... |
Node.js This Binding | 08 Oct, 2021
Arrow functions don’t bind their own ‘this’ value. Instead, the ‘this’ value of the scope in which it was defined is accessible. This makes arrow functions bad candidates for methods, as this won’t be a reference to the object the method is defined on.
For methods, ES6 provides a new method definition synt... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Oct, 2021"
},
{
"code": null,
"e": 281,
"s": 28,
"text": "Arrow functions don’t bind their own ‘this’ value. Instead, the ‘this’ value of the scope in which it was defined is accessible. This makes arrow functions bad candidates for ... |
How to Check Internet Connection in Android with No Internet Connection Dialog? | 18 Jul, 2021
Hello geeks, today we are going to learn that how we can add the functionality of Internet Alert to our application. You have definitely seen in almost all applications that when data is turned off or application is not able to get Internet then it pops up a message of “No Internet Connection” and then aga... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2021"
},
{
"code": null,
"e": 483,
"s": 28,
"text": "Hello geeks, today we are going to learn that how we can add the functionality of Internet Alert to our application. You have definitely seen in almost all applications that w... |
Pure CSS Tables | 28 Sep, 2021
Introduction: Before starting with Pure we must know the basics of plain CSS. Basically, Pure CSS is a Cascading Style Sheet framework developed by YAHOO. The main reason for developing Pure CSS is used to develop responsive and reactive websites like Bootstrap which is also compatible with mobile devices ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Sep, 2021"
},
{
"code": null,
"e": 466,
"s": 52,
"text": "Introduction: Before starting with Pure we must know the basics of plain CSS. Basically, Pure CSS is a Cascading Style Sheet framework developed by YAHOO. The main reason for... |
ReactJS htmlFor Attribute | 25 May, 2021
React.js library is all about splitting the app into several components. Each Component has its own lifecycle. React provides us some in-built methods that we can override at particular stages in the life-cycle of the component.
In class-based components, the htmlFor attribute is used to get the HTML for t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 257,
"s": 28,
"text": "React.js library is all about splitting the app into several components. Each Component has its own lifecycle. React provides us some in-built methods that we can override at ... |
new operator in Java | 30 May, 2018
When you are declaring a class in java, you are just creating a new data type. A class provides the blueprint for objects. You can create an object from a class. However obtaining objects of a class is a two-step process :
Declaration : First, you must declare a variable of the class type. This variable do... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 May, 2018"
},
{
"code": null,
"e": 275,
"s": 52,
"text": "When you are declaring a class in java, you are just creating a new data type. A class provides the blueprint for objects. You can create an object from a class. However obta... |
goto statement in C/C++ | The goto statement is a jump statement. Within a function, it is used to jump from one statement to another. The use of this statement is highly discouraged. It makes the program complex and difficult to trace the control flow of program. It makes hard to modify the program.
Here is the syntax of goto statement in C la... | [
{
"code": null,
"e": 1338,
"s": 1062,
"text": "The goto statement is a jump statement. Within a function, it is used to jump from one statement to another. The use of this statement is highly discouraged. It makes the program complex and difficult to trace the control flow of program. It makes hard ... |
PostgreSQL - DELETE USING - GeeksforGeeks | 28 Aug, 2020
PostgreSQL has various techniques to delete duplicate rows. One of them is using the DELETE USING statement.
Syntax: DELETE FROM table_name row1 USING table_name row2 WHERE condition;
For the purpose of demonstration let’s set up a sample table(say, basket) that stores fruits as follows:
CREATE TABLE bas... | [
{
"code": null,
"e": 24036,
"s": 24008,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 24145,
"s": 24036,
"text": "PostgreSQL has various techniques to delete duplicate rows. One of them is using the DELETE USING statement."
},
{
"code": null,
"e": 24222,
"s": 2... |
How to join two Vectors using STL in C++? - GeeksforGeeks | 28 May, 2021
Given two vectors, join these two vectors using STL in C++.Example:
Input: vec1 = {1, 45, 54, 71, 76, 12}, vec2 = {1, 7, 5, 4, 6, 12} Output: {1, 4, 5, 6, 7, 12, 45, 54, 71, 76}Input: vec1 = {1, 7, 5, 4, 6, 12}, vec2 = {10, 12, 11} Output: {1, 4, 5, 6, 7, 10, 11, 12}
Approach: Joining can be done with ... | [
{
"code": null,
"e": 24385,
"s": 24357,
"text": "\n28 May, 2021"
},
{
"code": null,
"e": 24455,
"s": 24385,
"text": "Given two vectors, join these two vectors using STL in C++.Example: "
},
{
"code": null,
"e": 24657,
"s": 24455,
"text": "Input: vec1 = {1, 45... |
Advanced monitoring of AWS glue jobs by enabling spark UI | by Shubham Jain | Towards Data Science | Apache spark is currently an indispensable framework when it comes to processing huge datasets. Most of the data engineers and data scientists who are dealing with large amounts of data leverages spark capabilities at some point in time.
When it comes to understanding of spark, 20% comprises of the code syntax, 30% are... | [
{
"code": null,
"e": 410,
"s": 172,
"text": "Apache spark is currently an indispensable framework when it comes to processing huge datasets. Most of the data engineers and data scientists who are dealing with large amounts of data leverages spark capabilities at some point in time."
},
{
"co... |
How to hide axes and gridlines in Matplotlib? | To hide axes (X and Y) and gridlines, we can take the following steps −
Create x and y points using numpy.
Create x and y points using numpy.
Plot a horizontal line (y=0) for X-Axis, using the plot() method with linestyle, labels.
Plot a horizontal line (y=0) for X-Axis, using the plot() method with linestyle, labels.
... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To hide axes (X and Y) and gridlines, we can take the following steps −"
},
{
"code": null,
"e": 1169,
"s": 1134,
"text": "Create x and y points using numpy."
},
{
"code": null,
"e": 1204,
"s": 1169,
"text": "Crea... |
dir command in Linux with examples - GeeksforGeeks | 15 May, 2019
dir command in Linux is used to list the contents of a directory.
dir command differs from ls command in the format of listing contents that is in default listing options.By default, dir command lists the files and folders in columns, sorted vertically and special characters are represented by backslash es... | [
{
"code": null,
"e": 24432,
"s": 24404,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 24498,
"s": 24432,
"text": "dir command in Linux is used to list the contents of a directory."
},
{
"code": null,
"e": 24849,
"s": 24498,
"text": "dir command differs from... |
Prolog - Conjunctions & Disjunctions | In this chapter, we shall discuss Conjunction and Disjunction properties. These properties are used in other programming languages using AND and OR logics. Prolog also uses the same logic in its syntax.
Conjunction (AND logic) can be implemented using the comma (,) operator. So two predicates separated by comma are joi... | [
{
"code": null,
"e": 2295,
"s": 2092,
"text": "In this chapter, we shall discuss Conjunction and Disjunction properties. These properties are used in other programming languages using AND and OR logics. Prolog also uses the same logic in its syntax."
},
{
"code": null,
"e": 2743,
"s"... |
Byte Class Fields in Java with example - GeeksforGeeks | 12 Oct, 2018
Byte class is a wrapper class for the primitive type byte which contains several methods to effectively deal with a byte value like converting it to a string representation, and vice-versa. An object of Byte class can hold a single byte value.
Byte class offers four constants in the form of Fields. These a... | [
{
"code": null,
"e": 24466,
"s": 24438,
"text": "\n12 Oct, 2018"
},
{
"code": null,
"e": 24710,
"s": 24466,
"text": "Byte class is a wrapper class for the primitive type byte which contains several methods to effectively deal with a byte value like converting it to a string repre... |
How to Visualize Social Network With Graph Theory | by Khuyen Tran | Towards Data Science | After reading the books in the series A Song of Ice and Fired by G. R. R. Martin, as a true fan of Game of Thrones, you might be curious about who is the most influential person in Westeros. Or you know that Eddard Stark and Randyll Tarly are connected but not quite sure how exactly they are connected. Are they connect... | [
{
"code": null,
"e": 577,
"s": 172,
"text": "After reading the books in the series A Song of Ice and Fired by G. R. R. Martin, as a true fan of Game of Thrones, you might be curious about who is the most influential person in Westeros. Or you know that Eddard Stark and Randyll Tarly are connected bu... |
Create Python Datetime from string - GeeksforGeeks | 31 Aug, 2021
In this article, we are going to see how to create a python DateTime object from a given string.
For this, we will use the datetime.strptime() method. The strptime() method returns a DateTime object corresponding to date_string, parsed according to the format string given by the user.
Syntax: datetime.strp... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 24389,
"s": 24292,
"text": "In this article, we are going to see how to create a python DateTime object from a given string."
},
{
"code": null,
"e": 24578,
"s": 24389,
"t... |
How to Write and Call DLL's within Delphi | The following code creates a DLL containing two functions, Min and Max, with the objective of returning the larger of two integers.
Start a new DLL project in Delphi (Click File −> New, select DLL).
Save the project as delhpdll.
Fill in the code in the library as given below.
// Uffe wrote: This is a toy dll to demonst... | [
{
"code": null,
"e": 1784,
"s": 1652,
"text": "The following code creates a DLL containing two functions, Min and Max, with the objective of returning the larger of two integers."
},
{
"code": null,
"e": 1851,
"s": 1784,
"text": "Start a new DLL project in Delphi (Click File −> N... |
Font Awesome Icons | Font Awesome icons library provides 519 free scalable vector icons. This library is completely free for both personal and commercial use. Originally designed for Bootstrap, these icons can be customized easily.
To load the Font Awesome library, copy and paste the following line in the <head> section of the webpage.
<he... | [
{
"code": null,
"e": 2777,
"s": 2566,
"text": "Font Awesome icons library provides 519 free scalable vector icons. This library is completely free for both personal and commercial use. Originally designed for Bootstrap, these icons can be customized easily."
},
{
"code": null,
"e": 2883,... |
JavaScript ReferenceError - Can't access lexical declaration`variable' before initialization - GeeksforGeeks | 29 Jul, 2021
This JavaScript exception can’t access the lexical declaration `variable’ before initialization occurs if a lexical variable has been accessed before initialization. This could happen inside any block statement when let or const declarations are accessed when they are undefined.
Message:
ReferenceError: U... | [
{
"code": null,
"e": 25300,
"s": 25272,
"text": "\n29 Jul, 2021"
},
{
"code": null,
"e": 25580,
"s": 25300,
"text": "This JavaScript exception can’t access the lexical declaration `variable’ before initialization occurs if a lexical variable has been accessed before initializatio... |
Encapsulation in C++ | Encapsulation brings together the data and the methods that manipulate the data into a single component and protects them from outside interference. In essence, encapsulation involves bundling the data as well as the functions that use the data. Data encapsulation in lead to the very important concept of data hiding.
E... | [
{
"code": null,
"e": 1381,
"s": 1062,
"text": "Encapsulation brings together the data and the methods that manipulate the data into a single component and protects them from outside interference. In essence, encapsulation involves bundling the data as well as the functions that use the data. Data en... |
iText - Drawing a Circle | In this chapter, we will see how to draw a circle on a PDF document using iText library.
You can create an empty PDF Document by instantiating the Document class. While instantiating this class, you need to pass a PdfDocument object as a parameter to its constructor.
To draw a circle on a PdfDocument, instantiate the P... | [
{
"code": null,
"e": 2457,
"s": 2368,
"text": "In this chapter, we will see how to draw a circle on a PDF document using iText library."
},
{
"code": null,
"e": 2636,
"s": 2457,
"text": "You can create an empty PDF Document by instantiating the Document class. While instantiating... |
BigDecimal subtract() Method in Java with Examples - GeeksforGeeks | 27 May, 2019
The java.math.BigDecimal.subtract(BigDecimal val) is used to calculate the Arithmetic difference of two BigDecimals. This method is used to find the arithmetic difference of large numbers without compromising with the precision of the result. This method performs an operation upon the current BigDecimal by... | [
{
"code": null,
"e": 25689,
"s": 25661,
"text": "\n27 May, 2019"
},
{
"code": null,
"e": 26065,
"s": 25689,
"text": "The java.math.BigDecimal.subtract(BigDecimal val) is used to calculate the Arithmetic difference of two BigDecimals. This method is used to find the arithmetic dif... |
Find, Set, Clear, Toggle and Modify bits in C - GeeksforGeeks | 11 Dec, 2020
Given a positive integer N, the task is to perform the following sequence of operations on the binary representation of N in C.
Finding a bit: Find the Kth bit in binary representation of N.
Setting a bit: If Kth bit is 0, then set it to 1. Otherwise, leave it unchanged.
Clearing a bit: If Kth bit is 1, th... | [
{
"code": null,
"e": 26279,
"s": 26251,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 26407,
"s": 26279,
"text": "Given a positive integer N, the task is to perform the following sequence of operations on the binary representation of N in C."
},
{
"code": null,
"e"... |
Python | Make a list of intervals with sequential numbers - GeeksforGeeks | 20 Nov, 2019
Given a list of sequential numbers, Write a Python program to convert the given list into list of intervals.
Examples:
Input : [2, 3, 4, 5, 7, 8, 9, 11, 15, 16]
Output : [[2, 5], [7, 11], [15, 16]]
Input : [1, 2, 3, 6, 7, 8, 9, 10]
Output : [[1, 3], [6, 10]]
Method #1 : Naive Approach
First, we use the ... | [
{
"code": null,
"e": 25497,
"s": 25469,
"text": "\n20 Nov, 2019"
},
{
"code": null,
"e": 25606,
"s": 25497,
"text": "Given a list of sequential numbers, Write a Python program to convert the given list into list of intervals."
},
{
"code": null,
"e": 25616,
"s": 2... |
PostgreSQL - NULLIF() Function - GeeksforGeeks | 28 Aug, 2020
PostgreSQL has a NULLIF function to handle null values. The NULLIF function is one of the most common conditional expressions provided by PostgreSQL.
Syntax:NULLIF(argument_1,argument_2);
The NULLIF function returns a null value if argument_1 equals to argument_2, otherwise it returns argument_1.
Example... | [
{
"code": null,
"e": 29245,
"s": 29217,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 29395,
"s": 29245,
"text": "PostgreSQL has a NULLIF function to handle null values. The NULLIF function is one of the most common conditional expressions provided by PostgreSQL."
},
{
... |
NOW() function in MYSQL - GeeksforGeeks | 11 Jan, 2021
NOW() :This function in MySQL is used to check the current date and time value. The return type for NOW() function is either in ‘YYYY-MM-DD HH:MM:SS’ format or YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is used in a string or numeric context.
Syntax :
NOW()
Parameter :This method does ... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n11 Jan, 2021"
},
{
"code": null,
"e": 25777,
"s": 25513,
"text": "NOW() :This function in MySQL is used to check the current date and time value. The return type for NOW() function is either in ‘YYYY-MM-DD HH:MM:SS’ format or YYY... |
Replace each element of Array with it's corresponding rank - GeeksforGeeks | 18 May, 2021
Given an array arr[] of N integers, the task is to replace each element of Array with their rank in array.
The rank of an element is defined as the distance between the element with the first element of the array when the array is arranged in ascending order. If two or more are same in the array then their... | [
{
"code": null,
"e": 26747,
"s": 26719,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 26854,
"s": 26747,
"text": "Given an array arr[] of N integers, the task is to replace each element of Array with their rank in array."
},
{
"code": null,
"e": 27357,
"s": 268... |
Python isinstance() method - GeeksforGeeks | 23 Sep, 2021
Python isinstance() function returns True if the object is specified types, and it will not match then return False.
Syntax : isinstance(obj, class)
Parameters :
obj : The object that need to be checked as a part of class or not.
class : class/type/tuple of class or type, against which object is needed t... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 25655,
"s": 25537,
"text": "Python isinstance() function returns True if the object is specified types, and it will not match then return False. "
},
{
"code": null,
"e": 25687,
... |
How to encode/decode URL using AngularJS ? - GeeksforGeeks | 16 Aug, 2021
Encode URL
Given an URL and the task is to encode the URL in AngularJS.
Approach: The approach is to use the encodeURIComponent() method to encode the URL. In the first example the URL(‘https://ide.geeksforgeeks.org/tryit.php’) is encoded and in the second example the URL(‘https://www.geeksforgeeks.org’) i... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 26365,
"s": 26354,
"text": "Encode URL"
},
{
"code": null,
"e": 26426,
"s": 26365,
"text": "Given an URL and the task is to encode the URL in AngularJS."
},
{
"cod... |
How to move MongoDB document from one collections to another ? - GeeksforGeeks | 24 May, 2021
The following approach covers move MongoDB documents from one collection to another. With the help of mongoose, we will move a MongoDB document from one collection to another. Make sure that in the schema of both the collections all the fields are the same.
Install mongoose:
Step 1: You can visit the link ... | [
{
"code": null,
"e": 25779,
"s": 25751,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 26037,
"s": 25779,
"text": "The following approach covers move MongoDB documents from one collection to another. With the help of mongoose, we will move a MongoDB document from one collection... |
Object Equality in Scala - GeeksforGeeks | 14 Aug, 2021
In programing language, Comparing two values for equality is ubiquitous. We define an equals method for a Scala class so we can compare object instances to each other. In Scala, equality method signifying object identity, however, it’s not used much. In scala, Three different equality methods available –
... | [
{
"code": null,
"e": 25081,
"s": 25053,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 25388,
"s": 25081,
"text": "In programing language, Comparing two values for equality is ubiquitous. We define an equals method for a Scala class so we can compare object instances to each ot... |
How to perform a real time search and filter on a HTML table? - GeeksforGeeks | 31 Oct, 2019
Here, we learn how to perform a real-time search and filter on an HTML table. When a word is entered, all rows of the table will be searched (except the table head) and the rows containing the matching word will be displayed. For this, we can use JQuery methods.
filter(): This method is used to filter out ... | [
{
"code": null,
"e": 26765,
"s": 26737,
"text": "\n31 Oct, 2019"
},
{
"code": null,
"e": 27028,
"s": 26765,
"text": "Here, we learn how to perform a real-time search and filter on an HTML table. When a word is entered, all rows of the table will be searched (except the table head... |
C | Arrays | Question 1 - GeeksforGeeks | 10 Jan, 2013
Predict the output of below program:
#include <stdio.h> int main(){ int arr[5]; // Assume that base address of arr is 2000 and size of integer // is 32 bit arr++; printf("%u", arr); return 0;}
(A) 2002(B) 2004(C) 2020(D) lvalue requiredAnswer: (D)Explanation: Array name i... | [
{
"code": null,
"e": 25277,
"s": 25249,
"text": "\n10 Jan, 2013"
},
{
"code": null,
"e": 25314,
"s": 25277,
"text": "Predict the output of below program:"
},
{
"code": "#include <stdio.h> int main(){ int arr[5]; // Assume that base address of arr is 2000 and ... |
Find number of pairs (x, y) in an Array such that x^y > y^x | Set 2 - GeeksforGeeks | 04 May, 2021
Given two arrays X[] and Y[] of positive integers, find the number of pairs such that x^y > y^x where x is an element from X[] and y is an element from Y[].Examples:
Input: X[] = {2, 1, 6}, Y = {1, 5} Output: 3 Explanation: The 3 possible pairs are: (2, 1) => 21 > 12 (2, 5) => 25 (= 32) > 52 (= 25) (6, 1) ... | [
{
"code": null,
"e": 26065,
"s": 26037,
"text": "\n04 May, 2021"
},
{
"code": null,
"e": 26231,
"s": 26065,
"text": "Given two arrays X[] and Y[] of positive integers, find the number of pairs such that x^y > y^x where x is an element from X[] and y is an element from Y[].Example... |
SQL Query to Convert UTC to Local Time Zone - GeeksforGeeks | 19 May, 2021
In this article, we will cover how to convert UTC to the local time zone for the different times of UTC in the database. Now, let’s execute a query that converts the UTC to local time zone using MSSQL as our database in detail step-by-step.
Step 1: Creating a database time_converter by using the following ... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n19 May, 2021"
},
{
"code": null,
"e": 25754,
"s": 25513,
"text": "In this article, we will cover how to convert UTC to the local time zone for the different times of UTC in the database. Now, let’s execute a query that converts t... |
Operations on Python Counter - GeeksforGeeks | 18 Dec, 2021
The counter can be used to calculate the frequency in a list or in a string because as any list or string is passed as input, it returns output as a dictionary having keys are the unique elements of the list and values are the corresponding frequencies of the elements. In the code given below, Counter from... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n18 Dec, 2021"
},
{
"code": null,
"e": 26090,
"s": 25563,
"text": "The counter can be used to calculate the frequency in a list or in a string because as any list or string is passed as input, it returns output as a dictionary hav... |
Python - Matching Pairs of Brackets - GeeksforGeeks | 22 Jun, 2020
Sometimes, while working with Python data, we can have a problem in which we need to pair all the elements with the suitable closing brackets, and can have data associated with pairing. This kind of problem is classic application of Stack Data Structure and can have usage across many domains. Let’s discuss... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 25891,
"s": 25537,
"text": "Sometimes, while working with Python data, we can have a problem in which we need to pair all the elements with the suitable closing brackets, and can have data as... |
How to Count Distinct Values of a Pandas Dataframe Column? - GeeksforGeeks | 19 Aug, 2020
Let’s see How to Count Distinct Values of a Pandas Dataframe Column?
Consider a tabular structure as given below which has to be created as Dataframe. The columns are height, weight and age. The records of 8 students form the rows.
First step is to create the Dataframe for the above tabulation. Look at th... | [
{
"code": null,
"e": 26307,
"s": 26279,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 26376,
"s": 26307,
"text": "Let’s see How to Count Distinct Values of a Pandas Dataframe Column?"
},
{
"code": null,
"e": 26540,
"s": 26376,
"text": "Consider a tabular st... |
Flutter - Grouped List - GeeksforGeeks | 14 May, 2021
The grouped_list package in Flutter as the name suggests is used to create list items in different groups. This package also provides 3 specific functions that are listed below:
List Items can be separated into groups.An individual header can be given to each groupMost fields from the ListView.builder is a... | [
{
"code": null,
"e": 25261,
"s": 25233,
"text": "\n14 May, 2021"
},
{
"code": null,
"e": 25439,
"s": 25261,
"text": "The grouped_list package in Flutter as the name suggests is used to create list items in different groups. This package also provides 3 specific functions that are... |
Difference Between getPath() and getCanonicalPath() in Java - GeeksforGeeks | 02 Dec, 2021
getPath() method is a part of File class. This function returns the path of the given file object. The function returns a string object which contains the path of the given file object whereas the getCanonicalPath() method is a part of Path class. This function returns the Canonical pathname of the given f... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n02 Dec, 2021"
},
{
"code": null,
"e": 25990,
"s": 25225,
"text": "getPath() method is a part of File class. This function returns the path of the given file object. The function returns a string object which contains the path of ... |
time() function in C - GeeksforGeeks | 15 Jul, 2021
The time() function is defined in time.h (ctime in C++) header file. This function returns the time since 00:00:00 UTC, January 1, 1970 (Unix timestamp) in seconds. If second is not a null pointer, the returned value is also stored in the object pointed to by second.
Syntax:
time_t time( time_t *second )... | [
{
"code": null,
"e": 26160,
"s": 26132,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 26428,
"s": 26160,
"text": "The time() function is defined in time.h (ctime in C++) header file. This function returns the time since 00:00:00 UTC, January 1, 1970 (Unix timestamp) in seconds... |
Basic Quiz App In Flutter API - GeeksforGeeks | 25 Nov, 2021
Flutter API is an open-source software development kit for building beautiful UI which is natively compiled. Currently, it is available is a stable version for IOS and Android OS.
In this app we are going to have the features or modules mentioned below:
Five multiple-choice questions ( more questions can b... | [
{
"code": null,
"e": 27183,
"s": 27155,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 27363,
"s": 27183,
"text": "Flutter API is an open-source software development kit for building beautiful UI which is natively compiled. Currently, it is available is a stable version for IOS... |
How to Sort Pandas DataFrame? - GeeksforGeeks | 28 Jul, 2020
In this article, we will discuss how to sort Pandas Dataframe. Let’s create a dataframe.
Example :
Python3
# importing pandas libraryimport pandas as pd # creating and initializing a nested listage_list = [['Afghanistan', 1952, 8425333, 'Asia'], ['Australia', 1957, 9712569, 'Oceania'], ... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 25644,
"s": 25555,
"text": "In this article, we will discuss how to sort Pandas Dataframe. Let’s create a dataframe."
},
{
"code": null,
"e": 25654,
"s": 25644,
"text": "E... |
How To Test Your Software With Julia | by Emmett Boudreau | Towards Data Science | Testing is one of the most important aspects of iterative software development. This is because tests can reveal problems with software automatically without ever needing to actually use the software. Needless to say, it is probably a bad idea to push software that does not even work to a repository, and testing can av... | [
{
"code": null,
"e": 928,
"s": 171,
"text": "Testing is one of the most important aspects of iterative software development. This is because tests can reveal problems with software automatically without ever needing to actually use the software. Needless to say, it is probably a bad idea to push sof... |
Compute Derivative of an Expression in R Programming - deriv() and D() Function - GeeksforGeeks | 30 Jun, 2020
In R programming, derivative of a function can be computed using deriv() and D() function. It is used to compute derivatives of simple expressions.
Syntax:deriv(expr, name)D(expr, name)
Parameters:expr: represents an expression or a formula with no LHSname: represents character vector to which derivatives ... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n30 Jun, 2020"
},
{
"code": null,
"e": 25390,
"s": 25242,
"text": "In R programming, derivative of a function can be computed using deriv() and D() function. It is used to compute derivatives of simple expressions."
},
{
"... |
How to Create a RAID 0 Storage Array with ‘mdadm’ on Ubuntu 16.04 | In this article, we will learn how to create a RAID 0 Array configuration using the ‘mdadm’ utility.
The ‘mdadm’ is a utility which is used to create and manage storage arrays on Linux with RAID capability where the administrators are having a great flexibility in managing the individual storage devices and creating th... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "In this article, we will learn how to create a RAID 0 Array configuration using the ‘mdadm’ utility."
},
{
"code": null,
"e": 1440,
"s": 1163,
"text": "The ‘mdadm’ is a utility which is used to create and manage storage arrays on Lin... |
How to Install Winamp on Ubuntu/Linux Mint | Are you looking for an alternative Linux music player? Winamp might be a good option to consider.Winamp supports a wide variety of contemporary and specialized music file formats, including MIDI, MOD, MPEG-1 audio layers 1 and 2, AAC, M4A, FLAC, WAV, OGG Vorbis, and Windows Media Audio. It supports gapless playback for... | [
{
"code": null,
"e": 1515,
"s": 1062,
"text": "Are you looking for an alternative Linux music player? Winamp might be a good option to consider.Winamp supports a wide variety of contemporary and specialized music file formats, including MIDI, MOD, MPEG-1 audio layers 1 and 2, AAC, M4A, FLAC, WAV, OG... |
Function to check two strings and return common words in JavaScript | We are required to write a JavaScript function that takes in two strings as arguments. The function should then check the two strings for common characters and prepare a new string of those characters.
Lastly, the function should return that string.
The code for this will be −
const str1 = "IloveLinux";
const str2 = "w... | [
{
"code": null,
"e": 1264,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in two strings as arguments. The function should then check the two strings for common characters and prepare a new string of those characters."
},
{
"code": null,
"e": 1312,
"s":... |
Using PyTorchVideo for efficient video understanding | by Eric Hofesmann | Towards Data Science | The massive sea of computer vision models can be difficult to navigate if you are trying to find the best models or even just relevant baselines for your task. Model zoos like TensorFlow Hub and Facebook’s Detectron2 make it easy to access popular models. Further, libraries like PyTorch lightning make it easy to then m... | [
{
"code": null,
"e": 756,
"s": 172,
"text": "The massive sea of computer vision models can be difficult to navigate if you are trying to find the best models or even just relevant baselines for your task. Model zoos like TensorFlow Hub and Facebook’s Detectron2 make it easy to access popular models.... |
How to find out port of MySQL Server? | To find the port of the MySQL server, the command show can be used. Its syntax is as follows −
show variables where variable_name=’port’;
The above syntax is used to get the port number of the MySQL server using the following query −
mysql> show variables where variable_name = 'port';
After executing the above command,... | [
{
"code": null,
"e": 1157,
"s": 1062,
"text": "To find the port of the MySQL server, the command show can be used. Its syntax is as follows −"
},
{
"code": null,
"e": 1200,
"s": 1157,
"text": "show variables where variable_name=’port’;"
},
{
"code": null,
"e": 1296,
... |
Tryit Editor v3.7 | HTML Input attributes
Tryit: The placeholder attribute | [
{
"code": null,
"e": 32,
"s": 10,
"text": "HTML Input attributes"
}
] |
Print all n-digit numbers whose sum of digits equals to given sum in C++ | In this problem, we are given two numbers n and sum. We have to print all n digit numbers whose sum is equal to the sum. In this problem, numbers with leading 0’s are not considered.
Let’s take an example to understand the problem,
Input: n = 2 , sum = 5
Output: 14 23 32 41 50
Explanation: The sum of digits of the numb... | [
{
"code": null,
"e": 1245,
"s": 1062,
"text": "In this problem, we are given two numbers n and sum. We have to print all n digit numbers whose sum is equal to the sum. In this problem, numbers with leading 0’s are not considered."
},
{
"code": null,
"e": 1294,
"s": 1245,
"text": ... |
Build A MFCC-Based Music Recommendation Engine On Cloud | by Xiaoqian Wang | Towards Data Science | In the past decade, the evolution of mobile technology and cellular networks have unprecedentedly reshaped the world in ways that no one could have predicted. We are living in an era of information explosion and taking advantage of fancy mobile apps driven by ever more affordable cellular data. Walkmans and iPods have ... | [
{
"code": null,
"e": 1176,
"s": 47,
"text": "In the past decade, the evolution of mobile technology and cellular networks have unprecedentedly reshaped the world in ways that no one could have predicted. We are living in an era of information explosion and taking advantage of fancy mobile apps drive... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.