title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
What is Gradient Clipping?. A simple yet effective way to tackle... | by Wanshun Wong | Towards Data Science
Recurrent Neural Networks (RNN) work very well with sequential data by utilizing hidden states that stores information about past inputs: the values of hidden states at time t depend on their values at time t -1 and also the inputs at time t. This architecture, while powerful, causes two problems in training: exploding...
[ { "code": null, "e": 630, "s": 171, "text": "Recurrent Neural Networks (RNN) work very well with sequential data by utilizing hidden states that stores information about past inputs: the values of hidden states at time t depend on their values at time t -1 and also the inputs at time t. This archite...
What is the role of Browser Object Model (BOM) in JavaScript?
The Browser Object Model (BOM) in JavaScript includes the properties and methods for JavaScript to interact with the web browser. BOM provides you with a window objects, for example, to show the width and height of the window. It also includes the window.screen object to show the width and height of the screen. You can...
[ { "code": null, "e": 1192, "s": 1062, "text": "The Browser Object Model (BOM) in JavaScript includes the properties and methods for JavaScript to interact with the web browser." }, { "code": null, "e": 1375, "s": 1192, "text": "BOM provides you with a window objects, for example,...
SQL Tryit Editor v1.6
SELECT Shippers.ShipperName,COUNT(Orders.OrderID) AS NumberOfOrders FROM Orders LEFT JOIN Shippers ON Orders.ShipperID = Shippers.ShipperID GROUP BY ShipperName; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because ...
[ { "code": null, "e": 80, "s": 0, "text": "SELECT Shippers.ShipperName,COUNT(Orders.OrderID) AS NumberOfOrders FROM Orders" }, { "code": null, "e": 140, "s": 80, "text": "LEFT JOIN Shippers ON Orders.ShipperID = Shippers.ShipperID" }, { "code": null, "e": 162, "s":...
Object Detection- Tensorflow. Using the tensorflow Object Detection... | by Sahil Gupta | Towards Data Science
The model is trained using the Tensorflow Object Detection API for training the model for 20 classes on the Pascal VOC 2012 dataset. There has been a buzz all around, about Machine Learning and Deep Neural Networks since, their popularity has revived after they were shelved for quite a few years. Lately, the communitie...
[ { "code": null, "e": 305, "s": 172, "text": "The model is trained using the Tensorflow Object Detection API for training the model for 20 classes on the Pascal VOC 2012 dataset." }, { "code": null, "e": 761, "s": 305, "text": "There has been a buzz all around, about Machine Learn...
MaterialApp class in Flutter - GeeksforGeeks
24 Nov, 2020 MaterialApp Class: MaterialApp is a predefined class in a flutter. It is likely the main or core component of flutter. We can access all the other components and widgets provided by Flutter SDK. Text widget, Dropdownbutton widget, AppBar widget, Scaffold widget, ListView widget, StatelessWidget, StatefulWi...
[ { "code": null, "e": 25551, "s": 25523, "text": "\n24 Nov, 2020" }, { "code": null, "e": 26227, "s": 25551, "text": "MaterialApp Class: MaterialApp is a predefined class in a flutter. It is likely the main or core component of flutter. We can access all the other components and w...
Fractals in C/C++ - GeeksforGeeks
03 Oct, 2018 A Fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple process over and over in an ongoing feedback loop. Mathematically fractals can be explained as follows. The location of a point on a screen is ...
[ { "code": null, "e": 24057, "s": 24029, "text": "\n03 Oct, 2018" }, { "code": null, "e": 24325, "s": 24057, "text": "A Fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple...
Naming Conventions in C#
A class definition starts with the keyword class followed by the class name; and the class body enclosed by a pair of curly braces. The following are the conventions for class names. The coding conventions for a class name is the the name of the class names, for example, it should being PascalCasing. public class Emplo...
[ { "code": null, "e": 1245, "s": 1062, "text": "A class definition starts with the keyword class followed by the class name; and the class body enclosed by a pair of curly braces. The following are the conventions for class names." }, { "code": null, "e": 1364, "s": 1245, "text": ...
Check if Tree is Isomorphic | Practice | GeeksforGeeks
Given two Binary Trees. Check whether they are Isomorphic or not. Note: Two trees are called isomorphic if one can be obtained from another by a series of flips, i.e. by swapping left and right children of several nodes. Any number of nodes at any level can have their children swapped. Two empty trees are isomorphic. ...
[ { "code": null, "e": 304, "s": 238, "text": "Given two Binary Trees. Check whether they are Isomorphic or not." }, { "code": null, "e": 679, "s": 304, "text": "Note: \nTwo trees are called isomorphic if one can be obtained from another by a series of flips, i.e. by swapping left ...
The 80/20 Split Intuition and an Alternative Split Method | by The Data Detective | Towards Data Science
I am an inquisitive person. It’s my nature. It’s why I deconstructed many of my Christmas presents as a child, I wanted to know “why”. So when I ask the question, “Why are we using an 80/20 training/test split on this dataset?” and don’t get a specific answer, it drives me crazy. I dove into the ‘why’ of train/test spl...
[ { "code": null, "e": 713, "s": 172, "text": "I am an inquisitive person. It’s my nature. It’s why I deconstructed many of my Christmas presents as a child, I wanted to know “why”. So when I ask the question, “Why are we using an 80/20 training/test split on this dataset?” and don’t get a specific an...
C# Program to get the absolute value of the time
To get the absolute value of time, use the TimesSpan Duration() method. Let’s say the following is our TimeSpan. TimeSpan ts = new TimeSpan(-7, -50, -25); Now to get the absolute value. TimeSpan duration = ts.Duration(); Let us see the complete code. Live Demo using System; using System.Linq; public class Demo { pu...
[ { "code": null, "e": 1134, "s": 1062, "text": "To get the absolute value of time, use the TimesSpan Duration() method." }, { "code": null, "e": 1175, "s": 1134, "text": "Let’s say the following is our TimeSpan." }, { "code": null, "e": 1217, "s": 1175, "text":...
Econometric Approach to Time Series Analysis — Seasonal ARIMA in Python | by Jahangir Mammadov | Towards Data Science
At this post, we will talk about the analysis of time series data with Trend and Seasonal components. An econometric approach will be followed to model the statistical properties of the data. The business objective here is forecasting. We attempted to explain various concepts involved in time series modelling, such as ...
[ { "code": null, "e": 794, "s": 172, "text": "At this post, we will talk about the analysis of time series data with Trend and Seasonal components. An econometric approach will be followed to model the statistical properties of the data. The business objective here is forecasting. We attempted to exp...
Grav - Modular Pages
Modular pages are difficult to understand at first but once you get to know about it, it would be very easy to work with. It enables to create a single page from its child pages. It has the ability to build complex one page layouts from modular content pages. Modular pages are set as non-routable because they cannot be...
[ { "code": null, "e": 2762, "s": 2502, "text": "Modular pages are difficult to understand at first but once you get to know about it, it would be very easy to work with. It enables to create a single page from its child pages. It has the ability to build complex one page layouts from modular content ...
How to get Resource name using Resource id in Android?
This example demonstrates how do I get resource name using Resource id 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"?> <Rel...
[ { "code": null, "e": 1145, "s": 1062, "text": "This example demonstrates how do I get resource name using Resource id in android." }, { "code": null, "e": 1274, "s": 1145, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required det...
What is the use of ALLOW_INVALID_DATES SQL mode?
As the name suggests, enabling ALLOW_INVALID_DATES SQL mode will allow us to store invalid dates in the table. The example is given below to understand it − mysql> SET sql_mode = ALLOW_INVALID_DATES; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> Insert Into detail_bday(Name, Birth_Date) values('Sonia','1993-1...
[ { "code": null, "e": 1219, "s": 1062, "text": "As the name suggests, enabling ALLOW_INVALID_DATES SQL mode will allow us to store invalid dates in the table. The example is given below to understand it −" }, { "code": null, "e": 1900, "s": 1219, "text": "mysql> SET sql_mode = ALL...
How to include groups of table columns in HTML?
Use the <colgroup> tag to include groups of table columns.The HTML <colgroup> tag is used for specifying properties for a group of columns within a table. If you need to apply different properties to a column within a colgroup, you can use the HTML col tag within the colgroup tag. The following are the attributes − You...
[ { "code": null, "e": 1344, "s": 1062, "text": "Use the <colgroup> tag to include groups of table columns.The HTML <colgroup> tag is used for specifying properties for a group of columns within a table. If you need to apply different properties to a column within a colgroup, you can use the HTML col ...
How to Create a Custom Intro Slider of an Android App? - GeeksforGeeks
10 Aug, 2021 Intro Slider in many apps is mostly used to educate the users about the app, the features of the app, and the services that our app will provide to us. In this article, we will take a look at the implementation of Custom Intro Slider in our app. We will be building a simple application in which we will be...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n10 Aug, 2021" }, { "code": null, "e": 24972, "s": 24725, "text": "Intro Slider in many apps is mostly used to educate the users about the app, the features of the app, and the services that our app will provide to us. In this art...
Iterator vs Collection in Java - GeeksforGeeks
16 Sep, 2021 Iterator and Collection, both has helped and comforted the programmers at many a times. But there usage and application has a very wide difference. 1. Iterator Declaration public interface Iterator Type Parameters: E - the type of elements returned by this iterator Iterators are used in Collection fram...
[ { "code": null, "e": 25249, "s": 25221, "text": "\n16 Sep, 2021" }, { "code": null, "e": 25398, "s": 25249, "text": "Iterator and Collection, both has helped and comforted the programmers at many a times. But there usage and application has a very wide difference. " }, { ...
How to use margin, border and padding to fit together in the box model ? - GeeksforGeeks
16 Nov, 2021 In this article, we will learn how the different parts of the box i.e., margin, border, padding & content fits together to create the box. The box model specifies how the HTML elements are organized & modeled in the browser engine along with deriving the CSS properties that define the dimension for the HTM...
[ { "code": null, "e": 26621, "s": 26593, "text": "\n16 Nov, 2021" }, { "code": null, "e": 27239, "s": 26621, "text": "In this article, we will learn how the different parts of the box i.e., margin, border, padding & content fits together to create the box. The box model specifies ...
Efficiency of CSMA/CD - GeeksforGeeks
06 Apr, 2022 Prerequisite – Introduction to Ethernet, Basics of CSMA/ CD Carrier sense multiple access with collision detection (CSMA/CD) – The CSMA method does not tell us what to do in case there is a collision. Carrier sense multiple access with collision detection (CSMA/CD) adds to the CSMA algorithm to deal with t...
[ { "code": null, "e": 37839, "s": 37811, "text": "\n06 Apr, 2022" }, { "code": null, "e": 38852, "s": 37839, "text": "Prerequisite – Introduction to Ethernet, Basics of CSMA/ CD Carrier sense multiple access with collision detection (CSMA/CD) – The CSMA method does not tell us wha...
React JS useRef Hook - GeeksforGeeks
19 Oct, 2021 The useRef hook is the new addition in React 16.8. Before proceeding to this article there is a prerequisite to know about the ref in react.The useRef is a hook that allows to directly create a reference to the DOM element in the functional component. Syntax: const refContainer = useRef(initialValue); The...
[ { "code": null, "e": 25361, "s": 25333, "text": "\n19 Oct, 2021" }, { "code": null, "e": 25614, "s": 25361, "text": "The useRef hook is the new addition in React 16.8. Before proceeding to this article there is a prerequisite to know about the ref in react.The useRef is a hook th...
Concatenate two given factor in a single factor in R - GeeksforGeeks
23 May, 2021 The factor variables in R programming can be combined to form vectors and lists. Concatenation of factor type objects is not possible like the primitive concatenation operations, since they do not preserve the “factor” class of variables, which may lead to data ambiguity. The class of any storage object i...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n23 May, 2021" }, { "code": null, "e": 26761, "s": 26487, "text": "The factor variables in R programming can be combined to form vectors and lists. Concatenation of factor type objects is not possible like the primitive concatenat...
Language Localization in Android with Example - GeeksforGeeks
29 Oct, 2020 Language Localization is a process to change the application context into multiple languages based on the requirements. Android is an overall operating system that runs on millions of devices worldwide and among various groups. Since the diversity range is enormous, a feature that facilitates local languag...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n29 Oct, 2020" }, { "code": null, "e": 27237, "s": 26381, "text": "Language Localization is a process to change the application context into multiple languages based on the requirements. Android is an overall operating system that...
Array element with minimum sum of absolute differences - GeeksforGeeks
23 Aug, 2021 Given an array arr[] of N integers, the task is to find an element x from the array such that |arr[0] – x| + |arr[1] – x| + |arr[2] – x| + ... + |arr[n – 1] – x| is minimized, then print the minimized sum.Examples: Input: arr[] = {1, 3, 9, 3, 6} Output: 11 The optimal solution is to choose x = 3, which p...
[ { "code": null, "e": 26066, "s": 26038, "text": "\n23 Aug, 2021" }, { "code": null, "e": 26283, "s": 26066, "text": "Given an array arr[] of N integers, the task is to find an element x from the array such that |arr[0] – x| + |arr[1] – x| + |arr[2] – x| + ... + |arr[n – 1] – x| i...
Digital Band Pass Butterworth Filter in Python - GeeksforGeeks
17 Dec, 2020 In this article, we are going to discuss how to design a Digital Low Pass Butterworth Filter using Python. The Butterworth filter is a type of signal processing filter designed to have a frequency response as flat as possible in the pass band. Let us take the below specifications to design the filter and o...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n17 Dec, 2020" }, { "code": null, "e": 25926, "s": 25537, "text": "In this article, we are going to discuss how to design a Digital Low Pass Butterworth Filter using Python. The Butterworth filter is a type of signal processing fi...
Python | Key-Value to URL Parameter Conversion - GeeksforGeeks
13 Aug, 2019 Many times, while working in web development domain, we can encounter a problem in which we require to set as URL parameter some of the key-value pairs we have, either in form of tuples, or a key and value list. Let’s discuss a solution for both the cases. Method #1 : Using urllib.urlencode() ( with tuples...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n13 Aug, 2019" }, { "code": null, "e": 25794, "s": 25537, "text": "Many times, while working in web development domain, we can encounter a problem in which we require to set as URL parameter some of the key-value pairs we have, ei...
Amazon Interview | Set 53 (For SDE-1) - GeeksforGeeks
18 Jun, 2019 In each round they ask me why I want to join amazon, why I am leaving my previous company with such a short span(around 2.5 months) and project stuff.Interviewers were quite friendly. They would explain you till the point you fully don’t understand. And even while discussing approach and solving, they woul...
[ { "code": null, "e": 26441, "s": 26413, "text": "\n18 Jun, 2019" }, { "code": null, "e": 26776, "s": 26441, "text": "In each round they ask me why I want to join amazon, why I am leaving my previous company with such a short span(around 2.5 months) and project stuff.Interviewers ...
Output of Java Program | Set 3 - GeeksforGeeks
25 Feb, 2022 Predict the output of the following Java Programs: Example1: Java // filename: Test.java class Test { // Declaring and initializing integer variable int x = 10; // Main driver method public static void main(String[] args) { // Creating an object of class inside main() Test t...
[ { "code": null, "e": 25695, "s": 25667, "text": "\n25 Feb, 2022" }, { "code": null, "e": 25746, "s": 25695, "text": "Predict the output of the following Java Programs:" }, { "code": null, "e": 25756, "s": 25746, "text": "Example1:" }, { "code": null, ...
MATLAB | Convert video into slow motion - GeeksforGeeks
29 Mar, 2019 MATLAB also called Matrix Laboratory is a numerical computing environment and a platform for programming language. it was designed and developed by MathWorks. MATLAB is a framework that allows you to perform matrix manipulations, implementing algorithms, plotting functions and data, creating user-interface...
[ { "code": null, "e": 25843, "s": 25815, "text": "\n29 Mar, 2019" }, { "code": null, "e": 26265, "s": 25843, "text": "MATLAB also called Matrix Laboratory is a numerical computing environment and a platform for programming language. it was designed and developed by MathWorks. MATL...
How to change colorbar labels in matplotlib ? - GeeksforGeeks
29 Dec, 2021 In this article, we are going to see how to change color bar labels in matplotlib using Python. The colorbar() function is used to plot the color bar which belongs to the pyplot module of matplotlib adds a colorbar to a plot indicating the color scale. Syntax: matplotlib.pyplot.colorbar(mappable=None, cax=...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n29 Dec, 2021" }, { "code": null, "e": 25651, "s": 25555, "text": "In this article, we are going to see how to change color bar labels in matplotlib using Python." }, { "code": null, "e": 25808, "s": 25651, "te...
Using Neo4j with PySpark on Databricks | by Lukas Böhres | Towards Data Science
With the recent release of the official Neo4j Connector for Apache Spark leveraging the Spark DataSource API, there has been a fundamental change in the way that Neo4j data can be queried from within an Apache Spark environment. Alongside this change, the previous Neo4j Spark Connector was marked as deprecated. In this...
[ { "code": null, "e": 667, "s": 172, "text": "With the recent release of the official Neo4j Connector for Apache Spark leveraging the Spark DataSource API, there has been a fundamental change in the way that Neo4j data can be queried from within an Apache Spark environment. Alongside this change, the...
How to get android notifications when the app was closed?
This example demonstrate about How to get android notifications when the app was closed 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...
[ { "code": null, "e": 1150, "s": 1062, "text": "This example demonstrate about How to get android notifications when the app was closed" }, { "code": null, "e": 1279, "s": 1150, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all require...
column command in Linux with examples - GeeksforGeeks
28 Sep, 2021 column command in Linux is used to display the contents of a file in columns. The input may be taken from the standard input or from the file. This command basically breaks the input into multiple columns. Rows are filled before columns. Empty lines from the input are ignored unless the -e option is used. ...
[ { "code": null, "e": 23617, "s": 23589, "text": "\n28 Sep, 2021" }, { "code": null, "e": 23925, "s": 23617, "text": "column command in Linux is used to display the contents of a file in columns. The input may be taken from the standard input or from the file. This command basical...
How to get the default blue colour of matplotlib.pyplot.scatter?
The default color of a scatter point is blue. To get the default blue color of matplotlib scatter point, we can annotate them using annotate() method. Create a figure and a set of subplots using subplots() method. Plot a scatter point at (-1, 1) location. Add some label for that point. Plot a scatter point at (-0.9, 1)...
[ { "code": null, "e": 1213, "s": 1062, "text": "The default color of a scatter point is blue. To get the default blue color of matplotlib scatter point, we can annotate them using annotate() method." }, { "code": null, "e": 1276, "s": 1213, "text": "Create a figure and a set of su...
Remove item from a nested array by indices in JavaScript
Suppose, we have a nested array of objects like this − const arr = [ { value: 'some value' }, { array: [ { value: 'some value' }, { array: [ { value: 'some value' }, { value: 'some value' }, ], }, { value: 'some value'...
[ { "code": null, "e": 1117, "s": 1062, "text": "Suppose, we have a nested array of objects like this −" }, { "code": null, "e": 1675, "s": 1117, "text": "const arr = [\n { value: 'some value' },\n {\n array: [\n { value: 'some value' },\n {\n ar...
Stock Market Analytics with PCA. From Principal Component Analysis to... | by Yao Lei Xu | Towards Data Science
Principal Component Analysis (PCA) is a powerful data analytics tool used in many areas of machine learning. However, despite its versatility and effectiveness, its application in finance is not as widely discussed. Today, I will talk about how PCA can be used in the stock market, how it relates to the Capital Asset Pr...
[ { "code": null, "e": 263, "s": 47, "text": "Principal Component Analysis (PCA) is a powerful data analytics tool used in many areas of machine learning. However, despite its versatility and effectiveness, its application in finance is not as widely discussed." }, { "code": null, "e": 444...
D3.js - Zooming API
Zooming helps to scale your content. You can focus on a particular region using the click-and-drag approach. In this chapter, we will discuss Zooming API in detail. You can load the Zooming API directly from the “d3js.org” using the following script. <script src = "https://d3js.org/d3-color.v1.min.js"></script> <script...
[ { "code": null, "e": 2295, "s": 2130, "text": "Zooming helps to scale your content. You can focus on a particular region using the click-and-drag approach. In this chapter, we will discuss Zooming API in detail." }, { "code": null, "e": 2381, "s": 2295, "text": "You can load the ...
Machine Learning - Correlation Matrix Plot
Correlation is an indication about the changes between two variables. In our previous chapters, we have discussed Pearson’s Correlation coefficients and the importance of Correlation too. We can plot correlation matrix to show which variable is having a high or low correlation in respect to another variable. In the fol...
[ { "code": null, "e": 2614, "s": 2304, "text": "Correlation is an indication about the changes between two variables. In our previous chapters, we have discussed Pearson’s Correlation coefficients and the importance of Correlation too. We can plot correlation matrix to show which variable is having a...
TypeScript - Strings
The String object lets you work with a series of characters. It wraps the string primitive data type with a number of helper methods. var var_name = new String(string); A list of the methods available in String object along with their description is given below − Returns a reference to the String function that created...
[ { "code": null, "e": 2182, "s": 2048, "text": "The String object lets you work with a series of characters. It wraps the string primitive data type with a number of helper methods." }, { "code": null, "e": 2218, "s": 2182, "text": "var var_name = new String(string);\n" }, { ...
MFC - Tree Control
A Tree View Control is a window that displays a hierarchical list of items, such as the headings in a document, the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional bitmapped image, and each item can have a list of subitems associated with it. By clicking an ite...
[ { "code": null, "e": 2494, "s": 2067, "text": "A Tree View Control is a window that displays a hierarchical list of items, such as the headings in a document, the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional bitmapped image, and each item...
Write your own atoi()
22 Jun, 2022 The atoi() function in C takes a string (which represents an integer) as an argument and returns its value of type int. So basically the function is used to convert a string argument to an integer. Syntax: int atoi(const char strn) Parameters: The function accepts one parameter strn which refers to the s...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2022" }, { "code": null, "e": 250, "s": 52, "text": "The atoi() function in C takes a string (which represents an integer) as an argument and returns its value of type int. So basically the function is used to convert a string ...
Python | shutil.unpack_archive() method
08 Nov, 2021 Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module helps in automating process of copying and removal of files and directories.shutil.unpack_archive() method in Python is used to unpack an...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Nov, 2021" }, { "code": null, "e": 351, "s": 28, "text": "Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module helps...
How to control the height and width of the default alert dialog in android?
This example demonstrates how do I control the height and width of the default alert dialog 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" en...
[ { "code": null, "e": 1291, "s": 1187, "text": "This example demonstrates how do I control the height and width of the default alert dialog in android." }, { "code": null, "e": 1420, "s": 1291, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and ...
KPIT Interview Experience | Set 1
29 Oct, 2017 Round 1: It was an Online test.The online test was conducted only for EC, EEE and EI. CS and IS students were not allowed.The test questions were based on aptitude, basics of C, microcontroller and 2 coding questions. Test duration was 3 hours and was conducted remotely using a webcam.The test platform was...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Oct, 2017" }, { "code": null, "e": 63, "s": 54, "text": "Round 1:" }, { "code": null, "e": 395, "s": 63, "text": "It was an Online test.The online test was conducted only for EC, EEE and EI. CS and IS students we...
Password Cracking with Medusa in Linux
02 Dec, 2020 In today’s world, the majority of people are generally aware that malicious users and hackers can steal their confidential information through various attacks. However, most people don’t really understand the specific attacks that they are vulnerable to. So in this article, We are going to learn about Pass...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Dec, 2020" }, { "code": null, "e": 819, "s": 54, "text": "In today’s world, the majority of people are generally aware that malicious users and hackers can steal their confidential information through various attacks. However, most ...
Conditional select between dates in MySQL for maximum and minimum values of price set in a table?
You need to use CASE statement to conditional select between dates to find the minimum and maximum price. Wrap up the CASE statement with aggregate function MIN() and MAX(). The syntax is as follows: SELECT MIN(CASE WHEN CURDATE() BETWEEN yourStartDateColumnName AND yourEndDateColumnName THEN yourLowPriceColumnName ELS...
[ { "code": null, "e": 1262, "s": 1062, "text": "You need to use CASE statement to conditional select between dates to find the minimum and maximum price. Wrap up the CASE statement with aggregate function MIN() and MAX(). The syntax is as follows:" }, { "code": null, "e": 1617, "s": 1...
Machine Learning - Bagged Decision Tree
As we know that bagging ensemble methods work well with the algorithms that have high variance and, in this concern, the best one is decision tree algorithm. In the following Python recipe, we are going to build bagged decision tree ensemble model by using BaggingClassifier function of sklearn with DecisionTreeClasifie...
[ { "code": null, "e": 2708, "s": 2304, "text": "As we know that bagging ensemble methods work well with the algorithms that have high variance and, in this concern, the best one is decision tree algorithm. In the following Python recipe, we are going to build bagged decision tree ensemble model by us...
Python | os.WIFSTOPPED() 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.WIFSTOPPED() method in Python is used to check whether a process has been stopped. Th...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n26 Aug, 2019" }, { "code": null, "e": 24511, "s": 24292, "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...
Decrease a row value by 1 in MySQL?
You can increase and decrease row value by 1 in MySQL using UPDATE command. The syntax is as follows − UPDATE yourTableName set yourColumnName = yourColumnName-1 where condition; Let us create a table to decrease row value by 1. The following is the query − mysql> create table IncrementAndDecrementValue −> ( −> U...
[ { "code": null, "e": 1165, "s": 1062, "text": "You can increase and decrease row value by 1 in MySQL using UPDATE command. The syntax is as follows −" }, { "code": null, "e": 1241, "s": 1165, "text": "UPDATE yourTableName set yourColumnName = yourColumnName-1 where condition;" ...
How can I get enum possible values in a MySQL database using PHP?
You can get the enum possible values in a MySQL database with the help of INFORMATION_SCHEMA.COLUMNS table. The syntax is as follows − SELECT COLUMN_TYPE AS anyAliasName FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = ‘yourDatabaseName’ AND TABLE_NAME = 'yourTableName' AND COLUMN_NAME = 'yourEnumColumnNam...
[ { "code": null, "e": 1197, "s": 1062, "text": "You can get the enum possible values in a MySQL database with the help of INFORMATION_SCHEMA.COLUMNS table. The syntax is as follows −" }, { "code": null, "e": 1386, "s": 1197, "text": "SELECT\n COLUMN_TYPE AS anyAliasName\nFROM\n ...
How to make JOptionPane to handle Yes, No and Closed buttons in Java?
For this, create JOptionPane.QUESTION_MESSAGE and with the user action display individual messages, for example − int res = JOptionPane.showOptionDialog(new JFrame(), "Do you like Cricket?", "Hobbies", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { "Yes", "No" }, JOptionPane.YES_OPTION); ...
[ { "code": null, "e": 1176, "s": 1062, "text": "For this, create JOptionPane.QUESTION_MESSAGE and with the user action display individual messages, for example −" }, { "code": null, "e": 1461, "s": 1176, "text": "int res = JOptionPane.showOptionDialog(new JFrame(), \"Do you like C...
Thompson Sampling. Multi-Armed Bandits: Part 5 | by Steve Roberts | Towards Data Science
Over the last few parts in this series we’ve been looking at increasingly complex methods of solving the Multi-Armed Bandit problem. We’ve now reached the final and most complex of all the methods we’re going to look at: Thompson Sampling. If you’re not already familiar with the bandit problem and its terminology you m...
[ { "code": null, "e": 411, "s": 171, "text": "Over the last few parts in this series we’ve been looking at increasingly complex methods of solving the Multi-Armed Bandit problem. We’ve now reached the final and most complex of all the methods we’re going to look at: Thompson Sampling." }, { "...
TestLink - Import Data
TestLink supports XML and CVS file to import data. It supports importing the data for test suites, test cases, requirements, test execution results, keywords, etc. However, for few cases it supports only XML and in few cases both XML and CVS. Following table displays the functionalities that support import and those th...
[ { "code": null, "e": 2561, "s": 2318, "text": "TestLink supports XML and CVS file to import data. It supports importing the data for test suites, test cases, requirements, test execution results, keywords, etc. However, for few cases it supports only XML and in few cases both XML and CVS." }, { ...
Spring MVC - Resource Bundle View Resolver Example
The ResourceBundleViewResolver is used to resolve the view names using view beans defined in the properties file. The following example shows how to use the ResourceBundleViewResolver using the Spring Web MVC Framework. <bean class = "org.springframework.web.servlet.view.ResourceBundleViewResolver"> <property name =...
[ { "code": null, "e": 3011, "s": 2791, "text": "The ResourceBundleViewResolver is used to resolve the view names using view beans defined in the properties file. The following example shows how to use the ResourceBundleViewResolver using the Spring Web MVC Framework." }, { "code": null, "...
Python | Numpy matrix.itemset() - GeeksforGeeks
15 Apr, 2019 With the help of Numpy matrix.itemset() method, we can set the items in a given matrix by just providing index number and item. Syntax : matrix.itemset(index, item) Return : Return new matrix having item Example #1 :In this example we can see that we are able to set the item with the help of method matrix....
[ { "code": null, "e": 24873, "s": 24845, "text": "\n15 Apr, 2019" }, { "code": null, "e": 25001, "s": 24873, "text": "With the help of Numpy matrix.itemset() method, we can set the items in a given matrix by just providing index number and item." }, { "code": null, "e"...
How to hide action bar in android?
This example demonstrate about How to hide action bar 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 xmlns:a...
[ { "code": null, "e": 1128, "s": 1062, "text": "This example demonstrate about How to hide action bar in android." }, { "code": null, "e": 1257, "s": 1128, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a ...
The Ultimate Guide to Your Terminal Makeover 2021 | by Shinichi Okada | Towards Data Science
[Latest update 2021–12–17, Starship and Nerd Fonts.] Table of Contents· Introduction ∘ Homebrew· iTerm2· Zsh· Oh-My-Zsh ∘ Errors ∘ Shortcut for toggling hidden files· Themes ∘ Starship (Updated) ∘ iTerm2 Theme· Oh-My-Zsh and plugins ∘ 1. git plugin ∘ 2. alias ∘ 3. alias dirs and cd - ∘ 4. autojump plugin ∘ 5....
[ { "code": null, "e": 224, "s": 171, "text": "[Latest update 2021–12–17, Starship and Nerd Fonts.]" }, { "code": null, "e": 922, "s": 224, "text": "Table of Contents· Introduction ∘ Homebrew· iTerm2· Zsh· Oh-My-Zsh ∘ Errors ∘ Shortcut for toggling hidden files· Themes ∘ Starsh...
How to Use Pyspark For Your Machine Learning Project | by François St-Amant | Towards Data Science
Pyspark is a Python API that supports Apache Spark, a distributed framework made for handling big data analysis. It’s an amazing framework to use when you are working with huge datasets, and it’s becoming a must-have skill for any data scientist. In this tutorial, I will present how to use Pyspark to do exactly what yo...
[ { "code": null, "e": 418, "s": 171, "text": "Pyspark is a Python API that supports Apache Spark, a distributed framework made for handling big data analysis. It’s an amazing framework to use when you are working with huge datasets, and it’s becoming a must-have skill for any data scientist." }, ...
Code Generation and Optimization - GeeksforGeeks
21 Jan, 2014 In the following code: a = b * c + g; d = b * c * e; it may be worth transforming the code to: tmp = b * c; a = tmp + g; d = tmp * e; 4*j is common subexpression elimination so B is true. 5*i can be moved out of inner loop so can be i%2. Means, A is true as we have loop invariant computation. Next, ...
[ { "code": null, "e": 25218, "s": 25190, "text": "\n21 Jan, 2014" }, { "code": null, "e": 25355, "s": 25218, "text": "In the following code:\n\na = b * c + g;\nd = b * c * e;\n\nit may be worth transforming the code to:\n\ntmp = b * c;\na = tmp + g;\nd = tmp * e;" }, { "co...
Spring JDBC - SimpleJdbcCall Class
The org.springframework.jdbc.core.SimpleJdbcCall class is a multi-threaded, reusable object representing a call to a stored procedure or a stored function. It provides meta data processing to simplify the code needed to access basic stored procedures/functions. All you need to provide is the name of the procedure/funct...
[ { "code": null, "e": 2658, "s": 2396, "text": "The org.springframework.jdbc.core.SimpleJdbcCall class is a multi-threaded, reusable object representing a call to a stored procedure or a stored function. It provides meta data processing to simplify the code needed to access basic stored procedures/fu...
Plot a lineplot with Seaborn – Python Pandas
Lineplot in Seaborn is used to draw a line plot with possibility of several semantic groupings. The seaborn.lineplot() is used for this. Let’s say the following is our dataset in the form of a CSV file − Cricketers.csv At first, import the required 3 libraries − import seaborn as sb import pandas as pd import matplotli...
[ { "code": null, "e": 1199, "s": 1062, "text": "Lineplot in Seaborn is used to draw a line plot with possibility of several semantic groupings. The seaborn.lineplot() is used for this." }, { "code": null, "e": 1281, "s": 1199, "text": "Let’s say the following is our dataset in the...
AWK - Assignment Operators
AWK supports the following assignment operators − It is represented by =. The following example demonstrates this − [jerry]$ awk 'BEGIN { name = "Jerry"; print "My name is", name }' On executing this code, you get the following result − My name is Jerry It is represented by +=. The following example demonstrates this ...
[ { "code": null, "e": 1907, "s": 1857, "text": "AWK supports the following assignment operators −" }, { "code": null, "e": 1973, "s": 1907, "text": "It is represented by =. The following example demonstrates this −" }, { "code": null, "e": 2039, "s": 1973, "tex...
Monitor and Improve GPU Usage for Training Deep Learning Models | by Lukas Biewald | Towards Data Science
One of the exciting things about running Weights and Biases is that we can research how models are actually using their computational resources in real world scenarios and, since we are making monitoring GPU and memory easy, we wanted to help our users by taking a look at how well folks utilize their computational reso...
[ { "code": null, "e": 499, "s": 172, "text": "One of the exciting things about running Weights and Biases is that we can research how models are actually using their computational resources in real world scenarios and, since we are making monitoring GPU and memory easy, we wanted to help our users by...
Add two numbers represented by two arrays - GeeksforGeeks
19 Mar, 2021 Given two array A[0....n-1] and B[0....m-1] of size n and m respectively, representing two numbers such that every element of arrays represent a digit. For example, A[] = { 1, 2, 3} and B[] = { 2, 1, 4 } represent 123 and 214 respectively. The task is to find the sum of both the number. In above case, answ...
[ { "code": null, "e": 25114, "s": 25086, "text": "\n19 Mar, 2021" }, { "code": null, "e": 25444, "s": 25114, "text": "Given two array A[0....n-1] and B[0....m-1] of size n and m respectively, representing two numbers such that every element of arrays represent a digit. For example...
Prime Factors | Practice | GeeksforGeeks
Given a number N. Find its unique prime factors in increasing order. Example 1: Input: N = 100 Output: 2 5 Explanation: 2 and 5 are the unique prime factors of 100. Example 2: Input: N = 35 Output: 5 7 Explanation: 5 and 7 are the unique prime factors of 35. Your Task: You don't need to read or print anything. Yo...
[ { "code": null, "e": 309, "s": 238, "text": "Given a number N. Find its unique prime factors in increasing order.\n " }, { "code": null, "e": 320, "s": 309, "text": "Example 1:" }, { "code": null, "e": 406, "s": 320, "text": "Input: N = 100\nOutput: 2 5\nExpla...
Print lists in Python (4 Different Ways) - GeeksforGeeks
27 Aug, 2021 Printing a list in python can be done is following ways: Using for loop : Traverse from 0 to len(list) and print all elements of the list one by one using a for loop, this is the standard practice of doing it.PythonPython# Python program to print list# using for loopa = [1, 2, 3, 4, 5] # printing the list...
[ { "code": null, "e": 23761, "s": 23733, "text": "\n27 Aug, 2021" }, { "code": null, "e": 23818, "s": 23761, "text": "Printing a list in python can be done is following ways:" }, { "code": null, "e": 25701, "s": 23818, "text": "Using for loop : Traverse from 0 ...
Python 3 - Number abs() Method
The abs() method returns the absolute value of x i.e. the positive distance between x and zero. Following is the syntax for abs() method − abs( x ) x − This is a numeric expression. This method returns the absolute value of x. The following example shows the usage of the abs() method. #!/usr/bin/python3 print ("abs(-...
[ { "code": null, "e": 2436, "s": 2340, "text": "The abs() method returns the absolute value of x i.e. the positive distance between x and zero." }, { "code": null, "e": 2479, "s": 2436, "text": "Following is the syntax for abs() method −" }, { "code": null, "e": 2489, ...
Amazon WOW Interview Experience - GeeksforGeeks
04 Mar, 2022 I applied for the role of SDE I through Amazon WOW drive 2020. There were a total of 5 rounds (1 coding test + 4 interviews). Originally interviews were supposed to be offline but because of the coronavirus pandemic, I gave my interviews online. Round 1: Round 1 was an online coding round consisting of 2 c...
[ { "code": null, "e": 26393, "s": 26365, "text": "\n04 Mar, 2022" }, { "code": null, "e": 26639, "s": 26393, "text": "I applied for the role of SDE I through Amazon WOW drive 2020. There were a total of 5 rounds (1 coding test + 4 interviews). Originally interviews were supposed t...
AVL with duplicate keys - GeeksforGeeks
28 Feb, 2022 Please refer below post before reading about AVL tree handling of duplicates.How to handle duplicates in Binary Search Tree?This is to augment AVL tree node to store count together with regular fields like key, left and right pointers. Insertion of keys 12, 10, 20, 9, 11, 10, 12, 12 in an empty Binary Sear...
[ { "code": null, "e": 35848, "s": 35820, "text": "\n28 Feb, 2022" }, { "code": null, "e": 36189, "s": 35848, "text": "Please refer below post before reading about AVL tree handling of duplicates.How to handle duplicates in Binary Search Tree?This is to augment AVL tree node to sto...
Combining python and d3.js to create dynamic visualization applications | by Kanishka Narayan | Towards Data Science
The visual form is hypnotic and arresting, unlike any other medium. A painting or an image forces the eyes to see the full picture and presents a form that is free of the constraints of time. It is no wonder that visuals help in adopting a non-linear perspective while trying to understand and solve complex problems. Pr...
[ { "code": null, "e": 490, "s": 172, "text": "The visual form is hypnotic and arresting, unlike any other medium. A painting or an image forces the eyes to see the full picture and presents a form that is free of the constraints of time. It is no wonder that visuals help in adopting a non-linear pers...
GATE | GATE-CS-2015 (Set 1) | Question 65 - GeeksforGeeks
28 Jun, 2021 Consider a system with byte-addressable memory, 32 bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is ___________(A) 2(B) 4(C) 8(D) 16Answer: (B)Explanation: Number of entries in page table = 232 / 4Kbyte ...
[ { "code": null, "e": 25809, "s": 25781, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26057, "s": 25809, "text": "Consider a system with byte-addressable memory, 32 bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table i...
How can we insert current date and time automatically on inserting values in other columns in MySQL?
In MySQL, we can insert the current date and time automatically to a column on inserting the values in another column by declaring that column as DEFAULT CURRENT_TIMESTAMP. mysql> Create table testing -> ( -> StudentName varchar(20) NOT NULL, -> RegDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP -> ); Query OK, 0 ...
[ { "code": null, "e": 1235, "s": 1062, "text": "In MySQL, we can insert the current date and time automatically to a column on inserting the values in another column by declaring that column as DEFAULT CURRENT_TIMESTAMP." }, { "code": null, "e": 1407, "s": 1235, "text": "mysql> Cr...
AWT Line2D Class
The Line2D class states a line segment in (x,y) coordinate space. Following is the declaration for java.awt.geom.Line2D class: public abstract class Line2D extends Object implements Shape, Cloneable protected Line2D() () This is an abstract class that cannot be instantiated directly. Object clone() Creates...
[ { "code": null, "e": 1813, "s": 1747, "text": "The Line2D class states a line segment in (x,y) coordinate space." }, { "code": null, "e": 1874, "s": 1813, "text": "Following is the declaration for java.awt.geom.Line2D class:" }, { "code": null, "e": 1955, "s": 187...
Extracting locations from text using Python - GeeksforGeeks
30 Jun, 2021 In this article, we are going to see how to extract location from text using Python. While working with texts, the requirement can be the detection of cities, regions, states, and countries and relationships between them in the received text. This can be very useful for geographical studies. In this articl...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25640, "s": 25555, "text": "In this article, we are going to see how to extract location from text using Python." }, { "code": null, "e": 25905, "s": 25640, "text": "While...
How to print without newline in Python?
09 Aug, 2021 Generally, people switching from C/C++ to Python wonder how to print two or more variables or statements without going into a new line in python. Since the python print() function by default ends with a newline. Python has a predefined format if you use print(a_variable) then it will go to the next line au...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Aug, 2021" }, { "code": null, "e": 375, "s": 53, "text": "Generally, people switching from C/C++ to Python wonder how to print two or more variables or statements without going into a new line in python. Since the python print() fun...
Proof that Dominant Set of a Graph is NP-Complete
04 Jun, 2020 Pre-requisite: Dominant Set of a Graph, NP-Complete A dominating set in a graph G = (V, E) is a subset of vertices V’ following the condition that the vertices not belonging in V’ are adjacent to some vertex in V’. Problem: Given a graph G(V, E) and an integer k, the problem is to determine if the graph ha...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jun, 2020" }, { "code": null, "e": 106, "s": 54, "text": "Pre-requisite: Dominant Set of a Graph, NP-Complete" }, { "code": null, "e": 269, "s": 106, "text": "A dominating set in a graph G = (V, E) is a subset of...
Replace duplicates with greater than previous duplicate value
25 May, 2021 Given an array of elements and change the array in such a way that all the elements on the array are distinct. If you are replacing a value, then the replacing value should be greater than the previous value and, after modification, the sum of the elements should be as small as possible. Examples: Input :...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 May, 2021" }, { "code": null, "e": 343, "s": 54, "text": "Given an array of elements and change the array in such a way that all the elements on the array are distinct. If you are replacing a value, then the replacing value should b...
Routing in Angular JS using Angular UI Router
19 Feb, 2019 AngularJS is a front-end web application framework based on JavaScript and is maintained by Google. AngularJS interprets the attributes of HTML as directives to bind input/output components to a model represented by standard JavaScript variables. Pre-requisites: HTML CSS JavaScript AngularJS Angular-UI-Rou...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Feb, 2019" }, { "code": null, "e": 299, "s": 52, "text": "AngularJS is a front-end web application framework based on JavaScript and is maintained by Google. AngularJS interprets the attributes of HTML as directives to bind input/ou...
Python | Pandas dataframe.rdiv()
22 Nov, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas dataframe.rdiv() function compute Floating division of dataframe and other, element-wi...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
How to Display Bluetooth Paired Devices Programmatically in Android?
23 Feb, 2021 Bluetooth’s technology is a high-speed, low-powered wireless technology link designed to connect devices such as phones or other portable equipment. It has a specification (IEEE 802.15.1) for low-power radio communications to link computers, phones, and other network devices over a short distance in a wire...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Feb, 2021" }, { "code": null, "e": 1376, "s": 28, "text": "Bluetooth’s technology is a high-speed, low-powered wireless technology link designed to connect devices such as phones or other portable equipment. It has a specification (I...
Find a local minima in an array
19 Dec, 2021 Given an array arr[0 .. n-1] of distinct integers, the task is to find a local minima in it. We say that an element arr[x] is a local minimum if it is less than both its neighbors. For corner elements, we need to consider only one neighbor for comparison. There can be more than one local minima in an arr...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Dec, 2021" }, { "code": null, "e": 235, "s": 52, "text": "Given an array arr[0 .. n-1] of distinct integers, the task is to find a local minima in it. We say that an element arr[x] is a local minimum if it is less than both its neig...
PostgreSQL – RENAME COLUMN
28 Aug, 2020 In PostgreSQL, the RENAME COLUMN clause is used with the ALTER TABLE statement to rename one or more columns in a table. Syntax: ALTER TABLE table_name RENAME COLUMN column_name TO new_column_name; Let’s analyze t5he above syntax: First, specify the table, which contains the column you want to rename, aft...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 149, "s": 28, "text": "In PostgreSQL, the RENAME COLUMN clause is used with the ALTER TABLE statement to rename one or more columns in a table." }, { "code": null, "e": 227, "s": 149...
Sorting Arrays in PHP 5
14 Nov, 2017 What is sorting?Sorting refers to ordering data in an alphabetical, numerical order and increasing or decreasing fashion according to some linear relationship among the data items.Sorting greatly improves the efficiency of searching. Sorting Functions For Arrays In PHP sort() – sorts arrays in ascending or...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Nov, 2017" }, { "code": null, "e": 286, "s": 52, "text": "What is sorting?Sorting refers to ordering data in an alphabetical, numerical order and increasing or decreasing fashion according to some linear relationship among the data ...
Python __iter__() and __next__() | Converting an object into an iterator
31 Aug, 2021 At many instances, we get a need to access an object like an iterator. One way is to form a generator loop but that extends the task and time taken by the programmer. Python eases this task by providing a built-in method __iter__() for this task.The __iter__() function returns an iterator for the given obj...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 Aug, 2021" }, { "code": null, "e": 557, "s": 54, "text": "At many instances, we get a need to access an object like an iterator. One way is to form a generator loop but that extends the task and time taken by the programmer. Python ...
ImageView ScaleType in Android with Example
29 Dec, 2021 ScaleType is used for uniformly scaling the image bounds to the ImageView. Android ImageView provides various types of ScaleType for different configurations. CENTER CENTER_CROP CENTER_INSIDE FIT_CENTER FIT_END FIT_START FIT_XY MATRIX Now, we will look at each of these ScaleType in detail. For exploring t...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2021" }, { "code": null, "e": 187, "s": 28, "text": "ScaleType is used for uniformly scaling the image bounds to the ImageView. Android ImageView provides various types of ScaleType for different configurations." }, { "c...
PostgreSQL – Create Auto-increment Column using SERIAL
28 Aug, 2020 In PostgreSQL, a sequence is a special kind of database object that generates a sequence of integers. A sequence is often used as the primary key column in a table.The SERIAL pseudo-type can be used to generate a sequence while creating a new table. Syntax: CREATE TABLE table_name( id SERIAL ); In the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 278, "s": 28, "text": "In PostgreSQL, a sequence is a special kind of database object that generates a sequence of integers. A sequence is often used as the primary key column in a table.The SERIAL ...
matplotlib.pyplot.scatter() in Python
15 Feb, 2022 Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. It is used for plotting various plots in Python like scatter plot, bar charts, pie charts, line plots, histograms, 3-D plots and many more. We will learn about the scatter plot from the matplotlib...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Feb, 2022" }, { "code": null, "e": 415, "s": 28, "text": "Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. It is used for plotting various plots in Python like scatter plo...
UCASE() or UPPER() Function in MySQL
16 Jun, 2021 1. UCASE() : This function could be used to convert a string to upper-case. This function is similar to the UPPER() function. UPPER()\UCASE() are built-in MySQL function. Syntax : SELECT UCASE(text) Example – SELECT UCASE("MySQL on geeksforgeeks is FUN!") AS UpperText; Output : Now, here you will s...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jun, 2021" }, { "code": null, "e": 200, "s": 28, "text": "1. UCASE() : This function could be used to convert a string to upper-case. This function is similar to the UPPER() function. UPPER()\\UCASE() are built-in MySQL function. " ...
Scala List min() method with example
26 Jul, 2019 The min() method is utilized to find the smallest element of all the elements in the stated list. Method Definition: def min[B >: A](implicit ord: math.Ordering[B]): A Return Type: It returns the smallest of all the elements in the stated list. Example #1: // Scala program of min()// method // Creating ob...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2019" }, { "code": null, "e": 126, "s": 28, "text": "The min() method is utilized to find the smallest element of all the elements in the stated list." }, { "code": null, "e": 196, "s": 126, "text": "Method D...
Sorting an array in Bash using Bubble sort
25 Nov, 2021 Prerequisite: Bubble Sort Given an array arr sort the array in ascending order using bash scripting. Examples: Input : 9 7 2 5 Output : Array in sorted order : 2 5 7 9 Approach : For sorting the array bubble sort is the simplest technique. Bubble sort works by swapping the adjacent elements if they are ...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Nov, 2021" }, { "code": null, "e": 79, "s": 52, "text": "Prerequisite: Bubble Sort " }, { "code": null, "e": 154, "s": 79, "text": "Given an array arr sort the array in ascending order using bash scripting." },...
Turn off the rightmost set bit
08 Jul, 2022 Write a program that unsets the rightmost set bit of an integer. Examples : Input: 12 (00...01100) Output: 8 (00...01000) Input: 7 (00...00111) Output: 6 (00...00110) Let the input number be n. n-1 would have all the bits flipped after the rightmost set bit (including the set bit). So, doing n&(n-1)...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 132, "s": 54, "text": "Write a program that unsets the rightmost set bit of an integer. Examples : " }, { "code": null, "e": 226, "s": 132, "text": "Input: 12 (00...01100)\nOu...
ES6 | Date
23 Oct, 2019 The ES6 Date is defined as the number of milliseconds that have been passed since midnight on January 1, 1970 UTC. Date objects can be created by the new Date() constructor. In JavaScript both date and time are represented by the Date object. Constructors: Date() – Create a date object for the current time...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Oct, 2019" }, { "code": null, "e": 271, "s": 28, "text": "The ES6 Date is defined as the number of milliseconds that have been passed since midnight on January 1, 1970 UTC. Date objects can be created by the new Date() constructor. I...
How to create a Portfolio Gallery using HTML and CSS ?
02 Jun, 2022 To create a portfolio gallery we will need only HTML and CSS. We can use JavaScript also but in this article, limits are set so we will use HTML and CSS only. Divide the whole article into two different sections in the 1st section, we will create the structure for the portfolio gallery and in the second se...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jun, 2022" }, { "code": null, "e": 631, "s": 52, "text": "To create a portfolio gallery we will need only HTML and CSS. We can use JavaScript also but in this article, limits are set so we will use HTML and CSS only. Divide the whol...
Ambiguous Grammar - GeeksforGeeks
12 Nov, 2021 You can also read our previously discussed article on Classification of Context Free Grammars. Context Free Grammars(CFGs) are classified based on: Number of Derivation trees Number of strings Depending on Number of Derivation trees, CFGs are sub-divided into 2 types: Ambiguous grammars Unambiguous gram...
[ { "code": null, "e": 26597, "s": 26569, "text": "\n12 Nov, 2021" }, { "code": null, "e": 26693, "s": 26597, "text": " You can also read our previously discussed article on Classification of Context Free Grammars." }, { "code": null, "e": 26747, "s": 26693, "te...
Zoho Interview Preparation Process and Experience - GeeksforGeeks
29 Jan, 2020 Zoho is one of the best product based company in India with friendly environment. Many engineers are passionate toward coding nowadays. But many face lot of difficulty in cracking the interview. There are few tips i like to share based on my interview experience and past guidance from my college staff and ...
[ { "code": null, "e": 25188, "s": 25160, "text": "\n29 Jan, 2020" }, { "code": null, "e": 25762, "s": 25188, "text": "Zoho is one of the best product based company in India with friendly environment. Many engineers are passionate toward coding nowadays. But many face lot of diffic...
hostname - Unix, Linux Command
hostname - show or set the system's host name. hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-A] [--all-fqdns] [-i] [--ip-address] [-I] [--all-ip-addresses] [--long] [-s] [--short] [-y] [--yp] [--nis] hostname [-v] [-F filename] [--file filename] [hostname] hostname [-v] [-h] [--help] [-V] [--version] ...
[ { "code": null, "e": 10625, "s": 10577, "text": "hostname - show or set the system's host name." }, { "code": null, "e": 10897, "s": 10625, "text": "hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-A] [--all-fqdns] [-i] [--ip-address] [-I] [--all-ip-addresses] [--lon...
Scala - do-while Loop
Unlike while loop, which tests the loop condition at the top of the loop, the do-while loop checks its condition at the bottom of the loop. A do-while loop is similar to a while loop, except that a do-while loop is guaranteed to execute at least one time. The following is the syntax for do-while loop. do { statement...
[ { "code": null, "e": 2254, "s": 1998, "text": "Unlike while loop, which tests the loop condition at the top of the loop, the do-while loop checks its condition at the bottom of the loop. A do-while loop is similar to a while loop, except that a do-while loop is guaranteed to execute at least one tim...
Angular CLI - ng run Command
This chapter explains the syntax, argument and options of ng run command along with an example. The syntax for ng run command is as follows − ng run project:target[:configuration] ng run command runs an Architect target with an optional custom builder configuration defined in angular.json in your project. Here project...
[ { "code": null, "e": 2171, "s": 2075, "text": "This chapter explains the syntax, argument and options of ng run command along with an example." }, { "code": null, "e": 2217, "s": 2171, "text": "The syntax for ng run command is as follows −" }, { "code": null, "e": 225...
JavaScript | Check if a key exists inside a JSON object - GeeksforGeeks
29 May, 2019 Given a JSON Object, the task is to check whether a key exists in Object or not using JavaScript. We’re going to discuss few methods. hasOwnProperty()This method returns a boolean denoting whether the object has the defined property as its own property (as opposed to inheriting it).Syntax:obj.hasOwnPropert...
[ { "code": null, "e": 24736, "s": 24708, "text": "\n29 May, 2019" }, { "code": null, "e": 24870, "s": 24736, "text": "Given a JSON Object, the task is to check whether a key exists in Object or not using JavaScript. We’re going to discuss few methods." }, { "code": null, ...
How to create a modal popup using JavaScript and CSS?
Creating a modal popup means adding a dialog box, which generates on click of a button and close when user clicks anywhere outside of the popup. Here’s how a popup looks like below with header and a text. You can also add a footer to it − To create a modal popup using CSS and JavaScript, try to run the following code −...
[ { "code": null, "e": 1207, "s": 1062, "text": "Creating a modal popup means adding a dialog box, which generates on click of a button and close when user clicks anywhere outside of the popup." }, { "code": null, "e": 1301, "s": 1207, "text": "Here’s how a popup looks like below w...
C++ Program to Implement Merge Sort Algorithm on Linked List
The merge sort technique is based on divide and conquer technique. We divide the while data set into smaller parts and merge them into a larger piece in sorted order. It is also very effective for worst cases because this algorithm has lower time complexity for worst case also. Linked list can be sorted using merge-sor...
[ { "code": null, "e": 1341, "s": 1062, "text": "The merge sort technique is based on divide and conquer technique. We divide the while data set into smaller parts and merge them into a larger piece in sorted order. It is also very effective for worst cases because this algorithm has lower time comple...