title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to Create Engraved Text Effect using HTML and CSS ? - GeeksforGeeks
08 Jun, 2020 The engraved text effect is an effect that you can use in your websites as a heading or a sub-heading to make it look more pleasing and attractive. Approach: The engraved text effect can be easily generated using HTML and CSS. First we will create a basic text using HTML and then by using the CSS text-shad...
[ { "code": null, "e": 25913, "s": 25885, "text": "\n08 Jun, 2020" }, { "code": null, "e": 26061, "s": 25913, "text": "The engraved text effect is an effect that you can use in your websites as a heading or a sub-heading to make it look more pleasing and attractive." }, { "...
DateFormat setLenient() Method in Java with Examples - GeeksforGeeks
01 Apr, 2019 The setLenient(boolean leniency) method in DateFormat class is used to specify whether the interpretation of the date and time of this DateFormat object is to be lenient or not. Syntax: public void setLenient(boolean leniency) Parameters: The method takes one parameter leniency of the boolean type that ref...
[ { "code": null, "e": 25753, "s": 25725, "text": "\n01 Apr, 2019" }, { "code": null, "e": 25931, "s": 25753, "text": "The setLenient(boolean leniency) method in DateFormat class is used to specify whether the interpretation of the date and time of this DateFormat object is to be l...
Python Program for Insertion Sort - GeeksforGeeks
30 Dec, 2020 Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands. # Python program for implementation of Insertion Sort # Function to do insertion sortdef insertionSort(arr): # Traverse through 1 to len(arr) for i in range(1, len(arr)): key = arr[i] ...
[ { "code": null, "e": 25603, "s": 25575, "text": "\n30 Dec, 2020" }, { "code": null, "e": 25703, "s": 25603, "text": "Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands." }, { "code": "# Python program for implementation of I...
Python Set | Pairs of complete strings in two sets - GeeksforGeeks
03 Jan, 2018 Two strings are said to be complete if on concatenation, they contain all the 26 English alphabets. For example, “abcdefghi” and “jklmnopqrstuvwxyz” are complete as they together have all characters from ‘a’ to ‘z’.We are given two sets of sizes n and m respectively and we need to find the number of pairs ...
[ { "code": null, "e": 26305, "s": 26277, "text": "\n03 Jan, 2018" }, { "code": null, "e": 26697, "s": 26305, "text": "Two strings are said to be complete if on concatenation, they contain all the 26 English alphabets. For example, “abcdefghi” and “jklmnopqrstuvwxyz” are complete a...
Add Common Main Title for Multiple Plots in R - GeeksforGeeks
29 Jun, 2021 In this article, we will be looking at the two different approaches to add a common main title for multiple plots in base R and ggplot2 package in the R programming language. In this approach to add a common main title for multiple plots, the user needs to call the par() and the mtext() function, which is ...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n29 Jun, 2021" }, { "code": null, "e": 26662, "s": 26487, "text": "In this article, we will be looking at the two different approaches to add a common main title for multiple plots in base R and ggplot2 package in the R programmin...
C program to draw a football ground using computer graphics - GeeksforGeeks
04 May, 2021 In this article, we will discuss how to design a 2D football ground using computer graphics. Approach: At first, create a rectangle using the rectangle() function. This will act as the Ground Outline and draw two lines using the line() function. For coloring the middle part of two lines with White using th...
[ { "code": null, "e": 26201, "s": 26173, "text": "\n04 May, 2021" }, { "code": null, "e": 26294, "s": 26201, "text": "In this article, we will discuss how to design a 2D football ground using computer graphics." }, { "code": null, "e": 26304, "s": 26294, "text"...
Maximum Tip Calculator - GeeksforGeeks
28 Feb, 2022 Rahul and Ankit are the only two waiters in the Royal Restaurant. Today, the restaurant received N orders. The amount of tips may differ when handled by different waiters and given as arrays A[] and B[] such that if Rahul takes the ith Order, he would be tipped A[i] rupees, and if Ankit takes this order, t...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n28 Feb, 2022" }, { "code": null, "e": 26377, "s": 26041, "text": "Rahul and Ankit are the only two waiters in the Royal Restaurant. Today, the restaurant received N orders. The amount of tips may differ when handled by different ...
Python | Using for loop in Flask - GeeksforGeeks
11 Oct, 2018 Prerequisite: HTML Basics, Python Basics, Flask It is not possible to write front-end course every time user make changes in his/her profile. We use a template and it generates code according to the content. Flask is one of the web development frameworks written in Python. Through flask, a loop can be run ...
[ { "code": null, "e": 25687, "s": 25659, "text": "\n11 Oct, 2018" }, { "code": null, "e": 25735, "s": 25687, "text": "Prerequisite: HTML Basics, Python Basics, Flask" }, { "code": null, "e": 25895, "s": 25735, "text": "It is not possible to write front-end cour...
Minimum enclosing circle | Set 2 - Welzl's algorithm - GeeksforGeeks
23 Dec, 2021 Prerequisites: Equation of circle when three points on the circle are given, Minimum Enclosing Circle.Given an array arr[][] containing N points in a 2-D plane with integer coordinates. The task is to find the centre and the radius of the minimum enclosing circle(MEC). A minimum enclosing circle is a circl...
[ { "code": null, "e": 26023, "s": 25995, "text": "\n23 Dec, 2021" }, { "code": null, "e": 26418, "s": 26023, "text": "Prerequisites: Equation of circle when three points on the circle are given, Minimum Enclosing Circle.Given an array arr[][] containing N points in a 2-D plane wit...
KeyStore getEntry() method in Java with Examples - GeeksforGeeks
28 Nov, 2021 The getEntry() method of java.security.KeyStore class is used to get the keystore entry for this instance with the help of the specified alias and the protection parameter. Syntax: public final KeyStore.Entry getEntry(String alias, KeyStore.ProtectionParameter protParam) throws NoSuchAlgo...
[ { "code": null, "e": 25237, "s": 25209, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25410, "s": 25237, "text": "The getEntry() method of java.security.KeyStore class is used to get the keystore entry for this instance with the help of the specified alias and the protection p...
malloc() vs new() in C/C++
The function malloc() is used to allocate the requested size of bytes and it returns a pointer to the first byte of allocated memory. It returns null pointer, if fails. Here is the syntax of malloc() in C++ language, pointer_name = (cast-type*) malloc(size); Here, pointer_name − Any name given to the pointer. cast-type...
[ { "code": null, "e": 1231, "s": 1062, "text": "The function malloc() is used to allocate the requested size of bytes and it returns a pointer to the first byte of allocated memory. It returns null pointer, if fails." }, { "code": null, "e": 1279, "s": 1231, "text": "Here is the s...
Java 8 How to get Common Elements From Two Lists
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Here we will see how to get common elements f...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
TypeScript | String toLowerCase() Method - GeeksforGeeks
03 Mar, 2021 The toLowerCase() is an inbuilt function in TypeScript which is used to convert the characters within a string to lowercase. Syntax: string.toLowerCase( ) Parameter: This methods does not accepts any parameter. Return Value: This method returns the string in lowercase. Below examples illustrate the String...
[ { "code": null, "e": 25635, "s": 25607, "text": "\n03 Mar, 2021" }, { "code": null, "e": 25760, "s": 25635, "text": "The toLowerCase() is an inbuilt function in TypeScript which is used to convert the characters within a string to lowercase." }, { "code": null, "e": 2...
How to convert right linear grammar to left linear grammar?
For every finite automata (FA) there exists a regular grammar and for every regular grammar there is a left linear and right linear regular grammar. Consider a regular grammar − a(a+b)* A → aB B → aB|bB|e For the given regular expression, the above grammar is right linear grammar. Now, convert the above right linear...
[ { "code": null, "e": 1211, "s": 1062, "text": "For every finite automata (FA) there exists a regular grammar and for every regular grammar there is a left linear and right linear regular grammar." }, { "code": null, "e": 1240, "s": 1211, "text": "Consider a regular grammar −" }...
Random setSeed() method in Java with Examples - GeeksforGeeks
07 Jan, 2019 The setSeed() method of Random class sets the seed of the random number generator using a single long seed. Syntax: public void setSeed() Parameters: The function accepts a single parameter seed which is the initial seed. Return Value: This method has no return value. Exception: The function does not thr...
[ { "code": null, "e": 24968, "s": 24940, "text": "\n07 Jan, 2019" }, { "code": null, "e": 25076, "s": 24968, "text": "The setSeed() method of Random class sets the seed of the random number generator using a single long seed." }, { "code": null, "e": 25084, "s": 25...
Python List Methods. A summary of the list methods Python... | by Robert Alterman | Towards Data Science
In Python, a list is a collection of pieces of data. A list is surrounded by square brackets [ ] with each item separated by a comma ( , ), and can contain anywhere from zero to infinity items (or however many your computer will allow). Strings, numbers, booleans, even other lists can be items in a list. Lists are orde...
[ { "code": null, "e": 1324, "s": 172, "text": "In Python, a list is a collection of pieces of data. A list is surrounded by square brackets [ ] with each item separated by a comma ( , ), and can contain anywhere from zero to infinity items (or however many your computer will allow). Strings, numbers,...
What You Should Know About Unsigned, Signed Integers and Casting in Rust | by Shinichi Okada | Jul, 2020 | Towards Data Science | Towards Data Science
[Updated 2021–02–18. Code changed to Gist and added links] Table of ContentsIntroduction🦀 Unsigned Integer Types🦀 Signed Integer Types🦀 Signed, Ones’ Complement and Two’s Complement🦀 Sign-and-Magnitude🦀 Ones’ Complement🦀 Two’s Complement🦀 4-bit Signed Binary Number Comparison🦀 Rust signed two’s complement integ...
[ { "code": null, "e": 231, "s": 172, "text": "[Updated 2021–02–18. Code changed to Gist and added links]" }, { "code": null, "e": 619, "s": 231, "text": "Table of ContentsIntroduction🦀 Unsigned Integer Types🦀 Signed Integer Types🦀 Signed, Ones’ Complement and Two’s Complement🦀...
DocumentDB - Data Modeling
While schema-free databases, like DocumentDB, make it super easy to embrace changes to your data model, you should still spend some time thinking about your data. You have a lot of options. Naturally, you can just work JSON object graphs or even raw strings of JSON text, but you can also use dynamic objects that lets y...
[ { "code": null, "e": 2443, "s": 2280, "text": "While schema-free databases, like DocumentDB, make it super easy to embrace changes to your data model, you should still spend some time thinking about your data." }, { "code": null, "e": 2675, "s": 2443, "text": "You have a lot of o...
How do we add a single-line input field in HTML?
Use the <isindex> tag to add a single-line input field. The HTML <isindex> tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. Note: It is a deprecated tag and should not be used. The following are the attributes − Try the following code − <!Doctype html> <...
[ { "code": null, "e": 1305, "s": 1062, "text": "Use the <isindex> tag to add a single-line input field. The HTML <isindex> tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. Note: It is a deprecated tag and should not be used." }, { ...
Group Sparse Regularization for Deep Neural Networks | by Himaprasoon P.T | Towards Data Science
Paper summary of Group Sparse Regularization for Deep Neural Networks With the advancement in hardware technologies and thereby reduced costs, training large neural networks has become a lot easier. Due to this, it has become common to throw in large networks for even simple tasks. Having too many layers in a network c...
[ { "code": null, "e": 242, "s": 172, "text": "Paper summary of Group Sparse Regularization for Deep Neural Networks" }, { "code": null, "e": 527, "s": 242, "text": "With the advancement in hardware technologies and thereby reduced costs, training large neural networks has become a...
VSAM - Cluster
VSAM cluster is defined in JCL. JCL uses IDCAMS utility to create a cluster. IDCAMS is a utility, developed by IBM, for access method services. It is used to primarily define VSAM datasets. The following syntax shows the main parameters which are grouped under Define Cluster, Data and Index. .DEFINE CLUSTER (NAME(vsam-...
[ { "code": null, "e": 1955, "s": 1765, "text": "VSAM cluster is defined in JCL. JCL uses IDCAMS utility to create a cluster. IDCAMS is a utility, developed by IBM, for access method services. It is used to primarily define VSAM datasets." }, { "code": null, "e": 2058, "s": 1955, "...
How to use StringBuilder in C#?
With StringBuilder, you can expand the number of characters in the string. String cannot be changed once it is created, but StringBuildercan be expanded. It does not create a new object in the memory. Initialize StringBuilder. StringBuilder str = new StringBuilder(); Let us see an example to learn how to work with Stri...
[ { "code": null, "e": 1263, "s": 1062, "text": "With StringBuilder, you can expand the number of characters in the string. String cannot be changed once it is created, but StringBuildercan be expanded. It does not create a new object in the memory." }, { "code": null, "e": 1289, "s": ...
Interactive map using Geographical Information in Plotly Express | by Tamjid Ahsan | Towards Data Science
Visualizations are very powerful tools for any data science project. It helps the reader to understand what is happening. For some dataset it is very helpful to be able to see the data on a map for presenting insights also while doing the analysis. There are a lot of packages out there which can achieve this goal, all ...
[ { "code": null, "e": 421, "s": 172, "text": "Visualizations are very powerful tools for any data science project. It helps the reader to understand what is happening. For some dataset it is very helpful to be able to see the data on a map for presenting insights also while doing the analysis." }, ...
Use Iterator to remove an element from a Collection in Java
An element can be removed from a Collection using the Iterator method remove(). This method removes the current element in the Collection. If the remove() method is not preceded by the next() method, then the exception IllegalStateException is thrown. A program that demonstrates this is given as follows. Live Demo imp...
[ { "code": null, "e": 1314, "s": 1062, "text": "An element can be removed from a Collection using the Iterator method remove(). This method\nremoves the current element in the Collection. If the remove() method is not preceded by the\nnext() method, then the exception IllegalStateException is thrown....
Creating Slide to Shut Down Shortcut in Windows 10 - GeeksforGeeks
31 Aug, 2021 If you’re looking for a smart and interactive way to Shut down your PC, then this trick is going very useful for you. Instead of that traditional long process of shutting down the PC, the ‘Slide to Shut down’ feature allows you to shut down your Windows 10 PC by sliding, or dragging the window down. Let’s ...
[ { "code": null, "e": 24498, "s": 24470, "text": "\n31 Aug, 2021" }, { "code": null, "e": 24867, "s": 24498, "text": "If you’re looking for a smart and interactive way to Shut down your PC, then this trick is going very useful for you. Instead of that traditional long process of s...
How to animate a pcolormesh in Matplotlib?
To animate pcolormesh in matplotlib, we can take the following steps − Create a figure and a set of subplots. Create a figure and a set of subplots. Create x, y and t data points using numpy. Create x, y and t data points using numpy. Create X3, Y3 and T3, return coordinate matrices from coordinate vectors using meshgr...
[ { "code": null, "e": 1133, "s": 1062, "text": "To animate pcolormesh in matplotlib, we can take the following steps −" }, { "code": null, "e": 1172, "s": 1133, "text": "Create a figure and a set of subplots." }, { "code": null, "e": 1211, "s": 1172, "text": "C...
How to Join Pandas DataFrames using Merge? - GeeksforGeeks
10 Jul, 2020 Joining and merging DataFrames is that the core process to start out out with data analysis and machine learning tasks. It’s one of the toolkits which each Data Analyst or Data Scientist should master because in most cases data comes from multiple sources and files. In this tutorial, you’ll how to join dat...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n10 Jul, 2020" }, { "code": null, "e": 24761, "s": 24318, "text": "Joining and merging DataFrames is that the core process to start out out with data analysis and machine learning tasks. It’s one of the toolkits which each Data An...
Searching or Sorting a list of Objects Based on an Attribute in Python | by Allison Stafford | Towards Data Science
Often, when you have a group of objects, you might be looking to sort them based not on their location in memory, but on an attribute of interest. Today, we’ll look at Python’s built in tool for doing just this: operator.attrgetter, as well as the related tools in this toolkit and alternate methods to achieve similar g...
[ { "code": null, "e": 543, "s": 172, "text": "Often, when you have a group of objects, you might be looking to sort them based not on their location in memory, but on an attribute of interest. Today, we’ll look at Python’s built in tool for doing just this: operator.attrgetter, as well as the related...
Brand Management - Quick Guide
“A product is something made in the factory; a brand is something the customer buys. A product can be copied or imitated by a competitor; a brand is unique. A product can be outdated; a successful brand is timeless.” − Stephen King (WPP Group, London) Today, the commodity marketplace is flooded with various brands. The...
[ { "code": null, "e": 2267, "s": 2050, "text": "“A product is something made in the factory; a brand is something the customer buys. A product can be copied or imitated by a competitor; a brand is unique. A product can be outdated; a successful brand is timeless.”" }, { "code": null, "e":...
C++ Multithreading
Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of multitasking: process-based and thread-based. Process-based multitasking handles the concurrent execution of programs. Thread-bas...
[ { "code": null, "e": 2555, "s": 2318, "text": "Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of multitasking: process-based and thread-based." }, { "c...
Dart Programming - toString Method
Returns a string representation of an object. val.toString() Returns a string. void main() { int n = 12; var res = n.toString(); print("New String: ${res}"); } It will produce the following output −. New String: 12 44 Lectures 4.5 hours Sriyank Siddhartha 34 Lectures 4 hours ...
[ { "code": null, "e": 2571, "s": 2525, "text": "Returns a string representation of an object." }, { "code": null, "e": 2587, "s": 2571, "text": "val.toString()\n" }, { "code": null, "e": 2605, "s": 2587, "text": "Returns a string." }, { "code": null, ...
Bell Numbers (Number of ways to Partition a Set) - GeeksforGeeks
16 Apr, 2021 Given a set of n elements, find number of ways of partitioning it. Examples: Input: n = 2 Output: Number of ways = 2 Explanation: Let the set be {1, 2} { {1}, {2} } { {1, 2} } Input: n = 3 Output: Number of ways = 5 Explanation: Let the set be {1, 2, 3} { {1}, {2}...
[ { "code": null, "e": 24580, "s": 24552, "text": "\n16 Apr, 2021" }, { "code": null, "e": 24659, "s": 24580, "text": "Given a set of n elements, find number of ways of partitioning it. Examples: " }, { "code": null, "e": 25011, "s": 24659, "text": "Input: n =...
Swift - Decision Making
Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false. Fol...
[ { "code": null, "e": 2570, "s": 2253, "text": "Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statem...
How to randomly select an item from a tuple in Python?
The choice() function is useful for this purpose. It returns on item randomly selected from any sequence object (tuple in this case) >>> import random >>> t1=(11,'aa',12.50,77,'xyz') >>> item=random.choice(t1) >>> item 11 >>> item=random.choice(t1) >>> item 'xyz'
[ { "code": null, "e": 1195, "s": 1062, "text": "The choice() function is useful for this purpose. It returns on item randomly selected from any sequence object (tuple in this case)" }, { "code": null, "e": 1326, "s": 1195, "text": ">>> import random\n>>> t1=(11,'aa',12.50,77,'xyz'...
BERT for Text Classification with NO model training | by Mauro Di Pietro | Towards Data Science
Are you struggling to classify text data because you don’t have a labeled dataset? In this article, using BERT and Python, I will explain how to perform a sort of “unsupervised” text classification based on similarity. NLP (Natural Language Processing) is the field of artificial intelligence that studies the interactio...
[ { "code": null, "e": 390, "s": 171, "text": "Are you struggling to classify text data because you don’t have a labeled dataset? In this article, using BERT and Python, I will explain how to perform a sort of “unsupervised” text classification based on similarity." }, { "code": null, "e":...
Assembly - Macros
Writing a macro is another way of ensuring modular programming in assembly language. A macro is a sequence of instructions, assigned by a name and could be used anywhere in the program. A macro is a sequence of instructions, assigned by a name and could be used anywhere in the program. In NASM, macros are defined with ...
[ { "code": null, "e": 2170, "s": 2085, "text": "Writing a macro is another way of ensuring modular programming in assembly language." }, { "code": null, "e": 2271, "s": 2170, "text": "A macro is a sequence of instructions, assigned by a name and could be used anywhere in the progr...
Batch Script - Recursive Functions
The ability to completely encapsulate the body of a function by keeping variable changes local to the function and invisible to the caller. We can now have the ability to call a function recursively making sure each level of recursion works with its own set of variables even though variable names are being reused. Foll...
[ { "code": null, "e": 2485, "s": 2169, "text": "The ability to completely encapsulate the body of a function by keeping variable changes local to the function and invisible to the caller. We can now have the ability to call a function recursively making sure each level of recursion works with its own...
Longest Bitonic subsequence | Practice | GeeksforGeeks
Given an array of positive integers. Find the maximum length of Bitonic subsequence. A subsequence of array is called Bitonic if it is first increasing, then decreasing. Example 1: Input: nums = [1, 2, 5, 3, 2] Output: 5 Explanation: The sequence {1, 2, 5} is increasing and the sequence {3, 2} is decreasing so merg...
[ { "code": null, "e": 411, "s": 238, "text": "Given an array of positive integers. Find the maximum length of Bitonic subsequence. \nA subsequence of array is called Bitonic if it is first increasing, then decreasing.\n " }, { "code": null, "e": 422, "s": 411, "text": "Example 1:"...
Monitoring Python Applications with Elastic APM | by Jimit Dholakia | Towards Data Science
Elastic APM is an application performance monitoring system built on the Elastic Stack. It allows you to monitor software services and applications in real-time, by collecting detailed performance information on response time for incoming requests, database queries, calls to caches, external HTTP requests, and more. Th...
[ { "code": null, "e": 558, "s": 171, "text": "Elastic APM is an application performance monitoring system built on the Elastic Stack. It allows you to monitor software services and applications in real-time, by collecting detailed performance information on response time for incoming requests, databa...
Socket.IO - Event Handling
Sockets work based on events. There are some reserved events, which can be accessed using the socket object on the server side. These are − Connect Message Disconnect Reconnect Ping Join and Leave. The client-side socket object also provides us with some reserved events, which are − Connect Connect_error Connect_timeou...
[ { "code": null, "e": 1993, "s": 1865, "text": "Sockets work based on events. There are some reserved events, which can be accessed using the socket object on the server side." }, { "code": null, "e": 2005, "s": 1993, "text": "These are −" }, { "code": null, "e": 2013,...
One-Step Predictions with LSTM: Forecasting Hotel Revenues | by Michael Grogan | Towards Data Science
Note: This is an update to my previous article Forecasting Average Daily Rate Trends for Hotels Using LSTM. I since recognised a couple of technical errors in the original analysis, and decided to write a new article to address these and expand my prior analysis. The purpose of using an LSTM model in this instance is t...
[ { "code": null, "e": 436, "s": 172, "text": "Note: This is an update to my previous article Forecasting Average Daily Rate Trends for Hotels Using LSTM. I since recognised a couple of technical errors in the original analysis, and decided to write a new article to address these and expand my prior a...
JavaScript TypeError - "X" is not a constructor - GeeksforGeeks
24 Jul, 2020 This JavaScript exception is not a constructor that occurs if code tries to use an object or a variable as a constructor, which is not a constructor. Message: TypeError: Object doesn't support this action (Edge) TypeError: "x" is not a constructor TypeError: Math is not a constructor TypeError: JSON is no...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n24 Jul, 2020" }, { "code": null, "e": 25450, "s": 25300, "text": "This JavaScript exception is not a constructor that occurs if code tries to use an object or a variable as a constructor, which is not a constructor." }, { ...
Formatting dynamic json array JavaScript
Let’s say, we have an array of objects like this − const arr = [ {"name1": "firstString"}, {"name2": "secondString"}, {"name3": "thirdString"}, {"name4": "fourthString"}, {"name5": "fifthString"}, {"name6": "sixthString"}, ]; We are required to write a function that takes one such array of objects and...
[ { "code": null, "e": 1113, "s": 1062, "text": "Let’s say, we have an array of objects like this −" }, { "code": null, "e": 1306, "s": 1113, "text": "const arr = [\n {\"name1\": \"firstString\"},\n {\"name2\": \"secondString\"},\n {\"name3\": \"thirdString\"},\n {\"name4\"...
Binary Literals and Digit Separators in C# - GeeksforGeeks
30 Apr, 2019 The fixed values are called as Literal. Literal is a value which is used by the variables. Before C# 7.0 six types of literals are available that are an integer, Floating-point, Character, String, Null, Boolean literals. In C# 7.0 there is one more literal is added which is known as Binary Literal. The bin...
[ { "code": null, "e": 23890, "s": 23862, "text": "\n30 Apr, 2019" }, { "code": null, "e": 24349, "s": 23890, "text": "The fixed values are called as Literal. Literal is a value which is used by the variables. Before C# 7.0 six types of literals are available that are an integer, F...
SQL Query to Exclude Null Values - GeeksforGeeks
23 Sep, 2021 In this article, we will look at how to exclude Null Values from the table using a SQL query. A null value indicates no value. It means that the column value is absent in a row. A null value is not the same as a blank space or a zero value. A zero value is an integer and a blank space is a character whil...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n23 Sep, 2021" }, { "code": null, "e": 24388, "s": 24292, "text": "In this article, we will look at how to exclude Null Values from the table using a SQL query. " }, { "code": null, "e": 24651, "s": 24388, "te...
PHP Callbacks/Callables
Callback is a pseudo-type in PHP. With PHP 5.4, Callable type hint has been introduced, which is similar to Callback. When some object is identified as callable, it means that it can be used as a function that can be called. A callable can be a built-in or user defined function or a method inside any class. The is_call...
[ { "code": null, "e": 1371, "s": 1062, "text": "Callback is a pseudo-type in PHP. With PHP 5.4, Callable type hint has been introduced, which is similar to Callback. When some object is identified as callable, it means that it can be used as a function that can be called. A callable can be a built-in...
BeautifulSoup - Search by text inside a tag - GeeksforGeeks
15 Mar, 2021 Prerequisites: Beautifulsoup Beautifulsoup is a powerful python module used for web scraping. This article discusses how a specific text can be searched inside a given tag. Import module Pass the URL Request page Specify the tag to be searched For Search by text inside tag we need to check condition to wit...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n15 Mar, 2021" }, { "code": null, "e": 24321, "s": 24292, "text": "Prerequisites: Beautifulsoup" }, { "code": null, "e": 24465, "s": 24321, "text": "Beautifulsoup is a powerful python module used for web scrapi...
Performing distinct on multiple fields in MongoDB?
You can use $group operator along with aggregate framework to perform distinct on multiple fields. Let us first create a collection with documents − > db.distinctOnMultipleFieldsDemo.insertOne( ... { ... "StudentFirstName" : "Chris", ... "StudentAge" : 21, ... "StudentCountryName": "US" ... } .....
[ { "code": null, "e": 1211, "s": 1062, "text": "You can use $group operator along with aggregate framework to perform distinct on multiple fields. Let us first create a collection with documents −" }, { "code": null, "e": 2258, "s": 1211, "text": "> db.distinctOnMultipleFieldsDemo...
Character.isWhitespace() method in Java with examples
06 Dec, 2018 The java.lang.Character.isWhitespace() is an inbuilt method in a java that determines if the specified character (Unicode code point) is white space according to Java. A character is a Java whitespace character if and only if it satisfies one of the following criteria: It is a Unicode space character (SPAC...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Dec, 2018" }, { "code": null, "e": 324, "s": 54, "text": "The java.lang.Character.isWhitespace() is an inbuilt method in a java that determines if the specified character (Unicode code point) is white space according to Java. A char...
What is use of %n in printf() ?
09 Oct, 2019 In C printf(), %n is a special format specifier which instead of printing something causes printf() to load the variable pointed by the corresponding argument with a value equal to the number of characters that have been printed by printf() before the occurrence of %n. #include<stdio.h> int main(){ int c...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Oct, 2019" }, { "code": null, "e": 322, "s": 52, "text": "In C printf(), %n is a special format specifier which instead of printing something causes printf() to load the variable pointed by the corresponding argument with a value eq...
jQuery UI Dialog title Option
12 Jan, 2021 The article explains the title option which is used to set the title in the dialog box. By default, its value is null. Syntax: $( ".selector" ).dialog({ title : "title" }); Approach: First, add jQuery UI scripts needed for your project. <link href = “https://code.jquery.com/ui/1.10.4/themes/ui-lightnes...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2021" }, { "code": null, "e": 147, "s": 28, "text": "The article explains the title option which is used to set the title in the dialog box. By default, its value is null." }, { "code": null, "e": 155, "s": 147, ...
JavaScript URIError | Malformed URI Sequence
19 Aug, 2020 This JavaScript exception malformed URI sequence occurs if the encoding or decoding of URI is unsuccessful. Message: URIError: The URI to be encoded contains invalid character (Edge) URIError: malformed URI sequence (Firefox) URIError: URI malformed (Chrome) Error Type: URIError Cause of the Error: This ...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Aug, 2020" }, { "code": null, "e": 136, "s": 28, "text": "This JavaScript exception malformed URI sequence occurs if the encoding or decoding of URI is unsuccessful." }, { "code": null, "e": 145, "s": 136, "text":...
Find Duplicates of array using bit array
08 Jul, 2022 You have an array of N numbers, where N is at most 32,000. The array may have duplicate entries and you do not know what N is. With only 4 Kilobytes of memory available, how would print all duplicate elements in the array ?. Examples: Input : arr[] = {1, 5, 1, 10, 12, 10} Output : 1 10 1 and 10 appear mor...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2022" }, { "code": null, "e": 278, "s": 52, "text": "You have an array of N numbers, where N is at most 32,000. The array may have duplicate entries and you do not know what N is. With only 4 Kilobytes of memory available, how ...
pstree Command in Linux with Examples
03 Jun, 2020 Pstree command in Linux that shows the running processes as a tree which is a more convenient way to display the processes hierarchy and makes the output more visually appealing. The root of the tree is either init or the process with the given pid. Pstree can also be installed in other Unix systems. Synta...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jun, 2020" }, { "code": null, "e": 356, "s": 54, "text": "Pstree command in Linux that shows the running processes as a tree which is a more convenient way to display the processes hierarchy and makes the output more visually appeal...
ROUND() Function in SQL Server
30 Dec, 2020 ROUND() function :This function in SQL Server is used to round off a specified number to a specified decimal places. Features : This function is used to round off a specified number to a specified decimal places. This function accepts only all type of numbers i.e., positive, negative, zero. This function a...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2020" }, { "code": null, "e": 145, "s": 28, "text": "ROUND() function :This function in SQL Server is used to round off a specified number to a specified decimal places." }, { "code": null, "e": 156, "s": 145, ...
Double factorial - GeeksforGeeks
29 Apr, 2021 Double factorial of a non-negative integer n, is the product of all the integers from 1 to n that have the same parity (odd or even) as n. It is also called as semifactorial of a number and is denoted by !!. For example, double factorial of 9 is 9*7*5*3*1 which is 945. Note that, a consequence of this defi...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n29 Apr, 2021" }, { "code": null, "e": 25053, "s": 24716, "text": "Double factorial of a non-negative integer n, is the product of all the integers from 1 to n that have the same parity (odd or even) as n. It is also called as sem...
QTP - Descriptive Programming
QTP scripts can execute only if the objects are present in the Object Repository. The descriptions of the Objects are created using Descriptive programming − When the testers want to perform an operation on an object that is not present in the object repository When the testers want to perform an operation on an object...
[ { "code": null, "e": 2280, "s": 2122, "text": "QTP scripts can execute only if the objects are present in the Object Repository. The descriptions of the Objects are created using Descriptive programming −" }, { "code": null, "e": 2384, "s": 2280, "text": "When the testers want to...
C# program to get the last element from an array
Firstly, set an array − string[] str = new string[]{ "Java", "HTML", "jQuery", "JavaScript", "Bootstrap" }; To get the value of the last element, get the length and display the following value − str[str.Length - 1] The above returns the last element. Here is the complete code − Live Demo using System; ...
[ { "code": null, "e": 1086, "s": 1062, "text": "Firstly, set an array −" }, { "code": null, "e": 1185, "s": 1086, "text": "string[] str = new string[]{\n \"Java\",\n \"HTML\",\n \"jQuery\",\n \"JavaScript\",\n \"Bootstrap\"\n};" }, { "code": null, "e": 1272, ...
Arduino - Compound Operators
Assume variable A holds 10 and variable B holds 20 then − void loop () { int a = 10,b = 20 int c = 0; a++; a--; b += a; b -= a; b *= a; b /= a; a %= b; a |= b; a &= b; } a = 11 a = 9 b = 30 b = 10 b = 200 b = 2 a = 0 a = 0 a = 30 65 Lectures 6.5 hours Amit Rana 4...
[ { "code": null, "e": 2928, "s": 2870, "text": "Assume variable A holds 10 and variable B holds 20 then −" }, { "code": null, "e": 3077, "s": 2928, "text": "void loop () {\n int a = 10,b = 20\n int c = 0;\n \n a++;\n a--;\n b += a;\n b -= a;\n b *= a;\n b /= a;\n...
Farthest distance of a Node from each Node of a Tree - GeeksforGeeks
15 Jun, 2021 Given a Tree, the task is to find the farthest node from each node to another node in the given tree. Examples Input: Output: 2 3 3 3 4 4 4 Explanation: Maximum Distance from Node 1 : 2 (Nodes {5, 6, 7} are at a distance 2) Maximum Distance from Node 2 : 3 (Nodes {6, 7} are at a distance 3) Maximum Dist...
[ { "code": null, "e": 25108, "s": 25080, "text": "\n15 Jun, 2021" }, { "code": null, "e": 25210, "s": 25108, "text": "Given a Tree, the task is to find the farthest node from each node to another node in the given tree." }, { "code": null, "e": 25221, "s": 25210, ...
Using R to Visualise Data on Aviation Tragedies in the US since 1948 | by Hamza Bendemra, Ph.D. | Towards Data Science
In this post, I look at a dataset sourced from the NTSB Aviation Accident Database which contains information about civil aviation accidents. A dataset is available on Kaggle also. This Exploratory Data Analysis (EDA) aims to perform an initial exploration of the data and get an initial look at relationships between th...
[ { "code": null, "e": 353, "s": 172, "text": "In this post, I look at a dataset sourced from the NTSB Aviation Accident Database which contains information about civil aviation accidents. A dataset is available on Kaggle also." }, { "code": null, "e": 536, "s": 353, "text": "This ...
How to rethrow InnerException without losing stack trace in C#?
In c#, the throw is a keyword and it is useful to throw an exception manually during the execution of the program and we can handle those thrown exceptions using try−catch blocks based on our requirements. By using throw keyword in the catch block, we can re-throw an exception that is handled in the catch block. The re...
[ { "code": null, "e": 1268, "s": 1062, "text": "In c#, the throw is a keyword and it is useful to throw an exception manually during the execution of the program and we can handle those thrown exceptions using try−catch blocks based on our requirements." }, { "code": null, "e": 1496, ...
Dart Programming - Enumeration
An enumeration is used for defining named constant values. An enumerated type is declared using the enum keyword. enum enum_name { enumeration list } Where, The enum_name specifies the enumeration type name The enumeration list is a comma-separated list of identifiers Each of the symbols in the enumeration list ...
[ { "code": null, "e": 2639, "s": 2525, "text": "An enumeration is used for defining named constant values. An enumerated type is declared using the enum keyword." }, { "code": null, "e": 2682, "s": 2639, "text": "enum enum_name { \n enumeration list \n}\n" }, { "code": ...
C# program to concat two or more Lists
Set three lists − // three lists var list1 = new List<int>{3, 4}; var list2 = new List<int>{1, 2, 3}; var list3 = new List<int>{2, 5, 6}; Now, use the Concat mthod to concat the above lists − var res1 = list1.Concat(list2); var res2 = res1.Concat(list3); Here is the complete code − Live Demo using System.Collections.G...
[ { "code": null, "e": 1080, "s": 1062, "text": "Set three lists −" }, { "code": null, "e": 1200, "s": 1080, "text": "// three lists\nvar list1 = new List<int>{3, 4};\nvar list2 = new List<int>{1, 2, 3};\nvar list3 = new List<int>{2, 5, 6};" }, { "code": null, "e": 1254...
Check if mirror image of a number is same if displayed in seven segment display - GeeksforGeeks
05 May, 2021 Given a positive number n. The task is to check if the mirror image of the number is equal to given number or not if displayed on Seven Line Segment. A mirror image of a number is a reflected duplication of the number that appears almost identical but is reversed in the direction perpendicular to the mirro...
[ { "code": null, "e": 24924, "s": 24896, "text": "\n05 May, 2021" }, { "code": null, "e": 25253, "s": 24924, "text": "Given a positive number n. The task is to check if the mirror image of the number is equal to given number or not if displayed on Seven Line Segment. A mirror imag...
Edit your videos AUTOMATICALLY with this Python code! | by Favio Vázquez | Towards Data Science
The time has come! I’m creating courses for amazing companies like Business Science and Ciencia y Datos and I’m editing videos is a pain in the a**!! The software I’ll present you here is by the great Carykh. The goal of the system is to edit the annoying silences in videos, the error we make, and almost every piece of...
[ { "code": null, "e": 381, "s": 172, "text": "The time has come! I’m creating courses for amazing companies like Business Science and Ciencia y Datos and I’m editing videos is a pain in the a**!! The software I’ll present you here is by the great Carykh." }, { "code": null, "e": 515, ...
C++ Program to Display Armstrong Number Between Two Intervals
An Armstrong Number is a number where the sum of the digits raised to the power of total number of digits is equal to the number. Some examples of Armstrong numbers are as follows − 3 = 3^1 153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153 407 = 4^3 + 0^3 + 7^3 = 64 +0 + 343 = 407 1634 = 1^4 + 6^4 + 3^4 + 4^4 = 1 + 1296 + 81 ...
[ { "code": null, "e": 1192, "s": 1062, "text": "An Armstrong Number is a number where the sum of the digits raised to the power of total number of digits is equal to the number." }, { "code": null, "e": 1244, "s": 1192, "text": "Some examples of Armstrong numbers are as follows −"...
iText - Rotating an Image
In this chapter, we will see how to insert an image in a PDF document and how to rotate that image, using the functions available in the iText library. You can create an empty PDF Document by instantiating the Document class. While instantiating this class, you need to pass a PdfDocument object as a parameter to its co...
[ { "code": null, "e": 2520, "s": 2368, "text": "In this chapter, we will see how to insert an image in a PDF document and how to rotate that image, using the functions available in the iText library." }, { "code": null, "e": 2699, "s": 2520, "text": "You can create an empty PDF Do...
Find minimum element of ArrayList with Java Collections
In order to compute minimum element of ArrayList with Java Collections, we use the Collections.min() method. The java.util.Collections.min() returns the minimum element of the given collection. All elements must be mutually comparable and implement the comparable interface. They shouldn’t throw a ClassCastException. De...
[ { "code": null, "e": 1380, "s": 1062, "text": "In order to compute minimum element of ArrayList with Java Collections, we use the Collections.min() method. The java.util.Collections.min() returns the minimum element of the given collection. All elements must be mutually comparable and implement the ...
Microprocessor - 8085 Instruction Sets
Let us take a look at the programming of 8085 Microprocessor. Instruction sets are instruction codes to perform some task. It is classified into five categories. Following is the table showing the list of Control instructions with their meanings. Following is the table showing the list of Logical instructions with thei...
[ { "code": null, "e": 2523, "s": 2461, "text": "Let us take a look at the programming of 8085 Microprocessor." }, { "code": null, "e": 2623, "s": 2523, "text": "Instruction sets are instruction codes to perform some task. It is classified into five categories." }, { "code"...
C++ Program to Find the Edge Connectivity of a Graph
In this program we need to find the Edge Connectivity of a Graph. An Edge Connectivity of a Graph of a graph means it is a bridge, removing it graph will be disconnected. Number of connected components increases with the removing of bridge in a disconnected undirected graph. Begin Function connections() is a recursi...
[ { "code": null, "e": 1338, "s": 1062, "text": "In this program we need to find the Edge Connectivity of a Graph. An Edge Connectivity of a Graph of a graph means it is a bridge, removing it graph will be disconnected. Number of connected components increases with the removing of bridge in a disconne...
Dataset Biases: Institutionalized Discrimination or Adequate Transparency? | by Mathieu Lemay | Towards Data Science
[...] Why would we need such a law? Prior to Congress’s enacting HMDA in 1975, the public raised considerable concerns about mortgages — or, more importantly, the lack thereof — in some urban, often minority, neighborhoods. Certain areas seemed to decline, in part because their residents were not able to obtain home mo...
[ { "code": null, "e": 515, "s": 171, "text": "[...] Why would we need such a law? Prior to Congress’s enacting HMDA in 1975, the public raised considerable concerns about mortgages — or, more importantly, the lack thereof — in some urban, often minority, neighborhoods. Certain areas seemed to decline...
GraphQL With Python Flask. GraphQL, Graphene, Flask, and Mysql | by Manish Jain | Towards Data Science
Before we get started, let’s talk about our objective first. We are trying to develop a starter-kit project that runs on Flask, that has the following functionalities: GraphQL support Database integration For this tutorial, we will need: - Python- Pip- Virtualenv- Docker Flask is a micro framework for Python based on W...
[ { "code": null, "e": 233, "s": 172, "text": "Before we get started, let’s talk about our objective first." }, { "code": null, "e": 340, "s": 233, "text": "We are trying to develop a starter-kit project that runs on Flask, that has the following functionalities:" }, { "cod...
Repeated Character | Practice | GeeksforGeeks
Given a string consisting of lowercase english alphabets. Find the repeated character present first in the string. Example 1: Input: S = "geeksforgeeks" Output: g Explanation: g, e, k and s are the repeating characters. Out of these, g occurs first. ​Example 2: Input: S = "abcde" Output: -1 Explanation: No repeat...
[ { "code": null, "e": 341, "s": 226, "text": "Given a string consisting of lowercase english alphabets. Find the repeated character present first in the string." }, { "code": null, "e": 352, "s": 341, "text": "Example 1:" }, { "code": null, "e": 478, "s": 352, ...
Python | Pandas DatetimeIndex.floor() - GeeksforGeeks
29 Dec, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.floor() function floor the data to the specified frequency. The function...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n29 Dec, 2018" }, { "code": null, "e": 25861, "s": 25647, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages a...
Time Series Forecasting in R. Exponential Smoothing, TBATS, ARIMA... | by François St-Amant | Towards Data Science
Python is great, but when it comes to forecasting, I personally think R still has the upper hand. The Forecast package is the most complete forecasting package available on R or Python, and it’s worth knowing about it. Here is what we will see in this article: Naive methodsExponential Smoothing (State-space models and ...
[ { "code": null, "e": 391, "s": 172, "text": "Python is great, but when it comes to forecasting, I personally think R still has the upper hand. The Forecast package is the most complete forecasting package available on R or Python, and it’s worth knowing about it." }, { "code": null, "e":...
Java - Inner classes
In this chapter, we will discuss inner classes of Java. In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class. S...
[ { "code": null, "e": 2433, "s": 2377, "text": "In this chapter, we will discuss inner classes of Java." }, { "code": null, "e": 2696, "s": 2433, "text": "In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is a...
Non-Restoring Division For Unsigned Integer - GeeksforGeeks
04 Oct, 2018 In earlier post Restoring Division learned about restoring division. Now, here perform Non-Restoring division, it is less complex than the restoring one because simpler operation are involved i.e. addition and subtraction, also now restoring step is performed. In the method, rely on the sign bit of the reg...
[ { "code": null, "e": 28189, "s": 28161, "text": "\n04 Oct, 2018" }, { "code": null, "e": 28543, "s": 28189, "text": "In earlier post Restoring Division learned about restoring division. Now, here perform Non-Restoring division, it is less complex than the restoring one because si...
Cycles of length n in an undirected and connected graph - GeeksforGeeks
02 Jul, 2021 Given an undirected and connected graph and a number n, count total number of cycles of length n in the graph. A cycle of length n simply means that the cycle contains n vertices and n edges. And we have to count all such cycles that exist. Example : Input : n = 4 Output : Total cycles = 3 Explanation :...
[ { "code": null, "e": 26533, "s": 26505, "text": "\n02 Jul, 2021" }, { "code": null, "e": 26786, "s": 26533, "text": "Given an undirected and connected graph and a number n, count total number of cycles of length n in the graph. A cycle of length n simply means that the cycle cont...
Weekend Hack: Building an Image Recognition bot for Telegram using Python | by Alain Perkaz | Towards Data Science
The goal of this post is to build a Telegram bot with Python that performs image recognition using neural networks. The post is divided into three main sections: introduction, technology choices, and step-by-step setup. This post is the fourth instance of the Weekend Hack series, a series of short development stories a...
[ { "code": null, "e": 267, "s": 47, "text": "The goal of this post is to build a Telegram bot with Python that performs image recognition using neural networks. The post is divided into three main sections: introduction, technology choices, and step-by-step setup." }, { "code": null, "e":...
E -Library Management System - GeeksforGeeks
15 Mar, 2021 In this article, we will discuss the approach to create an E-Library Management System where the user has the following options: Add book information. Display book information. To list all books of a given author. To list the count of books in the library. Functionalities Required: If the user tries to add...
[ { "code": null, "e": 26097, "s": 26069, "text": "\n15 Mar, 2021" }, { "code": null, "e": 26226, "s": 26097, "text": "In this article, we will discuss the approach to create an E-Library Management System where the user has the following options:" }, { "code": null, "e...
Calculate the length of an associative array using JavaScript - GeeksforGeeks
12 Dec, 2021 Associative Array: In JavaScript, we have normal arrays in which an element is present at a particular index. Whereas Associative arrays are basically Objects in JavaScript where the index is replaced with user-defined keys. Basically, we can say that it stores Key-Value pairs. Syntax: let arr = { key1: 'v...
[ { "code": null, "e": 26655, "s": 26627, "text": "\n12 Dec, 2021" }, { "code": null, "e": 26934, "s": 26655, "text": "Associative Array: In JavaScript, we have normal arrays in which an element is present at a particular index. Whereas Associative arrays are basically Objects in J...
Introduction to Vectors in R. Learn how to analyze your gambling... | by Linda Ngo | Towards Data Science
Let’s take a trip to a Statisticians Paradise, otherwise known as Vegas! Thanks to R and your new data analytical skills, you will learn how to uplift your performance at the tables and make some profits. After this tutorial, you will be able to easily track your betting progress and analyze your past action. Vectors a...
[ { "code": null, "e": 245, "s": 172, "text": "Let’s take a trip to a Statisticians Paradise, otherwise known as Vegas!" }, { "code": null, "e": 483, "s": 245, "text": "Thanks to R and your new data analytical skills, you will learn how to uplift your performance at the tables and ...
Find maximum difference between nearest left and right smaller elements in Python
Suppose we have an array of integers; we have to find the maximum absolute difference between the nearest left and the right smaller element of each of the elements in the array. If there is no smaller element on the right-hand side or left-hand side of any element then we will put zero as the smaller element. So, if t...
[ { "code": null, "e": 1374, "s": 1062, "text": "Suppose we have an array of integers; we have to find the maximum absolute difference between the nearest left and the right smaller element of each of the elements in the array. If there is no smaller element on the right-hand side or left-hand side of...
JSTL - Core <c:param> Tag
The <c:param> tag allows proper URL request parameter to be specified with URL and also does the necessary URL encoding required. Within a <c:param> tag, the name attribute indicates the parameter name, and the value attribute indicates the parameter value − The <c:param> tag has the following attributes − If you need ...
[ { "code": null, "e": 2369, "s": 2239, "text": "The <c:param> tag allows proper URL request parameter to be specified with URL and also does the necessary URL encoding required." }, { "code": null, "e": 2498, "s": 2369, "text": "Within a <c:param> tag, the name attribute indicates...
Difference between process.cwd() and __dirname in Node.js - GeeksforGeeks
23 Feb, 2021 NodeJS is a JavaScript runtime that was built on top of Chrome’s V8 Engine. The traditional JavaScript is executed in browsers but with Node.js we can execute JavaScript on servers, hardware devices, etc. process.cwd(): Similar to window objects on browsers, Node.js has got a global object called global, a...
[ { "code": null, "e": 25002, "s": 24974, "text": "\n23 Feb, 2021" }, { "code": null, "e": 25207, "s": 25002, "text": "NodeJS is a JavaScript runtime that was built on top of Chrome’s V8 Engine. The traditional JavaScript is executed in browsers but with Node.js we can execute Java...
Dockerize Your Dash App. Get Dash Ready for Simple, Modern... | by Edward Krueger | Towards Data Science
By Edward Krueger and Erin Oefelein This article will look at how to Dockerize a Dash app that we have already built. It's important to understand the app's structure, so please look at the repository here. If you'd like some more details and explanation, have a look at our article detailing the structure here: towards...
[ { "code": null, "e": 208, "s": 172, "text": "By Edward Krueger and Erin Oefelein" }, { "code": null, "e": 485, "s": 208, "text": "This article will look at how to Dockerize a Dash app that we have already built. It's important to understand the app's structure, so please look at ...
Hibernate - SortedSet Mappings
A SortedSet is a java collection that does not contain any duplicate element and elements are ordered using their natural ordering or by a comparator provided. A SortedSet is mapped with a <set> element in the mapping table and initialized with java.util.TreeSet. The sort attribute can be set to either a comparator or ...
[ { "code": null, "e": 2223, "s": 2063, "text": "A SortedSet is a java collection that does not contain any duplicate element and elements are ordered using their natural ordering or by a comparator provided." }, { "code": null, "e": 2497, "s": 2223, "text": "A SortedSet is mapped ...
C# | Creating a synchronized (thread-safe) wrapper for the Hashtable - GeeksforGeeks
09 Aug, 2021 Hashtable.Synchronized(Hashtable) Method is used to return a synchronized (thread-safe) wrapper for the Hashtable.Syntax: public static System.Collections.Hashtable Synchronized (System.Collections.Hashtable table); Here table is the Hashtable which is to be synchronized.Return Value: This method returns a...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n09 Aug, 2021" }, { "code": null, "e": 24033, "s": 23911, "text": "Hashtable.Synchronized(Hashtable) Method is used to return a synchronized (thread-safe) wrapper for the Hashtable.Syntax:" }, { "code": null, "e": 2412...
What is the syntax for passing Scanner object as a parameter in a method using java?
Until Java 1.5 to read data from the user programmers used to depend on the character stream classes and byte stream classes. From Java 1.5 Scanner class was introduced. This class accepts a File, InputStream, Path and, String objects, reads all the primitive data types and Strings (from the given source) token by toke...
[ { "code": null, "e": 1188, "s": 1062, "text": "Until Java 1.5 to read data from the user programmers used to depend on the character stream classes and byte stream classes." }, { "code": null, "e": 1411, "s": 1188, "text": "From Java 1.5 Scanner class was introduced. This class a...
Ways to sum to N using array elements with repetition allowed in C++
In this problem, we are given an array of integers and a number N. Our task is to count the total number of ways N can be generated by adding elements of the array. All combinations and repetitions are allowed. Let’s take an example to understand the problem, arr = {1, 3, 5} N = 6 8 The ways are − 5+1, 1+5, 3+3, 3+1+1+...
[ { "code": null, "e": 1273, "s": 1062, "text": "In this problem, we are given an array of integers and a number N. Our task is to count the total number of ways N can be generated by adding elements of the array. All combinations and repetitions are allowed." }, { "code": null, "e": 1322,...
Kotlin Exception Handling | try, catch, throw and finally
28 Mar, 2022 An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions. Exception handling is a technique, using which we can handle errors and prevent run time crashes that can stop our program. There are...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Mar, 2022" }, { "code": null, "e": 326, "s": 28, "text": "An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions. E...
Allocating kernel memory (buddy system and slab system)
15 Jul, 2021 Prerequisite – Buddy System Two strategies for managing free memory that is assigned to kernel processes: Buddy allocation system is an algorithm in which a larger memory block is divided into small parts to satisfy the request. This algorithm is used to give best fit. The two smaller parts of block are o...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Jul, 2021" }, { "code": null, "e": 83, "s": 54, "text": "Prerequisite – Buddy System " }, { "code": null, "e": 161, "s": 83, "text": "Two strategies for managing free memory that is assigned to kernel processes:"...
Patience Sorting
19 Jul, 2021 Patience sorting is a sorting algorithm based on card game Patience. In this sorting algorithm the rules of patience game is used to sort an list of elements based on their values.Rules of Patience Game: Cards with lower value can be placed over the card. If there is no possible position for a card, then...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jul, 2021" }, { "code": null, "e": 258, "s": 52, "text": "Patience sorting is a sorting algorithm based on card game Patience. In this sorting algorithm the rules of patience game is used to sort an list of elements based on their v...
Python | Split on last occurrence of delimiter
25 Jun, 2022 The splitting of strings has always been discussed in various applications and use cases. One of the interesting variations of list splitting can be splitting the list on delimiter but this time only on the last occurrence of it. Let’s discuss certain ways in which this can be done. Method #1: Using rsplit...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jun, 2022" }, { "code": null, "e": 312, "s": 28, "text": "The splitting of strings has always been discussed in various applications and use cases. One of the interesting variations of list splitting can be splitting the list on deli...
Serialize and Deserialize array of string
15 Jul, 2017 We have given an array of string and we have to serialize the array of string and deserialize the serialized string.Examples: Input : "geeks", "are", "awesome" Output : Serialized String : 5~geeks3~are7~awesome Deserialized String : geeks are awesome Input : "hello", "guys", "whats", "up!!!" Ou...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jul, 2017" }, { "code": null, "e": 178, "s": 52, "text": "We have given an array of string and we have to serialize the array of string and deserialize the serialized string.Examples:" }, { "code": null, "e": 469, "s...
Tree Sort
23 Jun, 2022 Tree sort is a sorting algorithm that is based on Binary Search Tree data structure. It first creates a binary search tree from the elements of the input list or array and then performs an in-order traversal on the created binary search tree to get the elements in sorted order. Step 1: Take the elements i...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jun, 2022" }, { "code": null, "e": 332, "s": 52, "text": "Tree sort is a sorting algorithm that is based on Binary Search Tree data structure. It first creates a binary search tree from the elements of the input list or array and th...
Python – Group Similar items to Dictionary Values List
29 Apr, 2022 Given a list of elements, perform grouping of similar elements, as different key-value list in dictionary. Input : test_list = [4, 6, 6, 4, 2, 2, 4, 8, 5, 8] Output : {4: [4, 4, 4], 6: [6, 6], 2: [2, 2], 8: [8, 8], 5: [5]} Explanation : Similar items grouped together on occurrences. Input : test_list = [7,...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Apr, 2022" }, { "code": null, "e": 135, "s": 28, "text": "Given a list of elements, perform grouping of similar elements, as different key-value list in dictionary." }, { "code": null, "e": 434, "s": 135, "text": ...
Find the maximum distance covered using n bikes
16 Aug, 2021 There are n bikes and each can cover 100 km when fully fueled. What is the maximum amount of distance you can go using n bikes? You may assume that all bikes are similar and a bike takes 1 litre to cover 1 km.You have n bikes and using one bike you can only cover 100 km. so if n bikes start from same point...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Aug, 2021" }, { "code": null, "e": 995, "s": 54, "text": "There are n bikes and each can cover 100 km when fully fueled. What is the maximum amount of distance you can go using n bikes? You may assume that all bikes are similar and ...
TCS Coding Practice Question | Average of 2 Numbers
09 Apr, 2019 Given two numbers, the task is to find the average of two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20 Output: 15 Input: n1 = 100, n2 = 200 Output: 150 Approach: Since the numbers are entered as Command line Arguments, there is no need for a dedicated input line Extract the inp...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Apr, 2019" }, { "code": null, "e": 150, "s": 54, "text": "Given two numbers, the task is to find the average of two numbers using Command Line Arguments." }, { "code": null, "e": 160, "s": 150, "text": "Examples:...