title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
SQL Tryit Editor v1.6
SELECT * FROM Customers WHERE NOT Country='Germany'; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version o...
[ { "code": null, "e": 24, "s": 0, "text": "SELECT * FROM Customers" }, { "code": null, "e": 53, "s": 24, "text": "WHERE NOT Country='Germany';" }, { "code": null, "e": 55, "s": 53, "text": "​" }, { "code": null, "e": 118, "s": 55, "text": "E...
Difference between Perl and Ruby - GeeksforGeeks
02 Nov, 2020 Perl is a general-purpose, high level interpreted and dynamic programming language. It was developed by Larry Wall, in 1987. Perl was originally developed for text processing like extracting the required information from a specified text file and for converting the text file into a different form. Perl sup...
[ { "code": null, "e": 24858, "s": 24830, "text": "\n02 Nov, 2020" }, { "code": null, "e": 25317, "s": 24858, "text": "Perl is a general-purpose, high level interpreted and dynamic programming language. It was developed by Larry Wall, in 1987. Perl was originally developed for text...
Nearest Neighbour Analysis with Geospatial data | by Abdishakur | Towards Data Science
Finding the nearest neighbour of an object to another is a common spatial data analysis task. For example, determining the closest service point to your home is an optimisation problem that requires performing Nearest Neighbour Analysis with spatial data. In this tutorial, we perform Nearest Neighbourhood Analysis with...
[ { "code": null, "e": 428, "s": 172, "text": "Finding the nearest neighbour of an object to another is a common spatial data analysis task. For example, determining the closest service point to your home is an optimisation problem that requires performing Nearest Neighbour Analysis with spatial data....
C library function - freopen()
The C library function FILE *freopen(const char *filename, const char *mode, FILE *stream) associates a new filename with the given open stream and at the same time closes the old file in the stream. Following is the declaration for freopen() function. FILE *freopen(const char *filename, const char *mode, FILE *stream)...
[ { "code": null, "e": 2207, "s": 2007, "text": "The C library function FILE *freopen(const char *filename, const char *mode, FILE *stream) associates a new filename with the given open stream and at the same time closes the old file in the stream." }, { "code": null, "e": 2260, "s": 2...
Tryit Editor v3.7
Tryit: JavaScript - change attribute value
[]
How to do groupby on a multiindex in Pandas? - GeeksforGeeks
30 May, 2021 In this article, we will be showing how to use the groupby on a Multiindex Dataframe in Pandas. In Data science when we are performing exploratory data analysis, we often use groupby to group the data of one column based on the other column. So, we are able to analyze how the data of one column is grouped ...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n30 May, 2021" }, { "code": null, "e": 24739, "s": 24318, "text": "In this article, we will be showing how to use the groupby on a Multiindex Dataframe in Pandas. In Data science when we are performing exploratory data analysis, w...
How do you plot a vertical line on a time series plot in Pandas?
Using Pandas, we will create a dataframe and set the vertical lines on the created axes, using axvline lines. Using panda we can create a data frame. Using panda we can create a data frame. Creating a data frame would help to create help. Creating a data frame would help to create help. Using axvline(), add a vertical ...
[ { "code": null, "e": 1172, "s": 1062, "text": "Using Pandas, we will create a dataframe and set the vertical lines on the created axes, using axvline lines." }, { "code": null, "e": 1212, "s": 1172, "text": "Using panda we can create a data frame." }, { "code": null, ...
Program to check if an array is sorted or not (Iterative and Recursive) in C
Given an array arr[] with n number of elements, our task is to check whether the given array is in sorted order or not, If it is in sorted order then print “The array is in sorted order”, else print “The array is not in sorted order”. To solve the above stated problem we can use Iterative or Recursive approach, we will...
[ { "code": null, "e": 1297, "s": 1062, "text": "Given an array arr[] with n number of elements, our task is to check whether the given array is in sorted order or not, If it is in sorted order then print “The array is in sorted order”, else print “The array is not in sorted order”." }, { "cod...
Elixir - Data Types
For using any language, you need to understand the basic data types the language supports. In this chapter, we will discuss 7 basic data types supported by the elixir language: integers, floats, Booleans, atoms, strings, lists and tuples. Elixir, like any other programming language, supports both integers and floats. I...
[ { "code": null, "e": 2421, "s": 2182, "text": "For using any language, you need to understand the basic data types the language supports. In this chapter, we will discuss 7 basic data types supported by the elixir language: integers, floats, Booleans, atoms, strings, lists and tuples." }, { ...
Find total number of distinct years from a string in C++ Program
In this tutorial, we are going to write a program that finds distinct years in the given string. Let's see some examples. We are assuming the date format is DD/MM/YYYY. Input − Sample example with dates 01/11/2020, 02/12/2020, and 03/10/2019. Output − 2 We have two distinct years in the given text 2020 and 2019. We are...
[ { "code": null, "e": 1231, "s": 1062, "text": "In this tutorial, we are going to write a program that finds distinct years in the given string. Let's see some examples. We are assuming the date format is DD/MM/YYYY." }, { "code": null, "e": 1305, "s": 1231, "text": "Input − Sampl...
Algorithms in C++. Complete Search, Greedy, Divide and... | by Vadim Smolyakov | Towards Data Science
The purpose of this article is to introduce the reader to four main algorithmic paradigms: complete search, greedy algorithms, divide and conquer, and dynamic programming. Many algorithmic problems can be mapped into one of these four categories and the mastery of each one will make you a better programmer. This articl...
[ { "code": null, "e": 481, "s": 172, "text": "The purpose of this article is to introduce the reader to four main algorithmic paradigms: complete search, greedy algorithms, divide and conquer, and dynamic programming. Many algorithmic problems can be mapped into one of these four categories and the m...
AVRO - Schemas
Avro, being a schema-based serialization utility, accepts schemas as input. In spite of various schemas being available, Avro follows its own standards of defining schemas. These schemas describe the following details − type of file (record by default) location of record name of the record fields in the record with the...
[ { "code": null, "e": 2081, "s": 1861, "text": "Avro, being a schema-based serialization utility, accepts schemas as input. In spite of various schemas being available, Avro follows its own standards of defining schemas. These schemas describe the following details −" }, { "code": null, "...
What is the difference between attributes and properties in python?
In python, everything is an object. And every object has attributes and methods or functions. Attributes are described by data variables for example like name, age, height etc. Properties are special kind of attributes which have getter, setter and delete methods like __get__, __set__ and __delete__ methods. However, t...
[ { "code": null, "e": 1239, "s": 1062, "text": "In python, everything is an object. And every object has attributes and methods or functions. Attributes are described by data variables for example like name, age, height etc." }, { "code": null, "e": 1372, "s": 1239, "text": "Prope...
How to pass Arrays to Methods in Java?
You can pass arrays to a method just like normal variables. When we pass an array to a method as an argument, actually the address of the array in the memory is passed (reference). Therefore, any changes to this array in the method will affect the array. Suppose we have two methods min() and max() which accepts an arra...
[ { "code": null, "e": 1317, "s": 1062, "text": "You can pass arrays to a method just like normal variables. When we pass an array to a method as an argument, actually the address of the array in the memory is passed (reference). Therefore, any changes to this array in the method will affect the array...
Find the longest substring with k unique characters in a given string - GeeksforGeeks
12 Dec, 2021 Given a string you need to print longest possible substring that has exactly M unique characters. If there are more than one substring of longest possible length, then print any one of them. Examples: "aabbcc", k = 1 Max substring can be any one from {"aa" , "bb" , "cc"}. "aabbcc", k = 2 Max substring ca...
[ { "code": null, "e": 25060, "s": 25032, "text": "\n12 Dec, 2021" }, { "code": null, "e": 25251, "s": 25060, "text": "Given a string you need to print longest possible substring that has exactly M unique characters. If there are more than one substring of longest possible length, ...
DateTime.DaysInMonth() Method in C# - GeeksforGeeks
22 Jan, 2019 This method returns the number of days in the specified month and year. This method always interprets month and year as the month and year of the Gregorian calendar even if the Gregorian calendar is not the current culture’s current calendar. Syntax: public static int DaysInMonth (int year, int month); Ret...
[ { "code": null, "e": 23879, "s": 23851, "text": "\n22 Jan, 2019" }, { "code": null, "e": 24122, "s": 23879, "text": "This method returns the number of days in the specified month and year. This method always interprets month and year as the month and year of the Gregorian calenda...
Implementing a Binary Search Tree in JavaScript
A tree is a collection of nodes connected by some edges. Conventionally, each node of a tree holds some data and reference to its children. Binary Search tree is a binary tree in which nodes that have lesser value are stored on the left while the nodes with a higher value are stored at the right. For instance, visual r...
[ { "code": null, "e": 1202, "s": 1062, "text": "A tree is a collection of nodes connected by some edges. Conventionally, each node of a tree\nholds some data and reference to its children." }, { "code": null, "e": 1360, "s": 1202, "text": "Binary Search tree is a binary tree in wh...
How do I get rid of the Python Tkinter root window?
Sometimes, while testing a Tkinter application, we may need to hide the Tkinter default window or frame. There are two general methods through which we can either hide our Tkinter window, or destroy it. The mainloop() keeps running the Tkinter window until it is not closed by external events. In order to destroy the wi...
[ { "code": null, "e": 1265, "s": 1062, "text": "Sometimes, while testing a Tkinter application, we may need to hide the Tkinter\ndefault window or frame. There are two general methods through which we can either hide our Tkinter window, or destroy it." }, { "code": null, "e": 1429, "s...
How to Create a Bland-Altman Plot in R? - GeeksforGeeks
04 Jan, 2022 In this article, we will discuss how to create a Bland-Altman Plot in the R programming Language. The Bland-Altman plot helps us to visualize the difference in measurements between two different measurement techniques. It is used vastly in the field of biochemistry. It is useful for determining how similar...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n04 Jan, 2022" }, { "code": null, "e": 26585, "s": 26487, "text": "In this article, we will discuss how to create a Bland-Altman Plot in the R programming Language." }, { "code": null, "e": 26882, "s": 26585, "...
Reverse the content of a file and store it in another - GeeksforGeeks
16 Jul, 2020 The article explains how to store the reverse of the first text file’s data to a second text file. In this post, it has been assumed that there is no text in the first text file. So we will write some text in a first text file by passing data to reverse function and then in reverse function we will copy th...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n16 Jul, 2020" }, { "code": null, "e": 25718, "s": 25367, "text": "The article explains how to store the reverse of the first text file’s data to a second text file. In this post, it has been assumed that there is no text in the f...
Python - Characters Index occurrences in String - GeeksforGeeks
09 Mar, 2020 Sometimes, while working with Python Strings, we can have a problem in which we need to check for all the characters indices. The position where they occur. This kind of application can come in many domains. Lets discuss certain ways in which this task can be performed. Method #1 : Using set() + regex + li...
[ { "code": null, "e": 26125, "s": 26097, "text": "\n09 Mar, 2020" }, { "code": null, "e": 26396, "s": 26125, "text": "Sometimes, while working with Python Strings, we can have a problem in which we need to check for all the characters indices. The position where they occur. This k...
R - Matrices - GeeksforGeeks
29 Apr, 2022 Matrix is a rectangular arrangement of numbers in rows and columns. In a matrix, as we know rows are the ones that run horizontally and columns are the ones that run vertically. In R programming, matrices are two-dimensional, homogeneous data structures. These are some examples of matrices: To create a ...
[ { "code": null, "e": 30289, "s": 30261, "text": "\n29 Apr, 2022" }, { "code": null, "e": 30582, "s": 30289, "text": "Matrix is a rectangular arrangement of numbers in rows and columns. In a matrix, as we know rows are the ones that run horizontally and columns are the ones that r...
Double isNaN() method in Java with examples - GeeksforGeeks
26 Oct, 2018 The isNaN() method of Java Double class is a built in method in Java returns true if this Double value or the specified double value is Not-a-Number (NaN), or false otherwise. Syntax: public boolean isNaN() or public static boolean isNaN(double val) Parameters: The function accepts a single paramet...
[ { "code": null, "e": 25691, "s": 25663, "text": "\n26 Oct, 2018" }, { "code": null, "e": 25867, "s": 25691, "text": "The isNaN() method of Java Double class is a built in method in Java returns true if this Double value or the specified double value is Not-a-Number (NaN), or fals...
Count the Number of matching characters in a pair of strings - GeeksforGeeks
21 May, 2021 Given a pair of non-empty strings str1 and str2, the task is to count the number of matching characters in these strings. Consider the single count for the character which have duplicates in the strings.Examples: Input: str1 = “abcdef”, str2 = “defghia” Output: 4 Matching characters are: a, d, e, fInput:...
[ { "code": null, "e": 26098, "s": 26070, "text": "\n21 May, 2021" }, { "code": null, "e": 26313, "s": 26098, "text": "Given a pair of non-empty strings str1 and str2, the task is to count the number of matching characters in these strings. Consider the single count for the charact...
How to Append Two Tables and Put the Result in a Table in SQL? - GeeksforGeeks
14 Sep, 2021 Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracle, SQL Server, PostGre, etc. In this article, we will learn how to append two tables and store the result into a new table using UNION, UNION AL...
[ { "code": null, "e": 26197, "s": 26169, "text": "\n14 Sep, 2021" }, { "code": null, "e": 26507, "s": 26197, "text": "Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracl...
How to show or hide element in React ? - GeeksforGeeks
23 Dec, 2020 ReactJS is an entire architecture based on components that are used to create awesome UI and developer components. In any React app, it is all about components, so usually, we have to work with new components to develop a rich user interface. Hence, as per different circumstances we have to hide or show so...
[ { "code": null, "e": 26569, "s": 26541, "text": "\n23 Dec, 2020" }, { "code": null, "e": 26917, "s": 26569, "text": "ReactJS is an entire architecture based on components that are used to create awesome UI and developer components. In any React app, it is all about components, so...
Add one to a number represented as linked list | Set 2 - GeeksforGeeks
06 Jul, 2021 Given a singly linked list which represents a number where each node contains only one digit [0 – 9]. The task is to add 1 to the number represented by the given linked list and print the new linked list.Examples: Input: 1 -> 2 -> 9 -> 9 -> NULL Output: Original list is : 1 2 9 9 Resultant list is : 1 3 0...
[ { "code": null, "e": 26205, "s": 26177, "text": "\n06 Jul, 2021" }, { "code": null, "e": 26420, "s": 26205, "text": "Given a singly linked list which represents a number where each node contains only one digit [0 – 9]. The task is to add 1 to the number represented by the given l...
Streamline Plots in Plotly using Python - GeeksforGeeks
05 Sep, 2020 A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library. In ...
[ { "code": null, "e": 25429, "s": 25401, "text": "\n05 Sep, 2020" }, { "code": null, "e": 25733, "s": 25429, "text": "A Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, ...
Python - turtle.pencolor() method - GeeksforGeeks
29 Jul, 2021 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This method is used to change the color of the ink of the turtle drawing. The default colo...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n29 Jul, 2021" }, { "code": null, "e": 25779, "s": 25562, "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...
PostgreSQL - Restore Database - GeeksforGeeks
28 Jul, 2021 Restoring a database, is the action of copying the backed up data and restoring it at its original or new place. We perform restore action on a database so as to return the data to its original state before being lost, stolen or corrupted. There are several causes due to which one needs to restore a databa...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n28 Jul, 2021" }, { "code": null, "e": 26040, "s": 25367, "text": "Restoring a database, is the action of copying the backed up data and restoring it at its original or new place. We perform restore action on a database so as to r...
Fork and Join Constructs in Concurrency
06 Jul, 2020 Prerequisite – Process SynchronizationFork :The fork instruction is the that instruction in the process execution that produces two concurrent executions in a program. One of the concurrent executions starts at statement labeled and other execution is the continuation of the execution at the statement foll...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2020" }, { "code": null, "e": 430, "s": 28, "text": "Prerequisite – Process SynchronizationFork :The fork instruction is the that instruction in the process execution that produces two concurrent executions in a program. One of ...
How to Create a MySQL Sequence?
In MySQL, a sequence refers to a list of integers that is generated in the ascending order beginning from 1 or 0 if specified. Many applications require sequences that will be used to generate unique numbers especially for identification. Examples include customer ID in CRM, employee numbers in HR, and equipment number...
[ { "code": null, "e": 1426, "s": 1187, "text": "In MySQL, a sequence refers to a list of integers that is generated in the ascending order beginning from 1 or 0 if specified. Many applications require sequences that will be used to generate unique numbers especially for identification." }, { ...
Python | Insert character after every character pair
04 Jul, 2019 Sometimes, we can have a problem in which we need to insert a specific character after pair(second) character. This kind of problem can occur while working with data, that require insertion of commas or any other special character mainly in Machine Learning domain. Let’s discuss certain ways in which this ...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jul, 2019" }, { "code": null, "e": 358, "s": 28, "text": "Sometimes, we can have a problem in which we need to insert a specific character after pair(second) character. This kind of problem can occur while working with data, that req...
How to Install Eclipse for C++ on Linux?
16 Oct, 2021 Eclipse is an IDE (integrated development environment) used for building software. It was initially released by IBM on 7 November 2001. Using eclipse, we can develop applications with Java, PHP, and C/C++ programming languages. It’s one of the most popular open-source IDE among developers. In today’s artic...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Oct, 2021" }, { "code": null, "e": 465, "s": 28, "text": "Eclipse is an IDE (integrated development environment) used for building software. It was initially released by IBM on 7 November 2001. Using eclipse, we can develop applicati...
Create digital clock using Python-Turtle
02 Jul, 2021 Prerequisites: Turtle Programming in PythonTurtle is a special feature of Python. Using Turtle, we can easily draw on a drawing board. First, we import the turtle module. Then create a window, next we create a turtle object and using the turtle methods we can draw in the drawing board.Installation: To inst...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jul, 2021" }, { "code": null, "e": 419, "s": 54, "text": "Prerequisites: Turtle Programming in PythonTurtle is a special feature of Python. Using Turtle, we can easily draw on a drawing board. First, we import the turtle module. The...
Python – Regex Lookahead
03 Jan, 2021 Lookahead is used as an assertion in Python regular expressions to determine success or failure whether the pattern is ahead i.e to the right of the parser’s current position. They don’t match anything. Hence, they are called as zero-width assertions. Syntax: # Positive lookahead (?=<lookahead_regex>) Exa...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Jan, 2021" }, { "code": null, "e": 304, "s": 52, "text": "Lookahead is used as an assertion in Python regular expressions to determine success or failure whether the pattern is ahead i.e to the right of the parser’s current position...
CONVERT_TZ() function in MySQL
25 Nov, 2020 CONVERT_TZ() function in MySQL is used to convert the given DateTime from One time zone to another time zone. If the arguments are invalid, the function will return NULL. Syntax : CONVERT_TZ (dt, from_tz,to_tz) Parameters: This method accepts a three-parameter. dt: The given DateTime which we want to con...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Nov, 2020" }, { "code": null, "e": 200, "s": 28, "text": "CONVERT_TZ() function in MySQL is used to convert the given DateTime from One time zone to another time zone. If the arguments are invalid, the function will return NULL. " ...
Check if sums of i-th row and i-th column are same in matrix
15 Jun, 2022 Given a matrix mat[][], we have to check if the sum of i-th row is equal to the sum of i-th column or not. Examples: Input : 1 2 3 4 9 5 3 1 0 3 5 6 0 4 5 6 Output : Yes Sums of 1st row = 10 and 1st column are same, i.e., 10 Expected time complexity is O(m x n) where m is a num...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 160, "s": 52, "text": "Given a matrix mat[][], we have to check if the sum of i-th row is equal to the sum of i-th column or not. " }, { "code": null, "e": 171, "s": 160, "text"...
Iterators in Java
21 Apr, 2022 A Java Cursor is an Iterator, which is used to iterate or traverse or retrieve a Collection or Stream object’s elements one by one. There are three cursors in Java. IteratorEnumerationListIterator Iterator Enumeration ListIterator Note: SplitIterator can also be considered as a cursor as it is a type of It...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Apr, 2022" }, { "code": null, "e": 219, "s": 54, "text": "A Java Cursor is an Iterator, which is used to iterate or traverse or retrieve a Collection or Stream object’s elements one by one. There are three cursors in Java." }, {...
How to Detect Idle Time in JavaScript ?
31 Dec, 2019 The idle time is the time that the user doesn’t interact with a web-page. This interaction can be either moving the mouse, clicking on the page or using the keyboard. This time can be detected to execute certain events that may need to occur after a certain period of idle time. Method 1: Using JavaScript: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Dec, 2019" }, { "code": null, "e": 307, "s": 28, "text": "The idle time is the time that the user doesn’t interact with a web-page. This interaction can be either moving the mouse, clicking on the page or using the keyboard. This tim...
HTML | <frame> scrolling Attribute
28 Jun, 2021 The HTML <frame> scrolling attribute is used to specify that whether the scrollbar will be displayed or not in the <frame> element. Basically, the scrollbar is used when the content is larger than the Iframe Element.Syntax: <frame scrolling="auto|yes|no"> Attribute Values: auto: It has the default valu...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2021" }, { "code": null, "e": 254, "s": 28, "text": "The HTML <frame> scrolling attribute is used to specify that whether the scrollbar will be displayed or not in the <frame> element. Basically, the scrollbar is used when the c...
Python program to represent floating number as hexadecimal by IEEE 754 standard
26 May, 2021 Prerequisite : IEEE Standard 754 Floating Point NumbersGiven a floating point number, the task is to find the hexadecimal representation for the number by IEEE 754 standard.The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation which was establishe...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2021" }, { "code": null, "e": 736, "s": 28, "text": "Prerequisite : IEEE Standard 754 Floating Point NumbersGiven a floating point number, the task is to find the hexadecimal representation for the number by IEEE 754 standard.Th...
Working with Radio buttons and Check boxes in Selenium with Python
26 Oct, 2021 Prerequisite: Browser Automation Using Selenium Requirement: You need to install chrome driver and set path. Click here to download. Selenium is an effective device for controlling an internet browser through the program. It is purposeful for all browsers, works on all fundamental OS and its scripts are w...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Oct, 2021" }, { "code": null, "e": 76, "s": 28, "text": "Prerequisite: Browser Automation Using Selenium" }, { "code": null, "e": 162, "s": 76, "text": "Requirement: You need to install chrome driver and set path....
Arrays in JavaScript - GeeksforGeeks
21 Jul, 2021 In JavaScript, array is a single variable that is used to store different elements. It is often used when we want to store list of elements and access them by a single variable. Unlike most languages where array is a reference to the multiple variable, in JavaScript array is a single variable that stores m...
[ { "code": null, "e": 29691, "s": 29663, "text": "\n21 Jul, 2021" }, { "code": null, "e": 30100, "s": 29691, "text": "In JavaScript, array is a single variable that is used to store different elements. It is often used when we want to store list of elements and access them by a si...
How to Compress Files Faster with Pigz Tool in Linux - GeeksforGeeks
28 Jul, 2021 Pigz (parallel implementation of gzip) is a free, open-source multi-threaded compression software for Linux that compresses and uncompresses files. Pigz is pronounced as “pig-zee”, it compresses data using the zlib and pthread libraries and takes full advantage of many processors and cores. Pigz can archiv...
[ { "code": null, "e": 24561, "s": 24533, "text": "\n28 Jul, 2021" }, { "code": null, "e": 25283, "s": 24561, "text": "Pigz (parallel implementation of gzip) is a free, open-source multi-threaded compression software for Linux that compresses and uncompresses files. Pigz is pronoun...
Insertion, Searching and Deletion in AVL trees containing a parent node pointer - GeeksforGeeks
14 Jul, 2021 AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes. The insertion and deletion in AVL trees have been discussed in the previous article. In this article, insert, search and delete operations are discuss...
[ { "code": null, "e": 25054, "s": 25026, "text": "\n14 Jul, 2021" }, { "code": null, "e": 25429, "s": 25054, "text": "AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes. The in...
PostgreSQL - DELETE Query
The PostgreSQL DELETE Query is used to delete the existing records from a table. You can use WHERE clause with DELETE query to delete the selected rows. Otherwise, all the records would be deleted. The basic syntax of DELETE query with WHERE clause is as follows − DELETE FROM table_name WHERE [condition]; You can comb...
[ { "code": null, "e": 3023, "s": 2825, "text": "The PostgreSQL DELETE Query is used to delete the existing records from a table. You can use WHERE clause with DELETE query to delete the selected rows. Otherwise, all the records would be deleted." }, { "code": null, "e": 3090, "s": 302...
Algorithms Quiz | Bit Algorithms | Question 4 - GeeksforGeeks
28 Sep, 2018 Consider the following code snippet for checking whether a number is power of 2 or not. /* Incorrect function to check if x is power of 2*/bool isPowerOfTwo (unsigned int x) { return (!(x&(x-1))); } What is wrong with above function?(A) It does reverse of what is required(B) It works perfectly fine for a...
[ { "code": null, "e": 24980, "s": 24952, "text": "\n28 Sep, 2018" }, { "code": null, "e": 25068, "s": 24980, "text": "Consider the following code snippet for checking whether a number is power of 2 or not." }, { "code": "/* Incorrect function to check if x is power of 2*/b...
MapStruct - Implicit Type Conversion
MapStruct handles conversion of type conversions automatically in most of the cases. For example, int to Long or String conversion. Conversion handles null values as well. Following are the some of the important automatic conversions. Between primitive types and Corresponding Wrapper Classes. Between primitive types an...
[ { "code": null, "e": 2495, "s": 2260, "text": "MapStruct handles conversion of type conversions automatically in most of the cases. For example, int to Long or String conversion. Conversion handles null values as well. Following are the some of the important automatic conversions." }, { "cod...
YAML - Block Sequences
The block sequences of YAML represent a series of nodes. Each item is denoted by a leading “-“ indicator. Note that the “-“ indicator in YAML should be separated from the node with a white space. The basic representation of block sequence is given below − block sequence: ··- one↓ - two : three↓ Observe the followin...
[ { "code": null, "e": 2245, "s": 2048, "text": "The block sequences of YAML represent a series of nodes. Each item is denoted by a leading “-“ indicator. Note that the “-“ indicator in YAML should be separated from the node with a white space." }, { "code": null, "e": 2305, "s": 2245...
Bootstrap show.bs.modal Event
The show.bs.modal event in Bootstrap fires when the modal is about to be displayed. Here the alert is set using the same event and when the model is ready to be displayed, the event fires. This results in dispaying the alert to the visitor. With that, I have also set a button that clicks the modal to open as shown in t...
[ { "code": null, "e": 1146, "s": 1062, "text": "The show.bs.modal event in Bootstrap fires when the modal is about to be displayed." }, { "code": null, "e": 1303, "s": 1146, "text": "Here the alert is set using the same event and when the model is ready to be displayed, the event ...
Python program to find the highest 3 values in a dictionary
In this article, we will learn about the solution and approach to solve the given problem statement. Given a dictionary, we need to find the three highest valued values and display them. Live Demo from collections import Counter # Initial Dictionary my_dict = {'t': 3, 'u': 4, 't': 6, 'o': 5, 'r': 21} k = Counter(my_di...
[ { "code": null, "e": 1163, "s": 1062, "text": "In this article, we will learn about the solution and approach to solve the given problem statement." }, { "code": null, "e": 1249, "s": 1163, "text": "Given a dictionary, we need to find the three highest valued values and display t...
How to update array of subdocuments in MongoDB?
To update, use update() along with $set. Let us create a collection with documents − >db.demo134.insertOne({"EmployeeId":101,"EmployeeDetails":[{"EmployeeName":"Chris","EmployeeAge":27},{"EmployeeName":"Bob","EmployeeAge":28}]}); { "acknowledged" : true, "insertedId" : ObjectId("5e319b2f68e7f832db1a7f7c") } >db.d...
[ { "code": null, "e": 1147, "s": 1062, "text": "To update, use update() along with $set. Let us create a collection with documents −" }, { "code": null, "e": 1609, "s": 1147, "text": ">db.demo134.insertOne({\"EmployeeId\":101,\"EmployeeDetails\":[{\"EmployeeName\":\"Chris\",\"Empl...
MongoDB query to get specific month|year (not date)?
You can use aggregate framework along with $month projection operator. Let us first create a collection with documents − > db.specificMonthDemo.insertOne({"StudentName":"Larry","StudentDateOfBirth":new ISODate('1995-01-12')}); { "acknowledged" : true, "insertedId" : ObjectId("5cb9a9ca8f1d1b97daf71819") } > db.spe...
[ { "code": null, "e": 1183, "s": 1062, "text": "You can use aggregate framework along with $month projection operator. Let us first create a collection with documents −" }, { "code": null, "e": 1756, "s": 1183, "text": "> db.specificMonthDemo.insertOne({\"StudentName\":\"Larry\",\...
What is unmanaged code in C#?
The following states what is an unmanaged code − Applications that are not under the control of the CLR are unmanaged The unsafe code or the unmanaged code is a code block that uses a pointer variable. The unsafe modifier allows pointer usage in unmanaged code. Here is the module showing how to declare and use a pointe...
[ { "code": null, "e": 1111, "s": 1062, "text": "The following states what is an unmanaged code −" }, { "code": null, "e": 1180, "s": 1111, "text": "Applications that are not under the control of the CLR are unmanaged" }, { "code": null, "e": 1264, "s": 1180, "t...
C/C++ Program to check whether it is possible to make a divisible by 3 number using all digits in an array?
In this section we will see if one array is given with n numbers, we have to check if we make a number using all of the elements of these numbers, that number will be divisible by 3 or not. If the array elements are {15, 24, 23, 13}, then the we can make integer like 15242313. It will be divisible by 3. Begin rem :=...
[ { "code": null, "e": 1367, "s": 1062, "text": "In this section we will see if one array is given with n numbers, we have to check if we make a number using all of the elements of these numbers, that number will be divisible by 3 or not. If the array elements are {15, 24, 23, 13}, then the we can mak...
JavaScript - Create an alert on clicking an HTML button
To fire an alert on click of a button, use addEventListener(). Let’s say the following is our button on an HTML web page − <button type="button">Please Press Me</button> Following is the code − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wi...
[ { "code": null, "e": 1185, "s": 1062, "text": "To fire an alert on click of a button, use addEventListener(). Let’s say the following is our button on an HTML web page −" }, { "code": null, "e": 1232, "s": 1185, "text": "<button type=\"button\">Please Press Me</button>" }, { ...
Clojure - Atoms swap!
Atomically swaps the value of the atom with a new one based on a particular function. Following is the syntax. (swap! atom-name function) Parameters − ‘atom-name’ is the name of the atom whose value needs to be reset. ‘function’ is the function which is used to generate the new value of the atom. Return Value − The at...
[ { "code": null, "e": 2460, "s": 2374, "text": "Atomically swaps the value of the atom with a new one based on a particular function." }, { "code": null, "e": 2485, "s": 2460, "text": "Following is the syntax." }, { "code": null, "e": 2513, "s": 2485, "text": "...
Should You Become a Data Engineer in 2021? | by Nicholas Leong | Towards Data Science
All of us have heard about the title — Data Scientist, the sexiest job of the 21st Century.But is it really? For many people who are new to the data industry, Data Science will be the first thing they hear about, and the title just sticks. Suddenly, everyone is either already a Data Scientist, or aspiring to be one. Ho...
[ { "code": null, "e": 280, "s": 171, "text": "All of us have heard about the title — Data Scientist, the sexiest job of the 21st Century.But is it really?" }, { "code": null, "e": 489, "s": 280, "text": "For many people who are new to the data industry, Data Science will be the fi...
Perl List and its Types - GeeksforGeeks
12 Jun, 2021 A list is a collection of scalar values. We can access the elements of a list using indexes. Index starts with 0 (0th index refers to the first element of the list). We use parenthesis and comma operators to construct a list. In Perl, scalar variables start with a $ symbol whereas list variables start with...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n12 Jun, 2021" }, { "code": null, "e": 25694, "s": 25225, "text": "A list is a collection of scalar values. We can access the elements of a list using indexes. Index starts with 0 (0th index refers to the first element of the list...
Java switch Keyword
❮ Java Keywords Use the switch statement to calculate the weekday name: int day = 4; switch (day) { case 1: System.out.println("Monday"); break; case 2: System.out.println("Tuesday"); break; case 3: System.out.println("Wednesday"); break; case 4: System.out.println("Thursday"); ...
[ { "code": null, "e": 18, "s": 0, "text": "\n❮ Java Keywords\n" }, { "code": null, "e": 75, "s": 18, "text": "Use the switch statement to calculate the weekday name:" }, { "code": null, "e": 529, "s": 75, "text": "int day = 4;\nswitch (day) {\n case 1:\n S...
Java Swing | JTextField - GeeksforGeeks
03 Dec, 2021 JTextField is a part of javax.swing package. The class JTextField is a component that allows editing of a single line of text. JTextField inherits the JTextComponent class and uses the interface SwingConstants.The constructor of the class are : JTextField() : constructor that creates a new TextFieldJText...
[ { "code": null, "e": 24168, "s": 24140, "text": "\n03 Dec, 2021" }, { "code": null, "e": 24415, "s": 24168, "text": "JTextField is a part of javax.swing package. The class JTextField is a component that allows editing of a single line of text. JTextField inherits the JTextCompone...
Plot lines from a list of dataframes using ggplot2 in R - GeeksforGeeks
05 Nov, 2021 In this article, we will discuss how to plotlines in ggplot from a list of dataframes in the R programming language. The ggplot2 package is used to visualize and analyze the data. The package can be downloaded and installed using the following command in R : install.packages("ggplot2") The ggplot method i...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n05 Nov, 2021" }, { "code": null, "e": 26604, "s": 26487, "text": "In this article, we will discuss how to plotlines in ggplot from a list of dataframes in the R programming language." }, { "code": null, "e": 26747, ...
Python | Numpy np.heaviside() method - GeeksforGeeks
02 Dec, 2019 With the help of np.heaviside() method, we can get the heaviside step function by using np.heaviside() method. Syntax : np.heaviside(array1, array2 or value)Return : Return the heaviside series. Example #1 :In this example we can see that by using np.heaviside() method, we are able to get the array of seri...
[ { "code": null, "e": 25721, "s": 25693, "text": "\n02 Dec, 2019" }, { "code": null, "e": 25832, "s": 25721, "text": "With the help of np.heaviside() method, we can get the heaviside step function by using np.heaviside() method." }, { "code": null, "e": 25916, "s":...
Count elements in a vector that match a target value or condition in C++
We are given a vector and the task is to calculate the count of those elements in a vector that matches a target value or condition. Vectors are sequence containers that can change size. Container is an object that holds data of the same type. Sequence containers store elements strictly in linear sequence. Vector store...
[ { "code": null, "e": 1195, "s": 1062, "text": "We are given a vector and the task is to calculate the count of those elements in a vector that matches a target value or condition." }, { "code": null, "e": 1370, "s": 1195, "text": "Vectors are sequence containers that can change s...
Left-Child Right-Sibling Representation of Tree
Left-Child Right-Sibling Representation is a different representation of an n-ary tree where instead of maintaining a pointer to each and every child node, a node holds just two pointers, first a pointer to its first child, and the other pointer to its immediate next sibling. This new transformation not only eliminates...
[ { "code": null, "e": 1550, "s": 1062, "text": "Left-Child Right-Sibling Representation is a different representation of an n-ary tree where instead of maintaining a pointer to each and every child node, a node holds just two pointers, first a pointer to its first child, and the other pointer to its ...
Creating Python Functions for Exploratory Data Analysis and Data Cleaning | by Freda Xin | Towards Data Science
Update (2021–02–05): The Python library used in this blog post is now published on PyPi. The package also includes new features: it provides a class that includes methods to streamline the modeling process for Scikit-Learn models. Part II of this blog post is coming up and will cover how to utilize OOP in Python to aut...
[ { "code": null, "e": 521, "s": 172, "text": "Update (2021–02–05): The Python library used in this blog post is now published on PyPi. The package also includes new features: it provides a class that includes methods to streamline the modeling process for Scikit-Learn models. Part II of this blog pos...
How to check if a list element is greater than a certain value in R?
If we have a list that contains numeric elements and we want to check whether the elements are greater than a certain value then as.numeric function can be used. The output of the function will be in 0/1 format where 0 represents FALSE and 1 represents TRUE. For example, if we have a list called LIST then to check whet...
[ { "code": null, "e": 1457, "s": 1062, "text": "If we have a list that contains numeric elements and we want to check whether the elements are greater than a certain value then as.numeric function can be used. The output of the function will be in 0/1 format where 0 represents FALSE and 1 represents ...
How to Create a New Ext4 File System in Linux?
The hard disk in a computer is formatted with specific file system so that the operating system can read and write into it. For UNIX based systems we have various type of file systems. In this article we will see how to format a new partition in hard disk with ext4 file system. First we see what are the different file ...
[ { "code": null, "e": 1341, "s": 1062, "text": "The hard disk in a computer is formatted with specific file system so that the operating system can read and write into it. For UNIX based systems we have various type of file systems. In this article we will see how to format a new partition in hard di...
How to use chrome webdriver in Selenium to download files in Python?
We can use chrome webdriver in Selenium to download files in Python. We shall use the ChromeOptions class for this purpose. First, we shall create an object of the ChromeOptions class. Then apply the add_experimental_option method on the object created. We shall set the download.default_directory:<location of downloade...
[ { "code": null, "e": 1247, "s": 1062, "text": "We can use chrome webdriver in Selenium to download files in Python. We shall use the ChromeOptions class for this purpose. First, we shall create an object of the ChromeOptions class." }, { "code": null, "e": 1465, "s": 1247, "text"...
How to preselect a value in a dropdown list of items in HTML forms?
With HTML, you can easily create a simple drop down list of items to get user input in HTML forms. A select box also called drop down box provides an option to list down various options in the form of drop down list. You can also preselect a value in dropdown list of items in HTML forms. For that, add selected in the <...
[ { "code": null, "e": 1279, "s": 1062, "text": "With HTML, you can easily create a simple drop down list of items to get user input in HTML forms. A select box also called drop down box provides an option to list down various options in the form of drop down list." }, { "code": null, "e":...
How to use z-index in svg elements ?
14 Jul, 2020 The z-index only works on the complete content. This is because the HTML rendered controls the positioning before handing off to the SVG rendered to place the internal SVG contents. So, basically there is no z-index for SVG, it uses the painters model. Painter’s model: According to this model, paint is app...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jul, 2020" }, { "code": null, "e": 281, "s": 28, "text": "The z-index only works on the complete content. This is because the HTML rendered controls the positioning before handing off to the SVG rendered to place the internal SVG con...
How to compress images using Python and PIL?
18 Aug, 2020 There are organizations who receive data form lakhs or more persons, which is mostly in form of text, with a few images. Most of you know that the text part is stored in databases in the form of tables, but what about the images? The images are small compared to the textual data but constitute a much highe...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Aug, 2020" }, { "code": null, "e": 671, "s": 28, "text": "There are organizations who receive data form lakhs or more persons, which is mostly in form of text, with a few images. Most of you know that the text part is stored in datab...
CSS | element element Selector
31 Dec, 2018 The element element selector in CSS is used to select elements inside the elements i.e it combines two selectors such that elements matched by the second selector are selected if they have an ancestor element matching the first selector. Syntax: element element { // CSS Property } Example 1: <!-- HTML...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Dec, 2018" }, { "code": null, "e": 266, "s": 28, "text": "The element element selector in CSS is used to select elements inside the elements i.e it combines two selectors such that elements matched by the second selector are selected...
Shared Element Transition in Android with Example
27 May, 2021 Shared Element Transition is one of the most seen animations in Android apps. This type of animation is used when we have to open an item from a ListView or RecyclerView. Shared Element Transition in Android determines how shared element views are animated from activity to activity or fragment to fragment....
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2021" }, { "code": null, "e": 435, "s": 28, "text": "Shared Element Transition is one of the most seen animations in Android apps. This type of animation is used when we have to open an item from a ListView or RecyclerView. Shar...
Python | Convert string List to Nested Character List
29 Nov, 2019 Sometimes, while working with Python, we can have a problem in which we need to perform interconversion of data. In this article we discuss converting String list to Nested Character list split by comma. Let’s discuss certain ways in which this task can be performed. Method #1 : Using list comprehension + ...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2019" }, { "code": null, "e": 296, "s": 28, "text": "Sometimes, while working with Python, we can have a problem in which we need to perform interconversion of data. In this article we discuss converting String list to Nested Ch...
Str() and StrComp() Function in MS Access
31 Aug, 2020 1. Str() Function :In MS Access, the Str() function return a number in the string format. In this function, we can pass any number the function will return that in the string format. Syntax : Str(number) Example – SELECT Str(100) AS ConvertToString; Output – Example – SELECT Str(421) AS ConvertToString; ...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Aug, 2020" }, { "code": null, "e": 211, "s": 28, "text": "1. Str() Function :In MS Access, the Str() function return a number in the string format. In this function, we can pass any number the function will return that in the string ...
Java String indexOf()
07 Sep, 2021 There are four variants of indexOf() method. This article depicts about all of them, as follows: 1.int indexOf() : This method returns the index within this string of the first occurrence of the specified character or -1, if the character does not occur. Syntax: int indexOf(char ch ) Parameters: ch : a ch...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Sep, 2021" }, { "code": null, "e": 308, "s": 52, "text": "There are four variants of indexOf() method. This article depicts about all of them, as follows: 1.int indexOf() : This method returns the index within this string of the fir...
How to receive JSON POST with PHP ?
06 Dec, 2021 In this article, we will see how to retrieve the JSON POST with PHP, & will also see their implementation through the examples. First, we will look for the below 3 features: php://input: This is a read-only stream that allows us to read raw data from the request body. It returns all the raw data after the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2021" }, { "code": null, "e": 202, "s": 28, "text": "In this article, we will see how to retrieve the JSON POST with PHP, & will also see their implementation through the examples. First, we will look for the below 3 features:" ...
HTTP headers | Keep-Alive
27 Feb, 2020 The Keep-Alive header is a general-type header. This header is used to hint at how the connection may be used to set a timeout and a maximum amount of requests. It can also be used to allow a single TCP connection to remain open for multiple HTTP requests/responses (default HTTP connection closed after eac...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Feb, 2020" }, { "code": null, "e": 483, "s": 28, "text": "The Keep-Alive header is a general-type header. This header is used to hint at how the connection may be used to set a timeout and a maximum amount of requests. It can also be...
Intersection of two arrays JavaScript
We have two arrays of Numbers, and we are required to write a function, say intersection() that computes their intersection and returns an array that contains the intersecting elements in any order. Each element in the result should appear as many times as it shows in both arrays. For example − If, Input: arr1 = [1,2,3...
[ { "code": null, "e": 1344, "s": 1062, "text": "We have two arrays of Numbers, and we are required to write a function, say intersection() that\ncomputes their intersection and returns an array that contains the intersecting elements in any\norder. Each element in the result should appear as many tim...
Embedded Systems - Quick Guide
A system is an arrangement in which all its unit assemble work together according to a set of rules. It can also be defined as a way of working, organizing or doing one or many tasks according to a fixed plan. For example, a watch is a time displaying system. Its components follow a set of rules to show time. If one of...
[ { "code": null, "e": 2322, "s": 1883, "text": "A system is an arrangement in which all its unit assemble work together according to a set of rules. It can also be defined as a way of working, organizing or doing one or many tasks according to a fixed plan. For example, a watch is a time displaying s...
How to write a C program to find the roots of a quadratic equation?
Applying the software development method to solve any problem in C Language Find roots of a quadratic equation, ax2+bx+c. There will be 2 roots for given quadratic equation. Input − a,b,c values Output − r1, r2 values r1=−b+b2−4ac2a r2=−b−b2−4ac2a Start Read a, b, c values Compute d = b2 4ac if d > 0 thenr1 = b+ sqrt (...
[ { "code": null, "e": 1138, "s": 1062, "text": "Applying the software development method to solve any problem in C Language" }, { "code": null, "e": 1184, "s": 1138, "text": "Find roots of a quadratic equation, ax2+bx+c." }, { "code": null, "e": 1236, "s": 1184, ...
Appending CSV files. Power BI, R, Power Shell or CMD | by Peter Hui | Towards Data Science
Have you ever had to combine multiple CSV files? I’m sure it’s a task every data analyst or data scientist must do at some point, and a strange task really. Why are they separated in the first place? Isn’t it better to connect to the source? Sometimes the best solution may not always be possible. If you find yourself o...
[ { "code": null, "e": 470, "s": 172, "text": "Have you ever had to combine multiple CSV files? I’m sure it’s a task every data analyst or data scientist must do at some point, and a strange task really. Why are they separated in the first place? Isn’t it better to connect to the source? Sometimes the...
Find maximum level sum in Binary Tree - GeeksforGeeks
11 May, 2021 Given a Binary Tree having positive and negative nodes, the task is to find the maximum sum level in it. Examples: Input : 4 / \ 2 -5 / \ /\ -1 3 -2 6 Output: 6 Explanation : Sum of all nodes of 0'th level is...
[ { "code": null, "e": 25170, "s": 25142, "text": "\n11 May, 2021" }, { "code": null, "e": 25275, "s": 25170, "text": "Given a Binary Tree having positive and negative nodes, the task is to find the maximum sum level in it." }, { "code": null, "e": 25286, "s": 25275...
C# - Reflection
Reflection objects are used for obtaining type information at runtime. The classes that give access to the metadata of a running program are in the System.Reflection namespace. The System.Reflection namespace contains classes that allow you to obtain information about the application and to dynamically add types, value...
[ { "code": null, "e": 2447, "s": 2270, "text": "Reflection objects are used for obtaining type information at runtime. The classes that give access to the metadata of a running program are in the System.Reflection namespace." }, { "code": null, "e": 2625, "s": 2447, "text": "The S...
Angular CLI - ng help Command
This chapter explains the syntax and options of ng help command along with an example. An example for ng help command is given below − ng help [options] ng help command lists the available commands with their short descriptions. Options are optional parameters. An example for ng help command is given below − \>Node ng...
[ { "code": null, "e": 2162, "s": 2075, "text": "This chapter explains the syntax and options of ng help command along with an example." }, { "code": null, "e": 2210, "s": 2162, "text": "An example for ng help command is given below −" }, { "code": null, "e": 2229, ...
Python PostgreSQL - Join
When you have divided the data in two tables you can fetch combined records from these two tables using Joins. Assume we have created a table with name CRICKETERS and inserted 5 records into it as shown below − postgres=# CREATE TABLE CRICKETERS ( First_Name VARCHAR(255), Last_Name VARCHAR(255), Age int, Place_O...
[ { "code": null, "e": 3316, "s": 3205, "text": "When you have divided the data in two tables you can fetch combined records from these two tables using Joins." }, { "code": null, "e": 3416, "s": 3316, "text": "Assume we have created a table with name CRICKETERS and inserted 5 reco...
How to set the environmental variable LD_LIBRARY_PATH in Linux?
There are plenty of ways in which we can set an environment variable in Linux and then make use of it later. Some ways provide us access to that variable in a particular window, in other cases, we can get access to those variables in every terminal window and in a permanent manner. Let’s explore setting a new environme...
[ { "code": null, "e": 1345, "s": 1062, "text": "There are plenty of ways in which we can set an environment variable in Linux and then make use of it later. Some ways provide us access to that variable in a particular window, in other cases, we can get access to those variables in every terminal wind...
C# difference in milliseconds between two DateTime
Let’s say the following are two DateTime objects for our dates. DateTime date1 = new DateTime(2018, 8, 11, 08, 15, 20); DateTime date2 = new DateTime(2018, 8, 11, 11, 14, 25); Find the difference between both these dates using TimeSpan. TimeSpan ts = date2 - date1; Now to get the Milliseconds, use the following propert...
[ { "code": null, "e": 1126, "s": 1062, "text": "Let’s say the following are two DateTime objects for our dates." }, { "code": null, "e": 1238, "s": 1126, "text": "DateTime date1 = new DateTime(2018, 8, 11, 08, 15, 20);\nDateTime date2 = new DateTime(2018, 8, 11, 11, 14, 25);" },...
How to count child element using jQuery ? - GeeksforGeeks
27 Apr, 2020 It is very simple to count the number of child elements in the HTML file using jQuery. For example: If you have a parent element consisting of many children elements then you can use .length or.children().length method as given below. Syntax: var len=$("#parentID").length; or var count = $("#parentId").ch...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n27 Apr, 2020" }, { "code": null, "e": 24527, "s": 24292, "text": "It is very simple to count the number of child elements in the HTML file using jQuery. For example: If you have a parent element consisting of many children elemen...
Java Cryptography - Decrypting Data
You can decrypt the encrypted data using the Cipher class of the javax.crypto package. Follow the steps given below to decrypt given data using Java. The KeyPairGenerator class provides getInstance() method which accepts a String variable representing the required key-generating algorithm and returns a KeyPairGenerator...
[ { "code": null, "e": 2203, "s": 2053, "text": "You can decrypt the encrypted data using the Cipher class of the javax.crypto package. Follow the steps given below to decrypt given data using Java." }, { "code": null, "e": 2402, "s": 2203, "text": "The KeyPairGenerator class provi...
C# DateTime Max Value
To set the max value for a Date, use the DateTime property MaxValue. DateTime max = DateTime.MaxValue; Now, display the value of max to get the maximum value of a date as shown below. Live Demo using System; using System.Linq; public class Demo { public static void Main() { DateTime max = DateTime.MaxValue; ...
[ { "code": null, "e": 1131, "s": 1062, "text": "To set the max value for a Date, use the DateTime property MaxValue." }, { "code": null, "e": 1165, "s": 1131, "text": "DateTime max = DateTime.MaxValue;" }, { "code": null, "e": 1246, "s": 1165, "text": "Now, dis...
Create SubReports
Subreports are one of the nice features of the JasperReports. This feature allows incorporating a report within another report, that is, one report can be a subreport of another. Subreports help us keep report designs simple, as we can create many simple reports and encapsulate them into a master report. Subreports are...
[ { "code": null, "e": 2774, "s": 2254, "text": "Subreports are one of the nice features of the JasperReports. This feature allows incorporating a report within another report, that is, one report can be a subreport of another. Subreports help us keep report designs simple, as we can create many simpl...
Python Pandas - How to select rows from a DataFrame by integer location
To select rows by integer location, use the iloc() function. Mention the index number of the row you want to select. Create a DataFrame − dataFrame = pd.DataFrame([[10, 15], [20, 25], [30, 35]],index=['x', 'y', 'z'],columns=['a', 'b']) Select rows with integer location using iloc() − dataFrame.iloc[1] Following is the...
[ { "code": null, "e": 1179, "s": 1062, "text": "To select rows by integer location, use the iloc() function. Mention the index number of the row you want to select." }, { "code": null, "e": 1200, "s": 1179, "text": "Create a DataFrame −" }, { "code": null, "e": 1298, ...
Retrieving Cookies in Python - GeeksforGeeks
16 Jul, 2020 Retrieving cookies in Python can be done by the use of the Requests library. Requests library is one of the integral part of Python for making HTTP requests to a specified URL. The below codes show different approaches to do show: 1. By requesting a session: # import the requests libraryimport requests # ...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n16 Jul, 2020" }, { "code": null, "e": 24132, "s": 23901, "text": "Retrieving cookies in Python can be done by the use of the Requests library. Requests library is one of the integral part of Python for making HTTP requests to a s...
Tryit Editor v3.7
HTML file paths Tryit: absolute url
[ { "code": null, "e": 26, "s": 10, "text": "HTML file paths" } ]
Find count of Almost Prime numbers from 1 to N - GeeksforGeeks
21 May, 2021 Given a number N. Find number of almost primes from 1 to . A number is called almost if it has exactly two distinct prime factors. Note: The numbers can have any number of non-prime factors but should have exactly two prime factors.Examples: Input : N = 10 Output : 2 Explanation : 6, 10 are such numbers....
[ { "code": null, "e": 24249, "s": 24221, "text": "\n21 May, 2021" }, { "code": null, "e": 24493, "s": 24249, "text": "Given a number N. Find number of almost primes from 1 to . A number is called almost if it has exactly two distinct prime factors. Note: The numbers can have any n...
Java Program to concatenate a String and Integers
To concatenate a String and some integer values, you need to use the + operator. Let’s say the following is the string. String str = "Demo Text"; Now, we will concatenate integer values. String res = str + 1 + 2 + 3 + 4 + 5; The following is the final example. Live Demo public class Demo { public static void main...
[ { "code": null, "e": 1143, "s": 1062, "text": "To concatenate a String and some integer values, you need to use the + operator." }, { "code": null, "e": 1182, "s": 1143, "text": "Let’s say the following is the string." }, { "code": null, "e": 1209, "s": 1182, ...
AIML - Introduction
AIML stands for Artificial Intelligence Markup Language. AIML was developed by the Alicebot free software community and Dr. Richard S. Wallace during 1995-2000. AIML is used to create or customize Alicebot which is a chat-box application based on A.L.I.C.E. (Artificial Linguistic Internet Computer Entity) free software...
[ { "code": null, "e": 2133, "s": 1811, "text": "AIML stands for Artificial Intelligence Markup Language. AIML was developed by the Alicebot free software community and Dr. Richard S. Wallace during 1995-2000. AIML is used to create or customize Alicebot which is a chat-box application based on A.L.I....