title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Decagonal Numbers - GeeksforGeeks | 13 Jul, 2021
You are given a number n, the task is to find the nth Decagonal number. A decagonal number is a figurate number that extends the concept of triangular and square numbers to the decagon (a ten-sided polygon). The nth decagonal numbers counts the number of dots in a pattern of n nested decagons, all sharing ... | [
{
"code": null,
"e": 24301,
"s": 24273,
"text": "\n13 Jul, 2021"
},
{
"code": null,
"e": 24726,
"s": 24301,
"text": "You are given a number n, the task is to find the nth Decagonal number. A decagonal number is a figurate number that extends the concept of triangular and square n... |
Finding r in R. The correlation coefficient (r), the... | by Emmett Boudreau | Towards Data Science | The correlation coefficient (r), the correlation coefficient of regression (r2), and the programming language R are all three iconic Rs of Data-Science. The correlation coefficient (r) is an extremely known statistical test that is extremely used in Machine-Learning models. The correlation coefficient of regression can... | [
{
"code": null,
"e": 738,
"s": 172,
"text": "The correlation coefficient (r), the correlation coefficient of regression (r2), and the programming language R are all three iconic Rs of Data-Science. The correlation coefficient (r) is an extremely known statistical test that is extremely used in Machi... |
Time Series Clustering and Dimensionality Reduction | by Marco Cerliani | Towards Data Science | Time Series must be handled with care by data scientists. This kind of data contains intrinsic information about temporal dependency. it’s our work to extract these golden resources, where it is possible and useful, in order to help our model to perform the best.
With Time Series I see confusion when we face a problem ... | [
{
"code": null,
"e": 311,
"s": 47,
"text": "Time Series must be handled with care by data scientists. This kind of data contains intrinsic information about temporal dependency. it’s our work to extract these golden resources, where it is possible and useful, in order to help our model to perform th... |
SAP ABAP - Date & Time | ABAP implicitly references the Gregorian calendar, valid across most of the world. We can convert the output to country specific calendars. A date is a time specified to a precise day, week or month with respect to a calendar. A time is specified to a precise second or minute with respect to a day. ABAP always saves ti... | [
{
"code": null,
"e": 3382,
"s": 2898,
"text": "ABAP implicitly references the Gregorian calendar, valid across most of the world. We can convert the output to country specific calendars. A date is a time specified to a precise day, week or month with respect to a calendar. A time is specified to a p... |
Program to find winner of stone game in Python | Suppose Amal and Bimal are playing a game and Amal's turn is first. The game is like below −
There are n stones in a pile. Each player can take a stone from the pile and receive points based on the position of that stone. Amal and Bimal may value the stones in different manner.
We have two arrays of same length, A_Valu... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "Suppose Amal and Bimal are playing a game and Amal's turn is first. The game is like below −"
},
{
"code": null,
"e": 1341,
"s": 1155,
"text": "There are n stones in a pile. Each player can take a stone from the pile and receive poin... |
Python Pillow - Quick Guide | In today’s digital world, we come across lots of digital images. In case, we are working with Python programming language, it provides lot of image processing libraries to add image processing capabilities to digital images.
Some of the most common image processing libraries are: OpenCV, Python Imaging Library (PIL), S... | [
{
"code": null,
"e": 2425,
"s": 2200,
"text": "In today’s digital world, we come across lots of digital images. In case, we are working with Python programming language, it provides lot of image processing libraries to add image processing capabilities to digital images."
},
{
"code": null,
... |
How to multiply a given number by 2 using Bitwise Operators in C#? | A number can be multiplied by 2 using bitwise operators. This is done by using the left shift operator and shifting the bits left by 1. This results in double the previous number.
A program that demonstrates multiplication of a number by 2 using bitwise operators is given as follows.
Live Demo
using System;
namespace ... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "A number can be multiplied by 2 using bitwise operators. This is done by using the left shift operator and shifting the bits left by 1. This results in double the previous number."
},
{
"code": null,
"e": 1347,
"s": 1242,
"text": "A ... |
Anomaly Detection using Autoencoders | by Renu Khandelwal | Towards Data Science | Learn what are AutoEncoders, how they work, their usage, and finally implement Autoencoders for anomaly detection.
AutoEncoder is a generative unsupervised deep learning algorithm used for reconstructing high-dimensional input data using a neural network with a narrow bottleneck layer in the middle which contains the l... | [
{
"code": null,
"e": 287,
"s": 172,
"text": "Learn what are AutoEncoders, how they work, their usage, and finally implement Autoencoders for anomaly detection."
},
{
"code": null,
"e": 532,
"s": 287,
"text": "AutoEncoder is a generative unsupervised deep learning algorithm used f... |
CoffeeScript - Syntax | In the previous chapter, we have seen how to install CoffeeScript. In this chapter, let us check out the syntax of CoffeeScript.
The syntax of CoffeeScript is more graceful when compared to the syntax of JavaScript. It avoids the troublesome features like curly braces, semicolons, and variable decelerations.
Unlike man... | [
{
"code": null,
"e": 2438,
"s": 2309,
"text": "In the previous chapter, we have seen how to install CoffeeScript. In this chapter, let us check out the syntax of CoffeeScript."
},
{
"code": null,
"e": 2619,
"s": 2438,
"text": "The syntax of CoffeeScript is more graceful when comp... |
How to find intersection between two Numpy arrays? | In this problem, we will find the intersection between two numpy arrays. Intersection of two arrays is an array with elements common in both the original arrays
Step 1: Import numpy.
Step 2: Define two numpy arrays.
Step 3: Find intersection between the arrays using the numpy.intersect1d() function.
Step 4: Print the a... | [
{
"code": null,
"e": 1223,
"s": 1062,
"text": "In this problem, we will find the intersection between two numpy arrays. Intersection of two arrays is an array with elements common in both the original arrays"
},
{
"code": null,
"e": 1413,
"s": 1223,
"text": "Step 1: Import numpy.... |
Check that a table exists in MySQL? | In order to check a table exists in MySQL, you can use INFORMATION_SCHEMA.TABLES. Let us first create a table −
mysql> create table Client_information
-> (
-> Id int,
-> Name varchar(10)
-> );
Query OK, 0 rows affected (0.48 sec)
Following is the query to insert some records in the table using insert comman... | [
{
"code": null,
"e": 1174,
"s": 1062,
"text": "In order to check a table exists in MySQL, you can use INFORMATION_SCHEMA.TABLES. Let us first create a table −"
},
{
"code": null,
"e": 1304,
"s": 1174,
"text": "mysql> create table Client_information\n -> (\n -> Id int,\n -> ... |
Check if two non-duplicate strings can be made equal after at most two swaps in one string - GeeksforGeeks | 16 Mar, 2022
Given two strings A and B consisting of unique lowercase letters, the task is to check if both these strings can be made equal by using at most two swaps. Print Yes if they can. Otherwise, print No.
Example:
Input: A=”abcd”, B=”badc”Output: YesFirst swap a and b, and then swap c and d, in string A.Input: A... | [
{
"code": null,
"e": 24854,
"s": 24826,
"text": "\n16 Mar, 2022"
},
{
"code": null,
"e": 25053,
"s": 24854,
"text": "Given two strings A and B consisting of unique lowercase letters, the task is to check if both these strings can be made equal by using at most two swaps. Print Ye... |
LISP - Hash Table | The hash table data structure represents a collection of key-and-value pairs that are organized based on the hash code of the key. It uses the key to access the elements in the collection.
A hash table is used when you need to access elements by using a key, and you can identify a useful key value. Each item in the has... | [
{
"code": null,
"e": 2249,
"s": 2060,
"text": "The hash table data structure represents a collection of key-and-value pairs that are organized based on the hash code of the key. It uses the key to access the elements in the collection."
},
{
"code": null,
"e": 2465,
"s": 2249,
"t... |
Java program to count occurrences of a word in string | The number of times a word occurs in a string denotes its occurrence count. An example of this is given as follows −
String = An apple is red in colour.
Word = red
The word red occurs 1 time in the above string.
A program that demonstrates this is given as follows.
Live Demo
public class Example {
public static void m... | [
{
"code": null,
"e": 1179,
"s": 1062,
"text": "The number of times a word occurs in a string denotes its occurrence count. An example of this is given as follows −"
},
{
"code": null,
"e": 1274,
"s": 1179,
"text": "String = An apple is red in colour.\nWord = red\nThe word red occ... |
SharePoint - Quick Guide | This tutorial will give you an idea of how to get started with SharePoint development. Microsoft SharePoint is a browser-based collaboration, document management platform and content management system. After completing this tutorial, you will have a better understating of what SharePoint is and what are the high-level ... | [
{
"code": null,
"e": 2684,
"s": 2315,
"text": "This tutorial will give you an idea of how to get started with SharePoint development. Microsoft SharePoint is a browser-based collaboration, document management platform and content management system. After completing this tutorial, you will have a bet... |
Wishing your Valentine with a Program!! - GeeksforGeeks | 19 Jan, 2021
This valentine, gift your loved ones a heart with a message written within it to express what you feel about them. Don’t miss the moment to surprise them. This article demonstrates the code to surprise them. The Best wishes to all the programmer loved ones < 3.
Below is the code.
C++
Java
Python3
C#
// C+... | [
{
"code": null,
"e": 24420,
"s": 24392,
"text": "\n19 Jan, 2021"
},
{
"code": null,
"e": 24683,
"s": 24420,
"text": "This valentine, gift your loved ones a heart with a message written within it to express what you feel about them. Don’t miss the moment to surprise them. This art... |
Python | Add Label to a kivy window - GeeksforGeeks | 18 Apr, 2022
Kivy is a platform-independent GUI tool in Python. As it can be run on Android, iOS, Linux and Windows, etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktop applications.Label widget – The Label widget is for rendering text. It supports ASCII... | [
{
"code": null,
"e": 41552,
"s": 41524,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 42100,
"s": 41552,
"text": "Kivy is a platform-independent GUI tool in Python. As it can be run on Android, iOS, Linux and Windows, etc. It is basically used to develop the Android applicatio... |
Math pow() method in Java with Example - GeeksforGeeks | 20 Sep, 2019
The java.lang.Math.pow() is used to calculate a number raise to the power of some other number. This function accepts two parameters and returns the value of first parameter raised to the second parameter. There are some special cases as listed below:
If the second parameter is positive or negative zero th... | [
{
"code": null,
"e": 24442,
"s": 24414,
"text": "\n20 Sep, 2019"
},
{
"code": null,
"e": 24694,
"s": 24442,
"text": "The java.lang.Math.pow() is used to calculate a number raise to the power of some other number. This function accepts two parameters and returns the value of first... |
How to install and use docker and containers on centos 7 | In this article, we will learn how to install Dockers. Dockers is a very good tool which runs the application on its own containers. It works like a virtual machine which are more portable and more resource friendly and more dependent on the host OS. There are two methods of installing Docker on CentOS 7. First method ... | [
{
"code": null,
"e": 1517,
"s": 1062,
"text": "In this article, we will learn how to install Dockers. Dockers is a very good tool which runs the application on its own containers. It works like a virtual machine which are more portable and more resource friendly and more dependent on the host OS. Th... |
Create empty array of a given size in JavaScript | To create an empty array of given size, use the new operator −
var numberArray = new Array(10);
After that, let’s set some values in the array. Following is the code −
var numberArray = new Array(10);
console.log("The length="+numberArray.length)
numberArray=[10,20,30,40,50,60];
console.log("The array value=");
for(var... | [
{
"code": null,
"e": 1125,
"s": 1062,
"text": "To create an empty array of given size, use the new operator −"
},
{
"code": null,
"e": 1158,
"s": 1125,
"text": "var numberArray = new Array(10);"
},
{
"code": null,
"e": 1230,
"s": 1158,
"text": "After that, let... |
Python - Group similar value list to dictionary - GeeksforGeeks | 06 Mar, 2020
Sometimes, while working with Python list, we can have a problem in which we need to group similar value lists indices to values into a dictionary. This can have a good application in domains in which we need grouped dictionary as output for pair of lists. Lets discuss certain ways in which this task can b... | [
{
"code": null,
"e": 24828,
"s": 24800,
"text": "\n06 Mar, 2020"
},
{
"code": null,
"e": 25148,
"s": 24828,
"text": "Sometimes, while working with Python list, we can have a problem in which we need to group similar value lists indices to values into a dictionary. This can have a... |
Top 10 Matrix Operations in Numpy with Examples | by Rukshan Pramoditha | Towards Data Science | About 30–40% of the mathematical knowledge required for Data Science and Machine Learning comes from linear algebra. Matrix operations play a significant role in linear algebra. Today, we discuss 10 of such matrix operations with the help of the powerful numpy library. Numpy is generally used to perform numerical calcu... | [
{
"code": null,
"e": 691,
"s": 172,
"text": "About 30–40% of the mathematical knowledge required for Data Science and Machine Learning comes from linear algebra. Matrix operations play a significant role in linear algebra. Today, we discuss 10 of such matrix operations with the help of the powerful ... |
How to create a combo box with auto-completion in Tkinter? | Tkinter Combobox widget is one of the useful widgets to implement dropdown menus in an application. It uses the combination of the Entry widget and ListBox widget on the top of it. We can select Menu items by typing the item name (if it exists in the Menu List) in the Entry field. However, sometimes, there might be cas... | [
{
"code": null,
"e": 1446,
"s": 1062,
"text": "Tkinter Combobox widget is one of the useful widgets to implement dropdown menus in an application. It uses the combination of the Entry widget and ListBox widget on the top of it. We can select Menu items by typing the item name (if it exists in the Me... |
How do I know if Python has pandas installed? | To check whether the pandas package is installed or not in python we can simply verify the version. To get the version details of pandas we have two options.
The first one is using the __version__ attribute.
import pandas as pd
print(pd.__version__)
To verify the version number of pandas, we can use this __version__ bu... | [
{
"code": null,
"e": 1220,
"s": 1062,
"text": "To check whether the pandas package is installed or not in python we can simply verify the version. To get the version details of pandas we have two options."
},
{
"code": null,
"e": 1270,
"s": 1220,
"text": "The first one is using t... |
C++ Stack Library - empty() Function | The C++ function std::stack::empty() tests whether stack is empty or not. Stack of zero size is considered as empty stack.
Following is the declaration for std::stack::empty() function form std::stack header.
bool empty() const;
None
Returns true if stack is empty otherwise false.
Provides no-throw guarantee for stand... | [
{
"code": null,
"e": 2726,
"s": 2603,
"text": "The C++ function std::stack::empty() tests whether stack is empty or not. Stack of zero size is considered as empty stack."
},
{
"code": null,
"e": 2812,
"s": 2726,
"text": "Following is the declaration for std::stack::empty() functi... |
Split array into K subsets to maximize their sum of maximums and minimums - GeeksforGeeks | 24 Nov, 2021
Given an integer K and an array A[ ] whose length is multiple of K, the task is to split the elements of the given array into K subsets, each having an equal number of elements, such that the sum of the maximum and minimum elements of each subset is the maximum summation possible.
Examples:
Input: K = 2, ... | [
{
"code": null,
"e": 26633,
"s": 26605,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 26915,
"s": 26633,
"text": "Given an integer K and an array A[ ] whose length is multiple of K, the task is to split the elements of the given array into K subsets, each having an equal numbe... |
LEX code to extract HTML tags from a file - GeeksforGeeks | 28 Aug, 2019
Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt.Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.Prerequisite: Flex (Fast lexical Analyzer Generator)
Approach:The e... | [
{
"code": null,
"e": 25478,
"s": 25450,
"text": "\n28 Aug, 2019"
},
{
"code": null,
"e": 25771,
"s": 25478,
"text": "Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt.Lex reads an input stream specifying the lexical analyzer ... |
How to Validate Data using joi Module in Node.js ? - GeeksforGeeks | 15 Feb, 2021
Joi module is a popular module for data validation. This module validates the data based on schemas. There are various functions like optional(), required(), min(), max(), etc which make it easy to use and a user-friendly module for validating the data.Introduction:
It’s easy to get started and easy to u... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n15 Feb, 2021"
},
{
"code": null,
"e": 26890,
"s": 26621,
"text": "Joi module is a popular module for data validation. This module validates the data based on schemas. There are various functions like optional(), required(), min()... |
How to get fifth Element of the ValueTuple in C#? - GeeksforGeeks | 23 Jul, 2019
ValueTuple is a structure introduced in C# 7.0 which represents the value type Tuple. It allows you to store a data set which contains multiple values that may or may not be related to each other. Item5 Property is used to get the fifth unnamed element of the given value tuple. It is applicable on every va... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 25908,
"s": 25547,
"text": "ValueTuple is a structure introduced in C# 7.0 which represents the value type Tuple. It allows you to store a data set which contains multiple values that may or ... |
Program to find Nth term of series 0, 10, 30, 60, 99, 150, 210, 280........... - GeeksforGeeks | 15 Mar, 2021
Given a number N. The task is to write a program to find the Nth term of the below series:
0, 10, 30, 60, 99, 150, 210, 280.....(N Terms)
Examples:
Input: N = 4
Output: 60
For N = 4
4th Term = ( 5 * 4 * 4 - 5 * 4)
= 60
Input: N = 10
Output: 449
Approach: The generalized Nth term of this ser... | [
{
"code": null,
"e": 25637,
"s": 25609,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 25729,
"s": 25637,
"text": "Given a number N. The task is to write a program to find the Nth term of the below series: "
},
{
"code": null,
"e": 25776,
"s": 25729,
"text":... |
Working with Highlighted Text in Python .docx Module - GeeksforGeeks | 03 Jan, 2021
Prerequisites: docx
Word documents contain formatted text wrapped within three object levels. The Lowest level- run objects, middle level- paragraph objects and highest level- document object. So, we cannot work with these documents using normal text editors. But, we can manipulate these word documents in ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n03 Jan, 2021"
},
{
"code": null,
"e": 25557,
"s": 25537,
"text": "Prerequisites: docx"
},
{
"code": null,
"e": 25920,
"s": 25557,
"text": "Word documents contain formatted text wrapped within three object leve... |
Number of Hamiltonian cycle - GeeksforGeeks | 16 Apr, 2021
Given an undirected complete graph of N vertices where N > 2. The task is to find the number of different Hamiltonian cycle of the graph.Complete Graph: A graph is said to be complete if each possible vertices is connected through an Edge.Hamiltonian Cycle: It is a closed walk such that each vertex is visi... | [
{
"code": null,
"e": 26335,
"s": 26307,
"text": "\n16 Apr, 2021"
},
{
"code": null,
"e": 26744,
"s": 26335,
"text": "Given an undirected complete graph of N vertices where N > 2. The task is to find the number of different Hamiltonian cycle of the graph.Complete Graph: A graph is... |
pickle — Python object serialization - GeeksforGeeks | 01 Jun, 2021
The pickle module is used for implementing binary protocols for serializing and de-serializing a Python object structure.
Pickling: It is a process where a Python object hierarchy is converted into a byte stream.
Unpickling: It is the inverse of Pickling process where a byte stream is converted into an... | [
{
"code": null,
"e": 25665,
"s": 25637,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 25789,
"s": 25665,
"text": "The pickle module is used for implementing binary protocols for serializing and de-serializing a Python object structure. "
},
{
"code": null,
"e": 25... |
Operating Systems | CPU Scheduling | Question 2 - GeeksforGeeks | 03 Oct, 2019
Consider three processes, all arriving at time zero, with total execution time of 10, 20 and 30 units, respectively. Each process spends the first 20% of execution time doing I/O, the next 70% of time doing computation, and the last 10% of time doing I/O again. The operating system uses a shortest remainin... | [
{
"code": null,
"e": 25925,
"s": 25897,
"text": "\n03 Oct, 2019"
},
{
"code": null,
"e": 26549,
"s": 25925,
"text": "Consider three processes, all arriving at time zero, with total execution time of 10, 20 and 30 units, respectively. Each process spends the first 20% of execution... |
How to determine which element the mouse pointer move over using JavaScript ? - GeeksforGeeks | 12 Sep, 2019
Given an HTML document and the task is to get the element where mouse pointer moves over. There are two approaches to solve this problem which are discussed below:
Approach 1:
Get the x and y coordinates value by using .clientX and .clientY property.
Use document.elementFromPoint(x, y) method to get the el... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n12 Sep, 2019"
},
{
"code": null,
"e": 26709,
"s": 26545,
"text": "Given an HTML document and the task is to get the element where mouse pointer moves over. There are two approaches to solve this problem which are discussed below:... |
C# | Boxing And Unboxing - GeeksforGeeks | 30 Jul, 2018
Boxing and unboxing is an important concept in C#. C# Type System contains three data types: Value Types (int, char, etc), Reference Types (object) and Pointer Types. Basically it convert a Value Type to a Reference Type, and vice versa. Boxing and Unboxing enables a unified view of the type system in whic... | [
{
"code": null,
"e": 25069,
"s": 25041,
"text": "\n30 Jul, 2018"
},
{
"code": null,
"e": 25427,
"s": 25069,
"text": "Boxing and unboxing is an important concept in C#. C# Type System contains three data types: Value Types (int, char, etc), Reference Types (object) and Pointer Typ... |
How to Fix Gradle: Execution failed for task ':processDebugManifest' Error in Android Studio? - GeeksforGeeks | 16 Jun, 2021
Gradle assemble-info provided me an indication that the manifestations do not have various versions of SDK and can not be integrated. And after hours of working on some important project you suddenly face such an issue:
Firgure1. Oops!
Well, getting rid of this is easy, just follow the below-mentioned meth... | [
{
"code": null,
"e": 26119,
"s": 26091,
"text": "\n16 Jun, 2021"
},
{
"code": null,
"e": 26339,
"s": 26119,
"text": "Gradle assemble-info provided me an indication that the manifestations do not have various versions of SDK and can not be integrated. And after hours of working on... |
UUID_SHORT() function in MySQL - GeeksforGeeks | 22 Dec, 2020
This function in MySQL is used to return a “short” universal identifier as a 64-bit unsigned integer. The value of UUID_SHORT() is guaranteed to be unique if the following conditions hold :
The server_id value of the current server is between 0 and 255 and is unique among our set of source and replica serv... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n22 Dec, 2020"
},
{
"code": null,
"e": 25703,
"s": 25513,
"text": "This function in MySQL is used to return a “short” universal identifier as a 64-bit unsigned integer. The value of UUID_SHORT() is guaranteed to be unique if the f... |
Python | Numpy np.digitize() method - GeeksforGeeks | 21 Nov, 2019
With the help of np.digitize() method, we can get the indices of the bins to which the each value is belongs to an array by using np.digitize() method.
Syntax : np.digitize(Array, Bin, Right)Return : Return an array of indices of the bins.
Example #1 :In this example we can see that by using np.digitize() ... | [
{
"code": null,
"e": 25649,
"s": 25621,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 25801,
"s": 25649,
"text": "With the help of np.digitize() method, we can get the indices of the bins to which the each value is belongs to an array by using np.digitize() method."
},
{
... |
Node.js Stream writable.write() Method - GeeksforGeeks | 12 Oct, 2021
The writable.write() method is an inbuilt application programming interface of Stream module which is used to write some data to the Writable stream. The callback function is called once the data has been completely handled.
Syntax:
writable.write( chunk, encoding, callback)
Parameters: This method accepts... | [
{
"code": null,
"e": 25801,
"s": 25773,
"text": "\n12 Oct, 2021"
},
{
"code": null,
"e": 26026,
"s": 25801,
"text": "The writable.write() method is an inbuilt application programming interface of Stream module which is used to write some data to the Writable stream. The callback ... |
Area of hexagon with given diagonal length - GeeksforGeeks | 10 Mar, 2021
You are given the length of the diagonal of a hexagon, d. Your task is to find the area of that hexagon. Examples:
Input : 5
Output : Area of Hexagon: 16.238
Input : 10
Output : Area of Hexagon: 64.9519
Hexagon Hexagon is a regular polygon having six equal sides and all equal angles. The interior an... | [
{
"code": null,
"e": 26247,
"s": 26219,
"text": "\n10 Mar, 2021"
},
{
"code": null,
"e": 26364,
"s": 26247,
"text": "You are given the length of the diagonal of a hexagon, d. Your task is to find the area of that hexagon. Examples: "
},
{
"code": null,
"e": 26457,
... |
How to import Google Fonts in HTML ? - GeeksforGeeks | 14 May, 2019
Choosing the right font for your webpage is a very important aspect of any design. Using a web font service enables you to use a wide variety of fonts fit for presenting the data in your webpage. Google Fonts is a free web font service which hosts a huge variety of fonts to choose from. We can use these fo... | [
{
"code": null,
"e": 25745,
"s": 25717,
"text": "\n14 May, 2019"
},
{
"code": null,
"e": 26073,
"s": 25745,
"text": "Choosing the right font for your webpage is a very important aspect of any design. Using a web font service enables you to use a wide variety of fonts fit for pres... |
Error Detection Code - Checksum - GeeksforGeeks | 16 Jul, 2021
Prerequisite – Error Detection in Computer Networks
Checksum is the error detection method used by upper layer protocols and is considered to be more reliable than LRC, VRC and CRC. This method makes the use of Checksum Generator on Sender side and Checksum Checker on Receiver side.
At the Sender side, t... | [
{
"code": null,
"e": 25779,
"s": 25751,
"text": "\n16 Jul, 2021"
},
{
"code": null,
"e": 25832,
"s": 25779,
"text": "Prerequisite – Error Detection in Computer Networks "
},
{
"code": null,
"e": 26065,
"s": 25832,
"text": "Checksum is the error detection metho... |
Dining Philosopher Problem Using Semaphores - GeeksforGeeks | 18 Aug, 2021
Prerequisite – Process Synchronization, Semaphores, Dining-Philosophers Solution Using MonitorsThe Dining Philosopher Problem – The Dining Philosopher Problem states that K philosophers seated around a circular table with one chopstick between each pair of philosophers. There is one chopstick between each ... | [
{
"code": null,
"e": 29429,
"s": 29401,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 29909,
"s": 29429,
"text": "Prerequisite – Process Synchronization, Semaphores, Dining-Philosophers Solution Using MonitorsThe Dining Philosopher Problem – The Dining Philosopher Problem stat... |
Compare two integers without using any Comparison operator - GeeksforGeeks | 06 Sep, 2021
Given two integers A & B. Task is to check if A and B are same or not without using comparison operators.Examples:
Input : A = 5 , B = 6
Output : 0
Input : A = 5 , B = 5
Output : 1
Note : 1 = "YES" and 0 = "NO"
idea is pretty simple we do Xor of both element ( A , B ) . if Xor is zero then two numbe... | [
{
"code": null,
"e": 26278,
"s": 26250,
"text": "\n06 Sep, 2021"
},
{
"code": null,
"e": 26395,
"s": 26278,
"text": "Given two integers A & B. Task is to check if A and B are same or not without using comparison operators.Examples: "
},
{
"code": null,
"e": 26494,
... |
Get Data from Multiple Tables | The related tables of a large database are linked through the use of foreign and primary keys or what are often referred to as common columns. The ability to join tables will enable you to add more meaning to the result table that is produced. For 'n' number tables to be joined in a query, minimum (n-1) join conditions... | [
{
"code": null,
"e": 2929,
"s": 2463,
"text": "The related tables of a large database are linked through the use of foreign and primary keys or what are often referred to as common columns. The ability to join tables will enable you to add more meaning to the result table that is produced. For 'n' n... |
Brutex - Open Source Tool for Brute Force Automation - GeeksforGeeks | 23 Sep, 2021
Brutex is a free and open-source tool available on GitHub. This tool is basically made to make the work of penetration tester easier. This tool is a package of three different tools which are Nmap, Hydra, DNSenum. Once you start scanning your target using brutex tool the tool will start scanning using Nmap... | [
{
"code": null,
"e": 24406,
"s": 24378,
"text": "\n23 Sep, 2021"
},
{
"code": null,
"e": 24815,
"s": 24406,
"text": "Brutex is a free and open-source tool available on GitHub. This tool is basically made to make the work of penetration tester easier. This tool is a package of thr... |
Cellular Concepts - Introduction | The immense potential of conventional telephone cannot be exploited to its maximum due to the limitation imposed by the connecting wires. But this restriction has been removed with the advent of the cellular radio.
If we use dedicated RF loop for every subscriber, we need larger bandwidth to serve even a limited number... | [
{
"code": null,
"e": 2408,
"s": 2193,
"text": "The immense potential of conventional telephone cannot be exploited to its maximum due to the limitation imposed by the connecting wires. But this restriction has been removed with the advent of the cellular radio."
},
{
"code": null,
"e": 2... |
Visualize multidimensional datasets with MDS | by Gianluca Malato | Towards Data Science | Data visualization is one of the most fascinating fields in Data Science. Sometimes, using a good plot or graphical representation can make us better understand the information hidden inside data. How can we do it with more than 2 dimensions?
As long as we work with two-dimensional datasets, a simple scatterplot can be... | [
{
"code": null,
"e": 415,
"s": 172,
"text": "Data visualization is one of the most fascinating fields in Data Science. Sometimes, using a good plot or graphical representation can make us better understand the information hidden inside data. How can we do it with more than 2 dimensions?"
},
{
... |
Python 3 - Tkinter Scale | The Scale widget provides a graphical slider object that allows you to select values from a specific scale.
Here is the simple syntax to create this widget −
w = Scale ( master, option, ... )
master − This represents the parent window.
master − This represents the parent window.
options − Here is the list of most com... | [
{
"code": null,
"e": 2448,
"s": 2340,
"text": "The Scale widget provides a graphical slider object that allows you to select values from a specific scale."
},
{
"code": null,
"e": 2498,
"s": 2448,
"text": "Here is the simple syntax to create this widget −"
},
{
"code": nu... |
Decentralizing your Website. IPFS + ENS | by Lucas Kohorst | Towards Data Science | When hosting a website usually you use a dedicated VPS like Digital Ocean, Linode, Google, or Amazon. After setting up your server you can register a domain at Google Domains or NameCheap. The last step is editing your DNS records to point your domain at your server. Now you can access your website by navigating to you... | [
{
"code": null,
"e": 852,
"s": 172,
"text": "When hosting a website usually you use a dedicated VPS like Digital Ocean, Linode, Google, or Amazon. After setting up your server you can register a domain at Google Domains or NameCheap. The last step is editing your DNS records to point your domain at ... |
Financial Machine Learning Part 0: Bars | by Maks Ivanov | Towards Data Science | Recently, I got my copy of Advances in Financial Machine Learning by Marcos Lopez de Prado. Lopez de Prado is a renowned quant researcher who has managed billions throughout his career. The book is an amazing resource to anyone interested in data science and finance, and it offers valuable insights into how advanced pr... | [
{
"code": null,
"e": 547,
"s": 172,
"text": "Recently, I got my copy of Advances in Financial Machine Learning by Marcos Lopez de Prado. Lopez de Prado is a renowned quant researcher who has managed billions throughout his career. The book is an amazing resource to anyone interested in data science ... |
Exploratory data analysis in Python. | by Tanu N Prabhu | Towards Data Science | Exploratory Data Analysis or (EDA) is understanding the data sets by summarizing their main characteristics often plotting them visually. This step is very important especially when we arrive at modeling the data in order to apply Machine learning. Plotting in EDA consists of Histograms, Box plot, Scatter plot and many... | [
{
"code": null,
"e": 671,
"s": 172,
"text": "Exploratory Data Analysis or (EDA) is understanding the data sets by summarizing their main characteristics often plotting them visually. This step is very important especially when we arrive at modeling the data in order to apply Machine learning. Plotti... |
How to use mocha with mongoose ? - GeeksforGeeks | 14 Apr, 2021
Mocha: Mocha is a testing framework that is used to perform tests within our application.It makes sure everything works correctly.
‘Mocha in Node.js’ means using the mocha unit testing framework in Node.js runtime environment. Mocha has tons of great features.
Key Features:
Simple async support.
Async test... | [
{
"code": null,
"e": 24534,
"s": 24506,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 24665,
"s": 24534,
"text": "Mocha: Mocha is a testing framework that is used to perform tests within our application.It makes sure everything works correctly."
},
{
"code": null,
... |
Logic Gates in Python | In this article, we will learn about Logic Gates in Python. Let’s look at each of the logic gates in Python in detail with some easy examples.
All of us are quite familiar while implementing logic gates in the processing of electrical signals and are widely used in the electrical and electronics industry. They are used... | [
{
"code": null,
"e": 1205,
"s": 1062,
"text": "In this article, we will learn about Logic Gates in Python. Let’s look at each of the logic gates in Python in detail with some easy examples."
},
{
"code": null,
"e": 1620,
"s": 1205,
"text": "All of us are quite familiar while impl... |
WPF - Buttons | The Button class represents the most basic type of button control. The hierarchical inheritance of Button class is as follows −
Background
Gets or sets a brush that provides the background of the control. (Inherited from Control)
BorderBrush
Gets or sets a brush that describes the border fill of a control. (Inherited f... | [
{
"code": null,
"e": 2148,
"s": 2020,
"text": "The Button class represents the most basic type of button control. The hierarchical inheritance of Button class is as follows −"
},
{
"code": null,
"e": 2159,
"s": 2148,
"text": "Background"
},
{
"code": null,
"e": 2250,
... |
How to get a subset of a javascript object's properties? - GeeksforGeeks | 21 Nov, 2021
To get the subset of properties of a JavaScript Object, we make use of destructuring and Property Shorthand. The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.Syntax:
subset = (({a, c}) =>... | [
{
"code": null,
"e": 37970,
"s": 37942,
"text": "\n21 Nov, 2021"
},
{
"code": null,
"e": 38256,
"s": 37970,
"text": "To get the subset of properties of a JavaScript Object, we make use of destructuring and Property Shorthand. The destructuring assignment syntax is a JavaScript ex... |
How to Change a Dictionary Into a Class? | 29 Dec, 2020
Working with Dictionary is a good thing but when we get a lot of dictionaries then it gets tough to use. So let’s understand how we can convert a dictionary into a class.
Let’s take a simple dictionary “my_dict” which has the Name, Rank, and Subject as my Keys and they have the corresponding values as Geek... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 199,
"s": 28,
"text": "Working with Dictionary is a good thing but when we get a lot of dictionaries then it gets tough to use. So let’s understand how we can convert a dictionary into a class."
}... |
PyQt5 QSlider | Python | 27 Sep, 2019
Slider in PyQt5 is used to set a value with the help of an indicator which can move back and forth over a graphical slide or bar. Many times one needs to provide values which lie between a range and in such cases slider is very useful. QSlider is the class used to add slider in an application.
Example:
A w... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2019"
},
{
"code": null,
"e": 323,
"s": 28,
"text": "Slider in PyQt5 is used to set a value with the help of an indicator which can move back and forth over a graphical slide or bar. Many times one needs to provide values which ... |
TCS Placement Paper | E-mail Writing | 07 Aug, 2018
During the on-campus recruitment process, TCS conducts an E-Mail writing test of 10 minutes duration and is included in the other writing tests. This round plays a vital role in the recruiting process and is mandatory for every student. TCS has its own way of testing job applicants, based on there circumst... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Aug, 2018"
},
{
"code": null,
"e": 864,
"s": 54,
"text": "During the on-campus recruitment process, TCS conducts an E-Mail writing test of 10 minutes duration and is included in the other writing tests. This round plays a vital role... |
Python Functions | 17 Jun, 2022
Python Functions are very easy to write in python and all non-trivial programs will have functions. Function names have the same rules as variable names. The function is a block of related statements designed to perform a computational, logical, or evaluative task. The idea is to put some commonly or repea... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 565,
"s": 52,
"text": "Python Functions are very easy to write in python and all non-trivial programs will have functions. Function names have the same rules as variable names. The function is a bl... |
Python – Convert Snake case to Pascal case | 28 Apr, 2020
Sometimes, while working with Python Strings, we have problem in which we need to perform a case conversion of String. This a very common problem. This can have application in many domains such as web development. Lets discuss certain ways in which this task can be performed.
Input : geeks_for_geeksOutput ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Apr, 2020"
},
{
"code": null,
"e": 329,
"s": 52,
"text": "Sometimes, while working with Python Strings, we have problem in which we need to perform a case conversion of String. This a very common problem. This can have application i... |
JavaScript | Optional chaining | 10 May, 2021
The optional chaining ‘?.’ is an error-proof way to access nested object properties, even if an intermediate property doesn’t exist. It was recently introduced by ECMA International, Technical Committee 39 – ECMAScript which was authored by Claude Pache, Gabriel Isenberg, Daniel Rosenwasser, Dustin Savery.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 May, 2021"
},
{
"code": null,
"e": 551,
"s": 28,
"text": "The optional chaining ‘?.’ is an error-proof way to access nested object properties, even if an intermediate property doesn’t exist. It was recently introduced by ECMA Interna... |
Perl my Function | This function declares the variables in LIST to be lexically scoped within the enclosing block. If more than one variable is specified, all variables must be enclosed in parentheses.
Following is the simple syntax for this function −
my LIST
This function does not return any value.
Following is the example code showin... | [
{
"code": null,
"e": 2537,
"s": 2354,
"text": "This function declares the variables in LIST to be lexically scoped within the enclosing block. If more than one variable is specified, all variables must be enclosed in parentheses."
},
{
"code": null,
"e": 2588,
"s": 2537,
"text": ... |
Useful CQL query in Cassandra | 31 Jan, 2020
Prerequisite – CassandraIn this article, we are going to discuss CQL query which is very useful to create, insert, delete, manipulate, filtering data etc. Let’s discuss how we can write the better CQL query for these operations.
Cassandra Query Language (CQL):CQL is used to create, insert, manipulate data ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n31 Jan, 2020"
},
{
"code": null,
"e": 257,
"s": 28,
"text": "Prerequisite – CassandraIn this article, we are going to discuss CQL query which is very useful to create, insert, delete, manipulate, filtering data etc. Let’s discuss how we... |
References in C++ - GeeksQuiz | 10 Mar, 2018
int f(int &x, int c) {
c = c - 1;
if (c == 0) return 1;
x = x + 1;
return f(x, c) * x;
}
#include<iostream>
using namespace std;
int main()
{
const int x = 10;
const int& ref = x;
cout << ref;
return 0;
}
x = 20
ref = 30
x = 20
ref = 20
x = 10
ref = 30
x = 30
ref = 30
Writing code i... | [
{
"code": null,
"e": 29577,
"s": 29549,
"text": "\n10 Mar, 2018"
},
{
"code": null,
"e": 29680,
"s": 29577,
"text": "int f(int &x, int c) {\n c = c - 1;\n if (c == 0) return 1;\n x = x + 1;\n return f(x, c) * x;\n} "
},
{
"code": null,
"e": 29806,
"s": 29... |
How to terminate a script in JavaScript ? | 14 Jul, 2020
In this article, we will discuss the different ways to terminate the script in JavaScript.
1. Using return: In order to terminate a section of the script, a return statement can be included within that specific scope.
Terminating the entire Script:<script> var i = 10; // Return statement is in ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Jul, 2020"
},
{
"code": null,
"e": 119,
"s": 28,
"text": "In this article, we will discuss the different ways to terminate the script in JavaScript."
},
{
"code": null,
"e": 246,
"s": 119,
"text": "1. Using return... |
Tic Tac Toe game with GUI using tkinter in Python | 08 Jan, 2021
Tic-tac-toe (American English), noughts and crosses (British English), or Xs and Os is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
tkinter... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jan, 2021"
},
{
"code": null,
"e": 352,
"s": 52,
"text": "Tic-tac-toe (American English), noughts and crosses (British English), or Xs and Os is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in ... |
Overloading stream insertion (<<) and extraction (>>) operators in C++ | C++ is able to input and output the built-in data types using the stream extraction operator >> and
the stream insertion operator <<. The stream insertion and stream extraction operators also can be
overloaded to perform input and output for user-defined types like an object.
Here, it is important to make operator over... | [
{
"code": null,
"e": 1464,
"s": 1187,
"text": "C++ is able to input and output the built-in data types using the stream extraction operator >> and\nthe stream insertion operator <<. The stream insertion and stream extraction operators also can be\noverloaded to perform input and output for user-defi... |
How to add a grid on a figure in Matplotlib ? | 02 Jul, 2021
Matplotlib library is widely used for plotting graphs. In many graphs, we require to have grid to improve readability. Grids are created by using grid() function in pyplot sub library.
grid() : Configure the grid lines.
Syntax:
matplotlib.pyplot.grid(b=None, which=’major’, axis=’both’, **kwargs)
Parameters... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n02 Jul, 2021"
},
{
"code": null,
"e": 238,
"s": 53,
"text": "Matplotlib library is widely used for plotting graphs. In many graphs, we require to have grid to improve readability. Grids are created by using grid() function in pyplot su... |
Node.js process.exitCode Property | 01 Apr, 2021
There are two ways that are generally used to terminate a Node.js program which are using process.exit() or process.exitCode variable. In this post, we have discussed about process.exitCode variable. It is an integer that represents the code passed to the process.exit() function or when the process exits... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Apr, 2021"
},
{
"code": null,
"e": 538,
"s": 28,
"text": " There are two ways that are generally used to terminate a Node.js program which are using process.exit() or process.exitCode variable. In this post, we have discussed about ... |
How to use Radio Button in Android Kotlin? | This example demonstrates how to use Radio Button in Android Kotlin.
Step 1 − Create a new project in Android Studio, go to File ⇉New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xml... | [
{
"code": null,
"e": 1256,
"s": 1187,
"text": "This example demonstrates how to use Radio Button in Android Kotlin."
},
{
"code": null,
"e": 1384,
"s": 1256,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇉New Project and fill all required details to create ... |
Python Program to Print all Integers that are not Divisible by Either 2 or 3 and Lie between 1 and 50 | When it is required to print all the elements which can’t be divided by 2 or 3 and lie between 1 and 50, the constraints are mentioned in the form of a ‘while’ loop and ‘if’ condition.
Below is a demonstration of the same −
Live Demo
print("Integers not divisible by 2 and 3, that lie between 1 and 50 are : ")
n = 1
wh... | [
{
"code": null,
"e": 1247,
"s": 1062,
"text": "When it is required to print all the elements which can’t be divided by 2 or 3 and lie between 1 and 50, the constraints are mentioned in the form of a ‘while’ loop and ‘if’ condition."
},
{
"code": null,
"e": 1286,
"s": 1247,
"text"... |
Equate two list index elements in Python | During data manipulation with Python , we may need to bring two lists together and equate the elements in each of them pair wise. Which means the element at index 0 from list 1 will be equated with element from index 0 of list2 and so on.
The tuple function will be leveraged to take elements form each list in sequence ... | [
{
"code": null,
"e": 1301,
"s": 1062,
"text": "During data manipulation with Python , we may need to bring two lists together and equate the elements in each of them pair wise. Which means the element at index 0 from list 1 will be equated with element from index 0 of list2 and so on."
},
{
... |
LINQ - SQL | LINQ to SQL offers an infrastructure (run-time) for the management of relational data as objects. It is a component of version 3.5 of the .NET Framework and ably does the translation of language-integrated queries of the object model into SQL. These queries are then sent to the database for the purpose of execution. Af... | [
{
"code": null,
"e": 2147,
"s": 1736,
"text": "LINQ to SQL offers an infrastructure (run-time) for the management of relational data as objects. It is a component of version 3.5 of the .NET Framework and ably does the translation of language-integrated queries of the object model into SQL. These que... |
Python List Slicing - GeeksforGeeks | 10 Jun, 2021
In Python, list slicing is a common practice and it is the most used technique for programmers to solve efficient problems. Consider a python list, In-order to access a range of elements in a list, you need to slice a list. One way to do this is to use the simple slicing operator i.e. colon(:)
With this op... | [
{
"code": null,
"e": 24318,
"s": 24290,
"text": "\n10 Jun, 2021"
},
{
"code": null,
"e": 24613,
"s": 24318,
"text": "In Python, list slicing is a common practice and it is the most used technique for programmers to solve efficient problems. Consider a python list, In-order to acc... |
What is strtok() function in C language? | strtok() function is a part of the <string.h> header file #include <string.h>
The syntax of strtok() function is as follows −
char* strtok(char* string, const char* limiter);
Input string string and a delimiter character limiter. strtok() will divide the string into tokens based on the delimited character.
We can expec... | [
{
"code": null,
"e": 1140,
"s": 1062,
"text": "strtok() function is a part of the <string.h> header file #include <string.h>"
},
{
"code": null,
"e": 1188,
"s": 1140,
"text": "The syntax of strtok() function is as follows −"
},
{
"code": null,
"e": 1237,
"s": 1188... |
Write a Program to Find the Maximum Depth or Height of a Tree in C++ | In this problem, we are given a binary tree. Our task is to write a program to find the maximum depth or height of the given tree.
Let’s take an example to understand the problem,
The height of the tree is 3.
To find the maximum height of a tree, we will check the heights of its left and right subtree and add one to th... | [
{
"code": null,
"e": 1193,
"s": 1062,
"text": "In this problem, we are given a binary tree. Our task is to write a program to find the maximum depth or height of the given tree."
},
{
"code": null,
"e": 1242,
"s": 1193,
"text": "Let’s take an example to understand the problem,"
... |
How to check whether a checkbox is checked with JavaScript? | To check whether a checkbox is checked with JavaScript, the code is as follows −
Live Demo
<!DOCTYPE html>
<html>
<head>
<h1>Displaying textBox when a checkbox is checked</h1>
Checkbox: <input type="checkbox" class="check" onclick="checkFunction()" />
<h2 class="textBox" style="display:none">Checkbox is checked!!!</h2... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "To check whether a checkbox is checked with JavaScript, the code is as follows −"
},
{
"code": null,
"e": 1154,
"s": 1143,
"text": " Live Demo"
},
{
"code": null,
"e": 1787,
"s": 1154,
"text": "<!DOCTYPE html>\n<h... |
Add Confidence Band to ggplot2 Plot in R - GeeksforGeeks | 05 Nov, 2021
In this article, we will discuss how to add Add Confidence Band to ggplot2 Plot in the R programming Language.
A confidence band is the lines on a scatter plot or fitted line plot that depict the upper and lower confidence bounds for all points on the range of data. This helps us visualize the error range ... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n05 Nov, 2021"
},
{
"code": null,
"e": 25353,
"s": 25242,
"text": "In this article, we will discuss how to add Add Confidence Band to ggplot2 Plot in the R programming Language."
},
{
"code": null,
"e": 25701,
"s":... |
Build an Impressive Github Profile in 3 Steps | by Khuyen Tran | Towards Data Science | If you are looking for a new opportunity in the data science or programming field, you should probably try to optimize your Github profile.
Don’t expect the recruiters to know your skills by investigating each of your repositories. If you have something to show off, put everything about you on the front page so the rec... | [
{
"code": null,
"e": 186,
"s": 46,
"text": "If you are looking for a new opportunity in the data science or programming field, you should probably try to optimize your Github profile."
},
{
"code": null,
"e": 431,
"s": 186,
"text": "Don’t expect the recruiters to know your skills... |
A Complete Step by Step Tutorial on Sentiment Analysis in Keras and Tensorflow | by Rashida Nasrin Sucky | Towards Data Science | Sentiment analysis is one of the very common natural language processing tasks. Businesses use sentiment analysis to understand social media comments, product reviews, and other text data efficiently. Tensorflow and Keras are amazing tools for that.
Tensorflow is arguably the most popular deep learning library. It uses... | [
{
"code": null,
"e": 421,
"s": 171,
"text": "Sentiment analysis is one of the very common natural language processing tasks. Businesses use sentiment analysis to understand social media comments, product reviews, and other text data efficiently. Tensorflow and Keras are amazing tools for that."
},... |
Box plot visualization with Pandas and Seaborn - GeeksforGeeks | 08 Sep, 2021
Box Plot is the visual representation of the depicting groups of numerical data through their quartiles. Boxplot is also used for detect the outlier in data set. It captures the summary of the data efficiently with a simple box and whiskers and allows us to compare easily across groups. Boxplot summarizes ... | [
{
"code": null,
"e": 26682,
"s": 26654,
"text": "\n08 Sep, 2021"
},
{
"code": null,
"e": 27125,
"s": 26682,
"text": "Box Plot is the visual representation of the depicting groups of numerical data through their quartiles. Boxplot is also used for detect the outlier in data set. I... |
The Art of Cleaning Your Data. Drop that bad data like Obama drops... | by George Seif | Towards Data Science | Want to be inspired? Come join my Super Quotes newsletter. 😎
Cleaning your data should be the first step in your Data Science (DS) or Machine Learning (ML) workflow. Without clean data you’ll be having a much harder time seeing the actual important parts in your exploration. Once you finally get to training your ML mo... | [
{
"code": null,
"e": 108,
"s": 47,
"text": "Want to be inspired? Come join my Super Quotes newsletter. 😎"
},
{
"code": null,
"e": 513,
"s": 108,
"text": "Cleaning your data should be the first step in your Data Science (DS) or Machine Learning (ML) workflow. Without clean data y... |
Goldman Sachs Interview Experience | 3+ Years Experienced - GeeksforGeeks | 09 May, 2021
Round 1(Online Coding): 120 mins
2 questions were asked, 1st question was similar to the coin change problem and another one was based on array.
Expectation: Pass all test cases of both the questions in 120 minutes.
Round 2(Coderpad): 60 mins
It was a live interview round where needed to solve 2 questions ... | [
{
"code": null,
"e": 26981,
"s": 26953,
"text": "\n09 May, 2021"
},
{
"code": null,
"e": 27014,
"s": 26981,
"text": "Round 1(Online Coding): 120 mins"
},
{
"code": null,
"e": 27126,
"s": 27014,
"text": "2 questions were asked, 1st question was similar to the c... |
What does reload() function do in Python? | The function reload(moduleName) reloads a previously loaded module (assuming you loaded it with the syntax "import moduleName". It is intended for conversational use, where you have edited the source file for a module and want to test it without leaving Python and starting it again. For example,
>>> import mymodule
>>>... | [
{
"code": null,
"e": 1359,
"s": 1062,
"text": "The function reload(moduleName) reloads a previously loaded module (assuming you loaded it with the syntax \"import moduleName\". It is intended for conversational use, where you have edited the source file for a module and want to test it without leavi... |
Tryit Editor v3.7 - Show Java | class Main {
public static void main(String[] args) {
Scanner myObj = new Scanner(System.in);
System.out.println("Enter name, age and salary:");
// String input
String name = myObj.nextLine();
// Numerical input
int age = myObj.nextInt();
double salary = myObj.nextDouble();
// Outp... | [] |
How to read PDF file using PHP ? - GeeksforGeeks | 14 Jul, 2021
In this article, we will learn how you can show PDF file content on a browser using PHP.
We have to include an external PHP file named “class.pdf2text.php“. Include it in the required web page using PHP. Create an HTML form, in which we can choose a PDF file from your computer and also check whether its fi... | [
{
"code": null,
"e": 24972,
"s": 24944,
"text": "\n14 Jul, 2021"
},
{
"code": null,
"e": 25061,
"s": 24972,
"text": "In this article, we will learn how you can show PDF file content on a browser using PHP."
},
{
"code": null,
"e": 25307,
"s": 25061,
"text": "W... |
Get the first element of array in JavaScript | You can use simple for loop along with some if else condition to get the array’s first element in
JavaScript.
The logic is that, first of all check the array length is greater than 1 or not if the length is not
equal to 1 that means there is no element in the array. So, go to the else condition and set the
value undefi... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "You can use simple for loop along with some if else condition to get the array’s first element in\nJavaScript."
},
{
"code": null,
"e": 1586,
"s": 1172,
"text": "The logic is that, first of all check the array length is greater than ... |
PHP | imagewebp() Function - GeeksforGeeks | 19 Feb, 2020
The imagewebp() function is an inbuilt function in PHP which is used to display image to browser or file. The main use of this function is to view an image in the browser, convert any other image type to WebP and alter the quality of the image.Syntax:
bool imagewebp( resource $image, int $to, int $quality... | [
{
"code": null,
"e": 24345,
"s": 24317,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 24598,
"s": 24345,
"text": "The imagewebp() function is an inbuilt function in PHP which is used to display image to browser or file. The main use of this function is to view an image in the ... |
Swift - Type Casting | To validate the type of an instance 'Type Casting' comes into play in Swift 4 language. It is used to check whether the instance type belongs to a particular super class or subclass or it is defined in its own hierarchy.
Swift 4 type casting provides two operators 'is' to check the type of a value and 'as' and to cast ... | [
{
"code": null,
"e": 2474,
"s": 2253,
"text": "To validate the type of an instance 'Type Casting' comes into play in Swift 4 language. It is used to check whether the instance type belongs to a particular super class or subclass or it is defined in its own hierarchy."
},
{
"code": null,
... |
Integer Equals() method in Java | The Equals() method compares this object to the specified object. The result is true if and only if the argument is not null and is an Integer object that contains the same int value as this object.
Let us first set Integer object.
Integer val1 = new Integer(30);
Integer val2 = new Integer(60);
Integer val3 = new Integ... | [
{
"code": null,
"e": 1261,
"s": 1062,
"text": "The Equals() method compares this object to the specified object. The result is true if and only if the argument is not null and is an Integer object that contains the same int value as this object."
},
{
"code": null,
"e": 1294,
"s": 12... |
How to create a responsive slideshow gallery with CSS and JavaScript? | Following is the code to produce bottom navigation menu with CSS −
Live Demo
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
* {
box-sizing: border-box;
}
.Slide {
display: none;
}
img {
vertical-align: middle;
width: 100%;
height: 400px;
}
.s... | [
{
"code": null,
"e": 1129,
"s": 1062,
"text": "Following is the code to produce bottom navigation menu with CSS −"
},
{
"code": null,
"e": 1140,
"s": 1129,
"text": " Live Demo"
},
{
"code": null,
"e": 4782,
"s": 1140,
"text": "<!DOCTYPE html>\n<html>\n<head>\n... |
TIKA - Extracting PDF | Given below is the program to extract content and metadata from a PDF.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import org.apache.tika.exception.TikaException;
import org.apache.tika.metadata.Metadata;
import org.apache.tika.parser.ParseContext;
import org.apache.tika.parser.pdf... | [
{
"code": null,
"e": 2181,
"s": 2110,
"text": "Given below is the program to extract content and metadata from a PDF."
},
{
"code": null,
"e": 3427,
"s": 2181,
"text": "import java.io.File;\nimport java.io.FileInputStream;\nimport java.io.IOException;\n\nimport org.apache.tika.ex... |
How to change a data frame with comma separated values in columns to multiple columns in R? | Mostly, we need to import the data from an outside source in R environment for analysis and these data can be recorded as comma separated values that represent rows. If we want to create the columns for the comma separated values then cSplit function of splitstackshape package can be used. In the below example, we have... | [
{
"code": null,
"e": 1492,
"s": 1062,
"text": "Mostly, we need to import the data from an outside source in R environment for analysis and these data can be recorded as comma separated values that represent rows. If we want to create the columns for the comma separated values then cSplit function of... |
What metrics should be used for evaluating a model on an imbalanced data set? (precision + recall or ROC=TPR+FPR) | by Shir Meir Lador | Towards Data Science | I always thought the subject of metrics to be somehow confusing, specifically when the data set is imbalanced (as happens so often in our usual problems). In order to clarify things I’ve decided to test a few simple examples of an imbalanced data sets with the different type of metrics and see which reflects more corre... | [
{
"code": null,
"e": 576,
"s": 171,
"text": "I always thought the subject of metrics to be somehow confusing, specifically when the data set is imbalanced (as happens so often in our usual problems). In order to clarify things I’ve decided to test a few simple examples of an imbalanced data sets wit... |
Python | Logging Test Output to a File - GeeksforGeeks | 12 Jun, 2019
Problem – Writing the results of running unit tests to a file instead of printed to standard output.
A very common technique for running unit tests is to include a small code fragment (as shown in the code given below) at the bottom of your testing file.
Code #1 :
import unittestclass MyTest(unittest.TestC... | [
{
"code": null,
"e": 25462,
"s": 25434,
"text": "\n12 Jun, 2019"
},
{
"code": null,
"e": 25563,
"s": 25462,
"text": "Problem – Writing the results of running unit tests to a file instead of printed to standard output."
},
{
"code": null,
"e": 25717,
"s": 25563,
... |
How to Reverse a String in PL/SQL using C++ | Pl/SQL is a block-structured language that combines SQL's functionality with procedural commands. In this article, we will discuss a program in PL/SQL to reverse a given string for example −
Input : taerGsIdoG
Output : GodIsGreat
Explanation : reverse string of “taerGsIdoG” is “GodIsGreat”.
Input : LQS
Output : SQL
Ex... | [
{
"code": null,
"e": 1253,
"s": 1062,
"text": "Pl/SQL is a block-structured language that combines SQL's functionality with procedural commands. In this article, we will discuss a program in PL/SQL to reverse a given string for example −"
},
{
"code": null,
"e": 1426,
"s": 1253,
... |
Python 3 - Logical Operators - GeeksforGeeks | 10 Jul, 2020
Logical Operators are used to perform certain logical operations on values and variables. These are the special reserved keywords that carry out some logical computations. The value the operator operates on is known as Operand. In Python, they are used on conditional statements (either True or False), and ... | [
{
"code": null,
"e": 24212,
"s": 24184,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 24622,
"s": 24212,
"text": "Logical Operators are used to perform certain logical operations on values and variables. These are the special reserved keywords that carry out some logical compu... |
Check if a string is Pangrammatic Lipogram - GeeksforGeeks | 22 Apr, 2022
To understand what a pangrammatic lipogram is we will break this term down into 2 terms i.e. a pangram and a lipogram
Pangram: A pangram or holoalphabetic sentence is a sentence using every letter of a given alphabet at least once. The best-known English pangram is “The quick brown fox jumps over the lazy ... | [
{
"code": null,
"e": 24505,
"s": 24477,
"text": "\n22 Apr, 2022"
},
{
"code": null,
"e": 24623,
"s": 24505,
"text": "To understand what a pangrammatic lipogram is we will break this term down into 2 terms i.e. a pangram and a lipogram"
},
{
"code": null,
"e": 24818,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.