title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
What is the digest cycle in AngularJs?
28 May, 2020 AngularJs watch: It is provided by AngularJs Framework to keep track of scope variables and the change in their values. Watches are automatically created by AngularJs Framework. It is usually done for data bindings and for which variables are decided by AngularJs Framework. Custom functions that are create...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 May, 2020" }, { "code": null, "e": 377, "s": 28, "text": "AngularJs watch: It is provided by AngularJs Framework to keep track of scope variables and the change in their values. Watches are automatically created by AngularJs Framewor...
C# | ToolTip Class
05 Sep, 2019 In Windows Forms, the ToolTip represents a tiny pop-up box which appears when you place your pointer or cursor on the control and the purpose of this control is it provides a brief description about the control present in the windows form. The ToolTip class is used to create ToolTip control and also provid...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2019" }, { "code": null, "e": 758, "s": 28, "text": "In Windows Forms, the ToolTip represents a tiny pop-up box which appears when you place your pointer or cursor on the control and the purpose of this control is it provides a ...
JavaScript | Check the existence of variable
30 Aug, 2021 JavaScript has a built-in function to check whether a variable is defined/initialized or undefined.Note: The typeof operator will check whether a variable is defined or not. The typeof operator doesn’t throw a ReferenceError exception when it is used with an undeclared variable. The typeof null will retu...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Aug, 2021" }, { "code": null, "e": 159, "s": 52, "text": "JavaScript has a built-in function to check whether a variable is defined/initialized or undefined.Note: " }, { "code": null, "e": 228, "s": 159, "text":...
The yield Keyword in Ruby
18 Oct, 2019 We can send a block to our method and it can call that block multiple times. This can be done by sending a proc/lambda, but is easier and faster with yield. During a method invocation The yield keyword in corporation with a block allows to pass a set of additional instructions. When yield is called in side...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Oct, 2019" }, { "code": null, "e": 490, "s": 28, "text": "We can send a block to our method and it can call that block multiple times. This can be done by sending a proc/lambda, but is easier and faster with yield. During a method in...
Process Synchronization in C/C++
Process synchronization is the technique to overcome the problem of concurrent access to shared data which can result in data inconsistency. A cooperating process is the one which can affect or be affected by other process which will lead to inconsistency in processes data therefore Process synchronization is required ...
[ { "code": null, "e": 1532, "s": 1187, "text": "Process synchronization is the technique to overcome the problem of concurrent access to shared data which can result in data inconsistency. A cooperating process is the one which can affect or be affected by other process which will lead to inconsisten...
Python | Zip different sized list
07 Feb, 2019 In Python, zipping is a utility where we pair one list with the other. Usually, this task is successful only in the cases when the sizes of both the lists to be zipped are of the same size. But sometimes we require that different sized lists also to be zipped. Let’s discuss certain ways in which this probl...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Feb, 2019" }, { "code": null, "e": 366, "s": 28, "text": "In Python, zipping is a utility where we pair one list with the other. Usually, this task is successful only in the cases when the sizes of both the lists to be zipped are of ...
How to zip a Python Dictionary and List together?
The zip() function can be used to zip one key-value pair from dictionary and correspoinding item in a list together >>> dictionary = {'A':1, 'B':2, 'C':3} >>> num_list = [1, 2, 3] >>> zipped = zip(dictionary.items(), num_list) >>> zipped <zip object at 0x000000886641B9C8> This zipped object when converted to list, show...
[ { "code": null, "e": 1303, "s": 1187, "text": "The zip() function can be used to zip one key-value pair from dictionary and correspoinding item in a list together" }, { "code": null, "e": 1460, "s": 1303, "text": ">>> dictionary = {'A':1, 'B':2, 'C':3}\n>>> num_list = [1, 2, 3]\n...
How to use Typography Component in ReactJS?
05 Mar, 2021 Use typography to present your design and content as clearly and efficiently as possible. Material UI for React has this component available for us, and it is very easy to integrate. We can use the Typography Component in ReactJS using the following approach. Creating React Application And Installing Modul...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Mar, 2021" }, { "code": null, "e": 288, "s": 28, "text": "Use typography to present your design and content as clearly and efficiently as possible. Material UI for React has this component available for us, and it is very easy to int...
Internet Relay Chat (IRC)
29 Jun, 2022 Prerequisite – Chat Conferencing Protocols Internet Relay Chat (IRC) is an Internet application that was developed by Jakko Oikarinen in Finland. Chat is the most convenient immediate way to communicate with others via Internet. There are a number of topics called “channels” through which you can chat wit...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2022" }, { "code": null, "e": 72, "s": 28, "text": "Prerequisite – Chat Conferencing Protocols " }, { "code": null, "e": 737, "s": 72, "text": "Internet Relay Chat (IRC) is an Internet application that was de...
ReactJS MDBootstrap Card Component
12 Jan, 2022 Reactstrap is a bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component. In this article, we will know how to use Card Component in ReactJS MDBootstrap. A card is a flexible and extensible content container. It includes options for headers an...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jan, 2022" }, { "code": null, "e": 165, "s": 28, "text": "Reactstrap is a bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component." }, { "code": null, "e": 2...
Scala | Option
01 Apr, 2019 The Option in Scala is referred to a carrier of single or no element for a stated type. When a method returns a value which can even be null then Option is utilized i.e, the method defined returns an instance of an Option, in place of returning a single object or a null. Important points : The instance of ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Apr, 2019" }, { "code": null, "e": 300, "s": 28, "text": "The Option in Scala is referred to a carrier of single or no element for a stated type. When a method returns a value which can even be null then Option is utilized i.e, the m...
Hadoop - MapReduce
MapReduce is a framework using which we can write applications to process huge amounts of data, in parallel, on large clusters of commodity hardware in a reliable manner. MapReduce is a processing technique and a program model for distributed computing based on java. The MapReduce algorithm contains two important tasks...
[ { "code": null, "e": 2156, "s": 1985, "text": "MapReduce is a framework using which we can write applications to process huge amounts of data, in parallel, on large clusters of commodity hardware in a reliable manner." }, { "code": null, "e": 2701, "s": 2156, "text": "MapReduce i...
Merge a linked list into another linked list at alternate positions
03 Jul, 2022 Given two linked lists, insert nodes of second list into first list at alternate positions of first list. For example, if first list is 5->7->17->13->11 and second is 12->10->2->4->6, the first list should become 5->12->7->10->17->2->13->4->11->6 and second list should become empty. The nodes of second lis...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Jul, 2022" }, { "code": null, "e": 569, "s": 52, "text": "Given two linked lists, insert nodes of second list into first list at alternate positions of first list. For example, if first list is 5->7->17->13->11 and second is 12->10-...
Sentence that contains all the given phrases
07 Jul, 2022 Given a list of sentences and a list of phrases. The task is to find which sentence(s) contain all the words in a phrase and for every phrase print the sentences number that contains the given phrase. Constraint: A word cannot be a part of more than 10 sentences. Examples: Input: Sentences: 1. Strings are...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jul, 2022" }, { "code": null, "e": 326, "s": 52, "text": "Given a list of sentences and a list of phrases. The task is to find which sentence(s) contain all the words in a phrase and for every phrase print the sentences number that ...
Maximum even sum subsequence of length K
18 Apr, 2022 Given an array arr[] consisting of N positive integers, and an integer K, the task is to find the maximum possible even sum of any subsequence of size K. If it is not possible to find any even sum subsequence of size K, then print -1. Examples: Input: arr[] ={4, 2, 6, 7, 8}, K = 3Output: 18Explanation: Sub...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Apr, 2022" }, { "code": null, "e": 289, "s": 54, "text": "Given an array arr[] consisting of N positive integers, and an integer K, the task is to find the maximum possible even sum of any subsequence of size K. If it is not possibl...
PyQt5 – QTableWidget
11 May, 2020 In this article, we will learn how to add and work with a table in our PyQt5 application. A table is an arrangement of data in rows and columns and widely used in communication, research, and data analysis. We can add one or more tables in our PyQt application using QTableWidget. For a better understanding...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 May, 2020" }, { "code": null, "e": 335, "s": 54, "text": "In this article, we will learn how to add and work with a table in our PyQt5 application. A table is an arrangement of data in rows and columns and widely used in communicati...
PyQt5 - QComboBox Widget
A QComboBox object presents a dropdown list of items to select from. It takes minimum screen space on the form required to display only the currently selected item. A Combo box can be set to be editable; it can also store pixmap objects. The following methods are commonly used − addItem() Adds string to collection addI...
[ { "code": null, "e": 2262, "s": 2097, "text": "A QComboBox object presents a dropdown list of items to select from. It takes minimum screen space on the form required to display only the currently selected item." }, { "code": null, "e": 2377, "s": 2262, "text": "A Combo box can b...
Gdu – Faster Disk Usage Analyzer for Linux - GeeksforGeeks
06 Jun, 2021 GDU is a disk usage analyzer written in Go language for the Linux Operating systems. Gdu was actually made for SSD disks where it can totally utilize parallel processing. Although it works for HDDs too, but the performance gain is not so good.GDU can run in two modes one is interactive and another is non-i...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n06 Jun, 2021" }, { "code": null, "e": 24483, "s": 24015, "text": "GDU is a disk usage analyzer written in Go language for the Linux Operating systems. Gdu was actually made for SSD disks where it can totally utilize parallel proc...
How to fill the area under a curve in a Seaborn distribution plot?
To fill the area under a curve in a Seaborn distribution plot, we can use distplot() and fill_between() methods. Set the figure size and adjust the padding between and around the subplots. Create a list of data points. Plot a univariate distribution of observations. To fill the area under the curve, use fill_between() ...
[ { "code": null, "e": 1175, "s": 1062, "text": "To fill the area under a curve in a Seaborn distribution plot, we can use distplot() and fill_between() methods." }, { "code": null, "e": 1251, "s": 1175, "text": "Set the figure size and adjust the padding between and around the sub...
Matplotlib - Twin Axes
It is considered useful to have dual x or y axes in a figure. Moreso, when plotting curves with different units together. Matplotlib supports this with the twinxand twiny functions. In the following example, the plot has dual y axes, one showing exp(x) and the other showing log(x) − import matplotlib.pyplot as plt impo...
[ { "code": null, "e": 2698, "s": 2516, "text": "It is considered useful to have dual x or y axes in a figure. Moreso, when plotting curves with different units together. Matplotlib supports this with the twinxand twiny functions." }, { "code": null, "e": 2800, "s": 2698, "text": "...
Retrieving the first document in a MongoDB collection?
To retrieve the first document in a collection, you can use findOne(). Following is the syntax var anyVariableName=db.yourCollectionName.findOne(); //To print result at MongoDB console write the variable name yourVariableName Let us first create a collection with documents > db.retrieveFirstDocumentDemo.insertOne({"Cli...
[ { "code": null, "e": 1157, "s": 1062, "text": "To retrieve the first document in a collection, you can use findOne(). Following is the syntax" }, { "code": null, "e": 1288, "s": 1157, "text": "var anyVariableName=db.yourCollectionName.findOne();\n//To print result at MongoDB cons...
Haskell - Zippers
Zippers in Haskell are basically pointers that point to some specific location of a data structure such as a tree. Let us consider a tree having 5 elements [45,7,55,120,56] which can be represented as a perfect binary tree. If I want to update the last element of this list, then I need to traverse through all the eleme...
[ { "code": null, "e": 2030, "s": 1915, "text": "Zippers in Haskell are basically pointers that point to some specific location of a data structure such as a tree." }, { "code": null, "e": 2295, "s": 2030, "text": "Let us consider a tree having 5 elements [45,7,55,120,56] which can...
Replace all consonants with nearest vowels in a string - GeeksforGeeks
14 Apr, 2022 Given a string with lowercase English alphabets. The task is to replace all the consonants in the string with the nearest vowels. If a consonant is near to two vowels then replace it with the one that comes first in English alphabets. Note: Vowels already present in the string must be left as it is.Exampl...
[ { "code": null, "e": 24616, "s": 24585, "text": " \n14 Apr, 2022\n" }, { "code": null, "e": 24928, "s": 24616, "text": "Given a string with lowercase English alphabets. The task is to replace all the consonants in the string with the nearest vowels. If a consonant is near to two ...
Can we fetch multiple values with MySQL WHERE Clause?
Yes, we can fetch, but use MySQL OR for conditions. Let us first create a − mysql> create table DemoTable1421 -> ( -> EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> EmployeeName varchar(20), -> EmployeeSalary int -> ); Query OK, 0 rows affected (0.82 sec) Insert some records in the table using in...
[ { "code": null, "e": 1138, "s": 1062, "text": "Yes, we can fetch, but use MySQL OR for conditions. Let us first create a −" }, { "code": null, "e": 1341, "s": 1138, "text": "mysql> create table DemoTable1421\n -> (\n -> EmployeeId int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n ...
Python - Directory Listing
Python can be used to get the list of content from a directory. We can make program to list the content of directory which is in the same machine where python is running. We can also login to the remote system and list the content from the remote directory. In the below example we use the listdir() method to get the co...
[ { "code": null, "e": 2584, "s": 2326, "text": "Python can be used to get the list of content from a directory. We can make program to list the content of directory which is in the same machine where python is running.\nWe can also login to the remote system and list the content from the remote direc...
Reader read(char[]) method in Java with Examples - GeeksforGeeks
07 Feb, 2019 The read(char[]) method of Reader Class in Java is used to read the specified characters into an array. This method blocks the stream till: It has taken some input from the stream. Some IOException has occurred It has reached the end of the stream while reading. Syntax: public int read(char[] charArray) Pa...
[ { "code": null, "e": 25831, "s": 25803, "text": "\n07 Feb, 2019" }, { "code": null, "e": 25971, "s": 25831, "text": "The read(char[]) method of Reader Class in Java is used to read the specified characters into an array. This method blocks the stream till:" }, { "code": n...
C# | How to get the HashCode for the string - GeeksforGeeks
01 Aug, 2019 GetHashCode() method is used to get the hash code of the specified string. When you apply this method to the string this method will return a 32-bit signed integer hash code of the given string. Syntax: public override int GetHashCode (); Return Value: The return type of this method is System.Int32. This m...
[ { "code": null, "e": 26020, "s": 25992, "text": "\n01 Aug, 2019" }, { "code": null, "e": 26215, "s": 26020, "text": "GetHashCode() method is used to get the hash code of the specified string. When you apply this method to the string this method will return a 32-bit signed integer...
How to activate virtualenv on Linux?
When we talk about keeping our dependencies in a separate location from our logic code we are indeed creating nothing but a virtual environment, which in python, we usually use the term venv to refer to as. So a venv is nothing but a virtual environment which is in turn a tool that allows us to keep our dependencies th...
[ { "code": null, "e": 1269, "s": 1062, "text": "When we talk about keeping our dependencies in a separate location from our logic code we are indeed creating nothing but a virtual environment, which in python, we usually use the term venv to refer to as." }, { "code": null, "e": 1530, ...
Lodash _.reject() Method - GeeksforGeeks
10 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, collection, strings, objects, numbers etc.The _.reject() method is opposite of _.filter() method and this method returns elements of the collection that predicate does not return true. Syntax: _.reje...
[ { "code": null, "e": 26655, "s": 26627, "text": "\n10 Sep, 2020" }, { "code": null, "e": 26948, "s": 26655, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, collection, strings, objects, numbers etc.The _.reject(...
Check if a number is divisible by 23 or not - GeeksforGeeks
17 May, 2021 Given a number, the task is to quickly check if the number is divisible by 23 or not.Examples: Input : x = 46 Output : Yes Input : 47 Output : No A solution to the problem is to extract the last digit and add 7 times of last digit to remaining number and repeat this process until a two digit number i...
[ { "code": null, "e": 26047, "s": 26019, "text": "\n17 May, 2021" }, { "code": null, "e": 26144, "s": 26047, "text": "Given a number, the task is to quickly check if the number is divisible by 23 or not.Examples: " }, { "code": null, "e": 26197, "s": 26144, "t...
How to Build a Simple Android App with Flask Backend? - GeeksforGeeks
27 Oct, 2021 Flask is an API of Python that allows us to build up web applications. It was developed by Armin Ronacher. Flask’s framework is more explicit than Django’s framework and is also easier to learn because it has less base code to implement a simple web-Application. A Web-Application Framework or Web Framework...
[ { "code": null, "e": 26516, "s": 26488, "text": "\n27 Oct, 2021" }, { "code": null, "e": 27196, "s": 26516, "text": "Flask is an API of Python that allows us to build up web applications. It was developed by Armin Ronacher. Flask’s framework is more explicit than Django’s framewo...
Building Your Own Quantum Circuits in Python (With Colorful Diagrams) | by Rishabh Anand | Towards Data Science
For a crash course on Quantum Computing, do check out the previous article. TLDR: Here, I talk about Qiskit, an open-source Python module for building quantum circuits and simulating operations on Qubits. We’ll look through sample code and then move on to an in-depth explanation of what the code does with very intuitiv...
[ { "code": null, "e": 248, "s": 172, "text": "For a crash course on Quantum Computing, do check out the previous article." }, { "code": null, "e": 514, "s": 248, "text": "TLDR: Here, I talk about Qiskit, an open-source Python module for building quantum circuits and simulating ope...
Multiply any Number with 4 using Bitwise Operator
09 Mar, 2022 We are a Number n and our task is multiply the number with 4 using bit-wise Operator.Examples: Input : 4 Output :16 Input :5 Output :20 Explanation Case 1:- n=4 the binary of 4 is 100 and now shift two bit right then 10000 now the number is 16 that is multiply 4*4=16 ans. Approach :- (n<<2) shift two ...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Mar, 2022" }, { "code": null, "e": 150, "s": 53, "text": "We are a Number n and our task is multiply the number with 4 using bit-wise Operator.Examples: " }, { "code": null, "e": 192, "s": 150, "text": "Input : ...
Plotly - Plotting Inline with Jupyter Notebook
In this chapter, we will study how to do inline plotting with the Jupyter Notebook. In order to display the plot inside the notebook, you need to initiate plotly’s notebook mode as follows − from plotly.offline import init_notebook_mode init_notebook_mode(connected = True) Keep rest of the script as it is and run the ...
[ { "code": null, "e": 2578, "s": 2494, "text": "In this chapter, we will study how to do inline plotting with the Jupyter Notebook." }, { "code": null, "e": 2685, "s": 2578, "text": "In order to display the plot inside the notebook, you need to initiate plotly’s notebook mode as f...
How to create Tinder card swipe gesture using React and framer-motion ?
28 Oct, 2021 We can create a simple tinder app like swipe gesture using the following approach using the Framer module in ReactJS. Prerequisites: Knowledge of JavaScript (ES6)Knowledge of HTML/CSS.Basic knowledge of ReactJS. Knowledge of JavaScript (ES6) Knowledge of HTML/CSS. Basic knowledge of ReactJS. Framer hooks u...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Oct, 2021" }, { "code": null, "e": 170, "s": 52, "text": "We can create a simple tinder app like swipe gesture using the following approach using the Framer module in ReactJS." }, { "code": null, "e": 185, "s": 170, ...
Java Program to Handle Checked Exception
04 Jul, 2022 Checked exceptions are the subclass of the Exception class. These types of exceptions need to be handled during the compile time of the program. These exceptions can be handled by the try-catch block or by using throws keyword otherwise the program will give a compilation error. ClassNotFoundException, IO...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jul, 2022" }, { "code": null, "e": 334, "s": 54, "text": "Checked exceptions are the subclass of the Exception class. These types of exceptions need to be handled during the compile time of the program. These exceptions can be handl...
Zulu module in Python
04 May, 2020 Zulu is a drop-in-replacement for native DateTime. In this, all DateTime objects converted into UTC and also stored as UTC. There is an outline between UTC and time zones. Thus, time zones representation is applicable only for conversions to naive DateTime. It supports multiple string formatting using strp...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 May, 2020" }, { "code": null, "e": 387, "s": 28, "text": "Zulu is a drop-in-replacement for native DateTime. In this, all DateTime objects converted into UTC and also stored as UTC. There is an outline between UTC and time zones. Thu...
How to set cell width and height in HTML?
To set the cell width and height, use the CSS style. The height and width attribute of the <td> cell isn’t supported in HTML5. Use the CSS property width and height to set the width and height of the cell respectively. Just keep in mind, the usage of style attribute overrides any style set globally. It will override an...
[ { "code": null, "e": 1406, "s": 1187, "text": "To set the cell width and height, use the CSS style. The height and width attribute of the <td> cell isn’t supported in HTML5. Use the CSS property width and height to set the width and height of the cell respectively." }, { "code": null, "e...
Difference between Software Engineering process and Conventional Engineering Process
16 Aug, 2021 1. Software Engineering Process : It is a engineering process which is mainly related to computers and programming and developing different kinds of applications through the use of information technology. 2. Conventional Engineering Process : It is a engineering process which is highly based on empirical ...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Aug, 2021" }, { "code": null, "e": 258, "s": 52, "text": "1. Software Engineering Process : It is a engineering process which is mainly related to computers and programming and developing different kinds of applications through the ...
Python – Consecutive Division in List
01 Nov, 2020 Given a List, perform consecutive division from each quotient obtained in the intermediate step and treating consecutive elements as divisors. Input : test_list = [1000, 50, 5, 10, 2] Output : 0.2 Explanation : 1000 / 50 = 20 / 5 = 4 / 10 = 0.4 / 2 = 0.2. Hence solution. Input : test_list = [100, 50] Outpu...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Nov, 2020" }, { "code": null, "e": 171, "s": 28, "text": "Given a List, perform consecutive division from each quotient obtained in the intermediate step and treating consecutive elements as divisors." }, { "code": null, ...
std::string::assign() in C++
28 Oct, 2020 The member function assign() is used for the assignments, it assigns a new value to the string, replacing its current contents. Syntax 1: Assign the value of string str. string& string::assign (const string& str) str : is the string to be assigned. Returns : *this CPP // CPP code for assign (const stri...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Oct, 2020" }, { "code": null, "e": 223, "s": 52, "text": "The member function assign() is used for the assignments, it assigns a new value to the string, replacing its current contents. Syntax 1: Assign the value of string str. " ...
C Program to Compute Quotient and Remainder
17 Jun, 2022 Given two numbers A and B. The task is to write a program to find the quotient and remainder of these two numbers when A is divided by B. Examples: Input: A = 2, B = 6 Output: Quotient = 0, Remainder = 2 Input: A = 17, B = 5 Output: Quotient = 3, Remainder = 2 In the below program, to find the quotie...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2022" }, { "code": null, "e": 167, "s": 28, "text": "Given two numbers A and B. The task is to write a program to find the quotient and remainder of these two numbers when A is divided by B. " }, { "code": null, "e":...
Kubernetes – Concept of Containers
13 Jun, 2022 Kubernetes is an open-source container orchestration framework that was originally developed by Google. So now, the question arises, “what’s container orchestration?”. Container orchestration is automation. It can facilitate you to deploy the identical application across different environments like physica...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 156, "s": 52, "text": "Kubernetes is an open-source container orchestration framework that was originally developed by Google." }, { "code": null, "e": 220, "s": 156, "text": "S...
Wget command in Linux/Unix
08 Sep, 2021 Wget is the non-interactive network downloader which is used to download files from the server even when the user has not logged on to the system and it can work in the background without hindering the current process. GNU wget is a free utility for non-interactive download of files from the Web. It supp...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Sep, 2021" }, { "code": null, "e": 273, "s": 52, "text": "Wget is the non-interactive network downloader which is used to download files from the server even when the user has not logged on to the system and it can work in the backg...
How to reset input type = “file” using JavaScript/jQuery?
18 Feb, 2022 Jquery: Using wrap method in jquery: The best way to reset input type=file is resetting the whole form. Wrap <input type = “file”> into <form> tags and reset the form: Example-1: html <!DOCTYPE html><html> <head> <title>reset input type = “file”</title> <script src="https://ajax.googleapis.com/aj...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Feb, 2022" }, { "code": null, "e": 38, "s": 28, "text": "Jquery: " }, { "code": null, "e": 211, "s": 38, "text": "Using wrap method in jquery: The best way to reset input type=file is resetting the whole form. Wr...
How to plot a subset of a dataframe using ggplot2 in R ?
16 May, 2021 In this article, we will discuss how to plot a subset of a dataframe using ggplot2 in the R programming language. Dataframe in use: To get a complete picture, let us first draw a complete dataframe. Example: R # Load ggplot2 packagelibrary(ggplot2) # Create Data For plottingAge <- c("17", "18", "17", "19"...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2021" }, { "code": null, "e": 142, "s": 28, "text": "In this article, we will discuss how to plot a subset of a dataframe using ggplot2 in the R programming language." }, { "code": null, "e": 160, "s": 142, "...
Frequency of a string in an array of strings
16 Jun, 2022 You are given a collection of strings and a list of queries. For every query there is a string given. We need to print the number of times the given string occurs in the collection of strings. Examples: Input : arr[] = {wer, wer, tyu, oio, tyu} q[] = {wer, tyu, uio} Output : 2 2 0 Explanation : ...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Jun, 2022" }, { "code": null, "e": 258, "s": 54, "text": "You are given a collection of strings and a list of queries. For every query there is a string given. We need to print the number of times the given string occurs in the coll...
Fruitful Functions and Void Functions in Julia
25 Aug, 2020 Functions are one of the most useful tools when writing a program. Every programming language including Julia uses functions, it can be for keeping the code simple and readable or to keep the program secure from outside interference. In almost every programming language there are two types of functions: Fr...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2020" }, { "code": null, "e": 333, "s": 28, "text": "Functions are one of the most useful tools when writing a program. Every programming language including Julia uses functions, it can be for keeping the code simple and readabl...
C++ program to append content of one text file to another
16 Jun, 2022 Given source and destination text files. Append the content from the source file to the destination file and then display the content of the destination file.Example : Input : file.txt : "geeks", file2.txt : "geeks for" Output: file2.txt : "geeks for geeks" Method 1:Approach: Open file.txt in inputstream a...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Jun, 2022" }, { "code": null, "e": 221, "s": 53, "text": "Given source and destination text files. Append the content from the source file to the destination file and then display the content of the destination file.Example :" }, ...
jQuery UI Sortable update Event
09 Dec, 2021 jQuery UI consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is great for building UI interfaces for the webpages. It can be used to build highly interactive web applications or can be used to add widgets easily. The jQuery UI Sortable update even...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Dec, 2021" }, { "code": null, "e": 301, "s": 28, "text": "jQuery UI consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is great for building UI interfaces for the webpages. ...
Python – turtle.exitonclick()
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 Go into mainloop until the mouse is clicked. It doesn’t require a...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Aug, 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...
DROP SCHEMA in SQL Server
04 Sep, 2020 The DROP SCHEMA statement could be used to delete a schema from a database. SQL Server have some built-in schema, for example : dbo, guest, sys, and INFORMATION_SCHEMA which cannot be deleted. Syntax : DROP SCHEMA [IF EXISTS] schema_name; Note : Delete all objects from the schema before dropping the schem...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Sep, 2020" }, { "code": null, "e": 221, "s": 28, "text": "The DROP SCHEMA statement could be used to delete a schema from a database. SQL Server have some built-in schema, for example : dbo, guest, sys, and INFORMATION_SCHEMA which c...
Using Else Conditional Statement With For loop in Python
13 Jul, 2022 Using else conditional statement with for loop in python In most of the programming languages (C/C++, Java, etc), the use of else statement has been restricted with the if conditional statements. But Python also allows us to use the else condition with for loops. The else block just after for/while is exe...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jul, 2022" }, { "code": null, "e": 109, "s": 52, "text": "Using else conditional statement with for loop in python" }, { "code": null, "e": 317, "s": 109, "text": "In most of the programming languages (C/C++, Jav...
Nested Classes in C#
16 Sep, 2021 A class is a user-defined blueprint or prototype from which objects are created. Basically, a class combines the fields and methods (member function which defines actions) into a single unit. In C#, a user is allowed to define a class within another class. Such types of classes are known as nested class. T...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Sep, 2021" }, { "code": null, "e": 543, "s": 53, "text": "A class is a user-defined blueprint or prototype from which objects are created. Basically, a class combines the fields and methods (member function which defines actions) in...
How to create a Box Layout in Java?
To create a Box Layout in Java Swing, use the BoxLayout class. Here, we have also set that the components should be laid our left to right or top to bottom − Box box = new Box(BoxLayout.X_AXIS); box.add(button1); box.add(button2); box.add(button3); box.add(button4); box.add(Box.createGlue()); box.add(button5); box.add(...
[ { "code": null, "e": 1345, "s": 1187, "text": "To create a Box Layout in Java Swing, use the BoxLayout class. Here, we have also set that the components should be laid our left to right or top to bottom −" }, { "code": null, "e": 1553, "s": 1345, "text": "Box box = new Box(BoxLay...
Get or Set names of Elements of an Object in R Programming – names() Function
05 Jun, 2020 names() function in R Language is used to get or set the name of an Object. This function takes object i.e. vector, matrix or data frame as argument along with the value that is to be assigned as name to the object. The length of the value vector passed must be exactly equal to the length of the object to ...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Jun, 2020" }, { "code": null, "e": 371, "s": 54, "text": "names() function in R Language is used to get or set the name of an Object. This function takes object i.e. vector, matrix or data frame as argument along with the value that...
Is an array a primitive type or an object in Java?
11 Dec, 2018 An array in Java is an object. Now the question how is this possible? What is the reason behind that? In Java, we can create arrays by using new operator and we know that every object is created using new operator. Hence we can say that array is also an object. Now the question also arises, every time we c...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Dec, 2018" }, { "code": null, "e": 422, "s": 54, "text": "An array in Java is an object. Now the question how is this possible? What is the reason behind that? In Java, we can create arrays by using new operator and we know that eve...
Rust – HashMaps
15 Nov, 2021 The concept of HashMap is present in almost all programming languages like Java, C++, Python, it has key-value pairs and through key, we can get values of the map. Keys are unique no duplicates allowed in the key but the value can be duplicated. To insert a value in a HashMap in Rust follow the below steps...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Nov, 2021" }, { "code": null, "e": 274, "s": 28, "text": "The concept of HashMap is present in almost all programming languages like Java, C++, Python, it has key-value pairs and through key, we can get values of the map. Keys are un...
sizeof() for Floating Constant in C
02 Jun, 2017 In C language, we have three floating data types i.e. float, double and long double. And the exact size of each of these 3 types depends on the C compiler implementation/platform. The following program can be used to find out the size of each floating data type on your machine. #include "stdio.h"int main()...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Jun, 2017" }, { "code": null, "e": 331, "s": 52, "text": "In C language, we have three floating data types i.e. float, double and long double. And the exact size of each of these 3 types depends on the C compiler implementation/plat...
TreeMap remove() Method in Java
08 Jun, 2022 The java.util.TreeMap.remove() is an inbuilt method of TreeMap class and is used to remove the mapping of any particular key from the map. It basically removes the values for any particular key in the Map. Syntax: Tree_Map.remove(Object key) Parameters: The method takes one parameter key whose mapping is ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2022" }, { "code": null, "e": 235, "s": 28, "text": "The java.util.TreeMap.remove() is an inbuilt method of TreeMap class and is used to remove the mapping of any particular key from the map. It basically removes the values for ...
Program for Volume and Surface area of Frustum of Cone
23 Apr, 2018 Given slant height, height and radius of a frustum of a cone, we have to calculate the volume and surface area of the frustum of a cone. Frustum of coneIn geometry, a frustum is the portion of a solid (normally a cone or pyramid) that lies between one or two parallel planes cutting it.If we cut a right cir...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Apr, 2018" }, { "code": null, "e": 165, "s": 28, "text": "Given slant height, height and radius of a frustum of a cone, we have to calculate the volume and surface area of the frustum of a cone." }, { "code": null, "e": 4...
Nagarro Archives - GeeksforGeeks
Check whether two strings are anagram of each other Find the middle of a given linked list Print a given matrix in spiral form GCD of more than two (or array) numbers Nagarro Interview Experience Nagarro Interview Experience | On-Campus 2021 Nagarro Interview Experience Nagarro Interview Experience for Trainee-Software...
[ { "code": null, "e": 24182, "s": 24130, "text": "Check whether two strings are anagram of each other" }, { "code": null, "e": 24221, "s": 24182, "text": "Find the middle of a given linked list" }, { "code": null, "e": 24257, "s": 24221, "text": "Print a given ...
Increment a number by one by manipulating the bits
15 Jun, 2022 Given a non-negative integer n. The problem is to increment n by 1 by manipulating the bits of n.Examples : Input : 6 Output : 7 Input : 15 Output : 16 Approach: Following are the steps: Get the position of rightmost unset bit of n. Let this position be k.Set the k-th bit of n.Toggle the last k-1 bit...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Jun, 2022" }, { "code": null, "e": 164, "s": 54, "text": "Given a non-negative integer n. The problem is to increment n by 1 by manipulating the bits of n.Examples : " }, { "code": null, "e": 209, "s": 164, "tex...
JavaFX - 2D Shapes
In the previous chapter, we have seen the basic application of JavaFX, where we learnt how to create an empty window and how to draw a line on an XY plane of JavaFX. In addition to the line, we can also draw several other 2D shapes. In general, a 2D shape is a geometrical figure that can be drawn on the XY plane, these...
[ { "code": null, "e": 2267, "s": 2034, "text": "In the previous chapter, we have seen the basic application of JavaFX, where we learnt how to create an empty window and how to draw a line on an XY plane of JavaFX. In addition to the line, we can also draw several other 2D shapes." }, { "code"...
JavaScript String toLowerCase() Method
07 Oct, 2021 Below is the example of the String toLowerCase() Method. Example: JavaScript <script>function func() { var str = 'GEEKSFORGEEKS'; var string = str.toLowerCase(); document.write(string);}func();</script> Output: geeksforgeeks str.toLowerCase() method converts the entire string to lower case. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Oct, 2021" }, { "code": null, "e": 87, "s": 28, "text": "Below is the example of the String toLowerCase() Method. " }, { "code": null, "e": 98, "s": 87, "text": "Example: " }, { "code": null, "e": 10...
Python – Coefficient of Determination-R2 score
16 Jul, 2020 Coefficient of determination also called as R2 score is used to evaluate the performance of a linear regression model. It is the amount of the variation in the output dependent attribute which is predictable from the input independent variable(s). It is used to check how well-observed results are reproduce...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Jul, 2020" }, { "code": null, "e": 453, "s": 53, "text": "Coefficient of determination also called as R2 score is used to evaluate the performance of a linear regression model. It is the amount of the variation in the output depende...
How to convert functional component to class component in ReactJS ?
24 May, 2021 If we want to convert a function component to a class component then we need to make the following major changes. Change the function to a classAdd the render methodConvert all function to a methodAdd ConstructorReplace hooks with lifecycle methods Change the function to a class Add the render method Conve...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 May, 2021" }, { "code": null, "e": 142, "s": 28, "text": "If we want to convert a function component to a class component then we need to make the following major changes." }, { "code": null, "e": 277, "s": 142, "...
Python | Remove and print every third from list until it becomes empty
21 Nov, 2018 Given a list of numbers, Your task is to remove and print every third number from a list of numbers until the list becomes empty.Examples: Input : [10, 20, 30, 40, 50, 60, 70, 80, 90]Output : 30 60 90 40 80 50 20 70 10Explanation:The first third element encountered is 30, after 30 we start the count from 4...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Nov, 2018" }, { "code": null, "e": 191, "s": 52, "text": "Given a list of numbers, Your task is to remove and print every third number from a list of numbers until the list becomes empty.Examples:" }, { "code": null, "e"...
XQuery - Quick Guide
XQuery is a functional language that is used to retrieve information stored in XML format. XQuery can be used on XML documents, relational databases containing data in XML formats, or XML Databases. XQuery 3.0 is a W3C recommendation from April 8, 2014. The definition of XQuery as given by its official documentation is...
[ { "code": null, "e": 2260, "s": 2006, "text": "XQuery is a functional language that is used to retrieve information stored in XML format. XQuery can be used on XML documents, relational databases containing data in XML formats, or XML Databases. XQuery 3.0 is a W3C recommendation from April 8, 2014....
Gray to Binary and Binary to Gray conversion
12 Jun, 2022 Binary Number is the default way to store numbers, but in many applications, binary numbers are difficult to use and a variety of binary numbers is needed. This is where Gray codes are very useful. Gray code has a property that two successive numbers differ in only one bit because of this property gray co...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Jun, 2022" }, { "code": null, "e": 253, "s": 54, "text": "Binary Number is the default way to store numbers, but in many applications, binary numbers are difficult to use and a variety of binary numbers is needed. This is where Gray...
How to pass a parameter to an event handler or callback ?
30 Aug, 2021 React js is one of the most popular JavaScript frameworks today. There are a lot of companies whose websites are built on React due to the framework’s unique features. React UI comprises several components. There are a lot of tasks that users can perform on a React user interface. Each component has differ...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Aug, 2021" }, { "code": null, "e": 417, "s": 28, "text": "React js is one of the most popular JavaScript frameworks today. There are a lot of companies whose websites are built on React due to the framework’s unique features. React U...
Find the maximum elements in the first and the second halves of the Array
28 May, 2022 , Given an array arr[] of N integers. The task is to find the largest elements in the first half and the second half of the array. Note that if the size of the array is odd then the middle element will be included in both halves.Examples: Input: arr[] = {1, 12, 14, 5} Output: 12, 14 First half is {1, 12} ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 May, 2022" }, { "code": null, "e": 268, "s": 28, "text": ", Given an array arr[] of N integers. The task is to find the largest elements in the first half and the second half of the array. Note that if the size of the array is odd th...
Python | os.path.commonprefix() method
22 May, 2019 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 submodule of OS module in Python used for common path name manipulatio...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 May, 2019" }, { "code": null, "e": 338, "s": 28, "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 usin...
Equilibrium index of an array
11 Jun, 2022 Equilibrium index of an array is an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes. For example, in an array A: Example : Input: A[] = {-7, 1, 5, 2, -4, 3, 0} Output: 3 3 is an equilibrium index, because: A[0] + A[1] + A[2] = A[4] + A[5] + A[6] Inpu...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jun, 2022" }, { "code": null, "e": 221, "s": 52, "text": "Equilibrium index of an array is an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes. For example, in an array A: " },...
Count smaller elements on right side using Set in C++ STL
28 Jun, 2021 Write a function to count the number of smaller elements on the right of each element in an array. Given an unsorted array arr[] of distinct integers, construct another array countSmaller[] such that countSmaller[i] contains the count of smaller elements on right side of each element arr[i] in the array. E...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 370, "s": 52, "text": "Write a function to count the number of smaller elements on the right of each element in an array. Given an unsorted array arr[] of distinct integers, construct another array...
Introduction to Pafy Module in Python
06 Aug, 2021 In this article we will learn about the pafy module. Pafy is a Python library to download YouTube content and retrieve metadata. Below are the list of features Pafy offers1. Retrieve metadata such as viewcount, duration, rating, author, thumbnail, keywords 2. Download video or audio at requested resolutio...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Aug, 2021" }, { "code": null, "e": 158, "s": 28, "text": "In this article we will learn about the pafy module. Pafy is a Python library to download YouTube content and retrieve metadata. " }, { "code": null, "e": 882, ...
How to call JavaScript function in HTML ?
06 Jun, 2022 In this article, we will see how to call JavaScript function in HTML with two approaches that are discussed below. Approach 1: First, take a button by the input tag. After clicking the button, you can see a dialog box that pops up on the screen that has already been declared in the JavaScript function as a...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2022" }, { "code": null, "e": 143, "s": 28, "text": "In this article, we will see how to call JavaScript function in HTML with two approaches that are discussed below." }, { "code": null, "e": 456, "s": 143, ...
Scraping Reddit with Python and BeautifulSoup
30 May, 2021 In this article, we are going to see how to scrape Reddit with Python and BeautifulSoup. Here we will use Beautiful Soup and the request module to scrape the data. bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module does not come built-in with Python. To ins...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 May, 2021" }, { "code": null, "e": 216, "s": 52, "text": "In this article, we are going to see how to scrape Reddit with Python and BeautifulSoup. Here we will use Beautiful Soup and the request module to scrape the data." }, { ...
HashMap in Java with Examples
08 Jul, 2022 HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It provides the basic implementation of the Map interface of Java. It stores the data in (Key, Value) pairs, and you can access them by an index of another type (e.g. an Integer). One object is used as a ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 494, "s": 54, "text": "HashMap<K, V> is a part of Java’s collection since Java 1.2. This class is found in java.util package. It provides the basic implementation of the Map interface of Java. It s...
Testing Room Database in Android using JUnit
17 Mar, 2021 In this article, we are going to test the Room Database in android. Here we are using JUnit to test our code. JUnit is a “Unit Testing” framework for Java Applications which is already included by default in android studio. It is an automation framework for Unit as well as UI Testing. It contains annotatio...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Mar, 2021" }, { "code": null, "e": 535, "s": 28, "text": "In this article, we are going to test the Room Database in android. Here we are using JUnit to test our code. JUnit is a “Unit Testing” framework for Java Applications which i...
Single Layered Neural Networks in R Programming
22 Jul, 2020 Neural networks also known as neural nets is a type of algorithm in machine learning and artificial intelligence that works the same as the human brain operates. The artificial neurons in the neural network depict the same behavior of neurons in the human brain. Neural networks are used in risk analysis of...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2020" }, { "code": null, "e": 702, "s": 28, "text": "Neural networks also known as neural nets is a type of algorithm in machine learning and artificial intelligence that works the same as the human brain operates. The artificia...
Python | math.cos() function
20 Mar, 2019 In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.cos() function returns the cosine of value passed as argument. The value passed in this function should be in radians. Syntax: math.cos(x) Parameter:x : value to be passed to cos() R...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Mar, 2019" }, { "code": null, "e": 298, "s": 54, "text": "In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.cos() function returns the cosine of value passed...
Introduction to Gradle
25 Aug, 2021 Gradle is an excellent open-source construction tool that is capable of the development of any kind of software. This tool was developed by a gaggle of developers named Hans Dockter, Szczepan Faber Adam Murdoch, Luke Daley, Peter Niederwieser, Daz DeBoer, and Rene Gröschkebefore 13 years before. It is an ...
[ { "code": null, "e": 53, "s": 25, "text": "\n25 Aug, 2021" }, { "code": null, "e": 705, "s": 53, "text": "Gradle is an excellent open-source construction tool that is capable of the development of any kind of software. This tool was developed by a gaggle of developers named Hans ...
Find the middle digit of a given Number
06 May, 2021 Given a number N, the task is to find the middle digit of the given number N. If the number has two middle digits then print the first middle digit. Examples: Input: N = 12345 Output: 3 Input: N = 98562 Output: 5 Approach: The middle digit of any number N can be given by The length(len) of the given N...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 May, 2021" }, { "code": null, "e": 201, "s": 52, "text": "Given a number N, the task is to find the middle digit of the given number N. If the number has two middle digits then print the first middle digit." }, { "code": nul...
Python | Numpy np.cholesky() method
11 Nov, 2019 With the help of np.cholesky() method, we can get the cholesky decomposition by using np.cholesky() method. Syntax : np.cholesky(matrix)Return : Return the cholesky decomposition. Example #1 :In this example we can see that by using np.cholesky() method, we are able to get the cholesky decomposition in the...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Nov, 2019" }, { "code": null, "e": 136, "s": 28, "text": "With the help of np.cholesky() method, we can get the cholesky decomposition by using np.cholesky() method." }, { "code": null, "e": 208, "s": 136, "text":...
CSS | word-wrap Property
02 Jan, 2019 The word-wrap property in CSS is used to break long word and wrap into the next line. It defines whether to break words when the content exceeds the boundaries of its container. Syntax: word-wrap: normal|break-word|initial|inherit; Property Value: normal: It is the default value, The lines can only be brok...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jan, 2019" }, { "code": null, "e": 232, "s": 54, "text": "The word-wrap property in CSS is used to break long word and wrap into the next line. It defines whether to break words when the content exceeds the boundaries of its contain...
Scala Identifiers
11 Nov, 2021 In programming languages, Identifiers are used for identification purpose. In Scala, an identifier can be a class name, method name, variable name or an object name. For example : class GFG{ var a: Int = 20 } object Main { def main(args: Array[String]) { var ob = new GFG(); } } In the...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Nov, 2021" }, { "code": null, "e": 236, "s": 54, "text": "In programming languages, Identifiers are used for identification purpose. In Scala, an identifier can be a class name, method name, variable name or an object name. For exam...
File Handling in R Programming
22 Jul, 2020 In R Programming, handling of files such as reading and writing files can be done by using in-built functions present in R base package. In this article, let us discuss reading and writing of CSV files, creating a file, renaming a file, check the existence of the file, listing all files in the working dire...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2020" }, { "code": null, "e": 382, "s": 28, "text": "In R Programming, handling of files such as reading and writing files can be done by using in-built functions present in R base package. In this article, let us discuss readin...
String Subsequence Game | Practice | GeeksforGeeks
Given a string return all unique possible subsequences which start with vowel and end with consonant. A String is a subsequence of a given String, that is generated by deleting some character of a given string without changing its order. NOTE: Return all the unique subsequences in lexicographically sorted order. Exam...
[ { "code": null, "e": 565, "s": 238, "text": "Given a string return all unique possible subsequences which start with vowel and end with consonant. A String is a subsequence of a given String, that is generated by deleting some character of a given string without changing its order.\nNOTE: Return all...
ISNUMERIC() Function in SQL Server
18 Jan, 2021 ISNUMERIC() function :This function in SQL Server is used to check if the stated expression is numeric or not. Features : This function is used to check if the given expression is numeric or not. This function returns 1 if the given expression is in numerical form. This function returns 0 if the given expr...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jan, 2021" }, { "code": null, "e": 139, "s": 28, "text": "ISNUMERIC() function :This function in SQL Server is used to check if the stated expression is numeric or not." }, { "code": null, "e": 150, "s": 139, "tex...
Minimize the absolute difference of sum of two subsets
08 Jun, 2022 Given a number n, divide first n natural numbers (1, 2, ...n) into two subsets such that difference between sums of two subsets is minimum.Examples: Input : n = 4 Output : First subset sum = 5, Second subset sum = 5. Difference = 0 Explanation: Subset 1: 1 4 Subset 2: 2 3 Input : n ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jun, 2022" }, { "code": null, "e": 205, "s": 54, "text": "Given a number n, divide first n natural numbers (1, 2, ...n) into two subsets such that difference between sums of two subsets is minimum.Examples: " }, { "code": n...
Python | Pandas Series.str.startswith()
17 Sep, 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 startswith() is yet another method to search and filter text data in Series or Data Fr...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Sep, 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...
How to check if the provided value is an object created by the Object constructor in JavaScript ?
15 Apr, 2021 In this article, we will learn how to check if the provided value is an object created by the Object constructor in JavaScript. Almost all the values in JavaScript are objects except primitive values. Approach: We know that an object will have its own properties and methods. For any JavaScript object, ther...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2021" }, { "code": null, "e": 229, "s": 28, "text": "In this article, we will learn how to check if the provided value is an object created by the Object constructor in JavaScript. Almost all the values in JavaScript are objects...
Seaborn.barplot() method in Python
16 Jun, 2021 Seaborn is a Python data visualization library based on Matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. There is just something extraordinary about a well-designed visualization. The colors stand out, the layers blend nicely together, the contours...
[ { "code": null, "e": 53, "s": 25, "text": "\n16 Jun, 2021" }, { "code": null, "e": 492, "s": 53, "text": "Seaborn is a Python data visualization library based on Matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. There is j...
Find Excel column number from column title
15 Nov, 2021 We have discussed Conversion from column number to Excel Column name. In this post, reverse is discussed.Given a column title as appears in an Excel sheet, return its corresponding column number. column column number A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 Examples: ...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Nov, 2021" }, { "code": null, "e": 251, "s": 54, "text": "We have discussed Conversion from column number to Excel Column name. In this post, reverse is discussed.Given a column title as appears in an Excel sheet, return its corresp...
Python | Measure similarity between two sentences using cosine similarity
10 Jul, 2020 Cosine similarity is a measure of similarity between two non-zero vectors of an inner product space that measures the cosine of the angle between them.Similarity = (A.B) / (||A||.||B||) where A and B are vectors. Cosine similarity and nltk toolkit module are used in this program. To execute this program nl...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jul, 2020" }, { "code": null, "e": 241, "s": 28, "text": "Cosine similarity is a measure of similarity between two non-zero vectors of an inner product space that measures the cosine of the angle between them.Similarity = (A.B) / (||...
Python | Change column names and row indexes in Pandas DataFrame
16 May, 2020 Given a Pandas DataFrame, let’s see how to change its column names and row indexes. About Pandas DataFramePandas DataFrame are rectangular grids which are used to store data. It is easy to visualize and work with data when stored in dataFrame. It consists of rows and columns. Each row is a measurement of s...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 May, 2020" }, { "code": null, "e": 112, "s": 28, "text": "Given a Pandas DataFrame, let’s see how to change its column names and row indexes." }, { "code": null, "e": 272, "s": 112, "text": "About Pandas DataFrame...
numpy.roots() function – Python
11 Jun, 2020 numpy.roots() function return the roots of a polynomial with coefficients given in p. The values in the rank-1 array p are coefficients of a polynomial. If the length of p is n+1 then the polynomial is described by: p[0] * x**n + p[1] * x**(n-1) + ... + p[n-1]*x + p[n] Syntax : numpy.roots(p) Parameters :p...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jun, 2020" }, { "code": null, "e": 298, "s": 28, "text": "numpy.roots() function return the roots of a polynomial with coefficients given in p. The values in the rank-1 array p are coefficients of a polynomial. If the length of p is ...
Selecting rows in pandas DataFrame based on conditions - GeeksforGeeks
10 Jun, 2021 Let’s see how to Select rows based on some conditions in Pandas DataFrame. YouTubeGeeksforGeeks507K subscribersSelecting Rows in Pandas DataFrame Based on Conditions | GeeksforGeeksWatch laterShareCopy linkInfoShoppingTap to unmuteIf playback doesn't begin shortly, try restarting your device.You're signed ...
[ { "code": null, "e": 26103, "s": 26075, "text": "\n10 Jun, 2021" }, { "code": null, "e": 26178, "s": 26103, "text": "Let’s see how to Select rows based on some conditions in Pandas DataFrame." }, { "code": null, "e": 27031, "s": 26178, "text": "YouTubeGeeksfor...
The Battle of the Neighborhoods — Open a Movie Theater in Montreal | by Tony Xu | Towards Data Science
I followed IBM Data Science Professional Certificate in Coursera, it’s composed of 9 courses in this professional certificate. There are pretty good examples of the courses. The final assignment is to finish a project called the Capstone project which requests you to leverage Foursquare APIs to fetch the data from API ...
[ { "code": null, "e": 346, "s": 172, "text": "I followed IBM Data Science Professional Certificate in Coursera, it’s composed of 9 courses in this professional certificate. There are pretty good examples of the courses." }, { "code": null, "e": 657, "s": 346, "text": "The final as...