title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to Build an App in R Shiny | by Mate Pocs | Towards Data Science
Shiny is an R package that lets you build interactive web apps. All you need is R, no HTML, CSS, or JavaScript — although you certainly have the option to enhance your app with them. You can run the app on your computer, host on your own server, or use RStudio’s cloud service. In this post, I am going to walk through t...
[ { "code": null, "e": 450, "s": 172, "text": "Shiny is an R package that lets you build interactive web apps. All you need is R, no HTML, CSS, or JavaScript — although you certainly have the option to enhance your app with them. You can run the app on your computer, host on your own server, or use RS...
Difference between mutable and immutable in python?
Python defines variety of data types of objects. These objects are stored in memory and object mutability depends upon the type, like Lists and Dictionaries are mutable it means that we can change their content without changing their identity. Other objects like Integers, Floats, Strings and Tuples have no provision to...
[ { "code": null, "e": 1425, "s": 1062, "text": "Python defines variety of data types of objects. These objects are stored in memory and object mutability depends upon the type, like Lists and Dictionaries are mutable it means that we can change their content without changing their identity. Other obj...
Jython - Installation
Before installation of Jython 2.7, ensure that the system has JDK 7 or more installed. Jython is available in the form of an executable jar file. Download it from - http://www.jython.org/downloads.html and either double click on its icon or run the following command − java -jar jython_installer-2.7.0.jar An installati...
[ { "code": null, "e": 2350, "s": 2081, "text": "Before installation of Jython 2.7, ensure that the system has JDK 7 or more installed. Jython is available in the form of an executable jar file. Download it from - http://www.jython.org/downloads.html and either double click on its icon or run the foll...
Remove nodes on root to leaf paths of length < K - GeeksforGeeks
02 May, 2022 Given a Binary Tree and a number k, remove all nodes that lie only on root to leaf path(s) of length smaller than k. If a node X lies on multiple root-to-leaf paths and if any of the paths has path length >= k, then X is not deleted from Binary Tree. In other words a node is deleted if all paths going thro...
[ { "code": null, "e": 26445, "s": 26417, "text": "\n02 May, 2022" }, { "code": null, "e": 26832, "s": 26445, "text": "Given a Binary Tree and a number k, remove all nodes that lie only on root to leaf path(s) of length smaller than k. If a node X lies on multiple root-to-leaf path...
Different ways to concatenate two strings in Golang - GeeksforGeeks
09 Aug, 2019 In Go language, the string is an immutable chain of arbitrary bytes encoded with UTF-8 encoding. In Go strings, the process of adding two or more strings into a new single string is known as concatenation. The simplest way of concatenating two or more strings in the Go language is by using + operator. It i...
[ { "code": null, "e": 25653, "s": 25625, "text": "\n09 Aug, 2019" }, { "code": null, "e": 26002, "s": 25653, "text": "In Go language, the string is an immutable chain of arbitrary bytes encoded with UTF-8 encoding. In Go strings, the process of adding two or more strings into a ne...
GATE | Gate IT 2008 | Question 40 - GeeksforGeeks
29 Mar, 2018 The two numbers given below are multiplied using the Booth’s algorithm. Multiplicand : 0101 1010 1110 1110Multiplier: 0111 0111 1011 1101 How many additions/Subtractions are required for the multiplication of the above two numbers?(A) 6(B) 8(C) 10(D) 12Answer: (B)Explanation: Booth’s algorithm: first take ...
[ { "code": null, "e": 25885, "s": 25857, "text": "\n29 Mar, 2018" }, { "code": null, "e": 25957, "s": 25885, "text": "The two numbers given below are multiplied using the Booth’s algorithm." }, { "code": null, "e": 26023, "s": 25957, "text": "Multiplicand : 010...
Rust - Switch Case - GeeksforGeeks
19 Jul, 2021 Switch statement is basically nested if statement, though it does not support expression, it matches an int, string, or boolean data type variable with a given set of cases that are provided by the programmer. It is mainly used in a menu-driven program where the user selects which function they want to run...
[ { "code": null, "e": 24879, "s": 24851, "text": "\n19 Jul, 2021" }, { "code": null, "e": 25290, "s": 24879, "text": "Switch statement is basically nested if statement, though it does not support expression, it matches an int, string, or boolean data type variable with a given set...
SMS Verification in Android using SMS User Consent API - GeeksforGeeks
19 Nov, 2021 Nowadays, SMS verification is that the best manner that’s getting used by mobile applications for login purposes. All you would like to try and do is simply enter your mobile number, get a One-Time arcanum and eventually enter that OTP in your application and verify. However, the matter that arises here is...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n19 Nov, 2021" }, { "code": null, "e": 27179, "s": 26381, "text": "Nowadays, SMS verification is that the best manner that’s getting used by mobile applications for login purposes. All you would like to try and do is simply enter ...
Todo list app using Flask | Python - GeeksforGeeks
15 May, 2020 There are many frameworks that allow building your webpage using Python, like Django, flask, etc. Flask is a web application framework written in Python. Flask is based on WSGI(Web Server Gateway Interface) toolkit and Jinja2 template engine. Its modules and libraries that help the developer to write appli...
[ { "code": null, "e": 25581, "s": 25553, "text": "\n15 May, 2020" }, { "code": null, "e": 25975, "s": 25581, "text": "There are many frameworks that allow building your webpage using Python, like Django, flask, etc. Flask is a web application framework written in Python. Flask is ...
Pulling a random word or string from a line in a text file in Python - GeeksforGeeks
11 Dec, 2020 File handling in Python is really simple and easy to implement. In order to pull a random word or string from a text file, we will first open the file in read mode and then use the methods in Python’s random module to pick a random word. There are various ways to perform this operation: This is the text f...
[ { "code": null, "e": 25481, "s": 25453, "text": "\n11 Dec, 2020" }, { "code": null, "e": 25720, "s": 25481, "text": "File handling in Python is really simple and easy to implement. In order to pull a random word or string from a text file, we will first open the file in read mode...
How to Sort a Slice of Strings in Golang? - GeeksforGeeks
26 Aug, 2019 In Go language slice is more powerful, flexible, convenient than an array, and is a lightweight data structure. The slice is a variable-length sequence which stores elements of a similar type, you are not allowed to store different type of elements in the same slice. Go language allows you to sort the elem...
[ { "code": null, "e": 25671, "s": 25643, "text": "\n26 Aug, 2019" }, { "code": null, "e": 26221, "s": 25671, "text": "In Go language slice is more powerful, flexible, convenient than an array, and is a lightweight data structure. The slice is a variable-length sequence which store...
Python program to print current year, month and day - GeeksforGeeks
29 Dec, 2020 In this article, the task is to write a Python Program to print the current year, month, and day. Approach: In Python, in order to print the current date consisting of a year, month, and day, it has a module named datetime. From the DateTime module, import date class Create an object of the date class Call...
[ { "code": null, "e": 26158, "s": 26130, "text": "\n29 Dec, 2020" }, { "code": null, "e": 26256, "s": 26158, "text": "In this article, the task is to write a Python Program to print the current year, month, and day." }, { "code": null, "e": 26266, "s": 26256, "...
Check whether a given point lies inside a rectangle or not - GeeksforGeeks
07 Nov, 2021 Given four points of a rectangle, and one more point P. Write a function to check whether P lies within the given rectangle or not.Examples: Input : R = [(10, 10), (10, -10), (-10, -10), (-10, 10)] P = (0, 0) Output : yes Illustration : Input : R = [(10, 10), (10, -10), ...
[ { "code": null, "e": 26203, "s": 26175, "text": "\n07 Nov, 2021" }, { "code": null, "e": 26346, "s": 26203, "text": "Given four points of a rectangle, and one more point P. Write a function to check whether P lies within the given rectangle or not.Examples: " }, { "code"...
How to create Grouped box plot in Plotly? - GeeksforGeeks
05 Sep, 2020 Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library. A gr...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n05 Sep, 2020" }, { "code": null, "e": 25858, "s": 25555, "text": "Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, sp...
Python time.perf_counter_ns() Function - GeeksforGeeks
05 Nov, 2021 Python time.perf_counter_ns() function gives the integer value of time in nanoseconds. Syntax: from time import perf_counter_ns We can find the elapsed time by using start and stop functions. We can also find the elapsed time during the whole program by subtracting stoptime and starttime Example 1: Python3...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n05 Nov, 2021" }, { "code": null, "e": 25624, "s": 25537, "text": "Python time.perf_counter_ns() function gives the integer value of time in nanoseconds." }, { "code": null, "e": 25632, "s": 25624, "text": "Syn...
PostgreSQL - TRUNCATE TABLE - GeeksforGeeks
28 Aug, 2020 PostgreSQL supports the TRUNCATE TABLE statement to remove all data from large tables quickly. To remove all data from a table, you use the DELETE statement. However, for a large table, it is more efficient to use the TRUNCATE TABLE statement. The TRUNCATE TABLE statement removes all rows from a table with...
[ { "code": null, "e": 29245, "s": 29217, "text": "\n28 Aug, 2020" }, { "code": null, "e": 29815, "s": 29245, "text": "PostgreSQL supports the TRUNCATE TABLE statement to remove all data from large tables quickly. To remove all data from a table, you use the DELETE statement. Howev...
How To Select Only One Column Using SQLAlchemy? - GeeksforGeeks
10 Feb, 2022 In this article, we are going to see how to select only one column using SQLAlchemy in Python. SQLAlchemy is a large SQL toolkit with lots of different components. The two largest components are SQLAlchemy Core and SQLAlchemy ORM. The major difference between them is SQLAlchemy Core is a schema-centric mod...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n10 Feb, 2022" }, { "code": null, "e": 25632, "s": 25537, "text": "In this article, we are going to see how to select only one column using SQLAlchemy in Python." }, { "code": null, "e": 26191, "s": 25632, "tex...
How to write a Pseudo Code? - GeeksforGeeks
30 Sep, 2021 Pseudo code is a term which is often used in programming and algorithm based fields. It is a methodology that allows the programmer to represent the implementation of an algorithm. Simply, we can say that it’s the cooked up representation of an algorithm. Often at times, algorithms are represented with the...
[ { "code": null, "e": 26427, "s": 26399, "text": "\n30 Sep, 2021" }, { "code": null, "e": 27025, "s": 26427, "text": "Pseudo code is a term which is often used in programming and algorithm based fields. It is a methodology that allows the programmer to represent the implementation...
Deque element() method in Java - GeeksforGeeks
19 Dec, 2021 The element() method of Deque Interface returns the element at the front the container. It does not deletes the element in the container. This method returns the head of the Deque. The method throws an exception when the Deque is empty. Syntax: E element() Parameters: This method does not accepts any par...
[ { "code": null, "e": 25497, "s": 25469, "text": "\n19 Dec, 2021" }, { "code": null, "e": 25744, "s": 25497, "text": "The element() method of Deque Interface returns the element at the front the container. It does not deletes the element in the container. This method returns the h...
Attributes in C# - GeeksforGeeks
01 May, 2019 Attributes are used in C# to convey declarative information or metadata about various code elements such as methods, assemblies, properties, types, etc. Attributes are added to the code by using a declarative tag that is placed using square brackets ([ ]) on top of the required code element. There are two ...
[ { "code": null, "e": 25467, "s": 25439, "text": "\n01 May, 2019" }, { "code": null, "e": 25846, "s": 25467, "text": "Attributes are used in C# to convey declarative information or metadata about various code elements such as methods, assemblies, properties, types, etc. Attributes...
Sum of multiples of A and B less than N - GeeksforGeeks
07 Apr, 2021 Given a number N, the task is to find the sum of all the multiples of A and B below N.Examples: Input:N = 11, A= 8, B= 2 Output: Sum = 30 Multiples of 8 less than 11 is 8 only. Multiples of 2 less than 11 is 2, 4, 6, 8, 10 and their sum is 30. As 8 is common in both so it is counted only once. Input: N ...
[ { "code": null, "e": 26333, "s": 26305, "text": "\n07 Apr, 2021" }, { "code": null, "e": 26431, "s": 26333, "text": "Given a number N, the task is to find the sum of all the multiples of A and B below N.Examples: " }, { "code": null, "e": 26677, "s": 26431, "...
How to create NumPy arrays from scratch? | by Tanu N Prabhu | Towards Data Science
Regardless of the data, the first step in analyzing them is transforming them into an array of numbers. The fundamental process of doing data science is efficiently is storing and manipulating numerical arrays. Because of this Python has specialized tools for handling numerical arrays: NumPy PackagePandas Package NumPy...
[ { "code": null, "e": 459, "s": 172, "text": "Regardless of the data, the first step in analyzing them is transforming them into an array of numbers. The fundamental process of doing data science is efficiently is storing and manipulating numerical arrays. Because of this Python has specialized tools...
How to get the Android Emulator's IP address using Kotlin?
This example demonstrates how to get the Android Emulator's IP address using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <R...
[ { "code": null, "e": 1147, "s": 1062, "text": "This example demonstrates how to get the Android Emulator's IP address using Kotlin." }, { "code": null, "e": 1276, "s": 1147, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required d...
Horizontally Flip a Binary Matrix - GeeksforGeeks
18 Apr, 2022 Given a binary matrix. The task is to flip the matrix horizontally(find the image of the matrix), then invert it. Note: To flip a matrix horizontally means that reversing each row of the matrix. For example, flipping [1, 1, 0, 0] horizontally results in [0, 0, 1, 1]. To invert a matrix means that replaci...
[ { "code": null, "e": 24617, "s": 24589, "text": "\n18 Apr, 2022" }, { "code": null, "e": 24732, "s": 24617, "text": "Given a binary matrix. The task is to flip the matrix horizontally(find the image of the matrix), then invert it. " }, { "code": null, "e": 24739, ...
Jackson Annotations - @JsonDeserialize
@JsonDeserialize is used to specify custom deserializer to unmarshall the json object. import java.io.IOException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; im...
[ { "code": null, "e": 2562, "s": 2475, "text": "@JsonDeserialize is used to specify custom deserializer to unmarshall the json object." }, { "code": null, "e": 4359, "s": 2562, "text": "import java.io.IOException; \nimport java.text.ParseException; \nimport java.text.SimpleDateFor...
Print the string after the specified character has occurred given no. of times in C Program
Task is to print the given after the specified character occurrence for given number of times which is specified by the user Input : string = {“I am harsh vaid “} Char =’a’ Count =2 Output : rsh vaid It means user specified character ‘a’ and its occurrence 2 so the output string should be displayed after two occu...
[ { "code": null, "e": 1187, "s": 1062, "text": "Task is to print the given after the specified character occurrence for given number of times which is specified by the user" }, { "code": null, "e": 1268, "s": 1187, "text": "Input : string = {“I am harsh vaid “}\n Char =’a’\n C...
How to take MySQL database backup using MySQL Workbench?
To make MySQL database backup using MySQL, first we need to install MySQL Workbench. Follow the below link to install MySQL workbench. https://dev.mysql.com/downloads/windows/installer/8.0.html After installing successfully, we need to open MySQL Workbench. Choose the option “Data Export”. Here is the snapshot. Select ...
[ { "code": null, "e": 1197, "s": 1062, "text": "To make MySQL database backup using MySQL, first we need to install MySQL Workbench. Follow the below link to install MySQL workbench." }, { "code": null, "e": 1256, "s": 1197, "text": "https://dev.mysql.com/downloads/windows/install...
How to set the Foreground Color of a ListBox in C#? - GeeksforGeeks
11 Jul, 2019 In Windows Forms, ListBox control is used to show multiple elements in a list, from which a user can select one or more elements and the elements are generally displayed in multiple columns. In ListBox, you are allowed to set the foreground color of the ListBox using ForeColor Property of the ListBox which...
[ { "code": null, "e": 23793, "s": 23765, "text": "\n11 Jul, 2019" }, { "code": null, "e": 24186, "s": 23793, "text": "In Windows Forms, ListBox control is used to show multiple elements in a list, from which a user can select one or more elements and the elements are generally dis...
How to create an exponential curve in R?
To create an exponential curve, we can use exp function inside the plot function for the variable that we want to plot. For example, if we have a vector x then the exponential curve for the vector x can be created by using plot(x,exp(x)). We can use the exponential function for the variable that is appropriate based on...
[ { "code": null, "e": 1466, "s": 1062, "text": "To create an exponential curve, we can use exp function inside the plot function for the variable that we want to plot. For example, if we have a vector x then the exponential curve for the vector x can be created by using plot(x,exp(x)). We can use the...
Clojure - Databases
In order to use the database functionality, please ensure to first download the jdbc files from the following url − https://codeload.github.com/clojure/java.jdbc/zip/master You will find a zip file which has the necessary drivers for Clojure to have the ability to connect to databases. Once the zip file is extracted, e...
[ { "code": null, "e": 2547, "s": 2374, "text": "In order to use the database functionality, please ensure to first download the jdbc files from the following url − https://codeload.github.com/clojure/java.jdbc/zip/master" }, { "code": null, "e": 2748, "s": 2547, "text": "You will ...
VBA - Exit Do
An Exit Do Statement is used when we want to exit the Do Loops based on certain criteria. It can be used within both Do...While and Do...Until Loops. When Exit Do is executed, the control jumps to the next statement immediately after the Do Loop. Following is the syntax for Exit Do Statement in VBA. Exit Do The follo...
[ { "code": null, "e": 2085, "s": 1935, "text": "An Exit Do Statement is used when we want to exit the Do Loops based on certain criteria. It can be used within both Do...While and Do...Until Loops." }, { "code": null, "e": 2182, "s": 2085, "text": "When Exit Do is executed, the co...
How to change an element color based on value of the color picker value using onclick? - GeeksforGeeks
20 Sep, 2019 We can define color picker by input type=”color”. It provides a user interface element that lets a user specify a color, either by using a visual color picker interface or by entering the color into a text field in #rrggbb hexadecimal format. Only the colors without alpha channel are allowed. Though CSS co...
[ { "code": null, "e": 24727, "s": 24699, "text": "\n20 Sep, 2019" }, { "code": null, "e": 25145, "s": 24727, "text": "We can define color picker by input type=”color”. It provides a user interface element that lets a user specify a color, either by using a visual color picker inte...
Optimize Memory Tips in Python. Tracking, managing, and optimizing... | by Nhu Hoang | Towards Data Science
Memory management in Python is not a simple issue to solve, it requires a decent understanding of Python objects and data structures. Unlike in C/C++, users have no control over memory management. It is taken over by Python itself. However, with some insights about how Python works and memory support modules, we can so...
[ { "code": null, "e": 544, "s": 172, "text": "Memory management in Python is not a simple issue to solve, it requires a decent understanding of Python objects and data structures. Unlike in C/C++, users have no control over memory management. It is taken over by Python itself. However, with some insi...
Access Modifiers in Scala - GeeksforGeeks
26 Feb, 2019 Access Modifiers in scala are used to define the access field of members of packages, classes or objects in scala.For using an access modifier, you must include its keyword in the definition of members of package, class or object.These modifiers will restrict accesses to the members to specific regions of ...
[ { "code": null, "e": 23790, "s": 23762, "text": "\n26 Feb, 2019" }, { "code": null, "e": 24164, "s": 23790, "text": "Access Modifiers in scala are used to define the access field of members of packages, classes or objects in scala.For using an access modifier, you must include it...
Read Text from Image with One Line of Python Code | by Dario Radečić | Towards Data Science
Dealing with images is not a trivial task. To you, as a human, it’s easy to look at something and immediately know what is it you’re looking at. But computers don’t work that way. Tasks that are too hard for you, like complex arithmetics, and math in general, is something that a computer chews without breaking a sweat....
[ { "code": null, "e": 352, "s": 172, "text": "Dealing with images is not a trivial task. To you, as a human, it’s easy to look at something and immediately know what is it you’re looking at. But computers don’t work that way." }, { "code": null, "e": 692, "s": 352, "text": "Tasks ...
Difference between decodeURIComponent() and decodeURI() functions in JavaScript - GeeksforGeeks
13 Jan, 2022 Both decodeURI() and decodeURIComponent() are Javascript global functions that are used for decoding encoded URI (Uniform Resource Identifier). decodeURI() function: It decodes a string previously encoded by encodeURI() function. It returns a decoded URI by replacing each UTF-8 escape sequence with the cha...
[ { "code": null, "e": 24798, "s": 24770, "text": "\n13 Jan, 2022" }, { "code": null, "e": 25129, "s": 24798, "text": "Both decodeURI() and decodeURIComponent() are Javascript global functions that are used for decoding encoded URI (Uniform Resource Identifier). decodeURI() functio...
CodeIgniter - Error Handling
Many times, while using application, we come across errors. It is very annoying for the users if the errors are not handled properly. CodeIgniter provides an easy error handling mechanism. You would like the messages to be displayed, when the application is in developing mode rather than in production mode as the error...
[ { "code": null, "e": 2508, "s": 2319, "text": "Many times, while using application, we come across errors. It is very annoying for the users if the errors are not handled properly. CodeIgniter provides an easy error handling mechanism." }, { "code": null, "e": 2695, "s": 2508, "t...
How compare() method works in Java - GeeksforGeeks
19 Jul, 2021 Prerequisite: Comparator Interface in Java, TreeSet in JavaThe compare() method in Java compares two class specific objects (x, y) given as parameters. It returns the value: 0: if (x==y) -1: if (x < y) 1: if (x > y) Syntax: public int compare(Object obj1, Object obj2) where obj1 and obj2 are the two obj...
[ { "code": null, "e": 26116, "s": 26088, "text": "\n19 Jul, 2021" }, { "code": null, "e": 26291, "s": 26116, "text": "Prerequisite: Comparator Interface in Java, TreeSet in JavaThe compare() method in Java compares two class specific objects (x, y) given as parameters. It returns ...
compress command in Linux with examples - GeeksforGeeks
15 May, 2019 compress command is used to reduce the file size. After compression, the file will be available with an added .Z extension. File permissions will still remain the same as before using compress command. This command uses the adaptive Lempel-Ziv coding and it ignores the symbolic links. And also this command...
[ { "code": null, "e": 25761, "s": 25733, "text": "\n15 May, 2019" }, { "code": null, "e": 26164, "s": 25761, "text": "compress command is used to reduce the file size. After compression, the file will be available with an added .Z extension. File permissions will still remain the ...
Check if two nodes are on same path in a tree | Set 2 - GeeksforGeeks
21 Jun, 2021 Given two nodes of a binary tree v1 and v2, the task is to check if two nodes are on the same path in a tree. Example: Input: v1 = 1, v2 = 5 1 / | \ 2 3 4 / | \ 5 6 7 Output: Yes Explanation: Both nodes 1 and 5 lie in the path 1 -> 2 -> 5. Input: v1 = 2, v2 = 6 ...
[ { "code": null, "e": 26337, "s": 26309, "text": "\n21 Jun, 2021" }, { "code": null, "e": 26458, "s": 26337, "text": "Given two nodes of a binary tree v1 and v2, the task is to check if two nodes are on the same path in a tree. Example: " }, { "code": null, "e": 26717...
PostgreSQL - CREATE FUNCTION Statement - GeeksforGeeks
28 Aug, 2020 In PostgreSQL CREATE FUNCTION statement to develop user-defined functions. Syntax: create [or replace] function function_name(param_list) returns return_type language plpgsql as $$ declare -- variable declaration begin -- logic end; $$ Let’s analyze the above syntax: First, specify the name of t...
[ { "code": null, "e": 27920, "s": 27892, "text": "\n28 Aug, 2020" }, { "code": null, "e": 27995, "s": 27920, "text": "In PostgreSQL CREATE FUNCTION statement to develop user-defined functions." }, { "code": null, "e": 28167, "s": 27995, "text": "Syntax:\ncreate...
A Kubernetes architecture for machine learning web-application deployments | by Geoffroy Gobert | Towards Data Science
Kubernetes became the reference for container orchestration. Container orchestration means starting containers, shutting them down, scaling them vertically (quantity of memory and CPU attributed), and scaling them horizontally (number of containers running in parallel). Does Kubernetes add value to machine learning? Ma...
[ { "code": null, "e": 442, "s": 171, "text": "Kubernetes became the reference for container orchestration. Container orchestration means starting containers, shutting them down, scaling them vertically (quantity of memory and CPU attributed), and scaling them horizontally (number of containers runnin...
Morphological operations in MATLAB - GeeksforGeeks
17 Aug, 2020 Morphological Operations is a broad set of image processing operations that process digital images based on their shapes. In a morphological operation, each image pixel is corresponding to the value of other pixel in its neighborhood. By choosing the shape and size of the neighborhood pixel, you can constr...
[ { "code": null, "e": 23837, "s": 23809, "text": "\n17 Aug, 2020" }, { "code": null, "e": 24371, "s": 23837, "text": "Morphological Operations is a broad set of image processing operations that process digital images based on their shapes. In a morphological operation, each image ...
SQLite - Installation
SQLite is famous for its great feature zero-configuration, which means no complex setup or administration is needed. This chapter will take you through the process of setting up SQLite on Windows, Linux and Mac OS X. Step 1 − Go to SQLite download page, and download precompiled binaries from Windows section. Step 1 − G...
[ { "code": null, "e": 2855, "s": 2638, "text": "SQLite is famous for its great feature zero-configuration, which means no complex setup or administration is needed. This chapter will take you through the process of setting up SQLite on Windows, Linux and Mac OS X." }, { "code": null, "e":...
Bootstrap 4 | Modal - GeeksforGeeks
21 Jun, 2019 In simple words, the Modal component is a dialog box/popup window that is displayed on top of the current page, once the trigger button is clicked. However, clicking on the modal’s backdrop automatically closes the modal. Also, it must be kept in mind that Bootstrap doesn’t support nested modals as they cr...
[ { "code": null, "e": 28480, "s": 28452, "text": "\n21 Jun, 2019" }, { "code": null, "e": 28881, "s": 28480, "text": "In simple words, the Modal component is a dialog box/popup window that is displayed on top of the current page, once the trigger button is clicked. However, clicki...
Data Demystified — DIKW model. A data scientist is a person who is... | by Anthony Figueroa | Towards Data Science
Data is one of the biggest new trends in both tech and business in general. Data “experts” are quickly becoming some of the best-paid individuals in the industry, and every single company wants to surf the wave of data capabilities. It is becoming a fundamental way of understanding the world around us. We can think of ...
[ { "code": null, "e": 405, "s": 172, "text": "Data is one of the biggest new trends in both tech and business in general. Data “experts” are quickly becoming some of the best-paid individuals in the industry, and every single company wants to surf the wave of data capabilities." }, { "code": ...
MFC - Rich Edit
A Rich Edit Control is a window in which the user can enter and edit text. The text can be assigned character and paragraph formatting, and can include embedded OLE objects. It is represented by CRichEditCtrl class. CanPaste Determines if the contents of the Clipboard can be pasted into this rich edit control. CanRedo ...
[ { "code": null, "e": 2283, "s": 2067, "text": "A Rich Edit Control is a window in which the user can enter and edit text. The text can be assigned character and paragraph formatting, and can include embedded OLE objects. It is represented by CRichEditCtrl class." }, { "code": null, "e": ...
What is the maximum length of a table name in MySQL?
The maximum length of a table name is 64 characters long according to MySQl version 8.0.12. Check your installed MySQL version. mysql> select version(); The following is the output. +-----------+ | version() | +-----------+ | 8.0.12 | +-----------+ 1 row in set (0.03 sec) We can check the maximum length of the tabl...
[ { "code": null, "e": 1154, "s": 1062, "text": "The maximum length of a table name is 64 characters long according to MySQl version 8.0.12." }, { "code": null, "e": 1190, "s": 1154, "text": "Check your installed MySQL version." }, { "code": null, "e": 1215, "s": 11...
YAML - Processes
YAML follows a standard procedure for Process flow. The native data structure in YAML includes simple representations such as nodes. It is also called as Representation Node Graph. It includes mapping, sequence and scalar quantities which is being serialized to create a serialization tree. With serialization the object...
[ { "code": null, "e": 2229, "s": 2048, "text": "YAML follows a standard procedure for Process flow. The native data structure in YAML includes simple representations such as nodes. It is also called as Representation Node Graph." }, { "code": null, "e": 2406, "s": 2229, "text": "I...
Can Static Functions Be Virtual in C++? - GeeksforGeeks
22 Dec, 2021 In C++, a static member function of a class cannot be virtual. Virtual functions are invoked when you have a pointer or reference to an instance of a class. Static functions aren’t tied to the the instance of a class but they are tied to the class. C++ doesn’t have pointers-to-class, so there is no scenari...
[ { "code": null, "e": 24332, "s": 24304, "text": "\n22 Dec, 2021" }, { "code": null, "e": 24696, "s": 24332, "text": "In C++, a static member function of a class cannot be virtual. Virtual functions are invoked when you have a pointer or reference to an instance of a class. Static...
The TensorFlow Keras Summary Capture Layer | by Chaim Rand | Towards Data Science
In previous posts, I have told you about how my team at Mobileye, (officially known as Mobileye, an Intel Company), has tackled some of the challenges that came up, while using TensorFlow to train deep neural networks. In particular, I have covered topics such as performance profiling, and debugging. This post addresse...
[ { "code": null, "e": 596, "s": 172, "text": "In previous posts, I have told you about how my team at Mobileye, (officially known as Mobileye, an Intel Company), has tackled some of the challenges that came up, while using TensorFlow to train deep neural networks. In particular, I have covered topics...
Cleaning & Preprocessing Text Data by Building NLP Pipeline | by Kajal Yadav | Towards Data Science
For a while, I was dealing with textual data and I realize in today’s world, It is necessary to know how natural language processing works and what are the main steps to involve in order to get insights out of textual data.As we all know, there are a lot of statistics and maths that we can apply in order to get insight...
[ { "code": null, "e": 598, "s": 172, "text": "For a while, I was dealing with textual data and I realize in today’s world, It is necessary to know how natural language processing works and what are the main steps to involve in order to get insights out of textual data.As we all know, there are a lot ...
Pipenv vs Conda (for Data Scientists) | by Dr Soumaya Mauthoor | Towards Data Science
Python has many tools available for distributing code to developers and does not adhere to “There should be one — and preferably only one — obvious way to do it”. For example Conda+Anaconda is recommended by scipy.org which manages the ubiquitous scipy stack, whilst pipenv+PyPI is recommended by PyPA, the python packag...
[ { "code": null, "e": 707, "s": 171, "text": "Python has many tools available for distributing code to developers and does not adhere to “There should be one — and preferably only one — obvious way to do it”. For example Conda+Anaconda is recommended by scipy.org which manages the ubiquitous scipy st...
Bash shell script to swap two numbers - GeeksforGeeks
05 Jul, 2018 Given two numbers and the task is to swap them using the third variable. Examples: Input: first = 2, second = 4 Output: first = 4, second = 2 Input: first = 5, second = 7 Output: first = 7, second = 5 Approach: Store the value of the first number into a temp variable.Store the value of the second number ...
[ { "code": null, "e": 25786, "s": 25758, "text": "\n05 Jul, 2018" }, { "code": null, "e": 25859, "s": 25786, "text": "Given two numbers and the task is to swap them using the third variable." }, { "code": null, "e": 25869, "s": 25859, "text": "Examples:" }, ...
p5.js mousePressed() Function - GeeksforGeeks
04 Mar, 2021 The mousePressed() function in p5.js works when mouse clicked on the document. The mouseButton variable is used to specify which button is pressed. The touchStarted() function is used instead of mousePressed() function if mousePressed() function is not defined. Syntax: mousePressed(Event) Below programs il...
[ { "code": null, "e": 45488, "s": 45460, "text": "\n04 Mar, 2021" }, { "code": null, "e": 45750, "s": 45488, "text": "The mousePressed() function in p5.js works when mouse clicked on the document. The mouseButton variable is used to specify which button is pressed. The touchStarte...
Program to find the Volume of a Triangular Prism - GeeksforGeeks
17 Mar, 2021 Given the length, width, and height of a triangular prism, the task is to find the volume of the triangular prism. Examples: Input: l = 18, b = 12, h = 9 Output: Volume of triangular prism: 972 Input: l = 10, b = 8, h = 6 Output: Volume of triangular prism: 240 In mathematics, a triangular prism is a...
[ { "code": null, "e": 26888, "s": 26860, "text": "\n17 Mar, 2021" }, { "code": null, "e": 27015, "s": 26888, "text": "Given the length, width, and height of a triangular prism, the task is to find the volume of the triangular prism. Examples: " }, { "code": null, "e":...
Python Program to Convert a list of multiple integers into a single integer
03 Dec, 2020 Given a list of integers, write a Python program to convert the given list into a single integer. Examples: Input : [1, 2, 3] Output : 123 Input : [55, 32, 890] Output : 5532890 There are multiple approaches possible to convert the given list into a single integer. Let’s see each one by one. Approach #1 :...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Dec, 2020" }, { "code": null, "e": 151, "s": 53, "text": "Given a list of integers, write a Python program to convert the given list into a single integer." }, { "code": null, "e": 161, "s": 151, "text": "Example...
Common Elements | Practice | GeeksforGeeks
Given two lists V1 and V2 of sizes n and m respectively. Return the list of elements common to both the lists and return the list in sorted order. Duplicates may be there in the output list. Example: Input: n = 5 v1[] = {3, 4, 2, 2, 4} m = 4 v2[] = {3, 2, 2, 7} Output: 2 2 3 Explanation: The common elements in sorted o...
[ { "code": null, "e": 417, "s": 226, "text": "Given two lists V1 and V2 of sizes n and m respectively. Return the list of elements common to both the lists and return the list in sorted order. Duplicates may be there in the output list." }, { "code": null, "e": 426, "s": 417, "tex...
PointNet – Deep Learning
08 Jun, 2021 PointNet was proposed by a researcher at Stanford University in 2016. The motivation behind this paper is to classify and segment 3D representation of images. They use a data structure called Point cloud, which is a set of the point that represents a 3D shape or an object. Due to its irregularities, it is ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2021" }, { "code": null, "e": 376, "s": 28, "text": "PointNet was proposed by a researcher at Stanford University in 2016. The motivation behind this paper is to classify and segment 3D representation of images. They use a data ...
Scala String replace() method with example
03 Oct, 2019 The replace() method is used to replace the old character of the string with the new one which is stated in the argument. Method Definition: String replace(char oldChar, char newChar)Return Type: It returns the stated string after replacing the old character with the new one. Example #1: // Scala program o...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Oct, 2019" }, { "code": null, "e": 150, "s": 28, "text": "The replace() method is used to replace the old character of the string with the new one which is stated in the argument." }, { "code": null, "e": 305, "s": 15...
Java Swing | JToggleButton Class
16 Aug, 2021 A JToggleButton is a two-state button. The two states are selected and unselected. The JRadioButton and JCheckBox classes are subclasses of this class. When the user presses the toggle button, it toggles between being pressed or unpressed. JToggleButton is used to select a choice from a list of possible ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Aug, 2021" }, { "code": null, "e": 498, "s": 28, "text": "A JToggleButton is a two-state button. The two states are selected and unselected. The JRadioButton and JCheckBox classes are subclasses of this class. When the user presses t...
How to create an empty vector in R ?
21 Apr, 2021 In this article, we are going to see how to create an empty vector in R Programming Language. There are five ways of creating an empty vector and each of them will be discussed in detail below: Using c() Using vector() Creating empty vectors using NULL Using numeric() method Using rep() method Here in this...
[ { "code": null, "e": 53, "s": 25, "text": "\n21 Apr, 2021" }, { "code": null, "e": 247, "s": 53, "text": "In this article, we are going to see how to create an empty vector in R Programming Language. There are five ways of creating an empty vector and each of them will be discuss...
Get the statistical summary and nature of the DataFrame in R
07 Apr, 2021 In this article, we will see how to find the statistics of the given data frame. We will use the summary() function to get the statistics for each column: Syntax: summary(dataframe_name) The result produced will contain the following details: Minimum value – returns the minimum value from each column Maxim...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Apr, 2021" }, { "code": null, "e": 183, "s": 28, "text": "In this article, we will see how to find the statistics of the given data frame. We will use the summary() function to get the statistics for each column:" }, { "code"...
How to add Radio Buttons in form using HTML ?
22 Jul, 2021 We know that Radio Buttons are used to select only one option out of the several options. It is generally used in HTML form. Approach: To add a radio buttons in a webpage, the HTML provides a <input> element with type attribute is set to “radio”. Syntax: <input type="radio"> Example: Below code illust...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2021" }, { "code": null, "e": 154, "s": 28, "text": "We know that Radio Buttons are used to select only one option out of the several options. It is generally used in HTML form. " }, { "code": null, "e": 278, "s"...
Pandas Scatter Plot – DataFrame.plot.scatter()
25 Feb, 2021 A Scatter plot is a type of data visualization technique that shows the relationship between two numerical variables. For plotting to scatter plot using pandas there is DataFrame class and this class has a member called plot. Calling the scatter() method on the plot member draws a plot between two variable...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Feb, 2021" }, { "code": null, "e": 374, "s": 28, "text": "A Scatter plot is a type of data visualization technique that shows the relationship between two numerical variables. For plotting to scatter plot using pandas there is DataFr...
How to Convert Pandas to PySpark DataFrame ?
23 May, 2021 In this article, we will learn How to Convert Pandas to PySpark DataFrame. Sometimes we will get csv, xlsx, etc. format data, and we have to store it in PySpark DataFrame and that can be done by loading data in Pandas then converted PySpark DataFrame. For conversion, we pass the Pandas dataframe into the C...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2021" }, { "code": null, "e": 360, "s": 28, "text": "In this article, we will learn How to Convert Pandas to PySpark DataFrame. Sometimes we will get csv, xlsx, etc. format data, and we have to store it in PySpark DataFrame and ...
Collection add() Method in Java with Examples
29 Nov, 2021 The add(E element) of java.util.Collection interface is used to add the element ‘element’ to this collection. This method returns a boolean value depicting the successfulness of the operation. If the element was added, it returns true, else it returns false. Syntax: Collection.add(E element) Parameters: T...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Nov, 2021" }, { "code": null, "e": 312, "s": 53, "text": "The add(E element) of java.util.Collection interface is used to add the element ‘element’ to this collection. This method returns a boolean value depicting the successfulness...
Comments in C++
Program comments are explanatory statements that you can include in the C++ code. These comments help anyone reading the source code. All programming languages allow for some form of comments. C++ supports single-line and multi-line comments. All characters available inside any comment are ignored by C++ compiler. C++ ...
[ { "code": null, "e": 2645, "s": 2452, "text": "Program comments are explanatory statements that you can include in the C++ code. These comments help anyone reading the source code. All programming languages allow for some form of comments." }, { "code": null, "e": 2768, "s": 2645, ...
Draw Colourful Star Pattern in Turtle – Python
08 Jun, 2020 In this article we will use Python’s turtle library to draw a spiral of stars, filled with randomly generated colours. We can generate different patterns by varying some parameters. modules required: turtle: turtle library enables users to draw picture or shapes using commands, providing them with a virtua...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jun, 2020" }, { "code": null, "e": 234, "s": 52, "text": "In this article we will use Python’s turtle library to draw a spiral of stars, filled with randomly generated colours. We can generate different patterns by varying some para...
Search in an array of strings where non-empty strings are sorted
14 Sep, 2021 Given an array of strings. The array has both empty and non-empty strings. All non-empty strings are in sorted order. Empty strings can be present anywhere between non-empty strings. Examples: Input : arr[] = {"for", "", "", "", "geeks", "ide", "", "practice", "" , ...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Sep, 2021" }, { "code": null, "e": 237, "s": 54, "text": "Given an array of strings. The array has both empty and non-empty strings. All non-empty strings are in sorted order. Empty strings can be present anywhere between non-empty ...
Scala sum Map values
26 Jul, 2019 In Scala, the sum of the map elements can be done by utilizing foldLeft method. Syntax : m1.foldLeft(0)(_+_._1) Here, m1 is used for a Map, foldLeft is a method that takes an initial value zero. it will take previous result and add it to the next map key value. Return Type: It returns the sum of all the el...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2019" }, { "code": null, "e": 108, "s": 28, "text": "In Scala, the sum of the map elements can be done by utilizing foldLeft method." }, { "code": null, "e": 140, "s": 108, "text": "Syntax : m1.foldLeft(0)(_+...
Count distinct Bitwise OR of all Subarrays
14 Jun, 2022 Given an array A of non-negative integers, where . The task is to count number of distinct possible results obtained by taking the bitwise OR of all the elements in all possible Subarrays.Examples: Input: A = [1, 2] Output: 3 Explanation: The possible subarrays are [1], [2], [1, 2]. These Bitwise OR of s...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Jun, 2022" }, { "code": null, "e": 254, "s": 54, "text": "Given an array A of non-negative integers, where . The task is to count number of distinct possible results obtained by taking the bitwise OR of all the elements in all possi...
Angular forms FormControlName Directive - GeeksforGeeks
03 Jun, 2021 In this article, we are going to see what is FormControlName in Angular 10 and how to use it. FormControlName is used to sync a FormControl in an existing FormGroup to a form control element by name. Syntax: <form [FormControlName] ="name"> Exported from: ReactiveFormsModule Selectors: [FormControlName] ...
[ { "code": null, "e": 25135, "s": 25107, "text": "\n03 Jun, 2021" }, { "code": null, "e": 25229, "s": 25135, "text": "In this article, we are going to see what is FormControlName in Angular 10 and how to use it." }, { "code": null, "e": 25335, "s": 25229, "text...
Spring Boot - Enabling Swagger2
Swagger2 is an open source project used to generate the REST API documents for RESTful web services. It provides a user interface to access our RESTful web services via the web browser. To enable the Swagger2 in Spring Boot application, you need to add the following dependencies in our build configurations file. <depe...
[ { "code": null, "e": 3211, "s": 3025, "text": "Swagger2 is an open source project used to generate the REST API documents for RESTful web services. It provides a user interface to access our RESTful web services via the web browser." }, { "code": null, "e": 3340, "s": 3211, "text...
How to reset all form values using a button in HTML ? - GeeksforGeeks
30 Jun, 2021 You can easily reset all form values using the HTML button using <input type=”reset”> attribute. Clicking the reset button restores the form to its original state (the default value) before the user started entering values into the fields, selecting radio buttons, checkboxes, etc. There could be many scena...
[ { "code": null, "e": 24894, "s": 24866, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25208, "s": 24894, "text": "You can easily reset all form values using the HTML button using <input type=”reset”> attribute. Clicking the reset button restores the form to its original state ...
Bootstrap class pull-left
Float an element to the left with class pull-left. You can try to run the following code to implement the pull-left class − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <script src = "/scripts/jquery.min.j...
[ { "code": null, "e": 1113, "s": 1062, "text": "Float an element to the left with class pull-left." }, { "code": null, "e": 1186, "s": 1113, "text": "You can try to run the following code to implement the pull-left class −" }, { "code": null, "e": 1196, "s": 1186, ...
java.util.zip.ZipInputStream.getNextEntry() Method Example
The java.util.zip.ZipInputStream.getNextEntry() method reads the next ZIP file entry and positions the stream at the beginning of the entry data. Following is the declaration for java.util.zip.ZipInputStream.getNextEntry() method. public ZipEntry getNextEntry() throws IOException the next ZIP file entry, or null if...
[ { "code": null, "e": 2338, "s": 2192, "text": "The java.util.zip.ZipInputStream.getNextEntry() method reads the next ZIP file entry and positions the stream at the beginning of the entry data." }, { "code": null, "e": 2423, "s": 2338, "text": "Following is the declaration for jav...
Clojure - Lists cons
Returns a new list wherein an element is added to the beginning of the list. Following is the syntax. (cons element lst) Parameters − ‘element’ is the element which needs to be added to the list. ‘lst’ is the list of items. Return Value − The list with the appended value. Following is an example of cons in Clojure. (n...
[ { "code": null, "e": 2451, "s": 2374, "text": "Returns a new list wherein an element is added to the beginning of the list." }, { "code": null, "e": 2476, "s": 2451, "text": "Following is the syntax." }, { "code": null, "e": 2496, "s": 2476, "text": "(cons ele...
Multiply Large Numbers represented as Strings - GeeksforGeeks
01 Apr, 2021 Given two positive numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find product of these two numbers.Examples: Input : num1 = 4154 num2 = 51454 Output : 213739916 Input : num1 = 654154154151454545415415454 num2 = 63516561563156316545...
[ { "code": null, "e": 25354, "s": 25326, "text": "\n01 Apr, 2021" }, { "code": null, "e": 25515, "s": 25354, "text": "Given two positive numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find product of these two numbers.Examples: " ...
How to Extract Data from PDF Forms Using Python | by ankur garg | Towards Data Science
PDF or Portable Document File format is one of the most common file formats in use today. It is widely used across enterprises, in government offices, healthcare and other industries. As a result, there is a large body of unstructured data that exists in PDF format and to extract and analyse this data to generate meani...
[ { "code": null, "e": 546, "s": 171, "text": "PDF or Portable Document File format is one of the most common file formats in use today. It is widely used across enterprises, in government offices, healthcare and other industries. As a result, there is a large body of unstructured data that exists in ...
FIND_IN_SET() Function in MySQL - GeeksforGeeks
02 Sep, 2020 FIND_IN_SET() function used to find the position of a string within a list of strings. If the string is repeated multiple time, the output will be the first position of that string. Point to be noted : If string is not found in string_list, the result is 0 If string or string_list is NULL, the result is NU...
[ { "code": null, "e": 24268, "s": 24240, "text": "\n02 Sep, 2020" }, { "code": null, "e": 24450, "s": 24268, "text": "FIND_IN_SET() function used to find the position of a string within a list of strings. If the string is repeated multiple time, the output will be the first positi...
JavaFX - Layout Panes VBox
If we use VBox as the layout in our application, all the nodes are set in a single vertical column. The class named VBox of the package javafx.scene.layout represents the VBox pane. This class contains five properties, which are − alignment − This property represents the alignment of the nodes inside the bounds of the ...
[ { "code": null, "e": 2000, "s": 1900, "text": "If we use VBox as the layout in our application, all the nodes are set in a single vertical column." }, { "code": null, "e": 2131, "s": 2000, "text": "The class named VBox of the package javafx.scene.layout represents the VBox pane. ...
Check whether given key already exists in a dictionary in Python
The dictionary containers in pipeline old both key and values as pairs. Sometimes we may need to find if a given key is already present in the dictionary. In this article we will see the various ways to check for the presence of a key in a dictionary. This is a very straightforward way in which we just check for the pr...
[ { "code": null, "e": 1314, "s": 1062, "text": "The dictionary containers in pipeline old both key and values as pairs. Sometimes we may need to find if a given key is already present in the dictionary. In this article we will see the various ways to check for the presence of a key in a dictionary." ...
Data Visualisation with Chartify - GeeksforGeeks
10 Jul, 2020 Chartify is an open-source data visualization library from Spotify that makes it easy for data analysts to create charts and graphs. Chartify is built on top of Bokeh, which is a very popular data visualization library. This article gives a brief introduction to this technology. Install the latest version...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n10 Jul, 2020" }, { "code": null, "e": 25836, "s": 25555, "text": "Chartify is an open-source data visualization library from Spotify that makes it easy for data analysts to create charts and graphs. Chartify is built on top of Bo...
HTML | DOM Input Checkbox disabled Property - GeeksforGeeks
06 Mar, 2019 The Input Checkbox disabled property in HTML DOM is used to set or return whether the Input Checkbox field must be disabled or not. A disabled checkbox is unclickable and unusable. It is a boolean attribute and used to reflect the HTML Disabled attribute. Syntax: It returns the Input Checkbox disabled prop...
[ { "code": null, "e": 26412, "s": 26384, "text": "\n06 Mar, 2019" }, { "code": null, "e": 26668, "s": 26412, "text": "The Input Checkbox disabled property in HTML DOM is used to set or return whether the Input Checkbox field must be disabled or not. A disabled checkbox is unclicka...
Node.js fs.unwatchFile() Method - GeeksforGeeks
08 Oct, 2021 The fs.unwatchFile() method is used to stop watching for changes on the given file. An optional listener parameter can be specified to remove only the specified listener from the file. Otherwise, all the listeners associated with the file are removed. If the file is not being watched when this function is ...
[ { "code": null, "e": 24922, "s": 24894, "text": "\n08 Oct, 2021" }, { "code": null, "e": 25295, "s": 24922, "text": "The fs.unwatchFile() method is used to stop watching for changes on the given file. An optional listener parameter can be specified to remove only the specified li...
Angular PrimeNG ColorPicker Component - GeeksforGeeks
19 Aug, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the colorPicker component in Angular PrimeNG. colorPicker componen...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n19 Aug, 2021" }, { "code": null, "e": 26641, "s": 26354, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp...
How to handle newlines in JSON ? - GeeksforGeeks
11 Jan, 2021 JSON is a language-independent data format. It is a JavaScript Object Notation. Basically, it is a text-based format used to represent structured data. Data is being sent in this format from the server to the client. In this article, we will see how to approach or handle newlines in JSON. Syntax: '\\n' Ab...
[ { "code": null, "e": 25677, "s": 25649, "text": "\n11 Jan, 2021" }, { "code": null, "e": 25894, "s": 25677, "text": "JSON is a language-independent data format. It is a JavaScript Object Notation. Basically, it is a text-based format used to represent structured data. Data is bei...
Ruby/Tk - Scrollbar Widget
A Scrollbar helps the user to see all parts of another widget, whose content is typically much larger than what can be shown in the available screen space. A scrollbar displays two arrows, one at each end of the scrollbar, and a slider in the middle portion of the scrollbar. The position and size of the slider indicate...
[ { "code": null, "e": 2450, "s": 2294, "text": "A Scrollbar helps the user to see all parts of another widget, whose content is typically much larger than what can be shown in the available screen space." }, { "code": null, "e": 2682, "s": 2450, "text": "A scrollbar displays two a...
How to check the permissions of a directory using Python?
You can use os.access(path, mode) to check the directory permission with modes for reading, writing and execution permissions. For being able to write you'll also need to check for execution permission. For example, >>> import os >>> os.access('my_folder', os.R_OK) # Check for read access True >>> os.access('my_folder'...
[ { "code": null, "e": 1278, "s": 1062, "text": "You can use os.access(path, mode) to check the directory permission with modes for reading, writing and execution permissions. For being able to write you'll also need to check for execution permission. For example," }, { "code": null, "e": ...
GATE | Gate IT 2008 | Question 61 - GeeksforGeeks
15 Oct, 2019 Consider the following three schedules of transactions T1, T2 and T3. [Notation: In the following NYO represents the action Y (R for read, W for write) performed by transac­tion N on object O.] (S1) 2RA 2WA 3RC 2WB 3WA 3WC 1RA 1RB 1WA 1WB (S2) 3RC 2RA 2WA 2WB 3W...
[ { "code": null, "e": 25805, "s": 25777, "text": "\n15 Oct, 2019" }, { "code": null, "e": 25999, "s": 25805, "text": "Consider the following three schedules of transactions T1, T2 and T3. [Notation: In the following NYO represents the action Y (R for read, W for write) performed b...
Anti-aliased Line | Xiaolin Wu's algorithm - GeeksforGeeks
07 Jan, 2022 Anti-Aliased Line DrawingBelow is the image showing line drawn with Bresenham’s line algorithm (left) and Xiaolin Wu’s line algorithm (right) which smooths the line. Which one looks better to you ?Anti Aliasing conceptSuppose we want to draw a line from point(1 , 1) to point(8 , 4) with rectangular edges. ...
[ { "code": null, "e": 25825, "s": 25797, "text": "\n07 Jan, 2022" }, { "code": null, "e": 26613, "s": 25825, "text": "Anti-Aliased Line DrawingBelow is the image showing line drawn with Bresenham’s line algorithm (left) and Xiaolin Wu’s line algorithm (right) which smooths the lin...
Python program to find all possible pairs with given sum - GeeksforGeeks
07 Jun, 2019 Given a list of integers and an integer variable K, write a Python program to find all pairs in the list with given sum K. Examples: Input : lst =[1, 5, 3, 7, 9] K = 12 Output : [(5, 7), (3, 9)] Input : lst = [2, 1, 5, 7, -1, 4] K = 6 Output : [(2, 4), (1, 5), (7, -1)] Method #1 : Python...
[ { "code": null, "e": 24575, "s": 24547, "text": "\n07 Jun, 2019" }, { "code": null, "e": 24698, "s": 24575, "text": "Given a list of integers and an integer variable K, write a Python program to find all pairs in the list with given sum K." }, { "code": null, "e": 247...
How to convert an object to byte array in java?
To convert an object to byte array Make the required object serializable by implementing the Serializable interface. Create a ByteArrayOutputStream object. Create an ObjectOutputStream object by passing the ByteArrayOutputStream object created in the previous step. Write the contents of the object to the output stream ...
[ { "code": null, "e": 1097, "s": 1062, "text": "To convert an object to byte array" }, { "code": null, "e": 1179, "s": 1097, "text": "Make the required object serializable by implementing the Serializable interface." }, { "code": null, "e": 1218, "s": 1179, "te...
Java.util.ArrayList.add() Method in Java - GeeksforGeeks
21 Jun, 2020 Below are the add() methods of ArrayList in Java: boolean add(Object o) : This method appends the specified element to the end of this list.Parameters: object o: The element to be appended to this list. Exception: NA// Java code to illustrate add(Object o)import java.io.*;import java.util.ArrayList; p...
[ { "code": null, "e": 24125, "s": 24097, "text": "\n21 Jun, 2020" }, { "code": null, "e": 24175, "s": 24125, "text": "Below are the add() methods of ArrayList in Java:" }, { "code": null, "e": 26206, "s": 24175, "text": "boolean add(Object o) : This method appe...
OR Gate using Perceptron Network - GeeksforGeeks
12 Jun, 2019 Perceptron networks come under single-layer feed-forward networks and are also called simple perceptrons. The perceptron network consists of three units, namely, sensory unit (input unit), associator unit (hidden unit), response unit (output unit). The sensory units are connected to associator units with f...
[ { "code": null, "e": 25161, "s": 25133, "text": "\n12 Jun, 2019" }, { "code": null, "e": 25615, "s": 25161, "text": "Perceptron networks come under single-layer feed-forward networks and are also called simple perceptrons. The perceptron network consists of three units, namely, s...
Fraction module in Python
In Python the Fraction module supports rational number arithmetic. Using this module, we can create fractions from integers, floats, decimal and from some other numeric values and strings. There is a concept of Fraction Instance. It is formed by a pair of integers as numerator and denominator. The class fractions.Fract...
[ { "code": null, "e": 1251, "s": 1062, "text": "In Python the Fraction module supports rational number arithmetic. Using this module, we can create fractions from integers, floats, decimal and from some other numeric values and strings." }, { "code": null, "e": 1357, "s": 1251, "t...
Defining Functions in Python. Defining Python Functions | by Sadrach Pierre, Ph.D. | Towards Data Science
In computer science, functions provide a set of instructions for performing a specific task. Functions are an important part of software programs as they are at the heart of most applications we use today. In this post, we will discuss how to define different types of functions in python. Let’s get started! To starts, ...
[ { "code": null, "e": 462, "s": 172, "text": "In computer science, functions provide a set of instructions for performing a specific task. Functions are an important part of software programs as they are at the heart of most applications we use today. In this post, we will discuss how to define diffe...
Density Plots with Pandas in Python - GeeksforGeeks
26 Nov, 2020 Density Plot is a type of data visualization tool. It is a variation of the histogram that uses ‘kernel smoothing’ while plotting the values. It is a continuous and smooth version of a histogram inferred from a data. Density plots uses Kernel Density Estimation (so they are also known as Kernel density est...
[ { "code": null, "e": 23895, "s": 23867, "text": "\n26 Nov, 2020" }, { "code": null, "e": 24112, "s": 23895, "text": "Density Plot is a type of data visualization tool. It is a variation of the histogram that uses ‘kernel smoothing’ while plotting the values. It is a continuous an...
Find current weather of any city using OpenWeatherMap API in Python
In this tutorial, we are going to get the weather of a city using OpenWeatherMap API. To use the OpenWeatherMap API, we have to get the API key. We will get it by creating an account on their website. Create an account and get your API Key. It's free until 60 calls per minute. You have to pay if you want more than that...
[ { "code": null, "e": 1263, "s": 1062, "text": "In this tutorial, we are going to get the weather of a city using OpenWeatherMap API. To use the OpenWeatherMap API, we have to get the API key. We will get it by creating an account on their website." }, { "code": null, "e": 1571, "s": ...