title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to Shut Down a Computer using Command Prompt? | 01 Oct, 2020
Sometimes, situations might arise due to either a windows bug or some malicious program that start menu tray won’t open even on the press, leaving us with only forcing the desktop or laptop to shut down by either long pressing the power button or cutting off the power supply of the device.
To overcome such... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 319,
"s": 28,
"text": "Sometimes, situations might arise due to either a windows bug or some malicious program that start menu tray won’t open even on the press, leaving us with only forcing the des... |
Python – Pendulum Module | 17 Dec, 2020
The pendulum is one of the popular Python DateTime libraries to ease DateTime manipulation. It provides a cleaner and easier to use API. It simplifies the problem of complex date manipulations involving timezones which are not handled correctly in native datetime instances.
It inherits from the standard da... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 303,
"s": 28,
"text": "The pendulum is one of the popular Python DateTime libraries to ease DateTime manipulation. It provides a cleaner and easier to use API. It simplifies the problem of complex d... |
HTML | <base> href Attribute | 30 Mar, 2022
The HTML | <base> href Attribute is used to specify the base URL for all the relative URL of a page.
Syntax:
<base href="URL">
Attribute Values: It contains the value i.e URL which specifies the absolute URL that defines the base URL of the page. for eg.”www.geeksforgeeks.org”
Example: This Example illustr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Mar, 2022"
},
{
"code": null,
"e": 129,
"s": 28,
"text": "The HTML | <base> href Attribute is used to specify the base URL for all the relative URL of a page."
},
{
"code": null,
"e": 137,
"s": 129,
"text": "Synta... |
jQuery Effect - Scale Effect | The Scale effect can be used with show/hide/toggle. This shrinks or grows an element by a percentage factor.
Here is the simple syntax to use this effect −
selector.hide|show|toggle( "scale", {arguments}, speed );
Here is the description of all the arguments −
direction − The direction of the effect. Can be "both", "v... | [
{
"code": null,
"e": 2431,
"s": 2322,
"text": "The Scale effect can be used with show/hide/toggle. This shrinks or grows an element by a percentage factor."
},
{
"code": null,
"e": 2478,
"s": 2431,
"text": "Here is the simple syntax to use this effect −"
},
{
"code": null... |
Find and display duplicate records in MySQL? | First, a table is created with the help of the CREATE command. This is given as follows −
mysql> CREATE table DuplicateFound
-> (
-> ID int,
-> Name varchar(100),
-> Location varchar(200)
-> );
Query OK, 0 rows affected (0.45 sec)
After creating the table, the records are inserted with the help of the INSERT command as... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "First, a table is created with the help of the CREATE command. This is given as follows −"
},
{
"code": null,
"e": 1293,
"s": 1152,
"text": "mysql> CREATE table DuplicateFound\n-> (\n-> ID int,\n-> Name varchar(100),\n-> Location var... |
How to Split Text Using Regex in Golang? - GeeksforGeeks | 25 Aug, 2020
What is regex? Is Regex the famous anime character? Oops, if you think so, you’re likely to be disappointed. The Go programming language uses the term regexp to denote Regular expressions. Regular expressions are very important in the field of string processing. The “regexp” package in Go holds all necessa... | [
{
"code": null,
"e": 24366,
"s": 24338,
"text": "\n25 Aug, 2020"
},
{
"code": null,
"e": 24879,
"s": 24366,
"text": "What is regex? Is Regex the famous anime character? Oops, if you think so, you’re likely to be disappointed. The Go programming language uses the term regexp to de... |
Scala - Options | Scala Option[ T ] is a container for zero or one element of a given type. An Option[T] can be either Some[T] or None object, which represents a missing value. For instance, the get method of Scala's Map produces Some(value) if a value corresponding to a given key has been found, or None if the given key is not defined ... | [
{
"code": null,
"e": 2330,
"s": 1998,
"text": "Scala Option[ T ] is a container for zero or one element of a given type. An Option[T] can be either Some[T] or None object, which represents a missing value. For instance, the get method of Scala's Map produces Some(value) if a value corresponding to a... |
Print common characters of two Strings in alphabetical order in C++ | In this programming problem, we are given two strings. And we have to find all the characters of the string that are common in both the string and we have to print these common characters in alphabetical order. And print ‘NO COMMON CHARACTERS ’ found if no common letters arise. Given that the string does not contain al... | [
{
"code": null,
"e": 1406,
"s": 1062,
"text": "In this programming problem, we are given two strings. And we have to find all the characters of the string that are common in both the string and we have to print these common characters in alphabetical order. And print ‘NO COMMON CHARACTERS ’ found if... |
DSL - ADSL Fundamentals | In this chapter, we will discuss the fundamentals and standards of Asymmetric Digital Subscriber Line.
To begin with, let us understand the following points.
Discrete Multi-Tone (DMT) modulation used by all ADSL standards for a physical layer.
Discrete Multi-Tone (DMT) modulation used by all ADSL standards for a physic... | [
{
"code": null,
"e": 1863,
"s": 1760,
"text": "In this chapter, we will discuss the fundamentals and standards of Asymmetric Digital Subscriber Line."
},
{
"code": null,
"e": 1918,
"s": 1863,
"text": "To begin with, let us understand the following points."
},
{
"code": nu... |
JSTL - SQL <sql:update> Tag | The <sql:update> tag executes an SQL statement that does not return data; for example, SQL INSERT, UPDATE, or DELETE statements.
The <sql:update> tag has the following attributes −
To start with basic concept, let us create a simple table Employees table in the TEST database and create few records in that table as foll... | [
{
"code": null,
"e": 2368,
"s": 2239,
"text": "The <sql:update> tag executes an SQL statement that does not return data; for example, SQL INSERT, UPDATE, or DELETE statements."
},
{
"code": null,
"e": 2420,
"s": 2368,
"text": "The <sql:update> tag has the following attributes −"
... |
Training Self Driving Cars using Reinforcement Learning | by Jerry Qu | Towards Data Science | By 2040, 95% of new vehicles sold will be fully autonomous.
Wow. 😮
Two reasons why this is revolutionary:
It will save 1.25 MILLION lives every year from traffic accidents
It will give you the equivalence of 3 extra years in a lifetime, currently spent in transit
Self driving cars will become a multi-trillion dollar i... | [
{
"code": null,
"e": 232,
"s": 172,
"text": "By 2040, 95% of new vehicles sold will be fully autonomous."
},
{
"code": null,
"e": 239,
"s": 232,
"text": "Wow. 😮"
},
{
"code": null,
"e": 278,
"s": 239,
"text": "Two reasons why this is revolutionary:"
},
{
... |
Chef - Testing Cookbook with Test Kitchen | Test kitchen is Chef’s integration testing framework. It enables writing tests, which run after VM is instantiated and converged using the cookbook. The tests run on VM and can verify that everything works as expected.
This is node contract to ChefSpec, which only simulates a Chef run. Test Kitchen boots up a real node... | [
{
"code": null,
"e": 2599,
"s": 2380,
"text": "Test kitchen is Chef’s integration testing framework. It enables writing tests, which run after VM is instantiated and converged using the cookbook. The tests run on VM and can verify that everything works as expected."
},
{
"code": null,
"e... |
How to get this nodes’s parent in a JTree with Java? | Let’s say we want the parent of a node, then use the getParent() method -
node3.getFirstChild()
You can also get the parent of child node. Here, “nine” is the child node −
nine.getParent()
The output is as follows displaying this node’s parent on Console −
package my;
import javax.swing.JFrame;
import javax.swing.JTree... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "Let’s say we want the parent of a node, then use the getParent() method -"
},
{
"code": null,
"e": 1158,
"s": 1136,
"text": "node3.getFirstChild()"
},
{
"code": null,
"e": 1234,
"s": 1158,
"text": "You can also ge... |
How to read the data from a properties file in Java?
| The Properties is a subclass of Hashtable class and it represents a persistent set of properties. The Properties can be saved to a stream or loaded from a stream. Each key and its corresponding value in the property list is a string.
The Properties file can be used in Java to externalize the configuration and to store... | [
{
"code": null,
"e": 1297,
"s": 1062,
"text": "The Properties is a subclass of Hashtable class and it represents a persistent set of properties. The Properties can be saved to a stream or loaded from a stream. Each key and its corresponding value in the property list is a string. "
},
{
"cod... |
Redis - Sorted Set Zrank Command | Redis ZRANK command returns the rank of member in the sorted set stored at the key, with the scores ordered from low to high. The rank (or index) is 0-based, which means that the member with the lowest score has rank 0.
If the member exists in the sorted set, Integer reply: the rank of member.
If the member exists in t... | [
{
"code": null,
"e": 2265,
"s": 2045,
"text": "Redis ZRANK command returns the rank of member in the sorted set stored at the key, with the scores ordered from low to high. The rank (or index) is 0-based, which means that the member with the lowest score has rank 0."
},
{
"code": null,
"... |
Finding the Word Analogy from given words using Word2Vec embeddings - GeeksforGeeks | 22 Jan, 2021
In many placement exam rounds, we often encounter a basic question to find word analogies. In the word analogy task, we complete the sentence “a is to b as c is to ___ “, which is often represented as a : b :: c : d and we have to find the word ‘d’. A sample question can be like: ‘man is to woman as king ... | [
{
"code": null,
"e": 24344,
"s": 24316,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 24664,
"s": 24344,
"text": "In many placement exam rounds, we often encounter a basic question to find word analogies. In the word analogy task, we complete the sentence “a is to b as c is to... |
How can we use a MySQL subquery with INSERT statement? | It can be understood with the help of an example in which we would copy the values of a table into other table. We are using the data from table ‘cars’ and copy its data to table ‘copy_cars’ −
mysql> CREATE TABLE copy_cars LIKE cars;
Query OK, 0 rows affected (0.86 sec)
mysql> SELECT * from copy_cars;
Empty set (0.08 ... | [
{
"code": null,
"e": 1255,
"s": 1062,
"text": "It can be understood with the help of an example in which we would copy the values of a table into other table. We are using the data from table ‘cars’ and copy its data to table ‘copy_cars’ −"
},
{
"code": null,
"e": 1387,
"s": 1255,
... |
Binarization of Digital Images Using Otsu Method in MATLAB - GeeksforGeeks | 23 Nov, 2021
Binarization is important in digital image processing, mainly in computer vision applications. Thresholding is an efficient technique in binarization. The choice of thresholding technique is crucial in binarization. There are various thresholding algorithms have been proposed to define the optimal threshol... | [
{
"code": null,
"e": 24670,
"s": 24642,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 24986,
"s": 24670,
"text": "Binarization is important in digital image processing, mainly in computer vision applications. Thresholding is an efficient technique in binarization. The choice o... |
Objective-C - if...else statement | An if statement can be followed by an optional else statement, which executes when the boolean expression is false.
The syntax of an if...else statement in Objective-C programming language is −
if(boolean_expression) {
/* statement(s) will execute if the boolean expression is true */
} else {
/* statement(s) will ... | [
{
"code": null,
"e": 2676,
"s": 2560,
"text": "An if statement can be followed by an optional else statement, which executes when the boolean expression is false."
},
{
"code": null,
"e": 2754,
"s": 2676,
"text": "The syntax of an if...else statement in Objective-C programming la... |
DAX Aggregation - SUM function | Returns the sum of all the numbers in a column.
SUM (<column>)
column
The column that contains the numbers to sum.
A decimal number.
If any rows contain non-numeric values, blanks are returned.
= SUM ([Sales Amount])
53 Lectures
5.5 hours
Abhay Gadiya
24 Lectures
2 hours
Randy Minder
... | [
{
"code": null,
"e": 2049,
"s": 2001,
"text": "Returns the sum of all the numbers in a column."
},
{
"code": null,
"e": 2066,
"s": 2049,
"text": "SUM (<column>) \n"
},
{
"code": null,
"e": 2073,
"s": 2066,
"text": "column"
},
{
"code": null,
"e": 2... |
GATE | GATE CS 2019 | Question 33 - GeeksforGeeks | 05 Aug, 2021
Consider the following C program:
#include<stdio.h> int main(){ int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 5}, *ip = arr + 4; printf("%d\n", ip[1]); return 0;}
The number that will be displayed on execution of the program is _________ .(A) 6(B) 5(C) 4(D) segmentation errorAnswer: (A)Explanatio... | [
{
"code": null,
"e": 24298,
"s": 24270,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 24332,
"s": 24298,
"text": "Consider the following C program:"
},
{
"code": "#include<stdio.h> int main(){ int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 5}, *ip = arr + 4; prin... |
Heap Data Structures | Heap is a special case of balanced binary tree data structure where the root-node key is compared with its children and arranged accordingly. If α has child node β then −
key(α) ≥ key(β)
As the value of parent is greater than that of child, this property generates Max Heap. Based on this criteria, a heap can be of two ... | [
{
"code": null,
"e": 2751,
"s": 2580,
"text": "Heap is a special case of balanced binary tree data structure where the root-node key is compared with its children and arranged accordingly. If α has child node β then −"
},
{
"code": null,
"e": 2767,
"s": 2751,
"text": "key(α) ≥ ke... |
How to query between two dates in MySQL? | You can query between dates with the help of BETWEEN statement. The syntax is as follows −
select *from yourTableName where yourColumnName between ‘yourStartingDate’ and curdate().
Use curdate() or now(), both these functions will work. To understand the above syntax, let us create a table −
mysql> create table Between... | [
{
"code": null,
"e": 1153,
"s": 1062,
"text": "You can query between dates with the help of BETWEEN statement. The syntax is as follows −"
},
{
"code": null,
"e": 1243,
"s": 1153,
"text": "select *from yourTableName where yourColumnName between ‘yourStartingDate’ and curdate()."
... |
Hive - Create Table | This chapter explains how to create a table and how to insert data into it. The conventions of creating a table in HIVE is quite similar to creating a table using SQL.
Create Table is a statement used to create a table in Hive. The syntax and example are as follows:
CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS] [... | [
{
"code": null,
"e": 2118,
"s": 1950,
"text": "This chapter explains how to create a table and how to insert data into it. The conventions of creating a table in HIVE is quite similar to creating a table using SQL."
},
{
"code": null,
"e": 2217,
"s": 2118,
"text": "Create Table i... |
MYBATIS - Read Operation | We discussed in the last chapter, how to insert values into the STUDENT table using MyBatis by performing CREATE operation. This chapter explains how to read the data in a table using MyBatis.
We have the following STUDENT table in MySQL −
CREATE TABLE details.student(
ID int(10) NOT NULL AUTO_INCREMENT,
NAME var... | [
{
"code": null,
"e": 2064,
"s": 1871,
"text": "We discussed in the last chapter, how to insert values into the STUDENT table using MyBatis by performing CREATE operation. This chapter explains how to read the data in a table using MyBatis."
},
{
"code": null,
"e": 2111,
"s": 2064,
... |
Find the winner of the game - GeeksforGeeks | 19 Jan, 2022
Two players are playing a game where a string str is given. The first player can take the characters at even indices and the second player can take the characters at odd indices. The player which can build the lexicographically smaller string than the other player wins the game. Print the winner of the gam... | [
{
"code": null,
"e": 24938,
"s": 24910,
"text": "\n19 Jan, 2022"
},
{
"code": null,
"e": 25305,
"s": 24938,
"text": "Two players are playing a game where a string str is given. The first player can take the characters at even indices and the second player can take the characters ... |
Kubernetes - Secrets | Secrets can be defined as Kubernetes objects used to store sensitive data such as user name and passwords with encryption.
There are multiple ways of creating secrets in Kubernetes.
Creating from txt files.
Creating from yaml file.
In order to create secrets from a text file such as user name and password, we first nee... | [
{
"code": null,
"e": 2318,
"s": 2195,
"text": "Secrets can be defined as Kubernetes objects used to store sensitive data such as user name and passwords with encryption."
},
{
"code": null,
"e": 2377,
"s": 2318,
"text": "There are multiple ways of creating secrets in Kubernetes."... |
Finding Driving Lane Line live with OpenCV | by Percy Jaiswal | Towards Data Science | Hello, in this project I will attempt to find lane lines from a dash cam video feed. Once we detect lane lines, we will mark them on the original video frame and play it back. This all will be done online and without any lag using OpenCV functions.
Our approach here would be to develop sequence of functions to detect l... | [
{
"code": null,
"e": 421,
"s": 172,
"text": "Hello, in this project I will attempt to find lane lines from a dash cam video feed. Once we detect lane lines, we will mark them on the original video frame and play it back. This all will be done online and without any lag using OpenCV functions."
},
... |
Java program to round a number | The java.lang.Math.round(float a) returns the closest int to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type int. Special cases −
If the argument is NaN, the result is 0.
If the argument is NaN, the result is 0.
If the argument is negative ... | [
{
"code": null,
"e": 1272,
"s": 1062,
"text": "The java.lang.Math.round(float a) returns the closest int to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type int. Special cases −"
},
{
"code": null,
"e": 1313,
... |
R - Quick Guide | R is a programming language and software environment for statistical analysis, graphics representation and reporting. R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and is currently developed by the R Development Core Team.
The core of R is an interpreted computer language ... | [
{
"code": null,
"e": 2672,
"s": 2402,
"text": "R is a programming language and software environment for statistical analysis, graphics representation and reporting. R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and is currently developed by the R Develo... |
How to get default phone Network operator name in android? | This example demonstrate about How to get default phone Network operator name in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"... | [
{
"code": null,
"e": 1152,
"s": 1062,
"text": "This example demonstrate about How to get default phone Network operator name in android."
},
{
"code": null,
"e": 1281,
"s": 1152,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requi... |
Difference between the Ternary operator and Null coalescing operator in php | Ternary operator is used to replace if else statements into one statement.
(condition) ? expression1 : expression2;
if(condition) {
return expression1;
}
else {
return expression2;
}
If condition is true, then it returns result of expression1 else it returns result of expression2. void is not allowed in condition... | [
{
"code": null,
"e": 1137,
"s": 1062,
"text": "Ternary operator is used to replace if else statements into one statement."
},
{
"code": null,
"e": 1178,
"s": 1137,
"text": "(condition) ? expression1 : expression2;"
},
{
"code": null,
"e": 1251,
"s": 1178,
"tex... |
Java Cryptography - Message Digest | Hash functions are extremely useful and appear in almost all information security applications.
A hash function is a mathematical function that converts a numerical input value into another compressed numerical value. The input to the hash function is of arbitrary length but output is always of fixed length.
Values ret... | [
{
"code": null,
"e": 2149,
"s": 2053,
"text": "Hash functions are extremely useful and appear in almost all information security applications."
},
{
"code": null,
"e": 2363,
"s": 2149,
"text": "A hash function is a mathematical function that converts a numerical input value into ... |
BERT for dummies — Step by Step Tutorial | by Michel Kana, Ph.D | Towards Data Science | This article introduces everything you need in order to take off with BERT. We provide a step-by-step guide on how to fine-tune Bidirectional Encoder Representations from Transformers (BERT) for Natural Language Understanding and benchmark it with LSTM.
Chatbots, virtual assistant, and dialog agents will typically clas... | [
{
"code": null,
"e": 426,
"s": 172,
"text": "This article introduces everything you need in order to take off with BERT. We provide a step-by-step guide on how to fine-tune Bidirectional Encoder Representations from Transformers (BERT) for Natural Language Understanding and benchmark it with LSTM."
... |
How to declare a variable inside a procedure in MySQL? | You can use the DECLARE command to declare a variable inside a MySQL procedure. Let us create a stored procedure in MySQL −
mysql> DELIMITER //
mysql> CREATE PROCEDURE DECLARE_VARIABLE_DEMO(IN value int)
-> BEGIN
-> DECLARE searchValue int;
-> set searchValue=value;
-> if searchValue=10 then
-> select... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "You can use the DECLARE command to declare a variable inside a MySQL procedure. Let us create a stored procedure in MySQL −"
},
{
"code": null,
"e": 1529,
"s": 1186,
"text": "mysql> DELIMITER //\nmysql> CREATE PROCEDURE DECLARE_VARIA... |
execve() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
C library function - bsearch() | The C library function void *bsearch(const void *key, const void *base, size_t nitems, size_t size, int (*compar)(const void *, const void *)) function searches an array of nitems objects, the initial member of which is pointed to by base, for a member that matches the object pointed to, by key. The size of each member... | [
{
"code": null,
"e": 2364,
"s": 2007,
"text": "The C library function void *bsearch(const void *key, const void *base, size_t nitems, size_t size, int (*compar)(const void *, const void *)) function searches an array of nitems objects, the initial member of which is pointed to by base, for a member ... |
jsoup - Set HTML | Following example will showcase use of method to set, prepend or append html to a dom element after parsing an HTML String into a Document object.
Document document = Jsoup.parse(html);
Element div = document.getElementById("sampleDiv");
div.html("<p>This is a sample content.</p>");
div.prepend("<p>Initial Text... | [
{
"code": null,
"e": 2177,
"s": 2030,
"text": "Following example will showcase use of method to set, prepend or append html to a dom element after parsing an HTML String into a Document object."
},
{
"code": null,
"e": 2393,
"s": 2177,
"text": "Document document = Jsoup.parse(htm... |
BigDecimal toBigInteger() Method in Java - GeeksforGeeks | 09 Nov, 2021
The java.math.BigDecimal.toBigInteger() is an inbuilt method in java that converts this BigDecimal to a BigInteger. This conversion is analogous to the narrowing primitive conversion from double to long. Any fractional part of this BigDecimal will be discarded. This conversion can lose information about th... | [
{
"code": null,
"e": 23582,
"s": 23554,
"text": "\n09 Nov, 2021"
},
{
"code": null,
"e": 23926,
"s": 23582,
"text": "The java.math.BigDecimal.toBigInteger() is an inbuilt method in java that converts this BigDecimal to a BigInteger. This conversion is analogous to the narrowing p... |
How to Zoom with Axes3D in Matplotlib? | To zoom with Axes3D, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Create a new figure or activate an existing figure using figure() method.
Get 3D axes object using Axes3D(fig) method.
Plot x, y and z data points using scatter() method.
To display the fig... | [
{
"code": null,
"e": 1117,
"s": 1062,
"text": "To zoom with Axes3D, we can take the following steps −"
},
{
"code": null,
"e": 1193,
"s": 1117,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code": null,
"e": 1267,
"s":... |
C library function - malloc() | The C library function void *malloc(size_t size) allocates the requested memory and returns a pointer to it.
Following is the declaration for malloc() function.
void *malloc(size_t size)
size − This is the size of the memory block, in bytes.
size − This is the size of the memory block, in bytes.
This function returns a... | [
{
"code": null,
"e": 2116,
"s": 2007,
"text": "The C library function void *malloc(size_t size) allocates the requested memory and returns a pointer to it."
},
{
"code": null,
"e": 2168,
"s": 2116,
"text": "Following is the declaration for malloc() function."
},
{
"code":... |
How to Add Fingerprint Authentication in Your Android App? - GeeksforGeeks | 16 Feb, 2021
Now a day, we have seen that most of our Android phone contains fingerprint authentication. And we can implement that fingerprint authentication in our app so to secure our app as much as we can. In this article, we will take a look at the implementation of fingerprint authentication.
We will be building a... | [
{
"code": null,
"e": 24749,
"s": 24721,
"text": "\n16 Feb, 2021"
},
{
"code": null,
"e": 25035,
"s": 24749,
"text": "Now a day, we have seen that most of our Android phone contains fingerprint authentication. And we can implement that fingerprint authentication in our app so to s... |
Automatic License Plate Detection & Recognition using deep learning | by Achraf KHAZRI | Towards Data Science | Introduction
The massive integration of information technologies, under different aspects of the modern world, has led to the treatment of vehicles as conceptual resources in information systems. Since an autonomous information system has no meaning without any data, there is a need to reform vehicle information betwee... | [
{
"code": null,
"e": 185,
"s": 172,
"text": "Introduction"
},
{
"code": null,
"e": 1284,
"s": 185,
"text": "The massive integration of information technologies, under different aspects of the modern world, has led to the treatment of vehicles as conceptual resources in informatio... |
How to get the first day of the current month in MySQL? | With the help of following MySQL query, we can get the first day of the current month −
mysql> SELECT DATE_SUB(LAST_DAY(NOW()),INTERVAL DAY(LAST_DAY(NOW()))-
1 DAY) AS 'FIRST DAY OF CURRENT MONTH';
+----------------------------+
| FIRST DAY OF CURRENT MONTH |
+----------------------------+
| 2017-10-01 ... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "With the help of following MySQL query, we can get the first day of the current month −"
},
{
"code": null,
"e": 1439,
"s": 1150,
"text": "mysql> SELECT DATE_SUB(LAST_DAY(NOW()),INTERVAL DAY(LAST_DAY(NOW()))-\n1 DAY) AS 'FIRST DAY OF... |
Sed Command in Linux/Unix with examples - GeeksforGeeks | 21 Dec, 2021
SED command in UNIX stands for stream editor and it can perform lots of functions on file like searching, find and replace, insertion or deletion. Though most common use of SED command in UNIX is for substitution or for find and replace. By using SED you can edit files even without opening them, which is ... | [
{
"code": null,
"e": 23639,
"s": 23608,
"text": " \n21 Dec, 2021\n"
},
{
"code": null,
"e": 24065,
"s": 23639,
"text": "SED command in UNIX stands for stream editor and it can perform lots of functions on file like searching, find and replace, insertion or deletion. Though most c... |
What is Syntax Tree? | tree in which each leaf node describes an operand & each interior node an operator. The syntax tree is shortened form of the Parse Tree.
Example1 − Draw Syntax Tree for the string a + b ∗ c − d.
Rules for constructing a syntax tree
Each node in a syntax tree can be executed as data with multiple fields. In the node for... | [
{
"code": null,
"e": 1199,
"s": 1062,
"text": "tree in which each leaf node describes an operand & each interior node an operator. The syntax tree is shortened form of the Parse Tree."
},
{
"code": null,
"e": 1257,
"s": 1199,
"text": "Example1 − Draw Syntax Tree for the string a ... |
What are literals in Java? | A literal is a source code representation of a fixed value. They are represented directly in the code without any computation.
Literals can be assigned to any primitive type variable.
byte a = 68;
char a = 'A'
byte, int, long, and short can be expressed in decimal(base 10), hexadecimal(base 16) or octal(base 8) number ... | [
{
"code": null,
"e": 1189,
"s": 1062,
"text": "A literal is a source code representation of a fixed value. They are represented directly in the code without any computation."
},
{
"code": null,
"e": 1246,
"s": 1189,
"text": "Literals can be assigned to any primitive type variable... |
Binary Search
| When the list is sorted we can use the binary search technique to find items on the list. In this procedure, the entire list is divided into two sub-lists. If the item is found in the middle position, it returns the location, otherwise jumps to either left or right sub-list and do the same process again until finding t... | [
{
"code": null,
"e": 1411,
"s": 1062,
"text": "When the list is sorted we can use the binary search technique to find items on the list. In this procedure, the entire list is divided into two sub-lists. If the item is found in the middle position, it returns the location, otherwise jumps to either l... |
What are the different data types used in SQL queries? | Data type specifies the kind of data that a field stores. There are different types of data types used in the structured query language (SQL) queries which are as follows −
Character data type
Number data type
Date and time data types
Let’s see each data type with an example.
Character data types are used to store char... | [
{
"code": null,
"e": 1235,
"s": 1062,
"text": "Data type specifies the kind of data that a field stores. There are different types of data types used in the structured query language (SQL) queries which are as follows −"
},
{
"code": null,
"e": 1255,
"s": 1235,
"text": "Character... |
Spelling checker in Python - GeeksforGeeks | 07 Oct, 2020
For any type of text processing or analysis, checking the spelling of the word is one of the basic requirements. This article discusses various ways that you can check the spellings of the words and also can correct the spelling of the respective word.
First, you need to install the library textblob using... | [
{
"code": null,
"e": 24024,
"s": 23996,
"text": "\n07 Oct, 2020"
},
{
"code": null,
"e": 24278,
"s": 24024,
"text": "For any type of text processing or analysis, checking the spelling of the word is one of the basic requirements. This article discusses various ways that you can c... |
tar - Unix, Linux Command | Operations:
[-]A --catenate --concatenate
[-]c --create
[-]d --diff --compare
[-]r --append
[-]t --list
[-]u --update
[-]x --extract --get
--delete
Common Options:
-C, --directory DIR
-f, --file F
-j, --bzip2
-p, --preserve-permissions
-v, --verbose
-z, --gzip
All Options:
[
--atime-preserve ]
[
-b... | [
{
"code": null,
"e": 10591,
"s": 10577,
"text": "\nOperations: "
},
{
"code": null,
"e": 10736,
"s": 10591,
"text": "[-]A --catenate --concatenate \n[-]c --create \n[-]d --diff --compare \n[-]r --append \n[-]t --list \n[-]u --update \n[-]x --extract --get \n--delete \n"
},
{
... |
exit(), abort() and assert() in C/C++ | The function exit() is used to terminate the calling function immediately without executing further processes. As exit() function calls, it terminates processes. It is declared in “stdlib.h” header file. It does not return anything.
Here is the syntax of exit() in C language,
void exit(int status_value);
Here,
status_v... | [
{
"code": null,
"e": 1295,
"s": 1062,
"text": "The function exit() is used to terminate the calling function immediately without executing further processes. As exit() function calls, it terminates processes. It is declared in “stdlib.h” header file. It does not return anything."
},
{
"code"... |
Java - atan2() Method | The method converts rectangular coordinates (x, y) to polar coordinate (r, theta) and returns theta.
double atan2(double y, double x)
Here is the detail of parameters −
X − X co-ordinate in double data type.
X − X co-ordinate in double data type.
Y − Y co-ordinate in double data type.
Y − Y co-ordinate in double data ... | [
{
"code": null,
"e": 2478,
"s": 2377,
"text": "The method converts rectangular coordinates (x, y) to polar coordinate (r, theta) and returns theta."
},
{
"code": null,
"e": 2512,
"s": 2478,
"text": "double atan2(double y, double x)\n"
},
{
"code": null,
"e": 2547,
... |
How to disable the back button in android while logging out the application using Kotlin? | This example demonstrates how to disable the back button in android while logging out the application using Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml vers... | [
{
"code": null,
"e": 1178,
"s": 1062,
"text": "This example demonstrates how to disable the back button in android while logging out the application using Kotlin."
},
{
"code": null,
"e": 1307,
"s": 1178,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New ... |
GATE | GATE-CS-2015 (Set 3) | Question 61 - GeeksforGeeks | 07 Dec, 2021
Consider the following reservation table for a pipeline having three stages S1, S2 and S3.
Time -->
-----------------------------
1 2 3 4 5
-----------------------------
S1 | X | | | | X |
S2 | | X | | X | |
S3 | | | X | | |
The minimum average lat... | [
{
"code": null,
"e": 24071,
"s": 24043,
"text": "\n07 Dec, 2021"
},
{
"code": null,
"e": 24162,
"s": 24071,
"text": "Consider the following reservation table for a pipeline having three stages S1, S2 and S3."
},
{
"code": null,
"e": 24355,
"s": 24162,
"text": ... |
Difference Between Bubble Sort and Selection Sort | In this post, we will understand the difference between Bubble Sort and Selection Sort
It is a simple sorting algorithm.
It is a simple sorting algorithm.
It iterates through the list, and compares adjacent pairs of elements to sort them.
It iterates through the list, and compares adjacent pairs of elements to sort the... | [
{
"code": null,
"e": 1149,
"s": 1062,
"text": "In this post, we will understand the difference between Bubble Sort and Selection Sort"
},
{
"code": null,
"e": 1183,
"s": 1149,
"text": "It is a simple sorting algorithm."
},
{
"code": null,
"e": 1217,
"s": 1183,
... |
How can grid plot in Bokeh library be created with Python? | Bokeh is a Python package that helps in data visualization. It is an open source project. Bokeh renders its plot using HTML and JavaScript. This indicates that it is useful while working with web-based dashboards.
Bokeh converts the data source into a JSON file. This file is used as an input to BokehJS, which is a Java... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "Bokeh is a Python package that helps in data visualization. It is an open source project. Bokeh renders its plot using HTML and JavaScript. This indicates that it is useful while working with web-based dashboards."
},
{
"code": null,
"e": 14... |
wxPython - Notebook Class | wxPython class library contains various ‘book’ control. A book control allows the user to switch between various panels in a frame. This is especially useful when a large amount of data is to be presented.
Book classes are inherited from wx.BookCtrlBase class. The following type of book controls are available −
wx.Note... | [
{
"code": null,
"e": 2088,
"s": 1882,
"text": "wxPython class library contains various ‘book’ control. A book control allows the user to switch between various panels in a frame. This is especially useful when a large amount of data is to be presented."
},
{
"code": null,
"e": 2195,
... |
List of useful Github Commands - GeeksforGeeks | 04 Aug, 2021
Github is a distributed version control system which helps to manage the repositories.
These are a list of few commands that you can use frequently on github(git bash)
1.git help
Take help from github help section for different commands and other errors
2.git config
To set the basic configurations on ... | [
{
"code": null,
"e": 24617,
"s": 24589,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 24705,
"s": 24617,
"text": "Github is a distributed version control system which helps to manage the repositories. "
},
{
"code": null,
"e": 24788,
"s": 24705,
"text": "Th... |
How to get HTML content of an element using jQuery? | To get HTML content of an element using jQuery, use the html() method. The html() method gets the html contents of the first matched element.
You can try to run the following code to get HTML content of an element using jQuery:
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/j... | [
{
"code": null,
"e": 1204,
"s": 1062,
"text": "To get HTML content of an element using jQuery, use the html() method. The html() method gets the html contents of the first matched element."
},
{
"code": null,
"e": 1290,
"s": 1204,
"text": "You can try to run the following code to... |
How to create an empty file using Python? | The easiest way to simply create a file without truncating it in case it exists is −
open('my_file.txt', 'a').close()
In Python 3.4+, you can directly use the pathlib module to touch files. For example,
from pathlib import Path
Path('my_file.txt').touch()
You can also create new files without opening them using the os ... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "The easiest way to simply create a file without truncating it in case it exists is −"
},
{
"code": null,
"e": 1180,
"s": 1147,
"text": "open('my_file.txt', 'a').close()"
},
{
"code": null,
"e": 1265,
"s": 1180,
"t... |
C# Program to get the last access time of a file | To get the last access time of a file in C#, use the LastAccessTime() method.
For this, use the FileInfo as well as DateTime classes.Create an object of each −
FileInfo file = new FileInfo("new.txt");
DateTime dt = file.CreationTime;
dt = file.LastAccessTime;
Let us see the complete code −
Live Demo
using System.IO;
u... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "To get the last access time of a file in C#, use the LastAccessTime() method."
},
{
"code": null,
"e": 1222,
"s": 1140,
"text": "For this, use the FileInfo as well as DateTime classes.Create an object of each −"
},
{
"code": ... |
Perl | String functions (length, lc, uc, index, rindex) - GeeksforGeeks | 26 Jun, 2019
String in Perl is a sequence of character enclosed within some kinds of quotation marks. Perl string can contain UNICODE, ASCII and escape sequence characters. Perl provides the various function to manipulate the string like any other programming language. Some string functions of Perl are as follows:
leng... | [
{
"code": null,
"e": 26659,
"s": 26631,
"text": "\n26 Jun, 2019"
},
{
"code": null,
"e": 26962,
"s": 26659,
"text": "String in Perl is a sequence of character enclosed within some kinds of quotation marks. Perl string can contain UNICODE, ASCII and escape sequence characters. Per... |
C++ Program to Display Fibonacci Series | The fibonacci series contains numbers in which each term is the sum of the previous two terms. This creates the following integer sequence −
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377.......
The recurrence relation that defines the fibonacci numbers is as follows −
F(n) = F(n-1) + F(n-2) F(0)=0 F(1)=1
There... | [
{
"code": null,
"e": 1203,
"s": 1062,
"text": "The fibonacci series contains numbers in which each term is the sum of the previous two terms. This creates the following integer sequence −"
},
{
"code": null,
"e": 1265,
"s": 1203,
"text": "0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... |
TypeScript - Array slice() | slice() method extracts a section of an array and returns a new array.
array.slice( begin [,end] );
begin − Zero-based index at which to begin extraction. As a negative index, start indicates an offset from the end of the sequence.
begin − Zero-based index at which to begin extraction. As a negative index, start indic... | [
{
"code": null,
"e": 2119,
"s": 2048,
"text": "slice() method extracts a section of an array and returns a new array."
},
{
"code": null,
"e": 2149,
"s": 2119,
"text": "array.slice( begin [,end] );\n"
},
{
"code": null,
"e": 2281,
"s": 2149,
"text": "begin − Z... |
Find the sum of the diagonal elements of the given N X N spiral matrix - GeeksforGeeks | 13 Dec, 2021
Given N which is the size of the N X N spiral matrix of the form:
16 15 14 13
5 4 3 12
6 1 2 11
7 8 9 10
The task is to find the sum of the diagonal elements of this matrix.Examples:
Input: N = 3
Output: 25
5 4 3
6 1 2
7 8 9
The sum of elements along its two diagonals will be
1 + 3 + 7 + 5 + ... | [
{
"code": null,
"e": 26053,
"s": 26025,
"text": "\n13 Dec, 2021"
},
{
"code": null,
"e": 26121,
"s": 26053,
"text": "Given N which is the size of the N X N spiral matrix of the form: "
},
{
"code": null,
"e": 26169,
"s": 26121,
"text": "16 15 14 13\n5 4 3 ... |
Count of permutations such that sum of K numbers from given range is even - GeeksforGeeks | 29 Jun, 2021
Given a range [low, high], both inclusive, and an integer K, the task is to select K numbers from the range(a number can be chosen multiple times) such that the sum of those K numbers is even. Print the number of all such permutations.
Examples:
Input: low = 4, high = 5, k = 3 Output: 4 Explanation: There ... | [
{
"code": null,
"e": 26707,
"s": 26679,
"text": "\n29 Jun, 2021"
},
{
"code": null,
"e": 26943,
"s": 26707,
"text": "Given a range [low, high], both inclusive, and an integer K, the task is to select K numbers from the range(a number can be chosen multiple times) such that the su... |
ES6 - Array Method push() | push() method appends the given element(s) in the last of the array and returns the length of the new array.
array.push(element1, ..., elementN);
element1, ..., elementN: The elements to add to the end of the array.
element1, ..., elementN: The elements to add to the end of the array.
Returns the length of the new... | [
{
"code": null,
"e": 2386,
"s": 2277,
"text": "push() method appends the given element(s) in the last of the array and returns the length of the new array."
},
{
"code": null,
"e": 2428,
"s": 2386,
"text": "array.push(element1, ..., elementN); \n"
},
{
"code": null,
... |
PHP program to check if a year is leap year or not | To check if a year is leap year or not in PHP, the code is as follows −
Live Demo
<?php
function year_check($my_year){
if ($my_year % 400 == 0)
print("It is a leap year");
else if ($my_year % 100 == 0)
print("It is not a leap year");
else if ($my_year % 4 == 0)
print("It... | [
{
"code": null,
"e": 1134,
"s": 1062,
"text": "To check if a year is leap year or not in PHP, the code is as follows −"
},
{
"code": null,
"e": 1145,
"s": 1134,
"text": " Live Demo"
},
{
"code": null,
"e": 1506,
"s": 1145,
"text": "<?php\n function year_chec... |
What is onsubmit event in JavaScript? | The onsubmit event is an event that occurs when you try to submit a form. You can put your form validation against this event type. The following example shows how to use onsubmit. Here we are calling a validate() function before submitting a form data to the web server. If validate() function returns true, the form wi... | [
{
"code": null,
"e": 1437,
"s": 1062,
"text": "The onsubmit event is an event that occurs when you try to submit a form. You can put your form validation against this event type. The following example shows how to use onsubmit. Here we are calling a validate() function before submitting a form data ... |
Exception Handling in PHP - GeeksforGeeks | 31 Oct, 2018
An exception is unexpected program result that can be handled by the program itself. Exception Handling in PHP is almost similar to exception handling in all programming languages.PHP provides following specialized keywords for this purpose.
try: It represent block of code in which exception can arise.
cat... | [
{
"code": null,
"e": 40529,
"s": 40501,
"text": "\n31 Oct, 2018"
},
{
"code": null,
"e": 40771,
"s": 40529,
"text": "An exception is unexpected program result that can be handled by the program itself. Exception Handling in PHP is almost similar to exception handling in all progr... |
Tryit Editor v3.7 | HTML Input types
Tryit: input type = url | [
{
"code": null,
"e": 27,
"s": 10,
"text": "HTML Input types"
}
] |
Understanding Edge Relaxation for Dijkstra’s Algorithm and Bellman-Ford Algorithm | by Yasufumi TANIGUCHI | Towards Data Science | The purpose of the shortest paths problem is to find the shortest path from the starting vertex to the goal vertex. We widely use the algorithms to solve the shortest paths problem from competitive programming to Google Maps directions search. By understanding the key notion, “edge relaxation”, it is really easier to u... | [
{
"code": null,
"e": 966,
"s": 172,
"text": "The purpose of the shortest paths problem is to find the shortest path from the starting vertex to the goal vertex. We widely use the algorithms to solve the shortest paths problem from competitive programming to Google Maps directions search. By understa... |
Effective Modular Design in Software Engineering - GeeksforGeeks | 20 Dec, 2019
The role of effective modular design in software engineering:Any software comprises of many systems which contains several sub-systems and those sub-systems further contains their sub-systems. So, designing a complete system in one go comprising of each and every required functionality is a hectic work and... | [
{
"code": null,
"e": 24581,
"s": 24553,
"text": "\n20 Dec, 2019"
},
{
"code": null,
"e": 24948,
"s": 24581,
"text": "The role of effective modular design in software engineering:Any software comprises of many systems which contains several sub-systems and those sub-systems furthe... |
3D Surface plotting in Python using Matplotlib - GeeksforGeeks | 12 Oct, 2021
A Surface Plot is a representation of three-dimensional dataset. It describes a functional relationship between two independent variables X and Z and a designated dependent variable Y, rather than showing the individual data points. It is a companion plot of the contour plot. It is similar to the wireframe... | [
{
"code": null,
"e": 29937,
"s": 29909,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 30380,
"s": 29937,
"text": "A Surface Plot is a representation of three-dimensional dataset. It describes a functional relationship between two independent variables X and Z and a designated ... |
X-Ray Medical Image Analysis : Deep Learning with TensorFlow | Towards Data Science | In the past few years, we have seen a rapid increase in using Deep Learning for medical diagnosis in various forms, specially in the analysis of medical images. Here we will set up a pipeline to classify chest x-ray images of patients with and without pneumonia. The complete dataset is available in Kaggle under Creativ... | [
{
"code": null,
"e": 597,
"s": 171,
"text": "In the past few years, we have seen a rapid increase in using Deep Learning for medical diagnosis in various forms, specially in the analysis of medical images. Here we will set up a pipeline to classify chest x-ray images of patients with and without pne... |
Files deleteIfExists() method in Java with Examples - GeeksforGeeks | 30 Jul, 2019
The deleteIfExists() method of java.nio.file.Files help us to delete a file if the file exists at the path. we pass the path of the file as a parameter to this method. This method will return true if the file was deleted by this method; false if the file could not be deleted because it did not exist.
If th... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n30 Jul, 2019"
},
{
"code": null,
"e": 24250,
"s": 23948,
"text": "The deleteIfExists() method of java.nio.file.Files help us to delete a file if the file exists at the path. we pass the path of the file as a parameter to this met... |
How to find the second largest element in a user-input JavaScript array? | Let’s say following is our array −
var numbers=[10,50,80,60,89];
To find the second largest element, the code is as follows −
var numbers=[10,50,80,60,89];
var firstLargerNumber = Number.MIN_SAFE_INTEGER;
var secondlargerNumber = firstLargerNumber;
for(var tempNumber of numbers){
if(tempNumber > firstLargerNumber){
... | [
{
"code": null,
"e": 1097,
"s": 1062,
"text": "Let’s say following is our array −"
},
{
"code": null,
"e": 1127,
"s": 1097,
"text": "var numbers=[10,50,80,60,89];"
},
{
"code": null,
"e": 1188,
"s": 1127,
"text": "To find the second largest element, the code i... |
Using csv module to read the data in Pandas - GeeksforGeeks | 05 Aug, 2021
The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. There were various formats of CSV until its standardization. The lack of a well-defined standard means that subtle differences often exist in the data produced and consumed by diffe... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 24953,
"s": 24292,
"text": "The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. There were various formats of CSV unt... |
How to print a name multiple times without loop statement using C language? | Try to print a name 10 times without using any loop or goto statement in C programming language.
Generally, looping statements are used to repeat the block of code until condition is false.
In this program, we are trying to print a name 10 times without using loop or goto statements.
Live Demo
#include <stdio.h>
void ... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "Try to print a name 10 times without using any loop or goto statement in C programming language."
},
{
"code": null,
"e": 1252,
"s": 1159,
"text": "Generally, looping statements are used to repeat the block of code until condition is... |
Change the order of a Pandas DataFrame columns in Python - GeeksforGeeks | 11 Aug, 2021
Let us see how to change the order of a DataFrame’s columns.
Algorithm :
Create a DataFrame.
Reassign the same DataFrame with the order of the columns changed.
Print the DataFrame.
Example 1 :
Python3
# importing the modulesimport pandas as pdimport numpy as np # creating the DataFramemy_data = {'Sr.no'... | [
{
"code": null,
"e": 25054,
"s": 25026,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 25116,
"s": 25054,
"text": "Let us see how to change the order of a DataFrame’s columns. "
},
{
"code": null,
"e": 25130,
"s": 25116,
"text": "Algorithm : "
},
{
... |
Check if all bits can be made same by single flip - GeeksforGeeks | 25 Aug, 2021
Given a binary string, find if it is possible to make all its digits equal (either all 0’s or all 1’s) by flipping exactly one bit.
Input: 101
Output: Yes
Explanation: In 101, the 0 can be flipped
to make it all 1
Input: 11
Output: No
Explanation: No matter whichever digit you
flip, you w... | [
{
"code": null,
"e": 25155,
"s": 25127,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 25288,
"s": 25155,
"text": "Given a binary string, find if it is possible to make all its digits equal (either all 0’s or all 1’s) by flipping exactly one bit. "
},
{
"code": null,
... |
Tryit Editor v3.6 - Show Node.js | var http = require('http');
var url = require('url');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
/*Use the url module to turn the querystring into an object:*/
var q = url.parse(req.url, true).query;
/*Return the year and month from the query object:*/
var txt... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "var http = require('http');"
},
{
"code": null,
"e": 54,
"s": 28,
"text": "var url = require('url');"
},
{
"code": null,
"e": 56,
"s": 54,
"text": ""
},
{
"code": null,
"e": 96,
"s": 56,
"text": "h... |
How to Install Scipy In Python on Linux? - GeeksforGeeks | 17 Oct, 2021
In this article, we are going to see how to install Scipy in Python on Linux, SciPy is a python library that is useful in solving many mathematical equations and algorithms, it is a free and open-source Python library built on top of the popular NumPy library.
There are generally two easy methods using whi... | [
{
"code": null,
"e": 24561,
"s": 24533,
"text": "\n17 Oct, 2021"
},
{
"code": null,
"e": 24822,
"s": 24561,
"text": "In this article, we are going to see how to install Scipy in Python on Linux, SciPy is a python library that is useful in solving many mathematical equations and a... |
What is batch processing in JDBC? | Grouping related SQL statements into a batch and executing/submitting them at once is known as batch processing.
While executing a set of statements one after other the execution switches from the database to program simultaneously.
Using batch processing we can reduce this communication overhead and increase the perfo... | [
{
"code": null,
"e": 1175,
"s": 1062,
"text": "Grouping related SQL statements into a batch and executing/submitting them at once is known as batch processing."
},
{
"code": null,
"e": 1295,
"s": 1175,
"text": "While executing a set of statements one after other the execution swi... |
SWING - CardLayout Class | The class CardLayout arranges each component in the container as a card. Only one card is visible at a time, and the container acts as a stack of cards.
Following is the declaration for java.awt.CardLayout class −
public class CardLayout
extends Object
implements LayoutManager2, Serializable
CardLayout()
Crea... | [
{
"code": null,
"e": 1916,
"s": 1763,
"text": "The class CardLayout arranges each component in the container as a card. Only one card is visible at a time, and the container acts as a stack of cards."
},
{
"code": null,
"e": 1977,
"s": 1916,
"text": "Following is the declaration ... |
C# | Create a Stack from a collection - GeeksforGeeks | 01 Feb, 2019
Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is called pushing the item and when you remove it, it is called popping the item. Creation of stack means the addition of item into the stack. Stac... | [
{
"code": null,
"e": 24029,
"s": 24001,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24415,
"s": 24029,
"text": "Stack represents a last-in, first out collection of object. It is used when you need a last-in, first-out access to items. When you add an item in the list, it is ... |
How to create minor ticks for a polar plot in matplotlib? | To create minor ticks for a polar plot in matplotlib, we can take the following steps
Set the figure size and adjust the padding between and around the subplots.
Set the figure size and adjust the padding between and around the subplots.
Create r (radius) and theta data points using numpy.
Create r (radius) and theta d... | [
{
"code": null,
"e": 1148,
"s": 1062,
"text": "To create minor ticks for a polar plot in matplotlib, we can take the following steps"
},
{
"code": null,
"e": 1224,
"s": 1148,
"text": "Set the figure size and adjust the padding between and around the subplots."
},
{
"code"... |
Remove the child node of a specific element in JavaScript? | To remove the child node of a list javascript has provided removeChild() method. Using this method we can remove any list item using its index position. Let's discuss it in a nutshell.
node.removeChild(node);
In the following example, there are 3 elements in the provided list but after removing a child there are only t... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "To remove the child node of a list javascript has provided removeChild() method. Using this method we can remove any list item using its index position. Let's discuss it in a nutshell."
},
{
"code": null,
"e": 1271,
"s": 1247,
"text"... |
Remove and add new HTML Tags with JavaScript? | To remove and add new HTML tags, use the concept of hide() and show().
Let’s say the following are our buttons −
<button type="submit" id="hide">Click Me To hide above content </button>
<button type="submit" id="show">Click Me To show above content </button>
To remove and add tags on button clicks, use hie() and show()... | [
{
"code": null,
"e": 1133,
"s": 1062,
"text": "To remove and add new HTML tags, use the concept of hide() and show()."
},
{
"code": null,
"e": 1175,
"s": 1133,
"text": "Let’s say the following are our buttons −"
},
{
"code": null,
"e": 1321,
"s": 1175,
"text":... |
C# | Join() Method | Set - 1 - GeeksforGeeks | 05 Nov, 2019
In C#, Join() is a string method. This method is used to concatenates the members of a collection or the elements of the specified array, using the specified separator between each member or element. This method can be overloaded by passing different parameters to it. There are total 5 methods in the overl... | [
{
"code": null,
"e": 24051,
"s": 24023,
"text": "\n05 Nov, 2019"
},
{
"code": null,
"e": 24496,
"s": 24051,
"text": "In C#, Join() is a string method. This method is used to concatenates the members of a collection or the elements of the specified array, using the specified separ... |
Sum of length | Practice | GeeksforGeeks | Given an array. Calculate the sum of lengths of contiguous subarrays having all distinct elements.
Example 1:
Input:
N=3
arr[] = { 1,2,3 }
Output: 10
Explanation:
{1, 2, 3} is a subarray of length 3 with
distinct elements. Total length of length
three = 3. {1, 2}, {2, 3} are 2 subarray
of length 2 with distinct el... | [
{
"code": null,
"e": 339,
"s": 238,
"text": "Given an array. Calculate the sum of lengths of contiguous subarrays having all distinct elements.\n "
},
{
"code": null,
"e": 350,
"s": 339,
"text": "Example 1:"
},
{
"code": null,
"e": 749,
"s": 350,
"text": "Inpu... |
Speech Emotion Recognition with Convolutional Neural Network | by Reza Chu | Towards Data Science | Recognizing human emotion has always been a fascinating task for data scientists. Lately, I am working on an experimental Speech Emotion Recognition (SER) project to explore its potential. I selected the most starred SER repository from GitHub to be the backbone of my project.
Before we walk through the project, it is ... | [
{
"code": null,
"e": 450,
"s": 172,
"text": "Recognizing human emotion has always been a fascinating task for data scientists. Lately, I am working on an experimental Speech Emotion Recognition (SER) project to explore its potential. I selected the most starred SER repository from GitHub to be the b... |
C++ Program to Implement Caesar Cypher | It is a mono-alphabetic cipher wherein each letter of the plaintext is substituted by another letter to form the ciphertext. It is a simplest form of substitution cipher scheme.
This cryptosystem is generally referred to as the Shift Cipher. The concept is to replace each alphabet by another alphabet which is ‘shifted’... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "It is a mono-alphabetic cipher wherein each letter of the plaintext is substituted by another letter to form the ciphertext. It is a simplest form of substitution cipher scheme."
},
{
"code": null,
"e": 1422,
"s": 1240,
"text": "This... |
Executing main() in C/C++ - behind the scene - GeeksforGeeks | 19 Aug, 2020
How to write a C program to print “Hello world” without main() function?At first, it seems impractical to execute a program without a main() function because the main() function is the entry point of any program.
Let us first understand what happens under the hood while executing a C program in Linux syste... | [
{
"code": null,
"e": 24232,
"s": 24204,
"text": "\n19 Aug, 2020"
},
{
"code": null,
"e": 24445,
"s": 24232,
"text": "How to write a C program to print “Hello world” without main() function?At first, it seems impractical to execute a program without a main() function because the m... |
Scala Collections - List | Scala Lists are quite similar to arrays which means, all the elements of a list have the same type but there are two important differences. First, lists are immutable, which means elements of a list cannot be changed by assignment. Second, lists represent a linked list whereas arrays are flat.
The type of a list that h... | [
{
"code": null,
"e": 3177,
"s": 2882,
"text": "Scala Lists are quite similar to arrays which means, all the elements of a list have the same type but there are two important differences. First, lists are immutable, which means elements of a list cannot be changed by assignment. Second, lists represe... |
wxPython - Destroy button widget using Destroy() function - GeeksforGeeks | 26 Jun, 2020
In this article we will learn that, how can we destroy a button widget from a window using Destroy() function in wx.Button class of wxPython. Destroy() function is used to simply destroy a window or widget safely.Destroy() returns True if the window has either been successfully deleted, or it has been adde... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n26 Jun, 2020"
},
{
"code": null,
"e": 24256,
"s": 23901,
"text": "In this article we will learn that, how can we destroy a button widget from a window using Destroy() function in wx.Button class of wxPython. Destroy() function is... |
Insert Euro and Dollar symbol to a column in MySQL? | For this, use CASE statement with UPDATE command. Let us first create a table −
mysql> create table DemoTable1874
(
Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
Amount varchar(100)
);
Query OK, 0 rows affected (0.00 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable1874... | [
{
"code": null,
"e": 1142,
"s": 1062,
"text": "For this, use CASE statement with UPDATE command. Let us first create a table −"
},
{
"code": null,
"e": 1294,
"s": 1142,
"text": "mysql> create table DemoTable1874\n (\n Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n Amount var... |
Drupal - Quick Guide | Drupal is a free and open source Content Management System (CMS) that allows organizing, managing and publishing your content. It is built on PHP based environments. This is carried out under GNU i.e. General Public License, which means everyone has the freedom of downloading and sharing it with others. Drupal is used ... | [
{
"code": null,
"e": 3259,
"s": 2827,
"text": "Drupal is a free and open source Content Management System (CMS) that allows organizing, managing and publishing your content. It is built on PHP based environments. This is carried out under GNU i.e. General Public License, which means everyone has the... |
Background Removal with Python. Using OpenCV to Detect the Foreground | by Andrew Udell | Towards Data Science | We live in the era of video calls. Conducted over the internet and using whatever camera that comes with your laptop or computer, we broadcast our lives to our classmates, coworkers, and families.
Sometimes, though, we don’t want to broadcast our space. My office, like many others, has a few perennial pieces of clutter... | [
{
"code": null,
"e": 369,
"s": 172,
"text": "We live in the era of video calls. Conducted over the internet and using whatever camera that comes with your laptop or computer, we broadcast our lives to our classmates, coworkers, and families."
},
{
"code": null,
"e": 583,
"s": 369,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.