title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Performing Deduplication with Record Linkage and Supervised Learning | by Sue Lynn | Towards Data Science
Most data are recorded manually by humans and most often is not reviewed, not synchronized, and simply because there were mistakes made such as typos. Think for a second, have you ever filled out the same form twice before but with a slight difference in your address? For example, you submitted a form like this image b...
[ { "code": null, "e": 497, "s": 171, "text": "Most data are recorded manually by humans and most often is not reviewed, not synchronized, and simply because there were mistakes made such as typos. Think for a second, have you ever filled out the same form twice before but with a slight difference in ...
How to implement Polymorphism in JavaScript?
Polymorphism is one of the tenets of Object Oriented Programming (OOP). It helps to design objects in such a way that the they can share or override any behavior with the specific provided objects. Polymorphism takes advantage of inheritance in order to make this happen. In the following example child objects such as '...
[ { "code": null, "e": 1334, "s": 1062, "text": "Polymorphism is one of the tenets of Object Oriented Programming (OOP). It helps to design objects in such a way that the they can share or override any behavior with the specific provided objects. Polymorphism takes advantage of inheritance in order to...
Time-Series Forecasting: Predicting Stock Prices Using An LSTM Model | by Serafeim Loukas | Towards Data Science
Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details. Traditionally most m...
[ { "code": null, "e": 472, "s": 172, "text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking profession...
MariaDB - SQL Injection Protection
The simple act of accepting user input opens the door to exploits. The problem stems primarily from the logical management of data, but luckily, it is fairly easy to avoid these major flaws. Opportunities for SQL injection typically occur on users entering data like a name, and the code logic failing to analyze this in...
[ { "code": null, "e": 2553, "s": 2362, "text": "The simple act of accepting user input opens the door to exploits. The problem stems primarily from the logical management of data, but luckily, it is fairly easy to avoid these major flaws." }, { "code": null, "e": 2788, "s": 2553, ...
Using ControlAggregation in SAPUI5
“ControlAggregation” refers to the target aggregation to which the mapped view is added. As Specified in the use case below: "routing": { "config": { "routerClass": "sap.m.routing.Router", "viewType": "XML", "viewPath": "sap.ui.demo.nav.view", "controlId": "app", "controlAggregation": "...
[ { "code": null, "e": 1151, "s": 1062, "text": "“ControlAggregation” refers to the target aggregation to which the mapped view is added." }, { "code": null, "e": 1187, "s": 1151, "text": "As Specified in the use case below:" }, { "code": null, "e": 1471, "s": 1187,...
postqueue - Unix, Linux Command
postqueue [-v] [-c config_dir] -f postqueue [-v] [-c config_dir] -p postqueue [-v] [-c config_dir] -s site The following options are recognized: This option implements the traditional "sendmail -q" command, by contacting the Postfix qmgr(8) daemon. Warning: flushing undeliverable mail frequently will result in ...
[ { "code": null, "e": 10687, "s": 10577, "text": "postqueue [-v] [-c config_dir] -f\n\npostqueue [-v] [-c config_dir] -p\n\npostqueue [-v] [-c config_dir] -s site\n" }, { "code": null, "e": 10727, "s": 10687, "text": "\nThe following options are recognized:\n" }, { "code":...
Java Create and Write To Files
To create a file in Java, you can use the createNewFile() method. This method returns a boolean value: true if the file was successfully created, and false if the file already exists. Note that the method is enclosed in a try...catch block. This is necessary because it throws an IOException if an error occurs (if th...
[ { "code": null, "e": 364, "s": 0, "text": "To create a file in Java, you can use the createNewFile() method. This method returns a \nboolean value: true if the file was successfully created, and false if the file \nalready exists. Note that the method is enclosed in a try...catch \nblock. This is ne...
Tryit Editor v3.7
Tryit: class in JavaScript
[]
Count Palindrome Sub-Strings of a String | Practice | GeeksforGeeks
Given a string, the task is to count all palindromic sub-strings present in it. Length of palindrome sub-string must be greater than or equal to 2. Example Input N = 5 str = "abaab" Output 3 Explanation: All palindrome substring are : "aba" , "aa" , "baab" Example Input N = 7 str = "abbaeae" Output 4 Explanation: All ...
[ { "code": null, "e": 387, "s": 238, "text": "Given a string, the task is to count all palindromic sub-strings present in it. Length of palindrome sub-string must be greater than or equal to 2. " }, { "code": null, "e": 395, "s": 387, "text": "Example" }, { "code": null, ...
How To Tune HDBSCAN | by Charles Frenzel | Towards Data Science
Clustering is a very hard problem because there is never truly a ‘right’ answer when labels do not exist. This is compounded by techniques with various assumptions in place. If a technique is run incorrectly, violating an assumption, this leads to incorrect (dead wrong) results. In this blogpost, we will delve a bit in...
[ { "code": null, "e": 277, "s": 171, "text": "Clustering is a very hard problem because there is never truly a ‘right’ answer when labels do not exist." }, { "code": null, "e": 451, "s": 277, "text": "This is compounded by techniques with various assumptions in place. If a techniq...
How to remove event handlers in JavaScript?
Javascript provides removeEventListener() method to remove event handlers. An event is handled through addEvenetListener() method. The removeEventListener() method removes event handlers that have been attached with that addEventListener() method. Live Demo <html> <body> <h3 id="add">Hover me </h3> <p id="remove"...
[ { "code": null, "e": 1310, "s": 1062, "text": "Javascript provides removeEventListener() method to remove event handlers. An event is handled through addEvenetListener() method. The removeEventListener() method removes event handlers that have been attached with that addEventListener() method." },...
Multiply Strings in C++
Suppose we have two numbers as a string. We have to multiply them and return the result also in a string. So if the numbers are “26” and “12”, then the result will be “312” To solve this, we will follow these steps − Taking two arguments x and y it indicates x divides y if x < -Infinity and y = 1, then return infinity ...
[ { "code": null, "e": 1235, "s": 1062, "text": "Suppose we have two numbers as a string. We have to multiply them and return the result also in a string. So if the numbers are “26” and “12”, then the result will be “312”" }, { "code": null, "e": 1279, "s": 1235, "text": "To solve ...
Generate a Random Birthday Wishes using JavaScript
02 Jun, 2021 In this article, we are going to learn how to create a webpage that generates a random Birthday wishes using HTML, CSS, and JavaScript. Approach: HTML Code: In this section, we will create a basic structure of the HTML file i.e. it contain <html>, <head>, <body> tags etc. HTML <!DOCTYPE html><html> <head>...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jun, 2021" }, { "code": null, "e": 164, "s": 28, "text": "In this article, we are going to learn how to create a webpage that generates a random Birthday wishes using HTML, CSS, and JavaScript." }, { "code": null, "e": 17...
Python – Group list by first character of string
30 Jan, 2020 Sometimes, we have a use case in which we need to perform the grouping of strings by various factors, like first letter or any other factor. These type of problems are typical to database queries and hence can occur in web development while programming. This article focuses on one such grouping by first le...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jan, 2020" }, { "code": null, "e": 410, "s": 28, "text": "Sometimes, we have a use case in which we need to perform the grouping of strings by various factors, like first letter or any other factor. These type of problems are typical...
Multiplication of two complex numbers given as strings
14 Jun, 2021 Given two complex numbers in the form of strings. Our task is to print the multiplication of these two complex numbers. Examples: Input : str1 = "1+1i" str2 = "1+1i" Output : "0+2i" Here, (1 + i) * (1 + i) = 1 + i2 + 2 * i = 2i or "0+2i" Input : str1 = "1+-1i" str2 = "1+-1i" Output : "...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2021" }, { "code": null, "e": 172, "s": 52, "text": "Given two complex numbers in the form of strings. Our task is to print the multiplication of these two complex numbers." }, { "code": null, "e": 184, "s": 172...
Python | Ways to find length of list
22 Jun, 2022 List being an integral part of Python day-to-day programming has to be learned by all Python users and having a knowledge of its utility and operations is essential and always a plus. So this article discusses one such utility of finding the no. of elements in a list. Method 1: Naive Method In this method...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Jun, 2022" }, { "code": null, "e": 323, "s": 53, "text": "List being an integral part of Python day-to-day programming has to be learned by all Python users and having a knowledge of its utility and operations is essential and alway...
Socket Programming in C#
10 Sep, 2021 Socket programming is a way of connecting two nodes on a network to communicate with each other. Basically, it is a one-way Client and Server setup where a Client connects, sends messages to the server and the server shows them using socket connection. One socket (node) listens on a particular port at an I...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Sep, 2021" }, { "code": null, "e": 612, "s": 54, "text": "Socket programming is a way of connecting two nodes on a network to communicate with each other. Basically, it is a one-way Client and Server setup where a Client connects, s...
Difference Between next() and hasNext() Method in Java Collections
15 Sep, 2021 In Java, objects are stored dynamically using objects. Now in order to traverse across these objects is done using a for-each loop, iterators, and comparators. Here will be discussing iterators. The iterator interface allows visiting elements in containers one by one which indirectly signifies retrieval of...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Sep, 2021" }, { "code": null, "e": 393, "s": 28, "text": "In Java, objects are stored dynamically using objects. Now in order to traverse across these objects is done using a for-each loop, iterators, and comparators. Here will be di...
Multiple criteria for aggregation on PySpark Dataframe
19 Dec, 2021 In this article, we will discuss how to do Multiple criteria aggregation on PySpark Dataframe. In PySpark, groupBy() is used to collect the identical data into groups on the PySpark DataFrame and perform aggregate functions on the grouped data. So by this we can do multiple aggregations at a time. Syntax:...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Dec, 2021" }, { "code": null, "e": 123, "s": 28, "text": "In this article, we will discuss how to do Multiple criteria aggregation on PySpark Dataframe." }, { "code": null, "e": 328, "s": 123, "text": "In PySpark,...
How to check whether a column value is less than or greater than a certain value in R?
To check whether a column value is less than or greater than a certain value, we can use with function and the output will be a logical vector representing values with TRUE when the condition is satisfied and FALSE when the condition is not satisfied. For example, if we have a column say x of an R data frame df and we ...
[ { "code": null, "e": 1500, "s": 1062, "text": "To check whether a column value is less than or greater than a certain value, we can use with function and the output will be a logical vector representing values with TRUE when the condition is satisfied and FALSE when the condition is not satisfied. F...
Control the Size of the Points in a Scatterplot in R - GeeksforGeeks
23 May, 2021 In this article, we are going to see how to control the size of the points in a scatterplot in R Programming language. We will Control the size of the points in a scatterplot using cex argument of the plot function. In this approach to control the size of the points in a scatterplot, the user needs to call...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n23 May, 2021" }, { "code": null, "e": 25361, "s": 25242, "text": "In this article, we are going to see how to control the size of the points in a scatterplot in R Programming language." }, { "code": null, "e": 25737, ...
How to use regular expressions with TestNG?
We use regular expressions in TestNG to work with a group of test methods that are named with a certain pattern. Testng xml file. <?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name = "Tutorialspoint Test "> <test name = "Test Cycle"> <classes> ...
[ { "code": null, "e": 1175, "s": 1062, "text": "We use regular expressions in TestNG to work with a group of test\nmethods that are named with a certain pattern." }, { "code": null, "e": 1192, "s": 1175, "text": "Testng xml file." }, { "code": null, "e": 1546, "s":...
Repetition in Songs: A Python Tutorial | by Okoh Anita | Towards Data Science
Everyone has heard a song or knows what a song sounds like. I can carelessly say everyone can define a song ...in their own words. Just for the benefit of the doubt, a song (according to Wikipedia) is a single work of music that is typically intended to be sung by the human voice with distinct and fixed pitches and pat...
[ { "code": null, "e": 592, "s": 172, "text": "Everyone has heard a song or knows what a song sounds like. I can carelessly say everyone can define a song ...in their own words. Just for the benefit of the doubt, a song (according to Wikipedia) is a single work of music that is typically intended to b...
You Don’t Always Have to Loop Through Rows in Pandas! | by Byron Dolon | Towards Data Science
I’ve been using Pandas for a while now, but I haven’t always used it correctly. My intuitive approach to perform calculations or edit my data tends to start with this question: How can I loop through (iterate) over my DataFrame to do INSERT_ANY_TASK_HERE? Iterating over rows in a DataFrame may work. In fact, I wrote a ...
[ { "code": null, "e": 348, "s": 171, "text": "I’ve been using Pandas for a while now, but I haven’t always used it correctly. My intuitive approach to perform calculations or edit my data tends to start with this question:" }, { "code": null, "e": 427, "s": 348, "text": "How can I...
Tips, Tricks, Hacks, and Magic: How to Effortlessly Optimize Your Jupyter Notebook | by Anne Bonner | Towards Data Science
The really cool thing about tech is how many people are out there working hard to make your life more fun. Every minute of every day, there are people putting their blood, sweat, and tears into tools that will make your programs, packages, apps, and life run more smoothly. You might, for example, think that once you ha...
[ { "code": null, "e": 446, "s": 172, "text": "The really cool thing about tech is how many people are out there working hard to make your life more fun. Every minute of every day, there are people putting their blood, sweat, and tears into tools that will make your programs, packages, apps, and life ...
Kotlin - Exception Handling
Exception handling is a very important part of a programming language. This technique restricts our application from generating the wrong output at runtime. In this chapter, we will learn how to handle runtime exception in Kotlin. The exceptions in Kotlin is pretty similar to the exceptions in Java. All the exceptions ...
[ { "code": null, "e": 2862, "s": 2425, "text": "Exception handling is a very important part of a programming language. This technique restricts our application from generating the wrong output at runtime. In this chapter, we will learn how to handle runtime exception in Kotlin. The exceptions in Kotl...
C# | Decimal.ToString Method | Set -1 - GeeksforGeeks
29 Mar, 2019 Decimal.ToString() Method is used to convert the numeric value of the current instance to its equivalent string representation using the specified culture-specific format information. There are 4 methods in the overload list of this method as follows: ToString() Method ToString(IFormatProvider) Method ToSt...
[ { "code": null, "e": 24796, "s": 24768, "text": "\n29 Mar, 2019" }, { "code": null, "e": 25048, "s": 24796, "text": "Decimal.ToString() Method is used to convert the numeric value of the current instance to its equivalent string representation using the specified culture-specific...
Serverless - REST API with DynamoDB
So far, we have learned several concepts related to serverless lambda deployments. Now it is time to look at some examples. In this chapter, we will look at one of the examples officially provided by Serverless. We will be creating, as the name suggests, a REST API. All our lambda functions, as you would have guessed, ...
[ { "code": null, "e": 2727, "s": 2003, "text": "So far, we have learned several concepts related to serverless lambda deployments. Now it is time to look at some examples. In this chapter, we will look at one of the examples officially provided by Serverless. We will be creating, as the name suggests...
A complete guide to AI accelerators for deep learning inference — GPUs, AWS Inferentia and Amazon Elastic Inference | by Shashank Prasanna | Towards Data Science
An AI accelerator is a dedicated processor designed to accelerate machine learning computations. Machine learning, and particularly its subset, deep learning is primarily composed of a large number of linear algebra computations, (i.e. matrix-matrix, matrix-vector operations) and these operations can be easily parallel...
[ { "code": null, "e": 710, "s": 172, "text": "An AI accelerator is a dedicated processor designed to accelerate machine learning computations. Machine learning, and particularly its subset, deep learning is primarily composed of a large number of linear algebra computations, (i.e. matrix-matrix, matr...
FinRL for Quantitative Finance: Tutorial for Portfolio Allocation | by Bruce Yang | Towards Data Science
Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details. This blog is a tutor...
[ { "code": null, "e": 472, "s": 172, "text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking profession...
Python Plotly tutorial - GeeksforGeeks
29 Nov, 2021 Python Plotly Library is an open-source library that can be used for data visualization and understanding data simply and easily. Plotly supports various types of plots like line charts, scatter plots, histograms, cox plots, etc. So you all must be wondering why Plotly over other visualization tools or lib...
[ { "code": null, "e": 24068, "s": 24040, "text": "\n29 Nov, 2021" }, { "code": null, "e": 24403, "s": 24068, "text": "Python Plotly Library is an open-source library that can be used for data visualization and understanding data simply and easily. Plotly supports various types of ...
Reset keys of array elements using PHP ?
To reset keys of array elements using PHP, the code is as follows− Live Demo <?php $arr = array( "p"=>"150", "q"=>"100", "r"=>"120", "s"=>"110"); var_dump ($arr); $res = array_values($arr); var_dump ($res); ?> This will produce the following output− array(4) { ["p"]=> string(3) "150" ["q"]=> st...
[ { "code": null, "e": 1129, "s": 1062, "text": "To reset keys of array elements using PHP, the code is as follows−" }, { "code": null, "e": 1140, "s": 1129, "text": " Live Demo" }, { "code": null, "e": 1285, "s": 1140, "text": "<?php\n $arr = array( \"p\"=>\"...
Objective-C Classes & Objects
The main purpose of Objective-C programming language is to add object orientation to the C programming language and classes are the central feature of Objective-C that support object-oriented programming and are often called user-defined types. A class is used to specify the form of an object and it combines data repre...
[ { "code": null, "e": 2805, "s": 2560, "text": "The main purpose of Objective-C programming language is to add object orientation to the C programming language and classes are the central feature of Objective-C that support object-oriented programming and are often called user-defined types." }, ...
Sentiment Classification with Logistic Regression — Analyzing Yelp Reviews | by Dehao Zhang | Towards Data Science
You just opened up your own business a couple of weeks ago. You want to gauge how customers feel about your products and services, so you go on social media platforms (Twitter, Facebook, etc.) to see what people have said. Whoa! It seems that there are already thousands of posts about your business. You are excited but...
[ { "code": null, "e": 232, "s": 172, "text": "You just opened up your own business a couple of weeks ago." }, { "code": null, "e": 395, "s": 232, "text": "You want to gauge how customers feel about your products and services, so you go on social media platforms (Twitter, Facebook,...
How to create a new data frame for the mean of rows of some columns from an R data frame?
Finding row means help us to identity the average performance of a case if all the variables are of same nature and it is also an easy job. But if some of the columns have different type of data then we have to extract columns for which we want to find the row means. Therefore, we can create a new data frame with row m...
[ { "code": null, "e": 1436, "s": 1062, "text": "Finding row means help us to identity the average performance of a case if all the variables are of same nature and it is also an easy job. But if some of the columns have different type of data then we have to extract columns for which we want to find ...
Python Template String Formatting Method | by Vinicius Monteiro | Towards Data Science
Template string is another method used to format strings in Python. In comparison with %operator, .format() and f-strings, it has a (arguably) simpler syntax and functionality. It’s ideal for internationalization (i18n), and there are some nuances that you may find advantageous—especially when working with regular expr...
[ { "code": null, "e": 509, "s": 172, "text": "Template string is another method used to format strings in Python. In comparison with %operator, .format() and f-strings, it has a (arguably) simpler syntax and functionality. It’s ideal for internationalization (i18n), and there are some nuances that yo...
Coding Neural Network — Parameters’ Initialization | by Imad Dabbura | Towards Data Science
Optimization, in Machine Learning/Deep Learning contexts, is the process of changing the model’s parameters to improve its performance. In other words, it’s the process of finding the best parameters in the predefined hypothesis space to get the best possible performance. There are three kinds of optimization algorithm...
[ { "code": null, "e": 495, "s": 172, "text": "Optimization, in Machine Learning/Deep Learning contexts, is the process of changing the model’s parameters to improve its performance. In other words, it’s the process of finding the best parameters in the predefined hypothesis space to get the best poss...
Data Analysis with Python, R, and SQL | by Soner Yıldırım | Towards Data Science
The data science ecosystem consists of numerous software tools and packages that make our lives easier. Some of them are optimized to perform better and more efficient at certain tasks. However, we have many options for typical data analysis and manipulation tasks. In this article, we will compare Python, R, and SQL wi...
[ { "code": null, "e": 437, "s": 171, "text": "The data science ecosystem consists of numerous software tools and packages that make our lives easier. Some of them are optimized to perform better and more efficient at certain tasks. However, we have many options for typical data analysis and manipulat...
DAX Filter - ISCROSSFILTERED function
Returns TRUE when columnName or another column in the same or related table is being filtered. ISCROSSFILTERED (<columnName>) columnName The name of a column in a table. It cannot be an expression. TRUE or FALSE. A column columnName is said to be cross-filtered when a filter applied to another column in the same tabl...
[ { "code": null, "e": 2096, "s": 2001, "text": "Returns TRUE when columnName or another column in the same or related table is being filtered." }, { "code": null, "e": 2129, "s": 2096, "text": "ISCROSSFILTERED (<columnName>) \n" }, { "code": null, "e": 2140, "s": 2...
Introduction to Matrices in R. Learn how to create matrices and... | by Linda Ngo | Towards Data Science
A matrix is a collection of elements of the same data type (numeric, character, or logical) arranged into a fixed number of rows and columns. A two-dimensional matrix is one that works only with rows and columns. The matrix() function in R creates a matrix. Consider the following example: matrix(1:9, byrow=TRUE, nrow =...
[ { "code": null, "e": 385, "s": 172, "text": "A matrix is a collection of elements of the same data type (numeric, character, or logical) arranged into a fixed number of rows and columns. A two-dimensional matrix is one that works only with rows and columns." }, { "code": null, "e": 462, ...
Automatically add a mask to a profile photo. A face-api.js tutorial: | Towards Data Science
Have you heard? CDC and the Surgeon General now recommends and encourages everyone to wear a mask when going out in public. Unfortunately, there’s still a lot of stigma associated with wearing a mask. “What if people think I’m sick?” “What if they yell at me to stay home?” These thoughts can prevent one from wearing a ...
[ { "code": null, "e": 806, "s": 172, "text": "Have you heard? CDC and the Surgeon General now recommends and encourages everyone to wear a mask when going out in public. Unfortunately, there’s still a lot of stigma associated with wearing a mask. “What if people think I’m sick?” “What if they yell at...
Data Science for Startups: Tracking Data | by Ben Weber | Towards Data Science
Part two of my ongoing series about building a data science discipline at a startup. You can find links to all of the posts in the introduction, and a book based on this series on Amazon. In order to make data-driven decisions at a startup, you need to collect data about how your products are being used. You also need ...
[ { "code": null, "e": 359, "s": 171, "text": "Part two of my ongoing series about building a data science discipline at a startup. You can find links to all of the posts in the introduction, and a book based on this series on Amazon." }, { "code": null, "e": 727, "s": 359, "text":...
How to implement custom JsonAdapter using Gson in Java?
The @JsonAdapter annotation can be used at field or class level to specify the Gson. The TypeAdapter class can be used to convert Java objects to and from JSON. By default, Gson library converts application classes to JSON by using built-in type adapters but we can override it by providing custom type adapters. @Retent...
[ { "code": null, "e": 1375, "s": 1062, "text": "The @JsonAdapter annotation can be used at field or class level to specify the Gson. The TypeAdapter class can be used to convert Java objects to and from JSON. By default, Gson library converts application classes to JSON by using built-in type adapter...
Python - Eliminate Capital Letter Starting words from String - GeeksforGeeks
16 Feb, 2022 Sometimes, while working with Python Strings, we can have a problem in which we need to remove all the words beginning with capital letters. Words that begin with capital letters are proper nouns and their occurrence mean different meaning to the sentence and can be sometimes undesired. Let’s discuss certa...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n16 Feb, 2022" }, { "code": null, "e": 25890, "s": 25537, "text": "Sometimes, while working with Python Strings, we can have a problem in which we need to remove all the words beginning with capital letters. Words that begin with ...
Java Program To Jumble an Array - GeeksforGeeks
24 Nov, 2020 Given an array of size N, and the task is to shuffle the elements of the array or any other permutation. Using Java think of stuffing the array by generating random sequences of the elements present in the array is possible. This Algorithm is called Fisher-Yates Shuffle Algorithm. Fisher–Yates shuffle Algo...
[ { "code": null, "e": 25233, "s": 25205, "text": "\n24 Nov, 2020" }, { "code": null, "e": 25515, "s": 25233, "text": "Given an array of size N, and the task is to shuffle the elements of the array or any other permutation. Using Java think of stuffing the array by generating rando...
GATE | GATE-CS-2006 | Question 26 - GeeksforGeeks
11 Oct, 2021 Which one of the first order predicate calculus statements given below correctly express the followingEnglish statement? Tigers and lions attack if they are hungry or threatened. (A) A(B) B(C) C(D) DAnswer: (D)Explanation: The statement “Tigers and lions attack if they are hungry or threatened” means that...
[ { "code": null, "e": 25633, "s": 25605, "text": "\n11 Oct, 2021" }, { "code": null, "e": 25754, "s": 25633, "text": "Which one of the first order predicate calculus statements given below correctly express the followingEnglish statement?" }, { "code": null, "e": 25813...
Pi(π) in C++ with Examples - GeeksforGeeks
18 Apr, 2020 In this article, we will discuss some of the mathematical function which is used to derived the value of Pi(π) in C++. Method 1: Using acos() function:Approach: The value of Π is calculated using acos() function which returns a numeric value between [-Π, Π].Since using acos(0.0) will return the value for Π...
[ { "code": null, "e": 26001, "s": 25973, "text": "\n18 Apr, 2020" }, { "code": null, "e": 26120, "s": 26001, "text": "In this article, we will discuss some of the mathematical function which is used to derived the value of Pi(π) in C++." }, { "code": null, "e": 26162, ...
Maze With N doors and 1 Key - GeeksforGeeks
04 May, 2022 Given an N * N binary maze where a 0 denotes that the position can be visited and a 1 denotes that the position cannot be visited without a key, the task is to find whether it is possible to visit the bottom-right cell from the top-left cell with only one key along the way. If possible then print “Yes” els...
[ { "code": null, "e": 26229, "s": 26201, "text": "\n04 May, 2022" }, { "code": null, "e": 26550, "s": 26229, "text": "Given an N * N binary maze where a 0 denotes that the position can be visited and a 1 denotes that the position cannot be visited without a key, the task is to fin...
Internal static variable vs. External static variable with Examples in C - GeeksforGeeks
20 Nov, 2019 The static variable may be internal or external depending on the place of declaration. Static variables are stored in initialised data segments. Internal Static Variables: Internal Static variables are defined as those having static variables which are declared inside a function and extends up to the end o...
[ { "code": null, "e": 25477, "s": 25449, "text": "\n20 Nov, 2019" }, { "code": null, "e": 25622, "s": 25477, "text": "The static variable may be internal or external depending on the place of declaration. Static variables are stored in initialised data segments." }, { "cod...
towlower() function in C/C++ - GeeksforGeeks
30 Aug, 2018 The towlower() is a built-in function in C/C++ which converts the given wide character into lowercase. It is defined within the cwctype header file of C++. It is a function in header file , so it is mandatory to use this header file if using this function It is the wide-character equivalent of the tolower(...
[ { "code": null, "e": 25821, "s": 25793, "text": "\n30 Aug, 2018" }, { "code": null, "e": 25977, "s": 25821, "text": "The towlower() is a built-in function in C/C++ which converts the given wide character into lowercase. It is defined within the cwctype header file of C++." }, ...
Java Program to Save a String to a File - GeeksforGeeks
25 Oct, 2021 A demo file on the desktop named ‘gfg.txt’ is used for reference as a local directory on the machine. Creating an empty file before writing a program and give that specific path of that file to the program. Methods: Using writeString() method of Files classUsing write() method of Files classUsing writer() ...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n25 Oct, 2021" }, { "code": null, "e": 25432, "s": 25225, "text": "A demo file on the desktop named ‘gfg.txt’ is used for reference as a local directory on the machine. Creating an empty file before writing a program and give that...
vector::emplace_back in C++ STL - GeeksforGeeks
06 Feb, 2020 Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container. This function is used to insert a new element into the vector container, the new element is added to the end of the vec...
[ { "code": null, "e": 25648, "s": 25620, "text": "\n06 Feb, 2020" }, { "code": null, "e": 25836, "s": 25648, "text": "Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automat...
Python | System hardening and compliance reports using Lynis - GeeksforGeeks
08 Nov, 2021 Lynis is a battle-tested security tool for systems running Linux, macOS, or Unix-based operating systems. It performs an extensive health scan of your systems to support system hardening and compliance testing. The project is open-source software with the GPL license and available since 2007. Since Lynis i...
[ { "code": null, "e": 25723, "s": 25695, "text": "\n08 Nov, 2021" }, { "code": null, "e": 26017, "s": 25723, "text": "Lynis is a battle-tested security tool for systems running Linux, macOS, or Unix-based operating systems. It performs an extensive health scan of your systems to s...
Apache Solr - Indexing Data
In general, indexing is an arrangement of documents or (other entities) systematically. Indexing enables users to locate information in a document. Indexing collects, parses, and stores documents. Indexing collects, parses, and stores documents. Indexing is done to increase the speed and performance of a search query w...
[ { "code": null, "e": 2172, "s": 2024, "text": "In general, indexing is an arrangement of documents or (other entities) systematically. Indexing enables users to locate information in a document." }, { "code": null, "e": 2221, "s": 2172, "text": "Indexing collects, parses, and sto...
T-SQL - String Functions
MS SQL Server String functions can be applied on string value or will return string value or numeric data. Following is the list of String functions with examples. Ascii code value will come as output for a character expression. The following query will give the Ascii code value of a given character. Select ASCII ('wor...
[ { "code": null, "e": 2167, "s": 2060, "text": "MS SQL Server String functions can be applied on string value or will return string value or numeric data." }, { "code": null, "e": 2224, "s": 2167, "text": "Following is the list of String functions with examples." }, { "cod...
Java Program to create a Calculator
To create a calculator with Java Swings, try the following code − import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JT...
[ { "code": null, "e": 1128, "s": 1062, "text": "To create a calculator with Java Swings, try the following code −" }, { "code": null, "e": 6998, "s": 1128, "text": "import java.awt.Color;\nimport java.awt.Container;\nimport java.awt.FlowLayout;\nimport javax.swing.JFrame;\nimport ...
Java Examples - Check equality of two arrays
How to check if two arrays are equal or not? Following example shows how to use equals () method of Arrays to check if two arrays are equal or not. import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { int[] ary = {1,2,3,4,5,6}; int[] ary1 = {1,2,3,4,5,6}...
[ { "code": null, "e": 2113, "s": 2068, "text": "How to check if two arrays are equal or not?" }, { "code": null, "e": 2216, "s": 2113, "text": "Following example shows how to use equals () method of Arrays to check if two arrays are equal or not." }, { "code": null, "e...
What is late binding in C#?
In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time. Dynamic polymorphism is what we call late binding. Dynamic polymorphism is implemented by abstract classes and virtual functions. The following is an example showing an example of dy...
[ { "code": null, "e": 1251, "s": 1062, "text": "In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time. Dynamic polymorphism is what we call late binding." }, { "code": null, "e": 1403, "s": 1251, "t...
C++ program to reverse an array elements (in place)
Suppose we have an array with n different elements. We shall have to reverse the elements present in the array and display them. (Do not print them in reverse order, reverse elements in place). So, if the input is like n = 9 arr = [2,5,6,4,7,8,3,6,4], then the output will be [4,6,3,8,7,4,6,5,2] To solve this, we will f...
[ { "code": null, "e": 1256, "s": 1062, "text": "Suppose we have an array with n different elements. We shall have to reverse the elements present in the array and display them. (Do not print them in reverse order, reverse elements in place)." }, { "code": null, "e": 1358, "s": 1256, ...
Implementing Machine Learning algorithm to detect attacks in IoT traffic | by Abhishek Raghuveer | Towards Data Science
Attack and anomaly detection in the Internet of Things (IoT) infrastructure is a rising concern in the domain of IoT. Due to the increased use of IoT infrastructure, attacks on these infrastructures are also growing exponentially. So there is a need for developing a smart and a secured IoT environment that can detect i...
[ { "code": null, "e": 626, "s": 172, "text": "Attack and anomaly detection in the Internet of Things (IoT) infrastructure is a rising concern in the domain of IoT. Due to the increased use of IoT infrastructure, attacks on these infrastructures are also growing exponentially. So there is a need for d...
Proper Model Selection through Cross Validation | by Günter Röhrich | Nov, 20 | Towards Data Science
In this article, I will outline the basics of cross validation (CV), how it compares to random sampling, how (and if) ensemble learner need to use CV and how we should build models when we only have a few data points. In a previous post, I introduced a sound process to split data in order to reduce the risk of fitting ...
[ { "code": null, "e": 390, "s": 172, "text": "In this article, I will outline the basics of cross validation (CV), how it compares to random sampling, how (and if) ensemble learner need to use CV and how we should build models when we only have a few data points." }, { "code": null, "e": ...
Creating views in MongoDB
To create views in MongoDB, use createView(). Let us create a collection with documents − > db.demo113.insertOne( ... { _id: 1, StudentId: "101", "Details": { Name: "Chris", Age: 21 }, Subject: "MySQL" } ... ); { "acknowledged" : true, "insertedId" : 1 } Display all documents from a collection with the help of find() m...
[ { "code": null, "e": 1152, "s": 1062, "text": "To create views in MongoDB, use createView(). Let us create a collection with documents −" }, { "code": null, "e": 1317, "s": 1152, "text": "> db.demo113.insertOne(\n... { _id: 1, StudentId: \"101\", \"Details\": { Name: \"Chris\", A...
Self-Taught Data Scientist: Showcase Yourself with a Personal Website | by Erdem Isbilen | Towards Data Science
Not having a college degree in data science makes it difficult to convince others of your skills. Not having any job experience makes it even more difficult. I know, this may not seem fair! As you worked hard to develop all those skills by spending countless hours on your computer and figuring out how those mind-wracki...
[ { "code": null, "e": 330, "s": 172, "text": "Not having a college degree in data science makes it difficult to convince others of your skills. Not having any job experience makes it even more difficult." }, { "code": null, "e": 362, "s": 330, "text": "I know, this may not seem fa...
How to add custom ExpectedConditions for Selenium?
We can add custom ExpectedConditions for Selenium webdriver. We require this custom ExpectedConditions when the default expected conditions provided by webdriver are not enough to satisfy some scenarios. The method until is used which is a part of the WebDriverWait class. Here, the ExpectedConditions are used to wait f...
[ { "code": null, "e": 1266, "s": 1062, "text": "We can add custom ExpectedConditions for Selenium webdriver. We require this custom ExpectedConditions when the default expected conditions provided by webdriver are not enough to satisfy some scenarios." }, { "code": null, "e": 1486, "s...
How to create a long multi-line string in Python?
To create multiline strings, instead of using one pair of single/double quotes, we use three pairs. For example, multiline_str = """ My multi-line string """ print multiline_str This will give the output: My multi-line string Note that you cannot interpolate strings using this notation. This notation is also us...
[ { "code": null, "e": 1175, "s": 1062, "text": "To create multiline strings, instead of using one pair of single/double quotes, we use three pairs. For example," }, { "code": null, "e": 1240, "s": 1175, "text": "multiline_str = \"\"\"\nMy\nmulti-line\nstring\n\"\"\"\nprint multili...
R - Switch Statement
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case. The basic syntax for creating a switch statement in R is − switch(expression, case1, case2, case3....) The following rules apply to a switch...
[ { "code": null, "e": 2581, "s": 2402, "text": "A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case." }, { "code": null, "e": 2640, "s": 2581, "text": "The...
Data Structures | Heap | Question 6 - GeeksforGeeks
28 Jun, 2021 What is the content of the array after two delete operations on the correct answer to the previous question?(A) 14,13,12,10,8(B) 14,12,13,8,10(C) 14,13,8,12,10(D) 14,13,12,8,10Answer: (D)Explanation: For Heap trees, deletion of a node includes following two operations. 1) Replace the root with last element...
[ { "code": null, "e": 24425, "s": 24397, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24695, "s": 24425, "text": "What is the content of the array after two delete operations on the correct answer to the previous question?(A) 14,13,12,10,8(B) 14,12,13,8,10(C) 14,13,8,12,10(D) ...
Beware of the Dummy variable trap in pandas | by Parul Pandey | Towards Data Science
Handling categorical variables forms an essential component of a machine learning pipeline. While machine learning algorithms can naturally handle the numerical variables, the same is not valid for their categorical counterparts. Although there are algorithms like LightGBM and Catboost that can inherently handle the ca...
[ { "code": null, "e": 899, "s": 172, "text": "Handling categorical variables forms an essential component of a machine learning pipeline. While machine learning algorithms can naturally handle the numerical variables, the same is not valid for their categorical counterparts. Although there are algori...
C# | Inheritance - GeeksforGeeks
23 Jan, 2019 Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields and methods) of another class. Important terminology: Super Class: The class whose features are inherited is known as super class(or a base class or...
[ { "code": null, "e": 25402, "s": 25374, "text": "\n23 Jan, 2019" }, { "code": null, "e": 25592, "s": 25402, "text": "Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields and ...
Bluetooth - GeeksforGeeks
02 Nov, 2021 It is a Wireless Personal Area Network (WPAN) technology and is used for exchanging data over smaller distances. This technology was invented by Ericson in 1994. It operates in the unlicensed, industrial, scientific and medical (ISM) band at 2.4 GHz to 2.485 GHz. Maximum devices that can be connected at th...
[ { "code": null, "e": 24534, "s": 24506, "text": "\n02 Nov, 2021" }, { "code": null, "e": 25156, "s": 24534, "text": "It is a Wireless Personal Area Network (WPAN) technology and is used for exchanging data over smaller distances. This technology was invented by Ericson in 1994. I...
How to Simulate a Pandemic in Python | by Terence Shin | Towards Data Science
What’s a better time to simulate the spread of a disease than during a global pandemic? I don’t have much more to say — let’s jump right into programming a simple disease simulation. In real life, there are hundreds of factors that affect how fast a contagion spreads, both from person to person and on a broader populat...
[ { "code": null, "e": 355, "s": 172, "text": "What’s a better time to simulate the spread of a disease than during a global pandemic? I don’t have much more to say — let’s jump right into programming a simple disease simulation." }, { "code": null, "e": 669, "s": 355, "text": "In ...
SQL | ALTER (ADD, DROP, MODIFY) - GeeksforGeeks
21 Mar, 2018 ALTER TABLE is used to add, delete/drop or modify columns in the existing table. It is also used to add and drop various constraints on the existing table. ALTER TABLE – ADD ADD is used to add columns into the existing table. Sometimes we may require to add additional information, in that case we do not re...
[ { "code": null, "e": 25209, "s": 25181, "text": "\n21 Mar, 2018" }, { "code": null, "e": 25365, "s": 25209, "text": "ALTER TABLE is used to add, delete/drop or modify columns in the existing table. It is also used to add and drop various constraints on the existing table." }, ...
Check if two enums are equal or not in C# - GeeksforGeeks
28 May, 2019 Enum.Equals(Object) Method is used to check whether the current instance is equal to a specified object or not. This method overrides ValueType.Equals(Object) to define how enumeration members are evaluated for equality. Syntax: public override bool Equals (object obj); Here, obj is an object to compare wi...
[ { "code": null, "e": 24476, "s": 24448, "text": "\n28 May, 2019" }, { "code": null, "e": 24697, "s": 24476, "text": "Enum.Equals(Object) Method is used to check whether the current instance is equal to a specified object or not. This method overrides ValueType.Equals(Object) to d...
Ionic - Checkbox
Ionic checkbox is almost the same as toggle. These two are styled differently but are used for the same purposes. When creating a checkbox form, you need to add the checkbox class name to both label and the input elements. The following example shows two simple checkboxes, one is checked and the other is not. <label cl...
[ { "code": null, "e": 2577, "s": 2463, "text": "Ionic checkbox is almost the same as toggle. These two are styled differently but are used for the same purposes." }, { "code": null, "e": 2774, "s": 2577, "text": "When creating a checkbox form, you need to add the checkbox class na...
JMS - API in Java EE Applications
The JMS API can be used to create, send, receive and read message in the applications and has become integral part of Java EE platform. The Java EE applications use JMS API within EJB (Enterprise Java Beans) and web containers, which apply Java EE platform specification to Java EE components. EJB is an essential part o...
[ { "code": null, "e": 2121, "s": 1827, "text": "The JMS API can be used to create, send, receive and read message in the applications and has become integral part of Java EE platform. The Java EE applications use JMS API within EJB (Enterprise Java Beans) and web containers, which apply Java EE platf...
Animations of Logistic Regression with Python | by Tobias Roeschl | Towards Data Science
This article is about creating animated plots of simple and multiple logistic regression with batch gradient descent in Python. In the end, I will also present a visual explanation of why the cross-entropy cost function is the method of choice to quantify costs in logistic regression. In terms of structure and content,...
[ { "code": null, "e": 1176, "s": 172, "text": "This article is about creating animated plots of simple and multiple logistic regression with batch gradient descent in Python. In the end, I will also present a visual explanation of why the cross-entropy cost function is the method of choice to quantif...
Watir - Working with Browsers
By default, Watir will open chrome browser in-case the browser name is not specified. The required browser drivers are installed along with Watir installation. In case you face any issues working with browsers, install the driver as shown in the Browsers drivers chapter and update the location in PATH variable. In this...
[ { "code": null, "e": 2333, "s": 2020, "text": "By default, Watir will open chrome browser in-case the browser name is not specified. The required browser drivers are installed along with Watir installation. In case you face any issues working with browsers, install the driver as shown in the Browser...
Minimum Enclosing Circle | Set 1 - GeeksforGeeks
17 Sep, 2021 Prerequisites: Equation of circle when three points on the circle are given, Convex HullGiven an array arr[][] containing N points in a 2-D plane with integer coordinates. The task is to find the centre and the radius of the minimum enclosing circle(MEC). A minimum enclosing circle is a circle in which all...
[ { "code": null, "e": 24698, "s": 24670, "text": "\n17 Sep, 2021" }, { "code": null, "e": 25079, "s": 24698, "text": "Prerequisites: Equation of circle when three points on the circle are given, Convex HullGiven an array arr[][] containing N points in a 2-D plane with integer coor...
Comparing SH, BASH, KSH, and ZSH Speed | by Shinichi Okada | Towards Data Science
I often hear and read that Bash is slow. So I spent one weekend checking how slow it is. I used two methods. The first one is ShellBench. The ShellSpec created a benchmark utility for POSIX shell comparison. The second one is the sh-benchmark script created by @satoh_fumiyasu. Read on to find out what I discovered. I u...
[ { "code": null, "e": 450, "s": 172, "text": "I often hear and read that Bash is slow. So I spent one weekend checking how slow it is. I used two methods. The first one is ShellBench. The ShellSpec created a benchmark utility for POSIX shell comparison. The second one is the sh-benchmark script creat...
Android - Studio
You will be delighted, to know that you can start your Android application development on either of the following operating systems − Microsoft® Windows® 10/8/7/Vista/2003 (32 or 64-bit) Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks) GNOME or KDE desktop Second point is that all the required tools to develop Andro...
[ { "code": null, "e": 3741, "s": 3607, "text": "You will be delighted, to know that you can start your Android application development on either of the following operating systems −" }, { "code": null, "e": 3794, "s": 3741, "text": "Microsoft® Windows® 10/8/7/Vista/2003 (32 or 64-...
Create Two Columns with Two Nested Columns in Bootstrap
To create two columns in two nested columns, you can try to run the following code − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bo...
[ { "code": null, "e": 1147, "s": 1062, "text": "To create two columns in two nested columns, you can try to run the following code −" }, { "code": null, "e": 1157, "s": 1147, "text": "Live Demo" }, { "code": null, "e": 1971, "s": 1157, "text": "<!DOCTYPE html>\...
C++ Program To Delete Nodes Which Have A Greater Value On Right Side - GeeksforGeeks
30 Mar, 2022 Given a singly linked list, remove all the nodes which have a greater value on the right side. Examples: Input: 12->15->10->11->5->6->2->3->NULL Output: 15->11->6->3->NULL Explanation: 12, 10, 5 and 2 have been deleted because there is a greater value on the right side. When we examine 12, ...
[ { "code": null, "e": 23785, "s": 23757, "text": "\n30 Mar, 2022" }, { "code": null, "e": 23881, "s": 23785, "text": "Given a singly linked list, remove all the nodes which have a greater value on the right side. " }, { "code": null, "e": 23892, "s": 23881, "te...
Org.Json - JSONException Handling
Utility classes of org.json throws JSONException in case of invalid JSON. Following example shows how to handle JSONException. import org.json.JSONException; import org.json.XML; public class JSONDemo { public static void main(String[] args) { try { //XML tag name should not have space. Stri...
[ { "code": null, "e": 2102, "s": 1975, "text": "Utility classes of org.json throws JSONException in case of invalid JSON. Following example shows how to handle JSONException." }, { "code": null, "e": 2584, "s": 2102, "text": "import org.json.JSONException;\nimport org.json.XML;\n\...
Python - cmp() Method
The cmp() is part of the python standard library which compares two integers. The result of comparison is -1 if the first integer is smaller than second and 1 if the first integer is greater than the second. If both are equal the result of cmp() is zero. Below example illustrates different scenario showing the use of c...
[ { "code": null, "e": 1317, "s": 1062, "text": "The cmp() is part of the python standard library which compares two integers. The result of comparison is -1 if the first integer is smaller than second and 1 if the first integer is greater than the second. If both are equal the result of cmp() is zero...
Swing Animation Effect with CSS
The swing animation effect move or cause to move back and forth or from side to side while suspended or on an axis to an element. Live Demo <html> <head> <style> .animated { background-image: url(/css/images/logo.png); background-repeat: no-repeat; background-positi...
[ { "code": null, "e": 1192, "s": 1062, "text": "The swing animation effect move or cause to move back and forth or from side to side while suspended or on an axis to an element." }, { "code": null, "e": 1202, "s": 1192, "text": "Live Demo" }, { "code": null, "e": 2795,...
Matplotlib.axes.Axes.set_xticks() in Python
19 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. The Axe...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2020" }, { "code": null, "e": 328, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text...
Different Ways to Use Font Awesome Icons in Android
07 Mar, 2021 Icons are symbols that make it easy to understand the User interface for a naive user. There are many icons are available in Material UI by Google UI. But still few icons are not available in the material icons library. FontAwesome is an amazing platform, which provides useful icons which are used in many ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Mar, 2021" }, { "code": null, "e": 581, "s": 28, "text": "Icons are symbols that make it easy to understand the User interface for a naive user. There are many icons are available in Material UI by Google UI. But still few icons are ...
Python Sets
20 Jun, 2022 In Python, a Set is an unordered collection of data types that is iterable, mutable and has no duplicate elements. The order of elements in a set is undefined though it may consist of various elements. The major advantage of using a set, as opposed to a list, is that it has a highly optimized method for ch...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Jun, 2022" }, { "code": null, "e": 418, "s": 52, "text": "In Python, a Set is an unordered collection of data types that is iterable, mutable and has no duplicate elements. The order of elements in a set is undefined though it may c...
JavaScript | Symbol.for() function
29 Oct, 2021 The Symbol.for() is an inbuilt function in JavaScript which is used to search for the given symbol into a runtime-wide symbol registry and if found then it returns the same symbol otherwise it creates a new symbol with the same name of the given symbol into the global symbol registry and returns them. Synt...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Oct, 2021" }, { "code": null, "e": 331, "s": 28, "text": "The Symbol.for() is an inbuilt function in JavaScript which is used to search for the given symbol into a runtime-wide symbol registry and if found then it returns the same sy...
Merry Christmas (Program for Christmas Tree in C)
25 Dec, 2017 Since Christmas is right at the door, its time to celebrate it in the programmer’s way. Lets build a decorative Christmas tree in C. To print a Christmas tree, we are printing pyramids of various sizes just one beneath the other.For the decoration, a random character is printed at each position. Height and...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Dec, 2017" }, { "code": null, "e": 187, "s": 54, "text": "Since Christmas is right at the door, its time to celebrate it in the programmer’s way. Lets build a decorative Christmas tree in C." }, { "code": null, "e": 351,...
ISRO | ISRO CS 2018 | Question 64
20 Nov, 2018 Given √224r = 13r the value of radix r is(A) 10(B) 8(C) 6(D) 5Answer: (D)Explanation: √224r = 13r taking square both sides 2r2 + 2r + 4 = r2 + 6r + 9 = r2 - 4r - 5 = 0 = (r - 5)(r + 1) = 0 r = 5 // since it can't be -1 So, option (D) is correct.Quiz of this Question ISRO Writing code in comment? Please us...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Nov, 2018" }, { "code": null, "e": 114, "s": 28, "text": "Given √224r = 13r the value of radix r is(A) 10(B) 8(C) 6(D) 5Answer: (D)Explanation:" }, { "code": null, "e": 248, "s": 114, "text": "√224r = 13r\ntaking ...
AutoField – Django Models
12 Feb, 2020 According to documentation, An AutoField is an IntegerField that automatically increments according to available IDs. One usually won’t need to use this directly because a primary key field will automatically be added to your model if you don’t specify otherwise. By default, Django gives each model the fol...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Feb, 2020" }, { "code": null, "e": 292, "s": 28, "text": "According to documentation, An AutoField is an IntegerField that automatically increments according to available IDs. One usually won’t need to use this directly because a pri...
Implementation of Blockchain in Java
11 May, 2022 Blockchain is the backbone Technology of Digital CryptoCurrency BitCoin. A Blockchain is a list of records called blocks that are linked together using linked lists and use the cryptographic technique. Each block contains its own digital fingerprint called Hash, the hash of the previous block, a timestamp...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 May, 2022" }, { "code": null, "e": 127, "s": 53, "text": "Blockchain is the backbone Technology of Digital CryptoCurrency BitCoin. " }, { "code": null, "e": 256, "s": 127, "text": "A Blockchain is a list of recor...
DateTime.ToLongDateString() Method in C#
11 Feb, 2019 This method is used to convert the value of the current DateTime object to its equivalent long date string representation. Syntax: public string ToLongDateString (); Return Value: This method returns a string that contains the long date string representation of the current DateTime object. Below programs i...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Feb, 2019" }, { "code": null, "e": 151, "s": 28, "text": "This method is used to convert the value of the current DateTime object to its equivalent long date string representation." }, { "code": null, "e": 194, "s": 1...
Merge Pandas DataFrame with a common column
To merge two Pandas DataFrame with common column, use the merge() function and set the ON parameter as the column name. At first, let us import the pandas library with an alias − import pandas as pd Let us create the 1st DataFrame − dataFrame1 = pd.DataFrame( { "Car": ['BMW', 'Lexus', 'Audi', 'Mustang', 'Bentl...
[ { "code": null, "e": 1307, "s": 1187, "text": "To merge two Pandas DataFrame with common column, use the merge() function and set the ON parameter as the column name." }, { "code": null, "e": 1366, "s": 1307, "text": "At first, let us import the pandas library with an alias −" ...
Spring Boot JPA - Custom methods
We've checked the methods available by default in Repository in JPA Methods chapter. Now let's add a method and test it. Add a method to find an employee by its name. package com.tutorialspoint.repository; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; impo...
[ { "code": null, "e": 2233, "s": 2112, "text": "We've checked the methods available by default in Repository in JPA Methods chapter. Now let's add a method and test it." }, { "code": null, "e": 2279, "s": 2233, "text": "Add a method to find an employee by its name." }, { "...
Python PIL | Image.resize() method
17 Jun, 2021 PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jun, 2021" }, { "code": null, "e": 434, "s": 54, "text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to...
Image Geometric Transformation In Numpy and OpenCV | by Daryl Tan | Towards Data Science
Geometric transformation is an essential image processing techniques that have wide applications. For example, a simple use case would be in computer graphics to simply rescale the graphics content when displaying it on a desktop vs mobile. It could also be applied to projectively warp an image to another image plane. ...
[ { "code": null, "e": 413, "s": 172, "text": "Geometric transformation is an essential image processing techniques that have wide applications. For example, a simple use case would be in computer graphics to simply rescale the graphics content when displaying it on a desktop vs mobile." }, { ...
HTML | DOM attributes Property - GeeksforGeeks
25 Jul, 2019 The attributes property in HTML DOM returns the group of node attributes specified by NamedNodeMap objects. The NamedNodeMap object represents the collection of attribute objects and can be accessed by index number. The index number starts at 0. Syntax: node.attributes Return Value: It returns the NamedNod...
[ { "code": null, "e": 23663, "s": 23635, "text": "\n25 Jul, 2019" }, { "code": null, "e": 23909, "s": 23663, "text": "The attributes property in HTML DOM returns the group of node attributes specified by NamedNodeMap objects. The NamedNodeMap object represents the collection of at...
Bootstrap - Carousel Plugin
The Bootstrap carousel is a flexible, responsive way to add a slider to your site. In addition to being responsive, the content is flexible enough to allow images, iframes, videos, or just about any type of content that you might want. A simple slideshow below shows a generic component for cycling through the elements ...
[ { "code": null, "e": 3567, "s": 3331, "text": "The Bootstrap carousel is a flexible, responsive way to add a slider to your site. In addition to being responsive, the content is flexible enough to allow images, iframes, videos, or just about any type of content that you might want." }, { "co...