title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Python Tuple len() Method
Python tuple method len() returns the number of elements in the tuple. Following is the syntax for len() method − len(tuple) tuple − This is a tuple for which number of elements to be counted. tuple − This is a tuple for which number of elements to be counted. This method returns the number of elements in the tuple. Th...
[ { "code": null, "e": 2315, "s": 2244, "text": "Python tuple method len() returns the number of elements in the tuple." }, { "code": null, "e": 2358, "s": 2315, "text": "Following is the syntax for len() method −" }, { "code": null, "e": 2369, "s": 2358, "text"...
time.Ticker.Stop() Function in Golang With Examples - GeeksforGeeks
21 Apr, 2020 In Go language, time packages supplies functionality for determining as well as viewing time. The NewTicker() function in Go language is used to disable a ticker. So, after calling Stop() method no further ticks will be transmitted. And it doesn’t close the channel, in order to avoid a concurrent go-routin...
[ { "code": null, "e": 23955, "s": 23927, "text": "\n21 Apr, 2020" }, { "code": null, "e": 24460, "s": 23955, "text": "In Go language, time packages supplies functionality for determining as well as viewing time. The NewTicker() function in Go language is used to disable a ticker. ...
SAP ABAP - Encapsulation
Encapsulation is an Object Oriented Programming (OOP) concept that binds together data and functions that manipulate the data, and keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding. Encapsulation is a mechanism of bundling the data and the functions...
[ { "code": null, "e": 3355, "s": 2898, "text": "Encapsulation is an Object Oriented Programming (OOP) concept that binds together data and functions that manipulate the data, and keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding. ...
Program to check if a body is in equilibrium or not - GeeksforGeeks
27 Apr, 2021 Given a 2D array a[][] where each row consists of N vector coordinates of the form (xi, yi, zi) of an applied body. If the body is in equilibrium, print “YES“. Otherwise, print “NO“. Examples: Input: a[][] = {{4, 1, 7}, {-2, 4, -1}, {1, -5, -3}}Output: NO Input: a[][] = {{3, -1, 7}, {-5, 2, -4}, {2, -1, -3...
[ { "code": null, "e": 25020, "s": 24992, "text": "\n27 Apr, 2021" }, { "code": null, "e": 25203, "s": 25020, "text": "Given a 2D array a[][] where each row consists of N vector coordinates of the form (xi, yi, zi) of an applied body. If the body is in equilibrium, print “YES“. Oth...
How to create a div using jQuery with style tag ? - GeeksforGeeks
28 Apr, 2021 Creating an <div> element with a style tag using jQuery can be done in the following steps. Steps: Create a new <div> element. Create an object with all the styles that we want to apply. Choose a parent element, where to put this newly created element. Put the created div element into the parent element. E...
[ { "code": null, "e": 25364, "s": 25336, "text": "\n28 Apr, 2021" }, { "code": null, "e": 25456, "s": 25364, "text": "Creating an <div> element with a style tag using jQuery can be done in the following steps." }, { "code": null, "e": 25463, "s": 25456, "text":...
Convert a number m to n using minimum number of given operations - GeeksforGeeks
10 Mar, 2022 Convert a number m to n with minimum operations. The operations allowed are : Multiply by 2, i.e., do m = 2 * mSubtract 1, i.e., do m = m – 1 Multiply by 2, i.e., do m = 2 * m Subtract 1, i.e., do m = m – 1 Print -1 if it is not possible to convert.Examples : Input : m = 3, n = 11 Output : 3 1st operat...
[ { "code": null, "e": 25390, "s": 25362, "text": "\n10 Mar, 2022" }, { "code": null, "e": 25470, "s": 25390, "text": "Convert a number m to n with minimum operations. The operations allowed are : " }, { "code": null, "e": 25534, "s": 25470, "text": "Multiply b...
Write a program in Python to merge two dataframes based on matching data in a column
Assume, you have two dataframe, first dataframe is id country 0 1 India 1 2 UK 2 3 US 3 4 China second dataframe is id City 0 1 Chennai 1 11 Cambridge 2 22 Chicago 3 4 Chengdu And the result for merging based on same column is, Merging data based on same column - id id country City 0 1 India Chennai 1 ...
[ { "code": null, "e": 1094, "s": 1062, "text": "Assume, you have two dataframe," }, { "code": null, "e": 1242, "s": 1094, "text": "first dataframe is\n id country\n0 1 India\n1 2 UK\n2 3 US\n3 4 China\n\nsecond dataframe is\n\n id City\n0 1 Chennai\n1 11 Cambridge\n2 22 Chicago\n3...
Implicit Join vs Explicit Join in SQL - GeeksforGeeks
28 Oct, 2021 JOIN clause is used to combine rows from two or more tables, based on a relation between them. There are two different syntax forms to perform JOIN operation: Explicit join Implicit join Step 1: Creating the Database Use the below SQL statement to create a database called geeks: CREATE DATABASE geeks; Step...
[ { "code": null, "e": 23877, "s": 23849, "text": "\n28 Oct, 2021" }, { "code": null, "e": 24036, "s": 23877, "text": "JOIN clause is used to combine rows from two or more tables, based on a relation between them. There are two different syntax forms to perform JOIN operation:" }...
What happens when we try to add a duplicate key into a HashMap object in java?
The HashMap is a class that implements the Map interface. It is based on the Hash table. It allows null values and null keys. You can store key-value pairs in the HashMap object. Once you do so you can retrieve the values of the respective keys but, the values we use for keys should be unique The put command associates...
[ { "code": null, "e": 1188, "s": 1062, "text": "The HashMap is a class that implements the Map interface. It is based on the Hash table. It allows null values and null keys." }, { "code": null, "e": 1356, "s": 1188, "text": "You can store key-value pairs in the HashMap object. Onc...
How to Copy NTFS permissions using PowerShell?
To change, add or remove security permissions on the files or folder using PowerShell you can use the Set-Acl command. The best way to set the permission is to copy the permissions from another file or folder if you need the same permissions on the destination path. For example, I want the same folder permissions of th...
[ { "code": null, "e": 1329, "s": 1062, "text": "To change, add or remove security permissions on the files or folder using PowerShell you can use the Set-Acl command. The best way to set the permission is to copy the permissions from another file or folder if you need the same permissions on the dest...
K-Means Clustering. An overview | by Carter Bouley | Towards Data Science
Most applications of machine learning today are based on supervised learning. However the large majority of data is unlabelled: We have inputs X, but no label Y. Computer scientist Yann LeCunn famously said ‘If intelligence was a cake, unsupervised learning would be the cake, supervised learning would be the icing, and...
[ { "code": null, "e": 379, "s": 172, "text": "Most applications of machine learning today are based on supervised learning. However the large majority of data is unlabelled: We have inputs X, but no label Y. Computer scientist Yann LeCunn famously said" }, { "code": null, "e": 545, "s...
Find the area of a circle in C programming.
A circle is a closed figure. All the points of the circle are equidistant from a point that lies inside in circle. The point at the center is known as the center of the circle. The distance of points from the center is known as the radius. The area is the quantitative representation of the span of the dimensions of a c...
[ { "code": null, "e": 1302, "s": 1062, "text": "A circle is a closed figure. All the points of the circle are equidistant from a point that lies inside in circle. The point at the center is known as the center of the circle. The distance of points from the center is known as the radius." }, { ...
Can we create an enum with custom values in java?
Enumeration (enum) in Java is a datatype which stores a set of constant values (Strings in general). You can use enumerations to store fixed values such as days in a week, months in a year etc. enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY } Instead of declaring just string constants in ...
[ { "code": null, "e": 1256, "s": 1062, "text": "Enumeration (enum) in Java is a datatype which stores a set of constant values (Strings in general). You can use enumerations to store fixed values such as days in a week, months in a year etc." }, { "code": null, "e": 1336, "s": 1256, ...
Vim surround tutorial | Towards Data Science
I recently started learning Vim and it was difficult, especially during the first few days — my productivity took a real hit. I could barely write any code in Visual Studio Code without feeling a pain in my head. To learn more about my 15-day journey, check out this post: towardsdatascience.com Now, two weeks later, I ...
[ { "code": null, "e": 445, "s": 172, "text": "I recently started learning Vim and it was difficult, especially during the first few days — my productivity took a real hit. I could barely write any code in Visual Studio Code without feeling a pain in my head. To learn more about my 15-day journey, che...
Get Bit Coin price in real time using Python - GeeksforGeeks
13 Jan, 2022 In this article we will see how we can get the current price of the bit coin. Bitcoin is a cryptocurrency. It is a decentralized digital currency without a central bank or single administrator that can be sent from user to user on the peer-to-peer bitcoin network without the need for intermediaries. Module...
[ { "code": null, "e": 23823, "s": 23795, "text": "\n13 Jan, 2022" }, { "code": null, "e": 23901, "s": 23823, "text": "In this article we will see how we can get the current price of the bit coin." }, { "code": null, "e": 24124, "s": 23901, "text": "Bitcoin is a...
MySQL Tryit Editor v1.0
SELECT TRUNCATE(345.156, 0); ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of the Try-SQL E...
[ { "code": null, "e": 29, "s": 0, "text": "SELECT TRUNCATE(345.156, 0);" }, { "code": null, "e": 31, "s": 29, "text": "​" }, { "code": null, "e": 103, "s": 40, "text": "Edit the SQL Statement, and click \"Run SQL\" to see the result." }, { "code": null,...
std::istream_iterator and std::ostream_iterator in C++ STL - GeeksforGeeks
06 Jan, 2022 The STL is a very powerful library in C++. It is strongly built on the principles of template programming. The STL library has three main components : Containers: These classes define the data structures which are used to contain the data. The data may be stored in linked lists, or trees or arrays. The co...
[ { "code": null, "e": 24796, "s": 24768, "text": "\n06 Jan, 2022" }, { "code": null, "e": 24948, "s": 24796, "text": "The STL is a very powerful library in C++. It is strongly built on the principles of template programming. The STL library has three main components : " }, { ...
Impala - Select Statement
Impala SELECT statement is used to fetch the data from one or more tables in a database. This query returns data in the form of tables. Following is the syntax of the Impala select statement. SELECT column1, column2, columnN from table_name; Here, column1, column2...are the fields of a table whose values you want to f...
[ { "code": null, "e": 2421, "s": 2285, "text": "Impala SELECT statement is used to fetch the data from one or more tables in a database. This query returns data in the form of tables." }, { "code": null, "e": 2477, "s": 2421, "text": "Following is the syntax of the Impala select s...
Collectors toList() method in Java 8
The toList() method of the Collectors class returns a Collector that accumulates the input elements into a new List. The syntax is as follows − static <T> Collector<T,?,List<T>> toList() Here, parameter T is the type of input elements. To work with Collectors class in Java, import the following package − import java.ut...
[ { "code": null, "e": 1179, "s": 1062, "text": "The toList() method of the Collectors class returns a Collector that accumulates the input elements into a new List." }, { "code": null, "e": 1206, "s": 1179, "text": "The syntax is as follows −" }, { "code": null, "e": 1...
C# Program to Convert a Binary String to an Integer - GeeksforGeeks
02 Jul, 2020 Given an binary string as input, we need to write a program to convert the binary string into equivalent integer. To convert an binary string to integer, we have to use Convert.ToInt32(String, Base/Int32) function to convert the values. The base of the binary is 2. Syntax: Convert.ToInt32(String, Base/I...
[ { "code": null, "e": 23781, "s": 23753, "text": "\n02 Jul, 2020" }, { "code": null, "e": 24048, "s": 23781, "text": "Given an binary string as input, we need to write a program to convert the binary string into equivalent integer. To convert an binary string to integer, we have t...
HBase - Update Data
You can update an existing cell value using the put command. To do so, just follow the same syntax and mention your new value as shown below. put ‘table name’,’row ’,'Column family:column name',’new value’ The newly given value replaces the existing value, updating the row. Suppose there is a table in HBase called emp...
[ { "code": null, "e": 2179, "s": 2037, "text": "You can update an existing cell value using the put command. To do so, just follow the same syntax and mention your new value as shown below." }, { "code": null, "e": 2244, "s": 2179, "text": "put ‘table name’,’row ’,'Column family:c...
Tokenizing a string in C++ - GeeksforGeeks
14 Dec, 2021 Tokenizing a string denotes splitting a string with respect to some delimiter(s). There are many ways to tokenize a string. In this article four of them are explained: A stringstream associates a string object with a stream allowing you to read from the string as if it were a stream. Below is the C++ imple...
[ { "code": null, "e": 26571, "s": 26543, "text": "\n14 Dec, 2021" }, { "code": null, "e": 26739, "s": 26571, "text": "Tokenizing a string denotes splitting a string with respect to some delimiter(s). There are many ways to tokenize a string. In this article four of them are explai...
How To Change The MySQL Data Directory to Another Location on Ubuntu 16.04
In this article, we will learn how to change the MySQL Data Directory or relocate the MySQL Database data to the new location, this situation may be used when the database is growing very fast, or for some security reasons we want to move the data directory to the new location. An Ubuntu machine with a non-root user wi...
[ { "code": null, "e": 1341, "s": 1062, "text": "In this article, we will learn how to change the MySQL Data Directory or relocate the MySQL Database data to the new location, this situation may be used when the database is growing very fast, or for some security reasons we want to move the data direc...
Features of Structured Query Language (SQL) - GeeksforGeeks
30 Nov, 2021 Structured Query Language (SQL) is the standard language used for writing queries in a databases. It was approved by ISO (International Standard Organization) and ANSI(American National Standards Institute). SQL contains of some important features and they are: Data Definition language (DDL): It contains...
[ { "code": null, "e": 24040, "s": 24012, "text": "\n30 Nov, 2021" }, { "code": null, "e": 24249, "s": 24040, "text": "Structured Query Language (SQL) is the standard language used for writing queries in a databases. It was approved by ISO (International Standard Organization) and ...
Contour plots - GeeksforGeeks
22 Jan, 2021 A contour plot is a graphical method to visualize the 3-D surface by plotting constant Z slices called contours in a 2-D format. The contour plot is an alternative to a 3-D surface plot The contour plot is formed by: Vertical axis: Independent variable 2 Horizontal axis: Independent variable 1 Lines: iso-r...
[ { "code": null, "e": 24270, "s": 24242, "text": "\n22 Jan, 2021" }, { "code": null, "e": 24456, "s": 24270, "text": "A contour plot is a graphical method to visualize the 3-D surface by plotting constant Z slices called contours in a 2-D format. The contour plot is an alternative...
How to Create a Simple Object Detection System with Python and ImageAI | by Ruben Winastwan | Towards Data Science
We all can agree that object detection is one of the most popular topics in Computer Vision. The problem is, creating an object detection system from scratch requires deep technical knowledge in Deep Learning and a huge amount of resources on your hardware. If you look at the common object detection models like ResNet,...
[ { "code": null, "e": 429, "s": 171, "text": "We all can agree that object detection is one of the most popular topics in Computer Vision. The problem is, creating an object detection system from scratch requires deep technical knowledge in Deep Learning and a huge amount of resources on your hardwar...
C# - Operators Precedence
Operator precedence determines the grouping of terms in an expression. This affects evaluation of an expression. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition operator. For example x = 7 + 3 * 2; here, x is assigned 13, not 20 beca...
[ { "code": null, "e": 2528, "s": 2270, "text": "Operator precedence determines the grouping of terms in an expression. This affects evaluation of an expression. Certain operators have higher precedence than others; for example, the multiplication operator has higher precedence than the addition opera...
Convert an image into grayscale image using HTML/CSS - GeeksforGeeks
07 Dec, 2018 Given a colored image and the task is to convert the image into grayscale image using CSS property. In CSS, filter property is used to convert an image into grayscale image. Filter property is mainly used to set the visual effect of an image. Syntax: filter: grayscale() Example 1: In this example, use filt...
[ { "code": null, "e": 23918, "s": 23890, "text": "\n07 Dec, 2018" }, { "code": null, "e": 24161, "s": 23918, "text": "Given a colored image and the task is to convert the image into grayscale image using CSS property. In CSS, filter property is used to convert an image into graysc...
ES6 - Operators
An expression is a special kind of statement that evaluates to a value. Every expression is composed of − Operands − Represents the data. Operands − Represents the data. Operator − Defines how the operands will be processed to produce a value. Operator − Defines how the operands will be processed to produce a value. Co...
[ { "code": null, "e": 2383, "s": 2277, "text": "An expression is a special kind of statement that evaluates to a value. Every expression is composed of −" }, { "code": null, "e": 2415, "s": 2383, "text": "Operands − Represents the data." }, { "code": null, "e": 2447, ...
Python - turtle.delay() method - GeeksforGeeks
01 Aug, 2020 Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967. The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Be...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n01 Aug, 2020" }, { "code": null, "e": 24489, "s": 24292, "text": "Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Pa...
Essential Math for Data Science: Eigenvectors and application to PCA | by Hadrien Jean | Towards Data Science
Matrix decomposition, also called matrix factorization is the process of splitting a matrix into multiple pieces. In the context of data science, you can for instance use it to select parts of the data, aimed at reducing dimensionality without losing much information (as for instance in Principal Component Analysis, as...
[ { "code": null, "e": 492, "s": 47, "text": "Matrix decomposition, also called matrix factorization is the process of splitting a matrix into multiple pieces. In the context of data science, you can for instance use it to select parts of the data, aimed at reducing dimensionality without losing much ...
C++ Vector Library - emplace() Function
The C++ function std::vector::emplace() extends container by inserting new element at position. Reallocation happens if there is need of more space. This method increases container size by one. Following is the declaration for std::vector::emplace() function form std::vector header. template <class... Args> iterator em...
[ { "code": null, "e": 2752, "s": 2603, "text": "The C++ function std::vector::emplace() extends container by inserting new element at position. Reallocation happens if there is need of more space." }, { "code": null, "e": 2797, "s": 2752, "text": "This method increases container s...
getpixel() function in C - GeeksforGeeks
23 Jan, 2018 The header file graphics.h contains getpixel() function which returns the color of pixel present at location (x, y). Syntax : int getpixel(int x, int y); Note : By default the screen is BLACK, therefore color of pixel at (0,0) is BLACK. Below is the implementation of getpixel() function. // C Implementati...
[ { "code": null, "e": 25587, "s": 25559, "text": "\n23 Jan, 2018" }, { "code": null, "e": 25704, "s": 25587, "text": "The header file graphics.h contains getpixel() function which returns the color of pixel present at location (x, y)." }, { "code": null, "e": 25713, ...
Whois tutorialspoint.com
Register a Domain Get your domain name now Domain Suggestions Get help picking a domain name Domain Prices Compare prices across TLDs Special Offers Take advantage of our unbeatable promotions Domain Services Transfer your Domain Consolidate your domains quickly & easily Free with Every...
[ { "code": null, "e": 402, "s": 0, "text": "\nRegister a Domain \n Get your domain name now\n\n\n\n\nDomain Suggestions \nGet help picking a domain name\n\n\n\n\n\n\nDomain Prices \nCompare prices across TLDs\n\n\n\n\nSpecial Offers \nTake advantage of our unbeatable promotions\n\n\n\n\n\n Domain Ser...
How to clear console in MongoDB?
To clear console in MongoDB, you can use any of the following two syntaxes. The first syntax is as follows, which is the usage of keyboard shortcut − Ctrl + L After pressing the above key, you can clear console in MongoDB. The second syntax is as follows − cls To understand the above syntaxes, let us implement them one...
[ { "code": null, "e": 1138, "s": 1062, "text": "To clear console in MongoDB, you can use any of the following two syntaxes." }, { "code": null, "e": 1212, "s": 1138, "text": "The first syntax is as follows, which is the usage of keyboard shortcut −" }, { "code": null, ...
Program for credit card number validation - GeeksforGeeks
16 Feb, 2021 Write a program that prompts the user to enter a credit card number as a long integer and Display whether that card is valid or invalid.Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: 4 for Visa cards 5 for Master cards 37 for Ameri...
[ { "code": null, "e": 24817, "s": 24789, "text": "\n16 Feb, 2021" }, { "code": null, "e": 25076, "s": 24817, "text": "Write a program that prompts the user to enter a credit card number as a long integer and Display whether that card is valid or invalid.Credit card numbers follow ...
How to perform right click on an element in Selenium with python?
We can perform right click on an element in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements. These types of actions are mainly common in complex scenarios like drag and drop and hover...
[ { "code": null, "e": 1292, "s": 1062, "text": "We can perform right click on an element in Selenium with the help of\nAction Chains class. These classes are generally used for automating interactions\nlike context menu click, mouse button actions, key press and mouse movements." }, { "code":...
How to run Python Program?
After writing the code, we need to run the code to execute and obtain the output. On running the program, we can check whether the code is written is correct and produces the desired output. Running a python program is quite an easy task. To run a python program on IDLE, follow the given steps − Write the python code a...
[ { "code": null, "e": 1253, "s": 1062, "text": "After writing the code, we need to run the code to execute and obtain the output. On running the program, we can check whether the code is written is correct and produces the desired output." }, { "code": null, "e": 1301, "s": 1253, ...
Efficient Cardinality Estimation using HLL with Spark and Postgres | by Ankit Prakash Gupta | Towards Data Science
A complete guide that assists you to do end-to-end efficient cardinality estimation using HyperLogLog Algorithm. The cardinality estimation problem is the problem of finding the number of distinct elements in a chunk of data with the same elements being repeated multiple times. The problem is very generic and has a lot...
[ { "code": null, "e": 285, "s": 172, "text": "A complete guide that assists you to do end-to-end efficient cardinality estimation using HyperLogLog Algorithm." }, { "code": null, "e": 602, "s": 285, "text": "The cardinality estimation problem is the problem of finding the number o...
Concatenate two lists element-wise in Python
Pyhton has great data manipulation features. In this article we will see how to combine the elements from two lists in the same order as they are present in the lists. The zip function can take in the two lists as parameters and concatenate them. We design a for loop to capture these combinations and put them into a ne...
[ { "code": null, "e": 1230, "s": 1062, "text": "Pyhton has great data manipulation features. In this article we will see how to combine the elements from two lists in the same order as they are present in the lists." }, { "code": null, "e": 1390, "s": 1230, "text": "The zip functi...
Data lake on GCP using Terraform. Use Terraform to set up... | by Tuan Nguyen | Towards Data Science
Back in the old days, dealing with physical infrastructure is a huge burden, which not only requires teams of experts to manage but also is time-consuming. In the modern cloud computing era, however, you can deploy hundreds of computers instantly to solve your problems with the click of a button. Well, to be realistic,...
[ { "code": null, "e": 587, "s": 172, "text": "Back in the old days, dealing with physical infrastructure is a huge burden, which not only requires teams of experts to manage but also is time-consuming. In the modern cloud computing era, however, you can deploy hundreds of computers instantly to solve...
Initialization of a multidimensional array in C
Array is a collection of same type of elements at contiguous memory location. The lowest address corresponds to the first element while highest corresponds to last element. Array index starts with zero(0) and ends with the size of array minus one(array size - 1). Array size must be integer greater than zero. Let us see...
[ { "code": null, "e": 1372, "s": 1062, "text": "Array is a collection of same type of elements at contiguous memory location. The lowest address corresponds to the first element while highest corresponds to last element. Array index starts with zero(0) and ends with the size of array minus one(array ...
Display minutes with SimpleDateFormat('mm') in Java
To work with SimpleDateFormat class in Java, import the following package. import java.text.SimpleDateFormat; Now, set the format with SimpleDateFormat(“mm”) to display minutes in two-digits. Format f = new SimpleDateFormat(‘”mm”); Now, get the minutes in a string. String strMinute = f.format(new Date()); The following...
[ { "code": null, "e": 1137, "s": 1062, "text": "To work with SimpleDateFormat class in Java, import the following package." }, { "code": null, "e": 1172, "s": 1137, "text": "import java.text.SimpleDateFormat;" }, { "code": null, "e": 1254, "s": 1172, "text": "N...
Find indices of all occurrence of one string in other in C++
Suppose we have string str, and another substring sub_str, we have to find the indices for all occurrences of the sub_str in str. Suppose the str is “aabbababaabbbabbaaabba”, and sub_str is “abb”, then the indices will be 1 9 13 18. To solve this problem, we can use the substr() function in C++ STL. This function takes...
[ { "code": null, "e": 1295, "s": 1062, "text": "Suppose we have string str, and another substring sub_str, we have to find the indices for all occurrences of the sub_str in str. Suppose the str is “aabbababaabbbabbaaabba”, and sub_str is “abb”, then the indices will be 1 9 13 18." }, { "code"...
How to create a rating component in ReactJS ? - GeeksforGeeks
03 Mar, 2021 The following approach covers how to create a rating component in React JS. Prerequisite: Basic knowledge of npm & create-react-app command. Basic Knowledge of styled-components. Basic Knowledge of useState() React hooks. Basic Setup: You will start a new project using create-react-app command: npx create-...
[ { "code": null, "e": 24423, "s": 24395, "text": "\n03 Mar, 2021" }, { "code": null, "e": 24499, "s": 24423, "text": "The following approach covers how to create a rating component in React JS." }, { "code": null, "e": 24513, "s": 24499, "text": "Prerequisite:"...
How to Find Factors of Number using Python?
In order to find factors of a number, we have to run a loop over all numbers from 1 to itself and see if it is divisible. num=int(input("enter a number")) factors=[] for i in range(1,num+1): if num%i==0: factors.append(i) print ("Factors of {} = {}".format(num,factors)) If i is able to divide num completely...
[ { "code": null, "e": 1184, "s": 1062, "text": "In order to find factors of a number, we have to run a loop over all numbers from 1 to itself and see if it is divisible." }, { "code": null, "e": 1345, "s": 1184, "text": "num=int(input(\"enter a number\"))\nfactors=[]\nfor i in ran...
Count N-length Binary Strings consisting of "11" as substring - GeeksforGeeks
21 May, 2021 Given a positive integer N, the task is to find the number of binary strings of length N which contains “11” as a substring. Examples: Input: N = 2Output: 1Explanation: The only string of length 2 that has “11” as a substring is “11”. Input: N = 12Output: 3719 Approach: The idea is to derive the number of ...
[ { "code": null, "e": 25061, "s": 25033, "text": "\n21 May, 2021" }, { "code": null, "e": 25186, "s": 25061, "text": "Given a positive integer N, the task is to find the number of binary strings of length N which contains “11” as a substring." }, { "code": null, "e": 2...
Batch Script - FIND
This batch command searches for a string in files or input, outputting matching lines. FIND [text] [destination] Where text is the string which needs to be searched for and destination is the source in which the search needs to take place. @echo off FIND "Application" C:\tp\lists.txt If the word “Application” resides...
[ { "code": null, "e": 2256, "s": 2169, "text": "This batch command searches for a string in files or input, outputting matching lines." }, { "code": null, "e": 2283, "s": 2256, "text": "FIND [text] [destination]\n" }, { "code": null, "e": 2410, "s": 2283, "text...
Pre-training BERT from scratch with cloud TPU | by Denis Antyukhov | Towards Data Science
In this experiment, we will be pre-training a state-of-the-art Natural Language Understanding model BERT on arbitrary text data using Google Cloud infrastructure. This guide covers all stages of the procedure, including: Setting up the training environmentDownloading raw text dataPreprocessing text dataLearning a new v...
[ { "code": null, "e": 334, "s": 171, "text": "In this experiment, we will be pre-training a state-of-the-art Natural Language Understanding model BERT on arbitrary text data using Google Cloud infrastructure." }, { "code": null, "e": 392, "s": 334, "text": "This guide covers all s...
Maximum Sum SubArray using Divide and Conquer in C++
Suppose we have one list of data with positive and negative values. We have to find the sum of contiguous subarray whose sum is largest. Suppose the list is containing {-2, -5, 6, -2, -3, 1, 5, -6}, then the sum of maximum subarray is 7. It is the sum of {6, -2, -3, 1, 5} We will solve this problem using Divide and Con...
[ { "code": null, "e": 1335, "s": 1062, "text": "Suppose we have one list of data with positive and negative values. We have to find the sum of contiguous subarray whose sum is largest. Suppose the list is containing {-2, -5, 6, -2, -3, 1, 5, -6}, then the sum of maximum subarray is 7. It is the sum o...
A Binary String Game - GeeksforGeeks
24 Feb, 2022 Given a Binary String S. The task is to determine the winner of the game when two players play a game optimally with the string as per the given conditions: Player 1 always starts first. Two players take turns choosing a whole block of consecutive equal characters and deleting them from a given binary Stri...
[ { "code": null, "e": 24941, "s": 24913, "text": "\n24 Feb, 2022" }, { "code": null, "e": 25098, "s": 24941, "text": "Given a Binary String S. The task is to determine the winner of the game when two players play a game optimally with the string as per the given conditions:" }, ...
Concurrency in Python - Quick Guide
In this chapter, we will understand the concept of concurrency in Python and learn about the different threads and processes. In simple words, concurrency is the occurrence of two or more events at the same time. Concurrency is a natural phenomenon because many events occur simultaneously at any given time. In terms of...
[ { "code": null, "e": 2048, "s": 1922, "text": "In this chapter, we will understand the concept of concurrency in Python and learn about the different threads and processes." }, { "code": null, "e": 2231, "s": 2048, "text": "In simple words, concurrency is the occurrence of two or...
Why Multiple Dispatch Is My Favorite Way To Program | by Emmett Boudreau | Towards Data Science
The Julia language is an incredible technical feat that has been a work in progress since around 2008 and has really made ground in the past couple of years. The language is exciting, science-geared, and fun to use with its unique paradigm and programming style. To understand the Julia programming language, you need to...
[ { "code": null, "e": 522, "s": 171, "text": "The Julia language is an incredible technical feat that has been a work in progress since around 2008 and has really made ground in the past couple of years. The language is exciting, science-geared, and fun to use with its unique paradigm and programming...
ReactJS | Calculator App ( Structure )
08 Oct, 2020 In our previous article, we have talked about a Calculator app we are going to develop and also have seen a glimpse of our final project. In this article, we will get our hands ready to start the development of our first application. We have told this earlier also that every application we will develop in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Oct, 2020" }, { "code": null, "e": 262, "s": 28, "text": "In our previous article, we have talked about a Calculator app we are going to develop and also have seen a glimpse of our final project. In this article, we will get our hand...
Design Patterns in Java – Iterator Pattern
02 Aug, 2021 A design pattern is proved solution for solving the specific problem/task. We need to keep in mind that design patterns are programming language independent for solving the common object-oriented design problems. In Other Words, a design pattern represents an idea, not a particular implementation. Using de...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Aug, 2021" }, { "code": null, "e": 415, "s": 28, "text": "A design pattern is proved solution for solving the specific problem/task. We need to keep in mind that design patterns are programming language independent for solving the co...
Stacking in Machine Learning
21 Dec, 2021 Stacking: Stacking is a way of ensembling classification or regression models it consists of two-layer estimators. The first layer consists of all the baseline models that are used to predict the outputs on the test datasets. The second layer consists of Meta-Classifier or Regressor which takes all the pre...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Dec, 2021" }, { "code": null, "e": 429, "s": 28, "text": "Stacking: Stacking is a way of ensembling classification or regression models it consists of two-layer estimators. The first layer consists of all the baseline models that are...
k-th distinct (or non-repeating) element among unique elements in an array.
11 Jul, 2022 Given an integer array, print k-th distinct element in an array. The given array may contain duplicates and the output should print k-th element among all unique elements. If k is more than number of distinct elements, print -1.Examples : Input : arr[] = {1, 2, 1, 3, 4, 2}, k = 2 Output : 4 Firs...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jul, 2022" }, { "code": null, "e": 292, "s": 52, "text": "Given an integer array, print k-th distinct element in an array. The given array may contain duplicates and the output should print k-th element among all unique elements. If...
LinkedList removeFirst() Method in Java
10 Dec, 2018 The Java.util.LinkedList.removeFirst() method is used to remove the first element from a linked list. This function also returns the first element after removing it. Syntax: LinkedList.removeFirst(); Parameters: This function does not take any parameters. Return Value: The method returns the first element...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2018" }, { "code": null, "e": 194, "s": 28, "text": "The Java.util.LinkedList.removeFirst() method is used to remove the first element from a linked list. This function also returns the first element after removing it." }, {...
Collection contains() method in Java with Examples
29 Nov, 2018 The contains(Object element) of java.util.Collection interface is used to check whether the element ‘element’ exists in this collection. This method returns a boolean value depicting the presence of the element. If the element is present, it returns true, else it returns false. Syntax: Collection.contains(...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2018" }, { "code": null, "e": 307, "s": 28, "text": "The contains(Object element) of java.util.Collection interface is used to check whether the element ‘element’ exists in this collection. This method returns a boolean value de...
Synchronization in Java
25 Jun, 2022 Multi-threaded programs may often come to a situation where multiple threads try to access the same resources and finally produce erroneous and unforeseen results. So it needs to be made sure by some synchronization method that only one thread can access the resource at a given point in time. Java provide...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Jun, 2022" }, { "code": null, "e": 219, "s": 54, "text": "Multi-threaded programs may often come to a situation where multiple threads try to access the same resources and finally produce erroneous and unforeseen results. " }, {...
Python | Number of values greater than K in list
25 Nov, 2018 One of the problem that is basically a subproblem for many complex problem, finding numbers greater than certain number in list in python, is commonly encountered and this particular article discusses possible solutions to this particular problem. Method 1 : Naive methodThe most common way this problem can...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Nov, 2018" }, { "code": null, "e": 276, "s": 28, "text": "One of the problem that is basically a subproblem for many complex problem, finding numbers greater than certain number in list in python, is commonly encountered and this par...
Back to Basics — Linear Regression in R | by Jason Chong | Towards Data Science
It’s been a while since my last article on here and that’s because I have been busy preparing for my actuarial exam that is coming up in just two months. In the process of studying these past couple of weeks, I ran into a good old friend from way back in my first ever statistics class, linear regression. As I started t...
[ { "code": null, "e": 478, "s": 172, "text": "It’s been a while since my last article on here and that’s because I have been busy preparing for my actuarial exam that is coming up in just two months. In the process of studying these past couple of weeks, I ran into a good old friend from way back in ...
map count( ) function in C++
In this article we will be discussing the working, syntax and examples of map::empty() function in C++ STL. Maps are the associative container, which facilitates to store the elements formed by a combination on key value and mapped value in a specific order. In a map container the data is internally always sorted with ...
[ { "code": null, "e": 1170, "s": 1062, "text": "In this article we will be discussing the working, syntax and examples of map::empty() function in C++ STL." }, { "code": null, "e": 1475, "s": 1170, "text": "Maps are the associative container, which facilitates to store the element...
Volumetric Medical Image Segmentation with Vox2Vox | by Enoch Kan | Towards Data Science
If you are familiar with generative adversarial networks (GANs) and their popular variants, the term Pix2Pix should not be an unfamiliar at all. Pix2Pix is a type of conditional GAN (cGAN) that performs image-to-image translation. In the medical field, they are typically used to perform modality translation and in some...
[ { "code": null, "e": 519, "s": 172, "text": "If you are familiar with generative adversarial networks (GANs) and their popular variants, the term Pix2Pix should not be an unfamiliar at all. Pix2Pix is a type of conditional GAN (cGAN) that performs image-to-image translation. In the medical field, th...
Program to convert Degree to Radian - GeeksforGeeks
26 Feb, 2021 Given the angle in degree, the task is to convert this into radians.Examples: Input: degree = 45 Output: radian = 0.785398 Input: degree = 58 Output: radian = 1.01229 Approach: Radian: The Radian is the SI unit for measuring angles, used mainly in trigonometry. A radian is defined by an arc of a circ...
[ { "code": null, "e": 24690, "s": 24662, "text": "\n26 Feb, 2021" }, { "code": null, "e": 24770, "s": 24690, "text": "Given the angle in degree, the task is to convert this into radians.Examples: " }, { "code": null, "e": 24861, "s": 24770, "text": "Input: deg...
jQuery Mobile Popup create Event - GeeksforGeeks
07 Jan, 2022 jQuery Mobile is a set of HTML5 based user interface systems developed to create responsive content for mobiles, tabs, and desktops. It is built on top of jQuery. In this article, we will be using the jQuery Mobile Popup create event which triggers when the popup is created. Callback Parameters: The callba...
[ { "code": null, "e": 27064, "s": 27036, "text": "\n07 Jan, 2022" }, { "code": null, "e": 27340, "s": 27064, "text": "jQuery Mobile is a set of HTML5 based user interface systems developed to create responsive content for mobiles, tabs, and desktops. It is built on top of jQuery. ...
Bootstrap panel-title class
Add panel title in Bootstrap to add a title to the panel using the .panel-title class. You can try to run the following code to implement the .panel-title class Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> ...
[ { "code": null, "e": 1149, "s": 1062, "text": "Add panel title in Bootstrap to add a title to the panel using the .panel-title class." }, { "code": null, "e": 1223, "s": 1149, "text": "You can try to run the following code to implement the .panel-title class" }, { "code":...
Maximum money | Practice | GeeksforGeeks
Given a street of N houses (a row of houses), each house having K amount of money kept inside; now there is a thief who is going to steal this money but he has a constraint/rule that he cannot steal/rob two adjacent houses. Find the maximum money he can rob. Example 1: Input: N = 5 , K = 10 Output: 30 Explanation: The...
[ { "code": null, "e": 498, "s": 238, "text": "Given a street of N houses (a row of houses), each house having K amount of money kept inside; now there is a thief who is going to steal this money but he has a constraint/rule that he cannot steal/rob two adjacent houses. Find the maximum money he can r...
Private Variables in C#
Private access specifier allows a class to hide its member variables and member functions from other functions and objects. Only functions of the same class can access its private members. Even an instance of a class cannot access its private members. Create a private variable − private double length; Let us see an exa...
[ { "code": null, "e": 1314, "s": 1062, "text": "Private access specifier allows a class to hide its member variables and member functions from other functions and objects. Only functions of the same class can access its private members. Even an instance of a class cannot access its private members." ...
How to add a class to DOM element in JavaScript?
To add a class to a DOM element, you first need to find it using a querySelector like querySelector, getElementById, etc. Then you need to add the class. For example, if you have the following HTML − <!DOCTYPE html> <html> <head></head> <body> <p id="para">This is some text</p> </body> </html> You can fi...
[ { "code": null, "e": 1262, "s": 1062, "text": "To add a class to a DOM element, you first need to find it using a querySelector like querySelector, getElementById, etc. Then you need to add the class. For example, if you have the following HTML −" }, { "code": null, "e": 1372, "s": 1...
Select text after last slash in MySQL?
You need to use substring_index() function from MySQL to select text. The syntax is as follows SELECT substring_index(yourColumnName,'/',-1) AS anyAliasName FROM yourTableName; To understand the above concept, let us create a table. The query to create a table is as follows mysql> create table selectTextAfterLastSlashD...
[ { "code": null, "e": 1132, "s": 1062, "text": "You need to use substring_index() function from MySQL to select text." }, { "code": null, "e": 1157, "s": 1132, "text": "The syntax is as follows" }, { "code": null, "e": 1239, "s": 1157, "text": "SELECT substring...
How to create DefaultTableModel which is an implementation of TableModel
Let us create DefaultTableModel − DefaultTableModel tableModel = new DefaultTableModel(); Now, set the model to JTable − JTable table = new JTable(tableModel); Add a column − tableModel.addColumn("Languages"); Now, we will add rows to our table − tableModel.insertRow(0, new Object[] { "CSS" }); tableModel.insertRow(0, ...
[ { "code": null, "e": 1096, "s": 1062, "text": "Let us create DefaultTableModel −" }, { "code": null, "e": 1152, "s": 1096, "text": "DefaultTableModel tableModel = new DefaultTableModel();" }, { "code": null, "e": 1183, "s": 1152, "text": "Now, set the model to...
PyQt5 - QCalendarWidget - GeeksforGeeks
09 Aug, 2021 QCalendarWidget is the class that provides a monthly based calendar widget allowing the user to select a date, this class belongs to the QWidgets class. A calendar is a system of organizing days for social, religious, commercial, or administrative purposes. This is done by giving names to periods of time, ...
[ { "code": null, "e": 23851, "s": 23823, "text": "\n09 Aug, 2021" }, { "code": null, "e": 24315, "s": 23851, "text": "QCalendarWidget is the class that provides a monthly based calendar widget allowing the user to select a date, this class belongs to the QWidgets class. A calendar...
JSTL - fn:contains() Function
The fn:contains() function determines whether an input string contains a specified substring. The fn:contains() function has the following syntax − boolean contains(java.lang.String, java.lang.String) Following example explains the functionality of fn:contains() function − <%@ taglib uri = "http://java.sun.com/jsp/jst...
[ { "code": null, "e": 2333, "s": 2239, "text": "The fn:contains() function determines whether an input string contains a specified substring." }, { "code": null, "e": 2387, "s": 2333, "text": "The fn:contains() function has the following syntax −" }, { "code": null, "e...
Activation maps for deep learning models in a few lines of code | by Tirthajyoti Sarkar | Towards Data Science
Update: This story received a silver badge from KDNuggets as the most shared story of October. Deep Learning (DL) models are revolutionizing the business and technology world with jaw-dropping performances in one application area after another — image classification, object detection, object tracking, pose recognition,...
[ { "code": null, "e": 267, "s": 172, "text": "Update: This story received a silver badge from KDNuggets as the most shared story of October." }, { "code": null, "e": 561, "s": 267, "text": "Deep Learning (DL) models are revolutionizing the business and technology world with jaw-dr...
Get Your Conda Environment to Show in Jupyter Notebooks — the “Easy Way” | by Ben Bogart | Towards Data Science
When I first started using Jupyter Notebooks it took me longer than I’d like to admit to figure out how to get my conda environment kernels to show in the kernels list. When I succeeded I wasn’t satisfied, because I wanted it to be automatic. Like most things, both are simple once you know how. I’ll show three methods ...
[ { "code": null, "e": 468, "s": 172, "text": "When I first started using Jupyter Notebooks it took me longer than I’d like to admit to figure out how to get my conda environment kernels to show in the kernels list. When I succeeded I wasn’t satisfied, because I wanted it to be automatic. Like most th...
Bootstrap table-responsive class
Wrapping any .table in .table-responsive class, you will make the table scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables. To make a responsive table, you can try to run the following code − Live Demo <!DOCTYPE html> <...
[ { "code": null, "e": 1287, "s": 1062, "text": "Wrapping any .table in .table-responsive class, you will make the table scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables." }, { "code": null, ...
Convert list of strings and characters to list of characters in Python
While dalign with lists, we may come across a situation where we have to process a string and get its individual characters for further processing. In this article we will see various ways to do that. We design a for loop to go through each element of the list and another loop inside this to pick each character from th...
[ { "code": null, "e": 1263, "s": 1062, "text": "While dalign with lists, we may come across a situation where we have to process a string and get its individual characters for further processing. In this article we will see various ways to do that." }, { "code": null, "e": 1411, "s": ...
Apache Kafka - Installation Steps
Following are the steps for installing Java on your machine. Hopefully you have already installed java on your machine right now, so you just verify it using the following command. $ java -version If java is successfully installed on your machine, you could see the version of the installed Java. If Java is not downloa...
[ { "code": null, "e": 2028, "s": 1967, "text": "Following are the steps for installing Java on your machine." }, { "code": null, "e": 2148, "s": 2028, "text": "Hopefully you have already installed java on your machine right now, so you just verify it using the following command." ...
How can we read data from an excel sheet in Selenium Webdriver?
We can read data from an excel sheet in Selenium webdriver in Python. An excel workbook consists of multiple sheets and each sheet consists of cells and columns. To work with excel in Python(with extension .xlsx, .xlsm, and so on) we have to utilize the OpenPyXL library. To install this package, we have to run the comm...
[ { "code": null, "e": 1132, "s": 1062, "text": "We can read data from an excel sheet in Selenium webdriver in Python." }, { "code": null, "e": 1224, "s": 1132, "text": "An excel workbook consists of multiple sheets and each sheet consists of cells and columns." }, { "code"...
A LightGBM Autoregressor — Using Sktime | by Satya Pattnaik | Towards Data Science
I came across a new and promising Python Library for Time Series — Sktime. It provides a plethora of Time Series Functionalities like Transformations, Forecasting algorithms, the Composition of Forecasters, Model Validation, Pipelining the entire flow, and many more. In this article, we explore some features the librar...
[ { "code": null, "e": 617, "s": 172, "text": "I came across a new and promising Python Library for Time Series — Sktime. It provides a plethora of Time Series Functionalities like Transformations, Forecasting algorithms, the Composition of Forecasters, Model Validation, Pipelining the entire flow, an...
DAX Text - RIGHT function
Returns the last characters in a text string, based on the number of characters you specify. RIGHT (<text>, [<num_times>]) text The text string that contains the characters you want to extract, or a reference to a column that contains text. If the referenced column does not contain text, it will be implicitly cast to...
[ { "code": null, "e": 2094, "s": 2001, "text": "Returns the last characters in a text string, based on the number of characters you specify." }, { "code": null, "e": 2126, "s": 2094, "text": "RIGHT (<text>, [<num_times>]) \n" }, { "code": null, "e": 2131, "s": 2126...
“volatile” qualifier in C
Here we will see what is the meaning of volatile qualifier in C++. The volatile qualifier is applied to a variable when we declare it. It is used to tell the compiler, that the value may change at any time. These are some properties of volatile. The volatile keyword cannot remove the memory assignment It cannot cache t...
[ { "code": null, "e": 1308, "s": 1062, "text": "Here we will see what is the meaning of volatile qualifier in C++. The volatile qualifier is applied to a variable when we declare it. It is used to tell the compiler, that the value may change at any time. These are some properties of volatile." }, ...
How to add a variable in HTML?
Use the <var> tag in HTML to add a variable. The HTML <var> tag is used to format text in a document. It can include a variable in a mathematical expression. You can try to run the following code to add a variable in HTML − <!DOCTYPE html> <html> <head> <title>HTML var Tag</title> </head> <body> <p...
[ { "code": null, "e": 1220, "s": 1062, "text": "Use the <var> tag in HTML to add a variable. The HTML <var> tag is used to format text in a document. It can include a variable in a mathematical expression." }, { "code": null, "e": 1286, "s": 1220, "text": "You can try to run the f...
C# - Reading from and Writing to Text Files
The StreamReader and StreamWriter classes are used for reading from and writing data to text files. These classes inherit from the abstract base class Stream, which supports reading and writing bytes into a file stream. The StreamReader class also inherits from the abstract base class TextReader that represents a reade...
[ { "code": null, "e": 2490, "s": 2270, "text": "The StreamReader and StreamWriter classes are used for reading from and writing data to text files. These classes inherit from the abstract base class Stream, which supports reading and writing bytes into a file stream." }, { "code": null, "...
Elasticsearch - Index APIs
These APIs are responsible for managing all the aspects of the index like settings, aliases, mappings, index templates. This API helps you to create an index. An index can be created automatically when a user is passing JSON objects to any index or it can be created before that. To create an index, you just need to sen...
[ { "code": null, "e": 2701, "s": 2581, "text": "These APIs are responsible for managing all the aspects of the index like settings, aliases, mappings, index templates." }, { "code": null, "e": 2992, "s": 2701, "text": "This API helps you to create an index. An index can be created...
How to deal with Internet Explorer and addEventListener problem "Object doesn't support this property or method" in JavaScript?
To deal with “Object doesn’t support this property or method” issue in JavaScript, while using events and Internet Explorer, update your code with this − <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge;" /> </head> <body> ... </body> </html> You can also use attachEvent in IE to s...
[ { "code": null, "e": 1216, "s": 1062, "text": "To deal with “Object doesn’t support this property or method” issue in JavaScript, while using events and Internet Explorer, update your code with this −" }, { "code": null, "e": 1343, "s": 1216, "text": "<html>\n <head>\n <me...
Convert Class in C#
The Convert Class has methods to convert a base data type to another base data type. Let us see some examples − The Convert.ToBoolean() method in C# is used to convert a specified value to an equivalent Boolean value. Following is the syntax − public static bool ToBoolean (string val, IFormatProvider provider); Above, ...
[ { "code": null, "e": 1174, "s": 1062, "text": "The Convert Class has methods to convert a base data type to another base data type. Let us see some examples −" }, { "code": null, "e": 1280, "s": 1174, "text": "The Convert.ToBoolean() method in C# is used to convert a specified va...
Extract Health Data From Your Samsung Device | by Anuradha Wickramarachchi | Towards Data Science
Health data is collected every time you have your phone in your pocket. Apple or Android, the phones are equipped with a pedometer that counts your steps. Hence, health data is recorded. This data could be your one free data mart for a simple Machine Learning or some other project related to Health data. It’s yours and...
[ { "code": null, "e": 571, "s": 172, "text": "Health data is collected every time you have your phone in your pocket. Apple or Android, the phones are equipped with a pedometer that counts your steps. Hence, health data is recorded. This data could be your one free data mart for a simple Machine Lear...
CSS Web Fonts
Web fonts allow Web designers to use fonts that are not installed on the user's computer. When you have found/bought the font you wish to use, just include the font file on your web server, and it will be automatically downloaded to the user when needed. Your "own" fonts are defined within the CSS @font-face rule. Tru...
[ { "code": null, "e": 90, "s": 0, "text": "Web fonts allow Web designers to use fonts that are not installed on the user's computer." }, { "code": null, "e": 256, "s": 90, "text": "When you have found/bought the font you wish to use, just include the font \nfile on your web server...
How to Filter DataFrame Rows Based on the Date in Pandas? - GeeksforGeeks
11 Dec, 2020 Different regions follow different date conventions (YYYY-MM-DD, YYYY-DD-MM, DD/MM/YY, etc.). It is difficult to work with such strings in the data. Pandas to_datetime() function allows converting the date and time in string format to datetime64. This datatype helps extract features of date and time rangi...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n11 Dec, 2020" }, { "code": null, "e": 24633, "s": 24292, "text": "Different regions follow different date conventions (YYYY-MM-DD, YYYY-DD-MM, DD/MM/YY, etc.). It is difficult to work with such strings in the data. Pandas to_dat...
Ultimate Guide to Lists, Tuples, Arrays and Dictionaries For Beginners. | by Susan Maina | Towards Data Science
Python uses data structures to store and organize other objects. The most commonly used data structures are lists and dictionaries. In this article we also talk about tuples and arrays. Tuples have a slight performance improvement to lists and can be used as indices to dictionaries. Arrays only store values of similar ...
[ { "code": null, "e": 683, "s": 171, "text": "Python uses data structures to store and organize other objects. The most commonly used data structures are lists and dictionaries. In this article we also talk about tuples and arrays. Tuples have a slight performance improvement to lists and can be used...
Mouse Position in Python Tkinter
Events are very useful to perform and manage multiple tasks in a large-scale application. We can bind a particular event with the keyboard buttons or mouse buttons using the bind(‘handler’, ‘callback’) method. Generally, the mouse pointer and its motion are tracked for the purpose of building a screensaver, 2D or 3D ga...
[ { "code": null, "e": 1549, "s": 1062, "text": "Events are very useful to perform and manage multiple tasks in a large-scale application. We can bind a particular event with the keyboard buttons or mouse buttons using the bind(‘handler’, ‘callback’) method. Generally, the mouse pointer and its motion...
How to change the line color in a Seaborn linear regression jointplot?
To change the line color in seaborn linear regression jointplot, we can use joint_kws in jointplot() method. Set the figure size and adjust the padding between and around the subplots. Create x and y data points using numpy to make a Pandas dataframe. Use jointplot() method with joint_kws in the arguments. To display t...
[ { "code": null, "e": 1171, "s": 1062, "text": "To change the line color in seaborn linear regression jointplot, we can use joint_kws in jointplot() method." }, { "code": null, "e": 1247, "s": 1171, "text": "Set the figure size and adjust the padding between and around the subplot...
Create Dismissal Alerts in Bootstrap
To create a dismissal alert − Add a basic alert by creating a wrapper <div> and adding a class of .alert and one of the four contextual classes, for example, .alert-success, .alert-info, etc. Also add optional .alert-dismissable to the above <div> class. Add a close button. You can try to run the following code to crea...
[ { "code": null, "e": 1092, "s": 1062, "text": "To create a dismissal alert −" }, { "code": null, "e": 1254, "s": 1092, "text": "Add a basic alert by creating a wrapper <div> and adding a class of .alert and one of the four contextual classes, for example, .alert-success, .alert-i...
How to measure the relationship between variables | by Trisha Chandra | Towards Data Science
Analyzing and visualizing variables one at a time is not enough. To make various conclusions and analyses when performing exploratory data analysis, we need to understand how the variables in a dataset interact with respect to each other. There are numerous ways to analyze this relationship visually, one of the most co...
[ { "code": null, "e": 727, "s": 171, "text": "Analyzing and visualizing variables one at a time is not enough. To make various conclusions and analyses when performing exploratory data analysis, we need to understand how the variables in a dataset interact with respect to each other. There are numero...
Solving Jigsaw puzzles with Python and OpenCV | by Riccardo Albertazzi | Towards Data Science
Source Code here At the beginning of 2018 I was gifted an awesome Star Wars 5000 pieces jigsaw puzzle (you can find it on Amazon here). Completing the puzzle took me about 2 months of patience and perseverance, but now I can look at my masterpiece with satisfaction and joy. However, I still remember when I had to compl...
[ { "code": null, "e": 189, "s": 172, "text": "Source Code here" }, { "code": null, "e": 447, "s": 189, "text": "At the beginning of 2018 I was gifted an awesome Star Wars 5000 pieces jigsaw puzzle (you can find it on Amazon here). Completing the puzzle took me about 2 months of pa...
CSS - text-decoration
The text-decoration property is used to add "decorations" to inline content. none − No decoration should be added to the inline text. none − No decoration should be added to the inline text. underline − An underline is drawn beneath the inline text. underline − An underline is drawn beneath the inline text. overline −...
[ { "code": null, "e": 2704, "s": 2626, "text": "The text-decoration property is used to add \"decorations\" to inline content." }, { "code": null, "e": 2761, "s": 2704, "text": "none − No decoration should be added to the inline text." }, { "code": null, "e": 2818, ...
Dart - Classes And Objects - GeeksforGeeks
13 Aug, 2021 Dart is an object-oriented programming language, so it supports the concept of class, object ... etc. In Dart, we can define classes and objects of our own. We use the class keyword to do so. Syntax: class class_name { // Body of class } In the above syntax: Class is the keyword use to initialize t...
[ { "code": null, "e": 23727, "s": 23699, "text": "\n13 Aug, 2021" }, { "code": null, "e": 23920, "s": 23727, "text": "Dart is an object-oriented programming language, so it supports the concept of class, object ... etc. In Dart, we can define classes and objects of our own. We use...
A Beginner’s Guide to End to End Machine Learning | by Rebecca Vickery | Towards Data Science
Supervised machine learning is a technique that maps a series of inputs (X) to some known outputs (y) without being explicitly programmed. Training a machine learning model refers to the process where a machine learns a mapping between X and y. Once trained the model can be used to make predictions on new inputs where ...
[ { "code": null, "e": 515, "s": 172, "text": "Supervised machine learning is a technique that maps a series of inputs (X) to some known outputs (y) without being explicitly programmed. Training a machine learning model refers to the process where a machine learns a mapping between X and y. Once train...