title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
MySQL - PHP Syntax
MySQL works very well in combination of various programming languages like PERL, C, C++, JAVA and PHP. Out of these languages, PHP is the most popular one because of its web application development capabilities. This tutorial focuses heavily on using MySQL in a PHP environment. If you are interested in MySQL with PERL,...
[ { "code": null, "e": 2545, "s": 2333, "text": "MySQL works very well in combination of various programming languages like PERL, C, C++, JAVA and PHP. Out of these languages, PHP is the most popular one because of its web application development capabilities." }, { "code": null, "e": 2704...
CakePHP - Project Configuration
In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP. Configuration CakePHP comes with one configuration file by default, and we can modify it according to our needs. There is one dedicated folder “config” for this purpose. CakeP...
[ { "code": null, "e": 2387, "s": 2242, "text": "In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP." }, { "code": null, "e": 2609, "s": 2387, "text": "Configuration CakePHP comes with one ...
Batch Script - CHOICE
This batch command provides a list of options to the user. CHOICE /c [Options] /m [Message] Where Options is the list of options to provide to the user and Message is the string message which needs to be displayed. @echo off echo "What is the file size you what" echo "A:10MB" echo "B:20MB" echo "C:30MB" choice /c...
[ { "code": null, "e": 2228, "s": 2169, "text": "This batch command provides a list of options to the user." }, { "code": null, "e": 2262, "s": 2228, "text": "CHOICE /c [Options] /m [Message]\n" }, { "code": null, "e": 2385, "s": 2262, "text": "Where Options is ...
What is WPF?
07 Aug, 2019 Windows Presentation Foundation(WPF) is a development framework used to create a desktop application. It is a part of the .NET framework. The WPF has a resolution-independent and vector-based rendering engine which is helpful to deal with modern graphics hardware. The latest version of WPF is 4.6. In this ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Aug, 2019" }, { "code": null, "e": 458, "s": 28, "text": "Windows Presentation Foundation(WPF) is a development framework used to create a desktop application. It is a part of the .NET framework. The WPF has a resolution-independent ...
Guidelines in Android ConstraintLayout
13 Sep, 2021 Guidelines in Constraint Layout are invisible lines that are not visible to users but help developers to design the layout easily and constrain views to these guidelines, so that design can be more clear and interactive. But guidelines only work in Constraint Layout as guidelines require something to be co...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Sep, 2021" }, { "code": null, "e": 354, "s": 28, "text": "Guidelines in Constraint Layout are invisible lines that are not visible to users but help developers to design the layout easily and constrain views to these guidelines, so t...
Replace consonants with next immediate consonants alphabetically in a String
21 Jun, 2022 Given a string which contains lowercase English alphabets. The task is to replace each consonant with the next immediate consonant that comes in English alphabets.Let’s say we have to replace character , it will be replaced by . Another example, let’s say we have to replace character , the next immediate c...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2022" }, { "code": null, "e": 536, "s": 54, "text": "Given a string which contains lowercase English alphabets. The task is to replace each consonant with the next immediate consonant that comes in English alphabets.Let’s say w...
Program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + ... + n/a^n)
04 Jul, 2022 Given two integers and . The task is to find the sum of the series 1/a + 2/a2 + 3/a3 + ... + n/an.Examples: Input: a = 3, n = 3 Output: 0.6666667 The series is 1/3 + 1/9 + 1/27 which is equal to 0.6666667Input: a = 5, n = 4 Output: 0.31039998 Approach: Run a loop from 1 to n and get the term of the s...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jul, 2022" }, { "code": null, "e": 138, "s": 28, "text": "Given two integers and . The task is to find the sum of the series 1/a + 2/a2 + 3/a3 + ... + n/an.Examples: " }, { "code": null, "e": 275, "s": 138, "text...
How to put the title inside the plot using ggplot2 in R?
03 Mar, 2021 A title to a plot gives information about the graph so that it is easier for the reader to interpret what relations the variables are supposed to depict. This article discusses how we can put a title inside a plot and further discusses various ways in which the title can be formatted. The examples are give...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Mar, 2021" }, { "code": null, "e": 357, "s": 28, "text": "A title to a plot gives information about the graph so that it is easier for the reader to interpret what relations the variables are supposed to depict. This article discusse...
How to write a cell phone number in an international way using JavaScript ?
31 Dec, 2019 E.164 format is used to convert a phone number into an international format. It is an internationally recognized standard that defines a general numbering plan. The international number format according to E.164 is as follows: [+][country code][area code][local phone number] +: Plus sign country code: Inte...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Dec, 2019" }, { "code": null, "e": 189, "s": 28, "text": "E.164 format is used to convert a phone number into an international format. It is an internationally recognized standard that defines a general numbering plan." }, { ...
React.js routing
Before React Router v4, the routing in react was static but after v4 update its dynamic. In single page applications, we have only one page index.html and different components which gets displayed based on routes. In non spa web applications, server returns a page on request. To start with routing , first install the r...
[ { "code": null, "e": 1401, "s": 1187, "text": "Before React Router v4, the routing in react was static but after v4 update its dynamic. In single page applications, we have only one page index.html and different components which gets displayed based on routes." }, { "code": null, "e": 15...
Union() function in Python
08 Oct, 2021 Python set Union() function returns a new set which contains all the items from the original set. Union of two given sets is the smallest set which contains all the elements of both the sets. Union of two given sets A and B is a set which consists of all the elements of A and all the elements of B such tha...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Oct, 2021" }, { "code": null, "e": 152, "s": 54, "text": "Python set Union() function returns a new set which contains all the items from the original set." }, { "code": null, "e": 387, "s": 152, "text": "Union o...
Count array elements having sum of digits equal to K
29 Jan, 2022 Given an array arr[] of size N, the task is to count the number of array elements whose sum of digits is equal to K. Examples: Input: arr[] = {23, 54, 87, 29, 92, 62}, K = 11Output: 2Explanation: 29 = 2 + 9 = 1192 = 9 + 2 = 11 Input: arr[]= {11, 04, 57, 99, 98, 32}, K = 18Output: 1 Approach: Follow the ste...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Jan, 2022" }, { "code": null, "e": 171, "s": 54, "text": "Given an array arr[] of size N, the task is to count the number of array elements whose sum of digits is equal to K." }, { "code": null, "e": 181, "s": 171, ...
Differences between HashMap and HashTable in Java
23 Jan, 2022 HashMap and Hashtable store key and value pairs in a hash table. When using a Hashtable or HashMap, we specify an object that is used as a key and the value that you want to be linked to that key. The key is then hashed, and the resulting hash code is used as the index at which the value is stored within t...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Jan, 2022" }, { "code": null, "e": 417, "s": 52, "text": "HashMap and Hashtable store key and value pairs in a hash table. When using a Hashtable or HashMap, we specify an object that is used as a key and the value that you want to ...
How to build a simple Discord bot using Node.js ?
03 Nov, 2020 Discord is an instant messaging application mostly used by developers and gamer communities. Many discord servers use bots to automate the task. Bots are programs that allow us to automate some tasks like messaging, maintaining our server, etc. Discord provides us with many built-in bots. Discord also allo...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Nov, 2020" }, { "code": null, "e": 390, "s": 54, "text": "Discord is an instant messaging application mostly used by developers and gamer communities. Many discord servers use bots to automate the task. Bots are programs that allow ...
Java Integer bitCount() method
05 Dec, 2018 The bitCount() method of Integer class of java.lang package returns the count of the number of one-bits in the two’s complement binary representation of an int value. This function is sometimes referred to as the population count. Syntax : public static int bitCount(int n) Parameter : n : the value whose b...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Dec, 2018" }, { "code": null, "e": 283, "s": 52, "text": "The bitCount() method of Integer class of java.lang package returns the count of the number of one-bits in the two’s complement binary representation of an int value. This fu...
Program for Fibonacci numbers in PL/SQL
Given with ‘n’ numbers the task is to generate the fibonacci numbers in PL/SQL starting from 0 to n where fibonacci series of integer is in the form 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 Where, integer 0 and 1 will have fixed space, after that two digits are added for example, 0+1=1(3rd place) 1+1=2(4th place) 2+1=3(5th plac...
[ { "code": null, "e": 1336, "s": 1187, "text": "Given with ‘n’ numbers the task is to generate the fibonacci numbers in PL/SQL starting from 0 to n where fibonacci series of integer is in the form" }, { "code": null, "e": 1368, "s": 1336, "text": "0, 1, 1, 2, 3, 5, 8, 13, 21, 34" ...
Angular 10 (focus) Event
04 Jul, 2021 In this article, we are going to see what is focus event in Angular 10 and how to use it. The (focus) event is triggered when an element gains its focus. Syntax: <input (focus)='functionName()'/> NgModule: Module used by focus event is: CommonModule Approach: Create an Angular app to be used. In app.compo...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jul, 2021" }, { "code": null, "e": 182, "s": 28, "text": "In this article, we are going to see what is focus event in Angular 10 and how to use it. The (focus) event is triggered when an element gains its focus." }, { "code":...
Alter a MySQL column to be AUTO_INCREMENT?
Let’s say we have a table and now there is a requirement to add AUTO_INCREMENT on column name. For that, use the MODIFY command. Here, we will create a demo table first. mysql> create table AddingAutoIncrement -> ( -> Id int, -> Name varchar(200), -> Primary key(Id) -> ); Query OK, 0 rows affected (0.47...
[ { "code": null, "e": 1316, "s": 1187, "text": "Let’s say we have a table and now there is a requirement to add AUTO_INCREMENT on column name. For that, use the MODIFY command." }, { "code": null, "e": 1357, "s": 1316, "text": "Here, we will create a demo table first." }, { ...
How to load window width value to SCSS variable ?
02 Mar, 2021 The task is to load the window width value to an SCSS variable and use it. Let us take a brief introduction to an SCSS. SCSS Variables can store any kind of value color, font-family, font-size, clip-path values, etc, and are mainly used to maintain the reusability of code across the stylesheets. Approach: ...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Mar, 2021" }, { "code": null, "e": 174, "s": 54, "text": "The task is to load the window width value to an SCSS variable and use it. Let us take a brief introduction to an SCSS." }, { "code": null, "e": 351, "s": 174...
JavaScript typeof operator
09 Sep, 2020 Below is the example of the typeof operator. Example:<script>// "string"document.write(typeof 'mukul'+"<br>") // "number"document.write(typeof 25 +"<br>") // "undefined"document.write(typeof variable)</script> <script>// "string"document.write(typeof 'mukul'+"<br>") // "number"document.write(typeof 2...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Sep, 2020" }, { "code": null, "e": 73, "s": 28, "text": "Below is the example of the typeof operator." }, { "code": null, "e": 242, "s": 73, "text": "Example:<script>// \"string\"document.write(typeof 'mukul'+\"<b...
File.Open(String, FileMode) Method in C# with Examples - GeeksforGeeks
05 Mar, 2021 File.Open(String, FileMode) is an inbuilt File class method which is used to open a FileStream on the specified path with read/write access with no sharing.Syntax: public static System.IO.FileStream Open (string path, System.IO.FileMode mode); Parameter: This function accepts two parameters which are ill...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n05 Mar, 2021" }, { "code": null, "e": 24077, "s": 23911, "text": "File.Open(String, FileMode) is an inbuilt File class method which is used to open a FileStream on the specified path with read/write access with no sharing.Syntax:...
Transpositions in SQL. How to handle dynamic transposition... | by Jerry Cruise | Towards Data Science
A transposition is to rotate information from one row or column to another to change the data layout, for the purpose of making observations from a new perspective. Some transposition algorithms are simple, such as row to column, column to row and bidirectional transposition. Others are not so simple, such as dynamic t...
[ { "code": null, "e": 641, "s": 172, "text": "A transposition is to rotate information from one row or column to another to change the data layout, for the purpose of making observations from a new perspective. Some transposition algorithms are simple, such as row to column, column to row and bidirec...
Database - DAVERAGE Function
The DAVERAGE function returns the average of the values in a column of a list or database that match the conditions specified. DAVERAGE (database, field, criteria) The range of cells that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns o...
[ { "code": null, "e": 1981, "s": 1854, "text": "The DAVERAGE function returns the average of the values in a column of a list or database that match the conditions specified." }, { "code": null, "e": 2019, "s": 1981, "text": "DAVERAGE (database, field, criteria)\n" }, { "c...
Python 3 - List reverse() Method
The reverse() method reverses objects of list in place. Following is the syntax for reverse() method − list.reverse() NA This method does not return any value but reverse the given object from the list. The following example shows the usage of reverse() method. #!/usr/bin/python3 list1 = ['physics', 'Biology', 'chemi...
[ { "code": null, "e": 2396, "s": 2340, "text": "The reverse() method reverses objects of list in place." }, { "code": null, "e": 2443, "s": 2396, "text": "Following is the syntax for reverse() method −" }, { "code": null, "e": 2459, "s": 2443, "text": "list.rev...
How to Analyse Data in Python without Coding | by Tobias Krabel | Towards Data Science
Disclaimer: ⚠️ Silly jokes ahead! Also, I’m a co-creator of bamboolib. Data is everywhere, and now more than ever, we all have free tools at our fingertips to explore them. One of the most popular python libraries for data wrangling and exploration is pandas (I guess you’ve read that sentence for the 1,354th time now)....
[ { "code": null, "e": 242, "s": 171, "text": "Disclaimer: ⚠️ Silly jokes ahead! Also, I’m a co-creator of bamboolib." }, { "code": null, "e": 703, "s": 242, "text": "Data is everywhere, and now more than ever, we all have free tools at our fingertips to explore them. One of the mo...
Write a program to reverse an array or string
08 Sep, 2020 Given an array (or string), the task is to reverse the array/string.Examples : Input : arr[] = {1, 2, 3} Output : arr[] = {3, 2, 1} Input : arr[] = {4, 5, 1, 2} Output : arr[] = {2, 1, 5, 4} Iterative way : 1) Initialize start and end indexes as start = 0, end = n-1 2) In a loop, swap arr[sta...
[ { "code": null, "e": 53, "s": 25, "text": "\n08 Sep, 2020" }, { "code": null, "e": 134, "s": 53, "text": "Given an array (or string), the task is to reverse the array/string.Examples : " }, { "code": null, "e": 253, "s": 134, "text": "Input : arr[] = {1, 2, ...
java.time.Duration.between() Method Example
The java.time.Duration.between() method obtains a Duration representing the duration between two temporal objects. Following is the declaration for java.time.Duration.between() method. public static Duration between(Temporal startInclusive, Temporal endExclusive) startInclusive − the start instant, inclusive, not null...
[ { "code": null, "e": 2164, "s": 2049, "text": "The java.time.Duration.between() method obtains a Duration representing the duration between two temporal objects." }, { "code": null, "e": 2234, "s": 2164, "text": "Following is the declaration for java.time.Duration.between() metho...
How to add Header to Dataframe in R ?
27 May, 2021 A header necessarily stores the names or headings for each of the columns. It basically helps the user to identify the role of the respective column in the data frame. The top row containing column names is called the header row of the data frame. In this article, we will learn how to add a Header to a Dat...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2021" }, { "code": null, "e": 373, "s": 28, "text": "A header necessarily stores the names or headings for each of the columns. It basically helps the user to identify the role of the respective column in the data frame. The top...
Time complexity of all permutations of a string
02 Feb, 2018 Time complexity of printing all permutations of a string. 1. void perm(String str){ 2. perm(str, ""); 3. } 4. 5. void perm(String str, String prefix){ 6. if(str.length() == 0){ 7. System.out.println(prefix); 8. } else{ 9. for(int i = 0; i < str.length(); i++){ 10. Strin...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Feb, 2018" }, { "code": null, "e": 112, "s": 54, "text": "Time complexity of printing all permutations of a string." }, { "code": null, "e": 518, "s": 112, "text": "1. void perm(String str){\n2. perm(str, \"\"...
Kotlin arrayListOf()
26 Nov, 2019 The arrayList() is function of Kotlin ArrayList class, which is used to create a new ArrayList. ArrayList is mutable which means that we can modify the content of ArrayList. Syntax: fun arrayListOf() It is used to create an empty new ArrayList. fun arrayListOf(vararg elements: T) It is used to create a...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Nov, 2019" }, { "code": null, "e": 202, "s": 28, "text": "The arrayList() is function of Kotlin ArrayList class, which is used to create a new ArrayList. ArrayList is mutable which means that we can modify the content of ArrayList." ...
How to randomly insert NaN in a matrix with NumPy in Python ?
21 May, 2021 Prerequisites: Numpy In this article, let’s see how to generate a Python Script that randomly inserts Nan into a matrix using Numpy. Given below are 3 methods to do the same: ravel() function returns contiguous flattened array(1D array with all the input-array elements and with the same type as it). A copy...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 May, 2021" }, { "code": null, "e": 49, "s": 28, "text": "Prerequisites: Numpy" }, { "code": null, "e": 203, "s": 49, "text": "In this article, let’s see how to generate a Python Script that randomly inserts Nan in...
std::find in C++
12 May, 2022 Finds the element in the given range of numbers. Returns an iterator to the first element in the range [first,last) that compares equal to val. If no such element is found, the function returns last. Function Template : InputIterator find (InputIterator first, InputIterator last, const T& val) first,last :...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 May, 2022" }, { "code": null, "e": 272, "s": 52, "text": "Finds the element in the given range of numbers. Returns an iterator to the first element in the range [first,last) that compares equal to val. If no such element is found, t...
EXPORT_SET() function in MySQL
30 Dec, 2020 EXPORT_SET() :This function helps to return a string which will show the bits in number. The function requires 5 arguments for its functioning. The function converts first argument i.e integer to binary digits, then returns “on” if binary digit is 1 and “off” if binary digit is 0. Syntax : EXPORT_SET (bits...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Dec, 2020" }, { "code": null, "e": 310, "s": 28, "text": "EXPORT_SET() :This function helps to return a string which will show the bits in number. The function requires 5 arguments for its functioning. The function converts first arg...
Pizza cut problem (Or Circle Division by Lines)
16 Jun, 2022 Given number of cuts, find the maximum number of possible pieces.Examples: Input : 2 Output : 4 Input : 3 Output : 7 This problem is nothing but The Lazy Caterer’s Problem and has below formula.Maximum number of pieces = 1 + n*(n+1)/2Refer this for proof. C++ Java Python3 C# PHP Javascript // C++ p...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jun, 2022" }, { "code": null, "e": 129, "s": 52, "text": "Given number of cuts, find the maximum number of possible pieces.Examples: " }, { "code": null, "e": 174, "s": 129, "text": "Input : 2\nOutput : 4\n\nIn...
PostgreSQL – Rename Table
28 Aug, 2020 PostgreSQL has a RENAME clause that is used with the ALTER TABLE statement to rename the name of an existing table. Syntax: ALTER TABLE table_name RENAME TO new_table_name; In the above syntax: First, specify the name of the table which you want to rename after the ALTER TABLE clause. Second, give the new...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 144, "s": 28, "text": "PostgreSQL has a RENAME clause that is used with the ALTER TABLE statement to rename the name of an existing table." }, { "code": null, "e": 202, "s": 144, ...
IEEE 802.6 (DQDB)
24 Jan, 2020 IEEE 802.6 standard i.e. DQDB(Distributed Queue Dual Bus) is a MAN(Metropolitan Area Network) protocol. It can be defined as a high speed shared medium access control protocol that is used over a bus network. It has two unidirectional buses, for controlling purposes, where the bus can carry data, video, an...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jan, 2020" }, { "code": null, "e": 548, "s": 28, "text": "IEEE 802.6 standard i.e. DQDB(Distributed Queue Dual Bus) is a MAN(Metropolitan Area Network) protocol. It can be defined as a high speed shared medium access control protocol...
What is RC4 Encryption?
06 Dec, 2021 RC4 means Rivest Cipher 4 invented by Ron Rivest in 1987 for RSA Security. It is a Stream Ciphers. Stream Ciphers operate on a stream of data byte by byte. RC4 stream cipher is one of the most widely used stream ciphers because of its simplicity and speed of operation. It is a variable key-size stream ciph...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Dec, 2021" }, { "code": null, "e": 589, "s": 52, "text": "RC4 means Rivest Cipher 4 invented by Ron Rivest in 1987 for RSA Security. It is a Stream Ciphers. Stream Ciphers operate on a stream of data byte by byte. RC4 stream cipher ...
SoapUI Assertion - XQuery Match
XQuery uses an XQuery expression to select content from the target property. It compares the result of an XQuery expression to an expected value. Step 1 − After clicking Add Assertion, select Assertion Category – Property Content. Step 2 − Select Assertion Type – XQuery Match. Step 3 − Click Add. Step 4 − Similar to XP...
[ { "code": null, "e": 2414, "s": 2268, "text": "XQuery uses an XQuery expression to select content from the target property. It compares the result of an XQuery expression to an expected value." }, { "code": null, "e": 2499, "s": 2414, "text": "Step 1 − After clicking Add Assertio...
Align an element with the bottom of the parent element's font in Bootstrap 4
Use align-text-bottom class to align an element with the bottom of the parent element's font. You need to set the align-text-bottom class as shown below − <span class="align-text-bottom"> Bottom Text </span> You can try to run the following code to implement the align-text-bottom class in Bootstrap 4 − Live Demo <!DO...
[ { "code": null, "e": 1156, "s": 1062, "text": "Use align-text-bottom class to align an element with the bottom of the parent element's font." }, { "code": null, "e": 1217, "s": 1156, "text": "You need to set the align-text-bottom class as shown below −" }, { "code": null,...
Tk - Events
Events in its simplest form is handled with the help of commands. A simple example for event handling is event handling with button and is shown below − #!/usr/bin/wish proc myEvent { } { puts "Event triggered" } pack [button .myButton1 -text "Button 1" -command myEvent] When we run the above program, we will ge...
[ { "code": null, "e": 2354, "s": 2201, "text": "Events in its simplest form is handled with the help of commands. A simple example for event handling is event handling with button and is shown below −" }, { "code": null, "e": 2480, "s": 2354, "text": "#!/usr/bin/wish\n\nproc myEve...
UnitTest Framework - Exceptions Test
Python testing framework provides the following assertion methods to check that exceptions are raised. Test that an exception (first argument) is raised when a function is called with any positional or keyword arguments. The test passes if the expected exception is raised, is an error if another exception is raised, or...
[ { "code": null, "e": 2201, "s": 2098, "text": "Python testing framework provides the following assertion methods to check that exceptions are raised." }, { "code": null, "e": 2560, "s": 2201, "text": "Test that an exception (first argument) is raised when a function is called wit...
Spirally traversing a matrix | Practice | GeeksforGeeks
Given a matrix of size r*c. Traverse the matrix in spiral form. Example 1: Input: r = 4, c = 4 matrix[][] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15,16}} Output: 1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10 Explanation: Example 2: Input: r = 3, c = 4 matrix[][] = {{1, 2, ...
[ { "code": null, "e": 302, "s": 238, "text": "Given a matrix of size r*c. Traverse the matrix in spiral form." }, { "code": null, "e": 313, "s": 302, "text": "Example 1:" }, { "code": null, "e": 504, "s": 313, "text": "Input:\nr = 4, c = 4\nmatrix[][] = {{1, 2,...
C# - Passing Parameters by Output
A return statement can be used for returning only one value from a function. However, using output parameters, you can return two values from a function. Output parameters are similar to reference parameters, except that they transfer data out of the method rather than into it. The following example illustrates this − ...
[ { "code": null, "e": 2549, "s": 2270, "text": "A return statement can be used for returning only one value from a function. However, using output parameters, you can return two values from a function. Output parameters are similar to reference parameters, except that they transfer data out of the me...
Find sum of divisors | Practice | GeeksforGeeks
Given a natural number N, the task is to find the sum of the divisors of all the divisors of N. Example 1: Input: N = 54 Output: 232 Explanation: Divisors of 54 = 1, 2, 3, 6, 9, 18, 27, 54. Sum of divisors of 1, 2, 3, 6, 9, 18, 27, 54 are 1, 3, 4, 12, 13, 39, 40, 120 respectively. Sum of divisors of all the divisors o...
[ { "code": null, "e": 334, "s": 238, "text": "Given a natural number N, the task is to find the sum of the divisors of all the divisors of N." }, { "code": null, "e": 345, "s": 334, "text": "Example 1:" }, { "code": null, "e": 609, "s": 345, "text": "Input:\nN ...
CSS Class Selector - GeeksforGeeks
11 Oct, 2021 The .class selector is used to select all elements which belong to a particular class attribute. In order to select the elements with a particular class, use the period (.) character specifying the class name ie., it will match the HTML element based on the contents of their class attribute. The class name...
[ { "code": null, "e": 28071, "s": 28043, "text": "\n11 Oct, 2021" }, { "code": null, "e": 28436, "s": 28071, "text": "The .class selector is used to select all elements which belong to a particular class attribute. In order to select the elements with a particular class, use the p...
HTML - <frame> Tag
The HTML <frame> tag is used to specify each frame within a frameset tag. This tag is not supported in HTML5. <!DOCTYPE html> <html> <head> <title>HTML frame Tag</title> </head> <frameset cols = "200, *"> <frame src = "/html/menu.htm" name = "menu_page" /> <frame src = "/html/main.htm" name...
[ { "code": null, "e": 2484, "s": 2374, "text": "The HTML <frame> tag is used to specify each frame within a frameset tag. This tag is not supported in HTML5." }, { "code": null, "e": 2869, "s": 2484, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML frame Tag</title...
Reverse a linked list | Practice | GeeksforGeeks
Given a linked list of N nodes. The task is to reverse this list. Example 1: Input: LinkedList: 1->2->3->4->5->6 Output: 6 5 4 3 2 1 Explanation: After reversing the list, elements are 6->5->4->3->2->1. Example 2: Input: LinkedList: 2->7->8->9->10 Output: 10 9 8 7 2 Explanation: After reversing the list, elements are...
[ { "code": null, "e": 304, "s": 238, "text": "Given a linked list of N nodes. The task is to reverse this list." }, { "code": null, "e": 315, "s": 304, "text": "Example 1:" }, { "code": null, "e": 443, "s": 315, "text": "Input:\nLinkedList: 1->2->3->4->5->6\nOu...
How to detect Spam using Natural Language Processing (NLP)? | by Patrizia Castagno | Oct, 2020 | Medium | Towards Data Science
Humans master millions of words, but computationally speaking: how can we manipulate large amounts of text using programming techniques? The idea that computers can understand ordinary languages and hold conversations with human beings has been a staple of science fiction. However, the first half of the twentieth centu...
[ { "code": null, "e": 309, "s": 172, "text": "Humans master millions of words, but computationally speaking: how can we manipulate large amounts of text using programming techniques?" }, { "code": null, "e": 599, "s": 309, "text": "The idea that computers can understand ordinary l...
Mining Data on LinkedIn. Working with job titles, colleagues and... | by Anh T. Dang | Towards Data Science
LinkedIn is a social networking site focused on professional and business relationships. In this article, I will introduce some ways for mining data on it. Making LinkedIn API Requests by using LinkedIn OAuth credentials. Downloading LinkedIn connections as a CSV File. Doing some data analysis. Before we get started, k...
[ { "code": null, "e": 327, "s": 171, "text": "LinkedIn is a social networking site focused on professional and business relationships. In this article, I will introduce some ways for mining data on it." }, { "code": null, "e": 393, "s": 327, "text": "Making LinkedIn API Requests b...
CakePHP - Quick Guide
CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks. The advantages of using CakePHP are listed below − Open Source Open Source MVC Framework MVC Framework Templating Engine Templa...
[ { "code": null, "e": 2435, "s": 2242, "text": "CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks." }, { "code": null, "e": 2486, "s": 2435, ...
Ridiculously Useful Python One-Liners | Towards Data Science
Python offers a unique set of features! Python programmers use them to write code quickly and in a more Pythonic way. Here, I am discussing the 5 most powerful one-line codes which I mastered (and certainly you can) in 1 minute or less. What do I mean by Powerful One-Liners?? These one-line codes will keep your program...
[ { "code": null, "e": 212, "s": 172, "text": "Python offers a unique set of features!" }, { "code": null, "e": 290, "s": 212, "text": "Python programmers use them to write code quickly and in a more Pythonic way." }, { "code": null, "e": 409, "s": 290, "text": ...
C - Pre-Processors
C - Programming HOME C - Basic Introduction C - Program Structure C - Reserved Keywords C - Basic Datatypes C - Variable Types C - Storage Classes C - Using Constants C - Operator Types C - Control Statements C - Input and Output C - Pointing to Data C - Using Functions C - Play with Strings C - Structured Datatypes C ...
[ { "code": null, "e": 1475, "s": 1454, "text": "C - Programming HOME" }, { "code": null, "e": 1498, "s": 1475, "text": "C - Basic Introduction" }, { "code": null, "e": 1520, "s": 1498, "text": "C - Program Structure" }, { "code": null, "e": 1542, ...
Shortest distance between two cells in a matrix or grid - GeeksforGeeks
10 Jan, 2022 Given a matrix of N*M order. Find the shortest distance from a source cell to a destination cell, traversing through limited cells only. Also you can move only up, down, left and right. If found output the distance else -1. s represents ‘source’ d represents ‘destination’ * represents cell you can travel 0...
[ { "code": null, "e": 24770, "s": 24742, "text": "\n10 Jan, 2022" }, { "code": null, "e": 25181, "s": 24770, "text": "Given a matrix of N*M order. Find the shortest distance from a source cell to a destination cell, traversing through limited cells only. Also you can move only up,...
Yii - Database Migration
During the developing of a database-driven application, the database structure evolves with the source code. Yii provides the database migration feature that allows you to keep track of database changes. Yii provides the following migration command line tools − Create new migrations Revert migrations Apply migrations R...
[ { "code": null, "e": 3037, "s": 2833, "text": "During the developing of a database-driven application, the database structure evolves with the source code. Yii provides the database migration feature that allows you to keep track of database changes." }, { "code": null, "e": 3095, "s...
JavaScript | array.toLocaleString() function - GeeksforGeeks
18 Nov, 2021 The array.toLocaleString() is an inbuilt function in JavaScript which is basically used to convert the element of the given array to string. Syntax: arr.toLocaleString(); Return values: It return a string representing the elements of the array. JavaScript Version: ECMAScript 1 Examples: Input: var nam...
[ { "code": null, "e": 24932, "s": 24904, "text": "\n18 Nov, 2021" }, { "code": null, "e": 25083, "s": 24932, "text": "The array.toLocaleString() is an inbuilt function in JavaScript which is basically used to convert the element of the given array to string. Syntax: " }, { ...
Mobile Testing - Quick Guide
Before we start the actual tutorial, let’s have some fun. Take a look at the following list. You can easily relate to these essential chores that we invariably have to face in today’s busy and hectic lifestyle − I want to pay my electricity bill. I want to pay my electricity bill. I need to communicate with my manager ...
[ { "code": null, "e": 2357, "s": 2145, "text": "Before we start the actual tutorial, let’s have some fun. Take a look at the following list. You can easily relate to these essential chores that we invariably have to face in today’s busy and hectic lifestyle −" }, { "code": null, "e": 2392...
Count of times the current integer has already occurred during Array traversal - GeeksforGeeks
19 Jan, 2022 Given an array arr[], the task is to find the number of times the current integer has already occurred during array traversal. Examples: Input: arr[] = {2, 3, 3, 200, 175, 2, 200, 2, 175, 3}Output: 0 0 1 0 0 1 1 2 1 2Explanation: Before the 0th index, 2 is encountered 0 times. Before the 2nd index, 3 is e...
[ { "code": null, "e": 24740, "s": 24712, "text": "\n19 Jan, 2022" }, { "code": null, "e": 24868, "s": 24740, "text": "Given an array arr[], the task is to find the number of times the current integer has already occurred during array traversal. " }, { "code": null, "e"...
Find single in an array of 2n+1 integer elements - GeeksforGeeks
30 Apr, 2021 Given an array with 2n+1 integers, n elements appear twice in arbitrary places in the array and a single integer appears only once somewhere inside. Find the lonely integer with O(n) operations and O(1) extra memory.Examples : Input : { 1, 1, 2, 2, 3, 3, 4, 4, 5} Output : 5 Input : { 7, 9, 6, 8, 3, 7, 8...
[ { "code": null, "e": 26176, "s": 26148, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26405, "s": 26176, "text": "Given an array with 2n+1 integers, n elements appear twice in arbitrary places in the array and a single integer appears only once somewhere inside. Find the lonel...
arp command in Linux with examples - GeeksforGeeks
22 Oct, 2021 arp command manipulates the System’s ARP cache. It also allows a complete dump of the ARP cache. ARP stands for Address Resolution Protocol. The primary function of this protocol is to resolve the IP address of a system to its mac address, and hence it works between level 2(Data link layer) and level 3(Net...
[ { "code": null, "e": 24392, "s": 24364, "text": "\n22 Oct, 2021" }, { "code": null, "e": 24713, "s": 24392, "text": "arp command manipulates the System’s ARP cache. It also allows a complete dump of the ARP cache. ARP stands for Address Resolution Protocol. The primary function o...
Creating custom user model using AbstractUser in django_Restframework - GeeksforGeeks
29 Nov, 2021 Every new Django project should use a custom user model. The official Django documentation says it is “highly recommended” but I’ll go a step further and say without hesitation: You are straight up crazy not to use a custom user model up front. When you start your project with a custom user model, stop to ...
[ { "code": null, "e": 24986, "s": 24958, "text": "\n29 Nov, 2021" }, { "code": null, "e": 25231, "s": 24986, "text": "Every new Django project should use a custom user model. The official Django documentation says it is “highly recommended” but I’ll go a step further and say witho...
Python | Add style to tkinter button
31 Aug, 2021 Tkinter is a Python standard library that is used to create GUI (Graphical User Interface) applications. It is one of the most commonly used packages of Python. Tkinter supports both traditional and modern graphics support with the help of Tk themed widgets. All the widgets that Tkinter also has available ...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 Aug, 2021" }, { "code": null, "e": 598, "s": 54, "text": "Tkinter is a Python standard library that is used to create GUI (Graphical User Interface) applications. It is one of the most commonly used packages of Python. Tkinter suppo...
Using Set() in Python Pangram Checking
23 Nov, 2020 Given a string check if it is Pangram or not. A pangram is a sentence containing every letter in the English Alphabet. Lowercase and Uppercase are considered the same. Examples: Input : str = 'The quick brown fox jumps over the lazy dog' Output : Yes // Contains all the characters from ‘a’ ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Nov, 2020" }, { "code": null, "e": 196, "s": 28, "text": "Given a string check if it is Pangram or not. A pangram is a sentence containing every letter in the English Alphabet. Lowercase and Uppercase are considered the same." }, ...
How to Iterate through each element in N-Dimensional matrix in MATLAB?
20 Oct, 2021 In MATLAB, a matrix is considered a two-dimensional array of numbers. Other programming languages work with numbers but in MATLAB, every number is a matrix or array. To create a matrix in MATLAB, numbers are entered in each row by adding a comma or space and the ending of each row is marked by a semicolon....
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Oct, 2021" }, { "code": null, "e": 361, "s": 53, "text": "In MATLAB, a matrix is considered a two-dimensional array of numbers. Other programming languages work with numbers but in MATLAB, every number is a matrix or array. To creat...
How to create unequal columns in Bootstrap ?
10 Aug, 2021 Bootstrap is a responsive framework created by Twitter. It is used to create responsive sites. It has a pre-defined class and design. In Bootstrap, we can add pre-defined classes into the code without writing code. We also have a predefined “.col” class to create columns. Grid Layout System: The whole wor...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Aug, 2021" }, { "code": null, "e": 328, "s": 54, "text": "Bootstrap is a responsive framework created by Twitter. It is used to create responsive sites. It has a pre-defined class and design. In Bootstrap, we can add pre-defined cla...
Immutable Set in Java
11 Dec, 2018 As the name suggest these Set are immutable. If any attempt made to add, delete and update elements in the set we will have UnsupportedOperationException. An ImmutableSet does not allow null element either. If any attempt made to create an ImmutableSet with null element, we will have NullPointerException. ...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Dec, 2018" }, { "code": null, "e": 97, "s": 52, "text": "As the name suggest these Set are immutable." }, { "code": null, "e": 207, "s": 97, "text": "If any attempt made to add, delete and update elements in the ...
Filtering rows based on column values in PySpark dataframe
29 Jun, 2021 In this article, we are going to filter the rows based on column values in PySpark dataframe. Python3 # importing moduleimport spark # importing sparksession from pyspark.sql modulefrom pyspark.sql import SparkSession # creating sparksession and giving an app namespark = SparkSession.builder.appName('spa...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2021" }, { "code": null, "e": 122, "s": 28, "text": "In this article, we are going to filter the rows based on column values in PySpark dataframe." }, { "code": null, "e": 130, "s": 122, "text": "Python3" }...
Python Operators
17 Jun, 2022 Python Operators in general are used to perform operations on values and variables. These are standard symbols used for the purpose of logical and arithmetic operations. In this article, we will look into different types of Python operators. OPERATORS: Are the special symbols. Eg- + , * , /, etc. OPERAND:...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Jun, 2022" }, { "code": null, "e": 295, "s": 52, "text": "Python Operators in general are used to perform operations on values and variables. These are standard symbols used for the purpose of logical and arithmetic operations. In t...
Web Scrapping in PHP Using Simple HTML DOM Parser
22 Nov, 2019 Web Scraping is a technique used to extract large amounts of data from websites extracted and saved to a local file in your computer or to a database or can be used as API. Data displayed by most websites can be viewed by using a web browser only. They do not offer the functionality to save a copy of this ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2019" }, { "code": null, "e": 1020, "s": 28, "text": "Web Scraping is a technique used to extract large amounts of data from websites extracted and saved to a local file in your computer or to a database or can be used as API. D...
JavaScript to keep only first N characters in a string
31 May, 2019 Given a string and the task is to keep only first n characters of the string. There are various methods to solve this problem in JavaScript, some of them are discussed below: Method 1: Using substring() Method: The string.substring() method is an inbuilt function in JavaScript which is used to return the p...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2019" }, { "code": null, "e": 203, "s": 28, "text": "Given a string and the task is to keep only first n characters of the string. There are various methods to solve this problem in JavaScript, some of them are discussed below:"...
Python program to Replace all Characters of a List Except the given character
05 Sep, 2020 Given a List. The task is to replace all the characters of the list with N except the given character. Input : test_list = [‘G’, ‘F’, ‘G’, ‘I’, ‘S’, ‘B’, ‘E’, ‘S’, ‘T’], repl_chr = ‘*’, ret_chr = ‘G’ Output : [‘G’, ‘*’, ‘G’, ‘*’, ‘*’, ‘*’, ‘*’, ‘*’, ‘*’] Explanation : All characters except G replaced by * ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2020" }, { "code": null, "e": 131, "s": 28, "text": "Given a List. The task is to replace all the characters of the list with N except the given character." }, { "code": null, "e": 335, "s": 131, "text": "Inp...
How Neural Networks are used for Classification in R Programming
22 Jul, 2020 Neural Networks is a well known word in machine learning and data science. Neural networks are used almost in every machine learning application because of its reliability and mathematical power. In this article let’s deal with applications of neural networks in classification problems by using R programmi...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2020" }, { "code": null, "e": 442, "s": 28, "text": "Neural Networks is a well known word in machine learning and data science. Neural networks are used almost in every machine learning application because of its reliability and...
Python | frexp() Function
21 Sep, 2018 frexp() function is one of the Standard math Library function in Python. It returns mantissa and exponent as a pair (m, e) of a given value x, where mantissa m is a floating point number and e exponent is an integer value. m is a float and e is an integer such that x == m * 2**e exactly. If x is zero, retu...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Sep, 2018" }, { "code": null, "e": 101, "s": 28, "text": "frexp() function is one of the Standard math Library function in Python." }, { "code": null, "e": 317, "s": 101, "text": "It returns mantissa and exponent ...
C# program to convert decimal to Octal number
Set the decimal number − int decVal = 40; Now take a variable and set the decVal in it. Find the remainder with 8 since octal has base-8 number system and evaluate it in a loop like the following code snippet. while (quot != 0) { octalVal[i++] = quot % 8; quot = quot / 8; } You can try to run the following code t...
[ { "code": null, "e": 1087, "s": 1062, "text": "Set the decimal number −" }, { "code": null, "e": 1104, "s": 1087, "text": "int decVal = 40;" }, { "code": null, "e": 1272, "s": 1104, "text": "Now take a variable and set the decVal in it. Find the remainder with...
Difference between out and ref keyword in C#
out keyword is used to pass arguments to method as a reference type and is primary used when a method has to return multiple values. ref keyword is also used to pass arguments to method as reference type and is used when existing variable is to be modified in a method. Following is the valid usage of ref and out keywor...
[ { "code": null, "e": 1392, "s": 1062, "text": "out keyword is used to pass arguments to method as a reference type and is primary used when a method has to return multiple values. ref keyword is also used to pass arguments to method as reference type and is used when existing variable is to be modif...
Java Examples - Remove Pages from PDF
How to remove pages from a PDF document using Java. Following is an example program to remove pages from a PDF document using Java. import java.io.File; import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument; public class RemovingPagesFromPdf { public static void main(String args[]) throws IOE...
[ { "code": null, "e": 2120, "s": 2068, "text": "How to remove pages from a PDF document using Java." }, { "code": null, "e": 2200, "s": 2120, "text": "Following is an example program to remove pages from a PDF document using Java." }, { "code": null, "e": 2988, "s"...
Dense Video Captioning Using Pytorch | by Raymond Cheng | Towards Data Science
The deep learning task, Video Captioning, has been quite popular in the intersection of Computer Vision and Natural Language Processing for the last few years. In particular, Dense Video Captioning, which is a subfield, has been gaining some traction among researchers. Dense Video Captioning is the task of localizing i...
[ { "code": null, "e": 594, "s": 171, "text": "The deep learning task, Video Captioning, has been quite popular in the intersection of Computer Vision and Natural Language Processing for the last few years. In particular, Dense Video Captioning, which is a subfield, has been gaining some traction amon...
Search for a string within text column in MySQL?
You can search for a string within text column in MySQL with the help of LIKE clause. The syntax is as follows − select *from yourTableName where yourColumnName like '%anyStringValue%'; To use the above syntax, let us first create a table − mysql> create table SearchTextDemo −> ( −> BookName TEXT −> ); Query O...
[ { "code": null, "e": 1175, "s": 1062, "text": "You can search for a string within text column in MySQL with the help of LIKE clause. The syntax is as follows −" }, { "code": null, "e": 1248, "s": 1175, "text": "select *from yourTableName where yourColumnName like '%anyStringValue...
How to use resource bundle in JSP?
The <fmt:bundle> tag will make the specified bundle available to all <fmt:message> tags that occur between the bounding <fmt:bundle> and </fmt:bundle> tags. With this, you need not specify the resource bundle for each of your <fmt:message> tags. For example, the following two <fmt:bundle> blocks will produce the same o...
[ { "code": null, "e": 1308, "s": 1062, "text": "The <fmt:bundle> tag will make the specified bundle available to all <fmt:message> tags that occur between the bounding <fmt:bundle> and </fmt:bundle> tags. With this, you need not specify the resource bundle for each of your <fmt:message> tags." }, ...
Linear Algebra In C++ With XTensor Is Just Like Numpy | by Emmett Boudreau | Towards Data Science
Notebook A concept that is very important to scientific computing and Data Science is the ability to manipulate, create, and utilize matrices as types within a given programming language. For Python, Data-Scientists use the Numpy library, which has a fantastic and easy to understand approach to creating and manipulatin...
[ { "code": null, "e": 181, "s": 172, "text": "Notebook" }, { "code": null, "e": 686, "s": 181, "text": "A concept that is very important to scientific computing and Data Science is the ability to manipulate, create, and utilize matrices as types within a given programming language...
SAS - Write Data Sets
Similar to reading datasets, SAS can write datasets in different formats. It can write data from SAS files to normal text file.These files can be read by other software programs. SAS uses PROC EXPORT to write data sets. It is a SAS inbuilt procedure used to export the SAS data sets for writing the data into files of di...
[ { "code": null, "e": 2803, "s": 2583, "text": "Similar to reading datasets, SAS can write datasets in different formats. It can write data from SAS files to normal text file.These files can be read by other software programs. SAS uses PROC EXPORT to write data sets." }, { "code": null, "...
Refresh a page using PHP - GeeksforGeeks
31 Jul, 2021 Use header() function to refresh a web page in PHP. The HTTP functions are those functions which manipulate information sent to the client or browser by the Web server before any other output has been sent. The PHP header() function sends an HTTP header to a client or browser in raw form. Before HTML, XML,...
[ { "code": null, "e": 24704, "s": 24676, "text": "\n31 Jul, 2021" }, { "code": null, "e": 25306, "s": 24704, "text": "Use header() function to refresh a web page in PHP. The HTTP functions are those functions which manipulate information sent to the client or browser by the Web se...
Toggle bits given range | Practice | GeeksforGeeks
Given a non-negative number N and two values L and R. The problem is to toggle the bits in the range L to R in the binary representation of N, i.e, to toggle bits from the rightmost Lth bit to the rightmost Rth bit. A toggle operation flips a bit 0 to 1 and a bit 1 to 0. Print N after the bits are toggled. Example 1:...
[ { "code": null, "e": 546, "s": 238, "text": "Given a non-negative number N and two values L and R. The problem is to toggle the bits in the range L to R in the binary representation of N, i.e, to toggle bits from the rightmost Lth bit to the rightmost Rth bit. A toggle operation flips a bit 0 to 1 a...
Inverted Index for Document Similarity Computation | Towards Data Science
My current Google search showed over 3 million questions on Quora, but still, they can instantly show you similar questions even while you are typing a new question. And I instantly accessed this information by just typing to the search bar of Google, and the algorithm instantly showed me the most related content based...
[ { "code": null, "e": 513, "s": 172, "text": "My current Google search showed over 3 million questions on Quora, but still, they can instantly show you similar questions even while you are typing a new question. And I instantly accessed this information by just typing to the search bar of Google, and...
JavaScript String - toUpperCase() Method
This method returns the calling string value converted to uppercase. Its syntax is as follows − string.toUpperCase( ) Returns a string representing the specified object. Try the following example. <html> <head> <title>JavaScript String toUpperCase() Method</title> </head> <body> <script type...
[ { "code": null, "e": 2535, "s": 2466, "text": "This method returns the calling string value converted to uppercase." }, { "code": null, "e": 2562, "s": 2535, "text": "Its syntax is as follows −" }, { "code": null, "e": 2585, "s": 2562, "text": "string.toUpperC...
How to deal with warning “removed n rows containing missing values” while using ggplot2 in R?
The warning “removed n rows containing missing values” occurs when we incorrectly specify the range of the values for X-axis or Y-axis. We can this range in ggplot function using scale_x_continuous(limits=c(?,?)) for x axis and scale_y_continuous(limits=c(?,?)) for y axis. If the range will be larger than the actual da...
[ { "code": null, "e": 1490, "s": 1062, "text": "The warning “removed n rows containing missing values” occurs when we incorrectly specify the range of the values for X-axis or Y-axis. We can this range in ggplot function using scale_x_continuous(limits=c(?,?)) for x axis and scale_y_continuous(limits...
Callback using Interfaces in Java
In the case of Event-driven programming, we pass a reference to a function which will get called when an event occurs. This mechanism is termed as a callback. Java does not support function pointers. So we can not implement the same direction. But using interfaces we can achieve the same very easily. In the example bel...
[ { "code": null, "e": 1364, "s": 1062, "text": "In the case of Event-driven programming, we pass a reference to a function which will get called when an event occurs. This mechanism is termed as a callback. Java does not support function pointers. So we can not implement the same direction. But using...
ML | Handle Missing Data with Simple Imputer
28 Sep, 2021 SimpleImputer is a scikit-learn class which is helpful in handling the missing data in the predictive model dataset. It replaces the NaN values with a specified placeholder. It is implemented by the use of the SimpleImputer() method which takes the following arguments : missing_values : The missing_values...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Sep, 2021" }, { "code": null, "e": 325, "s": 53, "text": "SimpleImputer is a scikit-learn class which is helpful in handling the missing data in the predictive model dataset. It replaces the NaN values with a specified placeholder. ...
How to measure time taken by a function in C?
Here we will see how to calculate the time taken by the process. For this problem, we will use the clock() function. The clock() is present in the time.h header file. To get the elapsed time, we can get the time using clock() at the beginning, and at the end of the tasks, then subtract the values to get the differences...
[ { "code": null, "e": 1354, "s": 1187, "text": "Here we will see how to calculate the time taken by the process. For this problem, we will use the clock() function. The clock() is present in the time.h header file." }, { "code": null, "e": 1630, "s": 1354, "text": "To get the elap...
Saddleback Search Algorithm in a 2D array
08 Jul, 2021 Find an element in a given matrix such that each row and each column is sorted.Examples: Input : arr[] = { { 1, 2, 3}, { 4, 5, 6}, { 7, 8, 9} } element=5 Output : Element Found at position (1, 1). Input : arr[]={ {...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jul, 2021" }, { "code": null, "e": 143, "s": 52, "text": "Find an element in a given matrix such that each row and each column is sorted.Examples: " }, { "code": null, "e": 612, "s": 143, "text": "Input : arr[] ...
How to get the text of option tag by value using JavaScript ?
12 Oct, 2021 The HTML document containing some option elements and the task is to get the text of options of select element by using its value with the help of JavaScript. There are two approaches that are discussed below:Approach 1: First, select the options by JavaScript selector, Use value Property (eg. option[i].va...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 477, "s": 28, "text": "The HTML document containing some option elements and the task is to get the text of options of select element by using its value with the help of JavaScript. There are two ap...
Unix / Linux - Network Communication Utilities
In this chapter, we will discuss in detail about network communication utilities in Unix. When you work in a distributed environment, you need to communicate with remote users and you also need to access remote Unix machines. There are several Unix utilities that help users compute in a networked, distributed environme...
[ { "code": null, "e": 3107, "s": 2881, "text": "In this chapter, we will discuss in detail about network communication utilities in Unix. When you work in a distributed environment, you need to communicate with remote users and you also need to access remote Unix machines." }, { "code": null,...
Maximum number formed from the digits of given three numbers
07 Jul, 2021 Given 3 four-digit integers A, B, and C, the task is to print the number formed by taking the maximum digit from all the digits at the same positions in the given numbers. Examples: Input: A = 3521, B = 2452, C = 1352Output: 3552Explanation: The maximum of the digits that are at 1th place is equal to max(A...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2021" }, { "code": null, "e": 200, "s": 28, "text": "Given 3 four-digit integers A, B, and C, the task is to print the number formed by taking the maximum digit from all the digits at the same positions in the given numbers." ...
Insert in sorted and non-overlapping interval array
30 Jun, 2022 Given a set of non-overlapping intervals and a new interval, insert the interval at correct position. If the insertion results in overlapping intervals, then merge the overlapping intervals. Assume that the set of non-overlapping intervals is sorted on the basis of start time, to find correct position of i...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2022" }, { "code": null, "e": 369, "s": 52, "text": "Given a set of non-overlapping intervals and a new interval, insert the interval at correct position. If the insertion results in overlapping intervals, then merge the overla...
Moment.js isBetween() Function
24 Jul, 2020 It is used to check whether a date is between a range in Moment.js using the isBetween() function that checks if a moment is between two other moments, optionally looking at unit scale (minutes, hours, days, etc). Syntax: moment().isBetween(moment-like, moment-like); moment().isBetween(moment-like, moment-...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jul, 2020" }, { "code": null, "e": 242, "s": 28, "text": "It is used to check whether a date is between a range in Moment.js using the isBetween() function that checks if a moment is between two other moments, optionally looking at u...
TOPSIS method for Multiple-Criteria Decision Making (MCDM)
05 Oct, 2021 Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) came in the 1980s as a multi-criteria-based decision-making method. TOPSIS chooses the alternative of shortest the Euclidean distance from the ideal solution and greatest distance from the negative ideal solution. To make this definit...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Oct, 2021" }, { "code": null, "e": 315, "s": 28, "text": "Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) came in the 1980s as a multi-criteria-based decision-making method. TOPSIS chooses the alternative of s...
Sorting rows in pandas DataFrame
06 Jan, 2019 Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). We often need to do certain operations on both rows and column while handling the data. Let’s see how to sort rows in pandas DataFrame. Code #1: Sorting rows by Science #...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jan, 2019" }, { "code": null, "e": 253, "s": 28, "text": "Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). We often need to do certain operations...
Ways to write N as sum of two or more positive integers | Set-2
12 Apr, 2021 Given a number N, the task is to find the number of ways N can be partitioned, i.e. the number of ways that N can be expressed as a sum of positive integers.Note: N should also be considered itself a way to express it as a sum of positive integers. Examples: Input: N = 5 Output: 7 5 can be partitioned in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Apr, 2021" }, { "code": null, "e": 288, "s": 28, "text": "Given a number N, the task is to find the number of ways N can be partitioned, i.e. the number of ways that N can be expressed as a sum of positive integers.Note: N should als...
Random Forest with Parallel Computing in R Programming
02 Jul, 2020 Random Forest in R Programming is basically a bagging technique. From the name we can clearly interpret that this algorithm basically creates the forest with a lot of trees. It is a supervised classification algorithm.In a general scenario, if we have a greater number of trees in a forest it gives the best...
[ { "code": null, "e": 53, "s": 25, "text": "\n02 Jul, 2020" }, { "code": null, "e": 785, "s": 53, "text": "Random Forest in R Programming is basically a bagging technique. From the name we can clearly interpret that this algorithm basically creates the forest with a lot of trees. ...
Stack.Clone() Method in C#
05 Feb, 2019 This method is used to create a shallow copy of the Stack. It just creates a copy of the Stack. The copy will have a reference to a clone of the internal data array but not a reference to the original internal data array. Syntax: public virtual object Clone (); Return Value: The method returns an Object wh...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Feb, 2019" }, { "code": null, "e": 250, "s": 28, "text": "This method is used to create a shallow copy of the Stack. It just creates a copy of the Stack. The copy will have a reference to a clone of the internal data array but not a ...
Beautifying the Messy Plots in Python & Solving Common Issues in Seaborn | by Eunjoo Byeon | Towards Data Science
Creating presentable plots in Python can be a bit daunting. It’s especially so if you are used to making your visualizations using other BI software or even R, where most plots come already prettified for you. Another problem is that there are many ways things can go wrong and ways to resolve the issue will depend on t...
[ { "code": null, "e": 697, "s": 171, "text": "Creating presentable plots in Python can be a bit daunting. It’s especially so if you are used to making your visualizations using other BI software or even R, where most plots come already prettified for you. Another problem is that there are many ways t...