title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to initialize a dictionary to an empty dictionary in C#?
To initialize a dictionary to an empty dictionary, use the Clear() method. It clears the dictionary and forms it as empty. dict.Clear(); After that, use the Dictionary count property to check whether the list is empty or not − if (dict.Count == 0) { Console.WriteLine("Dictionary is empty!"); } Let us see the complet...
[ { "code": null, "e": 1185, "s": 1062, "text": "To initialize a dictionary to an empty dictionary, use the Clear() method. It clears the dictionary and forms it as empty." }, { "code": null, "e": 1199, "s": 1185, "text": "dict.Clear();" }, { "code": null, "e": 1289, ...
How to clear console in C language? - GeeksforGeeks
28 Oct, 2020 It is one of the basic need a program may required i.e clear the console during execution time.There is function named clrscr() which is included in conio.h and is a nonstandard function and is present in conio.h header file which is mostly used by MS-DOS compilers like Turbo C. It is not part of the C sta...
[ { "code": null, "e": 24208, "s": 24180, "text": "\n28 Oct, 2020" }, { "code": null, "e": 24638, "s": 24208, "text": "It is one of the basic need a program may required i.e clear the console during execution time.There is function named clrscr() which is included in conio.h and is...
Generating Anime Characters with StyleGAN2 | by Fathy Rashad | Towards Data Science
Generative Adversarial Network (GAN) is a generative model that is able to generate new content. The topic has become really popular in the machine learning community due to its interesting applications such as generating synthetic training data, creating arts, style-transfer, image-to-image translation, etc. GAN consi...
[ { "code": null, "e": 483, "s": 172, "text": "Generative Adversarial Network (GAN) is a generative model that is able to generate new content. The topic has become really popular in the machine learning community due to its interesting applications such as generating synthetic training data, creating...
Create a Pandas DataFrame from List of Dicts - GeeksforGeeks
17 Dec, 2018 Pandas DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. It is generally the most commonly used pandas object. Pandas DataFrame can be created in multiple ways. Let’s discuss how to create a Pandas DataFrame from List of Dicts. Code #1: # Python code demonstra...
[ { "code": null, "e": 24844, "s": 24816, "text": "\n17 Dec, 2018" }, { "code": null, "e": 25002, "s": 24844, "text": "Pandas DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. It is generally the most commonly used pandas object." },...
PERL Regular Expressions
A regular expression is a string of characters that define the pattern or patterns you are viewing. The syntax of regular expressions in Perl is very similar to what you will find within other regular expression.supporting programs, such as sed, grep, and awk. The basic method for applying a regular expression is to us...
[ { "code": null, "e": 2481, "s": 2220, "text": "A regular expression is a string of characters that define the pattern or patterns you are viewing. The syntax of regular expressions in Perl is very similar to what you will find within other regular expression.supporting programs, such as sed, grep, a...
How can CONCAT() function be used with MySQL WHERE clause?
Suppose from the table ‘Student’ we want to concatenate the values of columns, ‘Name’, ‘Address’ and ‘Columns’, based on the condition that is also a concatenation of values from columns, ’Name’, ‘Subject’, provided in WHERE clause with the help of CONCAT() function. We can use the following query to give the output − ...
[ { "code": null, "e": 1382, "s": 1062, "text": "Suppose from the table ‘Student’ we want to concatenate the values of columns, ‘Name’, ‘Address’ and ‘Columns’, based on the condition that is also a concatenation of values from columns, ’Name’, ‘Subject’, provided in WHERE clause with the help of CONC...
Maximum count of substrings of length K consisting of same characters in C++
Given the task is to find the maximum count of substrings of length K consisting of same characters. Given a string s and another integer K, we have to count the occurrence of sub-strings of size K that have same characters. Out of the sub-strings that are found, we have to choose the sub-string occurring the maximum n...
[ { "code": null, "e": 1287, "s": 1062, "text": "Given the task is to find the maximum count of substrings of length K consisting of same characters. Given a string s and another integer K, we have to count the occurrence of sub-strings of size K that have same characters." }, { "code": null, ...
Maximize the Sum of the given array using given operations - GeeksforGeeks
18 Apr, 2022 Given two arrays A[] and B[] consisting of N integers and an integer K, the task is to maximize the sum calculated from the array A[] by the following operations: For every index in B[] containing 0, the corresponding index in A[] is added to the sum. For every index in B[] containing 1, add the value at...
[ { "code": null, "e": 25023, "s": 24995, "text": "\n18 Apr, 2022" }, { "code": null, "e": 25188, "s": 25023, "text": "Given two arrays A[] and B[] consisting of N integers and an integer K, the task is to maximize the sum calculated from the array A[] by the following operations: ...
ATM using file handling in C++ - GeeksforGeeks
04 Feb, 2021 In this article, the task is to implement an ATM with functions like add, delete, search, and update users using file handling in C++. File handling: File handling is used to store the output of a program in a file. In C++, files use three classes fstream, ifstream, ofstream available in fstream header f...
[ { "code": null, "e": 24408, "s": 24380, "text": "\n04 Feb, 2021" }, { "code": null, "e": 24545, "s": 24408, "text": "In this article, the task is to implement an ATM with functions like add, delete, search, and update users using file handling in C++. " }, { "code": null...
Concept of Margin in Android - GeeksforGeeks
23 Feb, 2021 In order to style and positioned user interface elements, we use standard attributes in android known as Margin and Padding. In this article, all the confusion about Margin is explained with examples. Margin specifies an extra space outside that View on which we applied Margin. In simple words, Margin mean...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n23 Feb, 2021" }, { "code": null, "e": 26752, "s": 26381, "text": "In order to style and positioned user interface elements, we use standard attributes in android known as Margin and Padding. In this article, all the confusion abo...
jQuery | extend() method - GeeksforGeeks
10 May, 2020 This extend() Method in jQuery is used to merge the contents of two or more objects together into the first object. Syntax: jQuery.extend( [deep ], target, object1 [, objectN ] ) Parameters: The extend() method accepts four parameter that is mentioned above and described below: deep: This parameter is the...
[ { "code": null, "e": 26186, "s": 26158, "text": "\n10 May, 2020" }, { "code": null, "e": 26302, "s": 26186, "text": "This extend() Method in jQuery is used to merge the contents of two or more objects together into the first object." }, { "code": null, "e": 26310, ...
SQL Query to convert NUMERIC to NVARCHAR - GeeksforGeeks
15 May, 2021 Here we will see, how to convert NUMERIC data to NVARCHAR data in a MS SQL Server’s database table using the CAST(), CONVERT() and FORMAT() functions. We will be creating a person table in a database called “geeks”. CREATE DATABASE geeks; USE geeks; We have the following Employee table in our geeks databas...
[ { "code": null, "e": 25623, "s": 25595, "text": "\n15 May, 2021" }, { "code": null, "e": 25774, "s": 25623, "text": "Here we will see, how to convert NUMERIC data to NVARCHAR data in a MS SQL Server’s database table using the CAST(), CONVERT() and FORMAT() functions." }, { ...
Decimal.Negate() Method in C# - GeeksforGeeks
30 Jan, 2019 This method is used to get the result of multiplying the specified Decimal value by negative one. Syntax: public static decimal Negate (decimal a); Parameter:a: This parameter specifies the decimal which will be converted. Return Value: A decimal number with the value of a, but the opposite sign. But zero,...
[ { "code": null, "e": 23537, "s": 23509, "text": "\n30 Jan, 2019" }, { "code": null, "e": 23635, "s": 23537, "text": "This method is used to get the result of multiplying the specified Decimal value by negative one." }, { "code": null, "e": 23685, "s": 23635, "...
7 Awesome Rust-powered Command-line Utilities | by Shinichi Okada | Towards Data Science
Table of ContentsIntroduction🦀 Starship🦀 ripgrep🦀 bat🦀 tokei🦀 exa🦀 fd🦀 procs🦀 How I found themConclusion The Rust programming language has been Stack Overflow’s most loved language for four years in a row. Rust is largely viewed as an alternative to other systems programming languages, like C or C++. That’s why...
[ { "code": null, "e": 276, "s": 171, "text": "Table of ContentsIntroduction🦀 Starship🦀 ripgrep🦀 bat🦀 tokei🦀 exa🦀 fd🦀 procs🦀 How I found themConclusion" }, { "code": null, "e": 377, "s": 276, "text": "The Rust programming language has been Stack Overflow’s most loved langua...
Binary Tree Inorder Traversal in Python
Suppose we have a binary tree. We have to traverse this tree using the inorder traversal scheme without using recursion. So if the tree is like Then the traversal will be [2,5,7,10,15,20] To solve this, we will follow these steps − Create two array res and stack, set curr := root Run one infinite loopwhile current is n...
[ { "code": null, "e": 1206, "s": 1062, "text": "Suppose we have a binary tree. We have to traverse this tree using the inorder traversal scheme without using recursion. So if the tree is like" }, { "code": null, "e": 1250, "s": 1206, "text": "Then the traversal will be [2,5,7,10,1...
How to run a JAR file through command prompt in java?
For packaging of class files Java provides a file format known as JAR (Java Archive). Typically, a JAR file contains .class files, images, text files, libraries that are required to execute the application or, library. This file format is used to distribute application software and libraries in Java. All the predefined...
[ { "code": null, "e": 1281, "s": 1062, "text": "For packaging of class files Java provides a file format known as JAR (Java Archive). Typically, a JAR file contains .class files, images, text files, libraries that are required to execute the application or, library." }, { "code": null, "e...
Boy or Girl? A Machine Learning Web App to Detect Gender from Name | by Marie Stephen Leo | Towards Data Science
Choosing a name for your child is one of the most stressful decisions you’ll have to make as a new parent. Especially for a data-driven guy like me, having to decide on a name without any prior data about my child’s character and preferences is a nightmare come true! Since my first name starts with “Marie,” I’ve gone t...
[ { "code": null, "e": 439, "s": 171, "text": "Choosing a name for your child is one of the most stressful decisions you’ll have to make as a new parent. Especially for a data-driven guy like me, having to decide on a name without any prior data about my child’s character and preferences is a nightmar...
Python selenium browser driver.back().
We can navigate back in the browser with Selenium webdriver. There are multiple ways to achieve this. The back() method is used to move back to the prior browser page. This method only is applicable if we jump from webpage to another. We can also move back in the browser with the help of a Javascript Executor in Seleni...
[ { "code": null, "e": 1422, "s": 1187, "text": "We can navigate back in the browser with Selenium webdriver. There are multiple ways to achieve this. The back() method is used to move back to the prior browser page. This method only is applicable if we jump from webpage to another." }, { "cod...
YACC program to recognize strings of { anb | n≥5 }
07 May, 2019 Problem: Write YACC program to recognize strings of { anb | n≥5 } Explanation:Yacc (for “yet another compiler compiler.”) is the standard parser generator for the Unix operating system. An open source program, yacc generates code for the parser in the C programming language. The acronym is usually rendered...
[ { "code": null, "e": 53, "s": 25, "text": "\n07 May, 2019" }, { "code": null, "e": 119, "s": 53, "text": "Problem: Write YACC program to recognize strings of { anb | n≥5 }" }, { "code": null, "e": 416, "s": 119, "text": "Explanation:Yacc (for “yet another comp...
VideoView in Kotlin
08 Jun, 2022 VideoView class of Kotlin is used to display video files in the android application. This class supports the 3gp and MP4 video formats. VideoView class is capable of playing a video file either from local storage, specific URL or from a resource file. The drawback of this class is that it does not retain t...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jun, 2022" }, { "code": null, "e": 542, "s": 54, "text": "VideoView class of Kotlin is used to display video files in the android application. This class supports the 3gp and MP4 video formats. VideoView class is capable of playing ...
Recursive Program to Print extreme nodes of each level of Binary Tree in alternate order
01 Sep, 2021 Given a binary tree, the task is to print nodes of extreme corners of each level but in alternate order.Examples: Input : 1 / \ 2 3 / / \ 4 5 6 / / \ 7 8 9 Output : 1 2 6 7 Print the rightmost node at 1st level: 1 Print the leftmost node at...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Sep, 2021" }, { "code": null, "e": 144, "s": 28, "text": "Given a binary tree, the task is to print nodes of extreme corners of each level but in alternate order.Examples: " }, { "code": null, "e": 560, "s": 144, ...
Print numbers in matrix diagonal pattern in C Program.
The task is to print the matrix of n x n of the diagonal pattern. If n is 3 then to print a matrix in Diagonal pattern is − So the output will be like − Input: 3 Output: 1 2 4 3 5 7 6 8 9 Input: 4 Output: 1 2 4 7 3 5 8 11 6 9 12 14 10 13 15 16 The problem suggests we have to give a number n and ge...
[ { "code": null, "e": 1253, "s": 1187, "text": "The task is to print the matrix of n x n of the diagonal pattern." }, { "code": null, "e": 1311, "s": 1253, "text": "If n is 3 then to print a matrix in Diagonal pattern is −" }, { "code": null, "e": 1340, "s": 1311, ...
strings.ToValidUTF8() Function in Golang With Examples
17 May, 2020 strings.ToValidUTF8() Function in Golang is used to returns a copy of the string s with each run of invalid UTF-8 byte sequences replaced by the replacement string, which may be empty. Syntax: func ToValidUTF8(str, rep string) string Here, str is string which may contain invalid UTF-8 and rep is the repla...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 May, 2020" }, { "code": null, "e": 213, "s": 28, "text": "strings.ToValidUTF8() Function in Golang is used to returns a copy of the string s with each run of invalid UTF-8 byte sequences replaced by the replacement string, which may ...
Reject Vs Throw Promises in JavaScript
17 Jan, 2022 This article covers the use of reject and throw premises in Javascript and explains it’s differences.reject(): It is an inbuilt function in Javascript that returns a Promise object which has been rejected for a particular given reason. Syntax: Promise.reject(reason) Examples: The reason can be a simple ...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 Jan, 2022" }, { "code": null, "e": 290, "s": 53, "text": "This article covers the use of reject and throw premises in Javascript and explains it’s differences.reject(): It is an inbuilt function in Javascript that returns a Promise ...
Round Robin Scheduling with different arrival times
27 May, 2022 Prerequisite: Round Robin Scheduling with arrival time as 0 A round-robin scheduling algorithm is used to schedule the process fairly for each job a time slot or quantum and the interrupting the job if it is not completed by then the job come after the other job which is arrived in the quantum time that ma...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 May, 2022" }, { "code": null, "e": 114, "s": 54, "text": "Prerequisite: Round Robin Scheduling with arrival time as 0" }, { "code": null, "e": 390, "s": 114, "text": "A round-robin scheduling algorithm is used to...
How to toggle a boolean using JavaScript ?
31 Oct, 2019 A boolean value can be toggled in JavaScript by using two approaches which are discussed below: Method 1: Using the logical NOT operator: The logical NOT operator in Boolean algebra is used to negate an expression or value. Using this operator on a true value would return false and using it on a false valu...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2019" }, { "code": null, "e": 124, "s": 28, "text": "A boolean value can be toggled in JavaScript by using two approaches which are discussed below:" }, { "code": null, "e": 565, "s": 124, "text": "Method 1: ...
How to use WebView in Android
04 Jan, 2022 public class WebView extends AbsoluteLayout implements ViewTreeObserver.OnGlobalFocusChangeListener, ViewGroup.OnHierarchyChangeListener WebView is a view that display web pages inside the application. It is used to turn the application into a web application. Class Hierarchy : java.lang.Objec...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jan, 2022" }, { "code": null, "e": 204, "s": 54, "text": "public class WebView \nextends AbsoluteLayout \nimplements \n ViewTreeObserver.OnGlobalFocusChangeListener, \n ViewGroup.OnHierarchyChangeListener\n" }, { "code...
MySQL – ON DELETE CASCADE Constraint
08 Feb, 2021 ON DELETE CASCADE constraint is used in MySQL to delete the rows from the child table automatically, when the rows from the parent table are deleted. For example when a student registers in an online learning platform, then all the details of the student are recorded with their unique number/id. All the co...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Feb, 2021" }, { "code": null, "e": 501, "s": 54, "text": "ON DELETE CASCADE constraint is used in MySQL to delete the rows from the child table automatically, when the rows from the parent table are deleted. For example when a stude...
Split a string in equal parts such that all parts are palindromes
29 Jul, 2021 Given a string str, the task is to split the string into minimum parts such that each part is of same length and each part is a palindrome. Print the required number of parts.Examples: Input: str = “civicbob” Output: 8 “b”, “b”, “c”, “c”, “i”, “i”, “v” and “o” are the required partitions. “civic” and “bo...
[ { "code": null, "e": 52, "s": 24, "text": "\n29 Jul, 2021" }, { "code": null, "e": 239, "s": 52, "text": "Given a string str, the task is to split the string into minimum parts such that each part is of same length and each part is a palindrome. Print the required number of parts...
SAS - Strings
Strings in SAS are the values which are enclosed with in a pair of single quotes. Also the string variables are declared by adding a space and $ sign at the end of the variable declaration. SAS has many powerful functions to analyze and manipulate strings. We can declare the string variables and their values as shown b...
[ { "code": null, "e": 2974, "s": 2717, "text": "Strings in SAS are the values which are enclosed with in a pair of single quotes. Also the string variables are declared by adding a space and $ sign at the end of the variable declaration. SAS has many powerful functions to analyze and manipulate strin...
SQLAlchemy ORM - Using Query
All SELECT statements generated by SQLAlchemy ORM are constructed by Query object. It provides a generative interface, hence successive calls return a new Query object, a copy of the former with additional criteria and options associated with it. Query objects are initially generated using the query() method of the Ses...
[ { "code": null, "e": 2721, "s": 2474, "text": "All SELECT statements generated by SQLAlchemy ORM are constructed by Query object. It provides a generative interface, hence successive calls return a new Query object, a copy of the former with additional criteria and options associated with it." }, ...
Python | Pandas Series.str.index()
13 Jul, 2020 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas str.index() method is used to search and return lowest index of a substring in particu...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jul, 2020" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp...
HTML | Window resizeTo() Method
26 Jul, 2019 The resizeTo() method is used to resizes a window to the specified width and height. Syntax: window.resizeTo(width, height) Parameter Values: width: Sets the width of the window, in pixels. height: Sets the height of the window, in pixels. Example: Resize the window. <!DOCTYPE html><html> <head> <title...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Jul, 2019" }, { "code": null, "e": 138, "s": 53, "text": "The resizeTo() method is used to resizes a window to the specified width and height." }, { "code": null, "e": 146, "s": 138, "text": "Syntax:" }, { ...
Java program to accept an integer from user and print it
Scanner class of the util package class is used to read data from user The nextInt() method of this class reads an integer from the user. import java.util.Scanner; public class PrintInteger { public static void main(String args[]){ Scanner sc = new Scanner(System.in); System.out.println("Enter an integer...
[ { "code": null, "e": 1200, "s": 1062, "text": "Scanner class of the util package class is used to read data from user The nextInt() method of this class reads an integer from the user." }, { "code": null, "e": 1476, "s": 1200, "text": "import java.util.Scanner;\npublic class Prin...
A Brief Introduction to Supervised Learning | by Aidan Wilson | Towards Data Science
Supervised learning is the most common subbranch of machine learning today. Typically, new machine learning practitioners will begin their journey with supervised learning algorithms. Therefore, the first of this three post series will be about supervised learning. Supervised machine learning algorithms are designed to...
[ { "code": null, "e": 313, "s": 47, "text": "Supervised learning is the most common subbranch of machine learning today. Typically, new machine learning practitioners will begin their journey with supervised learning algorithms. Therefore, the first of this three post series will be about supervised ...
Java 8 Clock offset() method with Examples - GeeksforGeeks
10 Dec, 2018 Java Clock class is part of Date Time API, java.time.Clock, of Java. The Java Date Time API was added from Java version 8. The offset() method is a static method of Clock class which returns a clock with instant equal to the sum of the instants of clock passed as parameter and specific Offset duration. If ...
[ { "code": null, "e": 24498, "s": 24470, "text": "\n10 Dec, 2018" }, { "code": null, "e": 24621, "s": 24498, "text": "Java Clock class is part of Date Time API, java.time.Clock, of Java. The Java Date Time API was added from Java version 8." }, { "code": null, "e": 251...
How to get the difference between two dates in Android?
This example demonstrates how do I get the difference between two dates 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"?> <Re...
[ { "code": null, "e": 1146, "s": 1062, "text": "This example demonstrates how do I get the difference between two dates in android." }, { "code": null, "e": 1275, "s": 1146, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required de...
Firebase Event Analytics with Google BigQuery | by Kritika Jalan | Towards Data Science
I started working with Events Analytics. As most mobile apps do, this app too, was linked to Firebase for event tracking. It was difficult to follow especially because there were limited resources online around this. After 4 months of being into the system, I have some understanding and experience which I would be shar...
[ { "code": null, "e": 637, "s": 171, "text": "I started working with Events Analytics. As most mobile apps do, this app too, was linked to Firebase for event tracking. It was difficult to follow especially because there were limited resources online around this. After 4 months of being into the syste...
Check if a given number is sparse or not - GeeksforGeeks
18 Jan, 2022 A number is said to be a sparse number if in binary representation of the number no two or more consecutive bits are set. Write a function to check if a given number is Sparse or not.Example : Input: x = 72 Output: true Explanation: Binary representation of 72 is 01001000. There are no two consecutive...
[ { "code": null, "e": 25076, "s": 25048, "text": "\n18 Jan, 2022" }, { "code": null, "e": 25270, "s": 25076, "text": "A number is said to be a sparse number if in binary representation of the number no two or more consecutive bits are set. Write a function to check if a given numb...
numpy.einsum() Method - GeeksforGeeks
10 Aug, 2020 In NumPy, we can find Einstein’s summation convention of two given multidimensional arrays with the help of numpy.einsum(). We will pass two arrays as a parameter and it will return the Einstein’s summation convention. Syntax: numpy.einsum() Parameter: Two arrays. Return : It will return the Einstein’s sum...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n10 Aug, 2020" }, { "code": null, "e": 24431, "s": 24212, "text": "In NumPy, we can find Einstein’s summation convention of two given multidimensional arrays with the help of numpy.einsum(). We will pass two arrays as a parameter ...
Go Decision Making (if, if-else, Nested-if, if-else-if) - GeeksforGeeks
23 Feb, 2022 Decision making in programming is similar to decision making in real life. In decision making, a piece of code is executed when the given condition is fulfilled. Sometimes these are also termed as the Control flow statements. Golang uses control statements to control the flow of execution of the program ba...
[ { "code": null, "e": 24540, "s": 24512, "text": "\n23 Feb, 2022" }, { "code": null, "e": 25040, "s": 24540, "text": "Decision making in programming is similar to decision making in real life. In decision making, a piece of code is executed when the given condition is fulfilled. S...
wxPython - Change Background colour of Button - GeeksforGeeks
18 Jun, 2020 In this article we are going to learn about how can we change background colour of a button present in a frame. We use SetBackgroundColour() function to set background colour of the button to some different colour.It takes a wx.Colour class object as an argument. Syntax: wx.Button.SetBackgroundColour(self,...
[ { "code": null, "e": 24447, "s": 24419, "text": "\n18 Jun, 2020" }, { "code": null, "e": 24711, "s": 24447, "text": "In this article we are going to learn about how can we change background colour of a button present in a frame. We use SetBackgroundColour() function to set backgr...
2’s compliment for a given string using XOR ?
In this section we will see how we can find the 2’s complement using the XOR operation on a binary string. The 2’s complement is actually the 1’s complement + 1. We will use XOR operation to get the 1’s complement. We will traverse the string from LSb, and look for 0. We will flip all 1’s to 0 until we get a 0. Then fl...
[ { "code": null, "e": 1277, "s": 1062, "text": "In this section we will see how we can find the 2’s complement using the XOR operation on a binary string. The 2’s complement is actually the 1’s complement + 1. We will use XOR operation to get the 1’s complement." }, { "code": null, "e": 1...
C - Variables
A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. The ...
[ { "code": null, "e": 2400, "s": 2084, "text": "A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; ...
What is autoboxing in Java?
Autoboxing refers to the automatic conversion of a primitive type variable to its corresponding wrapper class object. The compiler automatically handles the conversion when a primitive value is − Passed as an argument to a function which is expecting a wrapper class object. assigned to a variable of the type of wrapper...
[ { "code": null, "e": 1258, "s": 1062, "text": "Autoboxing refers to the automatic conversion of a primitive type variable to its corresponding wrapper class object. The compiler automatically handles the conversion when a primitive value is −" }, { "code": null, "e": 1390, "s": 1258,...
Dart Programming - Parameterized Function
Parameters are a mechanism to pass values to functions. Parameters form a part of the function’s signature. The parameter values are passed to the function during its invocation. Unless explicitly specified, the number of values passed to a function must match the number of parameters defined. Let us now discuss the wa...
[ { "code": null, "e": 2820, "s": 2525, "text": "Parameters are a mechanism to pass values to functions. Parameters form a part of the function’s signature. The parameter values are passed to the function during its invocation. Unless explicitly specified, the number of values passed to a function mus...
The Best Practice of Reading Text Files In Python | by Christopher Tao | Towards Data Science
Reading text files in Python is relatively easy to compare with most of the other programming languages. Usually, we just use the “open()” function with reading or writing mode and then start to loop the text files line by line. This is already the best practice and it cannot be any easier ways. However, when we want t...
[ { "code": null, "e": 401, "s": 172, "text": "Reading text files in Python is relatively easy to compare with most of the other programming languages. Usually, we just use the “open()” function with reading or writing mode and then start to loop the text files line by line." }, { "code": null...
Aggregation in MongoDB using Python - GeeksforGeeks
10 Jul, 2020 MongoDB is free, open-source,cross-platform and document-oriented database management system(dbms). It is a NoSQL type of database. It store the data in BSON format on hard disk. BSON is binary form for representing simple data structure, associative array and various data types in MongoDB. NoSQL is most r...
[ { "code": null, "e": 23941, "s": 23913, "text": "\n10 Jul, 2020" }, { "code": null, "e": 24454, "s": 23941, "text": "MongoDB is free, open-source,cross-platform and document-oriented database management system(dbms). It is a NoSQL type of database. It store the data in BSON forma...
Convert number string to integers in C++
Here we will see how to convert a number string to integer type data. We can solve this problem by using the atoi() function. This function takes string as input and converts into integer data. The atoi() function is present in the <cstdlib> library. Input: A number string “1234” Output: 1234 Step 1: Take a number stri...
[ { "code": null, "e": 1256, "s": 1062, "text": "Here we will see how to convert a number string to integer type data. We can solve this problem by using the atoi() function. This function takes string as input and converts into integer data." }, { "code": null, "e": 1313, "s": 1256, ...
How to hide HTML element with JavaScript?
Use the visibility property in JavaScript to hide an element. You can try to run the following code to learn how to work with visibility property to hide an element − <!DOCTYPE html> <html> <body> <p id = "pid">Demo Text</p> <button type = "button" onclick = "displayHide()">Hide</button> <button t...
[ { "code": null, "e": 1229, "s": 1062, "text": "Use the visibility property in JavaScript to hide an element. You can try to run the following code to learn how to work with visibility property to hide an element −" }, { "code": null, "e": 1728, "s": 1229, "text": "<!DOCTYPE html>...
How to insert elements in C++ STL List ? - GeeksforGeeks
28 Jun, 2021 List has been discussed in many articles, but the sole purpose of this article is to cover all types of insertions that are possible to be carried in a list container and to give a detailed insight on the insertion operations.List and its many functions are defined under the header file “list” . Various li...
[ { "code": null, "e": 24780, "s": 24752, "text": "\n28 Jun, 2021" }, { "code": null, "e": 25132, "s": 24780, "text": "List has been discussed in many articles, but the sole purpose of this article is to cover all types of insertions that are possible to be carried in a list contai...
C++ Program to Implement Splay Tree
This is a C++ program to implement Splay Tree. Begin class SplayTree has the functions: Create a function Splay() to implement top-down splay tree. Here head.rch points to the Left tree and head.lch points to the right tree. Create a link to Right tree. Create a link to Left tree. Assem...
[ { "code": null, "e": 1109, "s": 1062, "text": "This is a C++ program to implement Splay Tree." }, { "code": null, "e": 1620, "s": 1109, "text": "Begin\n class SplayTree has the functions:\n Create a function Splay() to implement top-down splay tree.\n Here head.rch po...
How to create a user defined exception (custom exception) in java?
An exception is an issue (run time error) occurred during the execution of a program. When an exception occurred the program gets terminated abruptly and, the code past the line that generated the exception never gets executed. Live Demo import java.util.Scanner; public class ExceptionExample { public static void m...
[ { "code": null, "e": 1290, "s": 1062, "text": "An exception is an issue (run time error) occurred during the execution of a program. When an exception occurred the program gets terminated abruptly and, the code past the line that generated the exception never gets executed." }, { "code": nul...
How can we drop UNIQUE constraint from a MySQL table?
For dropping UNIQUE constraint from a MySQL table, first of all, we must have to check the name of the index created by the UNIQUE constraint on the table. As we know that SHOW INDEX statement is used for this purpose. The ‘key_name’ in the result set of SHOW INDEX statement contains the name of the index. Now either w...
[ { "code": null, "e": 1531, "s": 1062, "text": "For dropping UNIQUE constraint from a MySQL table, first of all, we must have to check the name of the index created by the UNIQUE constraint on the table. As we know that SHOW INDEX statement is used for this purpose. The ‘key_name’ in the result set o...
Fortran - Intrinsic Functions
Intrinsic functions are some common and important functions that are provided as a part of the Fortran language. We have already discussed some of these functions in the Arrays, Characters and String chapters. Intrinsic functions can be categorised as − Numeric Functions Mathematical Functions Numeric Inquiry Functions...
[ { "code": null, "e": 2356, "s": 2146, "text": "Intrinsic functions are some common and important functions that are provided as a part of the Fortran language. We have already discussed some of these functions in the Arrays, Characters and String chapters." }, { "code": null, "e": 2400, ...
Pytorch Implementation of Perceptual Losses for Real-Time Style Transfer | by Ceshine Lee | Towards Data Science
In this post I’ll briefly go through my experience of coding and training real-time style transfer models in Pytorch. The work is heavily based on Abhishek Kadian’s implementation, which works perfectly Fine. I’ve made some modification both for fun and to be more familiar with Pytorch. The model uses the method descri...
[ { "code": null, "e": 460, "s": 172, "text": "In this post I’ll briefly go through my experience of coding and training real-time style transfer models in Pytorch. The work is heavily based on Abhishek Kadian’s implementation, which works perfectly Fine. I’ve made some modification both for fun and t...
Embedded or internal Style Sheets in CSS
CSS files can be embedded internally by declaring them in <style> tag. This decreases the load time of the webpage. Although embedded CSS declarations allow dynamic styles, it should be downloaded at every page request as internal CSS can’t be cached. Internal CSS are declared in <style>tag inside <head> tag. The synta...
[ { "code": null, "e": 1373, "s": 1062, "text": "CSS files can be embedded internally by declaring them in <style> tag. This decreases the load time of the webpage. Although embedded CSS declarations allow dynamic styles, it should be downloaded at every page request as internal CSS can’t be cached. I...
Connect Nodes at Same Level | Practice | GeeksforGeeks
Given a binary tree, connect the nodes that are at same level. You'll be given an addition nextRight pointer for the same. Initially, all the nextRight pointers point to garbage values. Your function should set these pointers to point next right for each node. 10 10 ------> NULL / \ ...
[ { "code": null, "e": 361, "s": 238, "text": "Given a binary tree, connect the nodes that are at same level. You'll be given an addition nextRight pointer for the same." }, { "code": null, "e": 737, "s": 361, "text": "Initially, all the nextRight pointers point to garbage values. ...
How to get yesterday’s date in JavaScript?
To get the yesterday date, first of all get the current date and subtract 1 from the current and use the function setDate(). The syntax is as follows − yourCurrentDateVariableName.setDate(yourCurrentDateVariableName.getDate() - 1); At first, get the current date − var currentDate = new Date(); Now, get yesterday’s date...
[ { "code": null, "e": 1214, "s": 1062, "text": "To get the yesterday date, first of all get the current date and subtract 1 from the current and\nuse the function setDate(). The syntax is as follows −" }, { "code": null, "e": 1294, "s": 1214, "text": "yourCurrentDateVariableName.s...
Some issues when building an AWS data lake using Spark and how to deal with these issues | by Tran Nguyen | Towards Data Science
At first, it seemed to be quite easy to write down and run a Spark application. If you are experienced with data frame manipulation using pandas, NumPy and other packages in Python, and/or the SQL language, creating an ETL pipeline for our data using Spark is quite similar, even much easier than I thought. And compared...
[ { "code": null, "e": 514, "s": 46, "text": "At first, it seemed to be quite easy to write down and run a Spark application. If you are experienced with data frame manipulation using pandas, NumPy and other packages in Python, and/or the SQL language, creating an ETL pipeline for our data using Spark...
Null Pointer Exception in C#
NullReferenceException is a C# version of NullPointerException. To handle and catch it in C#, use try-catch. The below example shows that a variable is set to null and when we try to print it, it throws an exception that gets caught in the catch − Try { a = null; Console.WriteLine(a); }catch (NullPointerException...
[ { "code": null, "e": 1171, "s": 1062, "text": "NullReferenceException is a C# version of NullPointerException. To handle and catch it in C#, use try-catch." }, { "code": null, "e": 1310, "s": 1171, "text": "The below example shows that a variable is set to null and when we try to...
Using Google Trends at Scale. How to use Google Trends when your... | by Carrie Fowle | Towards Data Science
Google Trends is a powerful measure of public interest in a topic, in other words, its hype; however, the way it is set up can make it difficult to use outside the simplest of applications. In this article, we dive into exactly what Google Trends is measuring and explore how to use it when your question exceeds the fiv...
[ { "code": null, "e": 533, "s": 172, "text": "Google Trends is a powerful measure of public interest in a topic, in other words, its hype; however, the way it is set up can make it difficult to use outside the simplest of applications. In this article, we dive into exactly what Google Trends is measu...
ls - Unix, Linux Command
ls - list directory contents. ls [OPTION]... [FILE]... ls [OPTION]... [FILE]... ls List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified. Mandatory arguments to long options are mandatory for short options too. Example-1: To list...
[ { "code": null, "e": 10607, "s": 10577, "text": "ls - list directory contents." }, { "code": null, "e": 10634, "s": 10607, "text": "ls [OPTION]... [FILE]... \n" }, { "code": null, "e": 10660, "s": 10634, "text": "ls [OPTION]... [FILE]... " }, { "code":...
Console Class in C#
The Console class in C# is used to represent the standard input, output, and error streams for console applications. Let us see some examples of Console class properties in C# − To change the CursorLeft of the Console in C#, use the Console.CursorLeft property. Let us see an example − using System; class Demo { publ...
[ { "code": null, "e": 1179, "s": 1062, "text": "The Console class in C# is used to represent the standard input, output, and error streams for console applications." }, { "code": null, "e": 1240, "s": 1179, "text": "Let us see some examples of Console class properties in C# −" }...
How can I subtract a day from a Python date?
You can subtract a day from a python date using the timedelta object. You need to create a timedelta object with the amount of time you want to subtract. Then subtract it from the date. from datetime import datetime from datetime import timedelta today = datetime.today() yesterday = today - timedelta(days=1) print(tod...
[ { "code": null, "e": 1249, "s": 1062, "text": "You can subtract a day from a python date using the timedelta object. You need to create a timedelta object with the amount of time you want to subtract. Then subtract it from the date. " }, { "code": null, "e": 1411, "s": 1249, "tex...
Explain Python Matrix with examples
A matrix in Python is a two-dimensional array having a specific number of rows and columns. The data elements in Python matrix can be numbers, strings or symbols etc. Matrix or two-dimensional list is an important data structure. Various operations associated with matrix involve transpose, addition or multiplication of...
[ { "code": null, "e": 1229, "s": 1062, "text": "A matrix in Python is a two-dimensional array having a specific number of rows and columns. The data elements in Python matrix can be numbers, strings or symbols etc." }, { "code": null, "e": 1397, "s": 1229, "text": "Matrix or two-d...
How to validate given date formats like MM-DD-YYYY using regex in java?
The java.util.regex package of java provides various classes to find particular patterns in character sequences. The pattern class of this package is a compiled representation of a regular expression. To match a regular expression with a String this class provides two methods namely − compile() − This method accepts a ...
[ { "code": null, "e": 1175, "s": 1062, "text": "The java.util.regex package of java provides various classes to find particular patterns in character sequences." }, { "code": null, "e": 1348, "s": 1175, "text": "The pattern class of this package is a compiled representation of a r...
Walmart Interview Experience - GeeksforGeeks
22 Jun, 2021 Round 1: It was an online round hosted by Walmart on dare2dare. It consisted of 2 coding questions. The coding question goes like this : 1: This question is also asked in the onsite 2nd intuit interview of SDE-1. Exactly one swap Given a string S containing lowercase English alphabet characters. The task...
[ { "code": null, "e": 24859, "s": 24831, "text": "\n22 Jun, 2021" }, { "code": null, "e": 24997, "s": 24859, "text": "Round 1: It was an online round hosted by Walmart on dare2dare. It consisted of 2 coding questions. The coding question goes like this : " }, { "code": nul...
ReactJS Semantic UI Search Module - GeeksforGeeks
27 Jul, 2021 Semantic UI is a modern framework used in developing seamless designs for the website. It gives the user a lightweight experience with its components. It uses predefined CSS and JQuery to incorporate them into different frameworks. In this article, we will learn how to use the Search Module in ReactJS Sema...
[ { "code": null, "e": 24921, "s": 24893, "text": "\n27 Jul, 2021" }, { "code": null, "e": 25153, "s": 24921, "text": "Semantic UI is a modern framework used in developing seamless designs for the website. It gives the user a lightweight experience with its components. It uses pred...
Elon Musk & Twitter. A frequency and sentiment analysis on... | by Joy Harjanto | Towards Data Science
Twitter is a powerful microblogging tool that has transformed conversation since its inception- for better or worse. There is so much data available because of its millions of globally active users to harvest and utilize. Elon Musk, CEO of Tesla and SpaceX, has been the subject of controversies because of his recent tw...
[ { "code": null, "e": 494, "s": 272, "text": "Twitter is a powerful microblogging tool that has transformed conversation since its inception- for better or worse. There is so much data available because of its millions of globally active users to harvest and utilize." }, { "code": null, "...
yum - Unix, Linux Command
yum is an interactive, rpm based, package manager. It can automatically perform system updates, including dependency analysis and obsolete processing based on "repository" metadata. It can also perform installation of new packages, removal of old packages and perform queries on the installed and/or available packages a...
[ { "code": null, "e": 11022, "s": 10577, "text": "\nyum is an interactive, rpm based, package manager. It can automatically\nperform system updates, including dependency analysis and obsolete processing\nbased on \"repository\" metadata. It can also perform installation of new\npackages, removal of o...
Deploying a React + NodeJS Application with Docker | by Dan Murphy | Towards Data Science
I recently spent time working on a project with Dylan Edwards, and, in the following article, I will outline how we designed, built, containerized, and deployed a React + Node.js web application. The code for this project is available here. For this project, we built a SPA (single-page application) where users could in...
[ { "code": null, "e": 413, "s": 172, "text": "I recently spent time working on a project with Dylan Edwards, and, in the following article, I will outline how we designed, built, containerized, and deployed a React + Node.js web application. The code for this project is available here." }, { ...
7 popular activation functions you should know in Deep Learning and how to use them with Keras and TensorFlow 2 | by B. Chen | Towards Data Science
In artificial neural networks (ANNs), the activation function is a mathematical “gate” in between the input feeding the current neuron and its output going to the next layer [1]. The activation functions are at the very core of Deep Learning. They determine the output of a model, its accuracy, and computational efficie...
[ { "code": null, "e": 350, "s": 171, "text": "In artificial neural networks (ANNs), the activation function is a mathematical “gate” in between the input feeding the current neuron and its output going to the next layer [1]." }, { "code": null, "e": 614, "s": 350, "text": "The act...
Python Speed Test: 5 Methods To Remove The ‘$’ From Your Data in Python | by Chaim Gluck | Towards Data Science
In a previous post about a regression project on Iowa liquor sales, I mentioned that it was my first time working with data large enough to worry about writing code to optimize speed. In this post, I’ll walk through a relatively simple example of that process. Here’s a look at the data we’re working with. Notice the ‘s...
[ { "code": null, "e": 432, "s": 171, "text": "In a previous post about a regression project on Iowa liquor sales, I mentioned that it was my first time working with data large enough to worry about writing code to optimize speed. In this post, I’ll walk through a relatively simple example of that pro...
Tackle Uncertainties of Linear Models | by Aurélie Giraud | Towards Data Science
Beyond the sarcasm of this quote, there is a reality: of all the statistical techniques, regression analysis is often referred to as one of the most significant in business analysis. Most companies use regression analysis to explain a particular phenomenon, build forecasting or to make predictions. These new insights c...
[ { "code": null, "e": 577, "s": 171, "text": "Beyond the sarcasm of this quote, there is a reality: of all the statistical techniques, regression analysis is often referred to as one of the most significant in business analysis. Most companies use regression analysis to explain a particular phenomeno...
Difference between singleton and prototype bean scope.
Spring framework supports five types of bean scope − Singleton Singleton Prototype Prototype Request Request Session Session Global Session Global Session As per the spring documentation − Singleton − It returns a single bean instance per Spring IoC container. This single instance is stored in a cache of such singleton...
[ { "code": null, "e": 1115, "s": 1062, "text": "Spring framework supports five types of bean scope −" }, { "code": null, "e": 1125, "s": 1115, "text": "Singleton" }, { "code": null, "e": 1135, "s": 1125, "text": "Singleton" }, { "code": null, "e": 1...
HTML | DOM Input Checkbox value Property - GeeksforGeeks
11 Mar, 2019 The Input Checkbox Value property in HTML DOM is used to set or return the value of the value attribute of an input checkbox field, however the contents of the value attribute does not shown to user. When the form is submitted by the user, the value and the other information sent to the server. But when th...
[ { "code": null, "e": 24438, "s": 24410, "text": "\n11 Mar, 2019" }, { "code": null, "e": 24819, "s": 24438, "text": "The Input Checkbox Value property in HTML DOM is used to set or return the value of the value attribute of an input checkbox field, however the contents of the val...
Dimensionality Reduction using t-Distributed Stochastic Neighbor Embedding (t-SNE) on the MNIST Dataset | by Dehao Zhang | Towards Data Science
It is easy for us to visualize two or three dimensional data, but once it goes beyond three dimensions, it becomes much harder to see what high dimensional data looks like. Today we are often in a situation that we need to analyze and find patterns on datasets with thousands or even millions of dimensions, which makes ...
[ { "code": null, "e": 345, "s": 172, "text": "It is easy for us to visualize two or three dimensional data, but once it goes beyond three dimensions, it becomes much harder to see what high dimensional data looks like." }, { "code": null, "e": 628, "s": 345, "text": "Today we are ...
How to get the POST values from serializeArray in PHP?
To get the POST values from serializeArray in PHP, use the serializeArray() method. The serializeArray( ) method serializes all forms and form elements like the .serialize() method but returns a JSON data structure for you to work with. Let’s say we have the PHP content in serialize.php file: <?php if( $_REQUEST["name"...
[ { "code": null, "e": 1299, "s": 1062, "text": "To get the POST values from serializeArray in PHP, use the serializeArray() method. The serializeArray( ) method serializes all forms and form elements like the .serialize() method but returns a JSON data structure for you to work with." }, { "c...
C++ Program to Add Two Matrix Using Multi-dimensional Arrays
A matrix is a rectangular array of numbers that is arranged in the form of rows and columns. An example of a matrix is as follows. A 4*3 matrix has 4 rows and 3 columns as shown below − 3 5 1 7 1 9 3 9 4 1 6 7 A program that adds two matrices using multidimensional arrays is as follows. Live Demo #include <iostream> u...
[ { "code": null, "e": 1155, "s": 1062, "text": "A matrix is a rectangular array of numbers that is arranged in the form of rows and columns." }, { "code": null, "e": 1193, "s": 1155, "text": "An example of a matrix is as follows." }, { "code": null, "e": 1248, "s":...
Substring check in JavaScript - GeeksforGeeks
14 Mar, 2019 The includes() method can be used to check whether a string contains a specified substring. It returns true if substring is present. This method is case sensitive. Syntax: string.includes(searchvalue, start) Parameters: This method requires 2 parameters :- searchvalue: Required. It specifies the substring...
[ { "code": null, "e": 26543, "s": 26515, "text": "\n14 Mar, 2019" }, { "code": null, "e": 26707, "s": 26543, "text": "The includes() method can be used to check whether a string contains a specified substring. It returns true if substring is present. This method is case sensitive....
Python | Extract Combination Mapping in two lists - GeeksforGeeks
05 Sep, 2019 Sometimes, while working with Python lists, we can have a problem in which we have two lists and require to find the all possible mappings possible in all combinations. This can have possible application in mathematical problems. Let’s discuss certain way in which this problem can be solved. Method : Using...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n05 Sep, 2019" }, { "code": null, "e": 25830, "s": 25537, "text": "Sometimes, while working with Python lists, we can have a problem in which we have two lists and require to find the all possible mappings possible in all combinat...
HTML | DOM Input Password placeholder Property - GeeksforGeeks
08 Mar, 2019 The DOM Input Password Placeholder Property is used to set or return the value of the Placeholder attribute of a Password Field. The placeholder attribute specifies a short hint that describes the expected value of an input field . The short hint is displayed in the field before the user enters a value. Sy...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n08 Mar, 2019" }, { "code": null, "e": 26444, "s": 26139, "text": "The DOM Input Password Placeholder Property is used to set or return the value of the Placeholder attribute of a Password Field. The placeholder attribute specifie...
Iterator Invalidation in C++ - GeeksforGeeks
23 Dec, 2021 When the container to which an Iterator points changes shape internally, i.e. when elements are moved from one position to another, and the initial iterator still points to the old invalid location, then it is called Iterator invalidation. One should be careful while using iterators in C++. When we iterate...
[ { "code": null, "e": 25369, "s": 25341, "text": "\n23 Dec, 2021" }, { "code": null, "e": 25850, "s": 25369, "text": "When the container to which an Iterator points changes shape internally, i.e. when elements are moved from one position to another, and the initial iterator still ...
Python | Initializing multiple lists - GeeksforGeeks
30 Dec, 2018 In real applications, we often have to work with multiple lists and to initialize them with empty lists hampers the readability of code. Hence a one-liner is required to perform this task in short so as to give a clear idea of type and number of lists declared to be used. Method #1 : Using * operatorWe can...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n30 Dec, 2018" }, { "code": null, "e": 25810, "s": 25537, "text": "In real applications, we often have to work with multiple lists and to initialize them with empty lists hampers the readability of code. Hence a one-liner is requi...
Check if a path exists from start to end cell in given Matrix with obstacles in at most K moves - GeeksforGeeks
05 Apr, 2022 Given a positive integer K and a matrix grid of dimensions N * M consisting of characters ‘.’ and ‘#’, where ‘.’ represents the unblocked cells and ‘#’ represents the blocked cells, the task is to check if the bottom-right of the grid can be reached from the top-left cell of the matrix through unblocked ce...
[ { "code": null, "e": 25941, "s": 25913, "text": "\n05 Apr, 2022" }, { "code": null, "e": 26371, "s": 25941, "text": "Given a positive integer K and a matrix grid of dimensions N * M consisting of characters ‘.’ and ‘#’, where ‘.’ represents the unblocked cells and ‘#’ represents ...
Python GUI - tkinter - GeeksforGeeks
07 Jan, 2020 Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter is the fastest and easiest way to create the GUI applications....
[ { "code": null, "e": 25635, "s": 25607, "text": "\n07 Jan, 2020" }, { "code": null, "e": 26013, "s": 25635, "text": "Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standar...
scipy stats.normaltest() function | Python - GeeksforGeeks
11 Feb, 2019 scipy.stats.normaltest(array, axis=0) function test whether the sample is different from the normal distribution. This function tests the null hypothesis of the population that the sample was drawn from. Parameters :array : Input array or object having the elements.axis : Axis along which the normal distri...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n11 Feb, 2019" }, { "code": null, "e": 25741, "s": 25537, "text": "scipy.stats.normaltest(array, axis=0) function test whether the sample is different from the normal distribution. This function tests the null hypothesis of the po...
Compare two strings considering only alphanumeric characters - GeeksforGeeks
03 Jun, 2021 Given two strings that can contain lower and uppercase alphabets, numbers and special characters like dots, blank spaces, commas, etc. Compare both strings considering only alphanumeric characters([a-b], [A-B] and [0-9]) if they are equal or not. For example, strings “Ram, Shyam” and “Ram-Shyam” both are t...
[ { "code": null, "e": 26099, "s": 26071, "text": "\n03 Jun, 2021" }, { "code": null, "e": 26453, "s": 26099, "text": "Given two strings that can contain lower and uppercase alphabets, numbers and special characters like dots, blank spaces, commas, etc. Compare both strings conside...
Python | Simple calculator using Tkinter - GeeksforGeeks
15 Jul, 2021 Prerequisite : Tkinter IntroductionPython offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter outputs the fastest and eas...
[ { "code": null, "e": 25589, "s": 25561, "text": "\n15 Jul, 2021" }, { "code": null, "e": 26041, "s": 25589, "text": "Prerequisite : Tkinter IntroductionPython offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most co...
Tryit Editor v3.7
HTML Input types Tryit: HTML reset button
[ { "code": null, "e": 27, "s": 10, "text": "HTML Input types" } ]
How to create a Random Joke using React app through API fetching? - GeeksforGeeks
27 Nov, 2020 In this tutorial, we’ll make a website that fetches data (joke) from an external API and displays it on the screen. We’ll be using React completely to base this website. Each time we reload the page and click the button, a new joke fetched and rendered on the screen by React. As we are using React for this...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n27 Nov, 2020" }, { "code": null, "e": 25283, "s": 24909, "text": "In this tutorial, we’ll make a website that fetches data (joke) from an external API and displays it on the screen. We’ll be using React completely to base this we...
How to initialize a tuple to an empty tuple in C#?
To initialize a tuple to an empty tuple − Tuple<string, string> myTuple; If you want to check for values in a tuple, that whether it is null or not − using System; namespace Demo { class Program { static void Main(string[] args) { Tuple <int, string> tuple = new Tuple<int, string>(10, null); ...
[ { "code": null, "e": 1104, "s": 1062, "text": "To initialize a tuple to an empty tuple −" }, { "code": null, "e": 1135, "s": 1104, "text": "Tuple<string, string> myTuple;" }, { "code": null, "e": 1212, "s": 1135, "text": "If you want to check for values in a t...
How to read inputs as strings in C#?
To read inputs as strings in C#, use the Console.ReadLine() method. str = Console.ReadLine(); The above will read input as string. You don’t need to use the Convert method here since the input takes string by default. Now display the string entered by user − Live Demo using System; using System.Collections.Generic; c...
[ { "code": null, "e": 1130, "s": 1062, "text": "To read inputs as strings in C#, use the Console.ReadLine() method." }, { "code": null, "e": 1156, "s": 1130, "text": "str = Console.ReadLine();" }, { "code": null, "e": 1280, "s": 1156, "text": "The above will re...
How to clear complete cache data in ReactJS ? - GeeksforGeeks
26 Apr, 2021 We can use the following approach in ReactJS to clear complete cache data. We can clear complete cache data from the browser as per the user requirement. Caching is a technique that helps us to stores a copy of a given resource into our browser and serves it back when requested. Approach: Follow these simp...
[ { "code": null, "e": 24384, "s": 24356, "text": "\n26 Apr, 2021" }, { "code": null, "e": 24664, "s": 24384, "text": "We can use the following approach in ReactJS to clear complete cache data. We can clear complete cache data from the browser as per the user requirement. Caching i...
Angular7 - Overview
Angular 7 is owned by Google and the stable release was done on 18th October 2018. This is the latest version of Angular. Below is the list of Angular versions released so far − The release dates for the next two major upcoming versions of Angular are given below − Google plans to release the major Angular version ever...
[ { "code": null, "e": 2183, "s": 2061, "text": "Angular 7 is owned by Google and the stable release was done on 18th October 2018. This is the latest version of Angular." }, { "code": null, "e": 2239, "s": 2183, "text": "Below is the list of Angular versions released so far −" }...
Trading Strategy: Back testing with Backtrader | by J Li | Towards Data Science
(This post is also available in my blog) In one of my older post, I demonstrates how to compute technical indicators which can be combined logically to build a trading strategy. As emphasized in the post, one should validate how well the strategy does with backtesting before applying it in real market. Backtesting is t...
[ { "code": null, "e": 213, "s": 172, "text": "(This post is also available in my blog)" }, { "code": null, "e": 476, "s": 213, "text": "In one of my older post, I demonstrates how to compute technical indicators which can be combined logically to build a trading strategy. As empha...
time.Date() Function in Golang With Examples - GeeksforGeeks
21 Apr, 2020 In Go language, time packages supplies functionality for determining as well as viewing time. The Date() function in Go language is used to find Date the Time which is equivalent to yyyy-mm-dd hh:mm:ss + nsec nanoseconds in the proper time zone in the stated location. Moreover, this function is defined und...
[ { "code": null, "e": 25733, "s": 25705, "text": "\n21 Apr, 2020" }, { "code": null, "e": 26138, "s": 25733, "text": "In Go language, time packages supplies functionality for determining as well as viewing time. The Date() function in Go language is used to find Date the Time whic...
Python String join() Method - GeeksforGeeks
19 Apr, 2022 Python String join() method is a string method and returns a string in which the elements of the sequence have been joined by the str separator. Syntax: string_name.join(iterable) Parameters: The join() method takes iterable – objects capable of returning their members one at a time. Some examples are L...
[ { "code": null, "e": 25078, "s": 25050, "text": "\n19 Apr, 2022" }, { "code": null, "e": 25223, "s": 25078, "text": "Python String join() method is a string method and returns a string in which the elements of the sequence have been joined by the str separator." }, { "cod...
How to create new Collection in MongoDB using Node.js ? - GeeksforGeeks
01 Dec, 2020 MongoDB the most popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘non-relational’. It means that MongoDB isn’t based on the table-like relational database structure but provides an altogether different mechanism for storage and retrieval of data. This format of ...
[ { "code": null, "e": 25779, "s": 25751, "text": "\n01 Dec, 2020" }, { "code": null, "e": 26157, "s": 25779, "text": "MongoDB the most popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘non-relational’. It means that MongoDB isn’t based o...