title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Solving Algebraic Structures Problems by Composition Table - GeeksforGeeks
05 Mar, 2021 Problem-1:Set G = { 1, ω, ω2 } i.e., three roots of unity and form a finite abelian group with respect to multiplication, also prove this statement by composition table. Explanation : Given, Set=G={1, ω, ω2 } , operation=‘*’ i.e. multiplication. To prove that three roots of unity form a finite abelian g...
[ { "code": null, "e": 26163, "s": 26135, "text": "\n05 Mar, 2021" }, { "code": null, "e": 26334, "s": 26163, "text": "Problem-1:Set G = { 1, ω, ω2 } i.e., three roots of unity and form a finite abelian group with respect to multiplication, also prove this statement by composition...
Convert a String to an Expression in R Programming - parse() Function - GeeksforGeeks
24 Jun, 2020 parse() function in R Language is used to convert an object of character class to an object of expression class. Syntax: parse(text = character) Parameters:character: Object of character class Example 1: # R program to convert # character to expression # Creating an object of character classx <- "sin(pi /...
[ { "code": null, "e": 26223, "s": 26195, "text": "\n24 Jun, 2020" }, { "code": null, "e": 26336, "s": 26223, "text": "parse() function in R Language is used to convert an object of character class to an object of expression class." }, { "code": null, "e": 26368, "s...
numpy.random.permutation() in Python - GeeksforGeeks
15 Jul, 2020 With the help of numpy.random.permutation() method, we can get the random samples of sequence of permutation and return sequence by using this method. Syntax : numpy.random.permutation(x) Return : Return the random sequence of permuted values. Example #1 : In this example we can see that by using numpy.ran...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n15 Jul, 2020" }, { "code": null, "e": 26216, "s": 26065, "text": "With the help of numpy.random.permutation() method, we can get the random samples of sequence of permutation and return sequence by using this method." }, { ...
How to check a JavaScript Object is a DOM Object ? - GeeksforGeeks
19 Jun, 2019 Prerequisite: DOM (Document object model), Instanceof Operator DOM (Document Object Model): Document Object Model is a hierarchical representation of HTML and XML documents in a format that is easier to interpret in terms of programming. It makes manipulation of tags, elements, attributes, and classes by i...
[ { "code": null, "e": 39213, "s": 39185, "text": "\n19 Jun, 2019" }, { "code": null, "e": 39276, "s": 39213, "text": "Prerequisite: DOM (Document object model), Instanceof Operator" }, { "code": null, "e": 39600, "s": 39276, "text": "DOM (Document Object Model)...
Match a pattern and String without using regular expressions - GeeksforGeeks
25 Jan, 2022 Given a string, find out if string follows a given pattern or not without using any regular expressions. Examples: Input: string - GraphTreesGraph pattern - aba Output: a->Graph b->Trees Input: string - GraphGraphGraph pattern - aaa Output: a->Graph Input: string - GeeksforGeeks pattern - GfG Outp...
[ { "code": null, "e": 26327, "s": 26299, "text": "\n25 Jan, 2022" }, { "code": null, "e": 26444, "s": 26327, "text": "Given a string, find out if string follows a given pattern or not without using any regular expressions. Examples: " }, { "code": null, "e": 26728, ...
Data Mining - Mining Text Data
Text databases consist of huge collection of documents. They collect these information from several sources such as news articles, books, digital libraries, e-mail messages, web pages, etc. Due to increase in the amount of information, the text databases are growing rapidly. In many of the text databases, the data is s...
[ { "code": null, "e": 2446, "s": 2110, "text": "Text databases consist of huge collection of documents. They collect these information from several sources such as news articles, books, digital libraries, e-mail messages, web pages, etc. Due to increase in the amount of information, the text database...
MySQL count(*) from multiple tables?
To achieve this for multiple tables, use the UNION ALL. The syntax is as follows select sum(variableName.aliasName) from ( select count(*) as yourAliasName from yourTableName1 UNION ALL select count(*) as yourAliasName from yourTableName2 ) yourVariableName; Let us implement the above syntax. Here, I am ...
[ { "code": null, "e": 1118, "s": 1062, "text": "To achieve this for multiple tables, use the UNION ALL." }, { "code": null, "e": 1143, "s": 1118, "text": "The syntax is as follows" }, { "code": null, "e": 1336, "s": 1143, "text": "select sum(variableName.aliasN...
The Basics of Hash Table. Hash table is fundamentally a data... | by billydharmawan | Towards Data Science
Those of us who’ve lived reasonably long enough must know or at least have seen a yellow page. Yup! You’re right. It is the thick yellow book containing directories of businesses and their phone numbers. This enables us to search for a business that sells what we need and contact them. (I don’t think Gen Z and the next...
[ { "code": null, "e": 459, "s": 172, "text": "Those of us who’ve lived reasonably long enough must know or at least have seen a yellow page. Yup! You’re right. It is the thick yellow book containing directories of businesses and their phone numbers. This enables us to search for a business that sells...
How to Convert Loops to List Comprehensions in Python | by Soner Yıldırım | Towards Data Science
List comprehension is used for creating lists based on iterables. It can also be described as representing for and if loops with a simpler and more appealing syntax. List comprehensions are relatively faster than for loops. The syntax of a list comprehension is actually easy to understand. However, when it comes to com...
[ { "code": null, "e": 270, "s": 46, "text": "List comprehension is used for creating lists based on iterables. It can also be described as representing for and if loops with a simpler and more appealing syntax. List comprehensions are relatively faster than for loops." }, { "code": null, ...
How to Make a Barcode Reader in Python? - GeeksforGeeks
07 Sep, 2021 Barcode represents data in graphical representation and machine-readable. For making Barcode Reader in Python we are using pyzbar library. Using pyzbar we can decode the one-dimensional barcode and QR-code. This pyzbar can return 3 fields based on the barcode object: Type: There are several kinds of barco...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n07 Sep, 2021" }, { "code": null, "e": 25855, "s": 25647, "text": "Barcode represents data in graphical representation and machine-readable. For making Barcode Reader in Python we are using pyzbar library. Using pyzbar we can deco...
Maximizing Unique Pairs from two arrays - GeeksforGeeks
10 Feb, 2022 Given two arrays of equal size N, form maximum number of pairs by using their elements, one from the first array and second from the second array, such that an element from each array is used at-most-once and the absolute difference between the selected elements used for forming a pair is less than or equa...
[ { "code": null, "e": 24431, "s": 24403, "text": "\n10 Feb, 2022" }, { "code": null, "e": 24773, "s": 24431, "text": "Given two arrays of equal size N, form maximum number of pairs by using their elements, one from the first array and second from the second array, such that an ele...
Difference between Physical and Logical Tags - GeeksforGeeks
22 Sep, 2021 In this article, we will learn about physical tags & logical tags in HTML & their implementation. We will also explore the difference between them. Let’s begin the discussion with a physical tag. Physical tags: Physical tags are used to indicate that how specific characters are to be formatted or indicated...
[ { "code": null, "e": 24812, "s": 24784, "text": "\n22 Sep, 2021" }, { "code": null, "e": 25008, "s": 24812, "text": "In this article, we will learn about physical tags & logical tags in HTML & their implementation. We will also explore the difference between them. Let’s begin the...
What happens if we try to extend a final class in java?
In Java final is the access modifier which can be used with a filed class and a method. When a method if final it cannot be overridden. When a variable is final its value cannot be modified further. When a class is finale it cannot be extended. When we try to extend a final class that will lead to a compilation error s...
[ { "code": null, "e": 1150, "s": 1062, "text": "In Java final is the access modifier which can be used with a filed class and a method." }, { "code": null, "e": 1198, "s": 1150, "text": "When a method if final it cannot be overridden." }, { "code": null, "e": 1261, ...
Print matrix in snake pattern from the last column - GeeksforGeeks
19 Dec, 2018 Given a matrix of 2-Dimensional array of n rows and n columns. Print this matrix in snake fashion starting from column n-1 as shown in the figure below. Examples: Input : mat[][] = 1 2 3 4 5 6 7 8 9 Output: 3 2 1 4 5 6 9 8 7 Input: mat[][] = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Output: 4 3 2 1 5 ...
[ { "code": null, "e": 24736, "s": 24708, "text": "\n19 Dec, 2018" }, { "code": null, "e": 24889, "s": 24736, "text": "Given a matrix of 2-Dimensional array of n rows and n columns. Print this matrix in snake fashion starting from column n-1 as shown in the figure below." }, { ...
How to Find Armstrong Number in an Interval using Python?
If sum of cubes of individual digits in a number add up to the number itself, it is called armstrong number. for example 153=1**3+5**3+3**3 Following Python program find armstrong numbers between 100 to 1000 for num in range(100,1000): temp=num sum=0 while temp>0: digit=temp%10 sum=sum+digit**3 ...
[ { "code": null, "e": 1202, "s": 1062, "text": "If sum of cubes of individual digits in a number add up to the number itself, it is called armstrong number. for example 153=1**3+5**3+3**3" }, { "code": null, "e": 1270, "s": 1202, "text": "Following Python program find armstrong nu...
Lexicographically smallest string formed by removing at most one character - GeeksforGeeks
24 May, 2021 Given a string str, the task is to find the lexicographically smallest string that can be formed by removing at most one character from the given string. Examples: Input: str = "abcda" Output: abca One can remove 'd' to get "abca" which is the lexicographically smallest string possible. Input: str =...
[ { "code": null, "e": 25199, "s": 25171, "text": "\n24 May, 2021" }, { "code": null, "e": 25354, "s": 25199, "text": "Given a string str, the task is to find the lexicographically smallest string that can be formed by removing at most one character from the given string. " }, ...
Display video inside HTML5 canvas
You can try the following code snippet to display video inside HTML5 canvas. var canvas1 = document.getElementById('canvas'); var context = canvas1.getContext('2d'); var video = document.getElementById('video'); video.addEventListener('play', function () { var $this = this; (function loop() { if (!$this.pau...
[ { "code": null, "e": 1139, "s": 1062, "text": "You can try the following code snippet to display video inside HTML5 canvas." }, { "code": null, "e": 1508, "s": 1139, "text": "var canvas1 = document.getElementById('canvas');\nvar context = canvas1.getContext('2d');\nvar video = do...
Sorting List in SAP UI5 project
Yes, you can. You can use the available sorter property available on the List. It lets you specify all the required details. For e.g. − <List Items="{ path: '/EmployeeCollection', sorter: { path: 'EmployeeName', descending: true, group: true } }" headerText="Employees" /> I have specified the employee...
[ { "code": null, "e": 1198, "s": 1062, "text": "Yes, you can. You can use the available sorter property available on the List. It lets you specify all the required details. For e.g. −" }, { "code": null, "e": 1353, "s": 1198, "text": "<List\nItems=\"{\n path: '/EmployeeCollection...
How do Python Generators Work? | Towards Data Science
In this article, I’ll attempt to provide an in-depth understanding of Python generators, and how they operate from the inside. It will include the how and why. Sections will be self-contained, and you are welcome to skip at your will. Without further ado, let us begin our journey. ⛵️ Added since Python 2.2, Generators ...
[ { "code": null, "e": 456, "s": 171, "text": "In this article, I’ll attempt to provide an in-depth understanding of Python generators, and how they operate from the inside. It will include the how and why. Sections will be self-contained, and you are welcome to skip at your will. Without further ado,...
How can I get a list of locally installed Python modules?
There are multiple ways to get a list of locally installed Python modules. Easiest way is using the Python shell, for example, >>> help('modules') Please wait a moment while I gather a list of all available modules... BaseHTTPServer brain_nose markupbase stat Bastion brain_numpy ...
[ { "code": null, "e": 1189, "s": 1062, "text": "There are multiple ways to get a list of locally installed Python modules. Easiest way is using the Python shell, for example," }, { "code": null, "e": 1558, "s": 1189, "text": ">>> help('modules')\nPlease wait a moment while I gathe...
Aggregation in MongoDB - GeeksforGeeks
23 Mar, 2022 In MongoDB, aggregation operations process the data records/documents and return computed results. It collects values from various documents and groups them together and then performs different types of operations on that grouped data like sum, average, minimum, maximum, etc to return a computed result. It...
[ { "code": null, "e": 23859, "s": 23831, "text": "\n23 Mar, 2022" }, { "code": null, "e": 24212, "s": 23859, "text": "In MongoDB, aggregation operations process the data records/documents and return computed results. It collects values from various documents and groups them togeth...
Order By date ASC in MySQL?
You can use STR_TO_DATE() function. Let us first create a table − mysql> create table DemoTable ( AdmissionDate varchar(200) ); Query OK, 0 rows affected (1.19 sec) Insert records in the table using insert command − mysql> insert into DemoTable values('12-01-2019'); Query OK, 1 row affected (0.14 sec) mysql> i...
[ { "code": null, "e": 1128, "s": 1062, "text": "You can use STR_TO_DATE() function. Let us first create a table −" }, { "code": null, "e": 1236, "s": 1128, "text": "mysql> create table DemoTable\n (\n AdmissionDate varchar(200)\n );\nQuery OK, 0 rows affected (1.19 sec)" }...
Java - The ArrayList Class
The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed. Standard Java arrays are of a fixed length. After arrays are created, they cannot grow or shrink, which means that you must know in advance how many elements an array will hold. Array l...
[ { "code": null, "e": 2512, "s": 2377, "text": "The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed." }, { "code": null, "e": 2690, "s": 2512, "text": "Standard Java arrays are of a fixed length. Aft...
How to convert Unicode values to characters in JavaScript?
To convert Unicode values to characters in JavaScript, use the fromCharCode() string method. You can try to run the following code to convert Unicode to character − Live Demo <!DOCTYPE html> <html> <body> <script> var a = String.fromCharCode(72); document.write("Character: "+a); </scrip...
[ { "code": null, "e": 1155, "s": 1062, "text": "To convert Unicode values to characters in JavaScript, use the fromCharCode() string method." }, { "code": null, "e": 1227, "s": 1155, "text": "You can try to run the following code to convert Unicode to character −" }, { "co...
Difference and similarities between HashSet, LinkedHashSet and TreeSet in Java - GeeksforGeeks
08 Mar, 2021 In this article, we will learn, the difference between HashSet vs LinkedHashSet and TreeSet And similarities between LinkedHashSet and TreeSet. HashSet, LinkedHashSet, and TreeSet all implement the Set interface. So we have tried to list out the differences and similarities between HashSet, LinkedHashSet, ...
[ { "code": null, "e": 25184, "s": 25156, "text": "\n08 Mar, 2021" }, { "code": null, "e": 25512, "s": 25184, "text": "In this article, we will learn, the difference between HashSet vs LinkedHashSet and TreeSet And similarities between LinkedHashSet and TreeSet. HashSet, LinkedHash...
What are the differences between the BLOB and TEXT datatypes in MySQL?
BLOB stands for Binary Large Objects and as its name suggests, it can be used for storing binary data while TEXT is used for storing large number of strings. BLOB can be used to store binary data that means we can store pictures, videos, sounds and programs also. For example, the following image can be stored into BLOB...
[ { "code": null, "e": 1326, "s": 1062, "text": "BLOB stands for Binary Large Objects and as its name suggests, it can be used for storing binary data while TEXT is used for storing large number of strings. BLOB can be used to store binary data that means we can store pictures, videos, sounds and prog...
Java Program for Rabin-Karp Algorithm for Pattern Searching - GeeksforGeeks
11 Dec, 2018 Examples: Input: txt[] = "THIS IS A TEST TEXT" pat[] = "TEST" Output: Pattern found at index 10 Input: txt[] = "AABAACAADAABAABA" pat[] = "AABA" Output: Pattern found at index 0 Pattern found at index 9 Pattern found at index 12 The Naive String Matching algorithm sli...
[ { "code": null, "e": 24824, "s": 24796, "text": "\n11 Dec, 2018" }, { "code": null, "e": 24834, "s": 24824, "text": "Examples:" }, { "code": null, "e": 25092, "s": 24834, "text": "Input: txt[] = \"THIS IS A TEST TEXT\"\n pat[] = \"TEST\"\nOutput: Patte...
Design a Logistics System - GeeksforGeeks
28 Jun, 2021 Design a Logistics System (Object Oriented Design). Tell about the different classes and their relationships with each-other. It is not a System Design question, so scope of this question is only to define different classes (with it’s attributes and methods)Asked In: AdobeSolution: Let’s assume we want to ...
[ { "code": null, "e": 25068, "s": 25040, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26150, "s": 25068, "text": "Design a Logistics System (Object Oriented Design). Tell about the different classes and their relationships with each-other. It is not a System Design question, s...
JavaScript TypeError - Invalid assignment to const "X" - GeeksforGeeks
31 Jul, 2020 This JavaScript exception invalid assignment to const occurs if a user tries to change a constant value. Const declarations in JavaScript can not be re-assigned or re-declared. Message: TypeError: invalid assignment to const "x" (Firefox) TypeError: Assignment to constant variable. (Chrome) TypeError: Assi...
[ { "code": null, "e": 24984, "s": 24956, "text": "\n31 Jul, 2020" }, { "code": null, "e": 25161, "s": 24984, "text": "This JavaScript exception invalid assignment to const occurs if a user tries to change a constant value. Const declarations in JavaScript can not be re-assigned or...
How to combine two arrays into an array of objects in JavaScript?
Let’s say the following are our two arrays − var firstArray = ['John', 'David', 'Bob']; var secondArray = ['Mike','Sam','Carol']; To combine two arrays into an array of objects, use map() from JavaScript. var firstArray = ['John', 'David', 'Bob']; var secondArray = ['Mike','Sam','Carol']; var arrayOfObject = firstArray...
[ { "code": null, "e": 1107, "s": 1062, "text": "Let’s say the following are our two arrays −" }, { "code": null, "e": 1192, "s": 1107, "text": "var firstArray = ['John', 'David', 'Bob'];\nvar secondArray = ['Mike','Sam','Carol'];" }, { "code": null, "e": 1267, "s":...
Junk File Organizer in Python?
This might seem very useful for a lazy python programmer who keeps most of the files and folders at one location and sometimes at confused what all files are there and surely he is too lazy to do it manually. So below is a python program to organize or simplify everything in appropriate folder in the single go and remo...
[ { "code": null, "e": 1404, "s": 1062, "text": "This might seem very useful for a lazy python programmer who keeps most of the files and folders at one location and sometimes at confused what all files are there and surely he is too lazy to do it manually. So below is a python program to organize or ...
Introduction to Backtracking
Backtracking is a technique based on algorithm to solve problem. It uses recursive calling to find the solution by building a solution step by step increasing values with time. It removes the solutions that doesn't give rise to the solution of the problem based on the constraints given to solve the problem. Backtrackin...
[ { "code": null, "e": 1371, "s": 1062, "text": "Backtracking is a technique based on algorithm to solve problem. It uses recursive calling to find the solution by building a solution step by step increasing values with time. It removes the solutions that doesn't give rise to the solution of the probl...
C | Dynamic Memory Allocation | Question 2 - GeeksforGeeks
28 Jun, 2021 Consider the following three C functions : [PI] int * g (void) { int x= 10; return (&x); } [P2] int * g (void) { int * px; *px= 10; return px; } [P3] int *g (void) { int *px; px = (int *) malloc (sizeof(int)); *px= 10; return px; } Which of the above three functions are likely to...
[ { "code": null, "e": 24564, "s": 24536, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24607, "s": 24564, "text": "Consider the following three C functions :" }, { "code": "[PI] int * g (void) { int x= 10; return (&x); } [P2] int * g (void) { int * px; *px=...
How to check whether column value is NULL or having DEFAULT value in MySQL?
You can use the concept of IFNULL() for this. Let us first create a table − mysql> create table DemoTable ( Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, Name varchar(100) DEFAULT 'Larry', Age int DEFAULT NULL ); Query OK, 0 rows affected (0.73 sec) Insert records in the table using insert command − mysql> inser...
[ { "code": null, "e": 1138, "s": 1062, "text": "You can use the concept of IFNULL() for this. Let us first create a table −" }, { "code": null, "e": 1319, "s": 1138, "text": "mysql> create table DemoTable\n(\n Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n Name varchar(100) DEF...
Is Flux Better Than Tensorflow?. Relax! Flux is a machine-learning... | by Emmett Boudreau | Towards Data Science
Fl ux is a machine-learning library for the multi-paradigm, fast, MIT-developed statistical programming language, Julia. Flux’s core feature is taking gradients of Julia code. In other words, Flux is able to take another Julia function and a set of arguments and return a gradient. Flux is a really cool package because ...
[ { "code": null, "e": 682, "s": 47, "text": "Fl ux is a machine-learning library for the multi-paradigm, fast, MIT-developed statistical programming language, Julia. Flux’s core feature is taking gradients of Julia code. In other words, Flux is able to take another Julia function and a set of argumen...
How to create text node in JavaFX?
In JavaFX, the text node is represented by the javafx.scene.text.Text class. You can add text to a JavaFX window by instantiating this class. Following are the basic properties of the text node − X − This property represents x coordinate of the text. You can set value to this property using the setX() method. X − This ...
[ { "code": null, "e": 1204, "s": 1062, "text": "In JavaFX, the text node is represented by the javafx.scene.text.Text class. You can add text to a JavaFX window by instantiating this class." }, { "code": null, "e": 1258, "s": 1204, "text": "Following are the basic properties of th...
PHP | image_type_to_extension() Function - GeeksforGeeks
15 Nov, 2019 The image_type_to_extension() function is an inbuilt function in PHP which is used to get the file extension for an image type. This function can be found in any PHP version silimar or greater than 5.2.0. Syntax: string image_type_to_extension( int $imagetype, bool $include_dot ) Parameters: This function ...
[ { "code": null, "e": 24972, "s": 24944, "text": "\n15 Nov, 2019" }, { "code": null, "e": 25177, "s": 24972, "text": "The image_type_to_extension() function is an inbuilt function in PHP which is used to get the file extension for an image type. This function can be found in any P...
Java program to print unique values from a list
To print unique values from a List in Java, the code is as follows − Live Demo import java.io.*; public class Demo{ static void distinct_vals(int my_arr[], int len){ for (int i = 0; i < len; i++){ int j; for (j = 0; j < i; j++) if (my_arr[i] == my_arr[j]) break; ...
[ { "code": null, "e": 1131, "s": 1062, "text": "To print unique values from a List in Java, the code is as follows −" }, { "code": null, "e": 1142, "s": 1131, "text": " Live Demo" }, { "code": null, "e": 1712, "s": 1142, "text": "import java.io.*;\npublic class...
Why do we use pandas in python?
Pandas has been one of the most commonly used tools for Data Science and Machine learning, which is used for data cleaning and analysis. Here, Pandas is the best tool for handling this real-world messy data. And pandas is one of the open-source python packages built on top of NumPy. Handling data using pandas is very f...
[ { "code": null, "e": 1199, "s": 1062, "text": "Pandas has been one of the most commonly used tools for Data Science and Machine learning, which is used for data cleaning and analysis." }, { "code": null, "e": 1346, "s": 1199, "text": "Here, Pandas is the best tool for handling th...
Building Python source with OpenCV and OpenCV Contrib | by Ashish Bansal | Towards Data Science
Installing Python 3.7 on Ubuntu 14.0 LTS from Source First, update the packages list and install the packages necessary to build Python3.7 from source: First, update the packages list and install the packages necessary to build Python3.7 from source: sudo apt updatesudo apt install build-essential zlib1g-dev libncurses...
[ { "code": null, "e": 225, "s": 172, "text": "Installing Python 3.7 on Ubuntu 14.0 LTS from Source" }, { "code": null, "e": 324, "s": 225, "text": "First, update the packages list and install the packages necessary to build Python3.7 from source:" }, { "code": null, "e...
How will you handle alerts in Selenium with python?
We can handle alerts in Selenium with the help of numerous APIs. The alerts are basically the browser popups that are triggered for either dismissing or accepting the data entered. All these actions are performed by Selenium with the help of class selenium.webdriver.common.alert.Alert(driver). It has the methods to ext...
[ { "code": null, "e": 1243, "s": 1062, "text": "We can handle alerts in Selenium with the help of numerous APIs. The alerts are basically the browser popups that are triggered for either dismissing or accepting the data entered." }, { "code": null, "e": 1474, "s": 1243, "text": "A...
Using signal processing to extract neural events in Python — Spike sorting | by Carsten Klein | Towards Data Science
Biological neural networks such as the human brain consist of specialized cells called neurons. There are various types of neurons but all of them are based on the same concept. Signaling molecules called neurotransmitters are released at the synapse, the connection point between two neurons. Neurotransmitters alter th...
[ { "code": null, "e": 1274, "s": 172, "text": "Biological neural networks such as the human brain consist of specialized cells called neurons. There are various types of neurons but all of them are based on the same concept. Signaling molecules called neurotransmitters are released at the synapse, th...
DecimalFormat("00.00E0") in Java
DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. Let us set DecimalFormat("00.00E0") and use the format() method as well. DecimalFormat decFormat = new DecimalFormat("00.00E0"); System.out.println(decFormat.format(-289.8787)); System.out.println(decFormat.format(8.19)); Since, we have ...
[ { "code": null, "e": 1218, "s": 1062, "text": "DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. Let us set DecimalFormat(\"00.00E0\") and use the format() method as well." }, { "code": null, "e": 1367, "s": 1218, "text": "DecimalFormat decFormat ...
How Does k-Means Clustering in Machine Learning Work? | by Anas Al-Masri | Towards Data Science
One of the most famous topics under the realm of Unsupervised Learning in Machine Learning is k-Means Clustering. Even though this clustering algorithm is fairly simple, it can look challenging to newcomers into the field. In this post, I try to tackle the process of k-Means Clustering with two different examples. The ...
[ { "code": null, "e": 643, "s": 172, "text": "One of the most famous topics under the realm of Unsupervised Learning in Machine Learning is k-Means Clustering. Even though this clustering algorithm is fairly simple, it can look challenging to newcomers into the field. In this post, I try to tackle th...
HSQLDB - Quick Guide
HyperSQL Database (HSQLDB) is a modern relational database manager that conforms closely to the SQL:2011 standard and JDBC 4 specifications. It supports all core features and RDBMS. HSQLDB is used for development, testing, and deployment of database applications. The main and unique feature of HSQLDB is Standard Compli...
[ { "code": null, "e": 2246, "s": 1982, "text": "HyperSQL Database (HSQLDB) is a modern relational database manager that conforms closely to the SQL:2011 standard and JDBC 4 specifications. It supports all core features and RDBMS. HSQLDB is used for development, testing, and deployment of database app...
drag_and_drop_by_offset method - Action Chains in Selenium Python - GeeksforGeeks
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button actions, keypress, and context menu interactions. This is useful for doing more complex actions like hover over and drag and drop. Acti...
[ { "code": null, "e": 24770, "s": 24742, "text": "\n15 May, 2020" }, { "code": null, "e": 25440, "s": 24770, "text": "Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mous...
Default Values Assigned to Primitive Data Types in Java - GeeksforGeeks
29 Oct, 2021 Primitive data types are built-in data types in java and can be used directly without using any new keyword. As we know primitive data types are treated differently by java cause of which the wrapper class concept also comes into play. But here we will be entirely focussing on data types. So, in java, the...
[ { "code": null, "e": 23655, "s": 23624, "text": " \n29 Oct, 2021\n" }, { "code": null, "e": 24051, "s": 23655, "text": "Primitive data types are built-in data types in java and can be used directly without using any new keyword. As we know primitive data types are treated differe...
Matrix multiplication algorithm
In this section we will see how to multiply two matrices. The matrix multiplication can only be performed, if it satisfies this condition. Suppose two matrices are A and B, and their dimensions are A (m x n) and B (p x q) the resultant matrix can be found if and only if n = p. Then the order of the resultant matrix C w...
[ { "code": null, "e": 1398, "s": 1062, "text": "In this section we will see how to multiply two matrices. The matrix multiplication can only be performed, if it satisfies this condition. Suppose two matrices are A and B, and their dimensions are A (m x n) and B (p x q) the resultant matrix can be fou...
How to match only digits in Python using Regular Expression?
The following code matches only digits in the given string using python regular expression. import re m = re.search(r'\d+', '5Need47forSpeed 2') print m <_sre.SRE_Match object at 0x0000000004B46648> The following code finds all digits in the given string and prints them as a list import re m = re.findall(r'\d', '5Need4...
[ { "code": null, "e": 1154, "s": 1062, "text": "The following code matches only digits in the given string using python regular expression." }, { "code": null, "e": 1215, "s": 1154, "text": "import re\nm = re.search(r'\\d+', '5Need47forSpeed 2')\nprint m" }, { "code": null...
How to configure modal width in Bootstrap? - GeeksforGeeks
06 Sep, 2021 Bootstrap Modal: It is a dialog window that opens inside the browser window on triggering certain events. It is a really convenient way to improve the website’s content rendering as per the requirements. In this article, we will focus on adjusting the width/height of the modal box.Method 1: Using pre-defin...
[ { "code": null, "e": 25540, "s": 25512, "text": "\n06 Sep, 2021" }, { "code": null, "e": 26026, "s": 25540, "text": "Bootstrap Modal: It is a dialog window that opens inside the browser window on triggering certain events. It is a really convenient way to improve the website’s co...
Interactive Distribution Plots with Plotly | by Soner Yıldırım | Towards Data Science
Plotly Python (plotly.py) is an open-source plotting library built on plotly javascript (plotly.js). Plotly express is a high-level interface of plotly.py that allows us to create many interactive and informative visualizations. In this post, we will create different types of distribution plots using plotly express. Di...
[ { "code": null, "e": 401, "s": 172, "text": "Plotly Python (plotly.py) is an open-source plotting library built on plotly javascript (plotly.js). Plotly express is a high-level interface of plotly.py that allows us to create many interactive and informative visualizations." }, { "code": null...
Custom Field Validations in Django Models - GeeksforGeeks
21 Sep, 2021 This article revolves around how to add custom validation to a particular field. For example to add validation of an email to a CharField by specifying a particular format. There can be multiple ways on how to achieve custom validation. In this article, we are going to show it from the model itself so that...
[ { "code": null, "e": 24221, "s": 24193, "text": "\n21 Sep, 2021" }, { "code": null, "e": 24743, "s": 24221, "text": "This article revolves around how to add custom validation to a particular field. For example to add validation of an email to a CharField by specifying a particula...
How to calculate the sensitivity and specificity from a confusion matrix in R?
If we have a confusion matrix then the sensitivity and specificity can be calculated using confusionMatrix function of caret package. For example, if we have a contingency table named as table then we can use the code confusionMatrix(table). This will return sensitivity and specificity as well as many other metrics. Li...
[ { "code": null, "e": 1380, "s": 1062, "text": "If we have a confusion matrix then the sensitivity and specificity can be calculated using confusionMatrix function of caret package. For example, if we have a contingency table named as table then we can use the code confusionMatrix(table). This will r...
Create a circular badge with Bootstrap
Use the .badge class in Bootstrap to create a circular badge with Bootstrap. You can try to run the following code to implement .badge class − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "...
[ { "code": null, "e": 1139, "s": 1062, "text": "Use the .badge class in Bootstrap to create a circular badge with Bootstrap." }, { "code": null, "e": 1205, "s": 1139, "text": "You can try to run the following code to implement .badge class −" }, { "code": null, "e": 12...
What are Character Literals in C++?
A character literal is a type of literal in programming for the representation of a single character's value within the source code of a computer program. In C++, A character literal is composed of a constant character. It is represented by the character surrounded by single quotation marks. There are two kinds of char...
[ { "code": null, "e": 1217, "s": 1062, "text": "A character literal is a type of literal in programming for the representation of a single character's value within the source code of a computer program." }, { "code": null, "e": 1399, "s": 1217, "text": "In C++, A character literal...
Python program to extract only the numbers from a list which have some specific digits
22 Oct, 2020 Given Elements List, extract numbers with specific digits. Input : test_list = [3456, 23, 128, 235, 982], dig_list = [2, 3, 5, 4] Output : [23, 235] Explanation : 2, 3 and 2, 3, 5 are in digit list, hence extracted elements.Input : test_list = [3456, 23, 28, 235, 982], dig_list = [2, 3, 5, 4, 8] Output : ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Oct, 2020" }, { "code": null, "e": 88, "s": 28, "text": "Given Elements List, extract numbers with specific digits. " }, { "code": null, "e": 432, "s": 88, "text": "Input : test_list = [3456, 23, 128, 235, 982], d...
Python String find() method
08 Jul, 2022 Python String find() method returns the lowest index or first occurrence of the substring if it is found in a given string. If it is not found then it returns -1. Syntax: str.find(sub, start, end) Parameters: sub: It is the substring that needs to be searched in the given string. start: Starting positio...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Jul, 2022" }, { "code": null, "e": 217, "s": 53, "text": "Python String find() method returns the lowest index or first occurrence of the substring if it is found in a given string. If it is not found then it returns -1. " }, { ...
Replace values of a DataFrame with the value of another DataFrame in Pandas
17 Jan, 2022 In this article, we will learn how we can replace values of a DataFrame with the value of another DataFrame using pandas. It can be done using the DataFrame.replace() method. It is used to replace a regex, string, list, series, number, dictionary, etc. from a DataFrame, Values of the DataFrame method are...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2022" }, { "code": null, "e": 151, "s": 28, "text": "In this article, we will learn how we can replace values of a DataFrame with the value of another DataFrame using pandas. " }, { "code": null, "e": 517, "s": 1...
How to Test Internet on Linux Using speedtest-cli?
28 Jul, 2020 While troubleshooting your system for slow internet access, the best way to figure is to measure the internet speed first. To check Internet speed on Linux we will be using third party tool speedtest_cli. It is a simple command-line client based on python for measuring internet bandwidth using speedtest.ne...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jul, 2020" }, { "code": null, "e": 380, "s": 54, "text": "While troubleshooting your system for slow internet access, the best way to figure is to measure the internet speed first. To check Internet speed on Linux we will be using t...
numpy.random.poisson() in Python
15 Jul, 2020 With the help of numpy.random.poisson() method, we can get the random samples from poisson distribution and return the random samples by using this method. poisson distribution Syntax : numpy.random.poisson(lam=1.0, size=None) Return : Return the random samples as numpy array. Example #1 : In this example ...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2020" }, { "code": null, "e": 184, "s": 28, "text": "With the help of numpy.random.poisson() method, we can get the random samples from poisson distribution and return the random samples by using this method." }, { "code...
Product of given N fractions in reduced form
23 Jun, 2022 Given the Numerator and Denominator of N fractions. The task is to find the product of N fraction and output the answer in reduced form.Examples: Input : N = 3 num[] = { 1, 2, 5 } den[] = { 2, 1, 6 } Output : 5/6 Product of 1/2 * 2/1 * 5/6 is 10/12. Reduced form of 10/12 is 5/6. Input : ...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 200, "s": 52, "text": "Given the Numerator and Denominator of N fractions. The task is to find the product of N fraction and output the answer in reduced form.Examples: " }, { "code": null...
Properties of Window Object
31 Aug, 2021 The window object is the topmost object of DOM hierarchy. It represents a browser window or frame that displays the contents of the webpage. Whenever a window appears on the screen to display the contents of document, the window object is created. The properties and methods of Window object that are common...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Aug, 2021" }, { "code": null, "e": 374, "s": 28, "text": "The window object is the topmost object of DOM hierarchy. It represents a browser window or frame that displays the contents of the webpage. Whenever a window appears on the s...
Spring Boot – MongoRepository with Example
03 Jan, 2022 Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-ready environment which enables the developers to directly focus on the logic instead of struggling with the configuration and setup. Sp...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jan, 2022" }, { "code": null, "e": 502, "s": 28, "text": "Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these days because of its rapid production-read...
Working with excel files using Pandas
19 Feb, 2020 Excel sheet is one of the most ubiquitous forms of files in the IT Industry. Everyone who uses a computer at one time or the other have come across and worked with excel spreadsheets. This popularity of excel is due to its vast range of applications in the field of storing and manipulation of data in a tab...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Feb, 2020" }, { "code": null, "e": 651, "s": 28, "text": "Excel sheet is one of the most ubiquitous forms of files in the IT Industry. Everyone who uses a computer at one time or the other have come across and worked with excel sprea...
ascii() in Python program
In this tutorial, we are going to learn about the ascii() function. ascii(object) function takes one argument and returns a printable representation of the object. Let's see some examples. # intializing non printable characters string = '¢' # printing the above character using ascii(object) print(ascii(string)) If you ...
[ { "code": null, "e": 1130, "s": 1062, "text": "In this tutorial, we are going to learn about the ascii() function." }, { "code": null, "e": 1226, "s": 1130, "text": "ascii(object) function takes one argument and returns a printable representation of the object." }, { "cod...
Sum of subset differences | Practice | GeeksforGeeks
Given an array S consisting of n numbers, find the sum of difference between last and first element of each subset. For example for set 5,8 there are 3 subsets possible 5 (difference is 5-5 = 0 as 5 is the only last and first element) 8 (difference is 8-8 = 0 as 8 is the only last and first element) 5 8 (differen...
[ { "code": null, "e": 1757, "s": 238, "text": "Given an array S consisting of n numbers, find the sum of difference between last and first element of each subset.\nFor example for set 5,8 there are 3 subsets possible\n5 (difference is 5-5 = 0 as 5 is the only last and first element)\n8 (differe...
How to use findViewById in Fragment?
This example demonstrate about How to use findViewById in Fragment Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version = "1.0" encoding = "utf-8"?> <LinearLayout xm...
[ { "code": null, "e": 1129, "s": 1062, "text": "This example demonstrate about How to use findViewById in Fragment" }, { "code": null, "e": 1258, "s": 1129, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a...
JavaScript - Array join() Method
Javascript array join() method joins all the elements of an array into a string. Its syntax is as follows − array.join(separator); separator − Specifies a string to separate each element of the array. If omitted, the array elements are separated with a comma. Returns a string after joining all the array elements. Try...
[ { "code": null, "e": 2547, "s": 2466, "text": "Javascript array join() method joins all the elements of an array into a string." }, { "code": null, "e": 2574, "s": 2547, "text": "Its syntax is as follows −" }, { "code": null, "e": 2598, "s": 2574, "text": "arr...
How do I add Vibrate and sound for Notification in Android?
This example demonstrate about How do I add Vibrate and sound for Notification in Android Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <? xml version= "1.0" encoding= "utf...
[ { "code": null, "e": 1152, "s": 1062, "text": "This example demonstrate about How do I add Vibrate and sound for Notification in Android" }, { "code": null, "e": 1281, "s": 1152, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requi...
Const vs Static vs Readonly in C#
Constant fields are the fields that cannot be modified. At the time of declaration, you need to assign a value to it. const int a = 5; If the static modifier is applied to a class then you cannot instantiate the class using the new keyword. You can use the static keyword on methods, properties, classes, constructors, e...
[ { "code": null, "e": 1180, "s": 1062, "text": "Constant fields are the fields that cannot be modified. At the time of declaration, you need to assign a value to it." }, { "code": null, "e": 1197, "s": 1180, "text": "const int a = 5;" }, { "code": null, "e": 1386, ...
JavaScript Strings
JavaScript strings are for storing and manipulating text. A JavaScript string is zero or more characters written inside quotes. You can use single or double quotes: You can use quotes inside a string, as long as they don't match the quotes surrounding the string: To find the length of a string, use the built-in length...
[ { "code": null, "e": 58, "s": 0, "text": "JavaScript strings are for storing and manipulating text." }, { "code": null, "e": 128, "s": 58, "text": "A JavaScript string is zero or more characters written inside quotes." }, { "code": null, "e": 165, "s": 128, "t...
C++ Library - <bitset>
Bitset represents a fixed-size sequence of N bits and stores values either 0 or 1. Zero means value is false or bit is unset and one means value is true or bit is set. Bitset class emulates space efficient array of boolean values, where each element occupies only one bit. As it emulates array, its index also starts fro...
[ { "code": null, "e": 2876, "s": 2603, "text": "Bitset represents a fixed-size sequence of N bits and stores values either 0 or 1. Zero means value is false or bit is unset and one means value is true or bit is set. Bitset class emulates space efficient array of boolean values, where each element occ...
How to find exponential value in Python?
Exponential value of a x is xth power of e, Euler's constant which is an irrational number called Euler's number and is equal to 2.718281. There are two ways to calculate it. Using ** operator >>> import math >>> math.e**2 #math.e is defined constant in math module 7.3890560989306495 Using exp() function >>>import math...
[ { "code": null, "e": 1201, "s": 1062, "text": "Exponential value of a x is xth power of e, Euler's constant which is an irrational number called Euler's number and is equal to 2.718281." }, { "code": null, "e": 1237, "s": 1201, "text": "There are two ways to calculate it." }, ...
MongoDB Aggregate JSON array field for the matching field of other collection?
For this, create two collections and add some document. After that, use $lookup for match. Let us create a collection with documents − > db.demo101.insertOne( ... { "_id" : "1", "Details" : [ { "PId" : "200" }, { "PId" : "201" }, { "PId" : "201" } ] } ... ) { "acknowledged" : true, "insertedId" : "1" } Display all docu...
[ { "code": null, "e": 1197, "s": 1062, "text": "For this, create two collections and add some document. After that, use $lookup for match. Let us create a collection with documents −" }, { "code": null, "e": 1366, "s": 1197, "text": "> db.demo101.insertOne(\n... { \"_id\" : \"1\",...
An easy tutorial about Sentiment Analysis with Deep Learning and Keras | by Sergio Virahonda | Towards Data Science
Get comfortable, it’s going to take you several minutes to read but hopefully, you’ll stick with me along the whole article. I’m gonna walk you through a foundational task that you as data scientist/machine learning engineer must know how to perform because at some point of your career you’ll be required to do so. In t...
[ { "code": null, "e": 968, "s": 171, "text": "Get comfortable, it’s going to take you several minutes to read but hopefully, you’ll stick with me along the whole article. I’m gonna walk you through a foundational task that you as data scientist/machine learning engineer must know how to perform becau...
PyQt5 - QStackedWidget
Functioning of QStackedWidget is similar to QTabWidget. It also helps in the efficient use of window’s client area. QStackedWidget provides a stack of widgets, only one of which can be viewed at a time. It is a useful layout built on top of QStackedLayout. A parent QStackedWidget object is populated with more than one ...
[ { "code": null, "e": 2079, "s": 1963, "text": "Functioning of QStackedWidget is similar to QTabWidget. It also helps in the efficient use of window’s client area." }, { "code": null, "e": 2220, "s": 2079, "text": "QStackedWidget provides a stack of widgets, only one of which can ...
Unix / Linux - Using Shell Arrays
In this chapter, we will discuss how to use shell arrays in Unix. A shell variable is capable enough to hold a single value. These variables are called scalar variables. Shell supports a different type of variable called an array variable. This can hold multiple values at the same time. Arrays provide a method of group...
[ { "code": null, "e": 2917, "s": 2747, "text": "In this chapter, we will discuss how to use shell arrays in Unix. A shell variable is capable enough to hold a single value. These variables are called scalar variables." }, { "code": null, "e": 3231, "s": 2917, "text": "Shell suppor...
Use Python to Stylize the Excel Formatting | by Yeung WONG | Towards Data Science
Do you have to regularly update the reports day after day? Have you ever thought of a way to automate these tedious, boring, and robotic works? You may say ‘Yes, but I can’t since there are lots of formatting stuff I need to manually add to Excel’. Today, I am going to show you how Python can work on Excel spreadsheet ...
[ { "code": null, "e": 542, "s": 172, "text": "Do you have to regularly update the reports day after day? Have you ever thought of a way to automate these tedious, boring, and robotic works? You may say ‘Yes, but I can’t since there are lots of formatting stuff I need to manually add to Excel’. Today,...
TensorFlow - Installation
To install TensorFlow, it is important to have “Python” installed in your system. Python version 3.4+ is considered the best to start with TensorFlow installation. Consider the following steps to install TensorFlow in Windows operating system. Step 1 − Verify the python version being installed. Step 2 − A user can pick...
[ { "code": null, "e": 2479, "s": 2315, "text": "To install TensorFlow, it is important to have “Python” installed in your system. Python version 3.4+ is considered the best to start with TensorFlow installation." }, { "code": null, "e": 2559, "s": 2479, "text": "Consider the follo...
Java.io.OutputStream class in Java - GeeksforGeeks
24 Jan, 2017 This abstract class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.Applications that need to define a subclass of OutputStream must always provide at least a method that writes one byte of output. Constructor and De...
[ { "code": null, "e": 27878, "s": 27850, "text": "\n24 Jan, 2017" }, { "code": null, "e": 28167, "s": 27878, "text": "This abstract class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.Appl...
Bootstrap 4 | Jumbotron - GeeksforGeeks
28 Apr, 2022 A jumbotron is a big grey box used to indicate some text which requires extra attention. Any text that seems to be important can be written inside a jumbotron to make it appear big and noticeable. Steps to add jumbotron: Use a jumbotron class inside a div element. Write any text inside the div tag. Close t...
[ { "code": null, "e": 29795, "s": 29767, "text": "\n28 Apr, 2022" }, { "code": null, "e": 29992, "s": 29795, "text": "A jumbotron is a big grey box used to indicate some text which requires extra attention. Any text that seems to be important can be written inside a jumbotron to m...
How to remove time from date using JavaScript ? - GeeksforGeeks
22 Feb, 2022 Given a Date Object and the task is to remove the time portion of the object using JavaScript. split() method: This method is used to split a string into an array of substrings, and returns the new array. Syntax: string.split( separator, limit ) Parameters: separator: This parameter is optional. It specifi...
[ { "code": null, "e": 24935, "s": 24907, "text": "\n22 Feb, 2022" }, { "code": null, "e": 25030, "s": 24935, "text": "Given a Date Object and the task is to remove the time portion of the object using JavaScript." }, { "code": null, "e": 25140, "s": 25030, "tex...
Difference between Iterator and Enumeration in Java with Examples - GeeksforGeeks
28 Jan, 2021 Iterator: It is a universal iterator as we can apply it to any Collection object. By using Iterator, we can perform both read and remove operations. It is an improved version of Enumeration with the additional functionality of remove-ability of an element. Iterator must be used whenever we want to enumera...
[ { "code": null, "e": 24768, "s": 24740, "text": "\n28 Jan, 2021" }, { "code": null, "e": 25026, "s": 24768, "text": "Iterator: It is a universal iterator as we can apply it to any Collection object. By using Iterator, we can perform both read and remove operations. It is an impro...
Insertion in a B+ tree - GeeksforGeeks
24 Nov, 2021 Prerequisite: Introduction of B+ treesIn this article, we will discuss that how to insert a node in B+ Tree. During insertion following properties of B+ Tree must be followed: Each node except root can have a maximum of M children and at least ceil(M/2) children. Each node can contain a maximum of M – 1 ...
[ { "code": null, "e": 24700, "s": 24672, "text": "\n24 Nov, 2021" }, { "code": null, "e": 24878, "s": 24700, "text": "Prerequisite: Introduction of B+ treesIn this article, we will discuss that how to insert a node in B+ Tree. During insertion following properties of B+ Tree must ...
Why is Delta Lake becoming increasingly popular? | by Lingeshwaran Kanniappan | Towards Data Science
It can be confusing to understand the difference between a Delta lake and the Data lake for a beginner. Working with the former storage layer for more than a year now, I am sharing the particular advantages which a delta lake serves and how it overcomes the challenges of a traditional data lake architecture with some e...
[ { "code": null, "e": 500, "s": 171, "text": "It can be confusing to understand the difference between a Delta lake and the Data lake for a beginner. Working with the former storage layer for more than a year now, I am sharing the particular advantages which a delta lake serves and how it overcomes t...
MySQL select query to fetch data with null value?
Let us first create a table − mysql> create table DemoTable ( CustomerName varchar(100), CustomerCountryName varchar(100) ); Query OK, 0 rows affected (0.95 sec) Insert some records in the table using insert command − mysql> insert into DemoTable values('Chris','US'); Query OK, 1 row affected (0.18 sec) mysql> in...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1230, "s": 1092, "text": "mysql> create table DemoTable\n(\n CustomerName varchar(100),\n CustomerCountryName varchar(100)\n);\nQuery OK, 0 rows affected (0.95 sec)" }, {...
java.lang.reflect.Proxy.newProxyInstance() Method Example
The java.lang.reflect.Proxy.newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) method returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler. Following is the declaration for java.lang.reflect.Proxy.newProxyI...
[ { "code": null, "e": 1708, "s": 1454, "text": "The java.lang.reflect.Proxy.newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) method returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler....
How I can change the style of alert box using JavaScript?
You will not be able to change the style of a standard alert box in JavaScript. To change the style, use the following custom alert box. We’re using JavaScript library, jQuery to achive this. Live Demo <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">...
[ { "code": null, "e": 1254, "s": 1062, "text": "You will not be able to change the style of a standard alert box in JavaScript. To change the style, use the following custom alert box. We’re using JavaScript library, jQuery to achive this." }, { "code": null, "e": 1264, "s": 1254, ...
PriorityQueue clear() Method in Java
10 Dec, 2018 The Java.util.PriorityQueue.clear() method is used to remove all the elements from a PriorityQueue. Using the clear() method only clears all the element from the queue and does not delete the queue. In other words, we can say that the clear() method is used to only empty an existing PriorityQueue. Syntax: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2018" }, { "code": null, "e": 327, "s": 28, "text": "The Java.util.PriorityQueue.clear() method is used to remove all the elements from a PriorityQueue. Using the clear() method only clears all the element from the queue and doe...
Hive – Load Data Into Table
24 Nov, 2020 Hive tables provide us the schema to store data in various formats (like CSV). Hive provides multiple ways to add data to the tables. We can use DML(Data Manipulation Language) queries in Hive to import or add data to the table. One can also directly put the table into the hive with HDFS commands. In case ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Nov, 2020" }, { "code": null, "e": 602, "s": 28, "text": "Hive tables provide us the schema to store data in various formats (like CSV). Hive provides multiple ways to add data to the tables. We can use DML(Data Manipulation Language...
Scala | Polymorphism
20 Jun, 2019 Polymorphism is the ability of any data to be processed in more than one form. The word itself indicates the meaning as means many and means types. Scala implements polymorphism through virtual functions, overloaded functions and overloaded operators. Polymorphism is one of the most important concept of ...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jun, 2019" }, { "code": null, "e": 1135, "s": 28, "text": "Polymorphism is the ability of any data to be processed in more than one form. The word itself indicates the meaning as means many and means types. Scala implements polymor...
PLSQL | LOWER Function
24 Sep, 2019 The PLSQL LOWER function is used for converting all letters in the specified string to lowercase. If there are characters in the string that are not letters, they are unaffected by this function. The char to be converted can be any of the datatypes such as CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Sep, 2019" }, { "code": null, "e": 224, "s": 28, "text": "The PLSQL LOWER function is used for converting all letters in the specified string to lowercase. If there are characters in the string that are not letters, they are unaffect...
Different ways to Invert the Binary bits in Python
20 Aug, 2020 We know how binary value for numbers look like. For example, the binary value for 10 (Number Ten) is 1010 (binary value). Sometimes it is required to inverse the bits i.e., 0’s to 1’s ( zeros to ones) and 1’s to 0’s (ones to zeros). Here are there few ways by which we can inverse the bits in Python. 1) Usi...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Aug, 2020" }, { "code": null, "e": 174, "s": 52, "text": "We know how binary value for numbers look like. For example, the binary value for 10 (Number Ten) is 1010 (binary value)." }, { "code": null, "e": 353, "s": 1...
Difference Between Data Hiding and Abstraction in Java
06 Jun, 2021 Abstraction Is hiding the internal implementation and just highlight the set of services. It is achieved by using the abstract class and interfaces and further implementing the same. Only necessarily characteristics of an object that differentiates it from all other objects. Only the important details are ...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jun, 2021" }, { "code": null, "e": 427, "s": 52, "text": "Abstraction Is hiding the internal implementation and just highlight the set of services. It is achieved by using the abstract class and interfaces and further implementing t...
How to use HTML in Tkinter – Python?
31 Aug, 2021 Prerequisite: Tkinter Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and easiest way to create...
[ { "code": null, "e": 52, "s": 24, "text": "\n31 Aug, 2021" }, { "code": null, "e": 74, "s": 52, "text": "Prerequisite: Tkinter" }, { "code": null, "e": 424, "s": 74, "text": "Python offers multiple options for developing GUI (Graphical User Interface). Out of ...
median() function in Python statistics module
27 Sep, 2021 Python is a very popular language when it comes to data analysis and statistics. Luckily, Python3 provide statistics module, which comes with very useful functions like mean(), median(), mode() etc.median() function in the statistics module can be used to calculate median value from an unsorted data-list. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2021" }, { "code": null, "e": 1174, "s": 28, "text": "Python is a very popular language when it comes to data analysis and statistics. Luckily, Python3 provide statistics module, which comes with very useful functions like mean(...
Install Tensorflow on MacOS
23 May, 2021 TensorFlow is an open-source software library developed by the Google brain team. It widely used to implement deep learning models which helps in solving real world problems. In this article, we learn how to install TensorFlow on macOS using Homebrew. Requirements: Python 3.6–3.8macOS 10.12.6 (Sierra) or l...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 May, 2021" }, { "code": null, "e": 306, "s": 54, "text": "TensorFlow is an open-source software library developed by the Google brain team. It widely used to implement deep learning models which helps in solving real world problems....
ES6 - switch…case Statement
The switch statement evaluates an expression, matches the expression’s value to a case clause and executes the statements associated with that case. Following is the syntax. switch(variable_expression) { case constant_expr1: { //statements; break; } case constant_expr2: { //statements; ...
[ { "code": null, "e": 2560, "s": 2411, "text": "The switch statement evaluates an expression, matches the expression’s value to a case clause and executes the statements associated with that case." }, { "code": null, "e": 2585, "s": 2560, "text": "Following is the syntax." }, ...
Python | Split Sublist Strings
01 May, 2019 Yet another variation of splitting strings is splitting the strings that are an element of the sublist. This is quite peculiar problem, but one can get the data in this format and knowledge of splitting it anyways quite useful. Let’s discuss certain ways in which this particular task can be performed. Meth...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 May, 2019" }, { "code": null, "e": 331, "s": 28, "text": "Yet another variation of splitting strings is splitting the strings that are an element of the sublist. This is quite peculiar problem, but one can get the data in this format...
turtle.Screen().turtles() function in Python
27 Aug, 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 function is used to return the list of turtles on the screen. This doesn’t require an...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 Aug, 2021" }, { "code": null, "e": 270, "s": 53, "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 ve...