title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to exclude certain values from randomly generated array JavaScript
We have to create a function that takes in 2 arguments: an integer and an array of integers. First argument denotes the length of array we have to return and the second argument contains the elements that should not be present in our return array. Actually, we need an array of random numbers between 0 to 100 but it sho...
[ { "code": null, "e": 1448, "s": 1062, "text": "We have to create a function that takes in 2 arguments: an integer and an array of integers.\nFirst argument denotes the length of array we have to return and the second argument contains\nthe elements that should not be present in our return array. Act...
Apache Pig - SUBSTRING()
This function returns a substring from the given string. Given below is the syntax of the SUBSTRING() function. This function accepts three parameters one is the column name of the string we want. And the other two are the start and stop indexes of the required substring. grunt> SUBSTRING(string, startIndex, stopIndex)...
[ { "code": null, "e": 2741, "s": 2684, "text": "This function returns a substring from the given string." }, { "code": null, "e": 2957, "s": 2741, "text": "Given below is the syntax of the SUBSTRING() function. This function accepts three parameters one is the column name of the s...
C# Break and Continue
You have already seen the break statement used in an earlier chapter of this tutorial. It was used to "jump out" of a switch statement. The break statement can also be used to jump out of a loop. This example jumps out of the loop when i is equal to 4: for (int i = 0; i < 10; i++) { if (i == 4) { break; } ...
[ { "code": null, "e": 136, "s": 0, "text": "You have already seen the break statement used in an earlier chapter of this tutorial. It was used to \"jump out\" of a switch statement." }, { "code": null, "e": 197, "s": 136, "text": "The break statement can also be used to jump out o...
Statistics is the Grammar of Data Science — Part 1/5 | by Semi Koen | Towards Data Science
Karl Pearson, a British mathematician and arguably the father of modern Statistics, is credited with the quote: “Statistics is the grammar of Science” Here, we are just going to focus on the statistics related to Data Science — see what I’ve done there? 😄 Machine Learning libraries like Tensorflow or scikit-learn hide...
[ { "code": null, "e": 284, "s": 172, "text": "Karl Pearson, a British mathematician and arguably the father of modern Statistics, is credited with the quote:" }, { "code": null, "e": 323, "s": 284, "text": "“Statistics is the grammar of Science”" }, { "code": null, "e"...
What are generic delegates in C#?
Using generic delegates, you do not need to define the delegate statement. They are defined in the System namespace. You can define a generic delegate with type parameters. For example − delegate T myDelegete<T>(T n); The following is an example showing how to create generic delegates in C# − using System; using System...
[ { "code": null, "e": 1179, "s": 1062, "text": "Using generic delegates, you do not need to define the delegate statement. They are defined in the System namespace." }, { "code": null, "e": 1249, "s": 1179, "text": "You can define a generic delegate with type parameters. For examp...
Apache Oozie - Workflow
Workflow in Oozie is a sequence of actions arranged in a control dependency DAG (Direct Acyclic Graph). The actions are in controlled dependency as the next action can only run as per the output of current action. Subsequent actions are dependent on its previous action. A workflow action can be a Hive action, Pig actio...
[ { "code": null, "e": 2213, "s": 1775, "text": "Workflow in Oozie is a sequence of actions arranged in a control dependency DAG (Direct Acyclic Graph). The actions are in controlled dependency as the next action can only run as per the output of current action. Subsequent actions are dependent on its...
Indent the first line of a paragraph in CSS
Use the text-indent property to indent the first line of a paragraph. Possible values are % or a number specifying indent space. You can try to run the following code to indent the first line: <html> <head> </head> <body> <p style = "text-indent:2cm;"> This text will have first line indented by ...
[ { "code": null, "e": 1316, "s": 1187, "text": "Use the text-indent property to indent the first line of a paragraph. Possible values are % or a number specifying indent space." }, { "code": null, "e": 1380, "s": 1316, "text": "You can try to run the following code to indent the f...
How to Create Loading Blur Text Animation Effect using HTML and CSS ?
27 Apr, 2020 The blur text animation is known as the Smoky effect and it is used to give our text a blurry animation. The text blurs linearly in one direction and then reappears. Approach: The approach of this article is quite simple. We are animating the blur effect using the blur() function. Then we are using n-th ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2020" }, { "code": null, "e": 194, "s": 28, "text": "The blur text animation is known as the Smoky effect and it is used to give our text a blurry animation. The text blurs linearly in one direction and then reappears." }, {...
SAP Placement Questions
17 May, 2021 L: Means turn Right . R: Means turn Left. Numbers represent the distance traveled in a particular direction in meters. ( If Alice is initially facing north, and is given the instruction, 3L4L5R2L3R3R2R4R3L1L3R4R2R3R), which direction would she face and how much distance would she cover?ans : 42m,north—————...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 May, 2021" }, { "code": null, "e": 509, "s": 54, "text": "L: Means turn Right . R: Means turn Left. Numbers represent the distance traveled in a particular direction in meters. ( If Alice is initially facing north, and is given the ...
Hyperplane, Subspace and Halfspace
03 Jul, 2020 1. Hyperplane :Geometrically, a hyperplane is a geometric entity whose dimension is one less than that of its ambient space. What does it mean? It means the following. For example, if you take the 3D space then hyperplane is a geometric entity that is 1 dimensionless. So it’s going to be 2 dimensions and a...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jul, 2020" }, { "code": null, "e": 153, "s": 28, "text": "1. Hyperplane :Geometrically, a hyperplane is a geometric entity whose dimension is one less than that of its ambient space." }, { "code": null, "e": 522, "s":...
K-th ancestor of a node in Binary Tree
22 Mar, 2022 Given a binary tree in which nodes are numbered from 1 to n. Given a node and a positive integer K. We have to print the K-th ancestor of the given node in the binary tree. If there does not exist any such ancestor then print -1.For example in the below given binary tree, 2nd ancestor of node 4 and 5 is 1....
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Mar, 2022" }, { "code": null, "e": 399, "s": 54, "text": "Given a binary tree in which nodes are numbered from 1 to n. Given a node and a positive integer K. We have to print the K-th ancestor of the given node in the binary tree. I...
Python | os.path.join() method
31 May, 2021 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. os.path module is sub-module of OS module in Python used for common pathname manipulatio...
[ { "code": null, "e": 53, "s": 25, "text": "\n31 May, 2021" }, { "code": null, "e": 853, "s": 53, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usi...
Python | Decimal step range in list
03 Oct, 2019 Sometimes, while working with Python list we can have a problem in which we require to populate the list in a range of decimal. Integral ranges are easier to handle using inbuilt constructs, but having a decimal value to provide to range value doesn’t work. Let’s discuss a way in which this problem can be ...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Oct, 2019" }, { "code": null, "e": 343, "s": 28, "text": "Sometimes, while working with Python list we can have a problem in which we require to populate the list in a range of decimal. Integral ranges are easier to handle using inbu...
How to calculate multiplication and division of two numbers using JavaScript ?
31 Mar, 2021 An arithmetic operation operates on two numbers and numbers are called operands. Multiplication The multiplication operator (*) multiplies two or more numbers. Example: var a =1 5; var b = 12; var c = a × b; Approach: Create the html form to take input from user to perform multiplication operation. Add j...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Mar, 2021" }, { "code": null, "e": 110, "s": 28, "text": "An arithmetic operation operates on two numbers and numbers are called operands. " }, { "code": null, "e": 189, "s": 110, "text": "Multiplication The multi...
Iterating over rows and columns in Pandas DataFrame
29 Sep, 2021 Iteration is a general term for taking each item of something, one after another. Pandas DataFrame consists of rows and columns so, in order to iterate over dataframe, we have to iterate a dataframe like a dictionary. In a dictionary, we iterate over the keys of the object in the same way we have to iterat...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Sep, 2021" }, { "code": null, "e": 375, "s": 52, "text": "Iteration is a general term for taking each item of something, one after another. Pandas DataFrame consists of rows and columns so, in order to iterate over dataframe, we hav...
How to execute jQuery Code ?
01 Aug, 2021 jQuery is an open-source feature-rich Javascript library that is designed for the simplification of HTML DOM Tree traversal & manipulation, event-handling & CSS animation. It is quite popular for its features like light-weight, fast, small, etc, that make it easier to use. The purpose of using jQuery is to...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Aug, 2021" }, { "code": null, "e": 604, "s": 28, "text": "jQuery is an open-source feature-rich Javascript library that is designed for the simplification of HTML DOM Tree traversal & manipulation, event-handling & CSS animation. It ...
Placeholder vs Value Attributes in HTML
12 Aug, 2021 Placeholder Attribute:The placeholder attribute specifies a short hint that describes the expected value of an input field/textarea. The short hint is revealed in the field before the user enters a value. It is just a temporary hint and has nothing to do with logical executions in the backend. Syntax: <inp...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Aug, 2021" }, { "code": null, "e": 323, "s": 28, "text": "Placeholder Attribute:The placeholder attribute specifies a short hint that describes the expected value of an input field/textarea. The short hint is revealed in the field be...
Multiline comments in Python
27 Dec, 2019 Python developers often make use of the comment system as, without the use of it, things can get real confusing, real fast. Comments are useful information that the developers provide to make the reader understand the source code. It explains the logic or a part of it used in the code. Comments are usually...
[ { "code": null, "e": 53, "s": 25, "text": "\n27 Dec, 2019" }, { "code": null, "e": 636, "s": 53, "text": "Python developers often make use of the comment system as, without the use of it, things can get real confusing, real fast. Comments are useful information that the developer...
How can I execute JavaScript at the command prompt?
Java SE 8 came with a new engine called Nashorn, which is based on JSR 292. It provides compliance with the ECMA normalized JavaScript. You can run JavaScript programs from the command line using Nashorn. Include a command-line tool called jjs. The bin folder of a JDK installation has it, with other tools like jar. Her...
[ { "code": null, "e": 1323, "s": 1187, "text": "Java SE 8 came with a new engine called Nashorn, which is based on JSR 292. It provides compliance with the ECMA normalized JavaScript." }, { "code": null, "e": 1504, "s": 1323, "text": "You can run JavaScript programs from the comma...
GATE | GATE CS 1999 | Question 9
04 Feb, 2020 Listed below are some operating system abstractions (in the left column) and the hardware components or mechanism (in the right column) that they are abstractions of. Which of the following matching of pairs is correct? A. Thread 1. Interrupt B. Virtual address space 2. Memory C....
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Feb, 2020" }, { "code": null, "e": 248, "s": 28, "text": "Listed below are some operating system abstractions (in the left column) and the hardware components or mechanism (in the right column) that they are abstractions of. Which of...
How to Install Java JDK11 on AWS EC2?
16 Dec, 2021 AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual computer o...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Dec, 2021" }, { "code": null, "e": 486, "s": 54, "text": "AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Comput...
How to use strconv.Itoa() Function in Golang?
03 May, 2020 Go language provides inbuilt support to implement conversions to and from string representations of basic data types by strconv Package. This package provides an Itoa() function which is equivalent to FormatInt(int64(x), 10). Or in other words, Itoa() function returns the string representation of x when th...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 May, 2020" }, { "code": null, "e": 459, "s": 28, "text": "Go language provides inbuilt support to implement conversions to and from string representations of basic data types by strconv Package. This package provides an Itoa() functi...
How to compile a Typescript file ?
30 Aug, 2021 TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows JavaScript syntactically but adds more features to it. Typescript is a superset of javascript but it is a strongly typed, object-oriented programming language. Typescript file does not run dir...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Aug, 2021" }, { "code": null, "e": 827, "s": 28, "text": "TypeScript is an open-source programming language. It is developed and maintained by Microsoft. TypeScript follows JavaScript syntactically but adds more features to it. Types...
turtle.xcor() function in Python
21 Jul, 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 return the turtle’s x coordinate of the current position of turtl...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jul, 2020" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a ver...
Python program to find day of the week for a given date
26 Jul, 2021 Write a Python program to find the day of the week for any particular date in the past or future. Let the input be in the format “dd mm yyyy”.Examples: Input : 03 02 1997 Output : Monday Input : 31 01 2019 Output : Thursday The already discussed approach to find the day of the week for a given date is ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2021" }, { "code": null, "e": 182, "s": 28, "text": "Write a Python program to find the day of the week for any particular date in the past or future. Let the input be in the format “dd mm yyyy”.Examples: " }, { "code":...
PyQt5 | How to set percentage indicator in middle of Progress Bar ? - GeeksforGeeks
22 Apr, 2020 In this article we will see how to set the percentage indicator inside the progress bar. When we create a progress bar the percentage indicator is by default is at right hand side of the progress bar i.e outside the progress bar. Below is how normal percentage indicator looks like vs how it look inside it....
[ { "code": null, "e": 24212, "s": 24184, "text": "\n22 Apr, 2020" }, { "code": null, "e": 24442, "s": 24212, "text": "In this article we will see how to set the percentage indicator inside the progress bar. When we create a progress bar the percentage indicator is by default is at...
p5.js | remove() Function - GeeksforGeeks
20 Aug, 2019 The remove() function is an inbuilt function which is used to remove the element and deregister all listeners. This function requires p5.dom library. So add the following line in the head section of the index.html file. <script language="javascript" type="text/javascript" src="path/to/p5.dom.js"></scrip...
[ { "code": null, "e": 43301, "s": 43273, "text": "\n20 Aug, 2019" }, { "code": null, "e": 43412, "s": 43301, "text": "The remove() function is an inbuilt function which is used to remove the element and deregister all listeners." }, { "code": null, "e": 43521, "s":...
7 Hyperparameter Optimization Techniques Every Data Scientist Should Know | by Satyam Kumar | Towards Data Science
Selecting the right machine learning model and the corresponding correct set of hyperparameters is essential to train a robust machine learning model. The performance of the machine learning model improves with hyperparameter tuning. Hyperparameters refer to the parameters that the model cannot learn and need to be pro...
[ { "code": null, "e": 406, "s": 172, "text": "Selecting the right machine learning model and the corresponding correct set of hyperparameters is essential to train a robust machine learning model. The performance of the machine learning model improves with hyperparameter tuning." }, { "code":...
Find the two numbers with odd occurrences in an unsorted array - GeeksforGeeks
14 Feb, 2022 Given an unsorted array that contains even number of occurrences for all numbers except two numbers. Find the two numbers which have odd occurrences in O(n) time complexity and O(1) extra space. Examples: Input: {12, 23, 34, 12, 12, 23, 12, 45} Output: 34 and 45 Input: {4, 4, 100, 5000, 4, 4, 4, 4, 100, ...
[ { "code": null, "e": 24493, "s": 24465, "text": "\n14 Feb, 2022" }, { "code": null, "e": 24688, "s": 24493, "text": "Given an unsorted array that contains even number of occurrences for all numbers except two numbers. Find the two numbers which have odd occurrences in O(n) time c...
JavaScript Function Call - GeeksforGeeks
15 Nov, 2021 The Function call is a predefined javascript method, which is used to write methods for different objects. It calls the method, taking the owner object as an argument. The keyword this refers to the “owner” of the function or the object it belongs to. All the functions in javascript are considered as objec...
[ { "code": null, "e": 24453, "s": 24425, "text": "\n15 Nov, 2021" }, { "code": null, "e": 24878, "s": 24453, "text": "The Function call is a predefined javascript method, which is used to write methods for different objects. It calls the method, taking the owner object as an argum...
Difference between Where and Group By - GeeksforGeeks
04 May, 2020 Prerequisite – WHERE Clause, GROUP BY, Having vs Where ClauseWhere and Group By clauses are used to filter rows returned by the query based on the condition. The differences are as following below. WHERE clause specifies search conditions for the rows returned by the Query and limits rows to a specific row...
[ { "code": null, "e": 24224, "s": 24196, "text": "\n04 May, 2020" }, { "code": null, "e": 24422, "s": 24224, "text": "Prerequisite – WHERE Clause, GROUP BY, Having vs Where ClauseWhere and Group By clauses are used to filter rows returned by the query based on the condition. The d...
AngularJS | filter Filter - GeeksforGeeks
17 Jun, 2019 The “filter” Filter in AngularJS is used to filter the array and object elements and return the filtered items. In other words, this filter selects a subset (a smaller array containing elements that meet the filter criteria) of an array from the original array. Syntax: {{ arrayexpression | filter : express...
[ { "code": null, "e": 28191, "s": 28163, "text": "\n17 Jun, 2019" }, { "code": null, "e": 28453, "s": 28191, "text": "The “filter” Filter in AngularJS is used to filter the array and object elements and return the filtered items. In other words, this filter selects a subset (a sma...
TypeScript - Operators
An operator defines some function that will be performed on the data. The data on which operators work are called operands. Consider the following expression − 7 + 5 = 12 Here, the values 7, 5, and 12 are operands, while + and = are operators. The major operators in TypeScript can be classified as − Arithmetic operator...
[ { "code": null, "e": 2342, "s": 2182, "text": "An operator defines some function that will be performed on the data. The data on which operators work are called operands. Consider the following expression −" }, { "code": null, "e": 2353, "s": 2342, "text": "7 + 5 = 12" }, { ...
C# Program for Longest Palindromic Subsequence | DP-12
13 Aug, 2021 Given a sequence, find the length of the longest palindromic subsequence in it. As another example, if the given sequence is “BBABCBCAB”, then the output should be 7 as “BABCBAB” is the longest palindromic subsequence in it. “BBBBB” and “BBCBB” are also palindromic subsequences of the given sequence, but n...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Aug, 2021" }, { "code": null, "e": 108, "s": 28, "text": "Given a sequence, find the length of the longest palindromic subsequence in it." }, { "code": null, "e": 357, "s": 108, "text": "As another example, if the...
Subtraction in the Array
13 Jun, 2022 Given an integer k and an array arr[], the task is to repeat the following operation exactly k times: Find the minimum non-zero element in the array, print it and then subtract this number from all the non-zero elements of the array. If all the elements of the array are < 0, just print 0.Examples: Input:...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 355, "s": 54, "text": "Given an integer k and an array arr[], the task is to repeat the following operation exactly k times: Find the minimum non-zero element in the array, print it and then subtra...
Check if all elements of the given array can be made 0 by decrementing value in pairs
19 Jan, 2022 Given an array arr[] consisting of positive integers, the task is to check if all elements of the given array can be made 0 by performing the following operation: Choose two indices i and j such that i != j and subtract 1 from both arr[i] and arr[j] The above operation can be performed any number of time...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jan, 2022" }, { "code": null, "e": 193, "s": 28, "text": "Given an array arr[] consisting of positive integers, the task is to check if all elements of the given array can be made 0 by performing the following operation: " }, { ...
How to Create an Accessibility Service in Android with Example?
26 Oct, 2021 Accessibility service is like a magic wand provided by the Android Framework. Although the sole purpose of the Accessibility service is to provide differently-abled an ease to access to their device, it can also be used to implement some functionalities that can help any user in his day-to-day phone usage....
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Oct, 2021" }, { "code": null, "e": 497, "s": 52, "text": "Accessibility service is like a magic wand provided by the Android Framework. Although the sole purpose of the Accessibility service is to provide differently-abled an ease t...
Python Program for Efficient program to print all prime factors of a given number
30 Nov, 2018 Given a number n, write an efficient function to print all prime factors of n. For example, if the input number is 12, then output should be “2 2 3”. And if the input number is 315, then output should be “3 3 5 7”.Following are the steps to find all prime factors.1) While n is divisible by 2, print 2 and d...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Nov, 2018" }, { "code": null, "e": 660, "s": 53, "text": "Given a number n, write an efficient function to print all prime factors of n. For example, if the input number is 12, then output should be “2 2 3”. And if the input number ...
The SQL SELECT Statement
SQL is a comprehensive database language. SQL, pronounced Sequel or simply S-Q-L, is a computer programming language used for querying relational databases following a nonprocedural approach. When you extract information from a database using SQL, this is termed querying the database. A relational database is implemen...
[ { "code": null, "e": 2883, "s": 2597, "text": "SQL is a comprehensive database language. SQL, pronounced Sequel or simply S-Q-L, is a computer programming language used for querying relational databases following a nonprocedural approach. When you extract information from a database using SQL, this ...
What is Python commit() method in MySQL?
The commit() method is one among the various methods in Python which is used to make the database transactions. Here, we will discuss about the commit() method. The commit() method is used to confirm the changes made by the user to the database. Whenever any change is made to the database using update or any other stat...
[ { "code": null, "e": 1299, "s": 1187, "text": "The commit() method is one among the various methods in Python which is used to make the database transactions." }, { "code": null, "e": 1704, "s": 1299, "text": "Here, we will discuss about the commit() method. The commit() method i...
VBScript - Variables
A variable is a named memory location used to hold a value that can be changed during the script execution. VBScript has only ONE fundamental data type, Variant. Rules for Declaring Variables − Variable Name must begin with an alphabet. Variable Name must begin with an alphabet. Variable names cannot exceed 255 charact...
[ { "code": null, "e": 2376, "s": 2214, "text": "A variable is a named memory location used to hold a value that can be changed during the script execution. VBScript has only ONE fundamental data type, Variant." }, { "code": null, "e": 2408, "s": 2376, "text": "Rules for Declaring ...
Spring Boot – REST Example
09 Dec, 2021 We all know in today’s world, most web app follows the client-server architecture. The app itself is the client or frontend part under the hood it needs to call the server or the backend to get or save the data this communication happens using HTTP protocol the same protocol is the power of the web. On th...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Dec, 2021" }, { "code": null, "e": 523, "s": 54, "text": "We all know in today’s world, most web app follows the client-server architecture. The app itself is the client or frontend part under the hood it needs to call the server or...
How to convert more than one column in R data frame to from integer to numeric in a single line code?
To convert columns of an R data frame from integer to numeric we can use lapply function. For example, if we have a data frame df that contains all integer columns then we can use the code lapply(df,as.numeric) to convert all of the columns data type into numeric data type. Consider the below data frame − Live Demo se...
[ { "code": null, "e": 1462, "s": 1187, "text": "To convert columns of an R data frame from integer to numeric we can use lapply function. For example, if we have a data frame df that contains all integer columns then we can use the code lapply(df,as.numeric) to convert all of the columns data type in...
DAX Filter - CROSSFILTER function
Specifies the cross-filtering direction to be used in a calculation for a relationship that exists between two columns. DAX CROSSFILTER function is new in Excel 2016. CROSSFILTER (<columnName1>, <columnName2>, <direction>) columnName1 The name of a column, fully qualified, that usually represents the many side or dat...
[ { "code": null, "e": 2255, "s": 2135, "text": "Specifies the cross-filtering direction to be used in a calculation for a relationship that exists between two columns." }, { "code": null, "e": 2302, "s": 2255, "text": "DAX CROSSFILTER function is new in Excel 2016." }, { "...
How to do compression with Gzip in Node.js ?
28 Apr, 2021 The following approach covers how to do compression with Gzip compression in Node.js. We can use the compression module in order to do compression with Gzip compression. Gzip is the most widely used compression, especially for server and client interactions. Compression helps in decreasing the amount of do...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Apr, 2021" }, { "code": null, "e": 287, "s": 28, "text": "The following approach covers how to do compression with Gzip compression in Node.js. We can use the compression module in order to do compression with Gzip compression. Gzip ...
JavaFX | ChoiceDialog
19 Apr, 2021 ChoiceDialog is part of JavaFX framework. ChoiceDialog is a dialog that gives the user a set of options from which the user can select at most one option. The Choice class is the derived class of the base class Dialog.Constructor for the class are: ChoiceDialog(): creates an empty choice dialog with no i...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2021" }, { "code": null, "e": 279, "s": 28, "text": "ChoiceDialog is part of JavaFX framework. ChoiceDialog is a dialog that gives the user a set of options from which the user can select at most one option. The Choice class is ...
How to pass objects to functions in C++ Program?
There are four ways of passing objects to functions. Let's assume you have a class X and want to pass it to a function fun, then This creates a shallow local copy of the object in the function scope. Things you modify here won't be reflected in the object passed to it. For example, void fun(X x); X x; fun(x); This pass...
[ { "code": null, "e": 1316, "s": 1187, "text": "There are four ways of passing objects to functions. Let's assume you have a class X and want to pass it to a function fun, then" }, { "code": null, "e": 1470, "s": 1316, "text": "This creates a shallow local copy of the object in th...
Vue.js v-cloak Directive
07 Jun, 2022 The v-cloak directive is a Vue.js directive that will remain on the element until the associated Vue instance finishes compilation. Combined with CSS rules such as [v-cloak] { display: none }, this directive can be used to hide uncompiled mustache bindings until the Vue instance is ready. First, we will cr...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jun, 2022" }, { "code": null, "e": 423, "s": 28, "text": "The v-cloak directive is a Vue.js directive that will remain on the element until the associated Vue instance finishes compilation. Combined with CSS rules such as [v-cloak] {...
How to create and fill a new column in an already created MySQL table?
Let us first create a table − mysql> create table DemoTable -> ( -> Value1 int, -> Value2 int -> ); Query OK, 0 rows affected (0.77 sec) Insert some records in the table using insert command − mysql> insert into DemoTable values(10,10); Query OK, 1 row affected (0.19 sec) mysql> insert into DemoTable value...
[ { "code": null, "e": 1217, "s": 1187, "text": "Let us first create a table −" }, { "code": null, "e": 1336, "s": 1217, "text": "mysql> create table DemoTable\n -> (\n -> Value1 int,\n -> Value2 int\n -> );\nQuery OK, 0 rows affected (0.77 sec)" }, { "code": null, ...
How to Install and Add Data to Realm Database in Android?
09 Nov, 2021 Realm Database is a service which is provided by MongoDb which is used to store data in users device locally. With the help of this data can be stored easily in users’ devices and can be accessed easily. We can use this database to store data in the user’s device itself. This is a series of 4 articles in w...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Nov, 2021" }, { "code": null, "e": 519, "s": 28, "text": "Realm Database is a service which is provided by MongoDb which is used to store data in users device locally. With the help of this data can be stored easily in users’ devices...
How to compile and run the C++ program?
Once you've got your compiler and source program ready, it is very easy to compile and run a C++ program. Assuming that you've installed GCC compiler, and you have a source.cpp file that you want to compile, follow the following instructions to compile and run it. Step 1 − Open a new terminal window or cmd if you are o...
[ { "code": null, "e": 1327, "s": 1062, "text": "Once you've got your compiler and source program ready, it is very easy to compile and run a C++ program. Assuming that you've installed GCC compiler, and you have a source.cpp file that you want to compile, follow the following instructions to compile ...
How to add line border to JLabel in Java?
Use the createLineBorder() method to ad line border to JLabel − Border border = BorderFactory.createLineBorder(Color.ORANGE); label.setBorder(border); Above, we have set the line border to color orange. The following is an example to add line border to JLabel − package my; import java.awt.Color; import java.awt.Font; i...
[ { "code": null, "e": 1126, "s": 1062, "text": "Use the createLineBorder() method to ad line border to JLabel −" }, { "code": null, "e": 1213, "s": 1126, "text": "Border border = BorderFactory.createLineBorder(Color.ORANGE);\nlabel.setBorder(border);" }, { "code": null, ...
2048 Game in Python - GeeksforGeeks
21 Feb, 2022 In this article we will look python code and logic to design a 2048 game you have played very often in your smartphone. If you are not familiar with the game, it is highly recommended to first play the game so that you can understand the basic functioning of it. How to play 2048 : 1. There is a 4*4 grid wh...
[ { "code": null, "e": 23925, "s": 23897, "text": "\n21 Feb, 2022" }, { "code": null, "e": 24188, "s": 23925, "text": "In this article we will look python code and logic to design a 2048 game you have played very often in your smartphone. If you are not familiar with the game, it i...
Logistic Regression from Scratch with NumPy | by Levent Baş | Towards Data Science
Welcome to another post of implementing machine learning algorithms! Today, the algorithm we will be implementing from scratch is Logistic Regression. Alongside its beloved sister algorithm linear regression, this one is highly used in machine learning as well, due to its simplicity and robustness. Even though its call...
[ { "code": null, "e": 619, "s": 171, "text": "Welcome to another post of implementing machine learning algorithms! Today, the algorithm we will be implementing from scratch is Logistic Regression. Alongside its beloved sister algorithm linear regression, this one is highly used in machine learning as...
How can I validate EditText input in Android using Kotlin?
This example demonstrates how to validate EditText input 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"?> <Rela...
[ { "code": null, "e": 1144, "s": 1062, "text": "This example demonstrates how to validate EditText input in Android using Kotlin." }, { "code": null, "e": 1273, "s": 1144, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required deta...
Linear regression and gradient descent for absolute beginners | by Lily Chen | Towards Data Science
Let’s say we have a fictional dataset of pairs of variables, a mother and her daughter’s heights: Given a new mother height, 63, how do we predict* her daughter’s height? The way you do it is by linear regression. First, you find the line of best fit. Then you use that line for your prediction*. *Note: I used “predict/...
[ { "code": null, "e": 270, "s": 172, "text": "Let’s say we have a fictional dataset of pairs of variables, a mother and her daughter’s heights:" }, { "code": null, "e": 343, "s": 270, "text": "Given a new mother height, 63, how do we predict* her daughter’s height?" }, { "...
5 Hidden Features in JupyterLab You Should Start Using | by Roman Orac | Towards Data Science
If you work as a Data Scientist, you probably also spend the majority of your workday analyzing data in JupyterLab. So it makes it a good time investment to learn a few built-in JupyterLab features that will simplify your analysis workflow. In case you’ve missed my other articles about JupyterLab: romanorac.medium.com ...
[ { "code": null, "e": 413, "s": 172, "text": "If you work as a Data Scientist, you probably also spend the majority of your workday analyzing data in JupyterLab. So it makes it a good time investment to learn a few built-in JupyterLab features that will simplify your analysis workflow." }, { ...
Ruby | String end_with? Method - GeeksforGeeks
12 Dec, 2019 end_with? is a String class method in Ruby which is used to check if the specified string ends with one of the suffixes given or not. Syntax: str.end_with? Parameters: Here, str is the given string. Returns: true if it matches otherwise return false. Example 1: # Ruby program to demonstrate # the end_with?...
[ { "code": null, "e": 25217, "s": 25189, "text": "\n12 Dec, 2019" }, { "code": null, "e": 25351, "s": 25217, "text": "end_with? is a String class method in Ruby which is used to check if the specified string ends with one of the suffixes given or not." }, { "code": null, ...
k-nearest neighbor algorithm in Python - GeeksforGeeks
08 Aug, 2021 Supervised Learning : It is the learning where the value or result that we want to predict is within the training data (labeled data) and the value which is in data that we want to study is known as Target or Dependent Variable or Response Variable. All the other columns in the dataset are known as the Fe...
[ { "code": null, "e": 25648, "s": 25620, "text": "\n08 Aug, 2021" }, { "code": null, "e": 25898, "s": 25648, "text": "Supervised Learning : It is the learning where the value or result that we want to predict is within the training data (labeled data) and the value which is in dat...
6 Types of Anti Patterns to Avoid in Software Development - GeeksforGeeks
15 Jan, 2021 This blog is for all those developers who started hiding their faces in front of senior engineers when they were caught red-handed because of the mess they created in the codebase. It generated a lot of bugs in the production environment and the whole software becomes a nightmare for the other developers t...
[ { "code": null, "e": 26297, "s": 26269, "text": "\n15 Jan, 2021" }, { "code": null, "e": 26615, "s": 26297, "text": "This blog is for all those developers who started hiding their faces in front of senior engineers when they were caught red-handed because of the mess they created...
lsmod command in Linux with Examples - GeeksforGeeks
23 May, 2019 lsmod command is used to display the status of modules in the Linux kernel. It results in a list of loaded modules. lsmod is a trivial program which nicely formats the contents of the /proc/modules, showing what kernel modules are currently loaded. Syntax: lsmod Example: Run lsmod at the command line to li...
[ { "code": null, "e": 26079, "s": 26051, "text": "\n23 May, 2019" }, { "code": null, "e": 26328, "s": 26079, "text": "lsmod command is used to display the status of modules in the Linux kernel. It results in a list of loaded modules. lsmod is a trivial program which nicely formats...
std::partition in C++ STL - GeeksforGeeks
10 Dec, 2021 C++ has a class in its STL algorithms library which allows us easy partition algorithms using certain inbuilt functions. Partition refers to act of dividing elements of containers depending upon a given condition. Partition operations :1. partition(beg, end, condition) :- This function is used to partition...
[ { "code": null, "e": 25677, "s": 25649, "text": "\n10 Dec, 2021" }, { "code": null, "e": 26172, "s": 25677, "text": "C++ has a class in its STL algorithms library which allows us easy partition algorithms using certain inbuilt functions. Partition refers to act of dividing elemen...
What is .tpl file in PHP web design? - GeeksforGeeks
08 Aug, 2021 TPL is a template file which is a common text file that contains user-defined variables that are entitled to be overridden by user-defined output content when a PHP web application parses the template file. These are used by web applications with server script PHP(but not restricted to) as a template file....
[ { "code": null, "e": 26109, "s": 26081, "text": "\n08 Aug, 2021" }, { "code": null, "e": 26625, "s": 26109, "text": "TPL is a template file which is a common text file that contains user-defined variables that are entitled to be overridden by user-defined output content when a PH...
Flatten Binary Tree in order of Level Order Traversal - GeeksforGeeks
17 Dec, 2021 Given a Binary Tree, the task is to flatten it in order of Level order traversal of the tree. In the flattened binary tree, the left node of all the nodes must be NULL.Examples: Input: 1 / \ 5 2 / \ / \ 6 4 9 3 Output: 1 5 2 6 4 9 3 Input: 1 ...
[ { "code": null, "e": 26294, "s": 26266, "text": "\n17 Dec, 2021" }, { "code": null, "e": 26474, "s": 26294, "text": "Given a Binary Tree, the task is to flatten it in order of Level order traversal of the tree. In the flattened binary tree, the left node of all the nodes must be ...
How to update dependency in package.json file ?
27 Feb, 2020 In this article, we will discuss how to update the dependencies of a project with npm. You must have heard about npm which is called a node package manager. So, we can run this command to install an npm package. npm install Note: The –save flag is no longer needed after the Node 5.0.0 version. The package ...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Feb, 2020" }, { "code": null, "e": 264, "s": 52, "text": "In this article, we will discuss how to update the dependencies of a project with npm. You must have heard about npm which is called a node package manager. So, we can run th...
Count the number of intervals in which a given value lies
08 Jul, 2022 Given a 2D-array of integer intervals and a value . For every interval [li, ri], the task is to check if V lies in between li and ri, both inclusive. The task is to print the count of intervals that satisfies this. Note: 1<=li<= riExamples: Input: arr[][] = {{1, 10}, {5, 10}, {15, 25}, {7, 12}, {20, 25}}...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 297, "s": 54, "text": "Given a 2D-array of integer intervals and a value . For every interval [li, ri], the task is to check if V lies in between li and ri, both inclusive. The task is to print the...
Java Program to Display Current Date and Time
23 Mar, 2022 Java is a most powerful programming language, by which we can do many things and Java is an industry preferable language. So it has a huge field of features. Here we discuss one of the best features of Java, that is how to represent the current date and time using Java. There are many ways to do this, ther...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Mar, 2022" }, { "code": null, "e": 299, "s": 28, "text": "Java is a most powerful programming language, by which we can do many things and Java is an industry preferable language. So it has a huge field of features. Here we discuss o...
dot (.) operator in C/C++
26 Nov, 2019 The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child object. Syntax: object.member; For example: #include <stdio.h> struct Point { int x, y;}; int main(){ struct Point p1 = { 0, 1 }; // Accessing members of point p1 // usin...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Nov, 2019" }, { "code": null, "e": 183, "s": 54, "text": "The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child object." }, { "code": null, "e": 191, ...
Converting Roman to Decimal in Python using gnboorse-rom module
21 Apr, 2020 A gnboorse-rom module is that library of python which helps you convert roman numerals into decimal number and decimal number into roman numerals .It will do conversion of values upto 3999 both in roman numerals and decimal system . Note: Following is the list of some unique Roman symbols with their corres...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2020" }, { "code": null, "e": 261, "s": 28, "text": "A gnboorse-rom module is that library of python which helps you convert roman numerals into decimal number and decimal number into roman numerals .It will do conversion of val...
How to have path alias in Node.js ?
18 May, 2021 Node.js has tons of modules that can be very hard to deal with. Thus, it’s a good practice to have a neat and well-defined directory structure. In this article, we are going to deal with a problem that involves the Node.js modules. Let’s first understand what is the need to have path alias. There are a lo...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 May, 2021" }, { "code": null, "e": 198, "s": 54, "text": "Node.js has tons of modules that can be very hard to deal with. Thus, it’s a good practice to have a neat and well-defined directory structure." }, { "code": null, ...
Lodash _.pick() Method
07 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 _.pick() method is used to return a copy of the object that is composed of the picked object properties. Syntax: _.pick( object, paths ) Parameters: This method a...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Sep, 2020" }, { "code": null, "e": 168, "s": 28, "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": null, "e"...
How to Calculate Rolling Correlation in Python?
29 Jan, 2022 Correlation generally determines the relationship between two variables. The rolling correlation measure the correlation between two-time series data on a rolling window Rolling correlation can be applied to a specific window width to determine short-term correlations. Let’s use sales data of two products...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jan, 2022" }, { "code": null, "e": 299, "s": 28, "text": "Correlation generally determines the relationship between two variables. The rolling correlation measure the correlation between two-time series data on a rolling window Rolli...
Apache Solr - Basic Commands
After installing Solr, browse to the bin folder in Solr home directory and start Solr using the following command. [Hadoop@localhost ~]$ cd [Hadoop@localhost ~]$ cd Solr/ [Hadoop@localhost Solr]$ cd bin/ [Hadoop@localhost bin]$ ./Solr start This command starts Solr in the background, listening on port 8983 by dis...
[ { "code": null, "e": 2273, "s": 2158, "text": "After installing Solr, browse to the bin folder in Solr home directory and start Solr using the following command." }, { "code": null, "e": 2405, "s": 2273, "text": "[Hadoop@localhost ~]$ cd \n[Hadoop@localhost ~]$ cd Solr/ \n[Hado...
HashMap values() Method in Java
26 Nov, 2018 The java.util.HashMap.values() method of HashMap class in Java is used to create a collection out of the values of the map. It basically returns a Collection view of the values in the HashMap. Syntax: Hash_Map.values() Parameters: The method does not accept any parameters. Return Value: The method is used ...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Nov, 2018" }, { "code": null, "e": 246, "s": 53, "text": "The java.util.HashMap.values() method of HashMap class in Java is used to create a collection out of the values of the map. It basically returns a Collection view of the valu...
Building a Basic Chrome Extension
22 Nov, 2021 This is where you can get started with building Chrome Extensions which ultimately increase your productivity and fasten our tasking. Be it live match score, music, GeeksforGeeks new article updates, or a whole page screenshot, you can build your own Chrome extension for every task. So there’s some basic s...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Nov, 2021" }, { "code": null, "e": 338, "s": 54, "text": "This is where you can get started with building Chrome Extensions which ultimately increase your productivity and fasten our tasking. Be it live match score, music, GeeksforG...
Implementing Directory Management using Shell Script
22 Jan, 2019 Directory management constitutes the functions dealing with organization and maintenance of various directories. Directories usually contain files of any type, but this may vary between file systems. The content of a directory does not affect the directory object itself. Some of the directory functions are...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Jan, 2019" }, { "code": null, "e": 325, "s": 53, "text": "Directory management constitutes the functions dealing with organization and maintenance of various directories. Directories usually contain files of any type, but this may v...
How to push elements in an array using AngularJS ?
14 Oct, 2020 Given an array and the task is to perform the push operation on array using AngularJS. Approach: In this approach, the push() method is used to insert the element at the end of the array. In the first example, a static value ‘Geek’ is inserted in the array and in the second example a input box is provided ...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Oct, 2020" }, { "code": null, "e": 115, "s": 28, "text": "Given an array and the task is to perform the push operation on array using AngularJS." }, { "code": null, "e": 376, "s": 115, "text": "Approach: In this a...
Flutter – Outputting Widgets Conditionally
26 Jan, 2021 Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter provides various ways to display Widgets conditionally and in this article, we are going to implement all the methods. This is flutter’s way to display a widget...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jan, 2021" }, { "code": null, "e": 294, "s": 28, "text": "Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter provides various ways to dis...
How to deploy a machine learning model using Node.js ?
26 Jul, 2021 In this article, we will learn how to deploy a machine learning model using NodeJS. While doing so we will make a simple handwritten digit recognizer using NodeJS and tensorflow.js. Tensorflow.js is an ML library for JavaScript. It helps to deploy machine learning models directly into node.js or a web brow...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Jul, 2021" }, { "code": null, "e": 236, "s": 54, "text": "In this article, we will learn how to deploy a machine learning model using NodeJS. While doing so we will make a simple handwritten digit recognizer using NodeJS and tensorf...
How to get the process id from Python Multiprocess?
27 Mar, 2021 In this article, we will see how to get the process id from Python Multiprocess For this we should make use of method multiprocessing.current_process() to get the multiprocess id. Multiprocessing refers to the ability of a system to support more than one processor at the same time. Applications in a multi...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Mar, 2021" }, { "code": null, "e": 540, "s": 54, "text": "In this article, we will see how to get the process id from Python Multiprocess For this we should make use of method multiprocessing.current_process() to get the multiproces...
JavaScript - Page Redirection
You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection. This concept is different from JavaScript Page Refresh. There could be various reasons why you would like to redirect a user from the original page. We...
[ { "code": null, "e": 2825, "s": 2600, "text": "You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection. This concept is different from JavaScript Page Refresh." }, { "code": null, ...
How to Create Landscape Layout in Android Studio?
22 Oct, 2020 In Android, whenever the user switches to landscape mode an issue is encountered in which some of the widgets become invisible (as you can see in the below image) and so in this scenario, there is a need to design a separate layout for the landscape mode. So in android, every application is designed in alm...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Oct, 2020" }, { "code": null, "e": 663, "s": 28, "text": "In Android, whenever the user switches to landscape mode an issue is encountered in which some of the widgets become invisible (as you can see in the below image) and so in th...
What’s difference between “array” and “&array” for “int array[5]” ?
30 Jun, 2022 If someone has defined an array such as “int array[5]”, what’s the meaning of “array” or “&array”? Are they both same or are they different? You might be tempted to think that they both would point to the very first element of the array i.e. they both will have same address. Let us find out! To check this,...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Jun, 2022" }, { "code": null, "e": 347, "s": 54, "text": "If someone has defined an array such as “int array[5]”, what’s the meaning of “array” or “&array”? Are they both same or are they different? You might be tempted to think tha...
Types of Errors in Java with Examples
08 Jun, 2022 Error is an illegal operation performed by the user which results in the abnormal working of the program. Programming errors often remain undetected until the program is compiled or executed. Some of the errors inhibit the program from getting compiled or executed. Thus errors should be removed before comp...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jun, 2022" }, { "code": null, "e": 383, "s": 54, "text": "Error is an illegal operation performed by the user which results in the abnormal working of the program. Programming errors often remain undetected until the program is comp...
Introduction to Project Lombok in Java and How to get started?
20 Jun, 2022 Java is a very popular language, but it has a few drawbacks. One of the most popular drawbacks is that we still need to write the boilerplate codes like getters, setters, and toString() method in Java whereas Kotlin and Scala, which are also JVM based don’t need so, and hence, this is the reason for their ...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jun, 2022" }, { "code": null, "e": 1338, "s": 52, "text": "Java is a very popular language, but it has a few drawbacks. One of the most popular drawbacks is that we still need to write the boilerplate codes like getters, setters, an...
Swap bits in a given number
24 Jun, 2022 Given a number x and two positions (from the right side) in the binary representation of x, write a function that swaps n bits at the given two positions and returns the result. It is also given that the two sets of bits do not overlap. Method 1 Let p1 and p2 be the two given positions. Example 1 Input: x...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 289, "s": 52, "text": "Given a number x and two positions (from the right side) in the binary representation of x, write a function that swaps n bits at the given two positions and returns the resu...
Performance of 2-level Paging
28 Dec, 2020 In this article, we are going to discuss the performance of 2-level paging and also will discuss how we can evaluate an expression for evaluating the performance of 2-level paging. Let’s discuss one by one. Pre-requisite: Paging in OS | 2-level Paging And Multi-level Paging Performance of 2-level Paging : ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Dec, 2020" }, { "code": null, "e": 235, "s": 28, "text": "In this article, we are going to discuss the performance of 2-level paging and also will discuss how we can evaluate an expression for evaluating the performance of 2-level pa...
MongoDB Python – Insert and Replace Operations
20 Jun, 2022 This article focus on how to replace document or entry inside a collection. We can only replace the data already inserted in the database. Prerequisites : MongoDB Python Basics Method used: replace_one() Aim: Replace entire data of old document with a new document Insertion In MongoDB We would first inser...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jun, 2022" }, { "code": null, "e": 191, "s": 52, "text": "This article focus on how to replace document or entry inside a collection. We can only replace the data already inserted in the database." }, { "code": null, "e"...
AWS - Relational Database Service
Amazon RDS (Relational Database Service) is a fully-managed SQL database cloud service that allows to create and operate relational databases. Using RDS you can access your files and database anywhere in a cost-effective and highly scalable way. Amazon RDS has the following features − Scalable − Amazon RDS allows to sc...
[ { "code": null, "e": 2671, "s": 2425, "text": "Amazon RDS (Relational Database Service) is a fully-managed SQL database cloud service that allows to create and operate relational databases. Using RDS you can access your files and database anywhere in a cost-effective and highly scalable way." }, ...
Total number of divisors for a given number
29 Apr, 2021 Given a positive integer n, we have to find the total number of divisors for n. Examples: Input : n = 25 Output : 3 Divisors are 1, 5 and 25. Input : n = 24 Output : 8 Divisors are 1, 2, 3, 4, 6, 8 12 and 24. We have discussed different approaches for printing all divisors (here and here). Here the task ...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Apr, 2021" }, { "code": null, "e": 135, "s": 54, "text": "Given a positive integer n, we have to find the total number of divisors for n. " }, { "code": null, "e": 145, "s": 135, "text": "Examples:" }, { ...
Text Analysis in Python 3
25 Feb, 2022 Book’s / Document’s Content Analysis Patterns within written text are not the same across all authors or languages.This allows linguists to study the language of origin or potential authorship of texts where these characteristics are not directly known such as the Federalist Papers of the American Revoluti...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Feb, 2022" }, { "code": null, "e": 65, "s": 28, "text": "Book’s / Document’s Content Analysis" }, { "code": null, "e": 616, "s": 65, "text": "Patterns within written text are not the same across all authors or lan...
GATE | GATE-CS-2014-(Set-1) | Question 33
28 Jun, 2021 Consider the following three statements about link state and distance vector routing protocols, for a large network with 500 network nodes and 4000 links. [S1] The computational overhead in link state protocols is higher than in distance vector protocols. [S2] A distance vector protocol (with split h...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jun, 2021" }, { "code": null, "e": 208, "s": 53, "text": "Consider the following three statements about link state and distance vector routing protocols, for a large network with 500 network nodes and 4000 links." }, { "code...
C++ Boost String Algorithms Library
03 Jun, 2019 The Boost String Algorithms Library provides a generic implementation of string-related algorithms which are missing in STL. It is an extension to the algorithms library of STL and it includes trimming, case conversion, predicates and find/replace functions. All of them come in different variants so it is ...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jun, 2019" }, { "code": null, "e": 414, "s": 54, "text": "The Boost String Algorithms Library provides a generic implementation of string-related algorithms which are missing in STL. It is an extension to the algorithms library of S...
Next greater element in the Linked List
08 Apr, 2022 Given a linked list L of integers, the task is to return a linked list of integers such that it contains next greater element for each element in the given linked list. If there doesn’t any greater element for any element then insert 0 for it. Examples: Input: 2->1->3->0->5 Output: 3->3->5->5->0 Input: 1-...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Apr, 2022" }, { "code": null, "e": 298, "s": 54, "text": "Given a linked list L of integers, the task is to return a linked list of integers such that it contains next greater element for each element in the given linked list. If th...
label – Django Form Field Validation
13 Feb, 2020 Built-in Form Field Validations in Django Forms are the default validations that come predefined to all fields. Every field comes in with some built-in validations from Django validators. Each Field class constructor takes some fixed arguments. label is used to change the display name of the field. label a...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Feb, 2020" }, { "code": null, "e": 273, "s": 28, "text": "Built-in Form Field Validations in Django Forms are the default validations that come predefined to all fields. Every field comes in with some built-in validations from Django...
Count the number of nodes at given level in a tree using BFS.
27 Sep, 2021 Given a tree represented as an undirected graph. Count the number of nodes at a given level l. It may be assumed that vertex 0 is the root of the tree. Examples: Input : 7 0 1 0 2 1 3 1 4 1 5 2 6 2 Output : 4 Input : 6 0 1 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Sep, 2021" }, { "code": null, "e": 204, "s": 52, "text": "Given a tree represented as an undirected graph. Count the number of nodes at a given level l. It may be assumed that vertex 0 is the root of the tree." }, { "code": ...
Sum Across Multiple Rows and Columns Using dplyr Package in R
14 Sep, 2021 In this article, we are going to see how to sum multiple Rows and columns using Dplyr Package in R Programming language. The dplyr package is used to perform simulations in the data by performing manipulations and transformations. It can be installed into the working space using the following command : in...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 149, "s": 28, "text": "In this article, we are going to see how to sum multiple Rows and columns using Dplyr Package in R Programming language." }, { "code": null, "e": 333, "s": 149...
Web Scraping using Beautifulsoup and scrapingdog API
15 Nov, 2021 In this post we are going to scrape dynamic websites that use JavaScript libraries like React.js, Vue.js, Angular.js, etc you have to put extra efforts. It is an easy but lengthy process if you are going to install all the libraries like Selenium, Puppeteer, and headerless browsers like Phantom.js. But, we...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Nov, 2021" }, { "code": null, "e": 458, "s": 28, "text": "In this post we are going to scrape dynamic websites that use JavaScript libraries like React.js, Vue.js, Angular.js, etc you have to put extra efforts. It is an easy but leng...
How to check in C# whether the string array contains a particular work in a string array?
In C#, String.Contains() is a string method. This method is used to check whether the substring occurs within a given string or not. It returns the boolean value. If substring exists in string or value is the empty string (“”), then it returns True, otherwise returns False. Exception − This method can give ArgumentNull...
[ { "code": null, "e": 1320, "s": 1187, "text": "In C#, String.Contains() is a string method. This method is used to check whether the substring occurs within a given string or not." }, { "code": null, "e": 1462, "s": 1320, "text": "It returns the boolean value. If substring exists...
Python – Remove front column from Matrix
27 Dec, 2019 Sometimes, while working with Matrix data, we can have stray element that attached at front end of each row of matrix. This can be undesired at times and wished to be removed. Let’s discuss certain ways in which this task can be performed. Method #1 : Using loop + del + list slicingThe combination of above...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2019" }, { "code": null, "e": 268, "s": 28, "text": "Sometimes, while working with Matrix data, we can have stray element that attached at front end of each row of matrix. This can be undesired at times and wished to be removed....