title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
mysqlcheck - Unix, Linux Command | The
mysqlcheck
client performs table maintenance: It checks, repairs, optimizes, or analyzes tables.
Each table is locked and therefore unavailable to other sessions while it is being processed, although for check operations, the table is locked with a
READ
lock only (see
Section 12.3.5, \(lqLOCK TABLES and UNLOCK TA... | [
{
"code": null,
"e": 10680,
"s": 10577,
"text": "\nThe\nmysqlcheck\nclient performs table maintenance: It checks, repairs, optimizes, or analyzes tables.\n"
},
{
"code": null,
"e": 11330,
"s": 10680,
"text": "\nEach table is locked and therefore unavailable to other sessions whil... |
How to align two elements left and right using tailwind CSS ? - GeeksforGeeks | 21 May, 2021
In this article, we will learn how to align two HTML elements on the left and right sides of a document using Tailwind CSS.
You can easily float the elements to left and right using Tailwind CSS. This can be done using either tailwind flex or flow-root classes.
Classes used:
flow-root: This class quickly c... | [
{
"code": null,
"e": 24370,
"s": 24342,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 24494,
"s": 24370,
"text": "In this article, we will learn how to align two HTML elements on the left and right sides of a document using Tailwind CSS."
},
{
"code": null,
"e": 24... |
Print all the palindromic permutations of given string in alphabetic order in C++ | In this problem, we are given a string of size n. And we have to print all possible palindromic permutation that can be generated using the characters of the string in alphabetical order. If palindrome is not created using the
string print ‘-1’.
Let’s take an example to understand the topic better −
Input:
string = “ab... | [
{
"code": null,
"e": 1308,
"s": 1062,
"text": "In this problem, we are given a string of size n. And we have to print all possible palindromic permutation that can be generated using the characters of the string in alphabetical order. If palindrome is not created using the\nstring print ‘-1’."
},
... |
Pandas – DataFrame to CSV file using tab separator | 27 Aug, 2021
Let’s see how to convert a DataFrame to a CSV file using the tab separator. We will be using the to_csv() method to save a DataFrame as a csv file. To save the DataFrame with tab separators, we have to pass “\t” as the sep parameter in the to_csv() method.
Approach :
Import the Pandas and Numpy modules.Cr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Let’s see how to convert a DataFrame to a CSV file using the tab separator. We will be using the to_csv() method to save a DataFrame as a csv file. To save the DataFrame with ... |
Sorted merge of two sorted doubly circular linked lists | 22 Mar, 2022
Given two sorted Doubly circular Linked List containing n1 and n2 nodes respectively. The problem is to merge the two lists such that resultant list is also in sorted order.Example: List 1:
List 2:
Final list:
Approach: Following are the steps:
If head1 == NULL, return head2.If head2 == NULL, retu... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Mar, 2022"
},
{
"code": null,
"e": 244,
"s": 52,
"text": "Given two sorted Doubly circular Linked List containing n1 and n2 nodes respectively. The problem is to merge the two lists such that resultant list is also in sorted order.E... |
Event Handling in Java | 18 Feb, 2022
An event can be defined as changing the state of an object or behavior by performing actions. Actions can be a button click, cursor movement, keypress through keyboard or page scrolling, etc.
The java.awt.event package can be used to provide various event classes.
Foreground Events
Background Events
Type... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Feb, 2022"
},
{
"code": null,
"e": 247,
"s": 54,
"text": "An event can be defined as changing the state of an object or behavior by performing actions. Actions can be a button click, cursor movement, keypress through keyboard or pag... |
How to create a moving div using JavaScript ? | 25 May, 2021
In this article, we will learn to create a moving HTML div using JavaScript. The div will move left to right using HTML, CSS, and JavaScript.
Approach:
We have to create an HTML div and add some CSS to the div using a class ball. In CSS, we add some background-color to the body and give some height, width... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 May, 2021"
},
{
"code": null,
"e": 171,
"s": 28,
"text": "In this article, we will learn to create a moving HTML div using JavaScript. The div will move left to right using HTML, CSS, and JavaScript. "
},
{
"code": null,
... |
How to copy folder recursively in Node.js ? | 12 Jun, 2020
Node.js is an enhancement to the already existing javaScript. It is used for server-side scripting. It is mostly used to develop dynamic web applications. Node.js developers prefer the use of asynchronous functions over synchronous functions as the former does not block program execution under any circumst... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Jun, 2020"
},
{
"code": null,
"e": 518,
"s": 28,
"text": "Node.js is an enhancement to the already existing javaScript. It is used for server-side scripting. It is mostly used to develop dynamic web applications. Node.js developers p... |
Find column with maximum sum in a Matrix | 14 Jun, 2022
Given a N*N matrix. The task is to find the index of column with maximum sum. That is the column whose sum of elements are maximum.Examples:
Input : mat[][] = {
{ 1, 2, 3, 4, 5 },
{ 5, 3, 1, 4, 2 },
{ 5, 6, 7, 8, 9 },
{ 0, 6, 3, 4, 12 },
{ 9, 7, 12, 4, 3 },
};
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n14 Jun, 2022"
},
{
"code": null,
"e": 197,
"s": 54,
"text": "Given a N*N matrix. The task is to find the index of column with maximum sum. That is the column whose sum of elements are maximum.Examples: "
},
{
"code": null,
... |
Flutter - Gestures - GeeksforGeeks | 14 Sep, 2020
Gestures are used to interact with an application. It is generally used in touch-based devices to physically interact with the application. It can be as simple as a single tap on the screen to a more complex physical interaction like swiping in a specific direction to scrolling down an application. It is h... | [
{
"code": null,
"e": 27159,
"s": 27131,
"text": "\n14 Sep, 2020"
},
{
"code": null,
"e": 27640,
"s": 27159,
"text": "Gestures are used to interact with an application. It is generally used in touch-based devices to physically interact with the application. It can be as simple as ... |
Longest Possible Chunked Palindrome - GeeksforGeeks | 19 Apr, 2022
Given a string, the task is to return the length of its longest possible chunked palindrome. It means a palindrome formed by substring in the case when it is not formed by characters of the string. For a better understanding look at the example Examples:
Input : ghiabcdefhelloadamhelloabcdefghi
Output : 7... | [
{
"code": null,
"e": 26543,
"s": 26515,
"text": "\n19 Apr, 2022"
},
{
"code": null,
"e": 26798,
"s": 26543,
"text": "Given a string, the task is to return the length of its longest possible chunked palindrome. It means a palindrome formed by substring in the case when it is not f... |
Python Program for Largest Sum Contiguous Subarray - GeeksforGeeks | 06 Jan, 2022
Write an efficient program to find the sum of contiguous subarray within a one-dimensional array of numbers that has the largest sum.
Kadane’s Algorithm:
Initialize:
max_so_far = INT_MIN
max_ending_here = 0
Loop for each element of the array
(a) max_ending_here = max_ending_here + a[i]
(b) ... | [
{
"code": null,
"e": 26607,
"s": 26579,
"text": "\n06 Jan, 2022"
},
{
"code": null,
"e": 26742,
"s": 26607,
"text": "Write an efficient program to find the sum of contiguous subarray within a one-dimensional array of numbers that has the largest sum. "
},
{
"code": null,
... |
How to get the last character of a string in PHP ? - GeeksforGeeks | 21 May, 2021
In this article, we will find the last character of a string in PHP. The last character can be found using the following methods.
Using array() method
Using substr() method
Using array() Method: In this method, we will find the length of the string, then print the value of (length-1). For example, if the s... | [
{
"code": null,
"e": 32651,
"s": 32623,
"text": "\n21 May, 2021"
},
{
"code": null,
"e": 32781,
"s": 32651,
"text": "In this article, we will find the last character of a string in PHP. The last character can be found using the following methods."
},
{
"code": null,
"... |
Program to add two integers of given base - GeeksforGeeks | 25 Nov, 2021
Given three integers X, Y and B, where X and Y are Base-B integers. The task is to find the sum of integers X and Y.
Examples:
Input: X = 123, Y = 234, B = 6
Output: 401
Explanation:
Sum of two integers in base 6 -
1 1
1 2 3
+ 2 3 4
-------------
4 0 1
Input: X = 546, Y = 248 B = 9
... | [
{
"code": null,
"e": 25963,
"s": 25935,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 26080,
"s": 25963,
"text": "Given three integers X, Y and B, where X and Y are Base-B integers. The task is to find the sum of integers X and Y."
},
{
"code": null,
"e": 26091,
... |
numpy.fromiter() function – Python - GeeksforGeeks | 18 Aug, 2020
numpy.fromiter() function create a new one-dimensional array from an iterable object.
Syntax : numpy.fromiter(iterable, dtype, count = -1)
Parameters :
iterable : [iterable object] An iterable object providing data for the array.
dtype : [data-type] Data-type of the returned array.
count : [int, optional] ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n18 Aug, 2020"
},
{
"code": null,
"e": 25623,
"s": 25537,
"text": "numpy.fromiter() function create a new one-dimensional array from an iterable object."
},
{
"code": null,
"e": 25676,
"s": 25623,
"text": "Synt... |
How to get relative click coordinates on the target element using JQuery? - GeeksforGeeks | 06 Sep, 2019
Here is the code to get the coordinates of the element, Here 2 methods are discussed one is calculating the relative position to its parent while another is calculating the relative position to the document.
Approach 1:
Attach the click event to the element.
Call an anonymous function when an event occurs.... | [
{
"code": null,
"e": 26964,
"s": 26936,
"text": "\n06 Sep, 2019"
},
{
"code": null,
"e": 27172,
"s": 26964,
"text": "Here is the code to get the coordinates of the element, Here 2 methods are discussed one is calculating the relative position to its parent while another is calcul... |
Program to convert Primitive Array to Stream in Java - GeeksforGeeks | 11 Dec, 2018
An array is a group of like-typed variables that are referred to by a common name. An array can contain primitives data types as well as objects of a class depending on the definition of the array. In case of primitives data types, the actual values are stored in contiguous memory locations. In case of obj... | [
{
"code": null,
"e": 25681,
"s": 25653,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 26052,
"s": 25681,
"text": "An array is a group of like-typed variables that are referred to by a common name. An array can contain primitives data types as well as objects of a class dependi... |
this pointer in C++ - GeeksQuiz | 10 Jul, 2018
/* local variable is same as a member's name */
class Test
{
private:
int x;
public:
void setX (int x)
{
// The 'this' pointer is used to retrieve the object's x
// hidden by the local variable 'x'
this->x = x;
}
void print() { cout << "x = " << x << endl; }
};
#include
... | [
{
"code": null,
"e": 28855,
"s": 28827,
"text": "\n10 Jul, 2018"
},
{
"code": null,
"e": 29153,
"s": 28855,
"text": "/* local variable is same as a member's name */\nclass Test\n{\nprivate:\n int x;\npublic:\n void setX (int x)\n {\n // The 'this' pointer is used to r... |
File Handling in Python - GeeksforGeeks | 24 Dec, 2021
Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files. The concept of file handling has stretched over various other languages, but the implementation is either complicated or lengthy, but like othe... | [
{
"code": null,
"e": 42713,
"s": 42685,
"text": "\n24 Dec, 2021"
},
{
"code": null,
"e": 43489,
"s": 42713,
"text": "Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files.... |
How to Install Kali Docker Image to the Linux ? - GeeksforGeeks | 29 Jun, 2021
In the cybersecurity sector, Kali is a prominent security distribution. Penetration testers, in particular, adore it. Kali has a number of security exploitation tools that may be used to test various systems, such as servers, networks, application servers, databases, VoIP, and so on. Kali is available in a... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 26051,
"s": 25651,
"text": "In the cybersecurity sector, Kali is a prominent security distribution. Penetration testers, in particular, adore it. Kali has a number of security exploitation to... |
Read a file line by line in Python - GeeksforGeeks | 12 May, 2022
Prerequisites:
Access modes
Open a file
Close a file
Python provides inbuilt functions for creating, writing, and reading files. There are two types of files that can be handled in python, normal text files and binary files (written in binary language, 0s, and 1s). In this article, we are going to stu... | [
{
"code": null,
"e": 25433,
"s": 25405,
"text": "\n12 May, 2022"
},
{
"code": null,
"e": 25449,
"s": 25433,
"text": "Prerequisites: "
},
{
"code": null,
"e": 25463,
"s": 25449,
"text": "Access modes "
},
{
"code": null,
"e": 25476,
"s": 25463,
... |
Create an Alarm Clock using Tkinter - GeeksforGeeks | 19 Oct, 2021
Prerequisite: Python GUI – tkinter, winsound, time, and datetime.
As we all know, nowadays wake up on time is a very difficult task. The solution is the Alarm Clock. In this article, we will learn, How to create an Alarm Clock using Tkinter in Python. Without alarms, several people would oversleep and land... | [
{
"code": null,
"e": 25579,
"s": 25551,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 25645,
"s": 25579,
"text": "Prerequisite: Python GUI – tkinter, winsound, time, and datetime."
},
{
"code": null,
"e": 25974,
"s": 25645,
"text": "As we all know, nowadays... |
File.Copy(String, String, Boolean) Method in C# with Examples - GeeksforGeeks | 02 Mar, 2021
File.Copy(String, String, Boolean) is an inbuilt File class method that is used to copy the content of the existing source file content to another destination file if exist, else create a new destination file then copying process is done.Syntax:
public static void Copy (string sourceFileName, string dest... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n02 Mar, 2021"
},
{
"code": null,
"e": 25795,
"s": 25547,
"text": "File.Copy(String, String, Boolean) is an inbuilt File class method that is used to copy the content of the existing source file content to another destination file... |
Concurrent Merge Sort in Shared Memory - GeeksforGeeks | 14 Jan, 2022
Given a number ‘n’ and a n numbers, sort the numbers using Concurrent Merge Sort. (Hint: Try to use shmget, shmat system calls).Part1: The algorithm (HOW?) Recursively make two child processes, one for the left half, one of the right half. If the number of elements in the array for a process is less than 5... | [
{
"code": null,
"e": 25721,
"s": 25693,
"text": "\n14 Jan, 2022"
},
{
"code": null,
"e": 27372,
"s": 25721,
"text": "Given a number ‘n’ and a n numbers, sort the numbers using Concurrent Merge Sort. (Hint: Try to use shmget, shmat system calls).Part1: The algorithm (HOW?) Recursi... |
ReactJS useLayoutEffect Hook - GeeksforGeeks | 22 Jan, 2021
The useLayoutEffect works similarly to useEffect but rather working asynchronously like useEffect hook, it fires synchronously after all DOM loading is done loading. This is useful for synchronously re-rendering the DOM and also to read the layout from the DOM. But to prevent blocking the page loading, we ... | [
{
"code": null,
"e": 26071,
"s": 26043,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 26412,
"s": 26071,
"text": "The useLayoutEffect works similarly to useEffect but rather working asynchronously like useEffect hook, it fires synchronously after all DOM loading is done loadin... |
Image Classification using JavaScript - GeeksforGeeks | 28 May, 2020
Image Classification is one of the most common applications of machine learning. Image classification is a computer vision technique in which we classify images according to the visual content in it. The example we can train an image classifier that can predict if a given image is a dog or not. In this art... | [
{
"code": null,
"e": 26571,
"s": 26543,
"text": "\n28 May, 2020"
},
{
"code": null,
"e": 26952,
"s": 26571,
"text": "Image Classification is one of the most common applications of machine learning. Image classification is a computer vision technique in which we classify images ac... |
Enum Classes in Kotlin - GeeksforGeeks | 11 Jul, 2019
In programming, sometimes there arises a need for a type to have only certain values. To accomplish this, the concept of enumeration was introduced. Enumeration is a named list of constants.In Kotlin, like many other programming languages, an enum has its own specialized type, indicating that something has... | [
{
"code": null,
"e": 25147,
"s": 25119,
"text": "\n11 Jul, 2019"
},
{
"code": null,
"e": 25529,
"s": 25147,
"text": "In programming, sometimes there arises a need for a type to have only certain values. To accomplish this, the concept of enumeration was introduced. Enumeration is... |
Python - Consecutive Alphabetic Occurrence - GeeksforGeeks | 22 Apr, 2020
Sometimes, while working with Strings, we can have a problem in which we need to check whether we can find occurrence of characters consecutive and according to English alphabets. This kind of problem can occur in school programming and day-day programming. Lets discuss certain ways in which this task can ... | [
{
"code": null,
"e": 26307,
"s": 26279,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 26628,
"s": 26307,
"text": "Sometimes, while working with Strings, we can have a problem in which we need to check whether we can find occurrence of characters consecutive and according to En... |
How to Get Current Location in Android? - GeeksforGeeks | 19 Sep, 2021
As a developer when you work on locations in Android then you always have some doubts about selecting the best and efficient approach for your requirement. So in this article, we are going to discuss how to get the user’s current location in Android. There are two ways to get the current location of any An... | [
{
"code": null,
"e": 26381,
"s": 26353,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 26702,
"s": 26381,
"text": "As a developer when you work on locations in Android then you always have some doubts about selecting the best and efficient approach for your requirement. So in t... |
Perl unlink Function | This function deletes the files specified by LIST, or the file specified by $_ otherwise. Be careful while using this function because there is no recovering once a file gets deleted.
Following is the simple syntax for this function −
unlink LIST
unlink
This function returns the number of files deleted.
Following is ... | [
{
"code": null,
"e": 2404,
"s": 2220,
"text": "This function deletes the files specified by LIST, or the file specified by $_ otherwise. Be careful while using this function because there is no recovering once a file gets deleted."
},
{
"code": null,
"e": 2455,
"s": 2404,
"text":... |
C# | Getting the value at the specified index of a SortedList object - GeeksforGeeks | 01 Feb, 2019
SortedList.GetByIndex(Int32) Method is used to get the value at the specified index of a SortedList object.
Syntax:
public virtual object GetByIndex (int index);
Here index is the zero-based index of the value to get.
Return Value: It returns the value at the specified index of the SortedList object.
Excep... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24410,
"s": 24302,
"text": "SortedList.GetByIndex(Int32) Method is used to get the value at the specified index of a SortedList object."
},
{
"code": null,
"e": 24418,
"s": 24... |
MySQL query to select records with a particular date and time? | You can use BETWEEN clause from MySQL to select records with a particular date and time. The syntax is as follows.
select *from AllRecordsFromadate where AdmissionDate between 'yourDateTimeValue1 ' and ''yourDateTimeValue2';
To understand the above syntax, let us first create a table. The query to create a table is as ... | [
{
"code": null,
"e": 1177,
"s": 1062,
"text": "You can use BETWEEN clause from MySQL to select records with a particular date and time. The syntax is as follows."
},
{
"code": null,
"e": 1287,
"s": 1177,
"text": "select *from AllRecordsFromadate where AdmissionDate between 'yourD... |
How to capture index out of range exception in C#? | IndexOutOfRangeException occurs when you try to access an element with an index that is outsise the bounds of the array.
Let’s say the following is our array. It has 5 elements −
int [] n = new int[5] {66, 33, 56, 23, 81};
Now if you will try to access elements with index more than 5, then the IndexOutOfRange Exception... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "IndexOutOfRangeException occurs when you try to access an element with an index that is outsise the bounds of the array."
},
{
"code": null,
"e": 1241,
"s": 1183,
"text": "Let’s say the following is our array. It has 5 elements −"
... |
QTP Working with XML | XML is a markup language designed to store data in a format that can be both readable by human and machine. Using XML, data can also be easily exchanged between computer and database systems.
Sample XML and their key elements are represented below −
Const XMLDataFile = "C:\TestData.xml"
Set xmlDoc = CreateObject("Micro... | [
{
"code": null,
"e": 2314,
"s": 2122,
"text": "XML is a markup language designed to store data in a format that can be both readable by human and machine. Using XML, data can also be easily exchanged between computer and database systems."
},
{
"code": null,
"e": 2372,
"s": 2314,
... |
Feature importance and forward feature selection | by Vishal Singh | Towards Data Science | Processing of high dimensional data can be very challenging. By “high” it is meant thousands of dimensions, try to imagine(even though you can’t) a 70k dimensional space. Algorithms which rely on Euclidean distance as the measure of distance between 2 points start breaking down. This is referred to as the curse of dime... | [
{
"code": null,
"e": 1516,
"s": 172,
"text": "Processing of high dimensional data can be very challenging. By “high” it is meant thousands of dimensions, try to imagine(even though you can’t) a 70k dimensional space. Algorithms which rely on Euclidean distance as the measure of distance between 2 po... |
Access Free Google Cloud Public Dataset with Python | by Joe T. Santhanavanich | Towards Data Science | Good news for Data Scientists! Google is making a hosted repository of public datasets, like Johns Hopkins Center for Systems Science and Engineering (JHU CSSE), the Global Health Data from the World Bank, and OpenStreetMap data, free to access and query through their COVID-19 Public Dataset Program to aid researchers,... | [
{
"code": null,
"e": 1004,
"s": 172,
"text": "Good news for Data Scientists! Google is making a hosted repository of public datasets, like Johns Hopkins Center for Systems Science and Engineering (JHU CSSE), the Global Health Data from the World Bank, and OpenStreetMap data, free to access and query... |
Check if two numbers are equal without using arithmetic and comparison operators - GeeksforGeeks | 18 Jan, 2022
Following are not allowed to use 1) Arithmetic and Comparison Operators 2) String functions
Method 1 : The idea is to use XOR operator. XOR of two numbers is 0 if the numbers are same, otherwise non-zero.
C++
Java
Python3
C#
PHP
Javascript
// C++ program to check if two numbers// are equal without using a... | [
{
"code": null,
"e": 25121,
"s": 25093,
"text": "\n18 Jan, 2022"
},
{
"code": null,
"e": 25213,
"s": 25121,
"text": "Following are not allowed to use 1) Arithmetic and Comparison Operators 2) String functions"
},
{
"code": null,
"e": 25327,
"s": 25213,
"text":... |
CSS | background-color Property - GeeksforGeeks | 29 Oct, 2021
The background-color property in CSS is used to specify the background color of an element. The background covers the total size of the element with padding and border but excluding margin. It makes the text so easy to read for the user.
Syntax:
element {
background-color property
}
Default value : It ... | [
{
"code": null,
"e": 23758,
"s": 23730,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 23996,
"s": 23758,
"text": "The background-color property in CSS is used to specify the background color of an element. The background covers the total size of the element with padding and bo... |
Blackeye Phishing Tool in Kali Linux - GeeksforGeeks | 28 Nov, 2021
Blackeye is a powerful open-source tool Phishing Tool. Blackeye is becoming very popular nowadays that is used to do phishing attacks on Target. Blackeye is an easy Social Engineering Toolkit. Blackeye contains some templates generated by another tool called Blackeye. This tool makes it easy to perform ph... | [
{
"code": null,
"e": 24431,
"s": 24403,
"text": "\n28 Nov, 2021"
},
{
"code": null,
"e": 25141,
"s": 24431,
"text": "Blackeye is a powerful open-source tool Phishing Tool. Blackeye is becoming very popular nowadays that is used to do phishing attacks on Target. Blackeye is an eas... |
Ways to Create NaN Values in Pandas DataFrame - GeeksforGeeks | 08 Dec, 2021
Let’s discuss ways of creating NaN values in the Pandas Dataframe. There are various ways to create NaN values in Pandas dataFrame. Those are:
Using NumPy
Importing csv file having blank values
Applying to_numeric function
Method 1: Using NumPy
Python3
import pandas as pdimport numpy as np num = {'number'... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n08 Dec, 2021"
},
{
"code": null,
"e": 25680,
"s": 25537,
"text": "Let’s discuss ways of creating NaN values in the Pandas Dataframe. There are various ways to create NaN values in Pandas dataFrame. Those are:"
},
{
"code"... |
Count of groups having largest size while grouping according to sum of its digits - GeeksforGeeks | 21 Nov, 2021
Given an integer N, the task is to find the number of groups having the largest size. Each number from 1 to N is grouped according to the sum of its digits.
Examples:
Input: N = 13 Output: 4 Explanation: There are 9 groups in total, they are grouped according to the sum of its digits of numbers from 1 to 1... | [
{
"code": null,
"e": 25961,
"s": 25933,
"text": "\n21 Nov, 2021"
},
{
"code": null,
"e": 26118,
"s": 25961,
"text": "Given an integer N, the task is to find the number of groups having the largest size. Each number from 1 to N is grouped according to the sum of its digits."
},
... |
Sum of squares of Fibonacci numbers - GeeksforGeeks | 14 Sep, 2021
Given a positive integer N. The task is to find the sum of squares of all Fibonacci numbers up to N-th fibonacci number. That is,
f02 + f12 + f22+.......+fn2
where fi indicates i-th fibonacci number.
Fibonacci numbers: f0=0 and f1=1 and fi=fi-1 + fi-2 for all i>=2.Examples:
Input: N = 3
Output: 6
Exp... | [
{
"code": null,
"e": 25876,
"s": 25848,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 26008,
"s": 25876,
"text": "Given a positive integer N. The task is to find the sum of squares of all Fibonacci numbers up to N-th fibonacci number. That is, "
},
{
"code": null,
... |
PHP | die() & sleep() functions - GeeksforGeeks | 11 Apr, 2022
die()
The die() is an inbuilt function in PHP. It is used to print message and exit from the current php script. It is equivalent to exit() function in PHP. Syntax :
die($message)
Parameters : This function accepts only one parameter and which is not mandatory to be passed.
$message : This parameter repres... | [
{
"code": null,
"e": 26049,
"s": 26021,
"text": "\n11 Apr, 2022"
},
{
"code": null,
"e": 26055,
"s": 26049,
"text": "die()"
},
{
"code": null,
"e": 26215,
"s": 26055,
"text": "The die() is an inbuilt function in PHP. It is used to print message and exit from t... |
Implement Undo and Redo features of a Text Editor - GeeksforGeeks | 27 Aug, 2021
Given an array of strings Q[], consisting of queries of the following types:
“WRITE X”: Write a character X into the document.
“UNDO”: Erases the last change made to the document.
“REDO”: Restores the most recent UNDO operation performed on the document.
“READ”: Reads and prints the contents of the documen... | [
{
"code": null,
"e": 26687,
"s": 26659,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 26764,
"s": 26687,
"text": "Given an array of strings Q[], consisting of queries of the following types:"
},
{
"code": null,
"e": 26814,
"s": 26764,
"text": "“WRITE X”: Wr... |
How to Set Text of Tkinter Text Widget With a Button? - GeeksforGeeks | 23 Dec, 2020
Prerequisite: Python GUI – tkinter
Text Widget is used where a user wants to insert multi-line text fields. In this article, we are going to learn the approaches to set the text inside the text fields of the text widget with the help of a button.
Import the Tkinter module.
Create a GUI window.
Create our t... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n23 Dec, 2020"
},
{
"code": null,
"e": 25572,
"s": 25537,
"text": "Prerequisite: Python GUI – tkinter"
},
{
"code": null,
"e": 25784,
"s": 25572,
"text": "Text Widget is used where a user wants to insert multi-... |
How to Convert Numbers to Dates in R? - GeeksforGeeks | 28 Dec, 2021
In this article, we will discuss how to convert Numbers to Dates in R programming language.
Here we have to consider an integer and then first we have to convert that integer into a character using as.character() function and then convert that character using as.Date() function and finally convert into dat... | [
{
"code": null,
"e": 26487,
"s": 26459,
"text": "\n28 Dec, 2021"
},
{
"code": null,
"e": 26579,
"s": 26487,
"text": "In this article, we will discuss how to convert Numbers to Dates in R programming language."
},
{
"code": null,
"e": 26818,
"s": 26579,
"text":... |
How to convert CSV columns to text in Python? - GeeksforGeeks | 13 Jan, 2021
In this article, we are going to see how to convert CSV columns to text in Python, and we will also see how to convert all CSV column to text.
Approach:
Read .CSV file using pandas dataframe.
Convert particular column to list using list() constructor
Then sequentially convert each element of the list to a ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n13 Jan, 2021"
},
{
"code": null,
"e": 25680,
"s": 25537,
"text": "In this article, we are going to see how to convert CSV columns to text in Python, and we will also see how to convert all CSV column to text."
},
{
"code"... |
How to read a CSV file to a Dataframe with custom delimiter in Pandas? - GeeksforGeeks | 31 May, 2021
Python is a good language for doing data analysis because of the amazing ecosystem of data-centric python packages. pandas package is one of them and makes importing and analyzing data so much easier.Here, we will discuss how to load a csv file into a Dataframe. It is done using a pandas.read_csv() method.... | [
{
"code": null,
"e": 26267,
"s": 26239,
"text": "\n31 May, 2021"
},
{
"code": null,
"e": 26629,
"s": 26267,
"text": "Python is a good language for doing data analysis because of the amazing ecosystem of data-centric python packages. pandas package is one of them and makes importi... |
Find if a given string can be represented from a substring by iterating the substring “n” times - GeeksforGeeks | 09 May, 2022
Given a string ‘str’, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together.
Examples:
Input: str = "abcabcabc"
Output: true
The given string is 3 times repetition of "abc"
Input: str = "abadabad"
Output: true
The given string is 2 times repeti... | [
{
"code": null,
"e": 26501,
"s": 26473,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 26639,
"s": 26501,
"text": "Given a string ‘str’, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together."
},
{
"code": nul... |
Iterators in Python - GeeksforGeeks | 16 Nov, 2020
Iterator in python is an object that is used to iterate over iterable objects like lists, tuples, dicts, and sets. The iterator object is initialized using the iter() method. It uses the next() method for iteration.
__iter(iterable)__ method that is called for the initialization of an iterator. This retur... | [
{
"code": null,
"e": 24931,
"s": 24903,
"text": "\n16 Nov, 2020"
},
{
"code": null,
"e": 25148,
"s": 24931,
"text": "Iterator in python is an object that is used to iterate over iterable objects like lists, tuples, dicts, and sets. The iterator object is initialized using the ite... |
Drop Collection if already exists in MongoDB using Python - GeeksforGeeks | 26 May, 2020
Using drop() method we can drop collection data if data is already exist. If data is not found then it returns False otherwise it returns True if collection is dropped.
Syntax:
drop()
Example 1:
Sample Database:
Python3
import pymongo client = pymongo.MongoClient("mongodb://localhost:27017/") # Dat... | [
{
"code": null,
"e": 25565,
"s": 25537,
"text": "\n26 May, 2020"
},
{
"code": null,
"e": 25735,
"s": 25565,
"text": "Using drop() method we can drop collection data if data is already exist. If data is not found then it returns False otherwise it returns True if collection is dro... |
PHP | Bitwise Operators - GeeksforGeeks | 05 Dec, 2018
The Bitwise operators is used to perform bit-level operations on the operands. The operators are first converted to bit-level and then calculation is performed on the operands. The mathematical operations such as addition , subtraction , multiplication etc. can be performed at bit-level for faster processi... | [
{
"code": null,
"e": 25212,
"s": 25184,
"text": "\n05 Dec, 2018"
},
{
"code": null,
"e": 25574,
"s": 25212,
"text": "The Bitwise operators is used to perform bit-level operations on the operands. The operators are first converted to bit-level and then calculation is performed on ... |
React-Bootstrap Fade and Collapse Component - GeeksforGeeks | 29 Sep, 2021
React-Bootstrap is a front-end framework that was designed keeping react in mind. Fade Component provides a way to add a fade animation to a child component or an element. Collapse Component provides a way to add a collapse toggle animation to a component or an element We can use the following approach in ... | [
{
"code": null,
"e": 26179,
"s": 26151,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 26550,
"s": 26179,
"text": "React-Bootstrap is a front-end framework that was designed keeping react in mind. Fade Component provides a way to add a fade animation to a child component or an ... |
Python 3 | Program to print double sided stair-case pattern - GeeksforGeeks | 25 Jan, 2018
Below mentioned is the python 3 program to print the double sided stair case pattern.
Examples:
Input : 10
Output :
* *
* *
* * * *
* * * *
* * * * * *
* * * * * *
* * * * *... | [
{
"code": null,
"e": 25979,
"s": 25951,
"text": "\n25 Jan, 2018"
},
{
"code": null,
"e": 26065,
"s": 25979,
"text": "Below mentioned is the python 3 program to print the double sided stair case pattern."
},
{
"code": null,
"e": 26075,
"s": 26065,
"text": "Exam... |
Array of Strings in C++ | Array of strings can be created in C++ using string keyword. Here we are discussing a C++ program by using this approach.
Begin
Initialize the elements of array by string keyword. And take string as input.
Print the array.
End.
Live Demo
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main() ... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "Array of strings can be created in C++ using string keyword. Here we are discussing a C++ program by using this approach."
},
{
"code": null,
"e": 1296,
"s": 1184,
"text": "Begin\n Initialize the elements of array by string keyword... |
Spring Boot Scheduler Job @EnableScheduling | @Schedule Example | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
The Spring Framework provides abstractions fo... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
Mongoose | countDocuments() Function | 17 Nov, 2020
The countDocuments() function is used to count the number of documents that match the filter in a database collection.
Installation of mongoose module:
You can visit the link to Install mongoose module. You can install this package by using this command.
npm install mongoose
After installing mongoose mo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Nov, 2020"
},
{
"code": null,
"e": 147,
"s": 28,
"text": "The countDocuments() function is used to count the number of documents that match the filter in a database collection."
},
{
"code": null,
"e": 181,
"s": 147,
... |
C Program For Sorting An Array Of 0s, 1s and 2s | 16 Dec, 2021
Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in last.Examples:
Input: {0, 1, 2, 0, 1, 2}
Output: {0, 0, 1, 1, 2, 2}
Input: {0, 1, 1, 0, 1, 2, 1, 2, 0, 0, 0, 1}
Output: {0, 0, 0, 0, 0, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 213,
"s": 28,
"text": "Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in last.... |
Converting Number to String in C++ | 11 Jun, 2022
Converting numbers to string or vice-versa is actually a big paradigm shift in itself. In general or more specifically in competitive programming there are many instances where we need to convert a number to a string or string to a number. But lack of knowledge of certain essential tools binds us to do so.... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jun, 2022"
},
{
"code": null,
"e": 427,
"s": 54,
"text": "Converting numbers to string or vice-versa is actually a big paradigm shift in itself. In general or more specifically in competitive programming there are many instances whe... |
List out all the Shells Using Linux Commands | 22 Jun, 2020
There are various methods to list all the shells which are installed in our Linux system. A Shell is a software program that acts as an interface between the user and the operating system(OS). It can also be thought of as a command interpreter that is used to execute another program.
Method 1: Using cat co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Jun, 2020"
},
{
"code": null,
"e": 313,
"s": 28,
"text": "There are various methods to list all the shells which are installed in our Linux system. A Shell is a software program that acts as an interface between the user and the oper... |
Java Swing | JTextArea | 10 May, 2022
JTextArea is a part of java Swing package . It represents a multi line area that displays text. It is used to edit the text . JTextArea inherits JComponent class. The text in JTextArea can be set to different available fonts and can be appended to new text . A text area can be customized to the need of use... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 May, 2022"
},
{
"code": null,
"e": 394,
"s": 52,
"text": "JTextArea is a part of java Swing package . It represents a multi line area that displays text. It is used to edit the text . JTextArea inherits JComponent class. The text in... |
Change an HTML5 input placeholder color with CSS | 08 Nov, 2021
The placeholder selector in the CSS pseudo-element is used to design the placeholder text by changing the text color and it allows to modify the style of the text. In most of the browsers, the placeholder (inside the input tag) is of grey color. In order to change the color of this placeholder, non-standar... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n08 Nov, 2021"
},
{
"code": null,
"e": 617,
"s": 53,
"text": "The placeholder selector in the CSS pseudo-element is used to design the placeholder text by changing the text color and it allows to modify the style of the text. In most of... |
Convert list of lists to dataframe in R | 30 May, 2021
In this article, we will discuss how to convert a list of lists to dataframe in R Programming Language. We will convert a list of lists to a data frame both by row and by column.
Example 1: R program to create three lists inside a list with numeric and character type and convert into dataframe by column.
S... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 207,
"s": 28,
"text": "In this article, we will discuss how to convert a list of lists to dataframe in R Programming Language. We will convert a list of lists to a data frame both by row and by colu... |
Loop Software Testing | 20 Jun, 2019
Loop Testing is a type of software testing type that is performed to validate the loops. It is one of the type of Control Structure Testing. Loop testing is a white box testing technique and is used to test loops in the program.
Objectives of Loop Testing:The objective of Loop Testing is:
To fix the infini... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jun, 2019"
},
{
"code": null,
"e": 257,
"s": 28,
"text": "Loop Testing is a type of software testing type that is performed to validate the loops. It is one of the type of Control Structure Testing. Loop testing is a white box testin... |
Python | __import__() function | 28 Jan, 2022
While writing a code, there might be a need for some specific modules. So we import those modules by using a single line code in Python.
But what if the name of the module needed is known to us only during runtime? How can we import that module? One can use the Python’s inbuilt __import__() function. It he... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 191,
"s": 54,
"text": "While writing a code, there might be a need for some specific modules. So we import those modules by using a single line code in Python."
},
{
"code": null,
"e": ... |
Iterators in C# | 04 Feb, 2021
An iterator is a method in C# which is used in an array or in collections like the list, etc. to retrieve elements one by one. Or in other words, we can say that an iterator is used to perform an iteration over the collections. This feature is introduced in C# 2.0. It uses the yield return statement to ret... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n04 Feb, 2021"
},
{
"code": null,
"e": 640,
"s": 54,
"text": "An iterator is a method in C# which is used in an array or in collections like the list, etc. to retrieve elements one by one. Or in other words, we can say that an iterator ... |
Merging PDFs using Java - GeeksforGeeks | 08 Dec, 2020
Merging multiple PDF documents into a single PDF document is done using the PDFMergerUtility class. This class will take a list of PDF documents and merge them, the result will be saved to the new document. The prerequisite of this topic is that you have already installed apache library
Follow these steps... | [
{
"code": null,
"e": 25867,
"s": 25839,
"text": "\n08 Dec, 2020"
},
{
"code": null,
"e": 26156,
"s": 25867,
"text": "Merging multiple PDF documents into a single PDF document is done using the PDFMergerUtility class. This class will take a list of PDF documents and merge them, th... |
upper_bound in C++ - GeeksforGeeks | 28 Nov, 2018
upper_bound() is a standard library function in C++ defined in the header . It returns an iterator pointing to the first element in the range [first, last) that is greater than value, or last if no such element is found. The elements in the range shall already be sorted or at least partitioned with respect... | [
{
"code": null,
"e": 25821,
"s": 25793,
"text": "\n28 Nov, 2018"
},
{
"code": null,
"e": 26137,
"s": 25821,
"text": "upper_bound() is a standard library function in C++ defined in the header . It returns an iterator pointing to the first element in the range [first, last) that is... |
Argument Modes in PL/SQL - GeeksforGeeks | 23 Oct, 2020
Argument modes are basically used to describe the behavior of the formal parameters. There are three types of argument modes which are used in the sub-program, which are as follows –
IN ModeOUT ModeIN OUT Mode
IN Mode
OUT Mode
IN OUT Mode
Representation of how modes interact with calling environment
IN Mod... | [
{
"code": null,
"e": 25693,
"s": 25665,
"text": "\n23 Oct, 2020"
},
{
"code": null,
"e": 25876,
"s": 25693,
"text": "Argument modes are basically used to describe the behavior of the formal parameters. There are three types of argument modes which are used in the sub-program, whi... |
Tensorflow.js tf.split() Function - GeeksforGeeks | 10 May, 2021
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. It also helps the developers to develop ML models in JavaScript language and can use ML directly in the browser or in Node.js.
The tf.split()... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 26838,
"s": 26545,
"text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environmen... |
reflect.DeepEqual() Function in Golang with Examples - GeeksforGeeks | 15 Jul, 2021
Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of reflect package. The reflect.DeepEqual() Function in Golang is used to check whether x and y are “deeply equal” or not. To access this function, one ... | [
{
"code": null,
"e": 25703,
"s": 25675,
"text": "\n15 Jul, 2021"
},
{
"code": null,
"e": 26063,
"s": 25703,
"text": "Go language provides inbuilt support implementation of run-time reflection and allowing a program to manipulate objects with arbitrary types with the help of refle... |
Histograms in R language - GeeksforGeeks | 09 Dec, 2021
A histogram contains a rectangular area to display the statistical information which is proportional to the frequency of a variable and its width in successive numerical intervals. A graphical representation that manages a group of data points into different specified ranges. It has a special feature which... | [
{
"code": null,
"e": 30289,
"s": 30261,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 30668,
"s": 30289,
"text": "A histogram contains a rectangular area to display the statistical information which is proportional to the frequency of a variable and its width in successive num... |
Check if a numeric value falls between a range in R Programming - between() function - GeeksforGeeks | 26 May, 2020
between() function in R Language is used to check that whether a numeric value falls in a specific range or not.A lower bound and an upper bound is specified and checked if the value falls in it.
Syntax: between(x, left, right)
Parameters:
x: A numeric vectorleft, right: Boundary values
Example 1: Values i... | [
{
"code": null,
"e": 26255,
"s": 26227,
"text": "\n26 May, 2020"
},
{
"code": null,
"e": 26451,
"s": 26255,
"text": "between() function in R Language is used to check that whether a numeric value falls in a specific range or not.A lower bound and an upper bound is specified and c... |
How to convert date and time with different timezones in Python? - GeeksforGeeks | 22 Apr, 2021
In this article, we will discuss how to convert date and time with different timezones in Python. To do this we will use one of the modules of python pytz . This module brings the Olson tz database into Python and this library allows accurate and cross-platform timezone calculations using Python. The metho... | [
{
"code": null,
"e": 25563,
"s": 25535,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 25943,
"s": 25563,
"text": "In this article, we will discuss how to convert date and time with different timezones in Python. To do this we will use one of the modules of python pytz . This m... |
Python - Extract ith Key's Value of K's Maximum value dictionary - GeeksforGeeks | 01 Aug, 2020
Given Dictionary List, extract i’th keys value depending upon Kth key’s maximum value.
Input : test_list = [{“Gfg” : 3, “is” : 9, “best” : 10}, {“Gfg” : 8, “is” : 11, “best” : 19}, {“Gfg” : 9, “is” : 16, “best” : 1}], K = “best”, i = “is”Output : 11Explanation : best is max at 19, its corresponding “is” va... | [
{
"code": null,
"e": 25877,
"s": 25849,
"text": "\n01 Aug, 2020"
},
{
"code": null,
"e": 25964,
"s": 25877,
"text": "Given Dictionary List, extract i’th keys value depending upon Kth key’s maximum value."
},
{
"code": null,
"e": 26195,
"s": 25964,
"text": "Inp... |
LocalDateTime getMonth() method in Java with Examples - GeeksforGeeks | 29 Nov, 2018
The getMonth() method of an LocalDateTime class is used to return month-of-year field. This field is returned using the Month enum. The enum can provide the primitive int value.
Syntax:
public Month getMonth()
Parameter: This method does not accept any parameter.
Returns: This method returns the enum Mont... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 25403,
"s": 25225,
"text": "The getMonth() method of an LocalDateTime class is used to return month-of-year field. This field is returned using the Month enum. The enum can provide the primit... |
jQuery - position( ) Method | The position( ) method gets the top and left position of an element relative to its offset parent.
The returned object contains two Integer properties, top and left. For accurate calculations make sure to use pixel values for margins, borders and padding. This method only works with visible elements.
Here is the simple... | [
{
"code": null,
"e": 2421,
"s": 2322,
"text": "The position( ) method gets the top and left position of an element relative to its offset parent."
},
{
"code": null,
"e": 2624,
"s": 2421,
"text": "The returned object contains two Integer properties, top and left. For accurate cal... |
COVID-19 Testing. What are your chances? | by Rob Harrand | Towards Data Science | Note: I am not a medical professional and this blog is just my take on what I believe are statistical ideas pertinent to diagnostic testing.
Testing for COVID-19You need no introduction to COVID-19, the coronovirus that’s now spread to every country on Earth and is wreaking havoc on economies, health systems and people... | [
{
"code": null,
"e": 312,
"s": 171,
"text": "Note: I am not a medical professional and this blog is just my take on what I believe are statistical ideas pertinent to diagnostic testing."
},
{
"code": null,
"e": 501,
"s": 312,
"text": "Testing for COVID-19You need no introduction ... |
Copy all rows of a table to another table in MySQL? | To copy all rows of a table to another table, use the below syntax −
insert into yourTableName2(yourColumnName1,...N) select yourColumnName1,..N from yourTableName1;
Let us first create a table −
mysql> create table DemoTable1(FirstName varchar(100));
Query OK, 0 rows affected (1.11 sec)
Insert some records in the tabl... | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "To copy all rows of a table to another table, use the below syntax −"
},
{
"code": null,
"e": 1228,
"s": 1131,
"text": "insert into yourTableName2(yourColumnName1,...N) select yourColumnName1,..N from yourTableName1;"
},
{
"c... |
Aptitude - Boats & Streams Online Quiz | Following quiz provides Multiple Choice Questions (MCQs) related to Boats & Streams. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in t... | [
{
"code": null,
"e": 4221,
"s": 3892,
"text": "Following quiz provides Multiple Choice Questions (MCQs) related to Boats & Streams. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer butt... |
Binary Heap in Data Structure | Heap or Binary Heap is a special case of balanced binary tree data structure. This is complete binary tree structure. So up to l-1 levels it is full, and at l level, all nodes are from left. Here the root-node key is compared with its children and arranged accordingly. If a has child node b then −
key(a) ≥ key(b)
As th... | [
{
"code": null,
"e": 1361,
"s": 1062,
"text": "Heap or Binary Heap is a special case of balanced binary tree data structure. This is complete binary tree structure. So up to l-1 levels it is full, and at l level, all nodes are from left. Here the root-node key is compared with its children and arran... |
Bootstrap complex form layout for combined vertical/inline fields with HTML | Bootstrap form for combined vertical/ inline fields −
<div class="row">
<div class="col-md-8">
<div class="row">
<div class="col-md-3">
Left side
</div>
<div class="col-md-9">
Right side
<div class="row">
<div class="col-md-12">
... | [
{
"code": null,
"e": 1116,
"s": 1062,
"text": "Bootstrap form for combined vertical/ inline fields −"
},
{
"code": null,
"e": 1961,
"s": 1116,
"text": "<div class=\"row\">\n <div class=\"col-md-8\">\n <div class=\"row\">\n <div class=\"col-md-3\">\n Left... |
Numbers with exactly 3 divisors | 28 May, 2022
Given a number N, print all numbers in the range from 1 to N having exactly 3 divisors.
Examples:
Input : N = 16
Output : 4 9
4 and 9 have exactly three divisors.
Divisor
Input : N = 49
Output : 4 9 25 49
4, 9, 25 and 49 have exactly three divisors.
After having a close look at the examples mentioned ab... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 May, 2022"
},
{
"code": null,
"e": 143,
"s": 54,
"text": "Given a number N, print all numbers in the range from 1 to N having exactly 3 divisors. "
},
{
"code": null,
"e": 154,
"s": 143,
"text": "Examples: "
},... |
MVP (Model View Presenter) Architecture Pattern in Android with Example | 29 Oct, 2020
In the initial stages of Android development, learners do write codes in such a manner that eventually creates a MainActivity class which contains all the implementation logic(real-world business logic) of the application. This approach of app development leads to Android activity gets closely coupled to b... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Oct, 2020"
},
{
"code": null,
"e": 914,
"s": 52,
"text": "In the initial stages of Android development, learners do write codes in such a manner that eventually creates a MainActivity class which contains all the implementation logi... |
Split a Circular Linked List into two halves | 24 Jun, 2022
Original Linked List
Result Linked List 1
Result Linked List 2
If there are odd number of nodes, then first list should contain one extra.
Thanks to Geek4u for suggesting the algorithm. 1) Store the mid and last pointers of t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Jun, 2022"
},
{
"code": null,
"e": 100,
"s": 52,
"text": " Original Linked List "
},
{
"code": null,
"e": 148,
"s": 100,
"text": " Result Linked List 1 "
},
{... |
Gradient Descent algorithm and its variants | 02 Jun, 2020
Gradient Descent is an optimization algorithm used for minimizing the cost function in various machine learning algorithms. It is basically used for updating the parameters of the learning model.
Types of gradient Descent:
Batch Gradient Descent: This is a type of gradient descent which processes all the t... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Jun, 2020"
},
{
"code": null,
"e": 248,
"s": 52,
"text": "Gradient Descent is an optimization algorithm used for minimizing the cost function in various machine learning algorithms. It is basically used for updating the parameters o... |
Python | Decimal from_float() method | 23 May, 2022
Decimal#from_float() : from_float() is a Decimal class method which converts a float to a decimal number, exactly.
Syntax: Decimal.from_float() Parameter: Decimal values Return: converts a float to a decimal number, exactly.
Code #1 : Example for from_float() method
Python3
# Python Program explaining# ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2022"
},
{
"code": null,
"e": 144,
"s": 28,
"text": "Decimal#from_float() : from_float() is a Decimal class method which converts a float to a decimal number, exactly."
},
{
"code": null,
"e": 255,
"s": 144,
... |
Output of C programs | Set 39 (Pre Increment and Post Increment) | 24 Sep, 2021
Prerequisite : Pre-increment and Post increment Question 1
C
#include <stdio.h> int main(){ char* p = "mayhem"; char c; int i; for (i = 0; i < 3; i++) { c = *p++; } printf("%c", c); return 0;}
yhea
y
h
e
a
Answer : y
Explanation: The pointer ‘p’ points at the third location ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 Sep, 2021"
},
{
"code": null,
"e": 113,
"s": 52,
"text": "Prerequisite : Pre-increment and Post increment Question 1 "
},
{
"code": null,
"e": 115,
"s": 113,
"text": "C"
},
{
"code": "#include <stdio.h> ... |
Semantic-UI | Forms | 23 Nov, 2021
Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is same as a bootstrap for use and has great different elements to use to make your website look more amazing. It uses a class to add CSS to the elements.A form is the section of a document that contains a n... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 461,
"s": 28,
"text": "Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is same as a bootstrap for use and has great different elements to use to m... |
Nested Structure in C with Examples | 07 Jan, 2022
Pre-requisite: Structures in C
A nested structure in C is a structure within structure. One structure can be declared inside another structure in the same way structure members are declared inside a structure.
Syntax:
struct name_1{ member1; member2; . . membern;
struct name_2 { membe... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jan, 2022"
},
{
"code": null,
"e": 59,
"s": 28,
"text": "Pre-requisite: Structures in C"
},
{
"code": null,
"e": 238,
"s": 59,
"text": "A nested structure in C is a structure within structure. One structure can be... |
What does symbol tilde (~) denotes in CSS ? | 17 Oct, 2019
In CSS, the symbol tilde(~) is know as Subsequent-sibling Combinator (also known as tilde or squiggle or twiddle or general-sibling selector). As the name suggests it is made of the “tilde” (U+007E, ~) character that separates two sequences of simple selectors. The elements represented by the two sequences... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Oct, 2019"
},
{
"code": null,
"e": 579,
"s": 28,
"text": "In CSS, the symbol tilde(~) is know as Subsequent-sibling Combinator (also known as tilde or squiggle or twiddle or general-sibling selector). As the name suggests it is made ... |
Queue of Pairs in C++ STL with Examples | 28 Jul, 2021
Queue in STL are a type of container adaptors which operate in a first in first out (FIFO) type of arrangement where elements are inserted at the back (end) and are deleted from the front. Queue of pair can be very efficient in designing complex data structures. The first element is referenced as ‘first’ a... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 442,
"s": 52,
"text": "Queue in STL are a type of container adaptors which operate in a first in first out (FIFO) type of arrangement where elements are inserted at the back (end) and are deleted f... |
Python | Numpy numpy.resize() | 05 Mar, 2019
With the help of Numpy numpy.resize(), we can resize the size of an array. Array can be of any shape but to resize it we just need the size i.e (2, 2), (2, 3) and many more. During resizing numpy append zeros if values at a particular place is missing.
Parameters:new_shape : [tuple of ints, or n ints] Shap... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n05 Mar, 2019"
},
{
"code": null,
"e": 306,
"s": 53,
"text": "With the help of Numpy numpy.resize(), we can resize the size of an array. Array can be of any shape but to resize it we just need the size i.e (2, 2), (2, 3) and many more. ... |
Find power of power under mod of a prime | 05 Jul, 2022
Given four numbers A, B, C and M, where M is prime number. Our task is to find ABC (mod M).Example:
Input : A = 2, B = 4, C = 3, M = 23
Output : 6
43 = 64 so,
2^64(mod 23) = 6
A Naive Approach is to calculate res = BC and then calculate Ares % M by modular exponential. The problem of this approach is... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 Jul, 2022"
},
{
"code": null,
"e": 154,
"s": 52,
"text": "Given four numbers A, B, C and M, where M is prime number. Our task is to find ABC (mod M).Example: "
},
{
"code": null,
"e": 232,
"s": 154,
"text": "Inp... |
Programs for printing different patterns in Bash | 10 Jun, 2022
Given the number N which represents the number of rows and columns, print the different following patterns in Bash.
Pattern-1:
Input: 6
Output:
#
##
###
####
#####
######
Use nested loop to print the given pattern. The first loop represents the row and the second loop represents the colum... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Jun, 2022"
},
{
"code": null,
"e": 170,
"s": 52,
"text": "Given the number N which represents the number of rows and columns, print the different following patterns in Bash. "
},
{
"code": null,
"e": 182,
"s": 170,
... |
Method Overloading In Ruby | 01 Apr, 2020
What is method overloading?Method overloading is a feature that allows a class to have more than one method with same name but different method signature ie. different number of arguments, order of arguments and different types of parameters. Return type is not included in method signature, thus overloaded... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2020"
},
{
"code": null,
"e": 457,
"s": 28,
"text": "What is method overloading?Method overloading is a feature that allows a class to have more than one method with same name but different method signature ie. different number ... |
Python | Pandas Series.dt.dayofweek | 20 Mar, 2019
Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.dayofweek attribute return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6.
Syntax: Series.dt.dayofweek
Param... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 302,
"s": 28,
"text": "Series.dt can be used to access the values of the series as datetimelike and return several properties. Pandas Series.dt.dayofweek attribute return the day of the week. It is ... |
Using Pylint to write clean Python code | by Vishal Sharma | Towards Data Science | A code linter is basically a program that inspects your code and gives feedback. A linter can tell you the issues in your program and also, a way to resolve them. You can run it anytime to ensure that your code is matching standard quality.
Linters look at aspects of code and detect lints:
Logical Lint: tells about cod... | [
{
"code": null,
"e": 412,
"s": 171,
"text": "A code linter is basically a program that inspects your code and gives feedback. A linter can tell you the issues in your program and also, a way to resolve them. You can run it anytime to ensure that your code is matching standard quality."
},
{
... |
How to create a tree view with CSS and JavaScript? | To create a tree view with CSS and JavaScript, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
ul, #treeUL {
list-style-type: none;... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To create a tree view with CSS and JavaScript, the code is as follows −"
},
{
"code": null,
"e": 1145,
"s": 1134,
"text": " Live Demo"
},
{
"code": null,
"e": 2777,
"s": 1145,
"text": "<!DOCTYPE html>\n<html>\n<he... |
Bayes Theorem for Conditional Probability in C/C++ | Conditional probability denoted by P(A|B) is the probability of occurrence of an event ‘A’ given that event ‘B’ has already occurred.
Formula for conditional probability −
P(A|B) = P( A⋂B ) / P(B)
It is the formula that shows the relation between probabilities of occurrences of mutually dependent events i.e. it given t... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "Conditional probability denoted by P(A|B) is the probability of occurrence of an event ‘A’ given that event ‘B’ has already occurred."
},
{
"code": null,
"e": 1234,
"s": 1196,
"text": "Formula for conditional probability −"
},
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.