title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Tryit Editor v3.7
Tryit: HTML bold text
[]
Swift - Basic Syntax
We have already seen a piece of Swift 4 program while setting up the environment. Let's start once again with the following Hello, World! program created for OS X playground, which includes import Cocoa as shown below − /* My first program in Swift 4 */ var myString = "Hello, World!" print(myString) If you create the ...
[ { "code": null, "e": 2473, "s": 2253, "text": "We have already seen a piece of Swift 4 program while setting up the environment. Let's start once again with the following Hello, World! program created for OS X playground, which includes import Cocoa as shown below −" }, { "code": null, "...
Underscore.js | _.isString() Function - GeeksforGeeks
27 Apr, 2020 The _.isString() function is used to check whether the given object element is string or not. Syntax: _.isString( object ) Parameters: This function accepts single parameter as mentioned above and described below: object: It contains the value of object that need to be check whether it is an string or not....
[ { "code": null, "e": 25300, "s": 25272, "text": "\n27 Apr, 2020" }, { "code": null, "e": 25394, "s": 25300, "text": "The _.isString() function is used to check whether the given object element is string or not." }, { "code": null, "e": 25402, "s": 25394, "text...
How to edit a comboBox in JavaFX?
A combo box is similar to a choice box it holds multiple items and, allows you to select one of them. It can be formed by adding scrolling to a drop-down list. You can create a combo box by instantiating the javafx.scene.control.ComboBox class. The ComboBox class has a method known as editable (boolean), which specifie...
[ { "code": null, "e": 1307, "s": 1062, "text": "A combo box is similar to a choice box it holds multiple items and, allows you to select one of them. It can be formed by adding scrolling to a drop-down list. You can create a combo box by instantiating the javafx.scene.control.ComboBox class." }, ...
Introduction to Plotnine as the Alternative of Data Visualization Package in Python | by Audhi Aprilliant | Towards Data Science
Plotnine is the implementation of the R package ggplot2 in Python. It replicates the syntax of the R package ggplot2 and visualizes the data with the concept of the grammar of graphics. When we are making a bar plot, we will build the background layer, then the main layer of the bar plot, the layer that contains title ...
[ { "code": null, "e": 693, "s": 172, "text": "Plotnine is the implementation of the R package ggplot2 in Python. It replicates the syntax of the R package ggplot2 and visualizes the data with the concept of the grammar of graphics. When we are making a bar plot, we will build the background layer, th...
Decision Trees: Parametric Optimization | by Baban Deep Singh | Towards Data Science
As we begin working with data, we (generally always) observe that there are few errors in the data, like missing values, outliers, no proper formatting, etc. In nutshell, we call them inconsistency. This consistency, more or less, skews the data and hamper the Machine learning algorithms to predict correctly. Previousl...
[ { "code": null, "e": 483, "s": 172, "text": "As we begin working with data, we (generally always) observe that there are few errors in the data, like missing values, outliers, no proper formatting, etc. In nutshell, we call them inconsistency. This consistency, more or less, skews the data and hampe...
File.SetCreationTime() Method in C# with Examples - GeeksforGeeks
05 Mar, 2021 File.SetCreationTime(String, DateTime) is an inbuilt File class method that is used to set the local date and time the file was created.Syntax: public static void SetCreationTime (string path, DateTime creationTime); Parameter: This function accepts two parameters which are illustrated below: path: The...
[ { "code": null, "e": 24222, "s": 24194, "text": "\n05 Mar, 2021" }, { "code": null, "e": 24368, "s": 24222, "text": "File.SetCreationTime(String, DateTime) is an inbuilt File class method that is used to set the local date and time the file was created.Syntax: " }, { "co...
Find size of the largest '+' formed by all ones in a binary matrix - GeeksforGeeks
08 Apr, 2021 Given a N X N binary matrix, find the size of the largest ‘+’ formed by all 1s.Example: For above matrix, largest ‘+’ would be formed by highlighted part of size 17. The idea is to maintain four auxiliary matrices left[][], right[][], top[][], bottom[][] to store consecutive 1’s in every direction. For ...
[ { "code": null, "e": 25084, "s": 25056, "text": "\n08 Apr, 2021" }, { "code": null, "e": 25174, "s": 25084, "text": "Given a N X N binary matrix, find the size of the largest ‘+’ formed by all 1s.Example: " }, { "code": null, "e": 25253, "s": 25174, "text": "...
WCF - Security
A WCF service boasts of a robust security system with two security modes or levels so that only an intended client can access the services. The security threats that are common in a distributed transaction are moderated to a large extent by WCF. WCF service has four key security features as depicted in the figure below...
[ { "code": null, "e": 2170, "s": 1924, "text": "A WCF service boasts of a robust security system with two security modes or levels so that only an intended client can access the services. The security threats that are common in a distributed transaction are moderated to a large extent by WCF." }, ...
SQL - Having Clause
The HAVING Clause enables you to specify conditions that filter which group results appear in the results. The WHERE clause places conditions on the selected columns, whereas the HAVING clause places conditions on groups created by the GROUP BY clause. The following code block shows the position of the HAVING Clause in...
[ { "code": null, "e": 2560, "s": 2453, "text": "The HAVING Clause enables you to specify conditions that filter which group results appear in the results." }, { "code": null, "e": 2706, "s": 2560, "text": "The WHERE clause places conditions on the selected columns, whereas the HAV...
Bootstrap Pagination
If you have a web site with lots of pages, you may wish to add some sort of pagination to each page. A basic pagination in Bootstrap looks like this: 1 2 3 4 5 To create a basic pagination, add the .pagination class to an <ul> element: The active state shows what is the current page: 1 2 3 4 5 Add class .active to let ...
[ { "code": null, "e": 101, "s": 0, "text": "If you have a web site with lots of pages, you may wish to add some sort of pagination to each page." }, { "code": null, "e": 150, "s": 101, "text": "A basic pagination in Bootstrap looks like this:" }, { "code": null, "e": 1...
SQL Mock Test
This section presents you various set of Mock Tests related to SQL Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. Q 1 - Which of the following is not ...
[ { "code": null, "e": 2737, "s": 2453, "text": "This section presents you various set of Mock Tests related to SQL Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the f...
Create lollipop charts with Pandas and Matplotlib - GeeksforGeeks
24 Jan, 2021 In this article, we will create Lollipop Charts. They are nothing but a variation of the bar chart in which the thick bar is replaced with just a line and a dot-like “o” (o-shaped) at the end. Lollipop Charts are preferred when there are lots of data to be represented that can form a cluster when represent...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n24 Jan, 2021" }, { "code": null, "e": 24649, "s": 24318, "text": "In this article, we will create Lollipop Charts. They are nothing but a variation of the bar chart in which the thick bar is replaced with just a line and a dot-li...
How to preview an image before and after upload in HTML and JavaScript?
To preview an image before and after upload, you need to try the following code − HTML <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <form id = "form1" runat = "server"> <input type ='file' id = "demo" /> <img id = "myid" src = "#" alt = "new image" /> </form> The foll...
[ { "code": null, "e": 1149, "s": 1062, "text": "To preview an image before and after upload, you need to try the following code − HTML" }, { "code": null, "e": 1374, "s": 1149, "text": "<script src = \"https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js\"></script>\n<...
All About Heatmaps. The Comprehensive Guide | by Shrashti Singhal | Towards Data Science
1. What is a Heatmap 2. Uses 3. Types 4. Who uses HeatMaps 5. Choropleth VS HeatMap 6. Software Implementation 7. Color Schemes 8. Best Practices of using HeatMaps 9. Purpose of Seaborn HeatMap 10. Correlation Matrix 11. How to Read a Seaborn Heat map 12. Inputs for Heatmap 13. Heatmap Function 14. Create a default Hea...
[ { "code": null, "e": 193, "s": 172, "text": "1. What is a Heatmap" }, { "code": null, "e": 201, "s": 193, "text": "2. Uses" }, { "code": null, "e": 210, "s": 201, "text": "3. Types" }, { "code": null, "e": 231, "s": 210, "text": "4. Who use...
Scala - Classes & Objects
This chapter takes you through how to use classes and objects in Scala programming. A class is a blueprint for objects. Once you define a class, you can create objects from the class blueprint with the keyword new. Through the object you can use all functionalities of the defined class. The following diagram demonstrat...
[ { "code": null, "e": 2286, "s": 1998, "text": "This chapter takes you through how to use classes and objects in Scala programming. A class is a blueprint for objects. Once you define a class, you can create objects from the class blueprint with the keyword new. Through the object you can use all fun...
Template matching using OpenCV in Python
The Template matching is a technique, by which a patch or template can be matched from an actual image. This is basically a pattern matching mechanism. In Python there is OpenCV module. Using openCV, we can easily find the match. So in this problem, the OpenVC template matching techniques are used. To use the OpenCV fu...
[ { "code": null, "e": 1214, "s": 1062, "text": "The Template matching is a technique, by which a patch or template can be matched from an actual image. This is basically a pattern matching mechanism." }, { "code": null, "e": 1362, "s": 1214, "text": "In Python there is OpenCV modu...
Base conversion in Java - GeeksforGeeks
05 Jun, 2021 Given a number in a given base, convert it into another target base.Examples Input : Number = "123" Source Base = 8 Target Base = 10 Output : 83 3 * 1 + 2 * 8 + 1 * 64 = 83 Input : Number = "110" Source Base = 2 Target Base = 10 Output : 6 The idea is to use toString()...
[ { "code": null, "e": 24366, "s": 24338, "text": "\n05 Jun, 2021" }, { "code": null, "e": 24445, "s": 24366, "text": "Given a number in a given base, convert it into another target base.Examples " }, { "code": null, "e": 24642, "s": 24445, "text": "Input : Num...
Adding Formation Data to a Well Log Plot | by Andy McDonald | Towards Data Science
Well log plots are a common visualization tool within geoscience and petrophysics. They allow easy visualization of data (for example, Gamma Ray, Neutron Porosity, Bulk Density, etc) that has been acquired along the length (depth) of a wellbore. I have previously covered different aspects of making these plots in the f...
[ { "code": null, "e": 418, "s": 172, "text": "Well log plots are a common visualization tool within geoscience and petrophysics. They allow easy visualization of data (for example, Gamma Ray, Neutron Porosity, Bulk Density, etc) that has been acquired along the length (depth) of a wellbore." }, {...
Java Generic Class | Practice | GeeksforGeeks
Generic Class in java is a feature. We write code once and use it for any data type including user defined data types. Given an integer or a string as an input.Print the type of input and the given value as output. Input: The first line will contain an integer T (number of test cases). First line of each test case wi...
[ { "code": null, "e": 442, "s": 226, "text": "Generic Class in java is a feature. We write code once and use it for any data type including user defined data types. Given an integer or a string as an input.Print the type of input and the given value as output." }, { "code": null, "e": 66...
How can we implement a moving text using a JLabel in Java?
A JLabel is a subclass of JComponent class and an object of JLabel provides text instructions or information on a GUI. A JLabel can display a single line of read-only text, an image or both text and an image. A JLabel can explicitly generate a PropertyChangeListener interface. We can also implement a moving text in a J...
[ { "code": null, "e": 1484, "s": 1062, "text": "A JLabel is a subclass of JComponent class and an object of JLabel provides text instructions or information on a GUI. A JLabel can display a single line of read-only text, an image or both text and an\nimage. A JLabel can explicitly generate a Property...
D3.js selection.exit() Function - GeeksforGeeks
13 Aug, 2020 The d3.selection.exit() function in D3.js is used to remove the elements or tags which correspond to the old data or in simple words This is used to update the DIV elements that were created before with the new data given. Syntax: selection.exit(); Parameters: This function does not accept any parameter. ...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n13 Aug, 2020" }, { "code": null, "e": 25132, "s": 24909, "text": "The d3.selection.exit() function in D3.js is used to remove the elements or tags which correspond to the old data or in simple words This is used to update the DIV...
Tryit Editor v3.7
Tryit: HTML aside element
[]
Python program to convert decimal to binary number - GeeksforGeeks
29 May, 2021 Given a decimal number as input, the task is to write a Python program to convert the given decimal number into an equivalent binary number.Examples : Input : 7 Output :111 Input :10 Output :1010 Method #1: Recursive solution DecimalToBinary(num): ...
[ { "code": null, "e": 24193, "s": 24165, "text": "\n29 May, 2021" }, { "code": null, "e": 24345, "s": 24193, "text": "Given a decimal number as input, the task is to write a Python program to convert the given decimal number into an equivalent binary number.Examples : " }, { ...
Minimum Cost For Tickets in C++
Suppose there is a country, that is popular for train travel, we have planned some train travelling one year in advance. We have an array, that is holding the days of the year that we will travel. Each day is an integer from 1 to 365. Train tickets are sold in three different ways − A 1-day pass is sold for costs[0] do...
[ { "code": null, "e": 1346, "s": 1062, "text": "Suppose there is a country, that is popular for train travel, we have planned some train travelling one year in advance. We have an array, that is holding the days of the year that we will travel. Each day is an integer from 1 to 365. Train tickets are ...
MySQL Tryit Editor v1.0
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 the Try-SQL Editor, with a read-only Database. If you...
[ { "code": null, "e": 99, "s": 36, "text": "Edit the SQL Statement, and click \"Run SQL\" to see the result." }, { "code": null, "e": 159, "s": 99, "text": "This SQL-Statement is not supported in the WebSQL Database." }, { "code": null, "e": 227, "s": 159, "tex...
Build Python code editor using CodeMirror and pyodide - GeeksforGeeks
22 Nov, 2021 In this article, we will learn to develop an application which can run the Python code inside your web browser. To achieve this, we will use pyodide.org, which consists of the CPython interpreter compiled to WebAssembly which allows Python to run in the browser. We are going to use codemirror.net in Pytho...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n22 Nov, 2021" }, { "code": null, "e": 24014, "s": 23901, "text": "In this article, we will learn to develop an application which can run the Python code inside your web browser. " }, { "code": null, "e": 24324, "s...
Java Program to get Operating System name and version
Use the System.getProperty() method in Java to get the Operating System name and version. It’s syntax is − String getProperty(String key) Above, the key is the name of the system property. Since, we want the OS name and version, therefore we will add the key as − Operating System name - os.name Operating System version...
[ { "code": null, "e": 1152, "s": 1062, "text": "Use the System.getProperty() method in Java to get the Operating System name and version." }, { "code": null, "e": 1169, "s": 1152, "text": "It’s syntax is −" }, { "code": null, "e": 1200, "s": 1169, "text": "Stri...
How to use an ArrayList in lambda expression in Java?
The lambda expression is an inline code that can implement a functional interface without creating an anonymous class. An ArrayList can be used to store a dynamically sized collection of elements. In the below program, We have removed the elements of an ArrayList whose age is less than or equal to 20 using the removeIf...
[ { "code": null, "e": 1259, "s": 1062, "text": "The lambda expression is an inline code that can implement a functional interface without creating an anonymous class. An ArrayList can be used to store a dynamically sized collection of elements." }, { "code": null, "e": 1501, "s": 1259...
Sorting arrays by two criteria in JavaScript
Let the following be the array to be sorted by date and isImportant. All the objects with isImportant property true rank higher than any any of the object with isImportant false and both the groups sorted according to the date property. Following is our array − const array = [{ id: 545, date: 591020824000, isI...
[ { "code": null, "e": 1299, "s": 1062, "text": "Let the following be the array to be sorted by date and isImportant. All the objects with\nisImportant property true rank higher than any any of the object with isImportant false and both\nthe groups sorted according to the date property." }, { ...
R - Operators - GeeksforGeeks
10 Apr, 2022 Operators are the symbols directing the compiler to perform various kinds of operations between the operands. Operators simulate the various mathematical, logical, and decision operations performed on a set of Complex Numbers, Integers, and Numericals as input operands. R supports majorly four kinds of bi...
[ { "code": null, "e": 28964, "s": 28936, "text": "\n10 Apr, 2022" }, { "code": null, "e": 29236, "s": 28964, "text": "Operators are the symbols directing the compiler to perform various kinds of operations between the operands. Operators simulate the various mathematical, logical,...
How to Add Axes to a Figure in Matplotlib with Python? - GeeksforGeeks
02 Dec, 2020 Matplotlib is a library in Python used to create figures and provide tools for customizing it. It allows plotting different types of data, geometrical figures. In this article, we will see how to add axes to a figure in matplotlib. We can add axes to a figure in matplotlib by passing a list argument in th...
[ { "code": null, "e": 24390, "s": 24359, "text": " \n02 Dec, 2020\n" }, { "code": null, "e": 24622, "s": 24390, "text": "Matplotlib is a library in Python used to create figures and provide tools for customizing it. It allows plotting different types of data, geometrical figures. ...
JavaScript Course | Variables in JavaScript - GeeksforGeeks
19 Aug, 2021 Previous Topic: JavaScript Course | Understanding Code Structure in JavaScript Variables in JavaScript: Variables in JavaScript are containers which hold reusable data. It is the basic unit of storage in a program. The value stored in a variable can be changed during program execution. A variable is on...
[ { "code": null, "e": 26060, "s": 26032, "text": "\n19 Aug, 2021" }, { "code": null, "e": 26141, "s": 26060, "text": "Previous Topic: JavaScript Course | Understanding Code Structure in JavaScript " }, { "code": null, "e": 26166, "s": 26141, "text": "Variables...
Find Index of given fibonacci number in constant time - GeeksforGeeks
18 Aug, 2021 We are given a Fibonacci number. The first few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ..... We have to find the index of the given Fibonacci number, i.e. like Fibonacci number 8 is at index 6. Examples : Input : 13 Output : 7 Input : 34 Output : 9 Method 1 (Simple) A simple ...
[ { "code": null, "e": 24748, "s": 24720, "text": "\n18 Aug, 2021" }, { "code": null, "e": 24971, "s": 24748, "text": "We are given a Fibonacci number. The first few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ..... We have to find the index of the given Fib...
GATE | GATE CS 2011 | Question 43 - GeeksforGeeks
30 Sep, 2021 An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following.1 Valid bit1 Modified bitAs many bits as the minimum needed to identify...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n30 Sep, 2021" }, { "code": null, "e": 26183, "s": 25657, "text": "An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller mainta...
C program to count characters, lines and number of words in a file
A file is a physical storage location on disk and a directory is a logical path which is used to organise the files. A file exists within a directory. The three operations that we can perform on file are as follows − Open a file. Process file (read, write, modify). Save and close file. Consider an example given below −...
[ { "code": null, "e": 1213, "s": 1062, "text": "A file is a physical storage location on disk and a directory is a logical path which is used to organise the files. A file exists within a directory." }, { "code": null, "e": 1279, "s": 1213, "text": "The three operations that we ca...
How to append an element after an element using jQuery?
To append an element after an element using jQuery, use the insertAfter() method. You can try to run the following code to learn how to append an element after an element using jQuery: Live Demo <html> <head> <title>The jQuery Example</title> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/2...
[ { "code": null, "e": 1144, "s": 1062, "text": "To append an element after an element using jQuery, use the insertAfter() method." }, { "code": null, "e": 1247, "s": 1144, "text": "You can try to run the following code to learn how to append an element after an element using jQuer...
Emirp numbers in C++
Emirp number is a special type of number that is a prime number whose digits when reversed create another prime number (this prime number is different from the original one). Some prime numbers that are not emirp are palindromic prime and single digit prime numbers. Some Emirp Numbers are 13, 17, 37, 733. Here, we are...
[ { "code": null, "e": 1237, "s": 1062, "text": "Emirp number is a special type of number that is a prime number whose digits when reversed create another prime number (this prime number is different from the original one)." }, { "code": null, "e": 1330, "s": 1237, "text": "Some pr...
Build and deploy a flask application inside docker
Docker allows you to build, manage and deploy applications inside containers. It provides a packed environment and allows developers to make portable applications by containerizing them. You can easily build a flask application, manage it and make it portable all using a single technology, docker. You can use similar t...
[ { "code": null, "e": 1445, "s": 1062, "text": "Docker allows you to build, manage and deploy applications inside containers. It provides a packed environment and allows developers to make portable applications by containerizing them. You can easily build a flask application, manage it and make it po...
ADT-array Representation in Data Structure
ADT indicates for Abstract Data Type. Arrays are defined as ADT’s because they are capable of holding contiguous elements in the same order. And they permit access for the specific element via index or position. They are abstract because they can be String, int or Person int[] arrA = new int[1]; String[] arrB = new Str...
[ { "code": null, "e": 1100, "s": 1062, "text": "ADT indicates for Abstract Data Type." }, { "code": null, "e": 1219, "s": 1100, "text": "Arrays are defined as ADT’s because they are capable of holding contiguous elements in the same order. And they permit" }, { "code": nul...
Tryit Editor v3.7
Tryit: Using the object-position property
[]
Mutant Score & Analysis Example – Mutation Testing in Software Testing
Mutation Testing, aka program mutation, mutation analysis, or fault-based testing, is a type of software testing where testers introduce some minor changes in a source code to check the error detection capability of the source code. Test cases that fail to execute are considered ideal. If the test case passes, that mea...
[ { "code": null, "e": 1295, "s": 1062, "text": "Mutation Testing, aka program mutation, mutation analysis, or fault-based testing, is a type of software testing where testers introduce some minor changes in a source code to check the error detection capability of the source code." }, { "code"...
How to add Bullet list in a RecyclerView in Android? - GeeksforGeeks
16 Apr, 2020 Recycler View allows us to show a list of items but to convert our list into the bulleted list we have to do some extra work. You can do this task by following these simple steps given below:- Add the support Library in build.gradle file for Recycler View in the dependencies section.<dependency> impleme...
[ { "code": null, "e": 25263, "s": 25235, "text": "\n16 Apr, 2020" }, { "code": null, "e": 25456, "s": 25263, "text": "Recycler View allows us to show a list of items but to convert our list into the bulleted list we have to do some extra work. You can do this task by following the...
Powershell - Create Text File
New-Item cmdlet is used to create a text file and Set-Content cmdlet to put content into it. In this example, we're creating a new text file named test.txt Type the following command in PowerShell ISE Console New-Item D:\temp\test\test.txt You can see the test.txt created in D:\temp\test directory. In this example, we'...
[ { "code": null, "e": 2127, "s": 2034, "text": "New-Item cmdlet is used to create a text file and Set-Content cmdlet to put content into it." }, { "code": null, "e": 2190, "s": 2127, "text": "In this example, we're creating a new text file named test.txt" }, { "code": null...
How to set default font family for entire Android App?
This example demonstrate about How to set default font family for entire Android App. 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" ...
[ { "code": null, "e": 1148, "s": 1062, "text": "This example demonstrate about How to set default font family for entire Android App." }, { "code": null, "e": 1277, "s": 1148, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ...
Lychrel Number Implementation - GeeksforGeeks
12 May, 2021 Lychrel Number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers. The process is sometimes called the 196-algorithm, after the most famous number associated with the process. The first few numbers not known to...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n12 May, 2021" }, { "code": null, "e": 25166, "s": 24718, "text": "Lychrel Number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers....
What is setInterval() method in JavaScript?
This is one of the many timing events. The window object allows code to execute at every certain interval of time. This object has provided SetInterval() to repeat a function for every certain amount of time. It takes two parameters as arguments. One is the function and the other is the time that specifies the interval...
[ { "code": null, "e": 1428, "s": 1062, "text": "This is one of the many timing events. The window object allows code to execute at every certain interval of time. This object has provided SetInterval() to repeat a function for every certain amount of time. It takes two parameters as arguments. One is...
Web App development for Data Scientists | by Harsh Rana | Towards Data Science
I know some of you are probably thinking: why should a data scientist care about building a web application? The answer to your question is fairly simple: while analyzing datasets, finding patterns and building models are all important skills for a data scientist, it is equally important to communicate ideas and build ...
[ { "code": null, "e": 657, "s": 172, "text": "I know some of you are probably thinking: why should a data scientist care about building a web application? The answer to your question is fairly simple: while analyzing datasets, finding patterns and building models are all important skills for a data s...
p5.js | Mouse | mouseButton - GeeksforGeeks
16 Apr, 2019 The mouseButton variable in p5.js is used to get automatically which kind of key is pressed on mouse. The value of the system variable mouseButton is either LEFT, RIGHT, or CENTER depending on which button was pressed last. Syntax: mouseButton Below programs illustrate the mouseButton variable in p5.js: Ex...
[ { "code": null, "e": 26627, "s": 26599, "text": "\n16 Apr, 2019" }, { "code": null, "e": 26851, "s": 26627, "text": "The mouseButton variable in p5.js is used to get automatically which kind of key is pressed on mouse. The value of the system variable mouseButton is either LEFT, ...
What is Spilling - GeeksforGeeks
12 Aug, 2021 Introduction :In a computer, all the instructions and data are stored in main or primary memory. During execution, they have to be transferred to the processing unit, also known as the CPU, where operations are performed, depending on the instruction and if there is any result, it is sent back to the memo...
[ { "code": null, "e": 26025, "s": 25997, "text": "\n12 Aug, 2021" }, { "code": null, "e": 26445, "s": 26025, "text": "Introduction :In a computer, all the instructions and data are stored in main or primary memory. During execution, they have to be transferred to the processing u...
IntStream boxed() in Java - GeeksforGeeks
06 Dec, 2018 IntStream boxed() returns a Stream consisting of the elements of this stream, each boxed to an Integer. Note : IntStream boxed() is a intermediate operation. These operations are always lazy. Intermediate operations are invoked on a Stream instance and after they finish their processing, they give a Stream...
[ { "code": null, "e": 25299, "s": 25271, "text": "\n06 Dec, 2018" }, { "code": null, "e": 25403, "s": 25299, "text": "IntStream boxed() returns a Stream consisting of the elements of this stream, each boxed to an Integer." }, { "code": null, "e": 25635, "s": 25403,...
Expanded Class in Flutter - GeeksforGeeks
21 Feb, 2022 When we create any child of a row or column we provide the size of the widget according to the screen size but sometimes when we provide more size of child as compare to screen size we get a warning and our widget goes out of the screen for resolving this we put a child of a row or column in an expanded wi...
[ { "code": null, "e": 27159, "s": 27131, "text": "\n21 Feb, 2022" }, { "code": null, "e": 27792, "s": 27159, "text": "When we create any child of a row or column we provide the size of the widget according to the screen size but sometimes when we provide more size of child as comp...
Google Interview Experience for Internship (Coding Round) - GeeksforGeeks
16 Oct, 2020 Google Internship (North America) coding round was held between 28th August to 5th September 2020 by Google(NA) for Software Engineering students of Pre-final and final year. The level of this Coding Round was easy. The coding round comprised of two questions which are as follows : Question 1: Most Booked...
[ { "code": null, "e": 26745, "s": 26717, "text": "\n16 Oct, 2020" }, { "code": null, "e": 27029, "s": 26745, "text": "Google Internship (North America) coding round was held between 28th August to 5th September 2020 by Google(NA) for Software Engineering students of Pre-final and ...
Number of steps required to convert a binary number to one - GeeksforGeeks
04 May, 2021 Given a binary string str, the task is to print the numbers of steps required to convert it to one by the following operations: If ‘S’ is odd add 1 to it.If ‘S’ is even divide it by 2. If ‘S’ is odd add 1 to it. If ‘S’ is even divide it by 2. Examples: Input: str = “1001001” Output: 12 Input: str = “10111...
[ { "code": null, "e": 26279, "s": 26251, "text": "\n04 May, 2021" }, { "code": null, "e": 26408, "s": 26279, "text": "Given a binary string str, the task is to print the numbers of steps required to convert it to one by the following operations: " }, { "code": null, "e...
Overriding toString() method in Scala - GeeksforGeeks
24 Jun, 2019 Consider the following Scala program: // Scala Program without override toString method // Creating Classclass Language(LangArticle: Int, LangName: String) { // Defining getLangArticle method def getLangArticle() : Int = { return LangArticle; } // Defining getLangName ...
[ { "code": null, "e": 25127, "s": 25099, "text": "\n24 Jun, 2019" }, { "code": null, "e": 25165, "s": 25127, "text": "Consider the following Scala program:" }, { "code": "// Scala Program without override toString method // Creating Classclass Language(LangArticle: Int, L...
How to load notification alert on top right corner without click of button in bootstrap ? - GeeksforGeeks
31 Jul, 2019 Bootstrap Toast component provides an easy way to mimic the functionality of push notifications. Bootstrap Toast is like an alert box that can be displayed to the user whenever an event occurs. This component has been built with CSS flexbox which makes it easy to position and align.It is not necessary to s...
[ { "code": null, "e": 26865, "s": 26837, "text": "\n31 Jul, 2019" }, { "code": null, "e": 27293, "s": 26865, "text": "Bootstrap Toast component provides an easy way to mimic the functionality of push notifications. Bootstrap Toast is like an alert box that can be displayed to the ...
How to wait resize end event and then perform an action using JavaScript ? - GeeksforGeeks
19 Oct, 2021 When we resize the browser window, the “resize” event is fired continuously, multiple times while resizing. We want the “resize” event to only be fired once we are done resizing.Prerequisite: To solve this problem we use two functions: setTimeout() function clearTimeOut() function Example: We will use se...
[ { "code": null, "e": 26665, "s": 26637, "text": "\n19 Oct, 2021" }, { "code": null, "e": 26903, "s": 26665, "text": "When we resize the browser window, the “resize” event is fired continuously, multiple times while resizing. We want the “resize” event to only be fired once we are...
Fabric.js | Rect padding Property - GeeksforGeeks
25 May, 2020 In this article, we are going to see how to change the padding between the object and controlling the border of a canvas rectangle using FabricJS. The canvas rectangle means rectangle is movable and can be stretched according to requirement. Further, the rectangle can be customized when it comes to initial...
[ { "code": null, "e": 26543, "s": 26515, "text": "\n25 May, 2020" }, { "code": null, "e": 26909, "s": 26543, "text": "In this article, we are going to see how to change the padding between the object and controlling the border of a canvas rectangle using FabricJS. The canvas recta...
PHP | fopen( ) (Function open file or URL) - GeeksforGeeks
08 Jun, 2018 The fopen() function in PHP is an inbuilt function which is used to open a file or an URL. It is used to bind a resource to a steam using a specific filename. The filename and mode to be checked are sent as parameters to the fopen() function and it returns a file pointer resource if a match is found and a ...
[ { "code": null, "e": 42139, "s": 42111, "text": "\n08 Jun, 2018" }, { "code": null, "e": 42543, "s": 42139, "text": "The fopen() function in PHP is an inbuilt function which is used to open a file or an URL. It is used to bind a resource to a steam using a specific filename. The ...
How to set the Foreground Color of the Button in C#? - GeeksforGeeks
26 Jun, 2019 A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In Button, you are allowed to set the foreground color of the button with the help of the ForeColor Property. It is provided by Button class which helps programmers in ...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n26 Jun, 2019" }, { "code": null, "e": 25978, "s": 25547, "text": "A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In Button, you are allow...
GATE | GATE-CS-2014-(Set-1) | Question 31 - GeeksforGeeks
07 Dec, 2021 Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, M} and the set of functional dependencies {{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L}, K -> {M}, L -> {N} on R. What is the key for R?(A) {E, F}(B) {E, F, H}(C) {E, F, H, K, L}(D) {E}Answer: (B)Explanation: All attributes can be derived from ...
[ { "code": null, "e": 25719, "s": 25691, "text": "\n07 Dec, 2021" }, { "code": null, "e": 26036, "s": 25719, "text": "Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, M} and the set of functional dependencies {{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L}, K -> {M}, L...
Sentence Case of a given Camel cased string - GeeksforGeeks
06 May, 2021 Given a string str in camelCase format, the task is to convert the string into a readable form.Examples: Input: str = “ILoveGeeksForGeeks” Output: I love geeks for geeksInput: str = “WeLoveToCode” Output: We love to code Approach: The string is camelCased that means words are not separated by spaces ...
[ { "code": null, "e": 26073, "s": 26045, "text": "\n06 May, 2021" }, { "code": null, "e": 26180, "s": 26073, "text": "Given a string str in camelCase format, the task is to convert the string into a readable form.Examples: " }, { "code": null, "e": 26298, "s": 261...
Check whether two strings are anagrams of each other using unordered_map in C++ - GeeksforGeeks
02 Aug, 2019 Write a function to check whether two given strings are an Anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be different. For example, “abcd” and “dabc” are an Anagram of each other. Approach: Unordered Map can also b...
[ { "code": null, "e": 26099, "s": 26071, "text": "\n02 Aug, 2019" }, { "code": null, "e": 26188, "s": 26099, "text": "Write a function to check whether two given strings are an Anagram of each other or not." }, { "code": null, "e": 26311, "s": 26188, "text": "A...
Print all subarrays with sum in a given range - GeeksforGeeks
02 Dec, 2021 Given an array arr[] of positive integers and two integers L and R defining the range [L, R]. The task is to print the subarrays having sum in the range L to R. Examples: Input: arr[] = {1, 4, 6}, L = 3, R = 8Output: {1, 4}, {4}, {6}.Explanation: All the possible subarrays are the following{1] with sum 1...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n02 Dec, 2021" }, { "code": null, "e": 26202, "s": 26041, "text": "Given an array arr[] of positive integers and two integers L and R defining the range [L, R]. The task is to print the subarrays having sum in the range L to R." ...
How to get file name from a path in PHP ? - GeeksforGeeks
03 Dec, 2021 In this article, we will see how to get the file name from the path in PHP, along with understanding its implementation through the examples. We have given the full path & we need to find the file name from the file path. For this, we will following below 2 methods: Using the basename() function Using the ...
[ { "code": null, "e": 32676, "s": 32648, "text": "\n03 Dec, 2021" }, { "code": null, "e": 32943, "s": 32676, "text": "In this article, we will see how to get the file name from the path in PHP, along with understanding its implementation through the examples. We have given the ful...
GDB - Debugging Programs
gcc -g myprogram.c Compiles myprogram.c with the debugging option (-g). You still get an a.out, but it contains debugging information that lets you use variables and function names inside GDB, rather than raw memory locations (not fun). gcc -g myprogram.c Compiles myprogram.c with the debugging option (-g). You stil...
[ { "code": null, "e": 1949, "s": 1709, "text": "gcc -g myprogram.c\n\nCompiles myprogram.c with the debugging option (-g). You still get an a.out, but it contains debugging information that lets you use variables and function names inside GDB, rather than raw memory locations (not fun).\n\n" }, {...
C++ while loop
A while loop statement repeatedly executes a target statement as long as a given condition is true. The syntax of a while loop in C++ is − while(condition) { statement(s); } Here, statement(s) may be a single statement or a block of statements. The condition may be any expression, and true is any non-zero value. Th...
[ { "code": null, "e": 2418, "s": 2318, "text": "A while loop statement repeatedly executes a target statement as long as a given condition is true." }, { "code": null, "e": 2457, "s": 2418, "text": "The syntax of a while loop in C++ is −" }, { "code": null, "e": 2496, ...
3 Python Tools Data Scientists Can Use for Production-Quality Code | by Genevieve Hayes | Towards Data Science
My first experience with coding was using S-Plus (a forerunner to R) as an undergraduate statistics student. Our lecturer, a professor with decades of experience, taught us how to fit regression models by literally typing our code one line at a time into the S-Plus console. If you wanted to be able to re-run your code ...
[ { "code": null, "e": 446, "s": 171, "text": "My first experience with coding was using S-Plus (a forerunner to R) as an undergraduate statistics student. Our lecturer, a professor with decades of experience, taught us how to fit regression models by literally typing our code one line at a time into ...
What are default arguments in python?
Python allows function arguments to have default values; if the function is called without the argument, the argument gets its default value Default arguments: Python has a different way of representing syntax and default values for function arguments. Default values indicate that the function argument will take that v...
[ { "code": null, "e": 1203, "s": 1062, "text": "Python allows function arguments to have default values; if the function is called without the argument, the argument gets its default value" }, { "code": null, "e": 1222, "s": 1203, "text": "Default arguments:" }, { "code": ...
How to find the Odd and Even numbers in an Array in java?
In the loop check, the result of i%2 operation on each element if 0 the element is even else the element is odd. Live Demo public class OddNumbersInAnArray { public static void main(String args[]) { int[] myArray = {23, 93, 56, 92, 39}; System.out.println("Even numbers in the given array are:: "); ...
[ { "code": null, "e": 1175, "s": 1062, "text": "In the loop check, the result of i%2 operation on each element if 0 the element is even else the element is odd." }, { "code": null, "e": 1185, "s": 1175, "text": "Live Demo" }, { "code": null, "e": 1732, "s": 1185, ...
Python | Check if all the values in a list are less than a given value - GeeksforGeeks
10 Dec, 2018 Given a list, write a Python program to check if all the values in a list are less than the given value. Examples: Input : list = [11, 22, 33, 44, 55] value = 22 Output : No Input : list = [11, 22, 33, 44, 55] value = 65 Output : Yes Method #1: Traversing the listCompare each element b...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n10 Dec, 2018" }, { "code": null, "e": 24317, "s": 24212, "text": "Given a list, write a Python program to check if all the values in a list are less than the given value." }, { "code": null, "e": 24327, "s": 24317...
Interactive Animated Visualization | by Himanshu Sharma | Towards Data Science
Data Visualization helps in understanding different patterns, associations, visual insights from the data, etc. It is important because it uncovers the mystery behind the data tables in form of charts, graphs, and plots. There is N number of python libraries that help in visualizing the data like Matplotlib, Seaborn, e...
[ { "code": null, "e": 495, "s": 171, "text": "Data Visualization helps in understanding different patterns, associations, visual insights from the data, etc. It is important because it uncovers the mystery behind the data tables in form of charts, graphs, and plots. There is N number of python librar...
Unsupervised Learning and Deep Dive Into K-Means | by Vardaan Bajaj | Towards Data Science
In this post, we’ll be going through: Unsupervised LearningWorking example of K-MeansCost Function for K-MeansInitialization methods for clustersElbow Method (hit-and-trial method)Kaggle’s Credit Card Dataset to map user spending activity Unsupervised Learning Working example of K-Means Cost Function for K-Means Initia...
[ { "code": null, "e": 210, "s": 172, "text": "In this post, we’ll be going through:" }, { "code": null, "e": 411, "s": 210, "text": "Unsupervised LearningWorking example of K-MeansCost Function for K-MeansInitialization methods for clustersElbow Method (hit-and-trial method)Kaggle...
Accessing Attributes and Methods in Python
As an object oriented programming language python stresses on objects. Classes are the blueprint from which the objects are created. Each class in python can have many attributes including a function as an attribute. To check the attributes of a class and also to manipulate those attributes, we use many python in-built...
[ { "code": null, "e": 1279, "s": 1062, "text": "As an object oriented programming language python stresses on objects. Classes are the blueprint from which the objects are created. Each class in python can have many attributes including a function as an attribute." }, { "code": null, "e":...
Counting number of whitespaces in text file using java
Here is an example of counting white spaces in text file using java,hope this helps you. import java.io.*; public class CountWhiteSpace { public static void main(String[] args) throws IOException { File file = new File("C:\\Users\\myjava\\count.txt"); //Creates a new File instance by converting the given...
[ { "code": null, "e": 1151, "s": 1062, "text": "Here is an example of counting white spaces in text file using java,hope this helps you." }, { "code": null, "e": 2291, "s": 1151, "text": "import java.io.*;\npublic class CountWhiteSpace {\n public static void main(String[] args) ...
Markov Random Fields And Image Processing | by Arun Jagota | Towards Data Science
This post covers Markov Random Fields and their application to specific problems in image processing. We don’t go deep or formal, just intuitive. A Markov Random Field is a graph whose nodes model random variables, and whose edges model desired local influences among pairs of them. Local influences propagate globally, ...
[ { "code": null, "e": 318, "s": 172, "text": "This post covers Markov Random Fields and their application to specific problems in image processing. We don’t go deep or formal, just intuitive." }, { "code": null, "e": 534, "s": 318, "text": "A Markov Random Field is a graph whose n...
Get exponential value of a number using Math.exp in Java
To get the exponential value of a number in Java, we use the java.lang.Math.exp() method. The Math.exp() returns a double value which is the Euler’s number e raised to the power of the argument. If the parameter is NaN, the result obtained is NaN. If the argument is positive infinity, then the result is positive infini...
[ { "code": null, "e": 1463, "s": 1062, "text": "To get the exponential value of a number in Java, we use the java.lang.Math.exp() method. The Math.exp() returns a double value which is the Euler’s number e raised to the power of the argument. If the parameter is NaN, the result obtained is NaN. If th...
Find closest number in array in C++
Suppose we have an array A with n elements. And elements are sorted. We have to find the closest value to the given integer. The array may contain duplicate values and negative numbers. So if the array is like [2, 5, 6, 7, 8, 8, 9] and the target number is 4, then closest element is 5. We can solve this by traversing t...
[ { "code": null, "e": 1349, "s": 1062, "text": "Suppose we have an array A with n elements. And elements are sorted. We have to find the closest value to the given integer. The array may contain duplicate values and negative numbers. So if the array is like [2, 5, 6, 7, 8, 8, 9] and the target number...
How to Create Animated Graphs in Python | by Viviane | Towards Data Science
Matplotlib and Seaborn are some nice libraries in Python to create great looking plots. But these plots are all static and it’s hard to depict the change of data values in a dynamic and pleasingly looking way. How nice would it be if in you next presentation, video or social media post you can present development in th...
[ { "code": null, "e": 647, "s": 171, "text": "Matplotlib and Seaborn are some nice libraries in Python to create great looking plots. But these plots are all static and it’s hard to depict the change of data values in a dynamic and pleasingly looking way. How nice would it be if in you next presentat...
Analyzing Melbourne House Prices with R | by Soner Yıldırım | Towards Data Science
There are several libraries and packages that provide data scientists, analysts, or any one interested in data with functions to perform efficient data analysis. Most of them are well-documented so you can easily find out what a function does. However, the best way to learn such libraries is through practice. It is not...
[ { "code": null, "e": 415, "s": 171, "text": "There are several libraries and packages that provide data scientists, analysts, or any one interested in data with functions to perform efficient data analysis. Most of them are well-documented so you can easily find out what a function does." }, { ...
D3.js json() Function - GeeksforGeeks
31 Aug, 2020 The d3.json() function is used to fetch the JSON file. If this function got an init parameter, then this is called along with the fetch operation. Syntax: d3.json(input[, init]); Parameters: This function accepts two parameters as mentioned above and described below. input: This parameter takes the address...
[ { "code": null, "e": 25220, "s": 25192, "text": "\n31 Aug, 2020" }, { "code": null, "e": 25367, "s": 25220, "text": "The d3.json() function is used to fetch the JSON file. If this function got an init parameter, then this is called along with the fetch operation." }, { "c...
WSL2 / NVIDIA GPU Driver for DirectML and Tensor Flow | by Cristian Saavedra Desmoineaux | Towards Data Science
In September 2020, NVIDIA announced native CUDA features on Windows Subsystem for Linux (WSL2) in the last version of the preview driver, which motivated me to write this post. I will explain how to install NVIDIA Driver on WSL2 (Microsoft Subsystem Linux) and test TensorFlow's parallel execution. Some of the main chan...
[ { "code": null, "e": 348, "s": 171, "text": "In September 2020, NVIDIA announced native CUDA features on Windows Subsystem for Linux (WSL2) in the last version of the preview driver, which motivated me to write this post." }, { "code": null, "e": 470, "s": 348, "text": "I will ex...
Python - Image Classification using keras
Image classification is a method to classify the images into their respective category classes using some method like − Training a small network from scratch Fine tuning the top layers of the model using VGG16 #First, include following libraries: # Importing all necessary libraries from keras.preprocessing.image import...
[ { "code": null, "e": 1182, "s": 1062, "text": "Image classification is a method to classify the images into their respective category classes using some method like −" }, { "code": null, "e": 1220, "s": 1182, "text": "Training a small network from scratch" }, { "code": nu...
Python | Prompt for Password at Runtime and Termination with Error Message
12 Jun, 2019 Say our Script requires a password, but since the script is meant for interactive use, it is likely to prompt the user for a password rather than hardcode it into the script. Python’s getpass module precisely does what it is needed. It will allow the user to very easily prompt for a password without having...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jun, 2019" }, { "code": null, "e": 203, "s": 28, "text": "Say our Script requires a password, but since the script is meant for interactive use, it is likely to prompt the user for a password rather than hardcode it into the script."...
What is useState() in React ?
09 Jun, 2022 The useState() is a Hook that allows you to have state variables in functional components . so basically useState is the ability to encapsulate local state in a functional component. React has two types of components, one is class components which are ES6 classes that extend from React and the other is fun...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Jun, 2022" }, { "code": null, "e": 683, "s": 28, "text": "The useState() is a Hook that allows you to have state variables in functional components . so basically useState is the ability to encapsulate local state in a functional com...
How to Get $_POST from multiple check-boxes ?
31 Oct, 2019 $_POST is an array of variable names. The program given below illustrates how to write HTML structure for multiple valued checkbox and to get the values of multiple valued checkbox using $_POST in PHP. Note: The name attribute of checkboxes must be the same name and must be initialized with an array. It ca...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2019" }, { "code": null, "e": 230, "s": 28, "text": "$_POST is an array of variable names. The program given below illustrates how to write HTML structure for multiple valued checkbox and to get the values of multiple valued che...
Perl | File Test Operators
21 Feb, 2019 File Test Operators in Perl are the logical operators which return True or False values. There are many operators in Perl that you can use to test various different aspects of a file. For example, to check for the existence of a file -e operator is used. Or, it can be checked if a file can be written to be...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Feb, 2019" }, { "code": null, "e": 451, "s": 28, "text": "File Test Operators in Perl are the logical operators which return True or False values. There are many operators in Perl that you can use to test various different aspects of...
BottomNavigationView in Android
18 Feb, 2021 BottomNavigationView makes it easy for users to explore and switch between top-level views in a single tap. There should be a minimum of 3 top-level views and a maximum of 5. If Destinations are more than 5 then use the Navigation Drawer. When the user taps on the icon it will change the top-level view acc...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Feb, 2021" }, { "code": null, "e": 660, "s": 54, "text": "BottomNavigationView makes it easy for users to explore and switch between top-level views in a single tap. There should be a minimum of 3 top-level views and a maximum of 5....
Pollard p-1 Algorithm
01 Mar, 2020 Factorizing a large odd integer, n, into its corresponding prime factors can prove to be a difficult task. A brute approach can be testing all integers less than n until a divisor is found. This proves to be very time consuming as a divisor might be a very large prime itself. Pollard p-1 algorithm is a bet...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Mar, 2020" }, { "code": null, "e": 305, "s": 28, "text": "Factorizing a large odd integer, n, into its corresponding prime factors can prove to be a difficult task. A brute approach can be testing all integers less than n until a div...
Scrollable ListBox in Python-tkinter
26 Mar, 2020 Tkinter is the standard GUI library for Python. Tkinter in Python comes with a lot of good widgets. Widgets are standard GUI elements, and the Listbox, Scrollbar will also come under this Widgets. Note: For more information, refer to Python GUI – tkinter The ListBox widget is used to display different type...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2020" }, { "code": null, "e": 225, "s": 28, "text": "Tkinter is the standard GUI library for Python. Tkinter in Python comes with a lot of good widgets. Widgets are standard GUI elements, and the Listbox, Scrollbar will also com...
Data Structure and Algorithms - Queue
Queue is an abstract data structure, somewhat similar to Stacks. Unlike stacks, a queue is open at both its ends. One end is always used to insert data (enqueue) and the other is used to remove data (dequeue). Queue follows First-In-First-Out methodology, i.e., the data item stored first will be accessed first. A real-...
[ { "code": null, "e": 3027, "s": 2714, "text": "Queue is an abstract data structure, somewhat similar to Stacks. Unlike stacks, a queue is open at both its ends. One end is always used to insert data (enqueue) and the other is used to remove data (dequeue). Queue follows First-In-First-Out methodolog...
Python – Age Calculator using PyQt
03 Jul, 2020 In this article we will see how we can create an age calculator using PyQt5. PyQt5 is cross-platform GUI toolkit, a set of python bindings for Qt v5. One can develop an interactive desktop application with so much ease because of the tools and simplicity provided by this library. It has to be installed usi...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jul, 2020" }, { "code": null, "e": 105, "s": 28, "text": "In this article we will see how we can create an age calculator using PyQt5." }, { "code": null, "e": 358, "s": 105, "text": "PyQt5 is cross-platform GUI t...
Period of() method in Java with Examples
28 Nov, 2018 The of() method of Period Class is used to obtain a period from given number of Years, Months, and Days as parameters. These parameters are accepted in the form of integers. This method returns a Period with the given number of years, months, and days. Syntax: public static Period of( int numberOfY...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Nov, 2018" }, { "code": null, "e": 281, "s": 28, "text": "The of() method of Period Class is used to obtain a period from given number of Years, Months, and Days as parameters. These parameters are accepted in the form of integers. T...
Python | Remove item from dictionary when key is unknown
28 Jan, 2019 Dictionary is a collection which is unordered, changeable and indexed. In Python, dictionaries are written with curly brackets, and they have keys and values. It is widely used in day to day programming, web development, and machine learning. Let’s discuss the various ways to remove items from the dictiona...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jan, 2019" }, { "code": null, "e": 271, "s": 28, "text": "Dictionary is a collection which is unordered, changeable and indexed. In Python, dictionaries are written with curly brackets, and they have keys and values. It is widely use...
Login Twitter using Python Selenium
04 Jan, 2021 Project Description:-Here, we’re going to study a simple how-to log in twitter by selenium. Selenium is a free tool for automated trying out across exceptional browsers. Requirement: Selenium – Selenium Python Introduction and Installation Below are the steps: First, go to the twitter website using this Li...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jan, 2021" }, { "code": null, "e": 224, "s": 54, "text": "Project Description:-Here, we’re going to study a simple how-to log in twitter by selenium. Selenium is a free tool for automated trying out across exceptional browsers." }...
Create a Gradient Text Effect using HTML and CSS - GeeksforGeeks
14 Jul, 2020 This article will show the approach to add a gradient effect on text using the background-clip CSS property. The final output of text using this effect is shown below. The CSS properties that would be used are flexbox, background-clip, and -webkit-background-clip and the background. HTML Section: This sect...
[ { "code": null, "e": 25376, "s": 25348, "text": "\n14 Jul, 2020" }, { "code": null, "e": 25660, "s": 25376, "text": "This article will show the approach to add a gradient effect on text using the background-clip CSS property. The final output of text using this effect is shown be...
How to use JavaScript to redirect an HTML page?
You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection. It is quite simple to do a page redirect using JavaScript on the client side. To redirect your site visitors to a new page, you just need to add a line...
[ { "code": null, "e": 1231, "s": 1062, "text": "You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection." }, { "code": null, "e": 1416, "s": 1231, "text": "It is quite s...
Tryit Editor v3.7
Tryit: Background image that scrolls with page
[]
Why you should start using .npy file more often... | by Tirthajyoti Sarkar | Towards Data Science
Numpy, short for Numerical Python, is the fundamental package required for high performance scientific computing and data analysis in Python ecosystem. It is the foundation on which nearly all of the higher-level tools such as Pandas and scikit-learn are built. TensorFlow uses NumPy arrays as the fundamental building b...
[ { "code": null, "e": 677, "s": 172, "text": "Numpy, short for Numerical Python, is the fundamental package required for high performance scientific computing and data analysis in Python ecosystem. It is the foundation on which nearly all of the higher-level tools such as Pandas and scikit-learn are ...
Driving distance between two or more places in python | by Vaclav Dekanovsky | Towards Data Science
Many business cases require knowing the distance between some places. It’s a key in the logistics and energy industry, but it is also important when you plan your holidays. In this tutorial we will see how to get several types of distances: the distance on the surface of Earth the distance when traveling by car or usin...
[ { "code": null, "e": 344, "s": 171, "text": "Many business cases require knowing the distance between some places. It’s a key in the logistics and energy industry, but it is also important when you plan your holidays." }, { "code": null, "e": 412, "s": 344, "text": "In this tutor...