title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Program to find Prime Numbers Between given Interval
22 Feb, 2022 Given two numbers a and b as interval range, the task is to find the prime numbers in between this interval. Examples: Input : a = 1, b = 10 Output : 2, 3, 5, 7 Input : a = 10, b = 20 Output : 11, 13, 17, 19 In the below program, the range of numbers is taken as input and stored in the variables ‘a’ and...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Feb, 2022" }, { "code": null, "e": 162, "s": 52, "text": "Given two numbers a and b as interval range, the task is to find the prime numbers in between this interval." }, { "code": null, "e": 173, "s": 162, "tex...
Python – Convert Strings to Character Matrix
12 Mar, 2020 Sometimes, while dealing with String lists, we can have a problem in which we need to convert the Strings in list to separate character list. Overall converting into Matrix. This can have multiple applications in data science domain in which we deal with lots of data. Lets discuss certain ways in which thi...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Mar, 2020" }, { "code": null, "e": 360, "s": 28, "text": "Sometimes, while dealing with String lists, we can have a problem in which we need to convert the Strings in list to separate character list. Overall converting into Matrix. T...
HTML <caption> Tag
17 Mar, 2022 The caption tag is used to specify the caption of a table. This tag will be inserted just after the <table> tag. Only one caption can be specified for one table. It is by default aligned to the center. Syntax: <caption align = "value" ></caption> Attributes: This tag accepts a single attribute as mentione...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 Mar, 2022" }, { "code": null, "e": 256, "s": 53, "text": "The caption tag is used to specify the caption of a table. This tag will be inserted just after the <table> tag. Only one caption can be specified for one table. It is by def...
Two Level Paging and Multi Level Paging in OS
28 Jun, 2022 Paging is the process in which we convert the entire process in to equal sized pages. Each page further consists of a fixed number of words (if it is word addressable). The Pages are represented by the Virtual Address generated by the CPU. These Pages are mapped to Physical Address by the MMU. So, to help ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2022" }, { "code": null, "e": 1014, "s": 52, "text": "Paging is the process in which we convert the entire process in to equal sized pages. Each page further consists of a fixed number of words (if it is word addressable). The ...
PHP openssl_pkey_export() Function
13 Sep, 2020 The openssl_pkey_export() function is an inbuilt function in PHP which is used to view and manage private keys and public keys. It gets an exportable representation of a key into a string. It exports the key as a PEM encoded string and stores to pass by reference. Syntax: bool openssl_pkey_export( mixed $k...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Sep, 2020" }, { "code": null, "e": 293, "s": 28, "text": "The openssl_pkey_export() function is an inbuilt function in PHP which is used to view and manage private keys and public keys. It gets an exportable representation of a key i...
DateTime.Compare() Method in C#
22 Jan, 2019 This method is used to compare two instances of DateTime and returns an integer that indicates whether the first instance is earlier than, the same as, or later than the second instance. Syntax: public static int Compare (DateTime t1, DateTime t2); Parameters: t1: The first object to compare. t2: The secon...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jan, 2019" }, { "code": null, "e": 215, "s": 28, "text": "This method is used to compare two instances of DateTime and returns an integer that indicates whether the first instance is earlier than, the same as, or later than the secon...
Odd-Even Sort / Brick Sort
14 Jun, 2022 This is basically a variation of bubble-sort. This algorithm is divided into two phases- Odd and Even Phase. The algorithm runs until the array elements are sorted and in each iteration two phases occurs- Odd and Even Phases.In the odd phase, we perform a bubble sort on odd indexed elements and in the even...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 419, "s": 52, "text": "This is basically a variation of bubble-sort. This algorithm is divided into two phases- Odd and Even Phase. The algorithm runs until the array elements are sorted and in eac...
turtle.begin_fill() function in Python
29 Jun, 2021 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This method is used to call just before drawing a shape to be filled. It doesn’t take any ...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2021" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver...
Plotly - Online and Offline Plotting
The following chapter deals with the settings for the online and offline plotting. Let us first study the settings for online plotting. Data and graph of online plot are save in your plot.ly account. Online plots are generated by two methods both of which create a unique url for the plot and save it in your Plotly acco...
[ { "code": null, "e": 2630, "s": 2494, "text": "The following chapter deals with the settings for the online and offline plotting. Let us first study the settings for online plotting." }, { "code": null, "e": 2819, "s": 2630, "text": "Data and graph of online plot are save in your...
How to count number of data types in an array in JavaScript ?
09 Jul, 2021 Given an array and the task is to count the number of data types used to create that array. Example: Input: [1, true, “hello”, [], {}, undefined, function(){}] Output: { boolean: 1, function: 1, number: 1, object: 2, string: 1, undefined: 1 }Input: [function(){}, new Object(), [], {}, NaN, Infinity, undefi...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Jul, 2021" }, { "code": null, "e": 120, "s": 28, "text": "Given an array and the task is to count the number of data types used to create that array." }, { "code": null, "e": 129, "s": 120, "text": "Example:" },...
Python | os.path.getatime() method
22 May, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub module of OS module in Python used for common path name manipulati...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 May, 2019" }, { "code": null, "e": 339, "s": 28, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin...
LINQ | Join (Inner Join)
06 Jun, 2019 In LINQ, Join operators are used for integrating two data source into one data source which shares some common attributes. For example, in a bank, the manager has two lists, the first list contains the personal details and another list contains the home loan details. Now the manager wants to create a list ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2019" }, { "code": null, "e": 753, "s": 28, "text": "In LINQ, Join operators are used for integrating two data source into one data source which shares some common attributes. For example, in a bank, the manager has two lists, t...
Merging sorted arrays together JavaScript
Suppose we have two sorted arrays (increasing order) like this − const arr1 = [1, 2, 3, 0, 0, 0]; const arr2 = [2, 5, 6]; We are required to write a JavaScript function that takes in two such arrays and returns a new array that contains all the elements from these arrays in a sorted manner. Therefore, for the above arr...
[ { "code": null, "e": 1127, "s": 1062, "text": "Suppose we have two sorted arrays (increasing order) like this −" }, { "code": null, "e": 1184, "s": 1127, "text": "const arr1 = [1, 2, 3, 0, 0, 0];\nconst arr2 = [2, 5, 6];" }, { "code": null, "e": 1354, "s": 1184, ...
How to find the standard error of mean in R?
The standard error of mean is the standard deviation divided by the square root of the sample size. The easiest way to find the standard error of mean is using the formula to find its value. > set.seed(1) We will find the standard errors for a normal random variable, sequence of numbers from one to hundred, a random sa...
[ { "code": null, "e": 1253, "s": 1062, "text": "The standard error of mean is the standard deviation divided by the square root of the sample size. The easiest way to find the standard error of mean is using the formula to find its value." }, { "code": null, "e": 1267, "s": 1253, ...
Length of Last Word in C++
Suppose we have a string s. s can hold any English letters and white-spaces. We have to find the length of last word in the string. If there is no last word, then return 0. So, if the input is like "I love Programming", then the output will be 11 To solve this, we will follow these steps − n := 0 n := 0 for each word t...
[ { "code": null, "e": 1235, "s": 1062, "text": "Suppose we have a string s. s can hold any English letters and white-spaces. We have to find the length of last word in the string. If there is no last word, then return 0." }, { "code": null, "e": 1309, "s": 1235, "text": "So, if th...
What is the Function type in TypeScript ? - GeeksforGeeks
29 Nov, 2021 TypeScript is a JavaScript-based programming language with a typed syntax. It provides improved tools of any size. It adds extra syntax to JavaScript. This helps in facilitating a stronger interaction between you and your editor. It also helps in catching the mistakes well in advance. It uses type inferen...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n29 Nov, 2021" }, { "code": null, "e": 26832, "s": 26545, "text": "TypeScript is a JavaScript-based programming language with a typed syntax. It provides improved tools of any size. It adds extra syntax to JavaScript. This helps i...
Python - Remove duplicate values across Dictionary Values - GeeksforGeeks
10 May, 2020 Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove all the duplicate values across all the dictionary value lists. This problem can have application in data domains and web development domains. Let’s discuss certain ways in which this task can be performed. ...
[ { "code": null, "e": 26475, "s": 26447, "text": "\n10 May, 2020" }, { "code": null, "e": 26782, "s": 26475, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove all the duplicate values across all the dictionary value lists....
Find the centroid of a non-self-intersecting closed Polygon - GeeksforGeeks
01 Mar, 2022 Given N vertices of the polygon, the task is to find the centroid of the polygonExamples: Input: ar = {{0, 0}, {0, 8}, {8, 8}, {8, 0}} Output: {Cx, Cy} = {4, 4} Input: ar = {{1, 2}, {3, -4}, {6, -7}} Output: {Cx, Cy} = {3.33, -3} Approach: The centroid of a non-self-intersecting closed polygon defined...
[ { "code": null, "e": 26359, "s": 26331, "text": "\n01 Mar, 2022" }, { "code": null, "e": 26451, "s": 26359, "text": "Given N vertices of the polygon, the task is to find the centroid of the polygonExamples: " }, { "code": null, "e": 26592, "s": 26451, "text":...
D3.js color.brighter() Function - GeeksforGeeks
28 Jul, 2020 The color.brighter() function of D3.js is used to make a copy of the color with some extra brightness or darkness in the original color. Syntax: color.brighter(k) Parameter: This function accepts only one parameter k is the amount of brightness required in the original color. It is the Integer value. Retu...
[ { "code": null, "e": 26557, "s": 26529, "text": "\n28 Jul, 2020" }, { "code": null, "e": 26694, "s": 26557, "text": "The color.brighter() function of D3.js is used to make a copy of the color with some extra brightness or darkness in the original color." }, { "code": null...
How to Install ReactJS on Windows? - GeeksforGeeks
11 Apr, 2022 React JS -React is an open-source component-based front-end JavaScript library. It is used to create fast and interactive user interfaces for web and mobile applications. It is easy to create a dynamic application in React because it requires less coding and offer more functionality. It is used by big MNC ...
[ { "code": null, "e": 26211, "s": 26183, "text": "\n11 Apr, 2022" }, { "code": null, "e": 26541, "s": 26211, "text": "React JS -React is an open-source component-based front-end JavaScript library. It is used to create fast and interactive user interfaces for web and mobile applic...
Golang | Splitting the string after the specified separator - GeeksforGeeks
05 Sep, 2019 In Go language, strings are different from other languages like Java, C++, Python, etc. It is a sequence of variable-width characters where each and every character is represented by one or more bytes using UTF-8 Encoding.In the Go strings, you are allowed to split the string after the specified separator ...
[ { "code": null, "e": 25675, "s": 25647, "text": "\n05 Sep, 2019" }, { "code": null, "e": 26344, "s": 25675, "text": "In Go language, strings are different from other languages like Java, C++, Python, etc. It is a sequence of variable-width characters where each and every characte...
Implementing Threading without inheriting the Thread Class in Python - GeeksforGeeks
05 Sep, 2020 We are going implement threading in Python using a Class without sub-classing the superclass called Thread. To make the best use of the underlying processor and to improve the performance of our application, we can create multiple threads that can execute in parallel. Making the best use of the processor a...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n05 Sep, 2020" }, { "code": null, "e": 26045, "s": 25937, "text": "We are going implement threading in Python using a Class without sub-classing the superclass called Thread." }, { "code": null, "e": 26321, "s": 26...
Chi-square distance in Python - GeeksforGeeks
19 Jul, 2021 Chi-square distance calculation is a statistical method, generally measures similarity between 2 feature matrices. Such distance is generally used in many applications like similar image retrieval, image texture, feature extractions etc. The Chi-square distance of 2 arrays ‘x’ and ‘y’ with ‘n’ dimension is...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n19 Jul, 2021" }, { "code": null, "e": 25947, "s": 25589, "text": "Chi-square distance calculation is a statistical method, generally measures similarity between 2 feature matrices. Such distance is generally used in many applicat...
Maximum sum subarray such that start and end values are same - GeeksforGeeks
20 Dec, 2021 Given an array of N positive numbers, the task is to find a contiguous subarray (L-R) such that a[L]=a[R] and sum of a[L] + a[L+1] +...+ a[R] is maximum.Examples: Input: arr[] = {1, 3, 2, 2, 3} Output: 10 Subarray [3, 2, 2, 3] starts and ends with 3 and has sum = 10 Input: arr[] = {1, 3, 2, 2, 3} Output...
[ { "code": null, "e": 26539, "s": 26511, "text": "\n20 Dec, 2021" }, { "code": null, "e": 26704, "s": 26539, "text": "Given an array of N positive numbers, the task is to find a contiguous subarray (L-R) such that a[L]=a[R] and sum of a[L] + a[L+1] +...+ a[R] is maximum.Examples: ...
Perl | log() Function - GeeksforGeeks
25 Jun, 2019 log() function in Perl returns the natural logarithm of value passed to it. Returns $_ if called without passing a value. log() function can be used to find the log of any base by using the formula: Syntax: log(value) Parameter:value: Number of which log is to be calculated Returns:Floating point number in...
[ { "code": null, "e": 25315, "s": 25287, "text": "\n25 Jun, 2019" }, { "code": null, "e": 25514, "s": 25315, "text": "log() function in Perl returns the natural logarithm of value passed to it. Returns $_ if called without passing a value. log() function can be used to find the lo...
Basics of File Handling in C - GeeksforGeeks
18 Oct, 2021 So far the operations using C program are done on a prompt / terminal which is not stored anywhere. But in the software industry, most of the programs are written to store the information fetched from the program. One such way is to store the fetched information in a file. Different operations that can be ...
[ { "code": null, "e": 25815, "s": 25787, "text": "\n18 Oct, 2021" }, { "code": null, "e": 26149, "s": 25815, "text": "So far the operations using C program are done on a prompt / terminal which is not stored anywhere. But in the software industry, most of the programs are written ...
DNS Look-Up - GeeksforGeeks
12 Aug, 2020 Prerequisite – Domain Name System (DNS) Need of DNS :There are 232 IP Addresses (approximately 4, 294, 967, 296). With growth of internet at a rapid pace came issue of remembering websites with their IP Address (not an issue if superhuman or bot pretending to be human). This issue was resolved using DNS. D...
[ { "code": null, "e": 25781, "s": 25753, "text": "\n12 Aug, 2020" }, { "code": null, "e": 25821, "s": 25781, "text": "Prerequisite – Domain Name System (DNS)" }, { "code": null, "e": 26355, "s": 25821, "text": "Need of DNS :There are 232 IP Addresses (approxima...
Prototype - Event observe() Method
This method registers an event handler on a DOM element. To register a function as an event handler, the DOM element that you want to observe must already exist in the DOM. Event.observe(element,eventName,handler[,useCapture=false]); Here are the explanations about the passed parameters − element − The DOM element you...
[ { "code": null, "e": 2118, "s": 2061, "text": "This method registers an event handler on a DOM element." }, { "code": null, "e": 2234, "s": 2118, "text": "To register a function as an event handler, the DOM element that you want to observe must already exist in the DOM." }, {...
Machine Learning Case Study: A data-driven approach to predict the success of bank telemarketing | by Sukanta Roy | Towards Data Science
In today’s world, data is the king. Use it in an effective way and it can create a huge impact on your business, don’t leverage it and you will be left behind in this fast paced world in no time. And one of the ways that a organisation can improve it’s performance in the market is to capture and analyse customer data i...
[ { "code": null, "e": 547, "s": 172, "text": "In today’s world, data is the king. Use it in an effective way and it can create a huge impact on your business, don’t leverage it and you will be left behind in this fast paced world in no time. And one of the ways that a organisation can improve it’s pe...
Check if a doubly linked list of characters is palindrome or not - GeeksforGeeks
21 May, 2021 Given a doubly-linked list of characters, write a function that returns true if the given doubly linked list is a palindrome, else false. Create a doubly linked list where each node contains only one character of a string.Initialize two pointers left at the start of the list and right at the end of the li...
[ { "code": null, "e": 24568, "s": 24540, "text": "\n21 May, 2021" }, { "code": null, "e": 24707, "s": 24568, "text": "Given a doubly-linked list of characters, write a function that returns true if the given doubly linked list is a palindrome, else false. " }, { "code": nu...
Check if a string is concatenation of another given string - GeeksforGeeks
18 May, 2021 Given two strings str1 and str2 of length N and M respectively, the task is to check if the string str1 can be formed by concatenating the string str2 repetitively or not. Examples: Input: str1 = “abcabcabc”, str2 = “abc”Output: YesExplanation: Concatenating the string str2 thrice generates the string (“ab...
[ { "code": null, "e": 24903, "s": 24875, "text": "\n18 May, 2021" }, { "code": null, "e": 25075, "s": 24903, "text": "Given two strings str1 and str2 of length N and M respectively, the task is to check if the string str1 can be formed by concatenating the string str2 repetitively...
Redis - Set Sunionstore Command
Redis SUNIONSTORE command is used to store the members of the set resulting from the union of all the given sets. Keys that do not exist are considered to be empty sets. Integer reply, the number of elements in the resulting set. Following is the basic syntax of Redis SUNIONSTORE command. redis 127.0.0.1:6379> SUNIONST...
[ { "code": null, "e": 2215, "s": 2045, "text": "Redis SUNIONSTORE command is used to store the members of the set resulting from the union of all the given sets. Keys that do not exist are considered to be empty sets." }, { "code": null, "e": 2275, "s": 2215, "text": "Integer repl...
What are the DCL commands in DBMS?
Data control language (DCL) is used to access the stored data. It is mainly used for revoke and to grant the user the required access to a database. In the database, this language does not have the feature of rollback. It is a part of the structured query language (SQL). It is a part of the structured query language (S...
[ { "code": null, "e": 1281, "s": 1062, "text": "Data control language (DCL) is used to access the stored data. It is mainly used for revoke and to grant the user the required access to a database. In the database, this language does not have the feature of rollback." }, { "code": null, "e...
Python program to calculate age in year - GeeksforGeeks
27 Jul, 2021 Given birth date in y/m/d format, write a Python program to find the present age in years. Examples: Input : 1997/2/3 Output : 21 years (for present year i.e 2018) Input : 2010/12/25 Output : 8 years (for present year i.e 2018) Approach # 1: The naive approach to find the current age in years is to find ...
[ { "code": null, "e": 24465, "s": 24437, "text": "\n27 Jul, 2021" }, { "code": null, "e": 24556, "s": 24465, "text": "Given birth date in y/m/d format, write a Python program to find the present age in years." }, { "code": null, "e": 24567, "s": 24556, "text": ...
Proper stack and heap usage in C++?
The stack − All variables declared inside the function will take up memory from the stack. So, any local variable inside a function lives on the stack. The heap − This is unused memory of the program and can be used to allocate the memory dynamically when program runs. So If we want something to live longer than the fu...
[ { "code": null, "e": 1214, "s": 1062, "text": "The stack − All variables declared inside the function will take up memory from the stack. So, any local variable inside a function lives on the stack." }, { "code": null, "e": 1440, "s": 1214, "text": "The heap − This is unused memo...
How to create a new local group using PowerShell?
To create a new local group on the local or the remote system using PowerShell, we can use the NewLocalGroup command. New-LocalGroup -Name "TestGroup" -Description "Test Group" Name Description ---- ----------- TestGroup Test Group You can verify it from the Computer Management GUI. To create the local gro...
[ { "code": null, "e": 1181, "s": 1062, "text": "To create a new local group on the local or the remote system using PowerShell, we can use the NewLocalGroup command. " }, { "code": null, "e": 1240, "s": 1181, "text": "New-LocalGroup -Name \"TestGroup\" -Description \"Test Group\""...
Filtering Operators in LINQ
Filtering is an operation to restrict the result set such that it has only selected elements satisfying a particular condition. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Operators { class Program { static void Main(string[] args) { string[] words...
[ { "code": null, "e": 1864, "s": 1736, "text": "Filtering is an operation to restrict the result set such that it has only selected elements satisfying a particular condition." }, { "code": null, "e": 2339, "s": 1864, "text": "using System;\nusing System.Collections.Generic;\nusin...
How to remove swap files using Python?
Swap files have the extension .swp. Easiest way to remove all swap files from a folder recursively is to use the string function endswith with the extension name(.swp) to match file names and delete these files. import os, os.path mypath = "my_folder" for root, dirs, files in os.walk(mypath): for file in filter(la...
[ { "code": null, "e": 1275, "s": 1062, "text": "Swap files have the extension .swp. Easiest way to remove all swap files from a folder recursively is to use the string function endswith with the extension name(.swp) to match file names and delete these files. " }, { "code": null, "e": 146...
Creating Variable Factor Map (PCA) Plot with Python | by Huy Bui | Towards Data Science
One of the most joyful activities in analytics is working with beautiful visualization. With the Variable Factor Map, you can explain Principal Component Analysis with ease. A picture worth a thousand words Principle Component Analysis (PCA), is a dimensionality-reduction method that is used to reduce the dimensionalit...
[ { "code": null, "e": 379, "s": 172, "text": "One of the most joyful activities in analytics is working with beautiful visualization. With the Variable Factor Map, you can explain Principal Component Analysis with ease. A picture worth a thousand words" }, { "code": null, "e": 666, "s...
Protractor - Getting Started
In the previous chapters, we have learnt the basics of Protractor. In this chapter, let us learn how to install and configure it. We need to satisfy the following prerequisites before installing Protractor on your computer − Protractor is a Node.js module, hence the very important prerequisite is that we must have Node...
[ { "code": null, "e": 2021, "s": 1891, "text": "In the previous chapters, we have learnt the basics of Protractor. In this chapter, let us learn how to install and configure it." }, { "code": null, "e": 2116, "s": 2021, "text": "We need to satisfy the following prerequisites befor...
Set Column Names when Using cbind Function in R - GeeksforGeeks
23 Aug, 2021 In this article, we are going to see how to set the column names when using cbind() function in R Programming language. Let’s create and combine two vectors for demonstration: R # create two vectors with integer and string typesvector1 = c(1,2,3,4,5) vector2 = c("sravan","bobby", "ojsawi","gnan...
[ { "code": null, "e": 25162, "s": 25134, "text": "\n23 Aug, 2021" }, { "code": null, "e": 25282, "s": 25162, "text": "In this article, we are going to see how to set the column names when using cbind() function in R Programming language." }, { "code": null, "e": 25338,...
C# | Remove all elements from a HashSet - GeeksforGeeks
01 Feb, 2019 A HashSet is an unordered collection of the unique elements. It comes under the System.Collections.Generic namespace. It is used in a situation where we want to prevent duplicates from being inserted in the collection. As far as performance is concerned, it is better in comparison to the list. HashSet.Clea...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24285, "s": 23911, "text": "A HashSet is an unordered collection of the unique elements. It comes under the System.Collections.Generic namespace. It is used in a situation where we want to pr...
Scatter Plot, Scattergl Plot and Bubble Charts
This chapter emphasizes on details about Scatter Plot, Scattergl Plot and Bubble Charts. First, let us study about Scatter Plot. Scatter plots are used to plot data points on a horizontal and a vertical axis to show how one variable affects another. Each row in the data table is represented by a marker whose position d...
[ { "code": null, "e": 2489, "s": 2360, "text": "This chapter emphasizes on details about Scatter Plot, Scattergl Plot and Bubble Charts. First, let us study about Scatter Plot." }, { "code": null, "e": 2741, "s": 2489, "text": "Scatter plots are used to plot data points on a horiz...
Check if the number is valid when flipped upside down - GeeksforGeeks
18 Mar, 2022 Given a string str representing a number, the task is to find whether the number is valid or not if it made topsy-turvy i.e upside-down.Examples: Input: str = “1183” Output: Yes upside-down(1183) = 1183Input: str = “983” Output: No Approach: Only the digits 1, 3 and 8 are the digits that can form ano...
[ { "code": null, "e": 24774, "s": 24746, "text": "\n18 Mar, 2022" }, { "code": null, "e": 24922, "s": 24774, "text": "Given a string str representing a number, the task is to find whether the number is valid or not if it made topsy-turvy i.e upside-down.Examples: " }, { "...
How to get the current year in JavaScript?
To get the current year, use the getFullYear() JavaScript method. JavaScript date getFullYear() method returns the year of the specified date according to local time. The value returned by getFullYear() is an absolute number. For dates between the years 1000 and 9999, getFullYear() returns a four-digit number, for exam...
[ { "code": null, "e": 1393, "s": 1062, "text": "To get the current year, use the getFullYear() JavaScript method. JavaScript date getFullYear() method returns the year of the specified date according to local time. The value returned by getFullYear() is an absolute number. For dates between the years...
Working with two-dimensional array at runtime in C programming
Write a C program to calculate sum and product of all elements in two-dimensional array using run time compilation. Runtime compilation or initialization is also called as dynamic allocation. Allocation of memory at the time of execution (run time) is known as dynamic memory allocation. Runtime compilation or initializ...
[ { "code": null, "e": 1178, "s": 1062, "text": "Write a C program to calculate sum and product of all elements in two-dimensional array using run time compilation." }, { "code": null, "e": 1350, "s": 1178, "text": "Runtime compilation or initialization is also called as dynamic al...
Burning GPU while training DL model? These commands can cool it down. | by Justin Ho | Towards Data Science
We often use Geforce GPU to do the deep learning model training for personal research, but the GPU temperature will go up to 84°C when it’s full loaded running! That’s not only burning the GPU, but also burning our heart! Inspired by a friend from zhihu (Chinese version Quora), he modified the GPU fans speed to cool do...
[ { "code": null, "e": 394, "s": 172, "text": "We often use Geforce GPU to do the deep learning model training for personal research, but the GPU temperature will go up to 84°C when it’s full loaded running! That’s not only burning the GPU, but also burning our heart!" }, { "code": null, "...
Supervised Machine Learning Technique for Anomaly Detection: Logistic Regression | by Mahbubul Alam | Towards Data Science
This is the 11th (and final) piece in a series of articles I am writing about anomaly detection algorithms. The following are the previous 10 articles if you want to check out, each focusing on a different anomaly detection algorithm: 1. Isolation Forest 2. K-Nearest Neighbors (kNN) 3. Support Vector Machines (SVM) 4. ...
[ { "code": null, "e": 407, "s": 172, "text": "This is the 11th (and final) piece in a series of articles I am writing about anomaly detection algorithms. The following are the previous 10 articles if you want to check out, each focusing on a different anomaly detection algorithm:" }, { "code"...
An Insertion Sort time complexity question - GeeksforGeeks
28 Jun, 2021 Question : How much time Insertion sort takes to sort an array of size n in below form? arr[] = 2, 1, 4, 3, 6, 5,....i, i-1, .....n, n-1 Answer : At first look, it seems like Insertion Sort would take O(n2) time, but it actually takes O(n) time How? Let us take a closer look at below code. /* Function to s...
[ { "code": null, "e": 23690, "s": 23662, "text": "\n28 Jun, 2021" }, { "code": null, "e": 23778, "s": 23690, "text": "Question : How much time Insertion sort takes to sort an array of size n in below form?" }, { "code": null, "e": 23827, "s": 23778, "text": "ar...
Makie: High-Level, Beautiful Plots | by Emmett Boudreau | Towards Data Science
Within the Julia ecosystem, there have come to be a lot of fantastic solutions for visualizing data. Despite this, many users often end up using Plots.jl. While Plots.jl is certainly a cool package, it is important to remember that all the package has to offer is three separate ports of different software from other pr...
[ { "code": null, "e": 932, "s": 171, "text": "Within the Julia ecosystem, there have come to be a lot of fantastic solutions for visualizing data. Despite this, many users often end up using Plots.jl. While Plots.jl is certainly a cool package, it is important to remember that all the package has to ...
Supervised learning — the What, When, Why, Good and Bad (Part 1) | by Sheenal Srivastava | Towards Data Science
Often times in the workplace, business stakeholders and managers associate machine learning and big data with deep learning. They will often think that the best solution to all data problems is deep learning, AI or neural networks or some combination of the prior (insert your favourite buzzword). As someone with a stat...
[ { "code": null, "e": 641, "s": 172, "text": "Often times in the workplace, business stakeholders and managers associate machine learning and big data with deep learning. They will often think that the best solution to all data problems is deep learning, AI or neural networks or some combination of t...
Airflow: How To Refresh Stock Market Data While You Sleep — Part 1 | by AnBento | Towards Data Science
Apache Airflow is a workflow management platform that allows users to programmatically schedule jobs that run on a standalone basis and to monitor them through its user interface. Airflow’s main components are a Webserver (Airflow’s UI build as a Flask App), a Scheduler, an Executor and a Metadata Database. As a BI Dev...
[ { "code": null, "e": 481, "s": 172, "text": "Apache Airflow is a workflow management platform that allows users to programmatically schedule jobs that run on a standalone basis and to monitor them through its user interface. Airflow’s main components are a Webserver (Airflow’s UI build as a Flask Ap...
Implementing Auto-complete with Postgres and Python | by Varun Chitale | Towards Data Science
Search engines seem almost incomplete without some sort of auto-complete. Here’s a quick guide to building your own auto-complete from scratch. We will be using Python, Postgres and Spacy. Elastic Search is a very good alternative to Postgres, but for simple tasks not involving millions and millions of rows, Postgres, ...
[ { "code": null, "e": 630, "s": 172, "text": "Search engines seem almost incomplete without some sort of auto-complete. Here’s a quick guide to building your own auto-complete from scratch. We will be using Python, Postgres and Spacy. Elastic Search is a very good alternative to Postgres, but for sim...
LISP - Case Construct
The case construct implements multiple test-action clauses like the cond construct. However, it evaluates a key form and allows multiple action clauses based on the evaluation of that key form. The syntax for case macro is − The template for CASE is (case (keyform) ((key1) (action1 action2 ...) ) ((key2) (action...
[ { "code": null, "e": 2254, "s": 2060, "text": "The case construct implements multiple test-action clauses like the cond construct. However, it evaluates a key form and allows multiple action clauses based on the evaluation of that key form." }, { "code": null, "e": 2285, "s": 2254, ...
C# TimeSpan Max value
Timespan shows the length of time. To get the maximum value of TimeSpan, use the following property. TimeSpan.MaxValue Live Demo using System; using System.Linq; public class Demo { public static void Main() { Console.WriteLine(TimeSpan.MaxValue); } } 10675199.02:48:05.4775807
[ { "code": null, "e": 1097, "s": 1062, "text": "Timespan shows the length of time." }, { "code": null, "e": 1163, "s": 1097, "text": "To get the maximum value of TimeSpan, use the following property." }, { "code": null, "e": 1181, "s": 1163, "text": "TimeSpan.M...
How to create a matrix with random values in R?
Generally, a matrix is created with given values but if we want to create the matrix with random values then we will use the usual method with the matrix function. Random selection in R can be done in many ways depending on our objective, for example, if we want to randomly select values from normal distribution then r...
[ { "code": null, "e": 1478, "s": 1062, "text": "Generally, a matrix is created with given values but if we want to create the matrix with random values then we will use the usual method with the matrix function. Random selection in R can be done in many ways depending on our objective, for example, i...
Designing a Stepper Form in ReactJS - GeeksforGeeks
19 Sep, 2021 Steppers display progress through a sequence of logical and numbered steps. They may also be used for navigation. Steppers may display a transient feedback message after a step is saved. In this article, we will learn how to create a vertical stepper form using react and material-ui. We will create a verti...
[ { "code": null, "e": 24461, "s": 24433, "text": "\n19 Sep, 2021" }, { "code": null, "e": 24648, "s": 24461, "text": "Steppers display progress through a sequence of logical and numbered steps. They may also be used for navigation. Steppers may display a transient feedback message...
Java & MySQL - Create Database Example
This tutorial provides an example on how to create a Database using JDBC application. Before executing the following example, make sure you have the following in place − You should have admin privilege to create a database in the given schema. To execute the following example, you need to replace the username and passw...
[ { "code": null, "e": 2856, "s": 2686, "text": "This tutorial provides an example on how to create a Database using JDBC application. Before executing the following example, make sure you have the following in place −" }, { "code": null, "e": 3051, "s": 2856, "text": "You should h...
Generating OTP in Java
Generate OTP is now a requirement on most of the website now-a-days. In case of additional authentication, system generates a OTP password adhering to OTP policy of the company. Following example generates a unique OTP adhering to following conditions − It should contain at least one number. Length should be 4 characte...
[ { "code": null, "e": 1316, "s": 1062, "text": "Generate OTP is now a requirement on most of the website now-a-days. In case of additional authentication, system generates a OTP password adhering to OTP policy of the company. Following example generates a unique OTP adhering to following conditions −...
Sizeof operator in C
The sizeof operator is the most common operator in C. It is a compile-time unary operator and used to compute the size of its operand. It returns the size of a variable. It can be applied to any data type, float type, pointer type variables. When sizeof() is used with the data types, it simply returns the amount of mem...
[ { "code": null, "e": 1304, "s": 1062, "text": "The sizeof operator is the most common operator in C. It is a compile-time unary operator and used to compute the size of its operand. It returns the size of a variable. It can be applied to any data type, float type, pointer type variables." }, { ...
How I was using Naive Bayes (Incorrectly) till now — Part-1 | by GOWTHAM CH | Towards Data Science
Just like Naive Bayes makes a naive assumption that the features we give to the model are independent, I have also made several naive assumptions about how NB works. I assumed that MultinomialNB works for any given data. (And I use that for whatever data I have) → Explained in detail in the below post, why this is a ba...
[ { "code": null, "e": 338, "s": 172, "text": "Just like Naive Bayes makes a naive assumption that the features we give to the model are independent, I have also made several naive assumptions about how NB works." }, { "code": null, "e": 504, "s": 338, "text": "I assumed that Multi...
MongoDB - Overview
MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document. Database is a physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server typ...
[ { "code": null, "e": 2736, "s": 2553, "text": "MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document." }, { "code": null, "e": 2904, "s": 2736, "text": ...
Numpy | Linear Algebra - GeeksforGeeks
15 Nov, 2018 The Linear Algebra module of NumPy offers various methods to apply linear algebra on any numpy array.One can find: rank, determinant, trace, etc. of an array. eigen values of matrices matrix and vector products (dot, inner, outer,etc. product), matrix exponentiation solve linear or tensor equations and muc...
[ { "code": null, "e": 41528, "s": 41500, "text": "\n15 Nov, 2018" }, { "code": null, "e": 41643, "s": 41528, "text": "The Linear Algebra module of NumPy offers various methods to apply linear algebra on any numpy array.One can find:" }, { "code": null, "e": 41687, ...
Count of subarrays with unique sum with sum at most K - GeeksforGeeks
14 Dec, 2021 Given an array arr[] of size N and an integer K., The task is to count the number of subarrays with unique sum with sum at most K. Examples: Input: N = 3, arr[] = {1, 0, 1}, K = 1Output: 3Explanation: All Subarrays are [1], [0], [1], [1, 0], [0, 1], [1, 0, 1] & The sum of these subarrays are {1, 0, 1, 1, 1...
[ { "code": null, "e": 24820, "s": 24792, "text": "\n14 Dec, 2021" }, { "code": null, "e": 24951, "s": 24820, "text": "Given an array arr[] of size N and an integer K., The task is to count the number of subarrays with unique sum with sum at most K." }, { "code": null, ...
Java Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!
Following is the Java program to find the sum of the series − 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n! Live Demo import java.io.*; import java.lang.*; public class Demo{ public static double pattern_sum(double val){ double residual = 0, factorial_val = 1; for (int i = 1; i <= val; i++){ factori...
[ { "code": null, "e": 1124, "s": 1062, "text": "Following is the Java program to find the sum of the series −" }, { "code": null, "e": 1165, "s": 1124, "text": "1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!" }, { "code": null, "e": 1176, "s": 1165, "text": " Live De...
What is parameter binding in C# ASP.NET WebAPI?
Binding is a process to set values for the parameters when Web API calls a controller action method. Web API methods with the different types of the parameters and how to customize the binding process. If the parameter is a simple type like int, bool, double, etc., Web API tries to get the value from the URI (Either fr...
[ { "code": null, "e": 1163, "s": 1062, "text": "Binding is a process to set values for the parameters when Web API calls a controller\naction method." }, { "code": null, "e": 1264, "s": 1163, "text": "Web API methods with the different types of the parameters and how to customize\...
Python – Pandas Dataframe.rename()
It's quite simple to rename a DataFrame column name in Pandas. All that you need to do is to use the rename() method and pass the column name that you want to change and the new column name. Let's take an example and see how it's done. Create a two-dimensional, size-mutable, potentially heterogeneous tabular data, df. ...
[ { "code": null, "e": 1298, "s": 1062, "text": "It's quite simple to rename a DataFrame column name in Pandas. All that you need to do is to use the rename() method and pass the column name that you want to change and the new column name. Let's take an example and see how it's done." }, { "co...
Nambiar Number Generator - GeeksforGeeks
08 Jun, 2021 M. Nambiar has devised a mechanism to process any given number and thus generating a new resultant number. He calls this mechanism as the “Nambiar Number Generator” and the resultant number is referred to as the “Nambiar Number”.Mechanism: In the given number, starting with the first digit, keep on adding ...
[ { "code": null, "e": 24717, "s": 24689, "text": "\n08 Jun, 2021" }, { "code": null, "e": 25314, "s": 24717, "text": "M. Nambiar has devised a mechanism to process any given number and thus generating a new resultant number. He calls this mechanism as the “Nambiar Number Generator...
JavaFX | Label - GeeksforGeeks
19 Apr, 2021 Label is a part of JavaFX package . Label is used to display a short text or an image, it is a non-editable text control. It is useful for displaying text that is required to fit within a specific space, and thus may need to use an ellipsis or truncation to size the string to fit. Labels also are useful in...
[ { "code": null, "e": 24038, "s": 24010, "text": "\n19 Apr, 2021" }, { "code": null, "e": 24574, "s": 24038, "text": "Label is a part of JavaFX package . Label is used to display a short text or an image, it is a non-editable text control. It is useful for displaying text that is ...
Is your model overfitting? Or maybe underfitting? An example using a neural network | by Serafeim Loukas | Towards Data Science
Most of the times, the cause of poor performance for a machine learning (ML) model is either overfitting or underfitting. A good model should be able to generalize and overcome both the overfitting and underfitting problems. But what is overfitting? But what is underfitting? When does it mean for a model to be able to ...
[ { "code": null, "e": 531, "s": 172, "text": "Most of the times, the cause of poor performance for a machine learning (ML) model is either overfitting or underfitting. A good model should be able to generalize and overcome both the overfitting and underfitting problems. But what is overfitting? But w...
SQL - ORDER BY Clause
The SQL ORDER BY clause is used to sort the data in ascending or descending order, based on one or more columns. Some databases sort the query results in an ascending order by default. The basic syntax of the ORDER BY clause is as follows − SELECT column-list FROM table_name [WHERE condition] [ORDER BY column1, colu...
[ { "code": null, "e": 2638, "s": 2453, "text": "The SQL ORDER BY clause is used to sort the data in ascending or descending order, based on one or more columns. Some databases sort the query results in an ascending order by default." }, { "code": null, "e": 2694, "s": 2638, "text"...
Java Regex - Capturing Groups
Capturing groups are a way to treat multiple characters as a single unit. They are created by placing the characters to be grouped inside a set of parentheses. For example, the regular expression (dog) creates a single group containing the letters "d", "o", and "g". Capturing groups are numbered by counting their openi...
[ { "code": null, "e": 2391, "s": 2124, "text": "Capturing groups are a way to treat multiple characters as a single unit. They are created by placing the characters to be grouped inside a set of parentheses. For example, the regular expression (dog) creates a single group containing the letters \"d\"...
C library function - qsort()
The C library function void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, const void*)) sorts an array. Following is the declaration for qsort() function. void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, const void*)) base − This is the pointer to the first elem...
[ { "code": null, "e": 2139, "s": 2007, "text": "The C library function void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, const void*)) sorts an array." }, { "code": null, "e": 2190, "s": 2139, "text": "Following is the declaration for qsort() function....
How to get Current UTC Time in Java - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Here we will see how to get current UTC time ...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
How to link pages using absolute URL in HTML?
To link pages using absolute URL in HTML, use the <a> tag with href attribute. Absolute URL is used to link an external website. For example https://www.qries.com/questions.php Everything inside <a>...</a> tag becomes a hyperlink. Some of the attributes of <a> tag are listed below, You can try the following code to lin...
[ { "code": null, "e": 1239, "s": 1062, "text": "To link pages using absolute URL in HTML, use the <a> tag with href attribute. Absolute URL is used to link an external website. For example https://www.qries.com/questions.php" }, { "code": null, "e": 1345, "s": 1239, "text": "Every...
Apache Pig - ToDate()
This function is used to generate a DateTime object according to the given parameters. The syntax of ToDate() function can be any of the following − grunt> ToDate(milliseconds) grunt> ToDate(iosstring) grunt> ToDate(userstring, format) grunt> ToDate(userstring, format, timezone) Assume that there is a file n...
[ { "code": null, "e": 2771, "s": 2684, "text": "This function is used to generate a DateTime object according to the given parameters." }, { "code": null, "e": 2833, "s": 2771, "text": "The syntax of ToDate() function can be any of the following −" }, { "code": null, "...
Acing the SQL Challenge. Conquer your next DA Interview by using... | by Chloe Lubin | Towards Data Science
If you’re a data analyst and you’re currently searching for a job, you’ll likely need to prepare for the technical interview, most commonly carried out in the form of a SQL challenge. Structured Query Language (SQL) is the bread and butter of data analytics. It’s the language that communicates with the database and hel...
[ { "code": null, "e": 669, "s": 171, "text": "If you’re a data analyst and you’re currently searching for a job, you’ll likely need to prepare for the technical interview, most commonly carried out in the form of a SQL challenge. Structured Query Language (SQL) is the bread and butter of data analyti...
Rust - Concurrency
In Concurrent programming, different parts of a program execute independently. On the other hand, in parallel programming, different parts of a program execute at the same time. Both the models are equally important as more computers take advantage of their multiple processors. We can use threads to run codes simultane...
[ { "code": null, "e": 2366, "s": 2087, "text": "In Concurrent programming, different parts of a program execute independently. On the other hand, in parallel programming, different parts of a program execute at the same time. Both the models are equally important as more computers take advantage of t...
How To Calculate the Mean and Standard Deviation — Normalizing Datasets in Pytorch | by Jorrit Willaert | Towards Data Science
The normalization of a dataset is mostly seen as a rather mundane task, although it strongly influences the performance of a neural network. With unnormalized data, numerical ranges of features may vary strongly. Take for example a machine learning application where housing prices are predicted from several inputs (sur...
[ { "code": null, "e": 704, "s": 172, "text": "The normalization of a dataset is mostly seen as a rather mundane task, although it strongly influences the performance of a neural network. With unnormalized data, numerical ranges of features may vary strongly. Take for example a machine learning applic...
Change the color of "tab header" in ttk.Notebook (tkinter)
Tabs are very useful for a multipurpose GUI application. It helps to isolate the several tasks or processes within the application in the form of tabs. Tabs are very useful for processing multiple tasks at a time. With the help of Tkinter Notebook widget, we can create Tabs in our tkinter application. To configure the ...
[ { "code": null, "e": 1365, "s": 1062, "text": "Tabs are very useful for a multipurpose GUI application. It helps to isolate the several tasks or processes within the application in the form of tabs. Tabs are very useful for processing multiple tasks at a time. With the help of Tkinter Notebook widge...
What are the methods used to provide effects in jQuery?
jQuery effect methods are used to create custom animation effects. The following are some of the methods used to provide effects in jQuery − Let’s see an example to work with jQuery method animate(), which animates any element. You can try to run the following code to learn how to use the jQuery method to animate() to ...
[ { "code": null, "e": 1203, "s": 1062, "text": "jQuery effect methods are used to create custom animation effects. The following are some of the methods used to provide effects in jQuery −" }, { "code": null, "e": 1290, "s": 1203, "text": "Let’s see an example to work with jQuery ...
10 Things You Didn’t Know About Pandas | by Rebecca Vickery | Towards Data Science
Pandas is the definitive library for performing data analysis with Python. It was originally developed by a company called AQR Capital Management but was open-sourced for general use in 2009. It rapidly became the go-to tool for data analysis for Python users and now has a huge array of features for data extraction, ma...
[ { "code": null, "e": 363, "s": 171, "text": "Pandas is the definitive library for performing data analysis with Python. It was originally developed by a company called AQR Capital Management but was open-sourced for general use in 2009." }, { "code": null, "e": 531, "s": 363, "te...
How to create unique index in Android sqlite?
Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you d...
[ { "code": null, "e": 1457, "s": 1062, "text": "Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the re...
Write a C# program to calculate a factorial using recursion
Factorial of a number is what we are finding using a recursive function checkFact () in the below example − If the value is 1, it returns 1 since Factorial is 1 − if (n == 1) return 1; If not, then the recursive function will be called for the following iterations if you want the value of 5! Interation1: 5 * checkFact ...
[ { "code": null, "e": 1170, "s": 1062, "text": "Factorial of a number is what we are finding using a recursive function checkFact () in the below example −" }, { "code": null, "e": 1225, "s": 1170, "text": "If the value is 1, it returns 1 since Factorial is 1 −" }, { "code...
Discover 3D Point Cloud Processing with Python | by Florent Poux, Ph.D. | Towards Data Science
We need to set-up our environment. I recommend to download Anaconda Navigator, which comes with an easy GUI. Once downloaded and installed, create an environment (2nd tab on the left > Create button), which allows you to specify a python version (the latest is fine). You know it is selected when the green arrow is next...
[ { "code": null, "e": 281, "s": 172, "text": "We need to set-up our environment. I recommend to download Anaconda Navigator, which comes with an easy GUI." }, { "code": null, "e": 500, "s": 281, "text": "Once downloaded and installed, create an environment (2nd tab on the left > C...
How To Make Beautiful Command-Line Interfaces In Python With Click | by Emmett Boudreau | Towards Data Science
Command Line Interfaces, or CLIs are an important tool that programmers often use to control their software from a terminal or REPL. The problem with command line interfaces is that while they are not particularly hard to make, they can be a bit tedious and annoying to make. Furthermore, they can be very hard to make w...
[ { "code": null, "e": 899, "s": 172, "text": "Command Line Interfaces, or CLIs are an important tool that programmers often use to control their software from a terminal or REPL. The problem with command line interfaces is that while they are not particularly hard to make, they can be a bit tedious a...
R - Data Types
Generally, while doing programming in any programming language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. This means that, when you create a variable you reserve some space in memory. You may like to store information of various ...
[ { "code": null, "e": 2677, "s": 2402, "text": "Generally, while doing programming in any programming language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. This means that, when you create a variable you reserve ...
Cluster Sampling in Pandas - GeeksforGeeks
01 Apr, 2021 Sampling is a method in which we collect or chosen a small set of data from a large population, without finding the meaning of every individual in set. We’re doing a sampling of data from the population because we cannot gather data from the entire population. If we’re done sampling then we bring the popul...
[ { "code": null, "e": 24852, "s": 24824, "text": "\n01 Apr, 2021" }, { "code": null, "e": 25261, "s": 24852, "text": "Sampling is a method in which we collect or chosen a small set of data from a large population, without finding the meaning of every individual in set. We’re doing...
JavaScript input type=submit is not working?
To make it work, you can use onclick with input type = “submit”. Following is the code − <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1...
[ { "code": null, "e": 1127, "s": 1062, "text": "To make it work, you can use onclick with input type = “submit”." }, { "code": null, "e": 1151, "s": 1127, "text": "Following is the code −" }, { "code": null, "e": 2094, "s": 1151, "text": "<!DOCTYPE html>\n<html...
Find and Replace Pattern in Python
Suppose we have a list of words and a pattern, and we have to find which words in words matches the pattern. Here a word matches the pattern if there exists a permutation of letters p so that after replacing every letter x in the pattern with p(x), we get the target word. We have to find a list of the words in words th...
[ { "code": null, "e": 1410, "s": 1062, "text": "Suppose we have a list of words and a pattern, and we have to find which words in words matches the pattern. Here a word matches the pattern if there exists a permutation of letters p so that after replacing every letter x in the pattern with p(x), we g...
Writing and Executing Test Cases
In this chapter, we will learn how to write and execute test cases. We would cover the following areas in this chapter − Project Setup Importing Libraries Write test case in tabular format Using Tags for Executing Test Case Use Resource Files for Test Case Run the command ride.py to start RIDE IDE. ride.py Click on Fil...
[ { "code": null, "e": 2290, "s": 2169, "text": "In this chapter, we will learn how to write and execute test cases. We would cover the following areas in this chapter −" }, { "code": null, "e": 2304, "s": 2290, "text": "Project Setup" }, { "code": null, "e": 2324, ...
Console flush() method in Java with Examples - GeeksforGeeks
12 Jun, 2020 The flush() method of Console class in Java is used to flush the console and to force any buffered output to be written immediately. Syntax: public void flush() Specified By: This method is specified by flush() method of Flushable interface. Parameters: This method does not accept any parameter. Return va...
[ { "code": null, "e": 26015, "s": 25987, "text": "\n12 Jun, 2020" }, { "code": null, "e": 26148, "s": 26015, "text": "The flush() method of Console class in Java is used to flush the console and to force any buffered output to be written immediately." }, { "code": null, ...
How to get file size in Python? - GeeksforGeeks
21 Jan, 2021 We can follow different approaches to get the file size in Python. It’s important to get the file size in Python to monitor file size or in case of ordering files in the directory according to file size. Method 1: Using getsize function of os.path module This function takes a file path as an argument and ...
[ { "code": null, "e": 24390, "s": 24362, "text": "\n21 Jan, 2021" }, { "code": null, "e": 24595, "s": 24390, "text": "We can follow different approaches to get the file size in Python. It’s important to get the file size in Python to monitor file size or in case of ordering files ...
ASP.NET - Basic Controls
In this chapter, we will discuss the basic controls available in ASP.NET. ASP.NET provides three types of button control: Button : It displays text within a rectangular area. Button : It displays text within a rectangular area. Link Button : It displays text that looks like a hyperlink. Link Button : It displays text t...
[ { "code": null, "e": 2421, "s": 2347, "text": "In this chapter, we will discuss the basic controls available in ASP.NET." }, { "code": null, "e": 2469, "s": 2421, "text": "ASP.NET provides three types of button control:" }, { "code": null, "e": 2522, "s": 2469, ...
Python os.lseek() Method
Python method lseek() sets the current position of file descriptor fd to the given position pos, modified by how. Following is the syntax for lseek() method − os.lseek(fd, pos, how) fd − This is the file descriptor, which needs to be processed. fd − This is the file descriptor, which needs to be processed. pos − This ...
[ { "code": null, "e": 2358, "s": 2244, "text": "Python method lseek() sets the current position of file descriptor fd to the given position pos, modified by how." }, { "code": null, "e": 2403, "s": 2358, "text": "Following is the syntax for lseek() method −" }, { "code": n...
Knowledge graph completion with PyKEEN and Neo4j | by Tomaz Bratanic | Towards Data Science
A couple of weeks ago, I met Francois Vanderseypen, a Graph Data Science consultant. We decided to join forces and start a Graph Machine learning blog series. This blog post will present how to perform knowledge graph completion, which is simply a multi-class link prediction. Instead of just predicting a link, we are a...
[ { "code": null, "e": 524, "s": 172, "text": "A couple of weeks ago, I met Francois Vanderseypen, a Graph Data Science consultant. We decided to join forces and start a Graph Machine learning blog series. This blog post will present how to perform knowledge graph completion, which is simply a multi-c...
Angular Highcharts - Basic Bar Chart
Following is an example of a Bar Chart. We have already seen the configurations used to draw a chart in Highcharts Configuration Syntax chapter. Now, let us see an example of a basic bar chart. We will also understand additional configuration. We have changed the type attribute in chart. Configure the chart type to be ...
[ { "code": null, "e": 2075, "s": 2035, "text": "Following is an example of a Bar Chart." }, { "code": null, "e": 2324, "s": 2075, "text": "We have already seen the configurations used to draw a chart in Highcharts Configuration Syntax chapter. Now, let us see an example of a basic...
How to create a JavaFX slider?
JavaFX provides a class known as Slider, this represents a slider component that displays a continuous range of values. This contains a track on which the numerical values are displayed. Along the track, there is a thumb pointing to the numbers. You can provide the maximum, minimum and initial values of the slider. To...
[ { "code": null, "e": 1380, "s": 1062, "text": "JavaFX provides a class known as Slider, this represents a slider component that displays a continuous range of values. This contains a track on which the numerical values are displayed. Along the track, there is a thumb pointing to the numbers. You can...
8086 program to find GCD of two numbers and print the GCD - GeeksforGeeks
03 Jun, 2021 Problem: We are given two decimal numbers we have to find the GCD of two numbers and print the GCD in decimal format.Refer for finding GCD of two numbers. Examples: Input: d1 = 16, d2 = 24 Output: GCD = 8 Input: d1 = 12, d2 = 18 Output: GCD = 6 Explanation: Load value d1 in ax and d2 in bxCall the gcd ...
[ { "code": null, "e": 24415, "s": 24387, "text": "\n03 Jun, 2021" }, { "code": null, "e": 24570, "s": 24415, "text": "Problem: We are given two decimal numbers we have to find the GCD of two numbers and print the GCD in decimal format.Refer for finding GCD of two numbers." }, ...
What are the different categories of functions in C Programming?
Depending on whether arguments are present or not and whether a value is returned or not, functions are categorized into − Functions without arguments and without return values Functions without arguments and without return values Functions without arguments and with return values Functions without arguments and with r...
[ { "code": null, "e": 1185, "s": 1062, "text": "Depending on whether arguments are present or not and whether a value is returned or not, functions are categorized into −" }, { "code": null, "e": 1239, "s": 1185, "text": "Functions without arguments and without return values" },...