title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to update DB2 table with a duplicate primary key?
To maintain the integrity of a DB2 table the primary key is always unique in the entire table. For example, if we have a DB2 table ORDERS which stores all the orders and the primary key of the table is column ORDER_ID. Then there can be only a single row having a particular order id. This will be useful to identify an ...
[ { "code": null, "e": 1400, "s": 1062, "text": "To maintain the integrity of a DB2 table the primary key is always unique in the entire\ntable. For example, if we have a DB2 table ORDERS which stores all the orders and the\nprimary key of the table is column ORDER_ID. Then there can be only a single ...
How to get signal strength in android?
This example demonstrate about How to get signal strength in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xml...
[ { "code": null, "e": 1132, "s": 1062, "text": "This example demonstrate about How to get signal strength in android." }, { "code": null, "e": 1261, "s": 1132, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to creat...
An AI agent plays tic-tac-toe (part 1): building the opponent to play against | by Paul Hiemstra | Towards Data Science
Where we build a brute force minimax tree search which will serve as the opponent to our reinforcement learning approach This article is part of a series that lets a computer play tic-tac-toe using reinforcement learning. You can find all the articles here. The goal is to provide a complete implementation that you can ...
[ { "code": null, "e": 167, "s": 46, "text": "Where we build a brute force minimax tree search which will serve as the opponent to our reinforcement learning approach" }, { "code": null, "e": 532, "s": 167, "text": "This article is part of a series that lets a computer play tic-tac...
Who Is Your Golden Goose?: Cohort Analysis | by Jiwon Jeong | Towards Data Science
Customer segmentation is the technique of diving customers into groups based on their purchase patterns to identify who are the most profitable groups. In segmenting customers, various criteria can also be used depending on the market such as geographic, demographic characteristics or behavior bases. This technique ass...
[ { "code": null, "e": 653, "s": 171, "text": "Customer segmentation is the technique of diving customers into groups based on their purchase patterns to identify who are the most profitable groups. In segmenting customers, various criteria can also be used depending on the market such as geographic, ...
Transfer Learning using ELMO Embeddings | by Sambit Mahapatra | Towards Data Science
Last year, the major developments in “Natural Language Processing” were about Transfer Learning. Basically, Transfer Learning is the process of training a model on a large-scale dataset and then using that pre-trained model to process learning for another target task. Transfer Learning became popular in the field of NL...
[ { "code": null, "e": 600, "s": 171, "text": "Last year, the major developments in “Natural Language Processing” were about Transfer Learning. Basically, Transfer Learning is the process of training a model on a large-scale dataset and then using that pre-trained model to process learning for another...
Convert character array to string in Arduino
In order to convert a character array to a string, the String() constructor can be used. An example is shown below − void setup() { // put your setup code here, to run once: Serial.begin(9600); Serial.println(); char buf[10] = "Hello!"; Serial.print("Char array: "); Serial.println(buf); String s =...
[ { "code": null, "e": 1179, "s": 1062, "text": "In order to convert a character array to a string, the String() constructor can be used. An example is shown below −" }, { "code": null, "e": 1515, "s": 1179, "text": "void setup() {\n // put your setup code here, to run once:\n ...
How to open new tab in same browser and switch between them using Selenium?
We can open new tabs in the same browser and switch between them using Selenium webdriver. Firstly, to open a new tab in the same browser we have to take the help of the methods – Keys.chord and sendKeys. The parameters Keys.CONTROL and Keys.ENTER are passed to the Keys.chord method. This method yields a string value a...
[ { "code": null, "e": 1267, "s": 1062, "text": "We can open new tabs in the same browser and switch between them using Selenium webdriver. Firstly, to open a new tab in the same browser we have to take the help of the methods – Keys.chord and sendKeys." }, { "code": null, "e": 1439, "...
How to implement Python __lt__ __gt__ custom (overloaded) operators?
Python has magic methods to define overloaded behaviour of operators. The comparison operators (<, <=, >, >=, == and !=) can be overloaded by providing definition to __lt__, __le__, __gt__, __ge__, __eq__ and __ne__ magic methods. Following program overloads < and > operators to compare objects of distance class. cla...
[ { "code": null, "e": 1379, "s": 1062, "text": "Python has magic methods to define overloaded behaviour of operators. The comparison operators (<, <=, >, >=, == and !=) can be overloaded by providing definition to __lt__, __le__, __gt__, __ge__, __eq__ and __ne__ magic methods. Following program ove...
Using CNNs and RNNs for Music Genre Recognition | by Priya Dwivedi | Towards Data Science
Audio data is becoming an important part of machine learning. We are using audio to interact with smart agents like Siri and Alexa. Audio will also be important for self-driving cars so they can not only “see” their surroundings but “hear” them as well. I wanted to explore deep learning techniques on audio files and mu...
[ { "code": null, "e": 887, "s": 172, "text": "Audio data is becoming an important part of machine learning. We are using audio to interact with smart agents like Siri and Alexa. Audio will also be important for self-driving cars so they can not only “see” their surroundings but “hear” them as well. I...
Intersection of Two Linked Lists in C++
A Linked List is a linear data structure in which each node has two blocks such that one block contains the value or data of the node and the other block contains the address of the next field. Let us assume that we have a linked list such that each node contains a random pointer which is pointing to the other nodes in...
[ { "code": null, "e": 1256, "s": 1062, "text": "A Linked List is a linear data structure in which each node has two blocks such that one block contains the value or data of the node and the other block contains the address of the next field." }, { "code": null, "e": 1532, "s": 1256, ...
How to Set Classpath in Java? - GeeksforGeeks
20 Nov, 2020 CLASSPATH describes the location where all the required files are available which are used in the application. Java Compiler and JVM (Java Virtual Machine) use CLASSPATH to locate the required files. If the CLASSPATH is not set, Java Compiler will not be able to find the required files and hence will throw...
[ { "code": null, "e": 24354, "s": 24326, "text": "\n20 Nov, 2020" }, { "code": null, "e": 24683, "s": 24354, "text": "CLASSPATH describes the location where all the required files are available which are used in the application. Java Compiler and JVM (Java Virtual Machine) use CLA...
Main thread vs child thread in C#
The first thread to be executed in a process is called the main thread. When a C# program starts execution, the main thread is automatically created. The threads created using the Thread class are called the child threads of the main thread. Here is an example showing how to create a main and child thread − Live Demo ...
[ { "code": null, "e": 1212, "s": 1062, "text": "The first thread to be executed in a process is called the main thread. When a C# program starts execution, the main thread is automatically created." }, { "code": null, "e": 1304, "s": 1212, "text": "The threads created using the Th...
Battleships in a Board in C++
Suppose we have an 2D board, we have to count how many battleships are in it. The battleships are represented with the symbol 'X', empty slots are represented with '.'s. We can assume these rules − You receive a valid board, made of only battleships or empty slots. You receive a valid board, made of only battleships or...
[ { "code": null, "e": 1260, "s": 1062, "text": "Suppose we have an 2D board, we have to count how many battleships are in it. The battleships are represented with the symbol 'X', empty slots are represented with '.'s. We can assume these rules −" }, { "code": null, "e": 1328, "s": 126...
Groovy - Object Oriented
In Groovy, as in any other Object-Oriented language, there is the concept of classes and objects to represent the objected oriented nature of the programming language. A Groovy class is a collection of data and the methods that operate on that data. Together, the data and methods of a class are used to represent some r...
[ { "code": null, "e": 2600, "s": 2238, "text": "In Groovy, as in any other Object-Oriented language, there is the concept of classes and objects to represent the objected oriented nature of the programming language. A Groovy class is a collection of data and the methods that operate on that data. Tog...
Enum in a class in Java
Yes, we can create Enum in a class in Java. Set the enum inside the class. Here, we have an Enum with four constants − enum Devices { LAPTOP, MOBILE, TABLET, DESKTOP; } Now, create objects inside the main() method − Devices d = Devices.MOBILE; System.out.println(d); d = Devices.DESKTOP; System.out.println(d); The follo...
[ { "code": null, "e": 1106, "s": 1062, "text": "Yes, we can create Enum in a class in Java." }, { "code": null, "e": 1181, "s": 1106, "text": "Set the enum inside the class. Here, we have an Enum with four constants −" }, { "code": null, "e": 1231, "s": 1181, "...
Distributed Data Pre-processing using Dask, Amazon ECS and Python (Part 2) | by Will Badr | Towards Data Science
In Part 1 of this series, I explained how to build a serverless cluster of Dask scheduler and workers on AWS Fargate. Scaling the number of workers up and down is quite simple. You can achieve that by running the below AWS CLI commands: bash~# aws ecs update-service — service Dask-Workers — desired-count 10 — cluster F...
[ { "code": null, "e": 408, "s": 171, "text": "In Part 1 of this series, I explained how to build a serverless cluster of Dask scheduler and workers on AWS Fargate. Scaling the number of workers up and down is quite simple. You can achieve that by running the below AWS CLI commands:" }, { "cod...
Ext.js - Themes
Ext.js provides a number of themes to be used in your applications. You can add a different theme in place of a classic theme and see the difference in the output. This is done simply by replacing the theme CSS file as explained ahead. Consider your very first Hello World application. Remove the following CSS from the ...
[ { "code": null, "e": 2259, "s": 2023, "text": "Ext.js provides a number of themes to be used in your applications. You can add a different theme in place of a classic theme and see the difference in the output. This is done simply by replacing the theme CSS file as explained ahead." }, { "co...
C++ Map Library - ~map() Function
The C++ destructor std::map::~map() destroys map object by deallocating it's memory. Following is the declaration for std::map::~map() function form std::map header. ~map(); None Destructor never returns value. This member function never throws exception. Linear i.e. O(n) Print Add Notes Bookmark this page
[ { "code": null, "e": 2688, "s": 2603, "text": "The C++ destructor std::map::~map() destroys map object by deallocating it's memory." }, { "code": null, "e": 2769, "s": 2688, "text": "Following is the declaration for std::map::~map() function form std::map header." }, { "c...
chr () in Python
This function return the string representing a character whose Unicode code point is the integer supplied as parameter to this function. For example, chr(65) returns the string 'A', while chr(126) returns the string '~'. The syntax of the function is as below. chr(n) where n is an integer value The below program shows ...
[ { "code": null, "e": 1283, "s": 1062, "text": "This function return the string representing a character whose Unicode code point is the integer supplied as parameter to this function. For example, chr(65) returns the string 'A', while chr(126) returns the string '~'." }, { "code": null, ...
How to limit Database Resources per Session in Oracle?
Problem: You want to limit the amount of resources a user can consume in your database. Solution To limit the resources, we can follow below steps. We can use below SQL statement to view the current setting of RESOURCE_LIMIT in our database. select name, value from v$parameter where name='resource_limit'; Create a prof...
[ { "code": null, "e": 1071, "s": 1062, "text": "Problem:" }, { "code": null, "e": 1150, "s": 1071, "text": "You want to limit the amount of resources a user can consume in your database." }, { "code": null, "e": 1159, "s": 1150, "text": "Solution" }, { ...
Rexx - ADDRESS
This method returns the name of the environment in the which the Rexx commands are currently running in. ADDRESS() None This method returns the name of the environment in the which the Rexx commands are currently running in. /* Main program */ say ADDRESS() When we run the above program we will get the following res...
[ { "code": null, "e": 2444, "s": 2339, "text": "This method returns the name of the environment in the which the Rexx commands are currently running in." }, { "code": null, "e": 2456, "s": 2444, "text": "ADDRESS() \n" }, { "code": null, "e": 2461, "s": 2456, "t...
std::basic_istream::gcount() in C++ with Examples - GeeksforGeeks
21 May, 2020 The std::basic_istream::gcount() is used to count the characters in the given string. It returns the number of characters extracted by the last unformatted input operation. The unformatted input operation is returned by these function: get(), getline(), ignore(), peek(), read(), etc. Header File: <iostream...
[ { "code": null, "e": 25343, "s": 25315, "text": "\n21 May, 2020" }, { "code": null, "e": 25628, "s": 25343, "text": "The std::basic_istream::gcount() is used to count the characters in the given string. It returns the number of characters extracted by the last unformatted input o...
Print the nodes of Binary Tree having a grandchild
13 Aug, 2021 Given a Binary Tree, the task is to print the nodes that have grandchildren. Examples: Input: Output: 20 8 Explanation: 20 and 8 are the grandparents of 4, 12 and 10, 14. Input: Output: 1 Explanation: 1 is the grandparent of 4, 5. Approach: The idea uses Recursion. Below are the steps: Traverse the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Aug, 2021" }, { "code": null, "e": 105, "s": 28, "text": "Given a Binary Tree, the task is to print the nodes that have grandchildren." }, { "code": null, "e": 116, "s": 105, "text": "Examples: " }, { "cod...
printf command in Linux with Examples
18 Feb, 2021 “printf” command in Linux is used to display the given string, number or any other format specifier on the terminal window. It works the same way as “printf” works in programming languages like C. Syntax: $printf [-v var] format [arguments] Note: printf can have format specifiers, escape sequences or ordi...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 Feb, 2021" }, { "code": null, "e": 250, "s": 53, "text": "“printf” command in Linux is used to display the given string, number or any other format specifier on the terminal window. It works the same way as “printf” works in program...
Python String rstrip() Method
19 Aug, 2021 Python String rstrip() method returns a copy of the string with trailing characters removed (based on the string argument passed). If no argument is passed, it removes trailing spaces. Syntax: string.rstrip([chars]) Parameters: chars (optional) – a string specifying the set of characters to be removed. Re...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 Aug, 2021" }, { "code": null, "e": 238, "s": 53, "text": "Python String rstrip() method returns a copy of the string with trailing characters removed (based on the string argument passed). If no argument is passed, it removes traili...
Using Network Science to explore hashtag culture on Instagram | by Sam Ho | Towards Data Science
This project proposes that Network Science and graph theory can be used to effectively analyse hashtag culture on Instagram. The relational characteristics of Instagram hashtags can be realised through these techniques and this allows for deeper understanding of conversations and themes found across hashtags. To demons...
[ { "code": null, "e": 483, "s": 172, "text": "This project proposes that Network Science and graph theory can be used to effectively analyse hashtag culture on Instagram. The relational characteristics of Instagram hashtags can be realised through these techniques and this allows for deeper understan...
D3.js node.sort() Function - GeeksforGeeks
31 Aug, 2020 The node.sort() function in D3.js is used to sort the children at each level of the given hierarchical data. The comparator function can be used to define the basis on which the sorting would be done. Syntax: node.sort( compare ) Parameters: This function accepts a single parameter as mentioned above and d...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n31 Aug, 2020" }, { "code": null, "e": 25501, "s": 25300, "text": "The node.sort() function in D3.js is used to sort the children at each level of the given hierarchical data. The comparator function can be used to define the basi...
How to create an unordered_map of pairs in C++?
In this tutorial, we will be discussing a program to understand how to create an unordered map of pairs in C++. Unordered maps are the ones that don't contain hash function for the pairs by default. If we want a hash value for a particular pair, it needs to be passed on explicitly. Live Demo #include <bits/stdc++.h> u...
[ { "code": null, "e": 1174, "s": 1062, "text": "In this tutorial, we will be discussing a program to understand how to create an unordered map of pairs in C++." }, { "code": null, "e": 1345, "s": 1174, "text": "Unordered maps are the ones that don't contain hash function for the p...
Python Pandas - Create a Horizontal Bar Chart
To plot a Horizontal Bar Plot, use the pandas.DataFrame.plot.barh. A bar plot shows comparisons among discrete categories. At first, import the required libraries − import pandas as pd import matplotlib.pyplot as plt Create a Pandas DataFrame with 4 columns − dataFrame = pd.DataFrame({"Car": ['Bentley', 'Lexus', 'BMW',...
[ { "code": null, "e": 1185, "s": 1062, "text": "To plot a Horizontal Bar Plot, use the pandas.DataFrame.plot.barh. A bar plot shows comparisons among discrete categories." }, { "code": null, "e": 1227, "s": 1185, "text": "At first, import the required libraries −" }, { "co...
How to call a parent window function from an iframe using JavaScript?
To call a parent window function, use “window.top”. You can try to run the following code to call a parent window function from an iframe Live Demo <!DOCTYPE html> <html> <body> <script> function display(){ alert("Hello World!"); } </script> <iframe id="myFrame"> ...
[ { "code": null, "e": 1114, "s": 1062, "text": "To call a parent window function, use “window.top”." }, { "code": null, "e": 1200, "s": 1114, "text": "You can try to run the following code to call a parent window function from an iframe" }, { "code": null, "e": 1210, ...
\odot - Tex Command
\odot - Used to create odot symbol. { \odot} \odot command draws odot symbol. \odot ⊙ \odot ⊙ \odot 14 Lectures 52 mins Ashraf Said 11 Lectures 1 hours Ashraf Said 9 Lectures 1 hours Emenwa Global, Ejike IfeanyiChukwu 29 Lectures 2.5 hours Mohammad Nauman ...
[ { "code": null, "e": 8022, "s": 7986, "text": "\\odot - Used to create odot symbol." }, { "code": null, "e": 8031, "s": 8022, "text": "{ \\odot}" }, { "code": null, "e": 8064, "s": 8031, "text": "\\odot command draws odot symbol." }, { "code": null, ...
3-D Reconstruction with Vision. Exactly an year back, before I started... | by Venkatesh Tata | Towards Data Science
Exactly a year back, before I started writing this article, I watched Andrej Karapathy, the director of AI at Tesla delivering a talk where he showed the world a glimpse of how a Tesla car perceives depth using the cameras hooked to the car in-order to reconstruct its surroundings in 3D and take decisions in real-time,...
[ { "code": null, "e": 611, "s": 171, "text": "Exactly a year back, before I started writing this article, I watched Andrej Karapathy, the director of AI at Tesla delivering a talk where he showed the world a glimpse of how a Tesla car perceives depth using the cameras hooked to the car in-order to re...
C Quiz - 101 | Question 2 - GeeksforGeeks
28 Jun, 2021 Assume int is 4 bytes, char is 1 byte and float is 4 bytes. Also, assume that pointer size is 4 bytes (i.e. typical case) char *pChar;int *pInt;float *pFloat; sizeof(pChar);sizeof(pInt);sizeof(pFloat); What’s the size returned for each of sizeof() operator?(A) 4 4 4(B) 1 4 4(C) 1 4 8(D) None of the aboveA...
[ { "code": null, "e": 24378, "s": 24350, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24500, "s": 24378, "text": "Assume int is 4 bytes, char is 1 byte and float is 4 bytes. Also, assume that pointer size is 4 bytes (i.e. typical case)" }, { "code": "char *pChar;int *p...
All combinations of strings that can be used to dial a number - GeeksforGeeks
06 Nov, 2020 Given a number, print all possible combinations of strings that can be used to dial the given number in a phone with following specifications. In the given phone, we can dial,2 using A or B or C,3 using D or E or F,...................8 using T or U or V,9 using W or X or Y or Z,1 using only 10 using 0. For...
[ { "code": null, "e": 26099, "s": 26071, "text": "\n06 Nov, 2020" }, { "code": null, "e": 26242, "s": 26099, "text": "Given a number, print all possible combinations of strings that can be used to dial the given number in a phone with following specifications." }, { "code"...
GWT - TextBox Widget
The TextBox widget represents a standard single-line text box. Following is the declaration for com.google.gwt.user.client.ui.TextBox class − public class TextBox extends TextBoxBase implements HasDirection Following default CSS Style rules will be applied to all the TextBox widget. You can override it as per ...
[ { "code": null, "e": 2086, "s": 2023, "text": "The TextBox widget represents a standard single-line text box." }, { "code": null, "e": 2165, "s": 2086, "text": "Following is the declaration for com.google.gwt.user.client.ui.TextBox class −" }, { "code": null, "e": 223...
How to display Material Chip View in React Native?
To display chips in the UI, we are going to make use of React Native Paper Material Design. Install react native paper as shown below − npm install --save-dev react-native-paper The chip component looks as follows on the UI − The basic chip component is as follows − <Chip icon="icontodisplay" onPress={onPressfunc}>Chip...
[ { "code": null, "e": 1154, "s": 1062, "text": "To display chips in the UI, we are going to make use of React Native Paper Material\nDesign." }, { "code": null, "e": 1198, "s": 1154, "text": "Install react native paper as shown below −" }, { "code": null, "e": 1240, ...
Check multiple conditions in if statement - Python - GeeksforGeeks
26 Mar, 2020 If-else conditional statement is used in Python when a situation leads to two conditions and one of them should hold true. Syntax: if (condition): code1 else: code2 [on_true] if [expression] else [on_false] Note: For more information, refer to Decision Making in Python (if , if..else, Nested if, i...
[ { "code": null, "e": 24243, "s": 24215, "text": "\n26 Mar, 2020" }, { "code": null, "e": 24366, "s": 24243, "text": "If-else conditional statement is used in Python when a situation leads to two conditions and one of them should hold true." }, { "code": null, "e": 243...
How to use AlarmManager in Android?
This example demonstrates how do I use AlarmManager in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:a...
[ { "code": null, "e": 1126, "s": 1062, "text": "This example demonstrates how do I use AlarmManager in android." }, { "code": null, "e": 1255, "s": 1126, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a ne...
Spring - BeanFactory - GeeksforGeeks
02 Aug, 2021 The first foremost thing when we talk about spring is dependency injection which is possible because spring is actually a container and behaves as a factory of Beans. Just like the BeanFactory interface is the simplest container providing an advanced configuration mechanism to instantiate, configure and m...
[ { "code": null, "e": 25347, "s": 25319, "text": "\n02 Aug, 2021" }, { "code": null, "e": 26320, "s": 25347, "text": "The first foremost thing when we talk about spring is dependency injection which is possible because spring is actually a container and behaves as a factory of Bea...
TensorFlow vs PyTorch for Deep Learning | Towards Data Science
You may be wondering whether to learn PyTorch or TensorFlow (2.0). If so hopefully this blog post can help. The idea is not to give an absolute answer here but just to show what developing and training neural networks look like in both. Before looking into the code, some things that are good to know: Both TensorFlow an...
[ { "code": null, "e": 408, "s": 171, "text": "You may be wondering whether to learn PyTorch or TensorFlow (2.0). If so hopefully this blog post can help. The idea is not to give an absolute answer here but just to show what developing and training neural networks look like in both." }, { "cod...
CBSE Class 11 | Concepts of Programming Methodology - GeeksforGeeks
22 Aug, 2018 Programming is all about solving a particular problem through computerized codes. Whether it be a problem of inventory management at any shopping complex, marks evaluation of OMR sheets, running of a remote car, or even running of a missile. Thus the scope of programming ranges from very simpleton tasks to...
[ { "code": null, "e": 25451, "s": 25423, "text": "\n22 Aug, 2018" }, { "code": null, "e": 26167, "s": 25451, "text": "Programming is all about solving a particular problem through computerized codes. Whether it be a problem of inventory management at any shopping complex, marks ev...
How to create a SnackBar service?
14 May, 2020 MatSnackBar is an angular directive that’s used for showing a notification bar specifically on the mobile devices.These types of UI components are generally used several times.So to avoid the repetition of code, a service can simply be created to use SnackBar in different components. Approach: To create a ...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 May, 2020" }, { "code": null, "e": 337, "s": 52, "text": "MatSnackBar is an angular directive that’s used for showing a notification bar specifically on the mobile devices.These types of UI components are generally used several time...
React-Bootstrap Jumbotron Component
21 Jan, 2022 React-Bootstrap is a front-end framework that was designed keeping react in mind. Bootstrap was re-built and revamped for React, hence it is known as React-Bootstrap. NOTE: AS OF BOOTSTRAP 5.X, JUMBOTRONS ARE NO LONGER SUPPORTED Jumbotron is mainly used to display the core and main content of the website....
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jan, 2022" }, { "code": null, "e": 196, "s": 28, "text": "React-Bootstrap is a front-end framework that was designed keeping react in mind. Bootstrap was re-built and revamped for React, hence it is known as React-Bootstrap. " }, ...
List of vectors in C++ STL with examples
10 Nov, 2021 Lists Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, the list has slow traversal, but once a position has been found, insertion and deletion are quick. Normally, when we say a List, we talk about a doubly linked list. For implementing a singly linked list,...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Nov, 2021" }, { "code": null, "e": 58, "s": 52, "text": "Lists" }, { "code": null, "e": 383, "s": 58, "text": "Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, the...
Implement Token Authentication using Django REST Framework
19 Nov, 2021 Token authentication refers to exchanging username and password for a token that will be used in all subsequent requests so to identify the user on the server side.This article revolves about implementing token authentication using Django REST Framework to make an API. The token authentication works by pro...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Nov, 2021" }, { "code": null, "e": 425, "s": 52, "text": "Token authentication refers to exchanging username and password for a token that will be used in all subsequent requests so to identify the user on the server side.This artic...
Ways to apply an if condition in Pandas DataFrame
07 Oct, 2021 Let’s discuss the different ways of applying If condition to a data frame in pandas. 1) Applying IF condition on Numbers Let us create a Pandas DataFrame that has 5 numbers (say from 51 to 55). Let us apply IF conditions for the following situation. If the particular number is equal or lower than 53, then ...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Oct, 2021" }, { "code": null, "e": 137, "s": 52, "text": "Let’s discuss the different ways of applying If condition to a data frame in pandas." }, { "code": null, "e": 466, "s": 137, "text": "1) Applying IF condi...
How to add color picker in a form using HTML ?
05 Oct, 2021 In this article. we will learn how to add a color picker in a form using HTML. As we know, a color picker is also known as a color-chooser. It is an interface in which a user can select a single color from multiple collections of background colors. Approach: First, we create an HTML document that contai...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Oct, 2021" }, { "code": null, "e": 280, "s": 28, "text": "In this article. we will learn how to add a color picker in a form using HTML. As we know, a color picker is also known as a color-chooser. It is an interface in which a user...
Relative and Absolute Cell References in MS Excel
06 Jun, 2021 Cell reference is the address or name of a cell or a range of cells. It is the combination of column name and row number. It helps the software to identify the cell from where the data/value is to be used in the formula. We can reference the cell of other worksheets and also of other programs. Referencing ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2021" }, { "code": null, "e": 323, "s": 28, "text": "Cell reference is the address or name of a cell or a range of cells. It is the combination of column name and row number. It helps the software to identify the cell from where...
Select statement in MS SQL Server
04 Jun, 2020 In this article, the most basic statement used in SQL is being discussed. Basic statement: select There are large amounts of data available everywhere.The data is stored in a sequential order in form of a table.Each table consists of a row which represents a unique record and column represents a field.Sche...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jun, 2020" }, { "code": null, "e": 102, "s": 28, "text": "In this article, the most basic statement used in SQL is being discussed." }, { "code": null, "e": 126, "s": 102, "text": "Basic statement: select" }, ...
What is Type Coercion in JavaScript ?
01 Jul, 2020 Type Coercion refers to the process of automatic or implicit conversion of values from one data type to another. This includes conversion from Number to String, String to Number, Boolean to Number etc. when different types of operators are applied to the values. In case the behavior of the implicit convers...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jul, 2020" }, { "code": null, "e": 315, "s": 52, "text": "Type Coercion refers to the process of automatic or implicit conversion of values from one data type to another. This includes conversion from Number to String, String to Num...
Check if a number is a Mystery Number
25 May, 2021 Given a number, check whether it is a mystery number or not. A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be the reverse of each other. Examples: Input : n = 121 Output : 29 92 Input : n = 22 Output : 11 11 Source: Paytm Interview Set 23The id...
[ { "code": null, "e": 57, "s": 26, "text": " \n25 May, 2021\n" }, { "code": null, "e": 254, "s": 57, "text": "Given a number, check whether it is a mystery number or not. A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be t...
Morse Code Translator In Python
26 Apr, 2022 Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment. It is named for Samuel F. B. Morse, an inventor of the telegraph. The algorithm is very simple. Every character...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Apr, 2022" }, { "code": null, "e": 314, "s": 52, "text": "Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer witho...
How to define a rectangular array in C#?
Multi-dimensional arrays are also called rectangular array. You can define a 3-dimensional array of integer as − int [ , , ] a; Let us see how to define a two-dimensional array − Int[,] a = new[3,3] The following is an example showing how to work with a multi-dimensional i.e. rectangular array in C# − Live Demo using ...
[ { "code": null, "e": 1175, "s": 1062, "text": "Multi-dimensional arrays are also called rectangular array. You can define a 3-dimensional array of integer as −" }, { "code": null, "e": 1190, "s": 1175, "text": "int [ , , ] a;" }, { "code": null, "e": 1241, "s": 11...
AudioManager in Android with Example - GeeksforGeeks
06 Sep, 2021 AudioManager is a class provided by Android which can be used to control the ringer volume of your Android device. With the help of this Audio Manager class, you can easily control the ringer volume of your device. Audio Manager Class can be used by calling the getSystemService() method in Android. When yo...
[ { "code": null, "e": 25116, "s": 25088, "text": "\n06 Sep, 2021" }, { "code": null, "e": 25743, "s": 25116, "text": "AudioManager is a class provided by Android which can be used to control the ringer volume of your Android device. With the help of this Audio Manager class, you c...
Java Program to Get Year From Date - GeeksforGeeks
09 Jul, 2021 Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled with a huge amount of features. Here we are going to discuss one of the best features of Java, which is how to get a year from date using Java. Methods: There are ...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n09 Jul, 2021" }, { "code": null, "e": 24236, "s": 23948, "text": "Java is the most powerful programming language, by which we can perform many tasks and Java is an industry preferable language. So it is filled with a huge amount ...
Python String istitle() Method
Python string method istitle() checks whether all the case-based characters in the string following non-casebased letters are uppercase and all other case-based characters are lowercase. Following is the syntax for istitle() method − str.istitle() NA NA This method returns true if the string is a titlecased string an...
[ { "code": null, "e": 2432, "s": 2244, "text": "Python string method istitle() checks whether all the case-based characters in the string following non-casebased letters are uppercase and all other case-based characters are lowercase." }, { "code": null, "e": 2479, "s": 2432, "te...
Automating Pac-man with Deep Q-learning: An Implementation in Tensorflow. | by Adrian Yijie Xu | Towards Data Science
Over the course of our articles covering the fundamentals of reinforcement learning at GradientCrescent, we’ve studied both model-based and sample-based approaches to reinforcement learning. Briefly, the former class is characterized by requiring knowledge of the complete probability distributions of all possible state...
[ { "code": null, "e": 1156, "s": 172, "text": "Over the course of our articles covering the fundamentals of reinforcement learning at GradientCrescent, we’ve studied both model-based and sample-based approaches to reinforcement learning. Briefly, the former class is characterized by requiring knowled...
Python | Convert String to Binary - GeeksforGeeks
16 Feb, 2021 Data conversion have always been widely used utility and one among them can be conversion of a string to it’s binary equivalent. Let’s discuss certain ways in which this can be done. Method #1 : Using join() + ord() + format()The combination of above functions can be used to perform this particular task. T...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n16 Feb, 2021" }, { "code": null, "e": 24899, "s": 24716, "text": "Data conversion have always been widely used utility and one among them can be conversion of a string to it’s binary equivalent. Let’s discuss certain ways in whic...
Element-wise concatenation of two NumPy arrays of string - GeeksforGeeks
04 Jan, 2022 In this article, we will discuss how to concatenate element-wise two arrays of string Example : Input : A = ['Akash', 'Ayush', 'Diksha', 'Radhika'] B = ['Kumar', 'Sharma', 'Tewari', 'Pegowal'] Output : A + B = [AkashKumar, AyushSharma, 'DikshTewari', 'RadhikaPegowal'] We will be using the numpy.char.add(...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n04 Jan, 2022" }, { "code": null, "e": 24379, "s": 24292, "text": "In this article, we will discuss how to concatenate element-wise two arrays of string " }, { "code": null, "e": 24389, "s": 24379, "text": "Exa...
Android - Custom Components
Implementing own components in pre built-in components with extending subclass with own defined class Android offers a great list of pre-built widgets like Button, TextView, EditText, ListView, CheckBox, RadioButton, Gallery, Spinner, AutoCompleteTextView etc. which you can use directly in your Android application deve...
[ { "code": null, "e": 3709, "s": 3607, "text": "Implementing own components in pre built-in components with extending subclass with own defined class" }, { "code": null, "e": 4169, "s": 3709, "text": "Android offers a great list of pre-built widgets like Button, TextView, EditText...
Converting an image from colour to grayscale using OpenCV
In this program, we will change the color scheme of an image from rgb to grayscale Step 1: Import OpenCV. Step 2: Read the original image using imread(). Step 3: Convert to grayscale using cv2.cvtcolor() function. import cv2 image = cv2.imread('colourful.jpg') cv2.imshow('Original',image) grayscale = cv2.cvtColor(image...
[ { "code": null, "e": 1145, "s": 1062, "text": "In this program, we will change the color scheme of an image from rgb to grayscale" }, { "code": null, "e": 1276, "s": 1145, "text": "Step 1: Import OpenCV.\nStep 2: Read the original image using imread().\nStep 3: Convert to graysca...
Product of non-repeating (distinct) elements in an Array in C++
We are given with an array of repeating or duplicate elements and the task is to find the product of all those elements which are non-repeating or distinct in the given array and display the results. Input-: arr[] = {2, 1, 1, 2, 3, 4, 5, 5 } Output-: 120 Explanation-: Since 1, 2 and 5 are repeating more than once so we...
[ { "code": null, "e": 1262, "s": 1062, "text": "We are given with an array of repeating or duplicate elements and the task is to find the product of all those elements which are non-repeating or distinct in the given array and display the results." }, { "code": null, "e": 1730, "s": 1...
AVRO - Serialization
Data is serialized for two objectives − For persistent storage For persistent storage To transport the data over network To transport the data over network Serialization is the process of translating data structures or objects state into binary or textual form to transport the data over network or to store on some pers...
[ { "code": null, "e": 1901, "s": 1861, "text": "Data is serialized for two objectives −" }, { "code": null, "e": 1924, "s": 1901, "text": "For persistent storage" }, { "code": null, "e": 1947, "s": 1924, "text": "For persistent storage" }, { "code": nul...
C | Operators | Question 5 - GeeksforGeeks
16 Sep, 2021 #include <stdio.h>int main(){ int i = 3; printf("%d", (++i)++); return 0;} What is the output of the above program?(A) 3(B) 4(C) 5(D) Compile-time errorAnswer: (D)Explanation: In C, prefix and postfix operators need l-value to perform operation and return r-value. The expression (++i)++ when execu...
[ { "code": null, "e": 26300, "s": 26272, "text": "\n16 Sep, 2021" }, { "code": "#include <stdio.h>int main(){ int i = 3; printf(\"%d\", (++i)++); return 0;}", "e": 26384, "s": 26300, "text": null }, { "code": null, "e": 26790, "s": 26384, "text": "What...
Deep Learning for Diagnosis of Skin Images with fastai | by Aldo von Wangenheim | Towards Data Science
We show how to use fast.ai to solve the 2018 Skin Lesion Analysis Towards Melanoma Detection challenge and automatically identify seven kinds of skin pathologies. Posted by Aldo von Wangenheim — aldo.vw@ufsc.br This is based upon the following material: TowardsDataScience::Classifying Skin Lesions with Convolutional Ne...
[ { "code": null, "e": 335, "s": 172, "text": "We show how to use fast.ai to solve the 2018 Skin Lesion Analysis Towards Melanoma Detection challenge and automatically identify seven kinds of skin pathologies." }, { "code": null, "e": 383, "s": 335, "text": "Posted by Aldo von Wang...
Portfolio Optimization for Minimum Risk with Scipy — Efficient Frontier Explained | by J Li | Towards Data Science
(This post is also available in my blog) Given 4 assets’ risk and return as following, what could be the risk-return for any portfolio built with the assets. One may think that all possible values have to fall inside the convex hull. But it is possible to go beyond the bond, if you consider the correlation coefficient ...
[ { "code": null, "e": 212, "s": 171, "text": "(This post is also available in my blog)" }, { "code": null, "e": 655, "s": 212, "text": "Given 4 assets’ risk and return as following, what could be the risk-return for any portfolio built with the assets. One may think that all possi...
Select all except the first character in a string in MySQL?
To select all except the first character in a string, you can use SUBSTR() method. Let us first create a table − mysql> create table DemoTable ( FirstName varchar(20) ); Query OK, 0 rows affected (0.63 sec) Insert records in the table using insert command − mysql> insert into DemoTable values('Larry'); Query OK, 1 r...
[ { "code": null, "e": 1175, "s": 1062, "text": "To select all except the first character in a string, you can use SUBSTR() method. Let us first create a table −" }, { "code": null, "e": 1272, "s": 1175, "text": "mysql> create table DemoTable\n(\n FirstName varchar(20)\n);\nQuery...
C program to check if a given string is Keyword or not?
Keyword is a predefined or reserved word which is available in C++ library with a fixed meaning and used to perform an internal operation. C++ Language supports more than 64 keywords. Every Keyword exists in lower case letters like auto, break, case, const, continue, int etc. 32 Keywords in C++ Language which is also a...
[ { "code": null, "e": 1246, "s": 1062, "text": "Keyword is a predefined or reserved word which is available in C++ library with a fixed meaning and used to perform an internal operation. C++ Language supports more than 64 keywords." }, { "code": null, "e": 1339, "s": 1246, "text":...
Program to find the largest sum of the path between two nodes in a binary tree in Python
Suppose we have a binary tree; we have to find the maximum sum of any path between any two nodes. So, if the input is like then the output will be 62 as the nodes are [12,13,14,16,7]. To solve this, we will follow these steps − Define a function utils() . This will take root Define a function utils() . This will take r...
[ { "code": null, "e": 1160, "s": 1062, "text": "Suppose we have a binary tree; we have to find the maximum sum of any path between any two nodes." }, { "code": null, "e": 1185, "s": 1160, "text": "So, if the input is like" }, { "code": null, "e": 1246, "s": 1185, ...
How to replace the values in a matrix with another value based on a condition in R?
A matrix has only numeric values and sometimes these values are either incorrectly entered or we might want to replace some of the values in a matrix based on some conditions. For example, if we have few fives in a matrix then we might want to replace all fives to an another number which is greater than 5 or less than ...
[ { "code": null, "e": 1385, "s": 1062, "text": "A matrix has only numeric values and sometimes these values are either incorrectly entered or we might want to replace some of the values in a matrix based on some conditions. For example, if we have few fives in a matrix then we might want to replace a...
PyQt - QLabel Widget
A QLabel object acts as a placeholder to display non-editable text or image, or a movie of animated GIF. It can also be used as a mnemonic key for other widgets. Plain text, hyperlink or rich text can be displayed on the label. The following table lists the important methods defined in QLabel class − Given below are th...
[ { "code": null, "e": 2154, "s": 1926, "text": "A QLabel object acts as a placeholder to display non-editable text or image, or a movie of animated GIF. It can also be used as a mnemonic key for other widgets. Plain text, hyperlink or rich text can be displayed on the label." }, { "code": nul...
Groovy - Operators
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. Groovy has the following types of operators − Arithmetic operators Relational operators Logical operators Bitwise operators Assignment operators The Groovy language supports the normal Arithmetic operators as any ...
[ { "code": null, "e": 2345, "s": 2238, "text": "An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations." }, { "code": null, "e": 2391, "s": 2345, "text": "Groovy has the following types of operators −" }, { "code": null, ...
Guide to Custom Recurrent Modeling in Keras | by Mohit Mayank | Towards Data Science
The initial set of layers for recurrent neural operations universally begins with LSTM, GRU and RNN. But with an increase in the complexity of the task, we should use more complex models. That said, before moving directly to different and relatively complex models like attention or transformers, we should first ask a s...
[ { "code": null, "e": 1095, "s": 172, "text": "The initial set of layers for recurrent neural operations universally begins with LSTM, GRU and RNN. But with an increase in the complexity of the task, we should use more complex models. That said, before moving directly to different and relatively comp...
Java Generics - Map
Java has provided generic support in Map interface. Set<T> set = new HashSet<T>(); Where set − object of Set Interface. set − object of Set Interface. T − The generic type parameter passed during set declaration. T − The generic type parameter passed during set declaration. The T is a type parameter passed to the gene...
[ { "code": null, "e": 2692, "s": 2640, "text": "Java has provided generic support in Map interface." }, { "code": null, "e": 2724, "s": 2692, "text": "Set<T> set = new HashSet<T>();\n" }, { "code": null, "e": 2730, "s": 2724, "text": "Where" }, { "code"...
A Machine Learning Approach To Credit Risk Assessment | by Sarah Beshr | Towards Data Science
Credit default risk is simply known as the possibility of a loss for a lender due to a borrower’s failure to repay a loan. Credit analysts are typically responsible for assessing this risk by thoroughly analyzing a borrower’s capability to repay a loan — but long gone are the days of credit analysts, it’s the machine l...
[ { "code": null, "e": 832, "s": 171, "text": "Credit default risk is simply known as the possibility of a loss for a lender due to a borrower’s failure to repay a loan. Credit analysts are typically responsible for assessing this risk by thoroughly analyzing a borrower’s capability to repay a loan — ...
How to check if the string begins with specific substring in Java?
A String class can be used to represent the character strings, all the string literals in a Java program are implemented as an instance of a String class. The Strings are constants and their values cannot be changed (immutable) once created. We can use the startsWith() method of String class to check whether a string b...
[ { "code": null, "e": 1304, "s": 1062, "text": "A String class can be used to represent the character strings, all the string literals in a Java program are implemented as an instance of a String class. The Strings are constants and their values cannot be changed (immutable) once created." }, { ...
ASMNet: a Lightweight Deep Neural Network for Face Alignment and Pose Estimation | by Ali Pourramezan Fard | Towards Data Science
This article explains the ASMNet, a lightweight Convolutional Neural Network (CNN) for facial landmark points detection (a.k.a Face Alignment) and face pose estimation in the wild. The code and the pre-trained models are available on Github here. You can also read the original paper here. Facial Landmark Points Detecti...
[ { "code": null, "e": 352, "s": 171, "text": "This article explains the ASMNet, a lightweight Convolutional Neural Network (CNN) for facial landmark points detection (a.k.a Face Alignment) and face pose estimation in the wild." }, { "code": null, "e": 461, "s": 352, "text": "The c...
Count of substrings of given string with frequency of each character at most K - GeeksforGeeks
14 Dec, 2021 Given a string str, the task is to calculate the number of substrings of the given string such that the frequency of each element of the string is almost K. Examples: Input: str = “abab”, K = 1Output: 7Explanation: The substrings such that the frequency of each character is atmost 1 are “a”, “b”, “a”, “b”,...
[ { "code": null, "e": 24796, "s": 24768, "text": "\n14 Dec, 2021" }, { "code": null, "e": 24953, "s": 24796, "text": "Given a string str, the task is to calculate the number of substrings of the given string such that the frequency of each element of the string is almost K." }, ...
GATE | GATE-CS-2016 (Set 1) | Question 25 - GeeksforGeeks
12 Aug, 2021 Consider the following C program. #include<stdio.h>void mystery(int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb = ptra; ptra = temp;}int main() { int a=2016, b=0, c=4, d=42; mystery(&a, &b); if (a < c) mystery(&c, &a); mystery(&a, &d); printf("%d\n", a);} The output of the...
[ { "code": null, "e": 24243, "s": 24215, "text": "\n12 Aug, 2021" }, { "code": null, "e": 24277, "s": 24243, "text": "Consider the following C program." }, { "code": "#include<stdio.h>void mystery(int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb = ptra; ptra = ...
Is there a goto statement available in bash on Linux?
Long story short, Linux’s bash doesn’t have goto statements and no information about the control structures exists in the official documentation. It should also be noted that we can make use of the break and continue statement to achieve the same behaviour that goto statement provides us. A simple behaviour of the goto...
[ { "code": null, "e": 1352, "s": 1062, "text": "Long story short, Linux’s bash doesn’t have goto statements and no information about the control structures exists in the official documentation. It should also be noted that we can make use of the break and continue statement to achieve the same behavi...
PHP - MYSQL : sum() operation - GeeksforGeeks
01 Oct, 2021 Problem Statement: In this article, we are going to perform sum() aggregate operation on our database using PHP with xampp server. So we are considering the food_order database and perform database sum() operation. Requirements: xampp Introduction: PHP stands for hypertext preprocessor which is a server-si...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n01 Oct, 2021" }, { "code": null, "e": 26236, "s": 26217, "text": "Problem Statement:" }, { "code": null, "e": 26348, "s": 26236, "text": "In this article, we are going to perform sum() aggregate operation on o...
C# | Sort the elements in the ArrayList - GeeksforGeeks
09 Jul, 2021 ArrayList.Sort Method is used to sorts the elements in the ArrayList. There are total 3 methods in the overload list of this method as follows: Sort()Sort(IComparer)Sort(Int32, Int32, IComparer) Sort() Sort(IComparer) Sort(Int32, Int32, IComparer) This method is used to Sort the elements in the entire Arra...
[ { "code": null, "e": 25573, "s": 25545, "text": "\n09 Jul, 2021" }, { "code": null, "e": 25717, "s": 25573, "text": "ArrayList.Sort Method is used to sorts the elements in the ArrayList. There are total 3 methods in the overload list of this method as follows:" }, { "code...
Flutter - Widget Tree and Element Tree - GeeksforGeeks
14 May, 2021 As we know, the user interface of an application when it is designed in Flutter contains a set of widgets. So that means the whole application is set to be made out of widgets. A widget describes what the view of the app would look like in the given state. Now, as the user interface contains several widge...
[ { "code": null, "e": 25383, "s": 25355, "text": "\n14 May, 2021" }, { "code": null, "e": 25641, "s": 25383, "text": "As we know, the user interface of an application when it is designed in Flutter contains a set of widgets. So that means the whole application is set to be made ou...
Efficiently compute sums of diagonals of a matrix - GeeksforGeeks
19 May, 2021 Given a 2D square matrix, find the sum of elements in Principal and Secondary diagonals. For example, consider the following 4 X 4 input matrix. A00 A01 A02 A03 A10 A11 A12 A13 A20 A21 A22 A23 A30 A31 A32 A33 The primary diagonal is formed by the elements A00, A11, A22, A33. Condition for Principal Diag...
[ { "code": null, "e": 26262, "s": 26234, "text": "\n19 May, 2021" }, { "code": null, "e": 26408, "s": 26262, "text": "Given a 2D square matrix, find the sum of elements in Principal and Secondary diagonals. For example, consider the following 4 X 4 input matrix. " }, { "co...
Python - Convert Coordinate Dictionary to Matrix - GeeksforGeeks
30 Dec, 2020 Sometimes, while working with Python Matrix, we can have problem in which we have dictionary records with key as matrix position and its value, and we wish to convert that to actual Matrix. This can have applications in many domains including competitive programming and day-day programming. Lets discuss ce...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n30 Dec, 2020" }, { "code": null, "e": 25892, "s": 25537, "text": "Sometimes, while working with Python Matrix, we can have problem in which we have dictionary records with key as matrix position and its value, and we wish to conv...
Python | os.wait() method - GeeksforGeeks
26 Aug, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.wait() method in Python is used by a process to wait for completion of a child proces...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n26 Aug, 2019" }, { "code": null, "e": 25756, "s": 25537, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable...
Datasets And Dataloaders in Pytorch - GeeksforGeeks
18 Jul, 2021 PyTorch is a Python library developed by Facebook to run and train machine learning and deep learning models. Training a deep learning model requires us to convert the data into the format that can be processed by the model. PyTorch provides the torch.utils.data library to make data loading easy with Data...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Jul, 2021" }, { "code": null, "e": 25871, "s": 25537, "text": "PyTorch is a Python library developed by Facebook to run and train machine learning and deep learning models. Training a deep learning model requires us to conver...
SQLite Datatypes and its Corresponding Python Types - GeeksforGeeks
21 Apr, 2021 SQLite is a C-language-based library that provides a portable and serverless SQL database engine. It has a file-based architecture; hence it reads and writes to a disk. Since SQLite is a zero-configuration database, no installation or setup is needed before its usage. Starting from Python 2.5.x, SQLite3 co...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n21 Apr, 2021" }, { "code": null, "e": 25869, "s": 25537, "text": "SQLite is a C-language-based library that provides a portable and serverless SQL database engine. It has a file-based architecture; hence it reads and writes to a ...
How to find the version of an installed npm package in node.js ? - GeeksforGeeks
11 Feb, 2021 NPM is a default package manager for Node.js. NPM manages all the internal as well as external packages or modules that we use in various node.js applications. Default Packages in NPM cannot fulfill the needs of the developer, so we need external packages, and we can install either locally in a particular...
[ { "code": null, "e": 26267, "s": 26239, "text": "\n11 Feb, 2021" }, { "code": null, "e": 26672, "s": 26267, "text": "NPM is a default package manager for Node.js. NPM manages all the internal as well as external packages or modules that we use in various node.js applications. De...
Commonly Asked Java Programming Interview Questions | Set 2 - GeeksforGeeks
28 Jan, 2022 In this article, some of the most important Java Interview Questions and Answers are discussed, to give you the cutting edge in your interviews. Java is one of the most popular and widely used programming language and platform. Java is fast, reliable and secure. From desktop to web applications, scientific...
[ { "code": null, "e": 25765, "s": 25737, "text": "\n28 Jan, 2022" }, { "code": null, "e": 26249, "s": 25765, "text": "In this article, some of the most important Java Interview Questions and Answers are discussed, to give you the cutting edge in your interviews. Java is one of the...
Drag and Drop Files in ElectronJS - GeeksforGeeks
01 Feb, 2022 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime.There ar...
[ { "code": null, "e": 25567, "s": 25539, "text": "\n01 Feb, 2022" }, { "code": null, "e": 26744, "s": 25567, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which ...
HTML | Window scrollBy() method - GeeksforGeeks
30 Jul, 2019 The window.scrollBy() method is used to scroll the document by given number of pixels. Syntax: window.scrollBy( xcoordinate, ycoordinate ); or window.scrollBy(options); Parameters: This method accepts two parameters as mentioned above and described below: x-coordinate: It is the horizontal pixel value whic...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n30 Jul, 2019" }, { "code": null, "e": 26226, "s": 26139, "text": "The window.scrollBy() method is used to scroll the document by given number of pixels." }, { "code": null, "e": 26234, "s": 26226, "text": "Syn...
ConcurrentSkipListSet in Java with Examples - GeeksforGeeks
11 Nov, 2020 The ConcurrentSkipListSet class in Java is a part of the Java Collection Framework and implements the Collection interface and the AbstractSet class. It provides a scalable and concurrent version of NavigableSet in Java. The implementation of ConcurrentSkipListSet is based on ConcurrentSkipListMap. The ele...
[ { "code": null, "e": 25049, "s": 25021, "text": "\n11 Nov, 2020" }, { "code": null, "e": 25525, "s": 25049, "text": "The ConcurrentSkipListSet class in Java is a part of the Java Collection Framework and implements the Collection interface and the AbstractSet class. It provides a...
Convert PDF to Image using Python - GeeksforGeeks
21 Jan, 2021 Many tools are available on the internet for converting a PDF to an image. In this article, we are going to write code for converting pdf to image and make a handy application in python. Before writing the code we need to install the required module pdf2image and poppler. pdf2image 1.14.0: This module conv...
[ { "code": null, "e": 26147, "s": 26119, "text": "\n21 Jan, 2021" }, { "code": null, "e": 26420, "s": 26147, "text": "Many tools are available on the internet for converting a PDF to an image. In this article, we are going to write code for converting pdf to image and make a handy...
p5.js | minute() function - GeeksforGeeks
08 Apr, 2019 The minute() function in p5.js is used to return the current minute in the system clock. The value of minute() function lies between 0 to 59. Syntax: minute() Parameters: The function does not accept any parameter. Return Value: This function returns an integer value which represents the minute time. Below...
[ { "code": null, "e": 25497, "s": 25469, "text": "\n08 Apr, 2019" }, { "code": null, "e": 25639, "s": 25497, "text": "The minute() function in p5.js is used to return the current minute in the system clock. The value of minute() function lies between 0 to 59." }, { "code":...
Python | Pandas Timestamp.to_pydatetime - GeeksforGeeks
27 Jan, 2019 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Timestamp.to_pydatetime() function convert a Timestamp object to a native Python datet...
[ { "code": null, "e": 25641, "s": 25613, "text": "\n27 Jan, 2019" }, { "code": null, "e": 25855, "s": 25641, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Python - Distance between collections of inputs - GeeksforGeeks
10 Jan, 2020 scipy.stats.cdist(array, axis=0) function calculates the distance between each pair of the two collections of inputs. Parameters :array: Input array or object having the elements to calculate the distance between each pair of the two collections of inputs.axis: Axis along which to be computed. By default a...
[ { "code": null, "e": 25909, "s": 25881, "text": "\n10 Jan, 2020" }, { "code": null, "e": 26027, "s": 25909, "text": "scipy.stats.cdist(array, axis=0) function calculates the distance between each pair of the two collections of inputs." }, { "code": null, "e": 26224, ...
Pyramid form (increasing then decreasing) consecutive array using reduce operations - GeeksforGeeks
28 Apr, 2021 We have N (where N > 2) stones of various heights laid out in a row. Task is to make a pyramid from given array of stones. In a pyramid, height of the stones start from 1, increase by 1, until it reaches some value x, then decreases by 1 until it reaches 1 again i.e. the stones should be 1, 2, 3, 4...x – 1...
[ { "code": null, "e": 25941, "s": 25913, "text": "\n28 Apr, 2021" }, { "code": null, "e": 26582, "s": 25941, "text": "We have N (where N > 2) stones of various heights laid out in a row. Task is to make a pyramid from given array of stones. In a pyramid, height of the stones start...
How to create a responsive scrollbox in CSS ? - GeeksforGeeks
22 Dec, 2020 The purpose of this article is to create a responsive scrollbar in HTML page structure using CSS. In CSS, responsive scroll box is an interaction technique which contains text, images, or any other elements. They can be scrolled in preset directions, which allows users to scroll if the contents are larger ...
[ { "code": null, "e": 25011, "s": 24983, "text": "\n22 Dec, 2020" }, { "code": null, "e": 25109, "s": 25011, "text": "The purpose of this article is to create a responsive scrollbar in HTML page structure using CSS." }, { "code": null, "e": 25504, "s": 25109, "...
Storage of integer and character values in C
We have used the integer and character variables many times in our program. Here we will see how they are stored in the memory. In C the character values are also stored as integers. In the following code, we shall put 270 into a character type data. So the binary equivalent of 270 is 100001110, but takes only first 8-...
[ { "code": null, "e": 1190, "s": 1062, "text": "We have used the integer and character variables many times in our program. Here we will see how they are stored in the memory." }, { "code": null, "e": 1520, "s": 1190, "text": "In C the character values are also stored as integers....