title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Chatbots Using Python and Rasa - GeeksforGeeks
28 Dec, 2021 Rasa is a tool to build custom AI chatbots using Python and natural language understanding (NLU). Rasa provides a framework for developing AI chatbots that uses natural language understanding (NLU). It also allows the user to train the model and add custom actions. Chatbots built using Rasa deployed on mul...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n28 Dec, 2021" }, { "code": null, "e": 25096, "s": 24725, "text": "Rasa is a tool to build custom AI chatbots using Python and natural language understanding (NLU). Rasa provides a framework for developing AI chatbots that uses na...
C++ Program to convert Decimal Numbers to Octal
In a computer system, the octal number is expressed in the octal numeral system while the decimal number is in the decimal numeral system. The octal number is in base 8 while the decimal number is in base 10. Examples of decimal numbers and their corresponding octal numbers are as follows. A program that converts the d...
[ { "code": null, "e": 1271, "s": 1062, "text": "In a computer system, the octal number is expressed in the octal numeral system while the decimal number is in the decimal numeral system. The octal number is in base 8 while the decimal number is in base 10." }, { "code": null, "e": 1353, ...
Find all K length subarrays containing only 1s in given Binary String - GeeksforGeeks
29 Dec, 2021 Given a binary string str[], the task is to find all possible K length subarrays containing only 1s and print their starting and ending index. Examples: Input: str = “0101000”, K=1Output: 1 13 3Explanation: Substrings at positions 1 and 3 are the substrings with value 1. Input: str = “11111001”, K=3Output:...
[ { "code": null, "e": 25859, "s": 25831, "text": "\n29 Dec, 2021" }, { "code": null, "e": 26002, "s": 25859, "text": "Given a binary string str[], the task is to find all possible K length subarrays containing only 1s and print their starting and ending index." }, { "code"...
Java Program to Write an Array of Strings to the Output Console - GeeksforGeeks
29 Oct, 2020 We cannot print array elements directly in Java, you need to use Arrays.toString() or Arrays.deepToString() to print array elements. Use toString() method if you want to print a one-dimensional array and use deepToString() method if you want to print a two-dimensional or 3-dimensional array etc. In Java, a...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n29 Oct, 2020" }, { "code": null, "e": 24165, "s": 23868, "text": "We cannot print array elements directly in Java, you need to use Arrays.toString() or Arrays.deepToString() to print array elements. Use toString() method if you w...
C++ Program to Perform Baillie-PSW Primality Test
The Baillie-PSW Primality Test, this test named after Robert Baillie, Carl Pomerance, John Selfridge, and Samuel Wagstaff. It is a test which tests whether a number is a composite number or possibly prime. Begin Declare a function MillerTest of Boolean type. Declare MT_dt and MT_num of integer datatype and pass a...
[ { "code": null, "e": 1268, "s": 1062, "text": "The Baillie-PSW Primality Test, this test named after Robert Baillie, Carl Pomerance, John Selfridge, and Samuel Wagstaff. It is a test which tests whether a number is a composite number or possibly prime." }, { "code": null, "e": 1831, ...
1 Bit Full Adder using Multiplexer - GeeksforGeeks
10 Sep, 2021 Prerequisite : Multiplexer, Full adder Introduction : Multiplexer and Full adder are two different Digital Logic circuits. The Multiplexer is a digital switch. It allows digital information from several sources to be routed onto a single output line. On the other hand, the Full adder circuit performs the ...
[ { "code": null, "e": 24462, "s": 24434, "text": "\n10 Sep, 2021" }, { "code": null, "e": 24502, "s": 24462, "text": "Prerequisite : Multiplexer, Full adder " }, { "code": null, "e": 24941, "s": 24502, "text": "Introduction : Multiplexer and Full adder are two ...
How to set a default colormap in Matplotlib?
To set a default colormap in matplotlib, we can take the following steps − Create random data using numpy, array dimension 4×4. Create random data using numpy, array dimension 4×4. Create two axes and one figure using subplots() method. Create two axes and one figure using subplots() method. Display the data as an imag...
[ { "code": null, "e": 1137, "s": 1062, "text": "To set a default colormap in matplotlib, we can take the following steps −" }, { "code": null, "e": 1190, "s": 1137, "text": "Create random data using numpy, array dimension 4×4." }, { "code": null, "e": 1243, "s": 11...
Combobox Widget in tkinter | Python - GeeksforGeeks
23 Jan, 2020 Python provides a variety of GUI (Graphic User Interface) types such as PyQT, Tkinter, Kivy, WxPython, and PySide. Among them, tkinter is the most commonly used GUI module in Python since it is simple and easy to understand. The word Tkinter comes from the Tk interface. The tkinter module is available in P...
[ { "code": null, "e": 41554, "s": 41526, "text": "\n23 Jan, 2020" }, { "code": null, "e": 41962, "s": 41554, "text": "Python provides a variety of GUI (Graphic User Interface) types such as PyQT, Tkinter, Kivy, WxPython, and PySide. Among them, tkinter is the most commonly used GU...
MySQL Tryit Editor v1.0
SELECT DATE_FORMAT("2017-06-15", "%Y"); ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of ...
[ { "code": null, "e": 42, "s": 0, "text": "SELECT DATE_FORMAT(\"2017-06-15\", \"%Y\"); " }, { "code": null, "e": 44, "s": 42, "text": "​" }, { "code": null, "e": 116, "s": 53, "text": "Edit the SQL Statement, and click \"Run SQL\" to see the result." }, { ...
Apache Pig - TOKENIZE()
The TOKENIZE() function of Pig Latin is used to split a string (which contains a group of words) in a single tuple and returns a bag which contains the output of the split operation. Given below is the syntax of the TOKENIZE() function. grunt> TOKENIZE(expression [, 'field_delimiter']) As a delimeter to the TOKENIZE(...
[ { "code": null, "e": 2867, "s": 2684, "text": "The TOKENIZE() function of Pig Latin is used to split a string (which contains a group of words) in a single tuple and returns a bag which contains the output of the split operation." }, { "code": null, "e": 2921, "s": 2867, "text": ...
SOAP - Header
The optional Header element offers a flexible framework for specifying additional application-level requirements. For example, the Header element can be used to specify a digital signature for password-protected services. Likewise, it can be used to specify an account number for pay-per-use SOAP services. It is an opti...
[ { "code": null, "e": 2021, "s": 1714, "text": "The optional Header element offers a flexible framework for specifying additional application-level requirements. For example, the Header element can be used to specify a digital signature for password-protected services. Likewise, it can be used to spe...
AppJar module in Python - GeeksforGeeks
30 Jan, 2020 The appJar library is designed to provide the easiest way to create a GUI using Python. It is a wrapper around the Tkinter, to allow the secondary school students to develop simple GUI in Python. appJar is designed in such a way that it can run on many versions of Python so it would be really easy to work ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n30 Jan, 2020" }, { "code": null, "e": 24224, "s": 23901, "text": "The appJar library is designed to provide the easiest way to create a GUI using Python. It is a wrapper around the Tkinter, to allow the secondary school students ...
MySQL-Connector-Python module in Python - GeeksforGeeks
09 Mar, 2020 MySQL is a Relational Database Management System (RDBMS) whereas the structured Query Language (SQL) is the language used for handling the RDBMS using commands i.e Creating, Inserting, Updating and Deleting the data from the databases. SQL commands are case insensitive i.e CREATE and create signify the sam...
[ { "code": null, "e": 24412, "s": 24384, "text": "\n09 Mar, 2020" }, { "code": null, "e": 24730, "s": 24412, "text": "MySQL is a Relational Database Management System (RDBMS) whereas the structured Query Language (SQL) is the language used for handling the RDBMS using commands i.e...
C program to copy string without using strcpy() function
28 Nov, 2017 We can use inbuilt strcpy() function to copy one string to other but here, this program copies the content of one string to another manually without using strcpy() function. Approach : Here we are giving one string in input and then with the help of for loop we transfer the content of first array to the se...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Nov, 2017" }, { "code": null, "e": 226, "s": 52, "text": "We can use inbuilt strcpy() function to copy one string to other but here, this program copies the content of one string to another manually without using strcpy() function."...
PHP | Ds\Collection isEmpty() Function
21 Jan, 2019 The Ds\Collection::isEmpty() function is an inbuilt function in PHP which is used to returns whether collection is empty. Syntax: Ds\Collection::isEmpty ( void ) : bool Parameters: This function does not accepts any parameters. Return Value: It returns True if collection is empty or False otherwise. Below ...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jan, 2019" }, { "code": null, "e": 150, "s": 28, "text": "The Ds\\Collection::isEmpty() function is an inbuilt function in PHP which is used to returns whether collection is empty." }, { "code": null, "e": 158, "s": 1...
Print all valid words from given dictionary that are possible using Characters of given Array
06 Jan, 2022 Given a dictionary of strings dict[] and a character array arr[]. Print all valid words of the dictionary that are possible using characters from the given character array.Examples: Input: dict – [“go”, “bat”, “me”, “eat”, “goal”, boy”, “run”] arr[] = [‘e’, ‘o’, ‘b’, ‘a’, ‘m’, ‘g’, ‘l’]Output: “go”, “me”, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Jan, 2022" }, { "code": null, "e": 236, "s": 54, "text": "Given a dictionary of strings dict[] and a character array arr[]. Print all valid words of the dictionary that are possible using characters from the given character array.Ex...
Complement Naive Bayes (CNB) Algorithm
05 Sep, 2020 Naive Bayes algorithms are a group of very popular and commonly used Machine Learning algorithms used for classification. There are many different ways the Naive Bayes algorithm is implemented like Gaussian Naive Bayes, Multinomial Naive Bayes, etc. To learn more about the basics of Naive Bayes, you can fo...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Sep, 2020" }, { "code": null, "e": 377, "s": 54, "text": "Naive Bayes algorithms are a group of very popular and commonly used Machine Learning algorithms used for classification. There are many different ways the Naive Bayes algori...
Integer to English Words in Python
Suppose we have a number. The number can be anything in between 0 to 231 – 1. We have to convert the number into words. So if the number is like 512, then the result will be Five hundred twelve. To solve this, we will follow these steps − Define some lists like less_than_20, this will hold all words from one to ninetee...
[ { "code": null, "e": 1257, "s": 1062, "text": "Suppose we have a number. The number can be anything in between 0 to 231 – 1. We have to convert the number into words. So if the number is like 512, then the result will be Five hundred twelve." }, { "code": null, "e": 1301, "s": 1257, ...
How to use jQuery.closest() method with class selector?
The closest() method begins with the current element and returns only the first ancestors matching the passed expression. This returned jQuery object has zero or one element. Using the class selector is easy and let us see how to use it below. You can try to run the following code to learn how to use jQuery.closest() m...
[ { "code": null, "e": 1306, "s": 1062, "text": "The closest() method begins with the current element and returns only the first ancestors matching the passed expression. This returned jQuery object has zero or one element. Using the class selector is easy and let us see how to use it below." }, {...
DAX Filter - EARLIEST function
Returns the current value of the specified column in an outer evaluation pass of the specified column. EARLIEST (<column>) column A reference to a column. The current value of row, from column, at the outer evaluation pass. The EARLIEST function is similar to EARLIER, in which you can also specify the level of recurs...
[ { "code": null, "e": 2104, "s": 2001, "text": "Returns the current value of the specified column in an outer evaluation pass of the specified column." }, { "code": null, "e": 2126, "s": 2104, "text": "EARLIEST (<column>) \n" }, { "code": null, "e": 2133, "s": 2126...
Machine learning model serving for newbies with MLflow | by Maria Patterson | Towards Data Science
A common problem in machine learning is the fumbling handoff between the data scientists building machine learning models and the engineers trying to integrate these models into working software. The compute environment that data scientists are comfortable with doesn’t always slide nicely into production quality system...
[ { "code": null, "e": 495, "s": 172, "text": "A common problem in machine learning is the fumbling handoff between the data scientists building machine learning models and the engineers trying to integrate these models into working software. The compute environment that data scientists are comfortabl...
Create a caret arrow icon that represents dropdown button with Bootstrap
Use the .caret class in Bootstrap to create a caret arrow icon representing dropdown button. You can try to run the following code to create a carot arrow icon − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> ...
[ { "code": null, "e": 1155, "s": 1062, "text": "Use the .caret class in Bootstrap to create a caret arrow icon representing dropdown button." }, { "code": null, "e": 1224, "s": 1155, "text": "You can try to run the following code to create a carot arrow icon −" }, { "code"...
Prerequisite Tasks | Practice | GeeksforGeeks
There are a total of N tasks, labeled from 0 to N-1. Some tasks may have prerequisites, for example to do task 0 you have to first complete task 1, which is expressed as a pair: [0, 1] Given the total number of tasks N and a list of prerequisite pairs P, find if it is possible to finish all tasks. Example 1: Input: N...
[ { "code": null, "e": 589, "s": 290, "text": "There are a total of N tasks, labeled from 0 to N-1. Some tasks may have prerequisites, for example to do task 0 you have to first complete task 1, which is expressed as a pair: [0, 1]\nGiven the total number of tasks N and a list of prerequisite pairs P,...
Backup your Azure Storage using snapshots and Data Factory | by René Bremer | Towards Data Science
Azure Storage always stores multiple copies of your data. When Geo-redundant Storage (GRS) is used, it is also replicated to the paired region. This way, GRS prevents that data is lost in case of disaster. However, GRS cannot prevent data loss when application errors corrupt data. Corrupted data is then just replicated...
[ { "code": null, "e": 610, "s": 172, "text": "Azure Storage always stores multiple copies of your data. When Geo-redundant Storage (GRS) is used, it is also replicated to the paired region. This way, GRS prevents that data is lost in case of disaster. However, GRS cannot prevent data loss when applic...
Tryit Editor v3.7
Tryit: Text shadow on white text
[]
Can we select row by DATEPART() in MySQL? Is it possible?
There is no DATEPART() function in MySQL, you need to use MONTH() function to extract the month name from date column. The syntax is as follows: SELECT *FROM yourTableName WHERE MONTH(yourDateColumnName)=yourValue; To understand the above syntax, let us create a table. The query to create a table is as follows: mysql> ...
[ { "code": null, "e": 1207, "s": 1062, "text": "There is no DATEPART() function in MySQL, you need to use MONTH() function to extract the month name from date column. The syntax is as follows:" }, { "code": null, "e": 1277, "s": 1207, "text": "SELECT *FROM yourTableName WHERE MONT...
PHP & XML
XML is a markup language that looks a lot like HTML. An XML document is plain text and contains tags delimited by < and >.There are two big differences between XML and HTML − XML doesn't define a specific set of tags you must use. XML is extremely picky about document structure. XML gives you a lot more freedom than HT...
[ { "code": null, "e": 2932, "s": 2757, "text": "XML is a markup language that looks a lot like HTML. An XML document is plain text and contains tags delimited by < and >.There are two big differences between XML and HTML −" }, { "code": null, "e": 2988, "s": 2932, "text": "XML doe...
C Program to find largest element in an array - GeeksforGeeks
18 Jul, 2021 Given an array, find the largest element in it. Input : arr[] = {10, 20, 4} Output : 20 Input : arr[] = {20, 10, 20, 4, 100} Output : 100 C // C program to find maximum in arr[] of size n #include <stdio.h> // C function to find maximum in arr[] of size nint largest(int arr[], int n){ int i; ...
[ { "code": null, "e": 24955, "s": 24927, "text": "\n18 Jul, 2021" }, { "code": null, "e": 25003, "s": 24955, "text": "Given an array, find the largest element in it." }, { "code": null, "e": 25095, "s": 25003, "text": "Input : arr[] = {10, 20, 4}\nOutput : 20\n...
Fortran - Characters
The Fortran language can treat characters as single character or contiguous strings. Characters could be any symbol taken from the basic character set, i.e., from the letters, the decimal digits, the underscore, and 21 special characters. A character constant is a fixed valued character string. The intrinsic data type ...
[ { "code": null, "e": 2231, "s": 2146, "text": "The Fortran language can treat characters as single character or contiguous strings." }, { "code": null, "e": 2385, "s": 2231, "text": "Characters could be any symbol taken from the basic character set, i.e., from the letters, the de...
Tryit Editor v3.7
Table Colspan & Rowspan Tryit: HTML table - colspan
[ { "code": null, "e": 46, "s": 22, "text": "Table Colspan & Rowspan" } ]
Speed of boat in still water from speed of stream and times taken - GeeksforGeeks
15 Apr, 2021 Write a program to determine speed of the boat in still water(B) given the speed of the stream(S in km/hr), the time taken (for same point) by the boat upstream(T1 in hr) and downstream(T2 in hr). Examples: Input : T1 = 4, T2 = 2, S = 5 Output : B = 15 Input : T1 = 6, T2 = 1, S = 7 Output : B = 9.8 Pre...
[ { "code": null, "e": 24142, "s": 24114, "text": "\n15 Apr, 2021" }, { "code": null, "e": 24339, "s": 24142, "text": "Write a program to determine speed of the boat in still water(B) given the speed of the stream(S in km/hr), the time taken (for same point) by the boat upstream(T1...
Stock Market Analysis in Python. PART 1: Getting Data by Web Scraping | by Faizan Ahemad | Towards Data Science
The Stock Markets are having a spectacular bull run globally since 2013. In India many companies have grown over 10 times. Even the industry leaders, nifty 50 or India’s top 50 companies have grown over twice. Annual growth (or returns) of Nifty 50 was over 20% for 2017, and the trend seems to be same in 2018 already. ...
[ { "code": null, "e": 561, "s": 172, "text": "The Stock Markets are having a spectacular bull run globally since 2013. In India many companies have grown over 10 times. Even the industry leaders, nifty 50 or India’s top 50 companies have grown over twice. Annual growth (or returns) of Nifty 50 was ov...
Sass - Passing Content Blocks to a Mixin
Block of styles is passed to the mixin for the placement inside the styles. In @content directive location, styles gets included into the mixin. The block of content is evaluated in the scope, which is passed to a mixin where block is defined. The following example demonstrates the use of passing content blocks to mixi...
[ { "code": null, "e": 1997, "s": 1852, "text": "Block of styles is passed to the mixin for the placement inside the styles. In @content directive location, styles gets included into the mixin." }, { "code": null, "e": 2096, "s": 1997, "text": "The block of content is evaluated in ...
How to return a json object from a Python function?
We return a json object from a python function as follows using given python dictionary. import json a = {'name':'Sarah', 'age': 24, 'isEmployed': True } # a python dictionary def retjson(): python2json = json.dumps(a) print python2json retjson() {"age": 24, "isEmployed": true, "name": "Sarah"}
[ { "code": null, "e": 1151, "s": 1062, "text": "We return a json object from a python function as follows using given python dictionary." }, { "code": null, "e": 1309, "s": 1151, "text": "import json\na = {'name':'Sarah', 'age': 24, 'isEmployed': True }\n# a python dictionary\ndef...
Crystal Reports - If Then Else
The if-then-Else statement is the most basic of all the control flow statements. It tells your program to execute a certain section of code only if a particular condition meets true. If you see the following If-Then-Else statement with Boolean operators, it has allowed you to pass multiple conditions in the formula and...
[ { "code": null, "e": 3153, "s": 2970, "text": "The if-then-Else statement is the most basic of all the control flow statements. It tells your program to execute a certain section of code only if a particular condition meets true." }, { "code": null, "e": 3338, "s": 3153, "text": ...
Build Hand Gesture Recognition from Scratch using Neural Network — Machine Learning Easy and Fun | by Gavril Ognjanovski | Towards Data Science
This algorithm should be working with all the different kinds of skin color, just make sure to position your hand in the middle. For this solution I used the GNU Octave and Visual Studio Code. The data and the code are available on my Github repository. github.com All the work that we need to do can be split in 5 steps...
[ { "code": null, "e": 301, "s": 172, "text": "This algorithm should be working with all the different kinds of skin color, just make sure to position your hand in the middle." }, { "code": null, "e": 365, "s": 301, "text": "For this solution I used the GNU Octave and Visual Studio...
How to check a valid regex string using Python? - GeeksforGeeks
24 Jan, 2021 A Regex (Regular Expression) is a sequence of characters used for defining a pattern. This pattern could be used for searching, replacing and other operations. Regex is extensively utilized in applications that require input validation, Password validation, Pattern Recognition, search and replace utilities...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n24 Jan, 2021" }, { "code": null, "e": 24526, "s": 23901, "text": "A Regex (Regular Expression) is a sequence of characters used for defining a pattern. This pattern could be used for searching, replacing and other operations. Reg...
Functional Programming - Default Methods
Java 8 introduces a new concept of default method implementation in interfaces. This capability is added for backward compatibility so that old interfaces can be used to leverage the lambda expression capability of Java 8. For example, 'List' or 'Collection' interfaces do not have 'forEach' method declaration. Thus, ad...
[ { "code": null, "e": 2312, "s": 2089, "text": "Java 8 introduces a new concept of default method implementation in interfaces. This capability is added for backward compatibility so that old interfaces can be used to leverage the lambda expression capability of Java 8." }, { "code": null, ...
IntSummaryStatistics getSum() method in Java with Examples - GeeksforGeeks
28 Jun, 2019 The getSum() method of IntSummaryStatistics class in Java is used to get the sum of records in this IntSummaryStatistics. Syntax: public long getSum() Parameter: This method do not accept any value as parameter. Return Value: This method returns the sum of the records in this IntSummaryStatistics. Program...
[ { "code": null, "e": 24045, "s": 24017, "text": "\n28 Jun, 2019" }, { "code": null, "e": 24167, "s": 24045, "text": "The getSum() method of IntSummaryStatistics class in Java is used to get the sum of records in this IntSummaryStatistics." }, { "code": null, "e": 2417...
Gii - Generating Controller
Let us see how to generate a Controller. Step 1 − To generate a controller with several actions, open the controller generator interface fill in the form. Step 2 − Then, click the “Preview” button and “Generate”. The CustomController.php file with index, hello, and world actions will be generated in the controllers fol...
[ { "code": null, "e": 2874, "s": 2833, "text": "Let us see how to generate a Controller." }, { "code": null, "e": 2988, "s": 2874, "text": "Step 1 − To generate a controller with several actions, open the controller generator interface fill in the form." }, { "code": null,...
Node.js - Callbacks Concept
Callback is an asynchronous equivalent for a function. A callback function is called at the completion of a given task. Node makes heavy use of callbacks. All the APIs of Node are written in such a way that they support callbacks. For example, a function to read a file may start reading file and return the control to t...
[ { "code": null, "e": 2249, "s": 2018, "text": "Callback is an asynchronous equivalent for a function. A callback function is called at the completion of a given task. Node makes heavy use of callbacks. All the APIs of Node are written in such a way that they support callbacks." }, { "code": ...
Forecasting Food Demand. Applying Neural Networks to the Meal... | by Neel Iyer | Towards Data Science
So this is going to overfit. Time series problems usually struggle with overfitting. This entire exercise became more of a challenge to see how I could prevent overfitting in time series forecasting. I added weight decay and dropout. This should work to prevent overfitting. The network has embedding layers for categori...
[ { "code": null, "e": 201, "s": 172, "text": "So this is going to overfit." }, { "code": null, "e": 372, "s": 201, "text": "Time series problems usually struggle with overfitting. This entire exercise became more of a challenge to see how I could prevent overfitting in time series...
How to copy or clone a Java ArrayList?
The clone() method of the java.util.ArrayList class returns a shallow copy of this ArrayList instance (i.e the elements themselves are not copied). Using this method, you can copy the contents of one array list to other. import java.util.ArrayList; public class ArrayListDemo { public static void main(String args[])...
[ { "code": null, "e": 1283, "s": 1062, "text": "The clone() method of the java.util.ArrayList class returns a shallow copy of this ArrayList instance (i.e the elements themselves are not copied). Using this method, you can copy the contents of one array list to other." }, { "code": null, ...
Cypress - Plugins
Cypress has multiple plugins to add to its features. There are multiple types of plugins like the authentication, component testing, custom commands, development tools and so on. Some of the prominent plugins include − To perform file upload task in Cypress, we have to first install a plugin with the command mentioned ...
[ { "code": null, "e": 2676, "s": 2497, "text": "Cypress has multiple plugins to add to its features. There are multiple types of plugins like the authentication, component testing, custom commands, development tools and so on." }, { "code": null, "e": 2716, "s": 2676, "text": "Som...
3 ways to generate distractors (wrong choices) for MCQs using Natural Language Processing | by Ramsri Goutham | Towards Data Science
Distractors are the wrong answers in a multiple-choice question. For example, if a given multiple choice question has the game Cricket as the correct answer then we need to generate wrong choices (distractors) like Football, Golf, Ultimate Frisbee, etc. Multiple-choice questions are the most popular assessment question...
[ { "code": null, "e": 237, "s": 172, "text": "Distractors are the wrong answers in a multiple-choice question." }, { "code": null, "e": 426, "s": 237, "text": "For example, if a given multiple choice question has the game Cricket as the correct answer then we need to generate wron...
How to remove the icon from the title bar in Tkinter?
To remove the default icon of the Tkinter window, we can use wm_attributes('type', 'value') method by specifying the type of property. In the following example, we will use '-toolwindow', a Boolean value that removes the icon associated with the title bar of the application. #Import the tkinter library from tkinter imp...
[ { "code": null, "e": 1338, "s": 1062, "text": "To remove the default icon of the Tkinter window, we can use wm_attributes('type', 'value') method by specifying the type of property. In the following example, we will use '-toolwindow', a Boolean value that removes the icon associated with the title b...
How can I render 3D histograms in Python using Matplotlib?
To render 3D histograms in Python, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Create a new figure or activate an existing figure using figure() method. Create a new figure or ac...
[ { "code": null, "e": 1131, "s": 1062, "text": "To render 3D histograms in Python, we can take the following steps −" }, { "code": null, "e": 1207, "s": 1131, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": null, "e": ...
7 Most Asked ReactJS Interview Questions & Answers - GeeksforGeeks
16 May, 2021 If you’re into programming then surely you can’t deny that you aren’t aware of the popularity of React. React which is a very popular JavaScript library is booming around the world and a lot of industries are working on it. It doesn’t matter whether you’re a professional programmer or a beginner, knowing R...
[ { "code": null, "e": 24632, "s": 24604, "text": "\n16 May, 2021" }, { "code": null, "e": 25022, "s": 24632, "text": "If you’re into programming then surely you can’t deny that you aren’t aware of the popularity of React. React which is a very popular JavaScript library is booming...
Explore your activity on Spotify with R and “spotifyr”: How to analyze and visualize your streaming history and music tastes | by Saúl Buentello | Towards Data Science
I can say with great pride that I was one of the people who still had the pleasure of going to the best music CD stores to buy the latest releases from their favorite artists. I remember that being only about 15 years old (age in which most of us adopt a musical genre, bands, and artists with whom we feel identified), ...
[ { "code": null, "e": 877, "s": 172, "text": "I can say with great pride that I was one of the people who still had the pleasure of going to the best music CD stores to buy the latest releases from their favorite artists. I remember that being only about 15 years old (age in which most of us adopt a ...
MoviePy – Concatenating multiple Video Files
31 Oct, 2021 In this article, we will see how we can concatenate multiple video file clips in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations on videos and GIF’s. In formal language theory and computer programming, string concatenation is the operation of joining character ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2021" }, { "code": null, "e": 716, "s": 28, "text": "In this article, we will see how we can concatenate multiple video file clips in MoviePy. MoviePy is a Python module for video editing, which can be used for basic operations ...
Refactoring – Introduction and Its Techniques
10 Aug, 2020 Refactoring or Code Refactoring is defined as systematic process of improving existing computer code, without adding new functionality or changing external behaviour of the code. It is intended to change the implementation, definition, structure of code without changing functionality of software. It improv...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Aug, 2020" }, { "code": null, "e": 464, "s": 54, "text": "Refactoring or Code Refactoring is defined as systematic process of improving existing computer code, without adding new functionality or changing external behaviour of the c...
Logger warning() method in Java with Examples
27 Mar, 2019 The warning() method of a Logger class used to Log a WARNING message.This method is used to pass WARNING types logs to all the registered output Handler objects. WARNING Message: Warning may occur whenever the user has given wrong input or credentials. There are two types of warning() method depending upon...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Mar, 2019" }, { "code": null, "e": 190, "s": 28, "text": "The warning() method of a Logger class used to Log a WARNING message.This method is used to pass WARNING types logs to all the registered output Handler objects." }, { ...
Restaurant Review Analysis Using NLP and SQLite
05 Oct, 2021 Normally, a lot of businesses are remained as failures due to lack of profit, lack of proper improvement measures. Mostly, restaurant owners face a lot of difficulties to improve their productivity. This project really helps those who want to increase their productivity, which in turn increases their busin...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Oct, 2021" }, { "code": null, "e": 392, "s": 28, "text": "Normally, a lot of businesses are remained as failures due to lack of profit, lack of proper improvement measures. Mostly, restaurant owners face a lot of difficulties to impr...
C++ | Operator Overloading | Question 5
16 Apr, 2021 How does C++ compiler differs between overloaded postfix and prefix operators?(A) C++ doesn’t allow both operators to be overloaded in a class(B) A postfix ++ has a dummy parameter(C) A prefix ++ has a dummy parameter(D) By making prefix ++ as a global function and postfix as a member function.Answer: (B)E...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Apr, 2021" }, { "code": null, "e": 398, "s": 52, "text": "How does C++ compiler differs between overloaded postfix and prefix operators?(A) C++ doesn’t allow both operators to be overloaded in a class(B) A postfix ++ has a dummy par...
C++ Remove Invalid Parentheses from an Expression
Given a parentheses sequence; now, you have to print all the possible parentheses that it can make by removing the invalid brackets, for example Input : str = “()())()” - Output : ()()() (())() There are two possible solutions "()()()" and "(())()" Input : str = (v)())() Output : (v)()() (v())() In this problem, we ar...
[ { "code": null, "e": 1207, "s": 1062, "text": "Given a parentheses sequence; now, you have to print all the possible parentheses that it can make by removing the invalid brackets, for example" }, { "code": null, "e": 1360, "s": 1207, "text": "Input : str = “()())()” -\nOutput : (...
get_class() function in PHP
The get_class() function gets the name of the class of an object. It returns FALSE if object is not an object. If object is excluded when inside a class, the name of that class is returned. get_class(object) object − The tested object. You can avoid this parameter inside the cass. object − The tested object. You can ...
[ { "code": null, "e": 1252, "s": 1062, "text": "The get_class() function gets the name of the class of an object. It returns FALSE if object is not an object. If object is excluded when inside a class, the name of that class is returned." }, { "code": null, "e": 1270, "s": 1252, "...
How To Implement Merge Sort Algorithm In Python | by Richmond Alake | Towards Data Science
Learning algorithms can be tedious at times. The algorithm topic domain is a branch of computer science that has a notorious perception of immense complexity. But algorithms come in different shapes, sizes, and levels of sophistication. Suppose you aspire to get to a level where you can tackle complex algorithms and so...
[ { "code": null, "e": 217, "s": 172, "text": "Learning algorithms can be tedious at times." }, { "code": null, "e": 409, "s": 217, "text": "The algorithm topic domain is a branch of computer science that has a notorious perception of immense complexity. But algorithms come in diff...
C++ Program to Implement Stack using linked list
A stack is an abstract data structure that contains a collection of elements. Stack implements the LIFO mechanism i.e. the element that is pushed at the end is popped out first. Some of the principle operations in the stack are − Push - This adds a data value to the top of the stack. Push - This adds a data value to th...
[ { "code": null, "e": 1292, "s": 1062, "text": "A stack is an abstract data structure that contains a collection of elements. Stack implements the LIFO mechanism i.e. the element that is pushed at the end is popped out first. Some of the principle operations in the stack are −" }, { "code": n...
How to append text to a text file in C++?
This is a C++ program to append text to a text file. Begin Open that file a1.txt as output file stream class object to perform output operation in append mode using fout file reference. If the file exists then Appending text to that file. Close fout. Open the file “a1.txt” for reading the content o...
[ { "code": null, "e": 1115, "s": 1062, "text": "This is a C++ program to append text to a text file." }, { "code": null, "e": 1455, "s": 1115, "text": "Begin\n Open that file a1.txt as output file stream class object to perform\n output operation in append mode using fout file...
How to create a WebView in iOS/iPhone?
To create a web view in iOS we'll use Webkit framework of iOS. Previously UIWebView was used to create web views but that has been deprecated now. We'll use WebKit View in this project. Create a new project and from object library drag and drop webKit View to the ViewController. Create a new project and from object lib...
[ { "code": null, "e": 1209, "s": 1062, "text": "To create a web view in iOS we'll use Webkit framework of iOS. Previously UIWebView was used to create web views but that has been deprecated now." }, { "code": null, "e": 1248, "s": 1209, "text": "We'll use WebKit View in this proje...
C# | Convert Queue To array - GeeksforGeeks
01 Feb, 2019 Queue represents a first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it is called enqueue, and when you remove an item, it is called deque. Queue.ToArray Method is used to copy the Queue elements to a new array. Prope...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24618, "s": 24316, "text": "Queue represents a first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it i...
JavaScript | Add new attribute to JSON object - GeeksforGeeks
25 Jun, 2021 The task is to add a JSON attribute to the JSON object. To do so, Here are a few of the most used techniques discussed.Example 1: This example adds a prop_11 attribute to the myObj object via var key. html <!DOCTYPE HTML><html> <head> <title> JavaScript | Add new attribute to JSON object. ...
[ { "code": null, "e": 26671, "s": 26643, "text": "\n25 Jun, 2021" }, { "code": null, "e": 26874, "s": 26671, "text": "The task is to add a JSON attribute to the JSON object. To do so, Here are a few of the most used techniques discussed.Example 1: This example adds a prop_11 attri...
Pandas – Strip whitespace from Entire DataFrame
04 Dec, 2021 “We can have data without information, but we cannot have information without data.” How beautiful this quote is. Data is backbone of Data Scientist and according to a survey data scientist spends approx 60% of time in Cleaning and Organizing Data, so it’s our responsibility to make us familiar with diffe...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Dec, 2021" }, { "code": null, "e": 542, "s": 28, "text": "“We can have data without information, but we cannot have information without data.” How beautiful this quote is. Data is backbone of Data Scientist and according to a survey...
JavaScript | Promise.all() Method
31 May, 2022 The Promise.all() method is actually a method of Promise object (which is also an object under JavaScript used to handle all the asynchronous operations), that takes an array of promises(an iterable) as an input. It returns a single Promise that resolves when all of the promises passed as an iterable, whic...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2022" }, { "code": null, "e": 605, "s": 28, "text": "The Promise.all() method is actually a method of Promise object (which is also an object under JavaScript used to handle all the asynchronous operations), that takes an array ...
What is Temporary Table in SQL?
03 Sep, 2019 Temporary Tables are most likely as Permanent Tables. Temporary Tables are Created in TempDB and are automatically deleted as soon as the last connection is terminated. Temporary Tables helps us to store and process intermediate results. Temporary tables are very useful when we need to store temporary data...
[ { "code": null, "e": 53, "s": 25, "text": "\n03 Sep, 2019" }, { "code": null, "e": 417, "s": 53, "text": "Temporary Tables are most likely as Permanent Tables. Temporary Tables are Created in TempDB and are automatically deleted as soon as the last connection is terminated. Tempo...
Node.js hash.digest() Method
25 May, 2021 The hash.digest( ) method is an inbuilt function of the crypto module’s Hash class. This is used to create the digest of the data which is passed when creating the hash. For example, when we create a hash we first create an instance of Hash using crypto.createHash() and then we update the hash content usin...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 May, 2021" }, { "code": null, "e": 502, "s": 28, "text": "The hash.digest( ) method is an inbuilt function of the crypto module’s Hash class. This is used to create the digest of the data which is passed when creating the hash. For e...
Difference between Hashtable and Dictionary in C#
26 Feb, 2019 In C#, Dictionary is a generic collection which is generally used to store key/value pairs. Dictionary is defined under System.Collection.Generics namespace. It is dynamic in nature means the size of the dictionary is growing according to the need. Example: // C# program to illustrate Dictionaryusing Syste...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Feb, 2019" }, { "code": null, "e": 302, "s": 53, "text": "In C#, Dictionary is a generic collection which is generally used to store key/value pairs. Dictionary is defined under System.Collection.Generics namespace. It is dynamic in...
What is CSS ruleset ?
20 Aug, 2021 A CSS ruleset is various affirmations to various pieces or elements of the document. The objective is to apply a bunch of properties for certain distinct qualities to a solitary, or a particular arrangement of components in the connected HTML page. Visualization of CSS Ruleset : CSS ruleset The “.” in the...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Aug, 2021" }, { "code": null, "e": 278, "s": 28, "text": "A CSS ruleset is various affirmations to various pieces or elements of the document. The objective is to apply a bunch of properties for certain distinct qualities to a solita...
SQL | NULL functions
21 Mar, 2018 Following are the NULL functions defined in SQL: ISNULL(): The ISNULL function have different uses in SQL Server and MySQL. In SQL Server, ISNULL() function is used to replace NULL values.Syntax:SELECT column(s), ISNULL(column_name, value_to_replace) FROM table_name;Example:Consider the following Employee ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Mar, 2018" }, { "code": null, "e": 101, "s": 52, "text": "Following are the NULL functions defined in SQL:" }, { "code": null, "e": 2327, "s": 101, "text": "ISNULL(): The ISNULL function have different uses in SQ...
Python VLC MediaPlayer – Getting position
11 Apr, 2022 In this article we will see how we can get position of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediaPlayer object is the basic object in vlc module...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Apr, 2022" }, { "code": null, "e": 663, "s": 28, "text": "In this article we will see how we can get position of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform medi...
map lower_bound() function in C++ STL
29 Oct, 2020 The map::lower_bound(k) is a built-in function in C++ STL which returns an iterator pointing to the key in the container which is equivalent to k passed in the parameter.Syntax: map_name.lower_bound(key) Parameters: This function accepts a single mandatory parameter key which specifies the element whose ...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Oct, 2020" }, { "code": null, "e": 231, "s": 52, "text": "The map::lower_bound(k) is a built-in function in C++ STL which returns an iterator pointing to the key in the container which is equivalent to k passed in the parameter.Synt...
Print this pattern! | Practice | GeeksforGeeks
Given an integer N, you need to print the following pattern. Example 1: Input: N = 3 Output: 33333 32223 32123 32223 33333 Explanation: When N = 3 then there will be three boundaries. Outer boundary contains only 3. Middle boundary contains only 2. And the inner boundary contains only 1. Example 2: Input: N = 4 Output...
[ { "code": null, "e": 287, "s": 226, "text": "Given an integer N, you need to print the following pattern." }, { "code": null, "e": 298, "s": 287, "text": "Example 1:" }, { "code": null, "e": 516, "s": 298, "text": "Input:\nN = 3\nOutput:\n33333\n32223\n32123\n...
How to create user from Django shell
14 Sep, 2021 Let’s look at how to create a user for Django using Django’s interactive shell? Make sure you have the virtual environment activated, and you are within the folder that has the manage.py file. Note: Refer to the article How to Create a Basic Project using MVT in Django? to understand how to create a proje...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 222, "s": 28, "text": "Let’s look at how to create a user for Django using Django’s interactive shell? Make sure you have the virtual environment activated, and you are within the folder that has th...
JqueryUI - Progressbar
Progress bars indicate the completion percentage of an operation or process. We can categorize progress bar as determinate progress bar and indeterminate progress bar. Determinate progress bar should only be used in situations where the system can accurately update the current status. A determinate progress bar should ...
[ { "code": null, "e": 2566, "s": 2398, "text": "Progress bars indicate the completion percentage of an operation or process. We can categorize progress bar as determinate progress bar and indeterminate progress bar." }, { "code": null, "e": 2795, "s": 2566, "text": "Determinate pr...
How to drop variables from a dataset in SAS Programming?
23 Jul, 2019 This topic is regarding how to drop variables from a dataset in SAS. It includes various methods to delete variables from data. In SAS, there are two ways to drop variables: DROP = data set option DROP statement Let’s start with creating a data set: DATA outdata; INPUT roll_num gender $ class subj1 subj...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jul, 2019" }, { "code": null, "e": 202, "s": 28, "text": "This topic is regarding how to drop variables from a dataset in SAS. It includes various methods to delete variables from data. In SAS, there are two ways to drop variables:" ...
C++ Sets | Practice | GeeksforGeeks
Given two sets A and B of size N and M . Perform set operation i.e union, intersection and difference on sets using set_union, set_difference and set_intersection functions of STL. Example 1: Input: N = 4, M = 5 A = {1, 2, 3, 4} B = {3, 4, 5, 6, 7} Output: 1 2 3 4 5 6 7 1 2 3 4 Explaination: Union of two sets A (1 2 ...
[ { "code": null, "e": 407, "s": 226, "text": "Given two sets A and B of size N and M . Perform set operation i.e union, intersection and difference on sets using set_union, set_difference and set_intersection functions of STL." }, { "code": null, "e": 419, "s": 407, "text": "\nExa...
How to Change the Time Interval of setinterval() Method at RunTime using JavaScript ?
21 Jun, 2021 In this article, we are going to learn how to change the setInterval() time after running one element. The setInterval() method reads the timing once and invokes the function at regular intervals. There are two methods to solve this problem which are discussed below:Method 1: Using clearInterval() method: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2021" }, { "code": null, "e": 636, "s": 28, "text": "In this article, we are going to learn how to change the setInterval() time after running one element. The setInterval() method reads the timing once and invokes the function ...
Multiplots in Python using Matplotlib
12 May, 2022 Matplotlib is a Python library that can be used for plotting graphs and figures. Plotting multiplots or multiple plots are often required either for comparing the two curves or show some gradual changes in the multiple plots, and this can be done using Subplots. Subplots are one of the most important and f...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2022" }, { "code": null, "e": 659, "s": 28, "text": "Matplotlib is a Python library that can be used for plotting graphs and figures. Plotting multiplots or multiple plots are often required either for comparing the two curves o...
PostgreSQL – LIMIT with OFFSET clause
28 Aug, 2020 The PostgreSQL LIMIT clause is used to get a subset of rows generated by a query. It is an optional clause of the SELECT statement. The LIMIT clause can be used with the OFFSET clause to skip a specific number of rows before returning the query for the LIMIT clause. Syntax:SELECT * FROM table LIMIT n OFFSE...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 295, "s": 28, "text": "The PostgreSQL LIMIT clause is used to get a subset of rows generated by a query. It is an optional clause of the SELECT statement. The LIMIT clause can be used with the OFFSE...
Largest Element in Array | Practice | GeeksforGeeks
Given an array A[] of size n. The task is to find the largest element in it. Example 1: Input: n = 5 A[] = {1, 8, 7, 56, 90} Output: 90 Explanation: The largest element of given array is 90. Example 2: Input: n = 7 A[] = {1, 2, 0, 3, 2, 4, 5} Output: 5 Explanation: The largest element of given array is 5. Your Ta...
[ { "code": null, "e": 317, "s": 238, "text": "Given an array A[] of size n. The task is to find the largest element in it.\n " }, { "code": null, "e": 328, "s": 317, "text": "Example 1:" }, { "code": null, "e": 431, "s": 328, "text": "Input:\nn = 5\nA[] = {1, 8...
Transpose a vector into single column in R
05 Apr, 2021 In this article, we will discuss how to convert a vector from single row to a column in R Programming Language. Steps – Create a vector c(value1,value2,.....,valuen) Convert the vector into the matrix. In R, Matrix is a two-dimensional data structure that comprises rows and columns. We can create a matrix ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Apr, 2021" }, { "code": null, "e": 140, "s": 28, "text": "In this article, we will discuss how to convert a vector from single row to a column in R Programming Language." }, { "code": null, "e": 148, "s": 140, "te...
Trackip – Advance IP tracker tool in Kali Linux
17 Jun, 2021 Trackip is a free and open source available on GitHub. This tool can retrieve IP or Domain Geolocation, This tool can retrieve your own Geolocation, this tool selects random proxy in a new line and the IP geolocation maps that IP using Google Map. Track IP tool is used to find information about IP address ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2021" }, { "code": null, "e": 714, "s": 28, "text": "Trackip is a free and open source available on GitHub. This tool can retrieve IP or Domain Geolocation, This tool can retrieve your own Geolocation, this tool selects random p...
MariaDB - Create Tables
In this chapter, we will learn how to create tables. Before creating a table, first determine its name, field names, and field definitions. Following is the general syntax for table creation − CREATE TABLE table_name (column_name column_type); Review the command applied to creating a table in the PRODUCTS database − d...
[ { "code": null, "e": 2636, "s": 2496, "text": "In this chapter, we will learn how to create tables. Before creating a table, first determine its name, field names, and field definitions." }, { "code": null, "e": 2689, "s": 2636, "text": "Following is the general syntax for table ...
Query for ancestor-descendant relationship in a tree
01 Jul, 2021 Given a rooted tree with N vertices and N-1 edges. We will be given many pairs of vertices u and v, we need to tell whether u is an ancestor of v or not. Given tree will be rooted at the vertex with index 0. Examples: u = 1 v = 6 we can see from above tree that node 1 is ancestor of node 6 so the answ...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Jul, 2021" }, { "code": null, "e": 263, "s": 54, "text": "Given a rooted tree with N vertices and N-1 edges. We will be given many pairs of vertices u and v, we need to tell whether u is an ancestor of v or not. Given tree will be r...
Maximum sum of elements divisible by K from the given array
10 May, 2022 Given an array of integers and a number K. The task is to find the maximum sum which is divisible by K from the given array.Examples: Input: arr[] = {3, 6, 5, 1, 8}, k = 3 Output: 18 Explanation: 18 is formed by the elements 3, 6, 1, 8.Input: arr = { 43, 1, 17, 26, 15 } , k = 16 Output: 32 Explanation: 3...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 May, 2022" }, { "code": null, "e": 188, "s": 52, "text": "Given an array of integers and a number K. The task is to find the maximum sum which is divisible by K from the given array.Examples: " }, { "code": null, "e": 3...
Python – turtle.bye()
17 Aug, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to shut the turtle graphics window. It doesn’t require any argument....
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Aug, 2020" }, { "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...
Different Ways to Find the Type of Variable in Golang
17 May, 2020 Variable is a placeholder of the information which can be changed at runtime. And variables allow to Retrieve and Manipulate the stored information.There are 3 ways to find the type of variables in Golang as follows: Using reflect.TypeOf Function Using reflect.ValueOf.Kind() Function Using %T with Printf E...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 May, 2020" }, { "code": null, "e": 270, "s": 53, "text": "Variable is a placeholder of the information which can be changed at runtime. And variables allow to Retrieve and Manipulate the stored information.There are 3 ways to find t...
rm command in Linux with examples
19 Feb, 2021 rm stands for remove here. rm command is used to remove objects such as files, directories, symbolic links and so on from the file system like UNIX. To be more precise, rm removes references to objects from the filesystem, where those objects might have had multiple references (for example, a file with two...
[ { "code": null, "e": 53, "s": 25, "text": "\n19 Feb, 2021" }, { "code": null, "e": 423, "s": 53, "text": "rm stands for remove here. rm command is used to remove objects such as files, directories, symbolic links and so on from the file system like UNIX. To be more precise, rm re...
Python | Pandas Series.pow()
30 Sep, 2019 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Series.pow() is a series mathematical operation method. This is used to put each eleme...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2019" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp...
GATE | GATE-IT-2004 | Question 37
10 Sep, 2018 What is the number of vertices in an undirected connected graph with 27 edges, 6 vertices of degree 2, 3 vertices of degree 4 and remaining of degree 3?(A) 10(B) 11(C) 18(D) 19Answer: (D)Explanation: The idea is to use Handshaking Lemma :- In any graph, the sum of all the vertex-degree is equal to twice th...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Sep, 2018" }, { "code": null, "e": 380, "s": 54, "text": "What is the number of vertices in an undirected connected graph with 27 edges, 6 vertices of degree 2, 3 vertices of degree 4 and remaining of degree 3?(A) 10(B) 11(C) 18(D) ...
Minimum cost to convert 3 X 3 matrix into magic square
03 May, 2022 A Magic Square is a n x n matrix of distinct element from 1 to n2 where the sum of any row, column or diagonal is always equal to same number. Consider a 3 X 3 matrix, s, of integers in the inclusive range [1, 9] . We can convert any digit, a, to any other digit, b, in the range [1, 9] at cost |a – b|. Giv...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 May, 2022" }, { "code": null, "e": 487, "s": 52, "text": "A Magic Square is a n x n matrix of distinct element from 1 to n2 where the sum of any row, column or diagonal is always equal to same number. Consider a 3 X 3 matrix, s, of ...
JavaScript | String Methods
19 Sep, 2021 Initially, JavaScript language was created for the browser only. But now, the language is used in many other environments also. It is a scripting language used to create and control dynamic website content. It means the webpage can move, refresh, or change on the user’s screen without manually reloading a ...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Sep, 2021" }, { "code": null, "e": 369, "s": 52, "text": "Initially, JavaScript language was created for the browser only. But now, the language is used in many other environments also. It is a scripting language used to create and ...
ios manipulators showpos() function in C++
28 Aug, 2019 The showpos() method of stream manipulators in C++ is used to set the showpos format flag for the specified str stream. This flag always displays the non negative values along with their + sign. Syntax: ios_base& showpos (ios_base& str) Parameters: This method accepts str as a parameter which is the strea...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2019" }, { "code": null, "e": 223, "s": 28, "text": "The showpos() method of stream manipulators in C++ is used to set the showpos format flag for the specified str stream. This flag always displays the non negative values along...
Explain higher order functions in JavaScript.
JavaScript treats functions as objects and allow us to pass functions as parameter to another function and even return functions from other functions. In JavaScript the functions are first class functions meaning we can store them in variable, objects and array. The higher order functions can take function, return them...
[ { "code": null, "e": 1520, "s": 1187, "text": "JavaScript treats functions as objects and allow us to pass functions as parameter to another function and even return functions from other functions. In JavaScript the functions are first class functions meaning we can store them in variable, objects a...
CSS | flex-flow Property
05 Jul, 2019 The flex-flow property is sub-property of flexible box layout module and also shorthand property for flex-wrap and flex-direction.Note:The flex property is useless when the element is not flexible item. flex-flow: flex-direction flex-wrap; row nowrap: It arrange the row same as text direction and the defa...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jul, 2019" }, { "code": null, "e": 231, "s": 28, "text": "The flex-flow property is sub-property of flexible box layout module and also shorthand property for flex-wrap and flex-direction.Note:The flex property is useless when the el...
Flood fill Algorithm – how to implement fill() in paint?
24 Jun, 2022 In MS-Paint, when we take the brush to a pixel and click, the color of the region of that pixel is replaced with a new selected color. Following is the problem statement to do this task. Given a 2D screen, location of a pixel in the screen and a color, replace color of the given pixel and all adjacent sam...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Jun, 2022" }, { "code": null, "e": 242, "s": 54, "text": "In MS-Paint, when we take the brush to a pixel and click, the color of the region of that pixel is replaced with a new selected color. Following is the problem statement to d...
Program to generate all possible valid IP addresses from given string | Set 2
20 May, 2022 Given a string containing only digits, restore it by returning all possible valid IP address combinations. A valid IP address must be in the form of A.B.C.D, where A, B, C and D are numbers from 0 – 255. The numbers cannot be 0 prefixed unless they are 0.Examples: Input: str = “25525511135” Output: 255.2...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 May, 2022" }, { "code": null, "e": 319, "s": 52, "text": "Given a string containing only digits, restore it by returning all possible valid IP address combinations. A valid IP address must be in the form of A.B.C.D, where A, B, C an...
WPF - Data Binding
Data binding is a mechanism in WPF applications that provides a simple and easy way for Windows Runtime apps to display and interact with data. In this mechanism, the management of data is entirely separated from the way data. Data binding allows the flow of data between UI elements and data object on user interface. W...
[ { "code": null, "e": 2381, "s": 2154, "text": "Data binding is a mechanism in WPF applications that provides a simple and easy way for Windows Runtime apps to display and interact with data. In this mechanism, the management of data is entirely separated from the way data." }, { "code": null...
Python | Convert list to Python array
27 Sep, 2019 Sometimes while working in Python we can have a problem in which we need to restrict the data elements to be just of one type. List, can be heterogeneous, can have data of multiple data types and it is sometimes undesirable. There a need to convert this to data structure which restricts the type of data. T...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2019" }, { "code": null, "e": 468, "s": 28, "text": "Sometimes while working in Python we can have a problem in which we need to restrict the data elements to be just of one type. List, can be heterogeneous, can have data of mul...
Run shell command from GUI using Python
20 Oct, 2021 In this article, we are going to discuss how we can create a GUI window that will take Operating System commands as input and after executing them, displays the output in a pop-up window. PyAutoGui: It is a module in python which is used to automate the GUI and controls the mouse and keyboard. It is an ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Oct, 2021" }, { "code": null, "e": 216, "s": 28, "text": "In this article, we are going to discuss how we can create a GUI window that will take Operating System commands as input and after executing them, displays the output in a po...