title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Ext.js - Ext.panel.Panel Container
Ext.panel.Panel: It is the basic container which allows to add items in a normal panel. Following is the simple syntax to create Ext.panel.Panel container. Ext.create('Ext.panel.Panel', { items: [child1, child2] // this way we can add different child elements to the container as container items. }); Following...
[ { "code": null, "e": 2111, "s": 2023, "text": "Ext.panel.Panel: It is the basic container which allows to add items in a normal panel." }, { "code": null, "e": 2179, "s": 2111, "text": "Following is the simple syntax to create Ext.panel.Panel container." }, { "code": null...
Get a substring of specified length from a string in Julia - SubString() Method - GeeksforGeeks
26 Mar, 2020 The SubString() is an inbuilt function in julia which is used to return a part of the specified parent string s within range i:j or r, where i, j and r is given as the parameter. Syntax:SubString(string::AbstractString, i::Integer, j::Integer)orSubString(string::AbstractString, r::UnitRange) Parameters: st...
[ { "code": null, "e": 24278, "s": 24250, "text": "\n26 Mar, 2020" }, { "code": null, "e": 24457, "s": 24278, "text": "The SubString() is an inbuilt function in julia which is used to return a part of the specified parent string s within range i:j or r, where i, j and r is given as...
org.json - JSONArray
A JSONArray is an ordered sequence of values. It provides methods to access values by index and to put values. Following types are supported − Boolean Boolean JSONArray JSONArray JSONObject JSONObject Number Number String String JSONObject.NULL object JSONObject.NULL object import org.json.JSONArray; import org.json.JS...
[ { "code": null, "e": 2118, "s": 1975, "text": "A JSONArray is an ordered sequence of values. It provides methods to access values by index and to put values. Following types are supported −" }, { "code": null, "e": 2126, "s": 2118, "text": "Boolean" }, { "code": null, ...
MySQL Select Rows where two columns do not have the same value?
You can use != operator from MySQL for this. The syntax is as follows: SELECT *FROM yourTableName WHERE yourColumnName1 !=yourColumnName2 OR (yourColumnName1 IS NULL AND yourColumnName2IS NOT NULL) OR (yourColumnName2 IS NULL AND yourColumnName1 IS NOT NULL); To understand the above syntax, let us create a table. The q...
[ { "code": null, "e": 1133, "s": 1062, "text": "You can use != operator from MySQL for this. The syntax is as follows:" }, { "code": null, "e": 1322, "s": 1133, "text": "SELECT *FROM yourTableName\nWHERE yourColumnName1 !=yourColumnName2\nOR (yourColumnName1 IS NULL AND yourColumn...
How to get the value of id attribute in jQuery?
Use jQuery attr() method to get the value of id attribute. You can try to run the following code to learn how to get the value in jQuery − Live Demo <html> <head> <title>jQuery Example</title> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> ...
[ { "code": null, "e": 1201, "s": 1062, "text": "Use jQuery attr() method to get the value of id attribute. You can try to run the following code to learn how to get the value in jQuery −" }, { "code": null, "e": 1211, "s": 1201, "text": "Live Demo" }, { "code": null, "...
Minimum element in a sorted and rotated array | Practice | GeeksforGeeks
A sorted array A[ ] with distinct elements is rotated at some unknown point, the task is to find the minimum element in it. Example 1 Input: N = 5 arr[] = {4 ,5 ,1 ,2 ,3} Output: 1 Explanation: 1 is the minimum element inthe array. Example 2 Input: N = 7 arr[] = {10, 20, 30, 40, 50, 5, 7} Output: 5 Explanation: Here 5 ...
[ { "code": null, "e": 362, "s": 238, "text": "A sorted array A[ ] with distinct elements is rotated at some unknown point, the task is to find the minimum element in it." }, { "code": null, "e": 372, "s": 362, "text": "Example 1" }, { "code": null, "e": 470, "s": 3...
SQL - UNIONS CLAUSE
The SQL UNION clause/operator is used to combine the results of two or more SELECT statements without returning any duplicate rows. To use this UNION clause, each SELECT statement must have The same number of columns selected The same number of column expressions The same data type and Have them in the same order But t...
[ { "code": null, "e": 2585, "s": 2453, "text": "The SQL UNION clause/operator is used to combine the results of two or more SELECT statements without returning any duplicate rows." }, { "code": null, "e": 2643, "s": 2585, "text": "To use this UNION clause, each SELECT statement mu...
Overflow Handling in Data Structure
An overflow occurs at the time of the home bucket for a new pair (key, element) is full. We may tackle overflows by Search the hash table in some systematic manner for a bucket that is not full. Linear probing (linear open addressing). Quadratic probing. Random probing. Eliminate overflows by allowing each bucket to ke...
[ { "code": null, "e": 1151, "s": 1062, "text": "An overflow occurs at the time of the home bucket for a new pair (key, element) is full." }, { "code": null, "e": 1178, "s": 1151, "text": "We may tackle overflows by" }, { "code": null, "e": 1257, "s": 1178, "tex...
RxJS - Working with Subjects
A subject is an observable that can multicast i.e. talk to many observers. Consider a button with an event listener, the function attached to the event using add listener is called every time the user clicks on the button similar functionality goes for subject too. We are going to discuss the following topics in this c...
[ { "code": null, "e": 2090, "s": 1824, "text": "A subject is an observable that can multicast i.e. talk to many observers. Consider a button with an event listener, the function attached to the event using add listener is called every time the user clicks on the button similar functionality goes for ...
How to deal with error “undefined columns selected when subsetting data frame” in R?
The error “undefined columns selected when subsetting data frame” means that R does not understand the column that you want to use while subsetting the data frame. Generally, this happens when we forget to use comma while subsetting with single square brackets. Consider the below data frame − > set.seed(99) > x1<-rnorm...
[ { "code": null, "e": 1324, "s": 1062, "text": "The error “undefined columns selected when subsetting data frame” means that R does not understand the column that you want to use while subsetting the data frame. Generally, this happens when we forget to use comma while subsetting with single square b...
How can I show a hidden div when a select option is selected in JavaScript?
To show a hidden div when a select option is selected, you can set the value “style.display” to block. Following is the code − <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <link rel="stylesheet" href...
[ { "code": null, "e": 1165, "s": 1062, "text": "To show a hidden div when a select option is selected, you can set the value “style.display” to block." }, { "code": null, "e": 1189, "s": 1165, "text": "Following is the code −" }, { "code": null, "e": 2033, "s": 118...
Good String | Practice | GeeksforGeeks
Given a string s of length N, you have to tell whether it is good or not. A good string is one where the distance between every two adjacent character is exactly 1. Here distance is defined by minimum distance between two character when alphabets from 'a' to 'z' are put in cyclic manner. For example distance between 'a...
[ { "code": null, "e": 721, "s": 238, "text": "Given a string s of length N, you have to tell whether it is good or not. A good string is one where the distance between every two adjacent character is exactly 1. Here distance is defined by minimum distance between two character when alphabets from 'a'...
Maximum and minimum of an array using minimum number of comparisons - GeeksforGeeks
03 Jan, 2022 Write a C function to return minimum and maximum in an array. Your program should make the minimum number of comparisons. First of all, how do we return multiple values from a C function? We can do it either using structures or pointers. We have created a structure named pair (which contains min and max) ...
[ { "code": null, "e": 21473, "s": 21445, "text": "\n03 Jan, 2022" }, { "code": null, "e": 21596, "s": 21473, "text": "Write a C function to return minimum and maximum in an array. Your program should make the minimum number of comparisons. " }, { "code": null, "e": 218...
Can I overload static methods in Java?
Overloading is a one of the mechanisms to achieve polymorphism where, a class contains two methods with same name and different parameters. Whenever you call this method the method body will be bound with the method call based on the parameters. Live Demo public class Calculator { public int addition(int a , int b)...
[ { "code": null, "e": 1202, "s": 1062, "text": "Overloading is a one of the mechanisms to achieve polymorphism where, a class contains two methods with same name and different parameters." }, { "code": null, "e": 1308, "s": 1202, "text": "Whenever you call this method the method b...
Toggle bits of a number except first and last bits - GeeksforGeeks
22 Mar, 2021 Given a number, the task is to toggle bits of the number except the first and the last bit.Examples: Input : 10 Output : 12 Binary representation:- 1 0 1 0 After toggling first and last : 1 1 0 0 Input : 9 Output : 15 Binary representation : 1 0 0 1 After toggling first and last : 1 1 1 1 Prerequisite...
[ { "code": null, "e": 24606, "s": 24578, "text": "\n22 Mar, 2021" }, { "code": null, "e": 24709, "s": 24606, "text": "Given a number, the task is to toggle bits of the number except the first and the last bit.Examples: " }, { "code": null, "e": 24899, "s": 24709, ...
Rust - Input Output
This chapter discusses how to accept values from the standard input (keyboard) and display values to the standard output (console). In this chapter, we will also discuss passing command line arguments. Rust’s standard library features for input and output are organized around two traits − Read Write Read Types that imp...
[ { "code": null, "e": 2289, "s": 2087, "text": "This chapter discusses how to accept values from the standard input (keyboard) and display values to the standard output (console). In this chapter, we will also discuss passing command line arguments." }, { "code": null, "e": 2377, "s":...
Add error bars to a Matplotlib bar plot - GeeksforGeeks
17 Dec, 2020 Prerequisites: Matplotlib In this article, we will create a bar plot with error bars using Matplotlib. Error bar charts are a great way to represent the variability in your data. It can be applied to graphs to provide an additional layer of detailed information on the presented data. Import required pytho...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n17 Dec, 2020" }, { "code": null, "e": 25673, "s": 25647, "text": "Prerequisites: Matplotlib" }, { "code": null, "e": 25933, "s": 25673, "text": "In this article, we will create a bar plot with error bars using...
Permutations to arrange N persons around a circular table - GeeksforGeeks
18 Jan, 2022 Given N, the number of persons. The task is to arrange N person around a circular table.Examples: Input: N = 4 Output: 6 Input: N = 5 Output: 24 Approach: It is the concept of Circular permutation i.e. there is no specific starting point in the arrangement, any element can be considered as the start o...
[ { "code": null, "e": 24552, "s": 24524, "text": "\n18 Jan, 2022" }, { "code": null, "e": 24652, "s": 24552, "text": "Given N, the number of persons. The task is to arrange N person around a circular table.Examples: " }, { "code": null, "e": 24700, "s": 24652, ...
ArrayAdapter in Android with Example - GeeksforGeeks
23 Oct, 2020 The Adapter acts as a bridge between the UI Component and the Data Source. It converts data from the data sources into view items that can be displayed into the UI Component. Data Source can be Arrays, HashMap, Database, etc. and UI Components can be ListView, GridView, Spinner, etc. ArrayAdapter is the mo...
[ { "code": null, "e": 25076, "s": 25048, "text": "\n23 Oct, 2020" }, { "code": null, "e": 25769, "s": 25076, "text": "The Adapter acts as a bridge between the UI Component and the Data Source. It converts data from the data sources into view items that can be displayed into the UI...
K Nearest Neighbor Algorithm In Python | by Cory Maklin | Towards Data Science
K-Nearest Neighbors, or KNN for short, is one of the simplest machine learning algorithms and is used in a wide array of institutions. KNN is a non-parametric, lazy learning algorithm. When we say a technique is non-parametric, it means that it does not make any assumptions about the underlying data. In other words, it...
[ { "code": null, "e": 786, "s": 172, "text": "K-Nearest Neighbors, or KNN for short, is one of the simplest machine learning algorithms and is used in a wide array of institutions. KNN is a non-parametric, lazy learning algorithm. When we say a technique is non-parametric, it means that it does not m...
Drop Empty Columns in Pandas - GeeksforGeeks
23 Dec, 2020 In this article, we will try to see different ways of removing the Empty column, Null column, and zeros value column. First, We will create a sample data frame and then we will perform our operations in subsequent examples by the end you will get a strong hand knowledge on how to handle this situation with...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n23 Dec, 2020" }, { "code": null, "e": 24608, "s": 24292, "text": "In this article, we will try to see different ways of removing the Empty column, Null column, and zeros value column. First, We will create a sample data frame and...
Sentiment Analysis on Amazon Reviews | by Enes Gokce | Towards Data Science
Understanding the data better is one of the crucial steps in data analysis. In this study, I will analyze the Amazon reviews. The reviews are unstructured. In other words, the text is unorganized. Sentiment analysis, however, helps us make sense of all this unstructured text by automatically tagging it. Sentiment analy...
[ { "code": null, "e": 452, "s": 47, "text": "Understanding the data better is one of the crucial steps in data analysis. In this study, I will analyze the Amazon reviews. The reviews are unstructured. In other words, the text is unorganized. Sentiment analysis, however, helps us make sense of all thi...
Spark MLlib on AWS Glue. Distributed ML on AWS that’s ready to... | by John Elliott | Towards Data Science
AWS pushes Sagemaker as its machine learning platform. However, Spark’s MLlib is a comprehensive library that runs distributed ML natively on AWS Glue — and provides a viable alternative to their primary ML platform. One of the big benefits of Sagemaker is that it easily supports experimentation via its Jupyter Noteboo...
[ { "code": null, "e": 264, "s": 47, "text": "AWS pushes Sagemaker as its machine learning platform. However, Spark’s MLlib is a comprehensive library that runs distributed ML natively on AWS Glue — and provides a viable alternative to their primary ML platform." }, { "code": null, "e": 76...
How can I aggregate nested documents in MongoDB?
To aggregate nested documents in MongoDB, you can use $group. Let us first create a collection with documents − > db.aggregateDemo.insertOne( ... { ... "ProductInformation": [ ... { ... "Product1": [ ... { ... Amount: 50 ... }, ... ...
[ { "code": null, "e": 1174, "s": 1062, "text": "To aggregate nested documents in MongoDB, you can use $group. Let us first create a collection with documents −" }, { "code": null, "e": 3384, "s": 1174, "text": "> db.aggregateDemo.insertOne(\n... {\n... \"ProductInformatio...
JavaScript Number - MAX_VALUE
The Number.MAX_VALUE property belongs to the static Number object. It represents constants for the largest possible positive numbers that JavaScript can work with. The actual value of this constant is 1.7976931348623157 x 10308 The syntax to use MAX_VALUE is − var val = Number.MAX_VALUE; Try the following example to l...
[ { "code": null, "e": 2630, "s": 2466, "text": "The Number.MAX_VALUE property belongs to the static Number object. It represents constants for the largest possible positive numbers that JavaScript can work with." }, { "code": null, "e": 2694, "s": 2630, "text": "The actual value o...
How to put a Tkinter window on top of the others?
Whenever we create a GUI program, tkinter generally presents the output screen in the background. In other words, tkinter displays the program window behind other programs. In order to put the tkinter window on top of others, we are required to use attributes('- topmost',True) property. It pulls up the window on the up...
[ { "code": null, "e": 1388, "s": 1062, "text": "Whenever we create a GUI program, tkinter generally presents the output screen in the background. In other words, tkinter displays the program window behind other programs. In order to put the tkinter window on top of others, we are required to use attr...
Spam Email Classifier with KNN — From Scratch (Python) | by Abdelrahman Ragab | Towards Data Science
KNN (K-Nearest Neighbours) is one of the very straightforward supervised learning algorithms. However, unlike the traditional supervised learning algorithms, such as Multinomial Naive Bayes algorithm, KNN doesn’t have an independent training stage, and then a stage where the labels for the test data are predicted based...
[ { "code": null, "e": 760, "s": 171, "text": "KNN (K-Nearest Neighbours) is one of the very straightforward supervised learning algorithms. However, unlike the traditional supervised learning algorithms, such as Multinomial Naive Bayes algorithm, KNN doesn’t have an independent training stage, and th...
Ackermann Function - GeeksforGeeks
11 Jun, 2021 In computability theory, the Ackermann function, named after Wilhelm Ackermann, is one of the simplest and earliest-discovered examples of a total computable function that is not primitive recursive. All primitive recursive functions are total and computable, but the Ackermann function illustrates that not...
[ { "code": null, "e": 24462, "s": 24434, "text": "\n11 Jun, 2021" }, { "code": null, "e": 24971, "s": 24462, "text": "In computability theory, the Ackermann function, named after Wilhelm Ackermann, is one of the simplest and earliest-discovered examples of a total computable funct...
numpy.resize
This function returns a new array with the specified size. If the new size is greater than the original, the repeated copies of entries in the original are contained. The function takes the following parameters. numpy.resize(arr, shape) Where, arr Input array to be resized shape New shape of the resulting array import...
[ { "code": null, "e": 2455, "s": 2243, "text": "This function returns a new array with the specified size. If the new size is greater than the original, the repeated copies of entries in the original are contained. The function takes the following parameters." }, { "code": null, "e": 2481...
How Turi Create is Disrupting the Machine Learning Landscape | by Jonathan Balaban | Towards Data Science
A few months ago — Thursday, January 18 — I presented at my first Seattle meetup. This was three days after I moved my family cross-country from Chicago, so no time was wasted! The reason? Nothing was more on my radar than the news that Apple had open-sourced Turi Create, the Machine Learning (ML) library it had come t...
[ { "code": null, "e": 349, "s": 172, "text": "A few months ago — Thursday, January 18 — I presented at my first Seattle meetup. This was three days after I moved my family cross-country from Chicago, so no time was wasted!" }, { "code": null, "e": 533, "s": 349, "text": "The reaso...
DFA of a string with at least two 0’s and at least two 1’s - GeeksforGeeks
11 May, 2018 Problem – Draw detereministic finite automata (DFA) of a string with at least two 0’s and at least two 1’s. The first thing that come to mind after reading this question us that we count the number of 1’s and 0’s. Thereafter if they both are at least 2 the string is accepted else not accepted. But we do no...
[ { "code": null, "e": 29836, "s": 29808, "text": "\n11 May, 2018" }, { "code": null, "e": 29944, "s": 29836, "text": "Problem – Draw detereministic finite automata (DFA) of a string with at least two 0’s and at least two 1’s." }, { "code": null, "e": 30216, "s": 29...
CSS Full Form - GeeksforGeeks
20 Dec, 2019 CSS stands for Cascading Style Sheet, it is a style sheet language used to shape the HTML elements that will be displayed in the browsers as a web-page. Without using CSS, the website which has been created by using HTML, will look dull. Basically CSS gives the outer cover on any HTML elements. If you cons...
[ { "code": null, "e": 27679, "s": 27651, "text": "\n20 Dec, 2019" }, { "code": null, "e": 28271, "s": 27679, "text": "CSS stands for Cascading Style Sheet, it is a style sheet language used to shape the HTML elements that will be displayed in the browsers as a web-page. Without us...
String Interpolation in JavaScript
11 May, 2020 String interpolation is a great programming language feature that allows injecting variables, function calls, arithmetic expressions directly into a string. String interpolation was absent in JavaScript before ES6. String interpolation is a new feature of ES6, that can make multi-line strings without the n...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 May, 2020" }, { "code": null, "e": 592, "s": 52, "text": "String interpolation is a great programming language feature that allows injecting variables, function calls, arithmetic expressions directly into a string. String interpolat...
Python – Join Tuples to Integers in Tuple List
02 Jun, 2020 Sometimes, while working with Python records, we can have a problem in which we need to concatenate all the elements, in order, to convert elements in tuples in List to integer. This kind of problem can have applications in many domains such as day-day and competitive programming. Let’s discuss certain way...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jun, 2020" }, { "code": null, "e": 374, "s": 28, "text": "Sometimes, while working with Python records, we can have a problem in which we need to concatenate all the elements, in order, to convert elements in tuples in List to intege...
Optimum way to compare strings in JavaScript
12 Dec, 2021 In this article, we will know the optimal way to compare the strings using build-in Javascript methods & will see their implementation through the examples. The question is to compare 2 JavaScript strings optimally. To do so, here are a few of the most used techniques discussed. The method discussed below ...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Dec, 2021" }, { "code": null, "e": 395, "s": 52, "text": "In this article, we will know the optimal way to compare the strings using build-in Javascript methods & will see their implementation through the examples. The question is t...
Python – Get Nth word in given String
29 Nov, 2019 Sometimes, while working with data, we can have a problem in which we need to get the Nth word of a String. This kind of problem has many application in school and day-day programming. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using loopThis is one way in which this proble...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Nov, 2019" }, { "code": null, "e": 303, "s": 54, "text": "Sometimes, while working with data, we can have a problem in which we need to get the Nth word of a String. This kind of problem has many application in school and day-day pr...
Creating your first application using Kivy
10 Dec, 2021 Prerequisites: Introduction to Kivy, Hello World in Kivy Kivymd is graphical user interface library in python based on kivy that allows you to develop multi-platform applications on Windows, MacOS, Android, iOS, Linux, and Raspberry Pi. The best thing about kivy is, it performs better than HTML5 cross-plat...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2021" }, { "code": null, "e": 85, "s": 28, "text": "Prerequisites: Introduction to Kivy, Hello World in Kivy" }, { "code": null, "e": 459, "s": 85, "text": "Kivymd is graphical user interface library in pytho...
Place K-knights such that they do not attack each other
16 Jun, 2022 Given integers M, N and K, the task is to place K knights on an M*N chessboard such that they don’t attack each other. The knights are expected to be placed on different squares on the board. A knight can move two squares vertically and one square horizontally or two squares horizontally and one square ver...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 605, "s": 52, "text": "Given integers M, N and K, the task is to place K knights on an M*N chessboard such that they don’t attack each other. The knights are expected to be placed on different squa...
GATE | GATE CS 2010 | Question 65
14 Sep, 2021 The grammar S → aSa | bS | c is(A) LL(1) but not LR(1)(B) LR(1)but not LR(1)(C) Both LL(1)and LR(1)(D) Neither LL(1)nor LR(1)Answer: (C)Explanation: First(aSa) = a First(bS) = b First(c) = c All are mutually disjoint i.e no common terminal between them, the given grammar is LL(1). As the grammar is LL(1)...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 177, "s": 28, "text": "The grammar S → aSa | bS | c is(A) LL(1) but not LR(1)(B) LR(1)but not LR(1)(C) Both LL(1)and LR(1)(D) Neither LL(1)nor LR(1)Answer: (C)Explanation:" }, { "code": null...
GATE | GATE CS 2019 | Question 50
22 Jul, 2021 Consider the following four processes with arrival times (in milliseconds) and their length of CPU burst (in milliseconds) as shown below:These processes are run on a single processor using preemptive Shortest Remaining Time First scheduling algorithm. If the average waiting time of the processes is 1 mill...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2021" }, { "code": null, "e": 379, "s": 28, "text": "Consider the following four processes with arrival times (in milliseconds) and their length of CPU burst (in milliseconds) as shown below:These processes are run on a single p...
How to Disable RecyclerView Scrolling in Android?
29 Jul, 2021 RecyclerView is a view group used for displaying data from arrays and databases. RecyclerView basically is a list of items from the data. RecyclerView is often referred to as a successor of GridView and ListView. More about RecyclerView could be found at RecyclerView in Android with Example. RecyclerView l...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jul, 2021" }, { "code": null, "e": 543, "s": 28, "text": "RecyclerView is a view group used for displaying data from arrays and databases. RecyclerView basically is a list of items from the data. RecyclerView is often referred to as ...
Zoom Functionality in ElectronJS
28 Jun, 2022 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. All tra...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2022" }, { "code": null, "e": 328, "s": 28, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable ...
Python | Convert list of nested dictionary into Pandas dataframe
14 May, 2020 Given a list of nested dictionary, write a Python program to create a Pandas dataframe using it. Let’s understand stepwise procedure to create Pandas Dataframe using list of nested dictionary. Step #1: Creating a list of nested dictionary. # importing pandasimport pandas as pd # List of nested dictionary ...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 May, 2020" }, { "code": null, "e": 245, "s": 52, "text": "Given a list of nested dictionary, write a Python program to create a Pandas dataframe using it. Let’s understand stepwise procedure to create Pandas Dataframe using list of ...
filepath.Clean() Function in Golang With Examples
10 May, 2020 In Go language, path package used for paths separated by forwarding slashes, such as the paths in URLs. The filepath.Clean() function in Go language used to return the shortest path name equivalent to the specified path by purely lexical processing. Moreover, this function is defined under the path package...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2020" }, { "code": null, "e": 423, "s": 28, "text": "In Go language, path package used for paths separated by forwarding slashes, such as the paths in URLs. The filepath.Clean() function in Go language used to return the shortes...
np.nanmax() in Python
29 Nov, 2018 numpy.nanmax()function is used to returns maximum value of an array or along any specific mentioned axis of the array, ignoring any Nan value. Syntax : numpy.nanmax(arr, axis=None, out=None, keepdims = no value) Parameters :arr : Input array.axis : Axis along which we want the max value. Otherwise, it will...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2018" }, { "code": null, "e": 171, "s": 28, "text": "numpy.nanmax()function is used to returns maximum value of an array or along any specific mentioned axis of the array, ignoring any Nan value." }, { "code": null, ...
How to Remove Ticks from Matplotlib Plots?
24 Feb, 2021 Matplotlib is a Python library that offers us various functions using which we can plot our data and visualize it graphically. But often plotting a graph using the Matplotlib library, we get ticks in our plot which are marked by default on both sides of the plot on the x and y-axis. There can be cases when...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Feb, 2021" }, { "code": null, "e": 515, "s": 53, "text": "Matplotlib is a Python library that offers us various functions using which we can plot our data and visualize it graphically. But often plotting a graph using the Matplotlib...
Send mail with attachment from your Gmail account using Python
In this article, we will see how we can send email with attachments using Python. To send mail, we do not need any external library. There is a module called SMTPlib, which comes with Python. It uses SMTP (Simple Mail Transfer Protocol) to send the mail. It creates SMTP client session objects for mailing. SMTP needs va...
[ { "code": null, "e": 1494, "s": 1187, "text": "In this article, we will see how we can send email with attachments using Python. To send mail, we do not need any external library. There is a module called SMTPlib, which comes with Python. It uses SMTP (Simple Mail Transfer Protocol) to send the mail...
Reading contents of a Text File in R Programming – read.table() Function
19 Jun, 2020 read.table() function in R Language is used to read data from a text file. It returns the data in the form of a table. Syntax:read.table(filename, header = FALSE, sep = “”) Parameters:header: represents if the file contains header row or notsep: represents the delimiter value used in file Example 1: Readin...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jun, 2020" }, { "code": null, "e": 147, "s": 28, "text": "read.table() function in R Language is used to read data from a text file. It returns the data in the form of a table." }, { "code": null, "e": 201, "s": 147, ...
How to Create Large Music Datasets Using Spotipy | by Max Hilsdorf | Towards Data Science
Are you a music lover or a programmer? Chances are, you’re both, just like me! When I started using Spotipy, I had little programming experience and wanted to explore computational audio analysis. Now, as I’m knee-deep into programming and Data Science, I’m starting to appreciate Spotipy for creating amazing datasets f...
[ { "code": null, "e": 521, "s": 172, "text": "Are you a music lover or a programmer? Chances are, you’re both, just like me! When I started using Spotipy, I had little programming experience and wanted to explore computational audio analysis. Now, as I’m knee-deep into programming and Data Science, I...
Download All Free Textbooks from Springer using Python | by Joe T. Santhanavanich | Towards Data Science
Good news to all data scientists and researchers🎉🎉 Springer has announced to give hundreds of expensive books on Science and technology worth thousands of dollars available for free download during this COVID-19 lockdown. Over more than 500 textbooks are available! If you are interested only in some of these books, y...
[ { "code": null, "e": 438, "s": 172, "text": "Good news to all data scientists and researchers🎉🎉 Springer has announced to give hundreds of expensive books on Science and technology worth thousands of dollars available for free download during this COVID-19 lockdown. Over more than 500 textbooks ar...
jQuery - siblings( [selector] ) Method
The siblings( [selector] ) method gets a set of elements containing all of the unique siblings of each of the matched set of elements. Here is the simple syntax to use this method − selector.siblings( [selector] ) Here is the description of all the parameters used by this method − selector − This is optional selector ...
[ { "code": null, "e": 2457, "s": 2322, "text": "The siblings( [selector] ) method gets a set of elements containing all of the unique siblings of each of the matched set of elements." }, { "code": null, "e": 2504, "s": 2457, "text": "Here is the simple syntax to use this method −"...
Find the Maximum Flow | Practice | GeeksforGeeks
Given a graph which represents a flow network with N vertices numbered 1 to N and M edges.Find the maximum flow from vertex numbered 1 to vertex numbered N. In a flow network,every edge has a flow capacity and the maximum flow of a path can't exceed the flow-capacity of an edge in the path. Example 1: Input: N = 5, M ...
[ { "code": null, "e": 395, "s": 238, "text": "Given a graph which represents a flow network with N vertices numbered 1 to N and M edges.Find the maximum flow from vertex numbered 1 to vertex numbered N." }, { "code": null, "e": 542, "s": 395, "text": "In a flow network,every edge ...
Laravel - Response
A web application responds to a user’s request in many ways depending on many parameters. This chapter explains you in detail about responses in Laravel web applications. Laravel provides several different ways to return response. Response can be sent either from route or from controller. The basic response that can be...
[ { "code": null, "e": 2643, "s": 2472, "text": "A web application responds to a user’s request in many ways depending on many parameters. This chapter explains you in detail about responses in Laravel web applications." }, { "code": null, "e": 2924, "s": 2643, "text": "Laravel pro...
Converting a 10 digit phone number to US format using Regex in Python - GeeksforGeeks
29 Dec, 2020 Text preprocessing is one of the most important tasks in Natural Language Processing. You may want to extract number from a string. Writing a manual script for such processing task requires a lot of effort and at most times it is prone to errors. Keeping in view the importance of these preprocessing tasks,...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n29 Dec, 2020" }, { "code": null, "e": 24655, "s": 24212, "text": "Text preprocessing is one of the most important tasks in Natural Language Processing. You may want to extract number from a string. Writing a manual script for suc...
How to Use the JavaScript Fetch API to Get Data? - GeeksforGeeks
20 Jul, 2021 The Task here is to show how the Fetch API can be used to get data from an API. I will be taking a fake API which will contain employee details as an example and from that API. I will show to get data by fetch() API method. fetch() method: The fetch() method is modern and versatile and is very well suppor...
[ { "code": null, "e": 24792, "s": 24764, "text": "\n20 Jul, 2021" }, { "code": null, "e": 25017, "s": 24792, "text": "The Task here is to show how the Fetch API can be used to get data from an API. I will be taking a fake API which will contain employee details as an example and f...
Movie Recommender System: Part 1. Learn how to build a Recommender system... | by Diven Sambhwani | Towards Data Science
All entertainment websites or online stores have millions/billions of items. It becomes challenging for the customer to select the right one. At this place, recommender systems come into the picture and help the user to find the right item by minimizing the options. What are recommender systems? It helps the user to se...
[ { "code": null, "e": 439, "s": 172, "text": "All entertainment websites or online stores have millions/billions of items. It becomes challenging for the customer to select the right one. At this place, recommender systems come into the picture and help the user to find the right item by minimizing t...
6 amateur mistakes I’ve made working with train-test splits | by Gonzalo Ferreiro Volpi | Towards Data Science
In the last weeks he went together into a journey about Recommendation Systems. We saw a gentle introduction to the topic and also an introduction to the most important similarity measures around it (remember that the whole repository about recommendation system and other projects are always available on my GitHub prof...
[ { "code": null, "e": 805, "s": 171, "text": "In the last weeks he went together into a journey about Recommendation Systems. We saw a gentle introduction to the topic and also an introduction to the most important similarity measures around it (remember that the whole repository about recommendation...
Apache NiFi - API
NiFi offers a large number of API, which helps developers to make changes and get information of NiFi from any other tool or custom developed applications. In this tutorial, we will use postman app in google chrome to explain some examples. To add postmantoyour Google Chrome, go to the below mentioned URL and click add...
[ { "code": null, "e": 2559, "s": 2318, "text": "NiFi offers a large number of API, which helps developers to make changes and get information of NiFi from any other tool or custom developed applications. In this tutorial, we will use postman app in google chrome to explain some examples." }, { ...
Aggregate by country, state and city in a MongoDB collection with multiple documents
Aggregation operations group values from multiple documents together, and can perform a variety of operations on the grouped data to return a single result. To aggregate in MongoDB, use aggregate(). Let us create a collection with documents − > db.demo620.insertOne({"Country":"IND","City":"Delhi",state:"Delhi"}); { ...
[ { "code": null, "e": 1219, "s": 1062, "text": "Aggregation operations group values from multiple documents together, and can perform a variety of operations on the grouped data to return a single result." }, { "code": null, "e": 1305, "s": 1219, "text": "To aggregate in MongoDB, ...
How to repeat a random sample in R?
The random sample can be repeated by using replicate function in R. For example, if we have a vector that contains 1, 2, 3, 4, 5 and we want to repeat this random sample five times then replicate(5,x) can be used and the output will be matrix of the below form: [,1] [,2] [,3] [,4] [,5] [1,] 1 1 1 1 1 [2,] 2 2 2 2 2 [3,...
[ { "code": null, "e": 1324, "s": 1062, "text": "The random sample can be repeated by using replicate function in R. For example, if we have a vector that contains 1, 2, 3, 4, 5 and we want to repeat this random sample five times then replicate(5,x) can be used and the output will be matrix of the bel...
MongoDB Tutorial in Java - GeeksforGeeks
12 May, 2020 MongoDB is an open-source cross-platform document database developed using C++. Some features of MongoDB are: High and effective performance Easily scalable High availability It can store high volume of data It contains data in the form of collections and documents instead of rows and tables. A collection ...
[ { "code": null, "e": 23929, "s": 23901, "text": "\n12 May, 2020" }, { "code": null, "e": 24039, "s": 23929, "text": "MongoDB is an open-source cross-platform document database developed using C++. Some features of MongoDB are:" }, { "code": null, "e": 24070, "s": ...
Tower Of Hanoi Problem
Tower of Hanoi is a puzzle problem. Where we have three stands and n discs. Initially, Discs are placed in the first stand. We have to place discs into the third or destination stand, the second or auxiliary stand can be used as a helping stand. But there are some rules to follow. We can transfer only one disc for eac...
[ { "code": null, "e": 1308, "s": 1062, "text": "Tower of Hanoi is a puzzle problem. Where we have three stands and n discs. Initially, Discs are placed in the first stand. We have to place discs into the third or destination stand, the second or auxiliary stand can be used as a helping stand." }, ...
Deploy a Flask App on Heroku and Connect it to a JawsDB-MySQL Database | by Edward Krueger | Towards Data Science
By: Edward Krueger Data Scientist and Instructor and Douglas Franklin Teaching Assistant and Technical Writer. In this article, we’ll cover how to deploy an app with a Pipfile.lock to the cloud and connect the app to a cloud database. For more information on virtual environments or getting started with the environment ...
[ { "code": null, "e": 282, "s": 171, "text": "By: Edward Krueger Data Scientist and Instructor and Douglas Franklin Teaching Assistant and Technical Writer." }, { "code": null, "e": 543, "s": 282, "text": "In this article, we’ll cover how to deploy an app with a Pipfile.lock to th...
C++ Inheritance introduction | Practice | GeeksforGeeks
Create two classes: Cuboid The Cuboid class should have three data fields- length, width and height of int types. The class should have display() method, to print the length, width and height of the cuboid separated by space. CuboidVol The CuboidVol class is derived from Cuboid class, i.e., it is the sub-class of Cubo...
[ { "code": null, "e": 246, "s": 226, "text": "Create two classes:" }, { "code": null, "e": 452, "s": 246, "text": "Cuboid\nThe Cuboid class should have three data fields- length, width and height of int types. The class should have display() method, to print the length, width and ...
Operations on struct variables in C
Here we will see what type of operations can be performed on struct variables. Here basically one operation can be performed for struct. The operation is assignment operation. Some other operations like equality check or other are not available for stack. #include <stdio.h> typedef struct { //define a structure for com...
[ { "code": null, "e": 1318, "s": 1062, "text": "Here we will see what type of operations can be performed on struct variables. Here basically one operation can be performed for struct. The operation is assignment operation. Some other operations like equality check or other are not available for stac...
How can we modify an existing module in Java 9?
The module is a named, self-describing collection of code and data. The code has been organized as a set of packages containing types like Java classes and interfaces. The data includes resources and other kinds of static information. We need to declare a module then add module-info.java at the root of the source code....
[ { "code": null, "e": 1383, "s": 1062, "text": "The module is a named, self-describing collection of code and data. The code has been organized as a set of packages containing types like Java classes and interfaces. The data includes resources and other kinds of static information. We need to declare...
Custom Object Detection using TensorFlow from Scratch | by Khush Patel | Towards Data Science
In this tutorial, we’re going to get our hands dirty and train our own dog (corgi) detector using a pre-trained SSD MobileNet V2 model. Instead of training your own model from scratch, you can build on existing models and fine-tune them for your own purpose without requiring as much computing power. Install Tensorflow ...
[ { "code": null, "e": 308, "s": 172, "text": "In this tutorial, we’re going to get our hands dirty and train our own dog (corgi) detector using a pre-trained SSD MobileNet V2 model." }, { "code": null, "e": 473, "s": 308, "text": "Instead of training your own model from scratch, y...
HTML Text Formatting Elements - GeeksforGeeks
15 Sep, 2021 As we know, HTML provides many predefined elements that are used to change the formatting of text. The formatting can be used to set the text styles (like – bold, italic, or emphasized, etc.), highlighting the text, making text superscript and subscript, etc. Text Formatting Elements: <b> and <strong> Tags...
[ { "code": null, "e": 24814, "s": 24786, "text": "\n15 Sep, 2021" }, { "code": null, "e": 25074, "s": 24814, "text": "As we know, HTML provides many predefined elements that are used to change the formatting of text. The formatting can be used to set the text styles (like – bold, ...
Static class in C#
The C# static class cannot be instantiated and can only have only static members. The static class in C# is sealed and cannot contain instance constructors. The following is an example with static class and static members − Live Demo using System; public static class Demo { public static float PI = 3.14f; publi...
[ { "code": null, "e": 1219, "s": 1062, "text": "The C# static class cannot be instantiated and can only have only static members. The static class in C# is sealed and cannot contain instance constructors." }, { "code": null, "e": 1286, "s": 1219, "text": "The following is an examp...
How can we use nested transactions in MySQL?
We can work with nested transactions in MySQL with the help of SAVEPOINT. Firstly, create a table. After that, begin the transaction. Now, insert records in the table created above. Use SAVEPOINT statement to set a named transaction savepoint with a name of identifier. Here are all the steps shown in the form of query ...
[ { "code": null, "e": 1136, "s": 1062, "text": "We can work with nested transactions in MySQL with the help of SAVEPOINT." }, { "code": null, "e": 1196, "s": 1136, "text": "Firstly, create a table. After that, begin the transaction." }, { "code": null, "e": 1332, "...
Machine Learning and Signal Processing | by Prasanna Sethuraman | Towards Data Science
Signal processing has given us a bag of tools that have been refined and put to very good use in the last fifty years. There is autocorrelation, convolution, Fourier and wavelet transforms, adaptive filtering via Least Mean Squares (LMS) or Recursive Least Squares (RLS), linear estimators, compressed sensing and gradie...
[ { "code": null, "e": 664, "s": 171, "text": "Signal processing has given us a bag of tools that have been refined and put to very good use in the last fifty years. There is autocorrelation, convolution, Fourier and wavelet transforms, adaptive filtering via Least Mean Squares (LMS) or Recursive Leas...
reflect.MethodByName() 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.MethodByName() Function in Golang is used to get function value corresponding to the method of v with the given name. To...
[ { "code": null, "e": 25913, "s": 25885, "text": "\n03 May, 2020" }, { "code": null, "e": 26300, "s": 25913, "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...
set upper_bound() function in C++ STL - GeeksforGeeks
23 Jan, 2020 The set::upper_bound() is a built-in function in C++ STL which returns an iterator pointing to the immediate next element which is just greater than k. If the key passed in the parameter exceeds the maximum key in the container, then the iterator returned points to next of last element (which can be identi...
[ { "code": null, "e": 25931, "s": 25903, "text": "\n23 Jan, 2020" }, { "code": null, "e": 26291, "s": 25931, "text": "The set::upper_bound() is a built-in function in C++ STL which returns an iterator pointing to the immediate next element which is just greater than k. If the key ...
How to set and unset cookies using jQuery?
16 Jun, 2020 An HTTP cookie is a small piece of data sent from a server and stored on client-side by the browser itself, Cookies are made to keep track of user and also to provide one nice browsing experience. We can also set our on cookies in the browser according to our need. Cookies can be set in the browser with th...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jun, 2020" }, { "code": null, "e": 294, "s": 28, "text": "An HTTP cookie is a small piece of data sent from a server and stored on client-side by the browser itself, Cookies are made to keep track of user and also to provide one nice...
Understanding RxJava Zip Operator With Example
25 Aug, 2021 According to the official RxJava documentation “Zip combines the emissions of several Observables using a given function and emits single items based on the outcomes of this function for each combination”. The zip operator enables us to obtain results from several observables at the same time. Image 1. Und...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2021" }, { "code": null, "e": 323, "s": 28, "text": "According to the official RxJava documentation “Zip combines the emissions of several Observables using a given function and emits single items based on the outcomes of this f...
How to Find the Screen Resolution of a Device Programmatically in Android?
23 Feb, 2021 Screen Resolution refers to the number of pixels on display. A higher resolution means more pixels and more pixels provide the ability to display more visual information. This entity is widely used in applications related to the broadcasting of real-time visuals such as a live video, gaming, etc for the op...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Feb, 2021" }, { "code": null, "e": 705, "s": 28, "text": "Screen Resolution refers to the number of pixels on display. A higher resolution means more pixels and more pixels provide the ability to display more visual information. This...
How to count string occurrence in string using JavaScript?
22 Apr, 2019 In JavaScript, we can count the string occurrence in a string by counting the number of times the string present in the string. JavaScript provides a function match(), which is used to generate all the occurrences of a string in an array.By counting the array size which will return the number of times the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2019" }, { "code": null, "e": 420, "s": 28, "text": "In JavaScript, we can count the string occurrence in a string by counting the number of times the string present in the string. JavaScript provides a function match(), which i...
Python | OpenCV BGR color palette with trackbars
13 Nov, 2018 OpenCV is a library of programming functions mainly aimed at real-time computer vision.In this article, Let’s create a window which will contain RGB color palette with track bars. By moving the trackbars the value of RGB Colors will change b/w 0 to 255. So using the same, we can find the color with its RGB...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Nov, 2018" }, { "code": null, "e": 344, "s": 28, "text": "OpenCV is a library of programming functions mainly aimed at real-time computer vision.In this article, Let’s create a window which will contain RGB color palette with track b...
Two Dimensional List in R Programming
10 May, 2020 A list in R is basically an R object that contains within it, elements belonging to different data types, which may be numbers strings or even other lists. Basically, a list can contain other objects which may be of varying lengths. The list is defined using the list() function in R.A two-dimensional list ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2020" }, { "code": null, "e": 505, "s": 28, "text": "A list in R is basically an R object that contains within it, elements belonging to different data types, which may be numbers strings or even other lists. Basically, a list c...
Kibana - Loading Sample Data
We have seen how to upload data from logstash to elasticsearch. We will upload data using logstash and elasticsearch here. But about the data that has date, longitude and latitudefields which we need to use, we will learn in the upcoming chapters. We will also see how to upload data directly in Kibana, if we do not hav...
[ { "code": null, "e": 2573, "s": 2239, "text": "We have seen how to upload data from logstash to elasticsearch. We will upload data using logstash and elasticsearch here. But about the data that has date, longitude and latitudefields which we need to use, we will learn in the upcoming chapters. We wi...
regex_replace in C++ | Replace the match of a string using regex_replace
04 Sep, 2018 std::regex_replace() is used to replace all matches in a string, Syntax: regex_replace(subject, regex_object, replace_text) Parameters: It accepts three parameters which are described below: Subject string as the first parameter.The regex object as the second parameter.The string with the replacement text...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Sep, 2018" }, { "code": null, "e": 117, "s": 52, "text": "std::regex_replace() is used to replace all matches in a string," }, { "code": null, "e": 125, "s": 117, "text": "Syntax:" }, { "code": null, ...
OffsetDateTime compareTo() method in Java with examples
04 Dec, 2021 The compareTo() method of OffsetDateTime class in Java compares this date-time to another date-time.Syntax : public int compareTo(OffsetDateTime other) Parameter : This method accepts a single parameter other which specifies the other date-time to compare to, not null.Return Value: It returns the compara...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Dec, 2021" }, { "code": null, "e": 139, "s": 28, "text": "The compareTo() method of OffsetDateTime class in Java compares this date-time to another date-time.Syntax : " }, { "code": null, "e": 182, "s": 139, "tex...
How to filter object array based on attributes?
02 Nov, 2020 One can use filter() function in JavaScript to filter the object array based on attributes. The filter() function will return a new array containing all the array elements that pass the given condition. If no elements pass the condition it returns an empty array. The filter() function loops or iterate over...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Nov, 2020" }, { "code": null, "e": 427, "s": 52, "text": "One can use filter() function in JavaScript to filter the object array based on attributes. The filter() function will return a new array containing all the array elements th...
Remove minimum number of characters so that two strings become anagram
06 Jul, 2022 Given two strings in lowercase, the task is to make them anagram. The only allowed operation is to remove a character from any string. Find minimum number of characters to be deleted to make both the strings anagram? If two strings contains same data set in any order then strings are called Anagrams. Exam...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2022" }, { "code": null, "e": 355, "s": 52, "text": "Given two strings in lowercase, the task is to make them anagram. The only allowed operation is to remove a character from any string. Find minimum number of characters to be...
Sending email through Java with SSL / TLS authentication
22 Jul, 2021 The JavaMail API defines classes that represent the components of a mail system. JavaMail does not implement an email server, instead, it allows you to access an email server using a Java API. In order to test the code presented, you must have access to an email server. While the JavaMail API specification...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Jul, 2021" }, { "code": null, "e": 473, "s": 53, "text": "The JavaMail API defines classes that represent the components of a mail system. JavaMail does not implement an email server, instead, it allows you to access an email server...
How to implement a gradient descent in Python to find a local minimum ?
18 Jan, 2022 Gradient Descent is an iterative algorithm that is used to minimize a function by finding the optimal parameters. Gradient Descent can be applied to any dimension function i.e. 1-D, 2-D, 3-D. In this article, we will be working on finding global minima for parabolic function (2-D) and will be implementing ...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jan, 2022" }, { "code": null, "e": 899, "s": 28, "text": "Gradient Descent is an iterative algorithm that is used to minimize a function by finding the optimal parameters. Gradient Descent can be applied to any dimension function i.e...
Python – Itertools.islice()
27 Feb, 2020 In Python, Itertools is the inbuilt module that allows us to handle the iterators in an efficient way. They make iterating through the iterables like lists and strings very easily. One such itertools function is islice(). Note: For more information, refer to Python Itertools This iterator selectively print...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 Feb, 2020" }, { "code": null, "e": 275, "s": 53, "text": "In Python, Itertools is the inbuilt module that allows us to handle the iterators in an efficient way. They make iterating through the iterables like lists and strings very e...
Hello World in Scala
11 Feb, 2019 The Hello World! the program is the most basic and first program when you dive into a new programming language. This simply prints the Hello World! on the output screen. In Scala, a basic program consists of the following: object Main Method Statements or Expressions Example: // Scala program to print Hell...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Feb, 2019" }, { "code": null, "e": 251, "s": 28, "text": "The Hello World! the program is the most basic and first program when you dive into a new programming language. This simply prints the Hello World! on the output screen. In Sc...
Getting System and Process Information Using C Programming and Shell in Linux
17 May, 2020 Whenever you start a new process in Linux it creates a file in /proc/ folder with the same name as that of the process id of the process. In that folder, there is a file named “status” which has all the details of the process. We can get those Process Information Through shell as follows: cat /proc/1/statu...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 May, 2020" }, { "code": null, "e": 343, "s": 53, "text": "Whenever you start a new process in Linux it creates a file in /proc/ folder with the same name as that of the process id of the process. In that folder, there is a file name...
Internal working of Set in Python
12 Apr, 2022 Sets and their working Set in Python can be defined as the collection of items. In Python, these are basically used to include membership testing and eliminating duplicate entries. The data structure used in this is Hashing, a popular technique to perform insertion, deletion and traversal in O(1) on averag...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Apr, 2022" }, { "code": null, "e": 499, "s": 54, "text": "Sets and their working Set in Python can be defined as the collection of items. In Python, these are basically used to include membership testing and eliminating duplicate en...
Node.js process.chdir() Method
10 Jun, 2022 The process.chdir() method is an inbuilt application programming interface of the process module which is used to change the current working directory. Syntax: process.chdir( directory ) Parameters: This method accepts single parameter as mentioned above and described below: directory: It is required param...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2022" }, { "code": null, "e": 188, "s": 28, "text": "The process.chdir() method is an inbuilt application programming interface of the process module which is used to change the current working directory. Syntax:" }, { "...
turtle.sety() function in Python
30 Jun, 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 method is used to set the turtle’s second coordinate to y, leaving the first coordina...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 245, "s": 28, "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 ver...
TensorFlow 2.0
16 May, 2020 TensorFlow the massively popular open-source platform to develop and integrate large scale AI and Deep Learning Models has recently been updated to its newer form TensorFlow 2.0. This brings a massive boost in features in the originally feature-rich ML ecosystem created by the TensorFlow community. What is...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2020" }, { "code": null, "e": 328, "s": 28, "text": "TensorFlow the massively popular open-source platform to develop and integrate large scale AI and Deep Learning Models has recently been updated to its newer form TensorFlow 2...
How to use Google material icon as list-style in a webpage using HTML and CSS ?
18 Jan, 2021 Icons can be added to our HTML page from the icon library. All the icons in the library can be formatted using CSS. They can be customized according to size, colour, shadow, etc. They play a considerate part in materialize CSS. Materialize CSS provides a rich set of material icons of google which can be do...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jan, 2021" }, { "code": null, "e": 372, "s": 28, "text": "Icons can be added to our HTML page from the icon library. All the icons in the library can be formatted using CSS. They can be customized according to size, colour, shadow, e...
How do you empty an array in C#?
To empty an array in C#, use the Array Clear() method: The Array.Clear method in C# clears i.e.zeros out all elements. In the below example, we have first considered an array with three elements − int[] arr = new int[] {88, 45, 76}; Now we have used the Array.Clear method to zero out all the arrays − Array.Clear(arr, 0...
[ { "code": null, "e": 1306, "s": 1187, "text": "To empty an array in C#, use the Array Clear() method: The Array.Clear method in C# clears i.e.zeros out all elements." }, { "code": null, "e": 1384, "s": 1306, "text": "In the below example, we have first considered an array with th...
Implementing Artificial Neural Network training process in Python
08 Jul, 2022 An Artificial Neural Network (ANN) is an information processing paradigm that is inspired the brain. ANNs, like people, learn by example. An ANN is configured for a specific application, such as pattern recognition or data classification, through a learning process. Learning largely involves adjustments to...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 422, "s": 54, "text": "An Artificial Neural Network (ANN) is an information processing paradigm that is inspired the brain. ANNs, like people, learn by example. An ANN is configured for a specific ...
How to open a new window by the user pressing a button in a tkinter GUI?
Tkinter creates a default window (i.e., master or root window) for every application. In tkinter, we can create a Popup window or a child window by defining a Toplevel(master) constructor. This will allow the tkinter application to create another window which can be resized dynamically by defining its size property. In...
[ { "code": null, "e": 1505, "s": 1187, "text": "Tkinter creates a default window (i.e., master or root window) for every application. In tkinter, we can create a Popup window or a child window by defining a Toplevel(master) constructor. This will allow the tkinter application to create another window...
Tcl - Lists
List is one of the basic data-type available in Tcl. It is used for representing an ordered collection of items. It can include different types of items in the same list. Further, a list can contain another list. An important thing that needs to be noted is that these lists are represented as strings completely and pro...
[ { "code": null, "e": 2548, "s": 2335, "text": "List is one of the basic data-type available in Tcl. It is used for representing an ordered collection of items. It can include different types of items in the same list. Further, a list can contain another list." }, { "code": null, "e": 275...
Node.js fs.unlink() Method
08 Oct, 2021 The fs.unlink() method is used to remove a file or symbolic link from the filesystem. This function does not work on directories, therefore it is recommended to use fs.rmdir() to remove a directory.Syntax: fs.unlink( path, callback ) Parameters: This method accepts two parameters as mentioned above and de...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Oct, 2021" }, { "code": null, "e": 235, "s": 28, "text": "The fs.unlink() method is used to remove a file or symbolic link from the filesystem. This function does not work on directories, therefore it is recommended to use fs.rmdir()...
How to take user input for two dimensional (2D) array in PHP ?
23 Dec, 2021 There are two methods to take user input in PHP in two dimensional (2D) array.Approach 1: Use HTML forms through PHP GET & POST method to take user input in two dimensional (2D) array. First, input data to HTML forms. Then use GET or POST method of PHP to get or post those input data into a variables. Fin...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Dec, 2021" }, { "code": null, "e": 119, "s": 28, "text": "There are two methods to take user input in PHP in two dimensional (2D) array.Approach 1: " }, { "code": null, "e": 214, "s": 119, "text": "Use HTML forms ...