title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Linear regression gradient descent python | Towards Data Science
So, understanding what happens in linear regression is so good from an understanding point of view. Here is a deep dive without using python libraries. Here is a link to the source code for this article in github.If you do need an intro to gradient descent have a look at my 5 part YouTube series first. In step 1, we wi...
[ { "code": null, "e": 476, "s": 172, "text": "So, understanding what happens in linear regression is so good from an understanding point of view. Here is a deep dive without using python libraries. Here is a link to the source code for this article in github.If you do need an intro to gradient descen...
JavaScript | Object.defineProperty() Method - GeeksforGeeks
16 Apr, 2020 The Object.defineProperty() method in JavaScript is a Standard built-in objects which defines a new property directly on an object and returns the object. Syntax: Object.defineProperty(obj, prop, descriptor) Parameter: This method accept three parameters as mentioned above and described below: Obj: This p...
[ { "code": null, "e": 25372, "s": 25341, "text": " \n16 Apr, 2020\n" }, { "code": null, "e": 25527, "s": 25372, "text": "The Object.defineProperty() method in JavaScript is a Standard built-in objects which defines a new property directly on an object and returns the object." },...
Reading An Image In Python (Without Using Special Libraries) | by Tanu N Prabhu | Towards Data Science
Well, the above picture is splendid, isn’t it?. It’s a masterpiece to me. Nonetheless, have you ever thought or asked yourself this one million dollar question: What is an image made up of? Now, before reading this entire tutorial, I want you guys to answer this question in the comment section, in that way you can give...
[ { "code": null, "e": 333, "s": 172, "text": "Well, the above picture is splendid, isn’t it?. It’s a masterpiece to me. Nonetheless, have you ever thought or asked yourself this one million dollar question:" }, { "code": null, "e": 362, "s": 333, "text": "What is an image made up ...
How to get column count in a ResultSet in JDBC?
You can get the column count in a table using the getColumnCount() method of the ResultSetMetaData interface. On invoking, this method returns an integer representing the number of columns in the table in the current ResultSet object. //Retrieving the ResultSetMetaData object ResultSetMetaData rsmd = rs.getMetaData(); ...
[ { "code": null, "e": 1297, "s": 1062, "text": "You can get the column count in a table using the getColumnCount() method of the ResultSetMetaData interface. On invoking, this method returns an integer representing the number of columns in the table in the current ResultSet object." }, { "cod...
Python OpenCV - Roberts Edge Detection - GeeksforGeeks
19 Dec, 2021 Edge detection refers to a set of mathematical techniques for recognizing points in a digital image where the image brightness abruptly changes or, more formally, where there are discontinuities. The sharp fluctuations in image brightness are usually grouped into a collection of curved line segments called...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n19 Dec, 2021" }, { "code": null, "e": 24608, "s": 24292, "text": "Edge detection refers to a set of mathematical techniques for recognizing points in a digital image where the image brightness abruptly changes or, more formally, ...
Face Detection in just 5 lines of code using python | Towards Data Science
Face detection is a computer technology division of deep learning. It identifies human faces in digital images or video scenes. It is used in a variety of applications such as Facial Recognition, Unlock smartphones, Smart advertising, Emotional inference, and many more. Deep learning is a subset of machine learning in ...
[ { "code": null, "e": 443, "s": 172, "text": "Face detection is a computer technology division of deep learning. It identifies human faces in digital images or video scenes. It is used in a variety of applications such as Facial Recognition, Unlock smartphones, Smart advertising, Emotional inference,...
Java - cos() Method
The method returns the cosine of the specified double value. double cos(double d) Here is the detail of parameters − d − This method accepts a value of double data type. d − This method accepts a value of double data type. This method returns the cosine of the specified double value. public class Test { public st...
[ { "code": null, "e": 2438, "s": 2377, "text": "The method returns the cosine of the specified double value." }, { "code": null, "e": 2460, "s": 2438, "text": "double cos(double d)\n" }, { "code": null, "e": 2495, "s": 2460, "text": "Here is the detail of param...
Python OpenCV | cv2.line() method
10 Jun, 2022 OpenCV-Python is a library of Python bindings designed to solve computer vision problems.cv2.line() method is used to draw a line on any image. Syntax: cv2.line(image, start_point, end_point, color, thickness) Parameters: image: It is the image on which line is to be drawn. start_point: It is the startin...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2022" }, { "code": null, "e": 172, "s": 28, "text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems.cv2.line() method is used to draw a line on any image." }, { "code": null, ...
Find the Missing Point of Parallelogram
29 Jun, 2022 Given three coordinate points A, B and C, find the missing point D such that ABCD can be a parallelogram.Examples : Input : A = (1, 0) B = (1, 1) C = (0, 1) Output : 0, 0 Explanation: The three input points form a unit square with the point (0, 0) Input : A = (5, 0) B = (1, 1) ...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Jun, 2022" }, { "code": null, "e": 172, "s": 54, "text": "Given three coordinate points A, B and C, find the missing point D such that ABCD can be a parallelogram.Examples : " }, { "code": null, "e": 392, "s": 172, ...
Find the slope of the given number
06 Sep, 2021 Find the slope of the given number num. Slope of a number is the count of the minima and maxima digits in it. A digit is called a minima if the digit is lesser than the digit before and after it. Similarly a digit is called a maxima if the digit is greater than the digit before and after it. Examples: Inp...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Sep, 2021" }, { "code": null, "e": 345, "s": 52, "text": "Find the slope of the given number num. Slope of a number is the count of the minima and maxima digits in it. A digit is called a minima if the digit is lesser than the digit...
Difference between Compile-time and Run-time Polymorphism in Java
23 Jun, 2022 The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. In this article, we will see the difference between two types of polymorphisms, compile time and run time. Compile Time Polymorphism: Whenever an ob...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 320, "s": 54, "text": "The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. In this article,...
Python | Check if given string is numeric or not
25 Jun, 2022 Given a string, write a Python program to check if the string is numeric or not. Examples: Input: 28 Output: digit Input: a Output: not a digit. Input: 21ab Output: not a digit. Code #1: Using Python regex re.search(): This method either returns None (if the pattern doesn’t match) or a re.MatchObje...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jun, 2022" }, { "code": null, "e": 110, "s": 28, "text": "Given a string, write a Python program to check if the string is numeric or not. " }, { "code": null, "e": 121, "s": 110, "text": "Examples: " }, { ...
Software Testing | Load Testing
03 Jun, 2022 Load Testing is a type of Performance Testing that determines the performance of a system, software product, or software application under real-life based load conditions. Basically, load testing determines the behavior of the application when multiple users use it at the same time. It is the response of t...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jun, 2022" }, { "code": null, "e": 458, "s": 28, "text": "Load Testing is a type of Performance Testing that determines the performance of a system, software product, or software application under real-life based load conditions. Bas...
Doubly Circular Linked List | Set 2 (Deletion)
11 Jul, 2022 We have discussed the doubly circular linked list introduction and its insertion.Let us formulate the problem statement to understand the deletion process. Given a ‘key’, delete the first occurrence of this key in the circular doubly linked list. Algorithm: Case 1: Empty List(start = NULL) If the list i...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Jul, 2022" }, { "code": null, "e": 301, "s": 53, "text": "We have discussed the doubly circular linked list introduction and its insertion.Let us formulate the problem statement to understand the deletion process. Given a ‘key’, del...
What’s the Difference Between “const” and “val” in Kotlin?
21 Apr, 2022 In Kotlin, as in other programming languages, properties can be mutable (changeable) or immutable (not changeable). To declare an immutable property, we utilize the terms const and val. Developers are frequently perplexed as to when to utilize one of these phrases. In this article, we will examine the dist...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2022" }, { "code": null, "e": 376, "s": 28, "text": "In Kotlin, as in other programming languages, properties can be mutable (changeable) or immutable (not changeable). To declare an immutable property, we utilize the terms cons...
How to Custom Sort in SQL ORDER BY Clause?
28 Oct, 2021 By default SQL ORDER BY sort, the column in ascending order but when the descending order is needed ORDER BY DESC can be used. In case when we need a custom sort then we need to use a CASE statement where we have to mention the priorities to get the column sorted. In this article let us see how we can cust...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Oct, 2021" }, { "code": null, "e": 293, "s": 28, "text": "By default SQL ORDER BY sort, the column in ascending order but when the descending order is needed ORDER BY DESC can be used. In case when we need a custom sort then we need ...
Sort an array of dates in PHP
08 Mar, 2018 We are given an array which consists of multiple dates in (Y-m-d) format. We have to write a program in PHP to sort all the dates present in the array in decreasing order. Examples : Input : array("2018-06-04", "2014-06-08", "2018-06-05") Output : 2018-06-05 2018-06-04 2014-06-08 Input : array("2016-09-...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Mar, 2018" }, { "code": null, "e": 200, "s": 28, "text": "We are given an array which consists of multiple dates in (Y-m-d) format. We have to write a program in PHP to sort all the dates present in the array in decreasing order." ...
Student Data Management in C++
08 Mar, 2022 Databases are being used in every aspect of our lives right now. Trillions of bytes of data are being stored in servers around the world. SQL is one of the most basic methods to use such a database. But have you ever thought about using C++ to maintain such a database. In this post, we will talk about impl...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Mar, 2022" }, { "code": null, "e": 451, "s": 52, "text": "Databases are being used in every aspect of our lives right now. Trillions of bytes of data are being stored in servers around the world. SQL is one of the most basic methods...
Themes and background colors in ggplot2 in R
24 Oct, 2021 In this article, we will discuss how to change the look of a plot theme (background color, panel background color, and gridlines) using the R Programming Language and ggplot2 package. The ggplot2 package in R Language has 8 built-in themes. To use these themes we just need to add that theme function to th...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Oct, 2021" }, { "code": null, "e": 213, "s": 28, "text": "In this article, we will discuss how to change the look of a plot theme (background color, panel background color, and gridlines) using the R Programming Language and ggplot2 ...
Making a simple PWA under 5 minutes
01 Jun, 2021 Progressive Web Apps, that is PWAs, are a type of application that is developed using web technologies and can be installed on any device like a traditional application. Creating a simple PWA is very easy as it involves adding two important files to the project. After that, the PWA would be ready to be ins...
[ { "code": null, "e": 53, "s": 25, "text": "\n01 Jun, 2021" }, { "code": null, "e": 392, "s": 53, "text": "Progressive Web Apps, that is PWAs, are a type of application that is developed using web technologies and can be installed on any device like a traditional application. Crea...
NPDA for accepting the language L = {an bm cn | m,n>=1}
15 Jun, 2022 Prerequisite – Pushdown automata, Pushdown automata acceptance by final state Problem – – Design a non deterministic PDA for accepting the language L = {[Tex]b^m [/Tex]| m, n>=1}, i.e., L = { abc, abbc, abbbc, aabbcc, aaabccc, aaaabbbcccc, ...... } In each of the string, the number of a’s is equal to ...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 131, "s": 52, "text": "Prerequisite – Pushdown automata, Pushdown automata acceptance by final state " }, { "code": null, "e": 240, "s": 131, "text": "Problem – – Design a non d...
How to get the value of a textarea in jQuery ?
03 Aug, 2021 We can get the value of textarea in jQuery with the help of val() method . The val() method is used to get the values from the elements such as textarea, input and select. This method simply returns or sets the value attribute of the selected elements and is mostly used with the form elements. When calle...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Aug, 2021" }, { "code": null, "e": 427, "s": 28, "text": "We can get the value of textarea in jQuery with the help of val() method . The val() method is used to get the values from the elements such as textarea, input and select. Thi...
toordinal() Function Of Datetime.date Class In Python
23 Aug, 2021 The toordinal() function is used to return the proleptic Gregorian ordinal of a specified datetime instance. Note: The Proleptic Gregorian ordinal gives the number of days elapsed from the date 01/Jan/0001. And here ordinal is called Proleptic since the Gregorian calendar itself is followed from October 15...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 137, "s": 28, "text": "The toordinal() function is used to return the proleptic Gregorian ordinal of a specified datetime instance." }, { "code": null, "e": 339, "s": 137, "text"...
How to create custom dialog box with text input React Native?
10 Dec, 2020 React Native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. In this article, we are going to create a dialog with Text Input. To achieve this we will use React Native’s built-in Modal component which we will use as a Dialog. Ther...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2020" }, { "code": null, "e": 331, "s": 28, "text": "React Native is a framework developed by Facebook for creating native-style apps for iOS & Android under one common language, JavaScript. In this article, we are going to crea...
Remove duplicates from a string in O(1) extra space
12 Jul, 2022 Given a string str of lowercase characters, the task is to remove duplicates and return a resultant string without modifying the order of characters in the original string. Examples: Input: str = "geeksforgeeks" Output: geksfor Input: str = "characters" Output: chartes Approach: The idea is to use bits ...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Jul, 2022" }, { "code": null, "e": 225, "s": 52, "text": "Given a string str of lowercase characters, the task is to remove duplicates and return a resultant string without modifying the order of characters in the original string." ...
sklearn.Binarizer() in Python
29 Jun, 2021 sklearn.preprocessing.Binarizer() is a method which belongs to preprocessing module. It plays a key role in the discretization of continuous feature values. Example #1: A continuous data of pixels values of an 8-bit grayscale image have values ranging between 0 (black) and 255 (white) and one needs it to b...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2021" }, { "code": null, "e": 736, "s": 28, "text": "sklearn.preprocessing.Binarizer() is a method which belongs to preprocessing module. It plays a key role in the discretization of continuous feature values. Example #1: A cont...
How to convert a single character to string in C++?
27 Jan, 2021 How to convert a single character to a string object.Examples: Input : x = 'a' Output : string s = "a" Input : x = 'b' Output : string s = "b" The idea is to use string class which has a constructor that allows us to specify size of string as first parameter and character to be filled in given size ...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 Jan, 2021" }, { "code": null, "e": 118, "s": 53, "text": "How to convert a single character to a string object.Examples: " }, { "code": null, "e": 201, "s": 118, "text": "Input : x = 'a'\nOutput : string s = \"...
Stream map() in Java with examples
06 Dec, 2018 Stream map(Function mapper) returns a stream consisting of the results of applying the given function to the elements of this stream. Stream map(Function mapper) is an intermediate operation. These operations are always lazy. Intermediate operations are invoked on a Stream instance and after they finish th...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Dec, 2018" }, { "code": null, "e": 186, "s": 52, "text": "Stream map(Function mapper) returns a stream consisting of the results of applying the given function to the elements of this stream." }, { "code": null, "e": 414...
std::plus in c++
26 Jul, 2017 It is a Function object for performing addition. The object class whose call returns the result of adding its two arguments (as returned by operator + ). Syntax : template struct plus : binary_function { T operator() (const T& x, const T& y) const { return x + y; } }; Template parameters : T - Type o...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Jul, 2017" }, { "code": null, "e": 208, "s": 54, "text": "It is a Function object for performing addition. The object class whose call returns the result of adding its two arguments (as returned by operator + )." }, { "code"...
Sum values of a single row in MySQL?
You can use below syntax to sum values of a single row − Case 1 − The following is the syntax if your column does not have NULL value − SELECT yourColumnName1+yourColumnName2+yourColumnName3+.......+N as anyVariableName FROM yourTableName; Case 2 − If your column has NULL value then use this syntax − SELECT IFNULL(your...
[ { "code": null, "e": 1119, "s": 1062, "text": "You can use below syntax to sum values of a single row −" }, { "code": null, "e": 1198, "s": 1119, "text": "Case 1 − The following is the syntax if your column does not have NULL value −" }, { "code": null, "e": 1302, ...
How can matplotlib be used to plot 3 different datasets on a single graph in Python?
Matplotlib is a popular Python package that is used for data visualization. Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations. It helps in communicating the quantitative insights to the audience effective...
[ { "code": null, "e": 1386, "s": 1062, "text": "Matplotlib is a popular Python package that is used for data visualization. Visualizing data is a key step since it helps understand what is going on in the data without actually looking at the numbers and performing complicated computations. It helps i...
Period normalized() method in Java with Examples - GeeksforGeeks
27 Nov, 2018 The normalized() method of Period class in Java is used to return a new instance of Period after normalizing years and months. Syntax: public Period normalized() Parameters: This function does not accepts any parameter. Return Value: This function returns a new instance of Period after normalizing year and...
[ { "code": null, "e": 24239, "s": 24211, "text": "\n27 Nov, 2018" }, { "code": null, "e": 24366, "s": 24239, "text": "The normalized() method of Period class in Java is used to return a new instance of Period after normalizing years and months." }, { "code": null, "e":...
reflect.New() Function in Golang with Examples - GeeksforGeeks
03 May, 2020 Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package.The reflect.New() Function in Golang is used to get the Value representing a pointer to a new zero value for the specified type. To a...
[ { "code": null, "e": 23907, "s": 23879, "text": "\n03 May, 2020" }, { "code": null, "e": 24292, "s": 23907, "text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of refle...
Maximum Consecutive Increasing Path Length in Binary Tree - GeeksforGeeks
04 Mar, 2022 Given a Binary Tree find the length of the longest path which comprises of nodes with consecutive values in increasing order. Every node is considered as a path of length 1. Examples: 10 / \ / \ 11 9 / \ /\ / \ / \ 13 12 13 8 Maxim...
[ { "code": null, "e": 24807, "s": 24779, "text": "\n04 Mar, 2022" }, { "code": null, "e": 24993, "s": 24807, "text": "Given a Binary Tree find the length of the longest path which comprises of nodes with consecutive values in increasing order. Every node is considered as a path of...
How to monitor real time SQL execution statistics in Oracle?
Problem: You want to monitor currently executing SQL statistics in Oracle. Solution If your database is Oracle Database 11g, you can use the following query to select from the “V$SQL_MONITOR” to monitor the near real time resource consumption of SQL queries. The statistics in “V$SQL_MONITOR” are updated every second. T...
[ { "code": null, "e": 1071, "s": 1062, "text": "Problem:" }, { "code": null, "e": 1137, "s": 1071, "text": "You want to monitor currently executing SQL statistics in Oracle." }, { "code": null, "e": 1146, "s": 1137, "text": "Solution" }, { "code": null,...
Python Tkinter – Set Entry width 100%
Tkinter Entry widgets accept single-line user input in a text field. We can change the properties of the Entry widget by providing the default attributes and values in its constructor. Let us suppose that we want to create a full-width Entry widget for an application. There are several ways to do that but if we conside...
[ { "code": null, "e": 1247, "s": 1062, "text": "Tkinter Entry widgets accept single-line user input in a text field. We can change the properties of the Entry widget by providing the default attributes and values in its constructor." }, { "code": null, "e": 1552, "s": 1247, "text"...
Java Examples - Add Text as Paragraphs
How to add text to a PDF document as paragraphs using Java. Following is the program to add text to a PDF document as paragraphs using Java. import com.itextpdf.io.font.FontConstants; import com.itextpdf.kernel.color.Color; import com.itextpdf.kernel.font.PdfFontFactory; import com.itextpdf.kernel.pdf.PdfDocument; ...
[ { "code": null, "e": 2128, "s": 2068, "text": "How to add text to a PDF document as paragraphs using Java." }, { "code": null, "e": 2209, "s": 2128, "text": "Following is the program to add text to a PDF document as paragraphs using Java." }, { "code": null, "e": 4365...
CICS - BMS
BMS is known as Basic Mapping Support. An application consists of formatted screens which act as a bridge between the terminal and the CICS programs. For communication to occur between the terminal and the CICS programs, we use CICS terminal input/output services. We use BMS to create screen designs with proper positio...
[ { "code": null, "e": 2302, "s": 1926, "text": "BMS is known as Basic Mapping Support. An application consists of formatted screens which act as a bridge between the terminal and the CICS programs. For communication to occur between the terminal and the CICS programs, we use CICS terminal input/outpu...
WPF - Quick Guide
WPF stands for Windows Presentation Foundation. It is a powerful framework for building Windows applications. This tutorial explains the features that you need to understand to build WPF applications and how it brings a fundamental change in Windows applications. WPF was first introduces in .NET framework 3.0 version, ...
[ { "code": null, "e": 2284, "s": 2020, "text": "WPF stands for Windows Presentation Foundation. It is a powerful framework for building Windows applications. This tutorial explains the features that you need to understand to build WPF applications and how it brings a fundamental change in Windows app...
jQuery - DOM Manipulation
JQuery provides methods to manipulate DOM in efficient way. You do not need to write big code to modify the value of any element's attribute or to extract HTML code from a paragraph or division. JQuery provides methods such as .attr(), .html(), and .val() which act as getters, retrieving information from DOM elements f...
[ { "code": null, "e": 2517, "s": 2322, "text": "JQuery provides methods to manipulate DOM in efficient way. You do not need to write big code to modify the value of any element's attribute or to extract HTML code from a paragraph or division." }, { "code": null, "e": 2656, "s": 2517, ...
How to create a plot in R with gridlines using plot function?
Any plot created by using plot function does not display the plot with gridlines. On the other hand, if we create a plot using ggplot2 package then the plot has gridlines. Therefore, if we want to have gridlines on our plot then either we should create the plot using ggplot2 package or we can use the command grid() to ...
[ { "code": null, "e": 1438, "s": 1062, "text": "Any plot created by using plot function does not display the plot with gridlines. On the other hand, if we create a plot using ggplot2 package then the plot has gridlines. Therefore, if we want to have gridlines on our plot then either we should create ...
A Practical Guide for Data Cleaning: Obesity Rate Dataset | by Soner Yıldırım | Towards Data Science
The fuel of each and every machine learning or deep learning model is data. Without data, the models are useless. Before building a model and train it, we should try to explore and understand the data at hand. By understanding, I mean correlations, structures, distributions, characteristics and trends in data. A compre...
[ { "code": null, "e": 757, "s": 172, "text": "The fuel of each and every machine learning or deep learning model is data. Without data, the models are useless. Before building a model and train it, we should try to explore and understand the data at hand. By understanding, I mean correlations, struct...
Python | Kendall Rank Correlation Coefficient
20 Jul, 2021 What is correlation test?The strength of the association between two variables is known as the correlation test. For instance, if we are interested to know whether there is a relationship between the heights of fathers and sons, a correlation coefficient can be calculated to answer this question. For know ...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jul, 2021" }, { "code": null, "e": 326, "s": 28, "text": "What is correlation test?The strength of the association between two variables is known as the correlation test. For instance, if we are interested to know whether there is a ...
Second Order Linear Differential Equations
01 Oct, 2019 There are two types of second order linear differential equations: Homogeneous Equations, and Non-Homogeneous Equations. Homogeneous Equations: General Form of Equation:These equations are of the form:A(x)y" + B(x)y' + C(x)y = 0where y’=(dy/dx) and A(x), B(x) and C(x) are functions of independent variable ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Oct, 2019" }, { "code": null, "e": 149, "s": 28, "text": "There are two types of second order linear differential equations: Homogeneous Equations, and Non-Homogeneous Equations." }, { "code": null, "e": 172, "s": 149...
Automate YouTube Music to Spotify with Python
14 Sep, 2021 Sometimes we listen to a song on YouTube music, and we really found that song interesting, and you want to add that to your Spotify playlist. Then you manually search that song, add it to the Spotify playlist. But we can automate that process of searching YouTube songs and add them into Spotify playlist us...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Sep, 2021" }, { "code": null, "e": 518, "s": 54, "text": "Sometimes we listen to a song on YouTube music, and we really found that song interesting, and you want to add that to your Spotify playlist. Then you manually search that so...
Difference between std::remove and vector::erase for vectors
20 Jun, 2022 std::remove : It doesn’t actually delete elements from the container but only shunts non-deleted elements forwards on top of deleted elements. vector::erase : Removes from the vector either a single element (position) or a range of elements ([first, last)). std::remove vs vector::erase By using erase all e...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jun, 2022" }, { "code": null, "e": 312, "s": 54, "text": "std::remove : It doesn’t actually delete elements from the container but only shunts non-deleted elements forwards on top of deleted elements. vector::erase : Removes from th...
Print Concatenation of Zig-Zag String in ‘n’ Rows
13 Sep, 2021 Given a string and number of rows ‘n’. Print the string formed by concatenating n rows when input string is written in row-wise Zig-Zag fashion. Examples: Input: str = "ABCDEFGH" n = 2 Output: "ACEGBDFH" Explanation: Let us write input string in Zig-Zag fashion in 2 rows. A C E G...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Sep, 2021" }, { "code": null, "e": 199, "s": 54, "text": "Given a string and number of rows ‘n’. Print the string formed by concatenating n rows when input string is written in row-wise Zig-Zag fashion." }, { "code": null, ...
Python – Write dictionary of list to CSV
12 Jul, 2022 In this article, we will discuss the practical implementation of how to write a dictionary of lists to CSV. We can use the csv module for this. The csvwriter file object supports three methods such as csvwriter.writerow(), csvwriter.writerows(), csvwriter.writeheader(). Syntax: csv.writer(csvfile, dialect...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jul, 2022" }, { "code": null, "e": 136, "s": 28, "text": "In this article, we will discuss the practical implementation of how to write a dictionary of lists to CSV." }, { "code": null, "e": 300, "s": 136, "text":...
Python | Ways to convert string to json object
18 May, 2020 Data send and get generally in a string of dictionary(JSON objects) forms in many web API’s to use that data to extract meaningful information we need to convert that data in dictionary form and use for further operations. Let’s see some ways to convert string to json.Method #1: dict object to string objec...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 May, 2020" }, { "code": null, "e": 251, "s": 28, "text": "Data send and get generally in a string of dictionary(JSON objects) forms in many web API’s to use that data to extract meaningful information we need to convert that data in ...
turtle.write() function in Python
16 Feb, 2021 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to write text at the current turtle position. Syntax : turtle.write...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Feb, 2021" }, { "code": null, "e": 269, "s": 52, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ve...
How to create singleton design pattern in PHP 5 ?
06 Jul, 2021 php <?php class DataBaseConnector { private static $obj; private final function __construct() { echo __CLASS__ . " initialize only once "; } public static function getConnect() { if (!isset(self::$obj)) { self::$obj = new DataBaseC...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Jul, 2021" }, { "code": null, "e": 58, "s": 54, "text": "php" }, { "code": "<?php class DataBaseConnector { private static $obj; private final function __construct() { echo __CL...
C# | ArrayList Class - GeeksforGeeks
03 Apr, 2019 ArrayList represents an ordered collection of an object that can be indexed individually. It is basically an alternative to an array. It also allows dynamic memory allocation, adding, searching and sorting items in the list. Properties of ArrayList Class: Elements can be added or removed from the Array Lis...
[ { "code": null, "e": 25224, "s": 25196, "text": "\n03 Apr, 2019" }, { "code": null, "e": 25449, "s": 25224, "text": "ArrayList represents an ordered collection of an object that can be indexed individually. It is basically an alternative to an array. It also allows dynamic memory...
C++ Set Library - set() Function
The C++ constructor std::set::set() (Range Constructor) constructs a set container with as many elements as mentioned in the range [first,last), with each set element constructed from its corresponding element in that range. Following is the declaration for std::set::set() range constructor from std::set header. templa...
[ { "code": null, "e": 2828, "s": 2603, "text": "The C++ constructor std::set::set() (Range Constructor) constructs a set container with as many elements as mentioned in the range [first,last), with each set element constructed from its corresponding element in that range." }, { "code": null, ...
How can we set the background color to a JPanel in Java?
A JPanel is a container and it is an invisible component in Java. The FlowLayout is a default layout for a JPanel. We can add most of the components like buttons, text fields, labels, table, list, tree and etc. to a JPanel. We can set a background color to JPanel by using the setBackground() method. import java.awt.* i...
[ { "code": null, "e": 1363, "s": 1062, "text": "A JPanel is a container and it is an invisible component in Java. The FlowLayout is a default layout for a JPanel. We can add most of the components like buttons, text fields, labels, table, list, tree and etc. to a JPanel. We can set a background color...
React useRef Hook
The useRef Hook allows you to persist values between renders. It can be used to store a mutable value that does not cause a re-render when updated. It can be used to access a DOM element directly. If we tried to count how many times our application renders using the useState Hook, we would be caught in an infinite loop...
[ { "code": null, "e": 62, "s": 0, "text": "The useRef Hook allows you to persist values between renders." }, { "code": null, "e": 148, "s": 62, "text": "It can be used to store a mutable value that does not cause a re-render when updated." }, { "code": null, "e": 197, ...
How to Create a Table With a Foreign Key in SQL? - GeeksforGeeks
31 Aug, 2021 Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracle, SQL Server, PostGre, etc. In order to create a table with Foreign Key, we must have to know few Key Constraints: Super Key : An attribute, or...
[ { "code": null, "e": 24402, "s": 24374, "text": "\n31 Aug, 2021" }, { "code": null, "e": 24594, "s": 24402, "text": "Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracl...
MongoDB. From Installation to Implementation... | by Mike Wolfe | Towards Data Science
In part one, I started building a database to use for a monthly budgeting application. We covered the installation of MongoDB, as well as some of the syntax differences. After installing, we created a database, our first collection, and also created a document to go inside of this Grocery collection. In part two, we di...
[ { "code": null, "e": 473, "s": 171, "text": "In part one, I started building a database to use for a monthly budgeting application. We covered the installation of MongoDB, as well as some of the syntax differences. After installing, we created a database, our first collection, and also created a doc...
Software Quality Management - Quick Guide
Quality software refers to a software which is reasonably bug or defect free, is delivered in time and within the specified budget, meets the requirements and/or expectations, and is maintainable. In the software engineering context, software quality reflects both functional quality as well as structural quality. Softw...
[ { "code": null, "e": 2346, "s": 2031, "text": "Quality software refers to a software which is reasonably bug or defect free, is delivered in time and within the specified budget, meets the requirements and/or expectations, and is maintainable. In the software engineering context, software quality re...
Three Popular Feature Selection Methods for Efficient Machine Learning in Python | by Rashida Nasrin Sucky | Towards Data Science
Feature selection is one of the most important parts of machine learning. In most datasets in the real world, there might be many features. But not all the features are necessary for a certain machine learning algorithm. Using too much unnecessary features may cause a lot of problems. The first one is definitely the co...
[ { "code": null, "e": 681, "s": 172, "text": "Feature selection is one of the most important parts of machine learning. In most datasets in the real world, there might be many features. But not all the features are necessary for a certain machine learning algorithm. Using too much unnecessary feature...
Powershell - Read Text File
Get-Content cmdlet is used to read content of a text file. In this example, we're reading content of test.txt. Get-Content D:\temp\test\test.txt You can see following output in PowerShell console. Welcome to TutorialsPoint 15 Lectures 3.5 hours Fabrice Chrzanowski 35 Lectures 2.5 hours Vi...
[ { "code": null, "e": 2093, "s": 2034, "text": "Get-Content cmdlet is used to read content of a text file." }, { "code": null, "e": 2145, "s": 2093, "text": "In this example, we're reading content of test.txt." }, { "code": null, "e": 2181, "s": 2145, "text": "...
C# Linq SkipLast Method
Skip elements from the end and return the remaining elements using the SkipLast() method. The following is an array. int[] marks = { 45, 88, 50, 90, 95, 85 }; Now, let us skip two elements from the end using SkipLast() and Lambda Expressions, but this is done after arranging the elements in descending order. IEnumerabl...
[ { "code": null, "e": 1152, "s": 1062, "text": "Skip elements from the end and return the remaining elements using the SkipLast() method." }, { "code": null, "e": 1179, "s": 1152, "text": "The following is an array." }, { "code": null, "e": 1221, "s": 1179, "te...
20 Examples to Master Pandas Series | by Soner Yıldırım | Towards Data Science
Pandas is a highly popular data analysis and manipulation library for Python. It provides versatile and powerful functions to handle data in tabular form. The two core data structures of Pandas are DataFrame and Series. DataFrame is a two-dimensional structure with labelled rows and columns. It is similar to a SQL tabl...
[ { "code": null, "e": 327, "s": 172, "text": "Pandas is a highly popular data analysis and manipulation library for Python. It provides versatile and powerful functions to handle data in tabular form." }, { "code": null, "e": 657, "s": 327, "text": "The two core data structures of...
Left most and right most index | Practice | GeeksforGeeks
Given a sorted array with possibly duplicate elements. The task is to find indexes of first and last occurrences of an element X in the given array. Note: If the element is not present in the array return {-1,-1} as pair. Example 1: Input: N = 9 v[] = {1, 3, 5, 5, 5, 5, 67, 123, 125} X = 5 Output: 2 5 Explanation: In...
[ { "code": null, "e": 387, "s": 238, "text": "Given a sorted array with possibly duplicate elements. The task is to find indexes of first and last occurrences of an element X in the given array." }, { "code": null, "e": 460, "s": 387, "text": "Note: If the element is not present i...
Diskpart Command in Windows - GeeksforGeeks
30 Nov, 2021 DiskPart is a powerful tool for disk management under Windows OS. Diskpart Command is used to manage the computer hard drive, partitions, and volumes. This Command is not only limited to Windows 10 but also available in Windows 8.1,8,7 or even in Windows 2000. The Diskpart is used from creating or deleting...
[ { "code": null, "e": 24276, "s": 24248, "text": "\n30 Nov, 2021" }, { "code": null, "e": 24649, "s": 24276, "text": "DiskPart is a powerful tool for disk management under Windows OS. Diskpart Command is used to manage the computer hard drive, partitions, and volumes. This Command...
Demystifying GANs in TensorFlow 2.0 | by Daniel | Towards Data Science
This tutorial shows you how you can easily implement a Generative Adversarial Network (GAN) in the new TensorFlow Version 2.0. We’ll focus on the basic implementation, which leaves room for optional enhancements. Before we’ll take a closer look at the implementation, we need to understand the idea and theory behind GAN...
[ { "code": null, "e": 592, "s": 172, "text": "This tutorial shows you how you can easily implement a Generative Adversarial Network (GAN) in the new TensorFlow Version 2.0. We’ll focus on the basic implementation, which leaves room for optional enhancements. Before we’ll take a closer look at the imp...
Explain Generator functions in JavaScript?
JavaScript supports Generator functions and Generator Objects. A generator function is the same as a normal function, but whenever it needs to generate a value it uses the 'yield' keyword rather than 'return'. The 'yield' keyword halts the function execution and sends a value back to the caller. It has an ability that ...
[ { "code": null, "e": 1442, "s": 1062, "text": "JavaScript supports Generator functions and Generator Objects. A generator function is the same as a normal function, but whenever it needs to generate a value it uses the 'yield' keyword rather than 'return'. The 'yield' keyword halts the function exec...
Java Program to Find the Area of Trapezium - GeeksforGeeks
22 Dec, 2020 A trapezium is a convex quadrilateral, which has only two parallel sides and the other two sides are non-parallel. The non-parallel sides of the trapezium are referred to as its legs while the parallel sides are called the bases. It is also called a trapezoid. A parallelogram is also often referred to as a...
[ { "code": null, "e": 23583, "s": 23555, "text": "\n22 Dec, 2020" }, { "code": null, "e": 23926, "s": 23583, "text": "A trapezium is a convex quadrilateral, which has only two parallel sides and the other two sides are non-parallel. The non-parallel sides of the trapezium are refe...
Estimating Uncertainty in Machine Learning Models — Part 1 | by Gideon Mendels | Towards Data Science
Author: Dhruv Nair, Data Scientist, Comet.ml “We demand rigidly defined areas of doubt and uncertainty!” — Douglas Adams, The Hitchhiker’s Guide to the Galaxy Let’s imagine for a second that we’re building a computer vision model for a construction company, ABC Construction. The company is interested in automating its ...
[ { "code": null, "e": 217, "s": 172, "text": "Author: Dhruv Nair, Data Scientist, Comet.ml" }, { "code": null, "e": 277, "s": 217, "text": "“We demand rigidly defined areas of doubt and uncertainty!”" }, { "code": null, "e": 331, "s": 277, "text": "— Douglas Ad...
Live Reloading with Browser Sync
Live Reload specifies the changes in the file system. The BrowserSync is used to watch all HTML and CSS files in the css directory and performs the live reload to the page in all browsers whenever files were changed. BrowserSync makes workflow faster by synchronizing URL's, interactions and code changes across multiple...
[ { "code": null, "e": 2146, "s": 1816, "text": "Live Reload specifies the changes in the file system. The BrowserSync is used to watch all HTML and CSS files in the css directory and performs the live reload to the page in all browsers whenever files were changed. BrowserSync makes workflow faster by...
How to check if event exists on element in jQuery?
To check if event exists on element in jQuery, check for the existing events on the element. Here, I have set the div − <div id="demo"> This is demo text. Click here! </div> When you click div, then the alert generates which I have set using the div id: $("#demo").click(function() { alert("Does event exists? - "+h...
[ { "code": null, "e": 1156, "s": 1062, "text": "To check if event exists on element in jQuery, check for the existing events on the element. " }, { "code": null, "e": 1183, "s": 1156, "text": "Here, I have set the div −" }, { "code": null, "e": 1239, "s": 1183, ...
EnumSet allof() Method in Java - GeeksforGeeks
02 Jul, 2018 The Java.util.EnumSet.allOf(Class elementType) in Java is used to create an enum set that will be used to contain all of the elements in the specified elementType. Syntax: public static > EnumSet allOf(Class elementType) Parameters: The method accepts one parameter elementType of element type and refers to...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n02 Jul, 2018" }, { "code": null, "e": 24032, "s": 23868, "text": "The Java.util.EnumSet.allOf(Class elementType) in Java is used to create an enum set that will be used to contain all of the elements in the specified elementType....
PHP | Constants - GeeksforGeeks
09 Mar, 2018 Constants are either identifiers or simple names that can be assigned any fixed values. They are similar to a variable except that they can never be changed. They remain constant throughout the program and cannot be altered during execution. Once a constant is defined, it cannot be undefined or redefined. ...
[ { "code": null, "e": 42274, "s": 42246, "text": "\n09 Mar, 2018" }, { "code": null, "e": 42943, "s": 42274, "text": "Constants are either identifiers or simple names that can be assigned any fixed values. They are similar to a variable except that they can never be changed. They ...
Absolute Deviation and Absolute Mean Deviation using NumPy | Python - GeeksforGeeks
20 May, 2019 Absolute value:Absolute value or the modulus of a real number x is the non-negative value of x without regard to its sign. For example absolute value of 7 is 7 and the absolute value of -7 is also 7. Deviation:Deviation is a measure of the difference between the observed value of a variable and some other ...
[ { "code": null, "e": 26551, "s": 26523, "text": "\n20 May, 2019" }, { "code": null, "e": 26751, "s": 26551, "text": "Absolute value:Absolute value or the modulus of a real number x is the non-negative value of x without regard to its sign. For example absolute value of 7 is 7 and...
C# Program to Sort Student Names in Descending Order using LINQ - GeeksforGeeks
29 Dec, 2021 Given a list of student names, now our task is to sort the names given in the list in descending order using the LINQ, This task can be done using OrderByDescending() method of LINQ. This method is used to sort the elements in the collection in descending order. While using this method in the LINQ query yo...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n29 Dec, 2021" }, { "code": null, "e": 26041, "s": 25657, "text": "Given a list of student names, now our task is to sort the names given in the list in descending order using the LINQ, This task can be done using OrderByDescendin...
Android | How to display Analog clock and Digital clock - GeeksforGeeks
19 Feb, 2021 Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio Android | Starting with first app/android project Android | Running your first Android app Analog and digital clocks are used for display the time in android application. Analog clock: Analog clock...
[ { "code": null, "e": 26034, "s": 26006, "text": "\n19 Feb, 2021" }, { "code": null, "e": 26050, "s": 26034, "text": "Pre-requisites:" }, { "code": null, "e": 26101, "s": 26050, "text": "Android App Development Fundamentals for Beginners" }, { "code": n...
Bootstrap - Tab Plugin
Tabs were introduced in the chapter Bootstrap Navigation Elements. By combining a few data attributes, you can easily create a tabbed interface. With this plug-in you can transition through panes of local content in tabs or pills, even via drop down menus. You can enable tabs in the following two ways − Via data attrib...
[ { "code": null, "e": 3588, "s": 3331, "text": "Tabs were introduced in the chapter Bootstrap Navigation Elements. By combining a few data attributes, you can easily create a tabbed interface. With this plug-in you can transition through panes of local content in tabs or pills, even via drop down men...
Add two unsigned numbers using bits - GeeksforGeeks
25 May, 2021 Given two unsigned integers (maximum possible input can be of 32 bits). The task is to add two numbers using bit operations. Examples: Input: n1 = 12, n2 = 34 Output: 46 Input: n1 = 12564 n2 = -1 Output: 12563 Approach: Since we know that in bit addition 1+0=1 0+1=1 0+0=0 1+1=0 carry 1 if(carry==1) ...
[ { "code": null, "e": 25833, "s": 25805, "text": "\n25 May, 2021" }, { "code": null, "e": 25959, "s": 25833, "text": "Given two unsigned integers (maximum possible input can be of 32 bits). The task is to add two numbers using bit operations. " }, { "code": null, "e": ...
C++ Sets | Practice | GeeksforGeeks
Given two sets A and B of size N and M . Perform set operation i.e union, intersection and difference on sets using set_union, set_difference and set_intersection functions of STL. Example 1: Input: N = 4, M = 5 A = {1, 2, 3, 4} B = {3, 4, 5, 6, 7} Output: 1 2 3 4 5 6 7 1 2 3 4 Explaination: Union of two sets A (1 2 ...
[ { "code": null, "e": 407, "s": 226, "text": "Given two sets A and B of size N and M . Perform set operation i.e union, intersection and difference on sets using set_union, set_difference and set_intersection functions of STL." }, { "code": null, "e": 419, "s": 407, "text": "\nExa...
An Intro to Collaborative Filtering for Movie Recommendation | by Destin Gong | Towards Data Science
Recommender system has become a rising topic as we demand more customized contents push to our daily feeds. I guess we are all familiar with the recommended videos on YouTube, and we are all — more than once — the victims of late-night Netflix binge watching. There are two popular methods in recommender system, collabo...
[ { "code": null, "e": 432, "s": 172, "text": "Recommender system has become a rising topic as we demand more customized contents push to our daily feeds. I guess we are all familiar with the recommended videos on YouTube, and we are all — more than once — the victims of late-night Netflix binge watch...
Modeling and Generating Time-Series Data using TimeGAN | by Archit Yadav | Towards Data Science
In a previous article, the idea of generating artificial or synthetic data was explored, given a limited amount of dataset as a starter. The data taken at that time was tabular, which is like a regular dataset which we usually encounter. In this article however, we will look at time-series data and explore a way to gen...
[ { "code": null, "e": 525, "s": 171, "text": "In a previous article, the idea of generating artificial or synthetic data was explored, given a limited amount of dataset as a starter. The data taken at that time was tabular, which is like a regular dataset which we usually encounter. In this article h...
jQuery - Set Attribute Properties
The attr( properties) method set a key/value object as properties to all matched elements. Here is the simple syntax to use this method − selector.attr({property1:value1, property2:value2}) Here is the description of all the parameters used by this method − property − This is the CSS property of the matched element. p...
[ { "code": null, "e": 2413, "s": 2322, "text": "The attr( properties) method set a key/value object as properties to all matched elements." }, { "code": null, "e": 2460, "s": 2413, "text": "Here is the simple syntax to use this method −" }, { "code": null, "e": 2513, ...
PyTorch[Vision] — Multiclass Image Classification | by Akshaj Verma | Towards Data Science
This notebook takes you through the implementation of multi-class image classification with CNNs using the Rock Paper Scissor dataset on PyTorch. import numpy as npimport pandas as pdimport seaborn as snsfrom tqdm.notebook import tqdmimport matplotlib.pyplot as pltimport torchimport torchvisionimport torch.nn as nnimpo...
[ { "code": null, "e": 317, "s": 171, "text": "This notebook takes you through the implementation of multi-class image classification with CNNs using the Rock Paper Scissor dataset on PyTorch." }, { "code": null, "e": 733, "s": 317, "text": "import numpy as npimport pandas as pdimp...
F# - for...to and for...downto
A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times. The syntax of a for...to loop in F# programming language is − for var = start-expr to end-expr do ... // loop body The syntax of a for...downto loop in F# programming language i...
[ { "code": null, "e": 2300, "s": 2161, "text": "A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times." }, { "code": null, "e": 2362, "s": 2300, "text": "The syntax of a for...to loop in F# program...
LEX program to add line numbers to a given file
30 Apr, 2019 Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt.Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language. Prerequisite: Flex (Fast lexical Analyzer Generator) Example: Inpu...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Apr, 2019" }, { "code": null, "e": 293, "s": 52, "text": "Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt.Lex reads an input stream specifying the lexical analyzer and outputs...
HashedIn by Deloitte Interview Experience | On-Campus 2021
04 Oct, 2021 HashedIn by Deloitte conducted on-campus recruitment in our college. They shared the list of eligible candidates and around 185 students were eligible to take the test. Round 1(Online Test): It was an online test consisting of 2 coding questions and one debugging question. 2 questions were of easy level an...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Oct, 2021" }, { "code": null, "e": 223, "s": 54, "text": "HashedIn by Deloitte conducted on-campus recruitment in our college. They shared the list of eligible candidates and around 185 students were eligible to take the test." },...
How to create a dialog with “yes” and “no” options in JavaScript?
No, you cannot create a dialog box with “yes” or “no”. A confirmation dialog box in JavaScript has “Ok” and “Cancel” button. To create a dialog with “yes” or “nor”, use a custom dialog box. Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></...
[ { "code": null, "e": 1312, "s": 1187, "text": "No, you cannot create a dialog box with “yes” or “no”. A confirmation dialog box in JavaScript has “Ok” and “Cancel” button." }, { "code": null, "e": 1377, "s": 1312, "text": "To create a dialog with “yes” or “nor”, use a custom dial...
How to animate div width and height on mouse hover using jQuery ?
17 Sep, 2019 In order to animate the div width and height on mouse hover, we can use the jQuery animate() method along with the mouseenter() and mouseleave() methods. .animate() method: The animate() method changes the state of the element with CSS style.Syntax:$(selector).animate({styles}, para1, para2, para3); $(sele...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Sep, 2019" }, { "code": null, "e": 182, "s": 28, "text": "In order to animate the div width and height on mouse hover, we can use the jQuery animate() method along with the mouseenter() and mouseleave() methods." }, { "code":...
How to move an array element from one array position to another in Java?
To move an element from one position to other (swap) you need to – Create a temp variable and assign the value of the original position to it. Now, assign the value in the new position to original position. Finally, assign the value in the temp to the new position. Live Demo import java.util.Arrays; public class Chang...
[ { "code": null, "e": 1254, "s": 1187, "text": "To move an element from one position to other (swap) you need to –" }, { "code": null, "e": 1330, "s": 1254, "text": "Create a temp variable and assign the value of the original position to it." }, { "code": null, "e": 13...
How to create slide left and right toggle effect using jQuery?
17 Sep, 2019 The task here is to create a slide left and right toggle effect in the JQuery, you can use the jQuery animate() method..animate() method: It is used to change the CSS property to create the animated effect for the selected element. Syntax: (selector).animate({styles}, para1, para2, para3); Approach: Actual...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Sep, 2019" }, { "code": null, "e": 260, "s": 28, "text": "The task here is to create a slide left and right toggle effect in the JQuery, you can use the jQuery animate() method..animate() method: It is used to change the CSS property...
Python statistics | mean() function
27 Sep, 2021 Prerequisite : Introduction to Statistical FunctionsPython is a very popular language when it comes to data analysis and statistics. Luckily, Python3 provide statistics module, which comes with very useful functions like mean(), median(), mode() etc.mean() function can be used to calculate mean/average of ...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Sep, 2021" }, { "code": null, "e": 703, "s": 54, "text": "Prerequisite : Introduction to Statistical FunctionsPython is a very popular language when it comes to data analysis and statistics. Luckily, Python3 provide statistics modul...
Matplotlib.pyplot.savefig() in Python
26 May, 2020 Matplotlib is highly useful visualization library in Python. It is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. Visualization plays a very important role as it helps us to understand huge chunks of data and extract knowledge. As the na...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 May, 2020" }, { "code": null, "e": 350, "s": 52, "text": "Matplotlib is highly useful visualization library in Python. It is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader Sci...
How to Embed Audio and Video in HTML?
22 Jun, 2022 HTML stands for HyperText Markup Language. It is used to design web pages using a markup language. It is a combination of Hypertext and Markup language. HTML uses predefined tags and elements that tell the browser how to properly display the content on the screen. So, in this article, we will learn how to ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2022" }, { "code": null, "e": 463, "s": 28, "text": "HTML stands for HyperText Markup Language. It is used to design web pages using a markup language. It is a combination of Hypertext and Markup language. HTML uses predefined t...
Converting seconds into days, hours, minutes and seconds
01 Apr, 2021 Given an integer n(in seconds).Convert it into days, hours, minutes and seconds.Examples: Input : 369121517 Output : 4272 days 5 hours 45 minutes 17 seconds Input : 129600 Output : 1 days 12 hours 0 minutes 0 seconds Number of days = ⌊ n / (24 * 3600) ⌋ Number of Hours = ⌊ (n % (24 * 3600)) / 3600 ⌋...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Apr, 2021" }, { "code": null, "e": 144, "s": 52, "text": "Given an integer n(in seconds).Convert it into days, hours, minutes and seconds.Examples: " }, { "code": null, "e": 272, "s": 144, "text": "Input : 36912...
Bellman Ford Algorithm (Simple Implementation)
21 Jun, 2021 We have introduced Bellman Ford and discussed on implementation here.Input: Graph and a source vertex src Output: Shortest distance to all vertices from src. If there is a negative weight cycle, then shortest distances are not calculated, negative weight cycle is reported.1) This step initializes distances...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2021" }, { "code": null, "e": 1567, "s": 54, "text": "We have introduced Bellman Ford and discussed on implementation here.Input: Graph and a source vertex src Output: Shortest distance to all vertices from src. If there is a n...
Get trains between stations using Python
29 Dec, 2020 Suppose you want to travel using Indian railways and want to look for the trains between specified stations. Doing this manually can be very hectic. So in this article, we will write a script that will automatically fetch data from railyatri and will tell the name of the trains along with their code betwee...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2020" }, { "code": null, "e": 361, "s": 28, "text": "Suppose you want to travel using Indian railways and want to look for the trains between specified stations. Doing this manually can be very hectic. So in this article, we wil...
Python | Pandas Series.dt.freq
20 Mar, 2019 Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.freq attribute return the time series frequency applied on the given series object if any, else it return None. Syntax: Series.dt.freq Parameter : None Returns : frequency Example #1: Us...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Mar, 2019" }, { "code": null, "e": 286, "s": 53, "text": "Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.freq attribute return the time series frequency appli...
v-bind Directive in Vue.js
06 Jun, 2022 The v-bind directive is a Vuejs directive used to bind one or more attributes, or a component prop to an element. If that attribute is binded to our data defined in Vuejs instance then dynamically changes can be observed as data changes. First, we will create a div element with id as app and let’s apply th...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2022" }, { "code": null, "e": 477, "s": 28, "text": "The v-bind directive is a Vuejs directive used to bind one or more attributes, or a component prop to an element. If that attribute is binded to our data defined in Vuejs inst...
Scraping Indeed Job Data Using Python
23 May, 2021 In this article, we are going to see how to scrape Indeed job data using python. Here we will use Beautiful Soup and the request module to scrape the data. bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module does not come built-in with Python. To install thi...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2021" }, { "code": null, "e": 184, "s": 28, "text": "In this article, we are going to see how to scrape Indeed job data using python. Here we will use Beautiful Soup and the request module to scrape the data." }, { "code...
Implement *, – and / operations using only + arithmetic operator
19 May, 2021 Given two numbers, perform multiplication, subtraction, and division operations on them, using ‘+’ arithmetic operator only. Operations can be performed as follows: Subtraction :- a - b = a + (-1)*b. Multiplication :- a * b = a + a + a ... b times. Division :- a / b = continuously subtract b from a an...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 May, 2021" }, { "code": null, "e": 179, "s": 53, "text": "Given two numbers, perform multiplication, subtraction, and division operations on them, using ‘+’ arithmetic operator only. " }, { "code": null, "e": 221, "s...
Data Structures | Linked List | Question 11
14 Jul, 2019 Consider the function f defined below. struct item { int data; struct item * next; }; int f(struct item *p) { return ( (p == NULL) || (p->next == NULL) || (( P->data <= p->next->data) && f(p->next)) ); } For a given linked list p, the function f returns 1 if an...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Jul, 2019" }, { "code": null, "e": 93, "s": 54, "text": "Consider the function f defined below." }, { "code": "struct item { int data; struct item * next; }; int f(struct item *p) { return ( (p == NULL) || ...