title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
dump command in Linux with examples - GeeksforGeeks
30 Sep, 2019 dump command in Linux is used for backup the filesystem to some storage device. It backs up the complete file system and not the individual files. In other words, it backups the required files to tape, disk or any other storage device for safe storage. The dump command in Linux works only with ext2/ext3 fi...
[ { "code": null, "e": 23657, "s": 23629, "text": "\n30 Sep, 2019" }, { "code": null, "e": 24289, "s": 23657, "text": "dump command in Linux is used for backup the filesystem to some storage device. It backs up the complete file system and not the individual files. In other words, ...
Split a string in equal parts (grouper in Python) - GeeksforGeeks
16 Jun, 2020 Grouper recipe is an extended toolset made using an existing itertool as building blocks. It collects data into fixed-length chunks or blocks. Existing Itertools Used:izip_longest(*iterables[, fillvalue]) : Make an iterator that aggregates elements from each of the iterables. If the iterables are of uneven...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n16 Jun, 2020" }, { "code": null, "e": 24355, "s": 24212, "text": "Grouper recipe is an extended toolset made using an existing itertool as building blocks. It collects data into fixed-length chunks or blocks." }, { "code"...
Working with Geospatial Data in Python — PART 1 | by Ben Bogart | Towards Data Science
Let's be honest; geospatial data is scary. I don’t think there is any good reason for this other than that information on how to work with geospatial data in Python is not as easily accessible as information on working with other kinds of data. This is the first article in a series focused on various must-know aspects ...
[ { "code": null, "e": 416, "s": 171, "text": "Let's be honest; geospatial data is scary. I don’t think there is any good reason for this other than that information on how to work with geospatial data in Python is not as easily accessible as information on working with other kinds of data." }, { ...
Lua - Database Access
For simple data operations, we may use files, but, sometimes, these file operations may not be efficient, scalable, and powerful. For this purpose, we may often switch to using databases. LuaSQL is a simple interface from Lua to a number of database management systems. LuaSQL is the library, which provides support for ...
[ { "code": null, "e": 2461, "s": 2103, "text": "For simple data operations, we may use files, but, sometimes, these file operations may not be efficient, scalable, and powerful. For this purpose, we may often switch to using databases. LuaSQL is a simple interface from Lua to a number of database man...
Print boundary elements of a given matrix in clockwise manner - GeeksforGeeks
26 Apr, 2021 Given a matrix arr[][] of size N * M, the task is to print the boundary elements of the given matrix in a clockwise form. Examples: Input: arr[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9} }Output: 1 2 3 6 9 8 7 4Explanation:Boundary elements of the matrix are: 1 2 3 4 5 6 7 8 <strong>9 Therefore, the sequence of...
[ { "code": null, "e": 24841, "s": 24813, "text": "\n26 Apr, 2021" }, { "code": null, "e": 24963, "s": 24841, "text": "Given a matrix arr[][] of size N * M, the task is to print the boundary elements of the given matrix in a clockwise form." }, { "code": null, "e": 2497...
Getting a syntax error unknown fields in SAP ABAP
You need to add spaces after or before braces as follows − SELECT * FROM CNTRB WHERE AGE > 30 AND CNTRB > 10000 AND NOT ( FUND1 = 'value' AND FUND2 = '0' )
[ { "code": null, "e": 1121, "s": 1062, "text": "You need to add spaces after or before braces as follows −" }, { "code": null, "e": 1221, "s": 1121, "text": "SELECT *\nFROM CNTRB\nWHERE AGE > 30\nAND CNTRB > 10000\nAND NOT ( FUND1 = 'value' AND FUND2 = '0' )" } ]
Style input type submit with CSS
The input type button can be a submit button or reset button. With CSS, we can style any button on a web page. You can try to run the following code to style input type submit: Live Demo <!DOCTYPE html> <html> <head> <style> input[type = submit] { background-color: orange; bord...
[ { "code": null, "e": 1173, "s": 1062, "text": "The input type button can be a submit button or reset button. With CSS, we can style any button on a web page." }, { "code": null, "e": 1239, "s": 1173, "text": "You can try to run the following code to style input type submit:" },...
How to hide status bar in Android using Kotlin?
This example demonstrates how to hide status bar in Android using Kotlin. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <RelativeLayo...
[ { "code": null, "e": 1136, "s": 1062, "text": "This example demonstrates how to hide status bar in Android using Kotlin." }, { "code": null, "e": 1265, "s": 1136, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to c...
ASP.NET Core - DBContext
The Entity Framework enables you to query, insert, update, and delete data, using Common Language Runtime (CLR) objects known as entities. The Entity Framework maps the entities and relationships that are defined in your model to a database. It also provides facilities to − Materialize data returned from the database a...
[ { "code": null, "e": 2736, "s": 2461, "text": "The Entity Framework enables you to query, insert, update, and delete data, using Common Language Runtime (CLR) objects known as entities. The Entity Framework maps the entities and relationships that are defined in your model to a database. It also pro...
MongoDB Interview Questions
Dear readers, these MongoDB Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of MongoDB. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions ...
[ { "code": null, "e": 2991, "s": 2553, "text": "Dear readers, these MongoDB Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of MongoDB. As per my experience good interviewers hardly plan to ask...
Moore - Penrose Pseudoinverse | Mathematics - GeeksforGeeks
03 Oct, 2019 In linear algebra pseudoinverse () of a matrix A is a generalization of the inverse matrix. The most common use of pseudoinverse is to compute the best fit solution to a system of linear equations which lacks a unique solution. Moore – Penrose inverse is the most widely known type of matrix pseudoinverse. ...
[ { "code": null, "e": 24368, "s": 24340, "text": "\n03 Oct, 2019" }, { "code": null, "e": 24753, "s": 24368, "text": "In linear algebra pseudoinverse () of a matrix A is a generalization of the inverse matrix. The most common use of pseudoinverse is to compute the best fit solutio...
Transfer learning using pytorch — Part 1 | by Vishnu Subramanian | Towards Data Science
Ever wondered why ML models have to learn every time from scratch . What if the models can use knowledge learnt from recognising cats, dogs ,fish ,cars , bus and many more to identify a distracted car driver or to identify plant disease .In transfer learning we use a pre trained neural network in extracting features an...
[ { "code": null, "e": 600, "s": 172, "text": "Ever wondered why ML models have to learn every time from scratch . What if the models can use knowledge learnt from recognising cats, dogs ,fish ,cars , bus and many more to identify a distracted car driver or to identify plant disease .In transfer learn...
Python String min() Method
Python string method min() returns the min alphabetical character from the string str. Following is the syntax for min() method − min(str) str − This is the string from which min alphabetical character needs to be returned. str − This is the string from which min alphabetical character needs to be returned. This meth...
[ { "code": null, "e": 2332, "s": 2244, "text": "Python string method min() returns the min alphabetical character from the string str." }, { "code": null, "e": 2375, "s": 2332, "text": "Following is the syntax for min() method −" }, { "code": null, "e": 2385, "s":...
Find value of (n^1 + n^2 + n^3 + n^4) mod 5 for given n - GeeksforGeeks
07 Apr, 2021 You are given a function f(n) = (n1 + n2 + n3 + n4), you have to find the value of f(n) mod 5 for any given value of positive integer n. Note: n may be large enough, such that f(n) > 1018. Examples : Input : n = 4 Output : 0 Explanation : f(4) = 4 + 16 + 64 + 256 = 330, f(4) mod 5 = 330 mod 5 = 0. Inpu...
[ { "code": null, "e": 25214, "s": 25186, "text": "\n07 Apr, 2021" }, { "code": null, "e": 25416, "s": 25214, "text": "You are given a function f(n) = (n1 + n2 + n3 + n4), you have to find the value of f(n) mod 5 for any given value of positive integer n. Note: n may be large enoug...
Spice Up Your Python Visualizations with Matplotlib Animations | by Tony Yiu | Towards Data Science
If you are interested in my code, you can find it here on my GitHub. The code throws an error (that I could not get rid of for the life of me) the first time you run it. But if you just execute the same cell again, it will run fine. This post is not an obviously data science post but it does have data science and busin...
[ { "code": null, "e": 405, "s": 172, "text": "If you are interested in my code, you can find it here on my GitHub. The code throws an error (that I could not get rid of for the life of me) the first time you run it. But if you just execute the same cell again, it will run fine." }, { "code": ...
R - Lists
Lists are the R objects which contain elements of different types like − numbers, strings, vectors and another list inside it. A list can also contain a matrix or a function as its elements. List is created using list() function. Following is an example to create a list containing strings, numbers, vectors and a logica...
[ { "code": null, "e": 2632, "s": 2402, "text": "Lists are the R objects which contain elements of different types like − numbers, strings, vectors and another list inside it. A list can also contain a matrix or a function as its elements. List is created using list() function." }, { "code": n...
Contingency Tables, Chi-Squared and Cramer’s V | by Jeffrey Hanif Watson | Towards Data Science
Introduction During the course of a recent project, I had to check a feature for associations (the lack of independence) with multiple other features. For convenience, I wrote a couple of functions to perform, and help interpret, tests for association between these categorical features. In this post, I will demonstrate...
[ { "code": null, "e": 184, "s": 171, "text": "Introduction" }, { "code": null, "e": 573, "s": 184, "text": "During the course of a recent project, I had to check a feature for associations (the lack of independence) with multiple other features. For convenience, I wrote a couple o...
Print Bracket Number in C++
In this problem, we are given expression. And we have to print the bracket number sequence. Let’s look at an example to understand the problem better. Example, Input : ((()())()) Output : 1233442551 Explanation − Here we have encountered 5 bracket pairs and we have printed them in a sequence of their[ occurrence. Now s...
[ { "code": null, "e": 1213, "s": 1062, "text": "In this problem, we are given expression. And we have to print the bracket number sequence. Let’s look at an example to understand the problem better." }, { "code": null, "e": 1222, "s": 1213, "text": "Example," }, { "code": ...
EDA: Feature Engineering and Encoding Categorical Data | by Wesley Neill | Towards Data Science
Last week, we began our series on regression techniques with some exploration of the Ames, Iowa real-estate dataset, using scatterplots and bar plots. These techniques are meant to build basic intuition about patterns in our data. Plotting our data also allows us to sift through and get to know the variables we are wor...
[ { "code": null, "e": 476, "s": 47, "text": "Last week, we began our series on regression techniques with some exploration of the Ames, Iowa real-estate dataset, using scatterplots and bar plots. These techniques are meant to build basic intuition about patterns in our data. Plotting our data also al...
Building an ML application using MLlib in Pyspark | by Yashwanth Madaka | Towards Data Science
Apache Spark is one of the on-demand big data tools which is being used by many companies around the world. Its ability to do In-Memory computation and Parallel-Processing are the main reasons for the popularity of this tool. MLlib is a scalable Machine learning library which is present alongside other services like Sp...
[ { "code": null, "e": 398, "s": 172, "text": "Apache Spark is one of the on-demand big data tools which is being used by many companies around the world. Its ability to do In-Memory computation and Parallel-Processing are the main reasons for the popularity of this tool." }, { "code": null, ...
User defined and custom exceptions in Java
An exception is an issue (run time error) that occurred during the execution of a program. For understanding purpose let us look at it in a different manner. Generally, when you compile a program, if it gets compiled without a .class file will be created, this is the executable file in Java, and every time you execute ...
[ { "code": null, "e": 1220, "s": 1062, "text": "An exception is an issue (run time error) that occurred during the execution of a program. For understanding purpose let us look at it in a different manner." }, { "code": null, "e": 1624, "s": 1220, "text": "Generally, when you comp...
Build a Machine Learning simulation tool with Dash | by Pierre-Louis Bescond | Towards Data Science
You have done it! It all started with a business issue raised by your colleagues and you went through the dark valleys of data consolidation, cleansing, feature engineering, and modeling. Your model’s robustness is checked and you would like to share your findings. However, not everyone is familiar with RMSE, Confusion...
[ { "code": null, "e": 313, "s": 47, "text": "You have done it! It all started with a business issue raised by your colleagues and you went through the dark valleys of data consolidation, cleansing, feature engineering, and modeling. Your model’s robustness is checked and you would like to share your ...
Face landmarks detection with MediaPipe Facemesh | by Benson Ruan | Towards Data Science
Tensorflow.js released the MediaPipe Facemesh model in March, it is a lightweight machine learning pipeline predicting 486 3D facial landmarks to infer the approximate surface geometry of a human face. During the pandemic time, I stay at home and play with this facemesh model. I would like to remind people of the impor...
[ { "code": null, "e": 373, "s": 171, "text": "Tensorflow.js released the MediaPipe Facemesh model in March, it is a lightweight machine learning pipeline predicting 486 3D facial landmarks to infer the approximate surface geometry of a human face." }, { "code": null, "e": 676, "s": 37...
Cognizant GenC Interview Experience 2021 - GeeksforGeeks
15 Mar, 2021 Round 1: Round 1 is an Aptitude round that is on the AMCAT Platform. This round consists of four sections namely. Quantitative Aptitude (24 questions: 35 minutes) Logical Reasoning (25 questions: 35 minutes) Code debugging/Automata Fix (7 questions: 20 minutes) Essay question (1 question: 15 minutes) Essay...
[ { "code": null, "e": 25494, "s": 25466, "text": "\n15 Mar, 2021" }, { "code": null, "e": 25608, "s": 25494, "text": "Round 1: Round 1 is an Aptitude round that is on the AMCAT Platform. This round consists of four sections namely." }, { "code": null, "e": 25657, "...
How to convert File into a Stream in Java?
Let’s say we have a file “input.txt” here in the directory E:/ with the following content: Open a file with Bufferedreader. We have taken the above file here which is located at E: directory; BufferedReader buffReader = Files.newBufferedReader(Paths.get("E:\\input.txt"),StandardCharsets.UTF_8); Now get the stream of li...
[ { "code": null, "e": 1153, "s": 1062, "text": "Let’s say we have a file “input.txt” here in the directory E:/ with the following content:" }, { "code": null, "e": 1254, "s": 1153, "text": "Open a file with Bufferedreader. We have taken the above file here which is located at E: d...
The Anonymous Functions in Python
These functions are called anonymous because they are not declared in the standard manner by using the def keyword. You can use the lambda keyword to create small anonymous functions. Lambda forms can take any number of arguments but return just one value in the form of an expression. They cannot contain commands or mu...
[ { "code": null, "e": 1246, "s": 1062, "text": "These functions are called anonymous because they are not declared in the standard manner by using the def keyword. You can use the lambda keyword to create small anonymous functions." }, { "code": null, "e": 1402, "s": 1246, "text":...
# and ## Operators in C - GeeksforGeeks
03 Dec, 2019 Stringizing operator (#) This operator causes the corresponding actual argument to be enclosed in double quotation marks. The # operator, which is generally called the stringize operator, turns the argument it precedes into a quoted string. For more on pre-processor directives – refer thisExamples : The fo...
[ { "code": null, "e": 24021, "s": 23993, "text": "\n03 Dec, 2019" }, { "code": null, "e": 24046, "s": 24021, "text": "Stringizing operator (#)" }, { "code": null, "e": 24322, "s": 24046, "text": "This operator causes the corresponding actual argument to be encl...
End-to-End Time Series Analysis and Forecasting: a Trio of SARIMAX, LSTM and Prophet (Part 1) | by Bruce Nguyen | Towards Data Science
In collaboration with Alex Le. Part 2: End-to-End Time Series Analysis and Forecasting: a Trio of SARIMAX, LSTM and Prophet (Part 2) | by Son Le | Dec, 2021 | Medium Time series, or series of data points indexed in time order, is a ubiquitous type of data. Economists analyze economies by looking at how they performed i...
[ { "code": null, "e": 202, "s": 171, "text": "In collaboration with Alex Le." }, { "code": null, "e": 337, "s": 202, "text": "Part 2: End-to-End Time Series Analysis and Forecasting: a Trio of SARIMAX, LSTM and Prophet (Part 2) | by Son Le | Dec, 2021 | Medium" }, { "code"...
How to loop through a menu list on a webpage using Selenium?
We can loop through a menu list on a webpage using Selenium webdriver. In a webpage, a list is represented by an ul tag and it consists of elements with li tag. Thus the li tag can be said as the child of ul. First, we have to identify the element with ul tag with any locator, then traverse through its li sub-elements ...
[ { "code": null, "e": 1133, "s": 1062, "text": "We can loop through a menu list on a webpage using Selenium webdriver." }, { "code": null, "e": 1271, "s": 1133, "text": "In a webpage, a list is represented by an ul tag and it consists of elements with li tag. Thus the li tag can b...
How to create default function parameter in PHP? - GeeksforGeeks
15 May, 2020 The default parameter concept comes from C++ style default argument values, same as in PHP you can provide default parameters so that when a parameter is not passed to the function. Then it is still available within the function with a pre-defined value. This function also can be called optional parameter....
[ { "code": null, "e": 32651, "s": 32623, "text": "\n15 May, 2020" }, { "code": null, "e": 32959, "s": 32651, "text": "The default parameter concept comes from C++ style default argument values, same as in PHP you can provide default parameters so that when a parameter is not passe...
Understanding clientHeight, offsetHeight & scrollHeight Properties in CSS
clientHeight gives the measure of the height of an element including the padding. Note that border, margin, and scrollbar height (if renedered) are not included in this. offsetHeight gives the measure of the height of an element including the vertical padding, top and bottom borders. Margin is not including here. scrol...
[ { "code": null, "e": 1232, "s": 1062, "text": "clientHeight gives the measure of the height of an element including the padding. Note that border, margin, and scrollbar height (if renedered) are not included in this." }, { "code": null, "e": 1377, "s": 1232, "text": "offsetHeight...
ReactJS Reactstrap List Component - GeeksforGeeks
30 Jul, 2021 Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. The List component allows the user to display a list. We can use the following approach in ReactJS to use the ReactJS Reactstrap List Component. ...
[ { "code": null, "e": 26667, "s": 26639, "text": "\n30 Jul, 2021" }, { "code": null, "e": 26974, "s": 26667, "text": "Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. T...
How to get the first and last record of the table in MySQL?
To get the first and last record, use UNION. LIMIT is also used to get the number of records you want. Let us first create a table − mysql> create table DemoTable694 ( EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY, EmployeeName varchar(100), EmployeeSalary int ); Query OK, 0 rows affected (0.58 sec) Inser...
[ { "code": null, "e": 1165, "s": 1062, "text": "To get the first and last record, use UNION. LIMIT is also used to get the number of records you want." }, { "code": null, "e": 1195, "s": 1165, "text": "Let us first create a table −" }, { "code": null, "e": 1377, "s...
Ordinal Logistic Regression. An overview and implementation in R | by Akanksha Rawat | Towards Data Science
Can you guess what is the common link in the variables mentioned below: Job satisfaction level — Dissatisfied, Satisfied, Highly Satisfied Performance of an individual — Poor, Fair, Excellent Impact of a regulation on bank’s performance — Positive, Neutral, Negative The variables are not only categorical but they are a...
[ { "code": null, "e": 244, "s": 172, "text": "Can you guess what is the common link in the variables mentioned below:" }, { "code": null, "e": 311, "s": 244, "text": "Job satisfaction level — Dissatisfied, Satisfied, Highly Satisfied" }, { "code": null, "e": 364, "...
Compiler Design - Phases of Compiler
The compilation process is a sequence of various phases. Each phase takes input from its previous stage, has its own representation of source program, and feeds its output to the next phase of the compiler. Let us understand the phases of a compiler. The first phase of scanner works as a text scanner. This phase scans ...
[ { "code": null, "e": 2444, "s": 2193, "text": "The compilation process is a sequence of various phases. Each phase takes input from its previous stage, has its own representation of source program, and feeds its output to the next phase of the compiler. Let us understand the phases of a compiler." ...
How to assign specific colors to specific cells in a Matplotlib table?
To assign specific colors to specific cells in a Matplotlib table, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Make a tuple for columns attribute. Make a list of lists, i.e., list of records. Make a list of lists, i.e., color of each cell. Create a figur...
[ { "code": null, "e": 1163, "s": 1062, "text": "To assign specific colors to specific cells in a Matplotlib table, we can take the following steps −" }, { "code": null, "e": 1239, "s": 1163, "text": "Set the figure size and adjust the padding between and around the subplots." },...
Precedence of postfix ++ and prefix ++ in C/C++ - GeeksforGeeks
15 Jul, 2021 In C/C++, precedence of Prefix ++ (or Prefix –) has same priority than dereference (*) operator, and precedence of Postfix ++ (or Postfix –) is higher than both Prefix ++ and *. If p is a pointer then *p++ is equivalent to *(p++) and ++*p is equivalent to ++(*p) (both Prefix ++ and * are right associative)...
[ { "code": null, "e": 24464, "s": 24436, "text": "\n15 Jul, 2021" }, { "code": null, "e": 24833, "s": 24464, "text": "In C/C++, precedence of Prefix ++ (or Prefix –) has same priority than dereference (*) operator, and precedence of Postfix ++ (or Postfix –) is higher than both Pr...
C++ Program to Represent Graph Using Adjacency Matrix
The adjacency matrix of a graph is a square matrix of size V x V. The V is the number of vertices of the graph G. In this matrix in each side V vertices are marked. If the graph has some edges from i to j vertices, then in the adjacency matrix at ith row and jth column it will be 1 (or some non-zero value for weighted ...
[ { "code": null, "e": 1424, "s": 1062, "text": "The adjacency matrix of a graph is a square matrix of size V x V. The V is the number of vertices of the graph G. In this matrix in each side V vertices are marked. If the graph has some edges from i to j vertices, then in the adjacency matrix at ith ro...
Getting MongoDB results from the previous month
At first, get the current month and subtract by 1 to fetch previous month records. Let us first create a collection with documents − > db.findOneMonthAgoData.insertOne({"CustomerName":"Chris","PurchaseDate":new ISODate("2019-12-26")}); { "acknowledged" : true, "insertedId" : ObjectId("5e04e16c150ee0e76c06a04f") }...
[ { "code": null, "e": 1195, "s": 1062, "text": "At first, get the current month and subtract by 1 to fetch previous month records. Let us first create a collection with documents −" }, { "code": null, "e": 1757, "s": 1195, "text": "> db.findOneMonthAgoData.insertOne({\"CustomerNam...
PHP | ctype_upper() Function
04 Jun, 2018 The ctype_upper() function in PHP used to check each and every character of a given string is in uppercase or not. If the string in upper case then it returns TRUE otherwise returns False. Syntax: ctype_upper (string text) Parameter Used:- $text : The tested string. Return Value:Function returns True if e...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jun, 2018" }, { "code": null, "e": 217, "s": 28, "text": "The ctype_upper() function in PHP used to check each and every character of a given string is in uppercase or not. If the string in upper case then it returns TRUE otherwise r...
Sentiment Classification Using BERT
08 Sep, 2021 BERT stands for Bidirectional Representation for Transformers, was proposed by researchers at Google AI language in 2018. Although the main aim of that was to improve the understanding of the meaning of queries related to Google Search, BERT becomes one of the most important and complete architecture for v...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Sep, 2021" }, { "code": null, "e": 537, "s": 28, "text": "BERT stands for Bidirectional Representation for Transformers, was proposed by researchers at Google AI language in 2018. Although the main aim of that was to improve the unde...
Analysis of Algorithms | Set 4 (Analysis of Loops)
13 Jul, 2022 We have discussed Asymptotic Analysis, Worst, Average and Best Cases and Asymptotic Notations in previous posts. In this post, an analysis of iterative programs with simple examples is discussed. 1) O(1): Time complexity of a function (or set of statements) is considered as O(1) if it doesn’t contain loo...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jul, 2022" }, { "code": null, "e": 250, "s": 52, "text": "We have discussed Asymptotic Analysis, Worst, Average and Best Cases and Asymptotic Notations in previous posts. In this post, an analysis of iterative programs with simple ...
How to create sticky table headers in Chrome ?
03 Jun, 2020 The headers of a table remain fixed at the top of the screen while you scroll down through the table are called the sticky table headers. They are used to help the viewers to know the purpose of data in the columns when the original headers are lost from the view. It eliminates the inconvenience of scrolli...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jun, 2020" }, { "code": null, "e": 477, "s": 28, "text": "The headers of a table remain fixed at the top of the screen while you scroll down through the table are called the sticky table headers. They are used to help the viewers to ...
Map Reduce in Hadoop
04 Apr, 2019 One of the three components of Hadoop is Map Reduce. The first component of Hadoop that is, Hadoop Distributed File System (HDFS) is responsible for storing the file. The second component that is, Map Reduce is responsible for processing the file. Suppose there is a word file containing some text. Let us n...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Apr, 2019" }, { "code": null, "e": 302, "s": 54, "text": "One of the three components of Hadoop is Map Reduce. The first component of Hadoop that is, Hadoop Distributed File System (HDFS) is responsible for storing the file. The sec...
Python – API.user_timeline() in Tweepy
05 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 428, "s": 28, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be twee...
Python unittest – assertIsNot() function
29 Aug, 2020 assertIsNot() in Python is a unittest library function that is used in unit testing to test whether first and second input value don’t evaluate to the same object or not. This function will take three parameters as input and return a boolean value depending upon the assert condition. If both inputs don’t e...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Aug, 2020" }, { "code": null, "e": 417, "s": 28, "text": "assertIsNot() in Python is a unittest library function that is used in unit testing to test whether first and second input value don’t evaluate to the same object or not. This...
Java Program to Find the Determinant of a Matrix
08 Sep, 2021 The Determinant of a Matrix is a real number that can be defined for square matrices only i.e, the number of rows and columns of the matrices must be equal. Moreover, it is helpful in determining the system of the linear equation as well as figuring the inverse of the stated matrix. Procedure to calculate:...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Sep, 2021" }, { "code": null, "e": 336, "s": 52, "text": "The Determinant of a Matrix is a real number that can be defined for square matrices only i.e, the number of rows and columns of the matrices must be equal. Moreover, it is h...
In Java, Can we call the main() method of a class from another class?
14 Feb, 2022 In Java, Can we call the main() method of a class from another class? OR How to call ‘public static void main(String[] args)’ method from our code?These are some questions that usually puzzles a Java programmer. This article aims to provide an answer to these problems in a simple and efficient way.As we kn...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Feb, 2022" }, { "code": null, "e": 1018, "s": 54, "text": "In Java, Can we call the main() method of a class from another class? OR How to call ‘public static void main(String[] args)’ method from our code?These are some questions t...
OpenCV – The Gunnar-Farneback optical flow
29 Nov, 2021 In this article, we will know about Dense Optical Flow by Gunnar FarneBack technique, it was published in a research paper named ‘Two-Frame Motion Estimation Based on Polynomial Expansion’ by Gunnar Farneback in 2003. Prerequisites: OpenCVOptical Flow: Optical flow is known as the pattern of apparent motio...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Nov, 2021" }, { "code": null, "e": 694, "s": 52, "text": "In this article, we will know about Dense Optical Flow by Gunnar FarneBack technique, it was published in a research paper named ‘Two-Frame Motion Estimation Based on Polynom...
GATE | GATE-CS-2014-(Set-1) | Question 65
04 Aug, 2021 Consider a selective repeat sliding window protocol that uses a frame size of 1 KB to send data on a 1.5 Mbps link with a one-way latency of 50 msec. To achieve a link utilization of 60%, the minimum number of bits required to represent the sequence number field is ________.(A) 3(B) 4(C) 5(D) 6Answer: (C)E...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Aug, 2021" }, { "code": null, "e": 371, "s": 52, "text": "Consider a selective repeat sliding window protocol that uses a frame size of 1 KB to send data on a 1.5 Mbps link with a one-way latency of 50 msec. To achieve a link utiliz...
Software Engineering | Halstead’s Software Metrics
05 Aug, 2020 A computer program is an implementation of an algorithm considered to be a collection of tokens which can be classified as either operators or operands. Halstead’s metrics are included in a number of current commercial tools that count software lines of code. By counting the tokens and determining which ar...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Aug, 2020" }, { "code": null, "e": 445, "s": 54, "text": "A computer program is an implementation of an algorithm considered to be a collection of tokens which can be classified as either operators or operands. Halstead’s metrics ar...
Word Break - Part 2 | Practice | GeeksforGeeks
Given a string s and a dictionary of words dict of length n, add spaces in s to construct a sentence where each word is a valid dictionary word. Each dictionary word can be used more than once. Return all such possible sentences. Follow examples for better understanding. Example 1: Input: s = "catsanddog", n = 5 dict ...
[ { "code": null, "e": 468, "s": 238, "text": "Given a string s and a dictionary of words dict of length n, add spaces in s to construct a sentence where each word is a valid dictionary word. Each dictionary word can be used more than once. Return all such possible sentences." }, { "code": nul...
Sum of all the prime divisors of a number
23 May, 2022 Given a number N. The task is to find the sum of all the prime divisors of N. Examples: Input: 60 Output: 10 2, 3, 5 are prime divisors of 60 Input: 39 Output: 16 3, 13 are prime divisors of 39 A naive approach will be to iterate for all numbers till N and check if the number divides N. If the number di...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 May, 2022" }, { "code": null, "e": 133, "s": 54, "text": "Given a number N. The task is to find the sum of all the prime divisors of N. " }, { "code": null, "e": 144, "s": 133, "text": "Examples: " }, { "...
autoconf command in Linux with examples
27 Jan, 2022 autoconf command is used in Linux to generate configuration scripts. Generate a configuration script from a TEMPLATE-FILE if given, or from ‘configure.ac’ if present, or ‘configure.in’. The output is sent to the standard output if TEMPLATE-FILE is given, otherwise, it is sent into ‘configure’. To use autoc...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jan, 2022" }, { "code": null, "e": 398, "s": 28, "text": "autoconf command is used in Linux to generate configuration scripts. Generate a configuration script from a TEMPLATE-FILE if given, or from ‘configure.ac’ if present, or ‘conf...
How to work with Node.js and JSON file ?
29 Sep, 2021 Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. With node.js as backend, the developer can maintain a single codebase for an entire application in javaScript.JSON on the other hand, stands for JavaScript Object Notation. It is a lightweight format for storing and exchanging data.Cre...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Sep, 2021" }, { "code": null, "e": 555, "s": 53, "text": "Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. With node.js as backend, the developer can maintain a single codebase for an entire application in jav...
Python | Pandas Index.get_loc()
17 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 Index.get_loc() function return integer location, slice or boolean mask for requested ...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2018" }, { "code": null, "e": 242, "s": 28, "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 and makes imp...
Find pair with maximum GCD in an array in C++
Suppose we have an array of positive integers. Our task is to find pair of integers from the array, where the GCD value is maximum. Let A = {1, 2, 3, 4, 5}, then the output is 2. The pair (2, 4) has GCD 2, other GCD values are less than 2. To solve this problem, we will maintain a count array to store the count of divi...
[ { "code": null, "e": 1302, "s": 1062, "text": "Suppose we have an array of positive integers. Our task is to find pair of integers from the array, where the GCD value is maximum. Let A = {1, 2, 3, 4, 5}, then the output is 2. The pair (2, 4) has GCD 2, other GCD values are less than 2." }, { ...
C# Program to Convert Fahrenheit to Celsius
Firstly, set the Fahrenheit temperature − double fahrenheit = 97; Console.WriteLine("Fahrenheit: " + fahrenheit); Now convert it into Celsius − celsius = (fahrenheit - 32) * 5 / 9; You can try to run the following code to convert Fahrenheit to Celsius. Live Demo using System; using System.Collections.Generic; using Sys...
[ { "code": null, "e": 1104, "s": 1062, "text": "Firstly, set the Fahrenheit temperature −" }, { "code": null, "e": 1176, "s": 1104, "text": "double fahrenheit = 97;\nConsole.WriteLine(\"Fahrenheit: \" + fahrenheit);" }, { "code": null, "e": 1206, "s": 1176, "te...
Python Pandas - Plot multiple data columns in a DataFrame?
To plot multiple columns, we will be plotting a Bar Graph. Use the plot() method and set the kind parameter to bar for Bar Graph. Let us first import the required libraries − import pandas as pd import matplotlib.pyplot as mp Following is our data with Team Records − data = [["Australia", 2500, 2021],["Bangladesh", 100...
[ { "code": null, "e": 1237, "s": 1062, "text": "To plot multiple columns, we will be plotting a Bar Graph. Use the plot() method and set the kind parameter to bar for Bar Graph. Let us first import the required libraries −" }, { "code": null, "e": 1288, "s": 1237, "text": "import ...
cp - Unix, Linux Command
cp - To copy one or more files to another location. cp [options]... Source Dest cp [options]... Source... Directory By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well. That is the behavior selected by --sparse=auto. Specify --sparse=always to create ...
[ { "code": null, "e": 10629, "s": 10577, "text": "cp - To copy one or more files to another location." }, { "code": null, "e": 10693, "s": 10629, "text": "cp [options]... Source Dest\ncp [options]... Source... Directory" }, { "code": null, "e": 11044, "s": 10693, ...
How to make back button twice to close an activity in Android?
Sometimes we click back button unintentionally, When you click on a back button it will close your application or will go back to another activity. To avoid this problem, This example demonstrates how to make back button twice to close an activity. Step 1 - Create a new project in Android Studio, go to File ⇒ New Proje...
[ { "code": null, "e": 1311, "s": 1062, "text": "Sometimes we click back button unintentionally, When you click on a back button it will close your application or will go back to another activity. To avoid this problem, This example demonstrates how to make back button twice to close an activity." }...
Add new Variables to a Data Frame using Existing Variables in R Programming - mutate() Function - GeeksforGeeks
19 Jun, 2020 mutate() function in R Language is used to add new variables in a data frame which are formed by performing operation on existing variables. Syntax: mutate(x, expr) Parameters:x: Data Frameexpr: operation on variables Example 1: # R program to add new variables# in a data frame # Loading library library(d...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n19 Jun, 2020" }, { "code": null, "e": 25383, "s": 25242, "text": "mutate() function in R Language is used to add new variables in a data frame which are formed by performing operation on existing variables." }, { "code": ...
Find the profit and loss in the given Excel sheet using Pandas - GeeksforGeeks
05 Sep, 2020 In these articles, we will discuss how to extract data from the Excel file and find the profit and loss at the given data. Suppose our Excel file looks like then we have to extract the Selling Price and Cost Price from the column and find the profit and loss and store it into a new DataFrame column. To get...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n05 Sep, 2020" }, { "code": null, "e": 24593, "s": 24292, "text": "In these articles, we will discuss how to extract data from the Excel file and find the profit and loss at the given data. Suppose our Excel file looks like then w...
PL/SQL - Data Types
In this chapter, we will discuss the Data Types in PL/SQL. The PL/SQL variables, constants and parameters must have a valid data type, which specifies a storage format, constraints, and a valid range of values. We will focus on the SCALAR and the LOB data types in this chapter. The other two data types will be covered ...
[ { "code": null, "e": 2404, "s": 2065, "text": "In this chapter, we will discuss the Data Types in PL/SQL. The PL/SQL variables, constants and parameters must have a valid data type, which specifies a storage format, constraints, and a valid range of values. We will focus on the SCALAR and the LOB da...
Check if a graph is Strongly, Unilaterally or Weakly connected - GeeksforGeeks
29 May, 2021 Given an unweighted directed graph G as a path matrix, the task is to find out if the graph is Strongly Connected or Unilaterally Connected or Weakly Connected. Strongly Connected: A graph is said to be strongly connected if every pair of vertices(u, v) in the graph contains a path between each other. In ...
[ { "code": null, "e": 24593, "s": 24565, "text": "\n29 May, 2021" }, { "code": null, "e": 24755, "s": 24593, "text": "Given an unweighted directed graph G as a path matrix, the task is to find out if the graph is Strongly Connected or Unilaterally Connected or Weakly Connected. " ...
Java lang Integer.toHexString() Method with Examples - GeeksforGeeks
05 Dec, 2018 The Java.lang.Integer.toHexString() is a built-in function in Java which returns a string representation of the integer argument as an unsigned integer in base 16. The function accepts a single parameter as an argument in Integer data-type. Syntax : public static String toHexString(int num) Parameter : Th...
[ { "code": null, "e": 24397, "s": 24369, "text": "\n05 Dec, 2018" }, { "code": null, "e": 24638, "s": 24397, "text": "The Java.lang.Integer.toHexString() is a built-in function in Java which returns a string representation of the integer argument as an unsigned integer in base 16....
Build a Motion Heatmap Video Using OpenCV With Python | by Rob | Towards Data Science
1 2 3 4 5 6 7 8 9 10 Powered by Play.ht Create audio with Play.ht Create Audio Narrations with Play.ht OpenCV, or (Open source computer vision) is a library developed by Intel in 1999 mainly aimed at computer vision, and real-time video operations, it is written in C++ but it is supported in different languages, among ...
[ { "code": null, "e": 174, "s": 172, "text": "1" }, { "code": null, "e": 176, "s": 174, "text": "2" }, { "code": null, "e": 178, "s": 176, "text": "3" }, { "code": null, "e": 180, "s": 178, "text": "4" }, { "code": null, "e": 182...
How to read a text file with C++?
This is a C++ program to read a text file. tpoint.txt is having initial content as “Tutorials point.” Tutorials point. Begin Create an object newfile against the class fstream. Call open() method to open a file “tpoint.txt” to perform write operation using object newfile. If file is open then Input a str...
[ { "code": null, "e": 1105, "s": 1062, "text": "This is a C++ program to read a text file." }, { "code": null, "e": 1164, "s": 1105, "text": "tpoint.txt is having initial content as\n“Tutorials point.”" }, { "code": null, "e": 1181, "s": 1164, "text": "Tutorial...
Intellij Idea - Code Refactoring
In this chapter, we will learn about Code Refactoring and how it works in IntelliJ. Code refactoring is restructuring of code without changing its functionality and usability. Code refactoring can be done to improve code readability, performance or to remove unused/duplicate functionality. IntelliJ provides great suppo...
[ { "code": null, "e": 2491, "s": 2089, "text": "In this chapter, we will learn about Code Refactoring and how it works in IntelliJ. Code refactoring is restructuring of code without changing its functionality and usability. Code refactoring can be done to improve code readability, performance or to r...
CSS font-variant-ligatures Property - GeeksforGeeks
18 Sep, 2020 The CSS font-variant-ligatures property is used for controlling ligatures on a text’s font. A ligature is a special character that combines two or more characters into one. Ligatures are commonly used to give certain style or look to the text. Syntax: font-variant-ligatures: Keyword_values Or font-variant...
[ { "code": null, "e": 24600, "s": 24572, "text": "\n18 Sep, 2020" }, { "code": null, "e": 24844, "s": 24600, "text": "The CSS font-variant-ligatures property is used for controlling ligatures on a text’s font. A ligature is a special character that combines two or more characters ...
GraphQL - Mutation
In this chapter, we will learn mutation queries in GraphQL. Mutation queries modify data in the data store and returns a value. It can be used to insert, update, or delete data. Mutations are defined as a part of the schema. The syntax of a mutation query is given below − mutation{ someEditOperation(dataField:"value...
[ { "code": null, "e": 2011, "s": 1951, "text": "In this chapter, we will learn mutation queries in GraphQL." }, { "code": null, "e": 2176, "s": 2011, "text": "Mutation queries modify data in the data store and returns a value. It can be used to insert, update, or delete data. Muta...
How to Update Multiple Records Using One Query in SQL Server? - GeeksforGeeks
19 Nov, 2021 In SQL, sometimes we need to update multiple records in a single query. We will use the UPDATE keyword to achieve this. For this, we use 2 kinds of examples i.e. the first based on only one condition and the second based on multiple conditions. For this article, we will be using the Microsoft SQL Server as...
[ { "code": null, "e": 23970, "s": 23942, "text": "\n19 Nov, 2021" }, { "code": null, "e": 24311, "s": 23970, "text": "In SQL, sometimes we need to update multiple records in a single query. We will use the UPDATE keyword to achieve this. For this, we use 2 kinds of examples i.e. t...
Print all the peaks and troughs in an Array of Integers - GeeksforGeeks
12 May, 2021 Given an array of integers arr[], the task is to print a list of all the peaks and another list of all the troughs present in the array. A peak is an element in the array which is greater than its neighbouring elements. Similarly, a trough is an element that is smaller than its neighbouring elements. Examp...
[ { "code": null, "e": 25156, "s": 25128, "text": "\n12 May, 2021" }, { "code": null, "e": 25458, "s": 25156, "text": "Given an array of integers arr[], the task is to print a list of all the peaks and another list of all the troughs present in the array. A peak is an element in th...
D3.js voronoi() Function - GeeksforGeeks
01 Oct, 2020 The d3.voronoi() function in D3.js is used to create a new Voronoi diagram layout with the default x and y accessors and a null extent. The Voronoi diagram is drawn using a set of data points that can be specified later. Syntax: d3.voronoi() Parameters: This function does not accept any parameters. The ex...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n01 Oct, 2020" }, { "code": null, "e": 25521, "s": 25300, "text": "The d3.voronoi() function in D3.js is used to create a new Voronoi diagram layout with the default x and y accessors and a null extent. The Voronoi diagram is draw...
Data types that supports std::numeric_limits() in C++ - GeeksforGeeks
21 Aug, 2021 The numeric_limits class template provides an easy and standardized way to query various properties of arithmetic types. For example, the maximum value a type T can store is std::numeric_limits<T>::max(). Example: std::numeric_limits<int>::max() gives the maximum possible value we can store in type int. st...
[ { "code": null, "e": 24124, "s": 24096, "text": "\n21 Aug, 2021" }, { "code": null, "e": 24329, "s": 24124, "text": "The numeric_limits class template provides an easy and standardized way to query various properties of arithmetic types. For example, the maximum value a type T ca...
ByteBuffer arrayOffset() method in Java with Examples - GeeksforGeeks
20 Sep, 2018 The arrayOffset() method of java.nio.ByteBuffer class is used to return the offset within the given buffer’s backing array of the first element of the buffer. If this buffer is backed by an array then buffer position p corresponds to array index p + arrayOffset(). Invoke the hasArray method before invoking...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n20 Sep, 2018" }, { "code": null, "e": 24107, "s": 23948, "text": "The arrayOffset() method of java.nio.ByteBuffer class is used to return the offset within the given buffer’s backing array of the first element of the buffer." }...
Insurance Risk Pricing — Tweedie Approach | by Ajay Tiwari | Towards Data Science
Insurance is a unique industry, probably one of the few where a company doesn’t know the actual cost of the product sold, they deal with the risks of unforeseeable events. Therefore, this industry has been relying on mathematics to understand the risk behavior of its customers and prospects for the last few centuries t...
[ { "code": null, "e": 568, "s": 47, "text": "Insurance is a unique industry, probably one of the few where a company doesn’t know the actual cost of the product sold, they deal with the risks of unforeseeable events. Therefore, this industry has been relying on mathematics to understand the risk beha...
Keyword Extraction with BERT | Towards Data Science
When we want to understand key information from specific documents, we typically turn towards keyword extraction. Keyword extraction is the automated process of extracting the words and phrases that are most relevant to an input text. With methods such as Rake and YAKE! we already have easy-to-use packages that can be ...
[ { "code": null, "e": 407, "s": 172, "text": "When we want to understand key information from specific documents, we typically turn towards keyword extraction. Keyword extraction is the automated process of extracting the words and phrases that are most relevant to an input text." }, { "code"...
What is Dynamic Polymorphism in C#?
Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time. Dynamic polymorphism is implemented by abstract classes and virtual functions. The following is an example showing an example of dynamic polymo...
[ { "code": null, "e": 1239, "s": 1062, "text": "Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time." }, { "code": null, "e": 1391, "s": 1239, "text": "Dynam...
Excel Ranges
Range is an important part of Excel because it allows you to work with selections of cells. There are four different operations for selection; Selecting a cell Selecting multiple cells Selecting a column Selecting a row Before having a look at the different operations for selection, we will introduce the Name Box. T...
[ { "code": null, "e": 92, "s": 0, "text": "Range is an important part of Excel because it allows you to work with selections of cells." }, { "code": null, "e": 144, "s": 92, "text": "There are four different operations for selection; " }, { "code": null, "e": 161, ...
How to give dynamic height to UIlabel programmatically in swift?
To give a dynamic height to an UIlabel in swift we can use the frame property of UILabel. We can create a frame using the CGRect which allows us to give different variables like x position, y position, width, and height. Let’s create a label and add it as a subview to our view. let label = UILabel() label.frame = CGRec...
[ { "code": null, "e": 1283, "s": 1062, "text": "To give a dynamic height to an UIlabel in swift we can use the frame property of UILabel. We can create a frame using the CGRect which allows us to give different variables like x position, y position, width, and height." }, { "code": null, ...
Java - Basic Syntax
When we consider a Java program, it can be defined as a collection of objects that communicate via invoking each other's methods. Let us now briefly look into what do class, object, methods, and instance variables mean. Object − Objects have states and behaviors. Example: A dog has states - color, name, breed as well a...
[ { "code": null, "e": 2597, "s": 2377, "text": "When we consider a Java program, it can be defined as a collection of objects that communicate via invoking each other's methods. Let us now briefly look into what do class, object, methods, and instance variables mean." }, { "code": null, "...
Chrono in C++
In this section we will see what is the Chrono library in C++. This Chrono library is used for date and time. Timers and clocks are different in different systems. So if we want to improve time over precision we can use this library. In this library, it provides precision-neutral concept, by separating the durations an...
[ { "code": null, "e": 1296, "s": 1062, "text": "In this section we will see what is the Chrono library in C++. This Chrono library is used for date and time. Timers and clocks are different in different systems. So if we want to improve time over precision we can use this library." }, { "code...
Class getTypeParameters() method in Java with Examples - GeeksforGeeks
27 Jan, 2022 The getTypeParameters() method of java.lang.Class class is used to get the type parameters of this entity. This entity can be a class, an array, an interface, etc. The method returns an array of TypeVariable objects representing the type variables.Syntax: public TypeVariable<Class<T>> getTypeParameters()...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n27 Jan, 2022" }, { "code": null, "e": 25483, "s": 25225, "text": "The getTypeParameters() method of java.lang.Class class is used to get the type parameters of this entity. This entity can be a class, an array, an interface, etc....
Python - turtle.clear() - GeeksforGeeks
17 Aug, 2020 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This function is used to delete the turtle’s drawings from the screen. Do not move state a...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n17 Aug, 2020" }, { "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...
Java program to convert Currency using AWT - GeeksforGeeks
08 May, 2020 Swing is a part of the JFC (Java Foundation Classes). Building Graphical User Interface in Java requires the use of Swings. Swing Framework contains a large set of components which allow a high level of customization and provide rich functionalities, and is used to create window-based applications. Java sw...
[ { "code": null, "e": 25739, "s": 25711, "text": "\n08 May, 2020" }, { "code": null, "e": 26192, "s": 25739, "text": "Swing is a part of the JFC (Java Foundation Classes). Building Graphical User Interface in Java requires the use of Swings. Swing Framework contains a large set of...
Configuration of Router on a stick - GeeksforGeeks
25 Oct, 2021 Prerequisite – Access and trunk portsSwitches divide broadcast domain through VLAN (Virtual LAN). VLAN is a partitioned broadcast domain from a single broadcast domain. Switch doesn’t forward packets across different VLANs by itself. If we want to make these virtual LANs communicate with each other, a conc...
[ { "code": null, "e": 37813, "s": 37785, "text": "\n25 Oct, 2021" }, { "code": null, "e": 38155, "s": 37813, "text": "Prerequisite – Access and trunk portsSwitches divide broadcast domain through VLAN (Virtual LAN). VLAN is a partitioned broadcast domain from a single broadcast do...
Online algorithm for checking palindrome in a stream - GeeksforGeeks
20 Nov, 2018 Given a stream of characters (characters are received one by one), write a function that prints ‘Yes’ if a character makes the complete string palindrome, else prints ‘No’. Examples: Input: str[] = "abcba" Output: a Yes // "a" is palindrome b No // "ab" is not palindrome c No // "ab...
[ { "code": null, "e": 26653, "s": 26625, "text": "\n20 Nov, 2018" }, { "code": null, "e": 26826, "s": 26653, "text": "Given a stream of characters (characters are received one by one), write a function that prints ‘Yes’ if a character makes the complete string palindrome, else pri...
Check whether N is a Factorion or not - GeeksforGeeks
13 Mar, 2022 Given an integer N and the task is to check whether N is a Factorion or not. A Factorion is a number which is equal to the sum of the factorials of its digits.Examples: Input: N = 40585 Output: Yes 4! + 0! + 5! + 8! + 5! = 40585Input: N = 234 Output: No 2! + 3! + 4! = 32 Approach: Create an array fact[...
[ { "code": null, "e": 26041, "s": 26013, "text": "\n13 Mar, 2022" }, { "code": null, "e": 26212, "s": 26041, "text": "Given an integer N and the task is to check whether N is a Factorion or not. A Factorion is a number which is equal to the sum of the factorials of its digits.Exam...
How to Get Centered Content in Bootstrap ? - GeeksforGeeks
24 Apr, 2021 The task is to center content using bootstrap. The approach of this article is to get a Centered Content in Bootstrap by using a simple in-built class .text-center to center align all the inline elements like text, images, links, etc. under a block element i.e <div> or <p> element. Note: This solution onl...
[ { "code": null, "e": 26865, "s": 26837, "text": "\n24 Apr, 2021" }, { "code": null, "e": 27149, "s": 26865, "text": "The task is to center content using bootstrap. The approach of this article is to get a Centered Content in Bootstrap by using a simple in-built class .text-center...
Lodash _.defer() Method - GeeksforGeeks
29 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.defer() method in lodash is used to defer the calling of func parameter until the recent call stack is cleared. Moreover, any further arguments are provided to f...
[ { "code": null, "e": 38681, "s": 38653, "text": "\n29 Sep, 2020" }, { "code": null, "e": 38821, "s": 38681, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc." }, { "code": n...
Print a pattern without using any loop - GeeksforGeeks
11 Sep, 2021 Given a number n, print following a pattern without using any loop. Examples : Input: n = 16 Output: 16, 11, 6, 1, -4, 1, 6, 11, 16 Input: n = 10 Output: 10, 5, 0, 5, 10 We basically first reduce 5 one by one until we reach a negative or 0. After we reach 0 or negative, we one add 5 until we reach n.Sour...
[ { "code": null, "e": 26463, "s": 26435, "text": "\n11 Sep, 2021" }, { "code": null, "e": 26531, "s": 26463, "text": "Given a number n, print following a pattern without using any loop." }, { "code": null, "e": 26543, "s": 26531, "text": "Examples : " }, { ...
Extract every Nth element of a vector in R - GeeksforGeeks
21 Apr, 2021 In this article, we will see how to extract every Nth element from a vector in R Programming Language. Method 1: Using iteration An iteration is performed over the vector while declaring a variable, counter initialized with 0. With each iteration, the counter is incremented and as soon as the nth element i...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n21 Apr, 2021" }, { "code": null, "e": 26590, "s": 26487, "text": "In this article, we will see how to extract every Nth element from a vector in R Programming Language." }, { "code": null, "e": 26616, "s": 26590, ...
How to Apply View Animations Effects in Android? - GeeksforGeeks
27 Mar, 2021 Android View Animations are used to apply amazing animations on TextView and EditText in the android application. Such animations provide the app with a smooth look in a new way. In this article, we are going to develop the Android View Animation effect in Android Studio. In this article, we will develop a...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n27 Mar, 2021" }, { "code": null, "e": 26654, "s": 26381, "text": "Android View Animations are used to apply amazing animations on TextView and EditText in the android application. Such animations provide the app with a smooth loo...
Python Program for Iterative Quick Sort - GeeksforGeeks
30 Dec, 2020 # Python program for implementation of Quicksort # This function is same in both iterative and recursivedef partition(arr,l,h): i = ( l - 1 ) x = arr[h] for j in range(l , h): if arr[j] <= x: # increment index of smaller element i = i+1 arr[i],arr[j]...
[ { "code": null, "e": 26097, "s": 26069, "text": "\n30 Dec, 2020" }, { "code": "# Python program for implementation of Quicksort # This function is same in both iterative and recursivedef partition(arr,l,h): i = ( l - 1 ) x = arr[h] for j in range(l , h): if arr[j] <= x:...
Find the value of P and modular inverse of Q modulo 998244353 - GeeksforGeeks
27 Sep, 2021 Given two integer P and Q, the task is to find the value of P and modular inverse of Q modulo 998244353. That is Note: P and Q are co-prime integersExamples: Input: P = 1, Q = 4Output: 748683265Explanation:Refer below for the explanation of the example. Input: P = 1, Q = 16Output: 935854081 Approa...
[ { "code": null, "e": 26357, "s": 26329, "text": "\n27 Sep, 2021" }, { "code": null, "e": 26471, "s": 26357, "text": "Given two integer P and Q, the task is to find the value of P and modular inverse of Q modulo 998244353. That is " }, { "code": null, "e": 26519, "...
C# | Queue Class - GeeksforGeeks
20 Feb, 2019 Queue represents a first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it is called enqueue, and when you remove an item, it is called dequeue . This class comes under System.Collections namespace and implements ICollec...
[ { "code": null, "e": 24453, "s": 24425, "text": "\n20 Feb, 2019" }, { "code": null, "e": 24806, "s": 24453, "text": "Queue represents a first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it i...
Non-generic Vs Generic Collection in Java - GeeksforGeeks
01 Oct, 2021 We will be discussing differences later prior let us understand what is generic Collection and non-generic Collection, and most importantly dealing with the implementation part as during implementation one can only really get the real understanding of the concept, henceforth the differences between them. G...
[ { "code": null, "e": 26127, "s": 26099, "text": "\n01 Oct, 2021" }, { "code": null, "e": 26433, "s": 26127, "text": "We will be discussing differences later prior let us understand what is generic Collection and non-generic Collection, and most importantly dealing with the implem...
How to create HTML list from JavaScript array ? - GeeksforGeeks
10 Mar, 2021 In this article, we will be creating an HTML list from a JavaScript array. This is needed sometimes when we fetch JSON from any source and displaying the data into the frontend and in many other cases also. Problem statement: Display the array [‘Ram’, ‘Shyam’, ‘Sita’, ‘Gita’ ] into an HTML list. To achiev...
[ { "code": null, "e": 25847, "s": 25819, "text": "\n10 Mar, 2021" }, { "code": null, "e": 26055, "s": 25847, "text": "In this article, we will be creating an HTML list from a JavaScript array. This is needed sometimes when we fetch JSON from any source and displaying the data into...
How to create a sequence of dates by using starting date in R?
The best way to create a sequence of anything is creating it with the help of seq function and this also applies to sequences of dates. But in case of dates, we need to read the dates in date format so that R can understand the input type and create the appropriate vector. If we do not use the date format for the date ...
[ { "code": null, "e": 1447, "s": 1062, "text": "The best way to create a sequence of anything is creating it with the help of seq function and this also applies to sequences of dates. But in case of dates, we need to read the dates in date format so that R can understand the input type and create the...