title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
There is No Argmax Function for Python List | by Eden Au | Towards Data Science
Dear Python programmers, Given a Python list l = [50, 99, 67, 99, 48], how do you find the argmax of the list? Turns out there is no built-in argmax function for Python list! You can’t just do argmax(l) or max(l).index. The first thing I can think of is to convert the list to a numpy array, or pandas DataFrame, or even...
[ { "code": null, "e": 196, "s": 171, "text": "Dear Python programmers," }, { "code": null, "e": 549, "s": 196, "text": "Given a Python list l = [50, 99, 67, 99, 48], how do you find the argmax of the list? Turns out there is no built-in argmax function for Python list! You can’t j...
Write a C program to reverse array
An array is a group of related items that store with a common name. The syntax is as follows for declaring an array − datatype array_name [size]; An array can also be initialized at the time of declaration − int a[5] = { 10,20,30,40,50}; We can reverse array by using swapping technique. For example, if 'P' is an array ...
[ { "code": null, "e": 1130, "s": 1062, "text": "An array is a group of related items that store with a common name." }, { "code": null, "e": 1180, "s": 1130, "text": "The syntax is as follows for declaring an array −" }, { "code": null, "e": 1208, "s": 1180, "t...
Implementing Customer Segmentation using RFM analysis with PySpark | Towards Data Science
Customer segmentation is a marketing tool to group your customers based on common characteristics so that you can focus and market to each group effectively and maximize the value of each customer to the business. Like so many other disciplines, in business as well, we see that old 80–20 rule. Where 80% of your revenue...
[ { "code": null, "e": 385, "s": 171, "text": "Customer segmentation is a marketing tool to group your customers based on common characteristics so that you can focus and market to each group effectively and maximize the value of each customer to the business." }, { "code": null, "e": 601,...
Tcl - Built-in Functions
Tcl provides a number of built-in functions (procedures) for various operations. This includes − Functions for list handling. Functions for list handling. Functions for string handling. Functions for string handling. Functions for array handling. Functions for array handling. Functions for dictionary handling. Function...
[ { "code": null, "e": 2298, "s": 2201, "text": "Tcl provides a number of built-in functions (procedures) for various operations. This includes −" }, { "code": null, "e": 2327, "s": 2298, "text": "Functions for list handling." }, { "code": null, "e": 2356, "s": 2327...
Group words with same set of characters
08 Jul, 2022 Given a list of words with lower cases. Implement a function to find all Words that have the same unique character set . Example: Input: words[] = { "may", "student", "students", "dog", "studentssess", "god", "cat", "act", "tab", "bat", "flow", "wolf", "lambs", ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 176, "s": 54, "text": "Given a list of words with lower cases. Implement a function to find all Words that have the same unique character set . " }, { "code": null, "e": 187, "s": 1...
How to Build an Application to Test Motion Sensors in Android?
28 Jan, 2021 In this article, we will be building a Motion Sensor Testing App Project using Java and XML in Android. The application will be using the hardware of the device to detect the movements. The components required to detect the motion are Accelerometer and Gyroscope. The Accelerometer is an electronic sensor u...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jan, 2021" }, { "code": null, "e": 622, "s": 28, "text": "In this article, we will be building a Motion Sensor Testing App Project using Java and XML in Android. The application will be using the hardware of the device to detect the ...
PyQt5 – How to create and get the name of Push Button ?
09 Feb, 2022 In this article we will see how to create and get the name of Push Button. When we design a GUI (Graphical User Interface) application we create lots of push button. In order to classify them we set names to them for examples names like “settings button”, “displaying button” etc.In order to create a name w...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Feb, 2022" }, { "code": null, "e": 495, "s": 28, "text": "In this article we will see how to create and get the name of Push Button. When we design a GUI (Graphical User Interface) application we create lots of push button. In order ...
Reverse a stack without using extra space in O(n)
24 Jun, 2022 Reverse a Stack without using recursion and extra space. Even the functional Stack is not allowed. Examples: Input : 1->2->3->4 Output : 4->3->2->1 Input : 6->5->4 Output : 4->5->6 We have discussed a way of reversing a stack in the below post.Reverse a Stack using Recursion The above solution requires...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 151, "s": 52, "text": "Reverse a Stack without using recursion and extra space. Even the functional Stack is not allowed." }, { "code": null, "e": 163, "s": 151, "text": "Exampl...
WeekFields weekOfYear() method in Java with Examples
29 Jan, 2020 The weekOfYear() method of WeekFields class is used to return a field to access the week of year based on this WeekFields.Example: if the 1st day of the year is a Monday, week one starts on the 1st and there is no week zero if the 2nd day of the year is a Monday, week one starts on the 2nd and the 1st is i...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jan, 2020" }, { "code": null, "e": 159, "s": 28, "text": "The weekOfYear() method of WeekFields class is used to return a field to access the week of year based on this WeekFields.Example:" }, { "code": null, "e": 252, ...
How to copy a file in Node.js?
04 Feb, 2021 Node.js is an open source and cross-platform runtime environment for executing JavaScript code outside a browser. There are various platforms such as Windows, Linux, Mac OS where Node.js runs. There are various methods used in Node.js such as readFile() and writeFile() method. The readFile() and writeFil...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Feb, 2021" }, { "code": null, "e": 223, "s": 28, "text": "Node.js is an open source and cross-platform runtime environment for executing JavaScript code outside a browser. There are various platforms such as Windows, Linux, Mac OS w...
MongoDB – db.collection.CreateIndex() Method
29 Jun, 2022 In MongoDB, indexes are special data structures that store some information related to the documents such that it becomes easy for MongoDB to find the right data file. The indexes are ordered by the value of the field specified in the index. So, MongoDB provides a createIndex() method to create one or more...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2022" }, { "code": null, "e": 672, "s": 28, "text": "In MongoDB, indexes are special data structures that store some information related to the documents such that it becomes easy for MongoDB to find the right data file. The ind...
Tcl - Bitwise Operators
The Bitwise operators supported by Tcl language are listed in the following table. Assume variable A holds 60 and variable B holds 13, then − Try the following example to understand all the bitwise operators available in Tcl language − #!/usr/bin/tclsh set a 60 ;# 60 = 0011 1100 set b 13 ;# 13 = 0000 1101 set c...
[ { "code": null, "e": 2477, "s": 2335, "text": "The Bitwise operators supported by Tcl language are listed in the following table. Assume variable A holds 60 and variable B holds 13, then −" }, { "code": null, "e": 2571, "s": 2477, "text": "Try the following example to understand ...
Calculate the Median Absolute Deviation in R Programming – mad() Function
24 Jun, 2020 mad() function in R Language is used to compute the median absolute deviation i.e. the (lo-/hi-)median of the absolute deviations from the median. Syntax: mad(x) Parameters:x: Vector Example 1: # R Program to calculate # Median Absolute Deviation # Creating a vectorx <- c(1:9) # Calling mad() Functionmad...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jun, 2020" }, { "code": null, "e": 175, "s": 28, "text": "mad() function in R Language is used to compute the median absolute deviation i.e. the (lo-/hi-)median of the absolute deviations from the median." }, { "code": null, ...
Wine Quality Prediction – Machine Learning
17 Feb, 2022 Here we will predict the quality of wine on the basis of giving features. We use the wine quality dataset from Kaggle. This dataset has the fundamental features which are responsible for affecting the quality of the wine. By the use of several Machine learning models, we will predict the quality of the win...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Feb, 2022" }, { "code": null, "e": 518, "s": 52, "text": "Here we will predict the quality of wine on the basis of giving features. We use the wine quality dataset from Kaggle. This dataset has the fundamental features which are res...
Java.io.FileDescriptor in Java
30 Dec, 2021 java.io.FileDescriptor works for opening a file having a specific name. If there is any content present in that file it will first erase all that content and put “Beginning of Process” as the first line. Instances of the file descriptor class serve as an opaque handle to the underlying machine-specific str...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2021" }, { "code": null, "e": 422, "s": 28, "text": "java.io.FileDescriptor works for opening a file having a specific name. If there is any content present in that file it will first erase all that content and put “Beginning of...
Fortran - Vector and Matrix Multiplication Functions
The following table describes the vector and matrix multiplication functions: Example The following example demonstrates dot product: program arrayDotProduct real, dimension(5) :: a, b integer:: i, asize, bsize asize = size(a) bsize = size(b) do i = 1, asize a(i) = i end do do i ...
[ { "code": null, "e": 2358, "s": 2280, "text": "The following table describes the vector and matrix multiplication functions:" }, { "code": null, "e": 2366, "s": 2358, "text": "Example" }, { "code": null, "e": 2414, "s": 2366, "text": "The following example dem...
Python any() function
13 Sep, 2021 Python any() function returns True if any of the elements of a given iterable( List, Dictionary, Tuple, set, etc) are True else it returns False. Syntax: any(iterable) Parameters: Iterable: It is an iterable object such as a dictionary, tuple, list, set, etc. Returns: Python any() functio...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Sep, 2021" }, { "code": null, "e": 175, "s": 28, "text": "Python any() function returns True if any of the elements of a given iterable( List, Dictionary, Tuple, set, etc) are True else it returns False. " }, { "code": null, ...
Difference between Int16, Int32 and Int64 in C# - GeeksforGeeks
26 May, 2020 Int16: This Struct is used to represents 16-bit signed integer. The Int16 can store both types of values including negative and positive between the ranges of -32768 to +32767. Example : C# // C# program to show the// Int16 Struct usage using System;using System.Text; publicclass GFG { // Main Method ...
[ { "code": null, "e": 24466, "s": 24438, "text": "\n26 May, 2020" }, { "code": null, "e": 24643, "s": 24466, "text": "Int16: This Struct is used to represents 16-bit signed integer. The Int16 can store both types of values including negative and positive between the ranges of -327...
Arista Networks Interview Experience for FTE (On-Campus) - GeeksforGeeks
16 Nov, 2020 Recently Arista Networks visited our campus. Min CGPA requirement was 8. There was an online coding test followed by 3 FTF interviews on G-meet. Round 1: Online coding round conducted on Hacker Rank(1.5 hours) (Allowed Languages- C, CPP) Minimum time required to reach a given cell (x, y) from (0,0). A part...
[ { "code": null, "e": 26397, "s": 26369, "text": "\n16 Nov, 2020" }, { "code": null, "e": 26542, "s": 26397, "text": "Recently Arista Networks visited our campus. Min CGPA requirement was 8. There was an online coding test followed by 3 FTF interviews on G-meet." }, { "cod...
Python - Find all combinations of overlapping substrings of a string - GeeksforGeeks
29 Jun, 2021 Given a string, the task is to write a Python program to find all combinations of overlapping substrings of a string and store it in a list. The list of lists will be ordered and grouped by length of substrings. Input : test_str = ‘Geeks4G’ Output : [[”, ”, ”, ”, ”, ”, ”, ”], [‘G’, ‘e’, ‘e’, ‘k’, ‘s’, ‘4’,...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n29 Jun, 2021" }, { "code": null, "e": 25767, "s": 25555, "text": "Given a string, the task is to write a Python program to find all combinations of overlapping substrings of a string and store it in a list. The list of lists will...
Write a program to add two numbers in base 14 - GeeksforGeeks
18 Feb, 2022 Asked by Anshya.Below are the different ways to add base 14 numbers.Method 1 Thanks to Raj for suggesting this method. 1. Convert both i/p base 14 numbers to base 10. 2. Add numbers. 3. Convert the result back to base 14. Method 2 Just add the numbers in base 14 in the same way we add in base 10. Ad...
[ { "code": null, "e": 35951, "s": 35923, "text": "\n18 Feb, 2022" }, { "code": null, "e": 36071, "s": 35951, "text": "Asked by Anshya.Below are the different ways to add base 14 numbers.Method 1 Thanks to Raj for suggesting this method. " }, { "code": null, "e": 36180,...
WCF - Transactions
A transaction in WCF is a set of operations that follow some properties, collectively known as ACID. Here, if a single operation fails, the entire system fails automatically. When an order is placed online, a transaction takes place. The following example can be helpful to understand the process of transaction in simpl...
[ { "code": null, "e": 2254, "s": 1924, "text": "A transaction in WCF is a set of operations that follow some properties, collectively known as ACID. Here, if a single operation fails, the entire system fails automatically. When an order is placed online, a transaction takes place. The following examp...
ELT Data Pipelining in Snowflake Data Warehouse — using Streams and Tasks | by Christopher Tao | Towards Data Science
In my previous post: Building Snowpipe on Azure Blob Storage Using Azure Portal Web UI for Snowflake Data Warehouse https://medium.com/@qiuyujx/building-snowpipe-on-azure-blob-storage-using-azure-portal-web-ui-for-snowflake-data-warehouse-f0cdd7997250 Snowpipe was introduced to be utilised for automatically discovering...
[ { "code": null, "e": 193, "s": 172, "text": "In my previous post:" }, { "code": null, "e": 288, "s": 193, "text": "Building Snowpipe on Azure Blob Storage Using Azure Portal Web UI for Snowflake Data Warehouse" }, { "code": null, "e": 424, "s": 288, "text": "h...
How to get ArrayList from Stream in Java 8 - GeeksforGeeks
11 Dec, 2018 Given a Stream, the task is to convert this Stream into ArrayList in Java 8. Examples: Input: Stream: [1, 2, 3, 4, 5] Output: ArrayList: [1, 2, 3, 4, 5] Input: Stream: ['G', 'e', 'e', 'k', 's'] Output: ArrayList: ['G', 'e', 'e', 'k', 's'] Using Collectors.toList() method:Get the Stream to be converted.Co...
[ { "code": null, "e": 23867, "s": 23839, "text": "\n11 Dec, 2018" }, { "code": null, "e": 23944, "s": 23867, "text": "Given a Stream, the task is to convert this Stream into ArrayList in Java 8." }, { "code": null, "e": 23954, "s": 23944, "text": "Examples:" ...
Create an App to Deal with Boredom Using PyWebIO | by Khuyen Tran | Towards Data Science
Have you ever been so bored that you searched on Google: “What to do when being bored?” Wouldn’t it be nice if you can create an app that suggests users a random activity for the day and books related to that activity using Python? You can play with the app shown above here. In this article, I will show you how to crea...
[ { "code": null, "e": 403, "s": 171, "text": "Have you ever been so bored that you searched on Google: “What to do when being bored?” Wouldn’t it be nice if you can create an app that suggests users a random activity for the day and books related to that activity using Python?" }, { "code": n...
Parsing fitness tracker data with Python | by Alan Bunbury | Towards Data Science
It is now very common to use fitness tracking apps and devices (like Garmin, FitBit, Strava, etc) to track your exercise, particularly cardio activities such as running and cycling. There are plenty of phone and web apps out there that allow you to view and analyse your activities in increasingly sophisticated ways. So...
[ { "code": null, "e": 649, "s": 172, "text": "It is now very common to use fitness tracking apps and devices (like Garmin, FitBit, Strava, etc) to track your exercise, particularly cardio activities such as running and cycling. There are plenty of phone and web apps out there that allow you to view a...
File System Consistency Checker (FSCK) - GeeksforGeeks
11 Jul, 2019 File system inconsistency is a major issue in operating systems. FSCK is one of the standard solutions adopted. File System Consistency Checker (FSCK):FSCK is one approach still used by older Linux-based systems to find and repair inconsistencies. It is not a complete solution and may still have inodes poi...
[ { "code": null, "e": 24101, "s": 24073, "text": "\n11 Jul, 2019" }, { "code": null, "e": 24213, "s": 24101, "text": "File system inconsistency is a major issue in operating systems. FSCK is one of the standard solutions adopted." }, { "code": null, "e": 24494, "s"...
Flask – Routing
Modern web frameworks use the routing technique to help a user remember application URLs. It is useful to access the desired page directly without having to navigate from the home page. The route() decorator in Flask is used to bind URL to a function. For example − @app.route(‘/hello’) def hello_world(): return ‘hel...
[ { "code": null, "e": 2219, "s": 2033, "text": "Modern web frameworks use the routing technique to help a user remember application URLs. It is useful to access the desired page directly without having to navigate from the home page." }, { "code": null, "e": 2299, "s": 2219, "text...
Java Program to list Weekday names
To list weekday names, use the getWeekdays () from the DateFormatSymbols class in Java. DateFormatSymbols is a class for encapsulating localizable date-time formatting data. Get weekday month names in an array − String[] days = new DateFormatSymbols().getWeekdays (); Display the weekdays − for (int i = 0; i < days.leng...
[ { "code": null, "e": 1150, "s": 1062, "text": "To list weekday names, use the getWeekdays () from the DateFormatSymbols class in Java." }, { "code": null, "e": 1236, "s": 1150, "text": "DateFormatSymbols is a class for encapsulating localizable date-time formatting data." }, ...
Python 3 - Number ceil() Method
The ceil() method returns the ceiling value of x i.e. the smallest integer not less than x. Following is the syntax for the ceil() method − import math math.ceil( x ) Note − This function is not accessible directly, so we need to import math module and then we need to call this function using the math static object. ...
[ { "code": null, "e": 2432, "s": 2340, "text": "The ceil() method returns the ceiling value of x i.e. the smallest integer not less than x." }, { "code": null, "e": 2480, "s": 2432, "text": "Following is the syntax for the ceil() method −" }, { "code": null, "e": 2509,...
JSP - Client Request
In this chapter, we will discuss Client Request in JSP. When a browser requests for a Webpage, it sends a lot of information to the web server. This information cannot be read directly because this information travels as a part of header of HTTP request. You can check HTTP Protocol for more information on this. Followi...
[ { "code": null, "e": 2552, "s": 2239, "text": "In this chapter, we will discuss Client Request in JSP. When a browser requests for a Webpage, it sends a lot of information to the web server. This information cannot be read directly because this information travels as a part of header of HTTP request...
Formatting strings and numbers in python | by Lars Nielsen | Towards Data Science
Most of the time, a sample print() statement might lead to messy code. And sometimes you do not need a logger to handle the job. Python offers different output options to deal with your string outputs. Here are a few print(“Some text %s some text %s some text “ %(str1,str2)) str1 and str2 takes the place of %s and %s i...
[ { "code": null, "e": 389, "s": 172, "text": "Most of the time, a sample print() statement might lead to messy code. And sometimes you do not need a logger to handle the job. Python offers different output options to deal with your string outputs. Here are a few" }, { "code": null, "e": 4...
GATE | GATE-CS-2015 (Set 2) | Question 13 - GeeksforGeeks
11 Oct, 2021 Consider the following two statements. S1: If a candidate is known to be corrupt, then he will not be elected. S2: If a candidate is kind, he will be elected. Which one of the following statements follows from S1 and S2 as per sound inference rules of logic?(A) If a person is known to be corrupt, he is kin...
[ { "code": null, "e": 24412, "s": 24384, "text": "\n11 Oct, 2021" }, { "code": null, "e": 24451, "s": 24412, "text": "Consider the following two statements." }, { "code": null, "e": 24571, "s": 24451, "text": "S1: If a candidate is known to be corrupt, then he ...
How to use mailto in HTML ? - GeeksforGeeks
21 Feb, 2022 In this article, we will learn how to mailto links to send a mail in HTML. Mailto link is a default way to sending a mail when the consumer wants to communicate or wants to give feedback, then clicking the mailto link will open a default sending mail window. So we can use mailto which directs us to the mai...
[ { "code": null, "e": 24894, "s": 24866, "text": "\n21 Feb, 2022" }, { "code": null, "e": 25468, "s": 24894, "text": "In this article, we will learn how to mailto links to send a mail in HTML. Mailto link is a default way to sending a mail when the consumer wants to communicate or...
Conceptual vs in-built Principal Component Analysis for Breast Cancer Diagnosis | by Debangana Mallick | Towards Data Science
To fit the concept of eigenvalues, eigenvectors and python inbuilt function in PCA followed by the ML models to measure advanced accuracy parameters for breast cancer (Wisconsin) dataset. Use of 2 clustering and 4 classification models for analysis. Introduction: We, the Data Science enthusiasts, passionate about explo...
[ { "code": null, "e": 422, "s": 172, "text": "To fit the concept of eigenvalues, eigenvectors and python inbuilt function in PCA followed by the ML models to measure advanced accuracy parameters for breast cancer (Wisconsin) dataset. Use of 2 clustering and 4 classification models for analysis." },...
JavaScript - Syntax
JavaScript can be implemented using JavaScript statements that are placed within the <script>... </script> HTML tags in a web page. You can place the <script> tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the <head> tags. The <script> tag ...
[ { "code": null, "e": 2598, "s": 2466, "text": "JavaScript can be implemented using JavaScript statements that are placed within the <script>... </script> HTML tags in a web page." }, { "code": null, "e": 2769, "s": 2598, "text": "You can place the <script> tags, containing your J...
Pandas tips and tricks. This post includes some useful tips for... | by Shir Meir Lador | Towards Data Science
This post includes some useful tips for how to use Pandas for efficiently preprocessing and feature engineering from large datasets. Pandas has an apply function which let you apply just about any function on all the values in a column. Note that apply is just a little bit faster than a python for loop! That’s why it i...
[ { "code": null, "e": 305, "s": 172, "text": "This post includes some useful tips for how to use Pandas for efficiently preprocessing and feature engineering from large datasets." }, { "code": null, "e": 906, "s": 305, "text": "Pandas has an apply function which let you apply just...
How to Find Linux Server Geographic Location in Terminal?
For purpose of security, cyber-crime investigation, government compliance or just for curiosity we might ned to track the geographical location of a Linux server in the internet or at least the location of the server which diverts the internet traffic to the server we are interested in. It involves getting the I.P addr...
[ { "code": null, "e": 1556, "s": 1062, "text": "For purpose of security, cyber-crime investigation, government compliance or just for curiosity we might ned to track the geographical location of a Linux server in the internet or at least the location of the server which diverts the internet traffic t...
Python - Filter Sorted Rows - GeeksforGeeks
16 Nov, 2020 Given a Matrix, extract rows that are sorted, either by ascending or descending. Input : test_list = [[3, 6, 8, 10], [1, 8, 2, 4, 3], [8, 5, 3, 2], [1, 4, 5, 3]] Output : [[3, 6, 8, 10], [8, 5, 3, 2]] Explanation : Both lists are ordered, 1st ascending, second descending. Input : test_list = [[3, 6, 8, 10]...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n16 Nov, 2020" }, { "code": null, "e": 24373, "s": 24292, "text": "Given a Matrix, extract rows that are sorted, either by ascending or descending." }, { "code": null, "e": 24565, "s": 24373, "text": "Input : t...
C++ Vector Library - vector() Function
The C++ fill constructor std::vector::vector() constructs a container of size n and assigns value val(if provided) to each element of the container. Following is the declaration for fill constructor std::vector::vector() form std::vector header. explicit vector (size_type n, const value_type& val = value_type(), co...
[ { "code": null, "e": 2752, "s": 2603, "text": "The C++ fill constructor std::vector::vector() constructs a container of size n and assigns value val(if provided) to each element of the container." }, { "code": null, "e": 2849, "s": 2752, "text": "Following is the declaration for ...
Using G++ to compile multiple .cpp and .h files
To compile multiple files like file_name.h, or file_name.cpp at once, we can use the files like a list one after another. The syntax will be like this − g++ abc.h xyz.cpp To run the program, we can use this − ./a.out float area(float r){ return (3.1415*r*r); //area of a circle } float area(float l, float w){ retu...
[ { "code": null, "e": 1215, "s": 1062, "text": "To compile multiple files like file_name.h, or file_name.cpp at once, we can use the files like a list one after another. The syntax will be like this −" }, { "code": null, "e": 1233, "s": 1215, "text": "g++ abc.h xyz.cpp" }, { ...
Transactional memory
Transactional memory originated in database theory, provides an alternative strategy for process synchronization. A memory transaction is atomic is a sequence of memory read–write operations. The memory transaction is committed, if all operations in a transaction are completed. Otherwise, the operations must be aborted...
[ { "code": null, "e": 1176, "s": 1062, "text": "Transactional memory originated in database theory, provides an alternative strategy for process synchronization." }, { "code": null, "e": 1687, "s": 1176, "text": "A memory transaction is atomic is a sequence of memory read–write op...
Sort numbers stored on different machines - GeeksforGeeks
07 Aug, 2019 Given N machines. Each machine contains some numbers in sorted form. But the amount of numbers, each machine has is not fixed. Output the numbers from all the machine in sorted non-decreasing form.Example: Machine M1 contains 3 numbers: {30, 40, 50} Machine M2 contains 2 numbers: {35, 45} ...
[ { "code": null, "e": 25008, "s": 24980, "text": "\n07 Aug, 2019" }, { "code": null, "e": 25214, "s": 25008, "text": "Given N machines. Each machine contains some numbers in sorted form. But the amount of numbers, each machine has is not fixed. Output the numbers from all the mach...
How to Build a Relational Database from CSV Files Using Python and Heroku | by Niels G. | Towards Data Science
For smaller projects, CSV is a great format for storing data. But what if you want to up your data management game? A relational database offers a more robust way to organise and manage your data. In this post, I show how you can transform your CSV files into a PostgreSQL database in three simple steps. I’ll also discu...
[ { "code": null, "e": 546, "s": 171, "text": "For smaller projects, CSV is a great format for storing data. But what if you want to up your data management game? A relational database offers a more robust way to organise and manage your data. In this post, I show how you can transform your CSV files ...
How to load large Objects in Python Classes efficiently. | Towards Data Science
Thanks to open-sourced machine learning frameworks, everybody can integrate powerful (and large) models into data pipelines. The opportunity to do this creates challenges that most data scientists are not equipped to deal with. This blog post addresses one of these: how do you build your code in a way that integrates s...
[ { "code": null, "e": 561, "s": 172, "text": "Thanks to open-sourced machine learning frameworks, everybody can integrate powerful (and large) models into data pipelines. The opportunity to do this creates challenges that most data scientists are not equipped to deal with. This blog post addresses on...
MySQL - DESCRIBE Statement
You can get the information about the table structure using the DESCRIBE statement. This statement works as a shortcut for SHOW COLUMNS. You can also use DESC for this statement. Following is the syntax of the DESCRIBE statement − DESCRIBE DESC tbl_name [col_name | wild] Assume we have created a table with name Sales ...
[ { "code": null, "e": 2512, "s": 2333, "text": "You can get the information about the table structure using the DESCRIBE statement. This statement works as a shortcut for SHOW COLUMNS. You can also use DESC for this statement." }, { "code": null, "e": 2564, "s": 2512, "text": "Fol...
How Do You Define Bandwidth and Throughput in Wireless Communications?
A wireless communication link is specified or characterized in terms of some performance metrics. We call these performance metrics as 'Quality of Service' (QoS) metrics or parameters. Some of the major QoS parameters include bandwidth, throughput, jitter, latency and bit error rate. Bandwidth is a popular term used in...
[ { "code": null, "e": 1347, "s": 1062, "text": "A wireless communication link is specified or characterized in terms of some performance metrics. We call these performance metrics as 'Quality of Service' (QoS) metrics or parameters. Some of the major QoS parameters include bandwidth, throughput, jitt...
SQL - SORTING Results
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 which would be used to sort the result in an ascending or descending order is as follows − SELE...
[ { "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": 2769, "s": 2638, "text"...
Explain the concept of pointers in C language
The pointer is a variable that stores the address of another variable. Pointer saves the memory space. Pointer saves the memory space. The execution time of a pointer is faster because it directly accesses to memory location. The execution time of a pointer is faster because it directly accesses to memory location. The...
[ { "code": null, "e": 1133, "s": 1062, "text": "The pointer is a variable that stores the address of another variable." }, { "code": null, "e": 1165, "s": 1133, "text": "Pointer saves the memory space." }, { "code": null, "e": 1197, "s": 1165, "text": "Pointer ...
Display the alternate rows from MySQL table
Theory of Computation To display alternate records from MYSQL table, suppose we have the following records - CREATE TABLE IF NOT EXISTS `empdata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(25) NOT NULL, `email` varchar(100) NOT NULL, `phone` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_I...
[ { "code": null, "e": 112, "s": 90, "text": "Theory of Computation" }, { "code": null, "e": 199, "s": 112, "text": "To display alternate records from MYSQL table, suppose we have the following records -" }, { "code": null, "e": 445, "s": 199, "text": "CREATE TA...
Beautiful and Easy Plotting in Python — Pandas + Bokeh | by Christopher Tao | Towards Data Science
Although Matplotlib can satisfy all our needs when we want to plot something in Python, it is sometimes time-consuming to create a beautiful chart using it. Well, sometimes we may want to demonstrate something to the boss so that it would be nice to have some beautiful and interactive plots. There are a lot of excellen...
[ { "code": null, "e": 464, "s": 171, "text": "Although Matplotlib can satisfy all our needs when we want to plot something in Python, it is sometimes time-consuming to create a beautiful chart using it. Well, sometimes we may want to demonstrate something to the boss so that it would be nice to have ...
Lex program for Decimal to Hexadecimal Conversion - GeeksforGeeks
30 Apr, 2019 Problem: Write a Lex program for Decimal to Hexadecimal conversion. Explanation:Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language. The function yylex() is the main flex function which runs the Rule Section. Prerequisite: F...
[ { "code": null, "e": 24850, "s": 24822, "text": "\n30 Apr, 2019" }, { "code": null, "e": 24918, "s": 24850, "text": "Problem: Write a Lex program for Decimal to Hexadecimal conversion." }, { "code": null, "e": 25142, "s": 24918, "text": "Explanation:Lex reads ...
C++ Program to Implement Queue
The queue which is implemented as FIFO where insertions are done at one end (rear) and deletions are done from another end (front). The first element that entered is deleted first. Queue operations are − EnQueue (int data) − Insertion at rear end int DeQueue()− Deletion from front end This is a C++ program to implement...
[ { "code": null, "e": 1243, "s": 1062, "text": "The queue which is implemented as FIFO where insertions are done at one end (rear) and deletions are done from another end (front). The first element that entered is deleted first." }, { "code": null, "e": 1266, "s": 1243, "text": "Q...
How I can show JavaScript alert box in the middle of the screen?
To show the JavaScript alert box in the middle, you need to use the custom alert box. Under that, style it accordingly and position it to the center. Use the “top” and “left” CSS properties to achieve this. Set them as 50%, but as you can see a button below, use the property to 40% to align it with the button: Live Dem...
[ { "code": null, "e": 1374, "s": 1062, "text": "To show the JavaScript alert box in the middle, you need to use the custom alert box. Under that, style it accordingly and position it to the center. Use the “top” and “left” CSS properties to achieve this. Set them as 50%, but as you can see a button b...
How can I store JavaScript objects in cookies?
To store JavaScript objects in cookies, use JSON stringify. It is used to convert a JavaScript value to a JSON string. The following code snippet to learn how to store JavaScript objects in cookies − (function(){ var myObject = JSON.parse('{"id":1,"gender":"male"}'); var e = 'Thu Nov 26 2017 15:44:38'; document.c...
[ { "code": null, "e": 1181, "s": 1062, "text": "To store JavaScript objects in cookies, use JSON stringify. It is used to convert a JavaScript value to a JSON string." }, { "code": null, "e": 1262, "s": 1181, "text": "The following code snippet to learn how to store JavaScript obj...
What is "not in" operator in Python?
In Python 'not in' membership operator evaluates to true if it does not finds a variable in the specified sequence and false otherwise. For example >>> a = 10 >>> b = 4 >>> l1 = [1,2,3,4,5] >>> a not in l1 True >>> b not in l1 False Since 'a' doesn't belong to l1, a not in b returns True. However, b can be found in l1,...
[ { "code": null, "e": 1210, "s": 1062, "text": "In Python 'not in' membership operator evaluates to true if it does not finds a variable in the specified sequence and false otherwise. For example" }, { "code": null, "e": 1295, "s": 1210, "text": ">>> a = 10\n>>> b = 4\n>>> l1 = [1...
Find first set bit | Practice | GeeksforGeeks
Given an integer an N. The task is to return the position of first set bit found from the right side in the binary representation of the number. Note: If there is no set bit in the integer N, then return 0 from the function. Example 1: Input: N = 18 Output: 2 Explanation: Binary representation of 18 is 010010,the fi...
[ { "code": null, "e": 465, "s": 238, "text": "Given an integer an N. The task is to return the position of first set bit found from the right side in the binary representation of the number.\nNote: If there is no set bit in the integer N, then return 0 from the function. " }, { "code": null,...
PyQt5 QSpinBox - Blocking Signals - GeeksforGeeks
17 May, 2020 In this article we will see how we can block the signals of the spin box, blocking signals means the connected methods with the spin box will not receive the signals for example when we add action to it when its value changes that action will not work. Signals emitted while being blocked are not buffered. ...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n17 May, 2020" }, { "code": null, "e": 24519, "s": 24212, "text": "In this article we will see how we can block the signals of the spin box, blocking signals means the connected methods with the spin box will not receive the signa...
How to import excel file and find a specific column using Pandas? - GeeksforGeeks
05 Sep, 2020 In this article, we will learn how to import an excel file into a data frame and find the specific column. Let’s suppose our excel file looks like this. Sample_data.xlsx Excel sheet Link: https://drive.google.com/file/d/1x-S0z-gTo–H8byN12_MWLawlCXfMZkm/view?usp=sharing Approach : Import Pandas program Crea...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n05 Sep, 2020" }, { "code": null, "e": 25690, "s": 25537, "text": "In this article, we will learn how to import an excel file into a data frame and find the specific column. Let’s suppose our excel file looks like this." }, { ...
Maximum elements that can be made equal with k updates | Set 2 - GeeksforGeeks
27 Jan, 2022 Given an array nums[] and a value k. The task is to find the maximum elements that can be made equal with at most k updates/increments. Examples: Input : nums[] = { 2, 4, 9 }, k = 3 Output : 2 We are allowed to do at most three increments. We can make two elements 4 by increasing 2 by 2. Note that we can n...
[ { "code": null, "e": 26325, "s": 26297, "text": "\n27 Jan, 2022" }, { "code": null, "e": 26461, "s": 26325, "text": "Given an array nums[] and a value k. The task is to find the maximum elements that can be made equal with at most k updates/increments." }, { "code": null,...
How Does ConcurrentHashMap Achieve Thread-Safety in Java? - GeeksforGeeks
17 Feb, 2022 ConcurrentHashMap is a hash table supporting full concurrency of retrievals and high expected concurrency for updates. This class obeys the same functional specifications as Hashtable and includes all methods of Hashtable. ConcurrentHashMap is in java.util.Concurrent package. Syntax: public class Concurren...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n17 Feb, 2022" }, { "code": null, "e": 25502, "s": 25225, "text": "ConcurrentHashMap is a hash table supporting full concurrency of retrievals and high expected concurrency for updates. This class obeys the same functional specifi...
Lexicographically largest string for given dictionary order - GeeksforGeeks
12 Jun, 2021 Given an array arr[] of N strings and a string order which represents the new alphabetical order of the string. The task is to find the lexicographically largest string based on the given order. Examples: Input: a[] = {“abc”, “abd”, “abz”}, order = “abczdefghijklmnopqrstuvwxy” Output: abd Explanation:Compa...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n12 Jun, 2021" }, { "code": null, "e": 26236, "s": 26041, "text": "Given an array arr[] of N strings and a string order which represents the new alphabetical order of the string. The task is to find the lexicographically largest s...
is_selected() element method - Selenium Python - GeeksforGeeks
27 Apr, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 25865, "s": 25837, "text": "\n27 Apr, 2020" }, { "code": null, "e": 26422, "s": 25865, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi...
Node.js fsPromises.readFile() Method - GeeksforGeeks
08 Oct, 2021 The fsPromises.readFile() method is used to read the file. This method read the entire file into buffer. To load the fs module, we use require() method. It Asynchronously reads the entire contents of a file. Syntax: fsPromises.readFile( path, options ) Parameters: The method accept two parameters as mentio...
[ { "code": null, "e": 25869, "s": 25841, "text": "\n08 Oct, 2021" }, { "code": null, "e": 26077, "s": 25869, "text": "The fsPromises.readFile() method is used to read the file. This method read the entire file into buffer. To load the fs module, we use require() method. It Asynchr...
p5.js | sphere() function - GeeksforGeeks
22 Apr, 2019 The sphere() function in p5.js is used to draw a sphere with given radius. Syntax: sphere( radius ) Parameters: This function accepts single parameter radius which stores the radius of the sphere. Below programs illustrate the sphere() function in p5.js: Example 1: This example uses sphere() function to dr...
[ { "code": null, "e": 26627, "s": 26599, "text": "\n22 Apr, 2019" }, { "code": null, "e": 26702, "s": 26627, "text": "The sphere() function in p5.js is used to draw a sphere with given radius." }, { "code": null, "e": 26710, "s": 26702, "text": "Syntax:" }, ...
Python | Size of string in memory - GeeksforGeeks
07 Jun, 2019 While working with strings, sometimes, we require to get the size of the string, i.e the length of it. But there can be situations in which we require to get the size that the string takes in bytes usually useful in case one is working with files. Let’s discuss certain ways in which this can be performed. ...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n07 Jun, 2019" }, { "code": null, "e": 25854, "s": 25547, "text": "While working with strings, sometimes, we require to get the size of the string, i.e the length of it. But there can be situations in which we require to get the s...
Find sum of the series 1+22+333+4444+...... upto n terms - GeeksforGeeks
25 Mar, 2021 Given a number N. The task is to find the sum of the below series up to N-th term: 1 + 22 + 333 + 4444 + ...up to n terms Examples: Input: N = 3 Output: 356 Input: N = 10 Output: 12208504795 Approach: Below is the implementation of the above approach: C++ Java Python 3 C# PHP Javascript // CP...
[ { "code": null, "e": 26921, "s": 26893, "text": "\n25 Mar, 2021" }, { "code": null, "e": 27005, "s": 26921, "text": "Given a number N. The task is to find the sum of the below series up to N-th term: " }, { "code": null, "e": 27044, "s": 27005, "text": "1 + 22...
Strobogrammatic number - GeeksforGeeks
16 Oct, 2019 For the given length n, find all n-length Strobogrammatic numbers. Strobogrammatic Number is a number whose numeral is rotationally symmetric so that it appears the same when rotated 180 degrees. In other words, Strobogrammatic Number appears the same right-side up and upside down. 0 after 180° rotation : ...
[ { "code": null, "e": 25965, "s": 25937, "text": "\n16 Oct, 2019" }, { "code": null, "e": 26032, "s": 25965, "text": "For the given length n, find all n-length Strobogrammatic numbers." }, { "code": null, "e": 26248, "s": 26032, "text": "Strobogrammatic Number ...
CPU Scheduling in Operating Systems - GeeksforGeeks
28 Jun, 2021 Scheduling of processes/work is done to finish the work on time. Below are different time with respect to a process. Arrival Time: Time at which the process arrives in the ready queue.Completion Time: Time at which process completes its execution.Burst Time: Time required by a process for CPU execution.Tur...
[ { "code": null, "e": 29429, "s": 29401, "text": "\n28 Jun, 2021" }, { "code": null, "e": 29494, "s": 29429, "text": "Scheduling of processes/work is done to finish the work on time." }, { "code": null, "e": 29546, "s": 29494, "text": "Below are different time ...
Python - PyTorch exp() method - GeeksforGeeks
26 May, 2020 PyTorch torch.exp() method returns a new tensor after getting the exponent of the elements of the input tensor. Syntax: torch.exp(input, out=None) Arguments input: This is input tensor. out: The output tensor. Return: It returns a Tensor. # Importing the PyTorch library import torch # A constant tensor...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n26 May, 2020" }, { "code": null, "e": 25649, "s": 25537, "text": "PyTorch torch.exp() method returns a new tensor after getting the exponent of the elements of the input tensor." }, { "code": null, "e": 25684, "s"...
Spring MVC using Java based configuration - GeeksforGeeks
11 Mar, 2022 Prerequisites: MVC Design Pattern, Spring MVC with JSP ViewSpring MVC framework enables separation of modules namely Model, View and Controller and seamlessly handles the application integration. This enables the developer to create complex applications also using plain java classes. The model object can b...
[ { "code": null, "e": 25771, "s": 25743, "text": "\n11 Mar, 2022" }, { "code": null, "e": 26324, "s": 25771, "text": "Prerequisites: MVC Design Pattern, Spring MVC with JSP ViewSpring MVC framework enables separation of modules namely Model, View and Controller and seamlessly hand...
jQuery | grep() Method - GeeksforGeeks
16 Apr, 2020 This grep() method in jQuery is used to finds the elements of an array that satisfies a filter function. Syntax: jQuery.grep(array, function(element, index) [, invert]) Parameters: This method accepts two parameters as mentioned above and described below: array: This parameter holds the array like object ...
[ { "code": null, "e": 25922, "s": 25894, "text": "\n16 Apr, 2020" }, { "code": null, "e": 26027, "s": 25922, "text": "This grep() method in jQuery is used to finds the elements of an array that satisfies a filter function." }, { "code": null, "e": 26035, "s": 26027...
Anonymous Union and Structure in C - GeeksforGeeks
06 Oct, 2021 In C11 standard of C, anonymous Unions and structures were added. Anonymous unions/structures are also known as unnamed unions/structures as they don’t have names. Since there is no names, direct objects(or variables) of them are not created and we use them in nested structure or unions. Definition is just...
[ { "code": null, "e": 25649, "s": 25621, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26027, "s": 25649, "text": "In C11 standard of C, anonymous Unions and structures were added. Anonymous unions/structures are also known as unnamed unions/structures as they don’t have names....
What is MDS? MDS with other distances , Field of usage of Multidimensional Scaling | Towards Data Science
Dimensionality reduction methods allow examining the dataset in another axis according to the relationship between various parameters such as correlation, distance, variance in datasets with many features. After this stage, operations such as classification are performed on the dataset with supervised or unsupervised l...
[ { "code": null, "e": 1286, "s": 172, "text": "Dimensionality reduction methods allow examining the dataset in another axis according to the relationship between various parameters such as correlation, distance, variance in datasets with many features. After this stage, operations such as classificat...
How to use the 'with' keyword in JavaScript?
The with keyword is used as a kind of shorthand for referencing an object's properties or methods. The object specified as an argument to with becomes the default object for the duration of the block that follows. The properties and methods for the object can be used without naming the object. The syntax for with objec...
[ { "code": null, "e": 1161, "s": 1062, "text": "The with keyword is used as a kind of shorthand for referencing an object's properties or methods." }, { "code": null, "e": 1357, "s": 1161, "text": "The object specified as an argument to with becomes the default object for the dura...
Comparator comparingDouble() method in Java with examples - GeeksforGeeks
29 Apr, 2019 The comparingDouble(java.util.function.ToDoubleFunction) method of Comparator Interface in Java accepts a function as parameter that extracts an double sort key from a type T, and returns a Comparator that compares by that sort key.The returned comparator is serializable if the specified function is also s...
[ { "code": null, "e": 24426, "s": 24398, "text": "\n29 Apr, 2019" }, { "code": null, "e": 24746, "s": 24426, "text": "The comparingDouble(java.util.function.ToDoubleFunction) method of Comparator Interface in Java accepts a function as parameter that extracts an double sort key fr...
DAX Aggregation - COUNTA function
Counts the number of cells in a column that are not empty. It counts not just the rows that contain numeric values, but also the rows that contain nonblank values, including text, dates, and logical values. COUNTA (<column>) column The column that contains the values to be counted. Returns a whole number. When the fun...
[ { "code": null, "e": 2208, "s": 2001, "text": "Counts the number of cells in a column that are not empty. It counts not just the rows that contain numeric values, but also the rows that contain nonblank values, including text, dates, and logical values." }, { "code": null, "e": 2227, ...
Decimal.Add() Method in C# - GeeksforGeeks
29 Jan, 2019 This method is used to add two specified decimal values. Syntax: public static decimal Add (decimal a1, decimal a2); Parameters:a1: This parameter specifies the first value to add.a2: This parameter specifies the second value to add. Return Value: Decimal sum of a1 & a2. Exceptions: This method will give O...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n29 Jan, 2019" }, { "code": null, "e": 24359, "s": 24302, "text": "This method is used to add two specified decimal values." }, { "code": null, "e": 24419, "s": 24359, "text": "Syntax: public static decimal Add...
How to Change DB Schema to DBO in SQL?
30 Dec, 2021 In this article, we will look at two methods for changing the database schema in SQL Server to DBO. Schema: SQL Schema is defined as a logical grouping of database objects. Tables, views, stored procedures, functions, indexes, and triggers are all part of database object. It is a handy tool for segregatin...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2021" }, { "code": null, "e": 129, "s": 28, "text": "In this article, we will look at two methods for changing the database schema in SQL Server to DBO. " }, { "code": null, "e": 137, "s": 129, "text": "Schem...
Path normalize() method in Java with Examples
30 Jul, 2019 The normalize() method of java.nio.file.Path used to return a path from current path in which all redundant name elements are eliminated.The precise definition of this method is implementation dependent and it derives a path that does not contain redundant name elements. In many file systems, the “.” and “...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jul, 2019" }, { "code": null, "e": 562, "s": 28, "text": "The normalize() method of java.nio.file.Path used to return a path from current path in which all redundant name elements are eliminated.The precise definition of this method ...
Singular Value Decomposition (SVD)
14 Mar, 2022 The Singular Value Decomposition (SVD) of a matrix is a factorization of that matrix into three matrices. It has some interesting algebraic properties and conveys important geometrical and theoretical insights about linear transformations. It also has some important applications in data science. In this ar...
[ { "code": null, "e": 53, "s": 25, "text": "\n14 Mar, 2022" }, { "code": null, "e": 457, "s": 53, "text": "The Singular Value Decomposition (SVD) of a matrix is a factorization of that matrix into three matrices. It has some interesting algebraic properties and conveys important g...
math.NaN() Function in Golang With Examples
13 Apr, 2020 Go language provides inbuilt support for basic constants and mathematical functions to perform operations on the numbers with the help of the math package. You get an IEEE 754 “not-a-number” value with the help of NaN() function provided by the math package. So, you need to add a math package in your progr...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Apr, 2020" }, { "code": null, "e": 404, "s": 28, "text": "Go language provides inbuilt support for basic constants and mathematical functions to perform operations on the numbers with the help of the math package. You get an IEEE 754...
Python – Change legend size in Plotly chart
23 Jun, 2022 The data on the graph’s Y-axis, also known as the graph series, is reflected in the legend of the graph. This is the information that comes from the columns of the relevant grid report, and it usually consists of metrics. A graph legend is usually displayed as a box on the right or left side of your graph....
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jun, 2022" }, { "code": null, "e": 336, "s": 28, "text": "The data on the graph’s Y-axis, also known as the graph series, is reflected in the legend of the graph. This is the information that comes from the columns of the relevant gr...
Python – Morse Code Translator GUI using Tkinter
11 Aug, 2021 Prerequisites : Introduction to tkinter | Morse Code Translator Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. Python with Tkinter outputs the fastest and easiest way to create GUI applications. In this a...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Aug, 2021" }, { "code": null, "e": 92, "s": 28, "text": "Prerequisites : Introduction to tkinter | Morse Code Translator" }, { "code": null, "e": 423, "s": 92, "text": "Python offers multiple options for developin...
PySpark - Quick Guide
In this chapter, we will get ourselves acquainted with what Apache Spark is and how was PySpark developed. Apache Spark is a lightning fast real-time processing framework. It does in-memory computations to analyze data in real-time. It came into picture as Apache Hadoop MapReduce was performing batch processing only an...
[ { "code": null, "e": 2046, "s": 1939, "text": "In this chapter, we will get ourselves acquainted with what Apache Spark is and how was PySpark developed." }, { "code": null, "e": 2428, "s": 2046, "text": "Apache Spark is a lightning fast real-time processing framework. It does in...
Return an array of anti-diagonals of given N*N square matrix
11 Apr, 2022 Given a square matrix of size N*N, return an array of its anti-diagonals. For better understanding let us look at the image given below: Examples: Input : Output : 1 2 5 3 6 9 4 7 10 13 8 11 14 12 15 16 Approach 1:To solve the problem mentioned above we have two major observations. The firs...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Apr, 2022" }, { "code": null, "e": 191, "s": 54, "text": "Given a square matrix of size N*N, return an array of its anti-diagonals. For better understanding let us look at the image given below:" }, { "code": null, "e": ...
What is JavaDoc tool and how to use it?
29 Jun, 2022 JavaDoc tool is a document generator tool in Java programming language for generating standard documentation in HTML format. It generates API documentation. It parses the declarations ad documentation in a set of source file describing classes, methods, constructors, and fields. Before using JavaDoc tool, ...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Jun, 2022" }, { "code": null, "e": 332, "s": 52, "text": "JavaDoc tool is a document generator tool in Java programming language for generating standard documentation in HTML format. It generates API documentation. It parses the dec...
sciPy stats.mean() function | Python
10 Feb, 2019 scipy.stats.mean(array, axis=0) function calculates the arithmetic mean of the array elements along the specified axis of the array (list in python). It’s formula – Parameters :array: Input array or object having the elements to calculate the arithmetic mean.axis: Axis along which the mean is to be compute...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 Feb, 2019" }, { "code": null, "e": 203, "s": 53, "text": "scipy.stats.mean(array, axis=0) function calculates the arithmetic mean of the array elements along the specified axis of the array (list in python)." }, { "code": nu...
Cubes
09 Jun, 2022 A type of cuboid in which all the sides i.e length, breadth & height are equal. All faces of cubes are of the same area. In a cube, there are 8-corners/vertices There are 6-faces(all equal in area) There are 12 edges(all equal in length) No. of edges = (No. of vertices) + (No. of faces) - 2 Primarily ques...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Jun, 2022" }, { "code": null, "e": 176, "s": 54, "text": "A type of cuboid in which all the sides i.e length, breadth & height are equal. All faces of cubes are of the same area. " }, { "code": null, "e": 216, "s": 1...
How to generate QR Codes with Angular 10 ?
19 Jul, 2021 QR Code (Quick Response Code) has become the essential component for each and every product, organization, app, etc. In marketing campaigns, we can use the generated QR code to Download apps Send Email View business location etc. In this article let us see how to generate QR Codes with Angular 10. Prerequi...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jul, 2021" }, { "code": null, "e": 205, "s": 28, "text": "QR Code (Quick Response Code) has become the essential component for each and every product, organization, app, etc. In marketing campaigns, we can use the generated QR code t...
How Can Be Randomly Shuffle Rows in MATLAB Matrix?
02 Sep, 2021 In this article, we are going to discuss the “random shuffling of rows in a Matrix ” which can be done using size() and randperm() function. 1) size(): The size() function is used to return the sizes of each dimension of the specified array “X” or the size of the specified matrix “X”. size(X) [m,n] = size...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Sep, 2021" }, { "code": null, "e": 170, "s": 28, "text": "In this article, we are going to discuss the “random shuffling of rows in a Matrix ” which can be done using size() and randperm() function. " }, { "code": null, "...
JavaScript Function name Property
02 Dec, 2021 Below is a Basic example of Function name Property. Example: Javascript <script> // Creating function name func1 function func1(){ } document.write(func1.name)</script> Output: func1 The function name property of the javascript object is used to return the name of the function. This name property of ...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Dec, 2021" }, { "code": null, "e": 80, "s": 28, "text": "Below is a Basic example of Function name Property." }, { "code": null, "e": 90, "s": 80, "text": "Example: " }, { "code": null, "e": 101, "...
jQuery | animate() with Examples
13 Feb, 2019 The animate() is an inbuilt method in jQuery which is used to change the state of the element with CSS style. This method can also be used to change the CSS property to create the animated effect for the selected element. Syntax: (selector).animate({styles}, para1, para2, para3); Here “selector” is the se...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Feb, 2019" }, { "code": null, "e": 250, "s": 28, "text": "The animate() is an inbuilt method in jQuery which is used to change the state of the element with CSS style. This method can also be used to change the CSS property to create...
How to get select element's value in react-bootstrap ? - GeeksforGeeks
27 Oct, 2020 There are several methods to get element’s value in react-bootstrap. Some of them are discussed below: Using Ref: First way to get element’s updated value is by using ref. Using ref, we get the reference of the element and its value can be accessed throughout the existing components. import React, { Comp...
[ { "code": null, "e": 25255, "s": 25227, "text": "\n27 Oct, 2020" }, { "code": null, "e": 25360, "s": 25255, "text": "There are several methods to get element’s value in react-bootstrap. Some of them are discussed below: " }, { "code": null, "e": 25542, "s": 25360...
How to define multiple style rules for a single element in CSS?
You may need to define multiple style rules for a single element. You can define these rules to combine multiple properties and corresponding values into a single block as defined in the following example: h1 { color: #36C; font-weight: normal; letter-spacing: .4em; margin-bottom: 1em; text-transform: lowe...
[ { "code": null, "e": 1269, "s": 1062, "text": "You may need to define multiple style rules for a single element. You can define these rules to combine multiple properties and corresponding values into a single block as defined in the following example: " }, { "code": null, "e": 1391, ...
Distributed DBMS - Design Strategies
In the last chapter, we had introduced different design alternatives. In this chapter, we will study the strategies that aid in adopting the designs. The strategies can be broadly divided into replication and fragmentation. However, in most cases, a combination of the two is used. Data replication is the process of sto...
[ { "code": null, "e": 2505, "s": 2223, "text": "In the last chapter, we had introduced different design alternatives. In this chapter, we will study the strategies that aid in adopting the designs. The strategies can be broadly divided into replication and fragmentation. However, in most cases, a com...
Check if divisible by 10 | Practice | GeeksforGeeks
Given a binary number in the form of string, the task is to check whether the decimal representation of the given binary number is divisible by 10 or not. The number could be very large and may not fit even in long long int. Example 1: Input: bin = "1010" Output: 1 Explanation: The decimal representation of given stri...
[ { "code": null, "e": 463, "s": 238, "text": "Given a binary number in the form of string, the task is to check whether the decimal representation of the given binary number is divisible by 10 or not. The number could be very large and may not fit even in long long int." }, { "code": null, ...
How to convert a string to date in MySQL?
We can convert a string to date with the help of STR_TO_DATE() function. Let us see an example. Creating a table. mysql> create table StringToDateDemo -> ( -> YourDate varchar(100) -> ); Query OK, 0 rows affected (0.49 sec) Inserting records into the table. mysql> insert into StringToDateDemo values('10/27/20...
[ { "code": null, "e": 1158, "s": 1062, "text": "We can convert a string to date with the help of STR_TO_DATE() function. Let us see an example." }, { "code": null, "e": 1176, "s": 1158, "text": "Creating a table." }, { "code": null, "e": 1295, "s": 1176, "text"...
Java program to count the occurrences of each character - GeeksforGeeks
09 Feb, 2021 Write a Java program which prints number of occurrences of each characters and also it should not print repeatedly occurrences of duplicate characters as given in the example:Examples: Input : geeksforgeeks Output : Number of Occurrence of g is:2 Number of Occurrence of e is:4 Number of Occurrence of k is...
[ { "code": null, "e": 24913, "s": 24885, "text": "\n09 Feb, 2021" }, { "code": null, "e": 25099, "s": 24913, "text": "Write a Java program which prints number of occurrences of each characters and also it should not print repeatedly occurrences of duplicate characters as given in ...
Find free disk space using C#
Firstly, create an instance of DriveInfo − DriveInfo dInfo = new DriveInfo("E"); Display free space − Console.WriteLine("Disk Free space = {0}", dInfo.AvailableFreeSpace); Now, use AvailableFreeSpace property and get the percentage of free space − Double pc = (dInfo.AvailableFreeSpace / (float)dInfo.TotalSize) * 100; H...
[ { "code": null, "e": 1105, "s": 1062, "text": "Firstly, create an instance of DriveInfo −" }, { "code": null, "e": 1143, "s": 1105, "text": "DriveInfo dInfo = new DriveInfo(\"E\");" }, { "code": null, "e": 1164, "s": 1143, "text": "Display free space −" }, ...