title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How do I exclude a specific record in MySQL? | You can exclude a specific record in SQL using not equal to operator(!=). Let us first create a table−
mysql> create table DemoTable
(
Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
ClientName varchar(20),
ClientCountryName varchar(10)
);
Query OK, 0 rows affected (0.64 sec)
Insert records in the table usin... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "You can exclude a specific record in SQL using not equal to operator(!=). Let us first create a table−"
},
{
"code": null,
"e": 1350,
"s": 1165,
"text": "mysql> create table DemoTable\n (\n Id int NOT NULL AUTO_INCREMENT PRIMARY ... |
Transfer Learning with Convolutional Neural Networks in PyTorch | by Will Koehrsen | Towards Data Science | Although Keras is a great library with a simple API for building neural networks, the recent excitement about PyTorch finally got me interested in exploring this library. While I’m one to blindly follow the hype, the adoption by researchers and inclusion in the fast.ai library convinced me there must be something behin... | [
{
"code": null,
"e": 527,
"s": 172,
"text": "Although Keras is a great library with a simple API for building neural networks, the recent excitement about PyTorch finally got me interested in exploring this library. While I’m one to blindly follow the hype, the adoption by researchers and inclusion ... |
JavaFX | Point2D Class - GeeksforGeeks | 30 Jul, 2021
Point2D class is a part of JavaFX. This class defines a 2-dimensional point in space. The Point2D class represents a 2D point by its x, y coordinates. It inherits java.lang.Object class.Constructor of the class:
Point2D(double x, double y): Create a point2D object with specified x and y coordinates.
Comm... | [
{
"code": null,
"e": 23973,
"s": 23945,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 24187,
"s": 23973,
"text": "Point2D class is a part of JavaFX. This class defines a 2-dimensional point in space. The Point2D class represents a 2D point by its x, y coordinates. It inherits ... |
Objective-C Data Types | In the Objective-C programming language, data types refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.
The types in Objective-C can be classified as follows −
Ba... | [
{
"code": null,
"e": 2822,
"s": 2560,
"text": "In the Objective-C programming language, data types refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is inte... |
GATE | GATE-CS-2001 | Question 50 - GeeksforGeeks | 19 Nov, 2018
Consider the circuit given below with initial state Q0 =1, Q1 = Q2 = 0. The state of the circuit is given by the value 4Q2 + 2Q1 + Q0
Which one of the following is the correct state sequence of the circuit?(A) 1,3,4,6,7,5,2(B) 1,2,5,3,7,6,4(C) 1,2,7,3,5,6,4(D) 1,6,5,7,2,3,4Answer: (B)Explanation:
So ans is... | [
{
"code": null,
"e": 24472,
"s": 24444,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 24606,
"s": 24472,
"text": "Consider the circuit given below with initial state Q0 =1, Q1 = Q2 = 0. The state of the circuit is given by the value 4Q2 + 2Q1 + Q0"
},
{
"code": null,
... |
jQuery Effects - Animation | With jQuery, you can create custom animations.
The jQuery animate() method is used to create custom animations.
Syntax:
The required params parameter defines the CSS properties to be animated.
The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or
millis... | [
{
"code": null,
"e": 47,
"s": 0,
"text": "With jQuery, you can create custom animations."
},
{
"code": null,
"e": 112,
"s": 47,
"text": "The jQuery animate() method is used to create custom animations."
},
{
"code": null,
"e": 120,
"s": 112,
"text": "Syntax:"
... |
Polynomial Regression for Non-Linear Data - ML - GeeksforGeeks | 03 Jun, 2020
Non-linear data is usually encountered in daily life. Consider some of the equations of motion as studied in physics.
Projectile Motion: The height of a projectile is calculated as h = -1⁄2 gt2 +ut +ho
Equation of motion under free fall: The distance travelled by an object after falling freely under gravit... | [
{
"code": null,
"e": 24778,
"s": 24750,
"text": "\n03 Jun, 2020"
},
{
"code": null,
"e": 24896,
"s": 24778,
"text": "Non-linear data is usually encountered in daily life. Consider some of the equations of motion as studied in physics."
},
{
"code": null,
"e": 24980,
... |
NULL pointer in C | A null pointer is a pointer which points nothing.
Some uses of the null pointer are:
a) To initialize a pointer variable when that pointer variable isn’t assigned any valid memory address yet.
b) To pass a null pointer to a function argument when we don’t want to pass any valid memory address.
c) To check for null poin... | [
{
"code": null,
"e": 1112,
"s": 1062,
"text": "A null pointer is a pointer which points nothing."
},
{
"code": null,
"e": 1147,
"s": 1112,
"text": "Some uses of the null pointer are:"
},
{
"code": null,
"e": 1255,
"s": 1147,
"text": "a) To initialize a pointer... |
Check if a number is a Krishnamurthy Number or not - GeeksforGeeks | 07 Apr, 2021
A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself. For example 145, sum of factorial of each digits: 1! + 4! + 5! = 1 + 24 + 120 = 145
Examples:
Input : 145
Output : YES
Explanation: 1! + 4! + 5! =
1 + 24 + 120 = 145, which is equal to input,
hence YES.... | [
{
"code": null,
"e": 24716,
"s": 24688,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 24903,
"s": 24716,
"text": "A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself. For example 145, sum of factorial of each digits: 1! + 4! + ... |
Git GitHub Send Pull Request | We have made a lot of changes to our local Git.
Now we push them to our GitHub
fork:
commit the changes:
git push origin
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 16 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 393.96 KiB | 32.83 MiB/... | [
{
"code": null,
"e": 48,
"s": 0,
"text": "We have made a lot of changes to our local Git."
},
{
"code": null,
"e": 86,
"s": 48,
"text": "Now we push them to our GitHub \nfork:"
},
{
"code": null,
"e": 106,
"s": 86,
"text": "commit the changes:"
},
{
"c... |
Rearrange an array in maximum minimum form | Set 1 | 30 Jun, 2022
Given a sorted array of positive integers, rearrange the array alternately i.e first element should be maximum value, second minimum value, third second max, fourth second min and so on.
Examples:
Input: arr[] = {1, 2, 3, 4, 5, 6, 7} Output: arr[] = {7, 1, 6, 2, 5, 3, 4}
Input: arr[] = {1, 2, 3, 4, 5, 6}... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n30 Jun, 2022"
},
{
"code": null,
"e": 242,
"s": 54,
"text": "Given a sorted array of positive integers, rearrange the array alternately i.e first element should be maximum value, second minimum value, third second max, fourth second mi... |
How to create a list with roman number indexing in HTML ? | 18 Aug, 2021
In this article, We are going to create a list with roman number indexing. In HTML, A list is a record of short pieces of information, such as people’s names, usually written or printed with a single thing on each line and ordered in a way that makes a particular thing easy to find.
Approach: There are di... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 313,
"s": 28,
"text": "In this article, We are going to create a list with roman number indexing. In HTML, A list is a record of short pieces of information, such as people’s names, usually written ... |
How to access structure elements using Pointers in C# | 26 Feb, 2019
Unlike C/C++, Structures in C# can have members that are methods, fields, indexers, operator methods, properties or events. The members can have access specifiers as public, private, and internal.Pointers are variables that store the addresses of the same type of variable i.e. an int pointer can store an a... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n26 Feb, 2019"
},
{
"code": null,
"e": 498,
"s": 54,
"text": "Unlike C/C++, Structures in C# can have members that are methods, fields, indexers, operator methods, properties or events. The members can have access specifiers as public, ... |
JSON web token | JWT | 21 Dec, 2021
A JSON web token(JWT) is JSON Object which is used to securely transfer information over the web(between two parties). It can be used for an authentication system and can also be used for information exchange.The token is mainly composed of header, payload, signature. These three parts are separated by dot... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n21 Dec, 2021"
},
{
"code": null,
"e": 701,
"s": 54,
"text": "A JSON web token(JWT) is JSON Object which is used to securely transfer information over the web(between two parties). It can be used for an authentication system and can als... |
How to set the Background color of the Button in C#? | 26 Jun, 2019
A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In Windows form, you are allowed to set the background color of the button with the help of BackColor property. This property is provided by Button class and helps prog... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jun, 2019"
},
{
"code": null,
"e": 447,
"s": 28,
"text": "A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or software. In Windows form, you are allowed to ... |
Measures of Distance in Data Mining | 03 Feb, 2020
Clustering consists of grouping certain objects that are similar to each other, it can be used to decide if two items are similar or dissimilar in their properties.
In a Data Mining sense, the similarity measure is a distance with dimensions describing object features. That means if the distance among two ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n03 Feb, 2020"
},
{
"code": null,
"e": 217,
"s": 52,
"text": "Clustering consists of grouping certain objects that are similar to each other, it can be used to decide if two items are similar or dissimilar in their properties."
},
{... |
Kali Linux – Web Penetration Testing Tools | 17 Dec, 2021
By 2016, there were around 3424971237+ internet users over the world. Being a hub of many users, there comes a responsibility of taking care of the security of these many users. Most of the Internet is the collection of websites or web applications. So in order to prevent these web applications, there is a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 444,
"s": 28,
"text": "By 2016, there were around 3424971237+ internet users over the world. Being a hub of many users, there comes a responsibility of taking care of the security of these many user... |
How to access an object having spaces in the object’s key using JavaScript ? | 17 Sep, 2019
Given an object and the task is to access the object in which key contains spaces. There are few methods to solve this problem which are discussed below:
Approach 1:
Create an object having space separated keys.
Use square bracket notation instead of dot notation to access the property.
Example: This examp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Sep, 2019"
},
{
"code": null,
"e": 182,
"s": 28,
"text": "Given an object and the task is to access the object in which key contains spaces. There are few methods to solve this problem which are discussed below:"
},
{
"code":... |
base64.urlsafe_b64encode(s) in Python | 26 Mar, 2020
With the help of base64.urlsafe_b64encode(s) method, we can encode the string using url and file system safe alphabets into the binary form.
Syntax : base64.urlsafe_b64encode(s)
Return : Return the encoded string.
Example #1 :In this example we can see that by using base64.urlsafe_b64encode(s) method, we a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 169,
"s": 28,
"text": "With the help of base64.urlsafe_b64encode(s) method, we can encode the string using url and file system safe alphabets into the binary form."
},
{
"code": null,
"e... |
Callback using Interfaces in Java | 30 May, 2022
Callback in C/C++ : The mechanism of calling a function from another function is called “callback”. Memory address of a function is represented as ‘function pointer’ in the languages like C and C++. So, the callback is achieved by passing the pointer of function1() to function2().Callback in Java : But the... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 May, 2022"
},
{
"code": null,
"e": 672,
"s": 52,
"text": "Callback in C/C++ : The mechanism of calling a function from another function is called “callback”. Memory address of a function is represented as ‘function pointer’ in the l... |
Apache Spark - Installation | Spark is Hadoop’s sub-project. Therefore, it is better to install Spark into a Linux based system. The following steps show how to install Apache Spark.
Java installation is one of the mandatory things in installing Spark. Try the following command to verify the JAVA version.
$java -version
If Java is already, instal... | [
{
"code": null,
"e": 1924,
"s": 1771,
"text": "Spark is Hadoop’s sub-project. Therefore, it is better to install Spark into a Linux based system. The following steps show how to install Apache Spark."
},
{
"code": null,
"e": 2048,
"s": 1924,
"text": "Java installation is one of t... |
WAP - WML Script | WMLScript (Wireless Markup Language Script) is the client-side scripting language of WML (Wireless Markup Language). A scripting language is similar to a programming language, but is of lighter weight. With WMLScript, the wireless device can do some of the processing and computation. This reduces the number of requests... | [
{
"code": null,
"e": 2158,
"s": 1803,
"text": "WMLScript (Wireless Markup Language Script) is the client-side scripting language of WML (Wireless Markup Language). A scripting language is similar to a programming language, but is of lighter weight. With WMLScript, the wireless device can do some of ... |
How to know if two arrays have the same values in JavaScript? | Let’s say the following are our arrays −
var firstArray=[100,200,400];
var secondArray=[400,100,200];
You can sort both the arrays using the sort() method and use for loop to compare each value as in the below code −
var firstArray=[100,200,400];
var secondArray=[400,100,200];
function areBothArraysEqual(firstArray, se... | [
{
"code": null,
"e": 1103,
"s": 1062,
"text": "Let’s say the following are our arrays −"
},
{
"code": null,
"e": 1164,
"s": 1103,
"text": "var firstArray=[100,200,400];\nvar secondArray=[400,100,200];"
},
{
"code": null,
"e": 1279,
"s": 1164,
"text": "You can ... |
Java - Basic Operators | Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups −
Arithmetic Operators
Relational Operators
Bitwise Operators
Logical Operators
Assignment Operators
Misc Operators
Arithmetic operators are used in mathematical expressions in the same way that... | [
{
"code": null,
"e": 2505,
"s": 2377,
"text": "Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups −"
},
{
"code": null,
"e": 2526,
"s": 2505,
"text": "Arithmetic Operators"
},
{
"code": null,
"... |
Tryit Editor v3.7 | Tryit: Get current position | [] |
Extracting Relations Among Entities Using NLP | by Arun Jagota | Towards Data Science | In this post, we introduce the problem of extracting relations among named entities using NLP. We illustrate this problem with examples of progressively increasing sophistication, and muse, along the way, on ideas towards solving them.
Let’s get started.
Consider these sentences.
John Doe works at Google.Apple is locat... | [
{
"code": null,
"e": 407,
"s": 171,
"text": "In this post, we introduce the problem of extracting relations among named entities using NLP. We illustrate this problem with examples of progressively increasing sophistication, and muse, along the way, on ideas towards solving them."
},
{
"code... |
How to add whatsapp share button on a website ? - GeeksforGeeks | 30 Jul, 2021
WhatsApp is the most popular messaging app. This article describes how you can add WhatsApp share button in your website.
Note: This will work only when website is open in mobile with WhatsApp installed.
Step 1: Design a simple webpage with a hyperlink on it. Sharing will be done when user click on this l... | [
{
"code": null,
"e": 25152,
"s": 25124,
"text": "\n30 Jul, 2021"
},
{
"code": null,
"e": 25274,
"s": 25152,
"text": "WhatsApp is the most popular messaging app. This article describes how you can add WhatsApp share button in your website."
},
{
"code": null,
"e": 2535... |
SQLAlchemy Core - Using Multiple Tables | One of the important features of RDBMS is establishing relation between tables. SQL operations like SELECT, UPDATE and DELETE can be performed on related tables. This section describes these operations using SQLAlchemy.
For this purpose, two tables are created in our SQLite database (college.db). The students table has... | [
{
"code": null,
"e": 2560,
"s": 2340,
"text": "One of the important features of RDBMS is establishing relation between tables. SQL operations like SELECT, UPDATE and DELETE can be performed on related tables. This section describes these operations using SQLAlchemy."
},
{
"code": null,
"... |
Python 3 - Tkinter place() Method | This geometry manager organizes widgets by placing them in a specific position in the parent widget.
widget.place( place_options )
Here is the list of possible options −
anchor − The exact spot of widget other options refer to: may be N, E, S, W, NE, NW, SE, or SW, compass directions indicating the corners and sides o... | [
{
"code": null,
"e": 2441,
"s": 2340,
"text": "This geometry manager organizes widgets by placing them in a specific position in the parent widget."
},
{
"code": null,
"e": 2472,
"s": 2441,
"text": "widget.place( place_options )\n"
},
{
"code": null,
"e": 2511,
"s... |
ES6 - Array Method join() | join() method joins all the elements of an array into a string.
array.join(separator);
separator − Specifies a string to separate each element of the array. If omitted, the array elements are separated with a comma.
separator − Specifies a string to separate each element of the array. If omitted, the array elements... | [
{
"code": null,
"e": 2341,
"s": 2277,
"text": "join() method joins all the elements of an array into a string."
},
{
"code": null,
"e": 2368,
"s": 2341,
"text": "array.join(separator); \n"
},
{
"code": null,
"e": 2497,
"s": 2368,
"text": "separator − Specifi... |
Which packages contain Wrapper class in Java? | Java provides certain classes called wrapper classes in the java.lang package. The objects of these classes wrap primitive datatypes within them. Following is the list of primitive data types and their respective classes −
Wrapper classes in Java belong to the java.lang package, Therefore there is no need to import any... | [
{
"code": null,
"e": 1285,
"s": 1062,
"text": "Java provides certain classes called wrapper classes in the java.lang package. The objects of these classes wrap primitive datatypes within them. Following is the list of primitive data types and their respective classes −"
},
{
"code": null,
... |
Python dictionary items() Method | Python dictionary method items() returns a list of dict's (key, value) tuple pairs
Following is the syntax for items() method −
dict.items()
NA
NA
This method returns a list of tuple pairs.
The following example shows the usage of items() method.
#!/usr/bin/python
dict = {'Name': 'Zara', 'Age': 7}
print "Value : %s"... | [
{
"code": null,
"e": 2328,
"s": 2244,
"text": "Python dictionary method items() returns a list of dict's (key, value) tuple pairs"
},
{
"code": null,
"e": 2373,
"s": 2328,
"text": "Following is the syntax for items() method −"
},
{
"code": null,
"e": 2387,
"s": 2... |
Automate python scripts with AWS Lightsail | by Eric Landstein | Towards Data Science | In my work as a data scientist, I have come to realize how necessary it is to automate any and every aspect of the workflow. When most people hear the words data science, they often think machine learning and AI, but really most of a data scientist’s time is spent on various kinds of work. In this blog I will be focusi... | [
{
"code": null,
"e": 550,
"s": 172,
"text": "In my work as a data scientist, I have come to realize how necessary it is to automate any and every aspect of the workflow. When most people hear the words data science, they often think machine learning and AI, but really most of a data scientist’s time... |
Node.js – forEach() Method | The forEach() method in Node.js is used for iterating over a set of given array items. One can iterate over all the values of the array one-by-one using the forEach array loop.
arrayName.forEach(function)
function − The function takes input for the method that will be executed.
arrayName − Array that will be iterated.
... | [
{
"code": null,
"e": 1239,
"s": 1062,
"text": "The forEach() method in Node.js is used for iterating over a set of given array items. One can iterate over all the values of the array one-by-one using the forEach array loop."
},
{
"code": null,
"e": 1267,
"s": 1239,
"text": "array... |
PostgreSQL - COUNT() Function - GeeksforGeeks | 01 Jun, 2020
The COUNT() function is an aggregate function that enables users to get the number of rows that match a particular requirement of a query.Depending upon the user requirements the COUNT() function can have the following syntaxes:
Syntax: COUNT(*)
Returns: All rows including NULL and Duplicates
Syntax: COUN... | [
{
"code": null,
"e": 28000,
"s": 27972,
"text": "\n01 Jun, 2020"
},
{
"code": null,
"e": 28229,
"s": 28000,
"text": "The COUNT() function is an aggregate function that enables users to get the number of rows that match a particular requirement of a query.Depending upon the user r... |
Advantages and Disadvantages of Function Overloading in C++ - GeeksforGeeks | 23 Mar, 2021
Function overloading is one of the important features of object-oriented programming. It allows users to have more than one function having the same name but different properties. Overloaded functions enable users to supply different semantics for a function, depending on the signature of functions.
Advant... | [
{
"code": null,
"e": 25479,
"s": 25451,
"text": "\n23 Mar, 2021"
},
{
"code": null,
"e": 25780,
"s": 25479,
"text": "Function overloading is one of the important features of object-oriented programming. It allows users to have more than one function having the same name but diffe... |
Data compression in SAP HANA | In SAP HANA, there are various methods and algorithms that you can use to store data in Column based structure- Dictionary Compressed, Run Length Compressed and many more.
In Dictionary Compressed, cells are stored in form of numbers in tables and numeral cells are always performance optimized as compared to characters... | [
{
"code": null,
"e": 1234,
"s": 1062,
"text": "In SAP HANA, there are various methods and algorithms that you can use to store data in Column based structure- Dictionary Compressed, Run Length Compressed and many more."
},
{
"code": null,
"e": 1384,
"s": 1234,
"text": "In Diction... |
CopyOnWriteArrayList in Java - GeeksforGeeks | 05 Feb, 2021
CopyOnWriteArrayList class is introduced in JDK 1.5, which implements the List interface. It is an enhanced version of ArrayList in which all modifications (add, set, remove, etc) are implemented by making a fresh copy. It is found in java.util.concurrent package. It is a data structure created to be used ... | [
{
"code": null,
"e": 23842,
"s": 23814,
"text": "\n05 Feb, 2021"
},
{
"code": null,
"e": 24179,
"s": 23842,
"text": "CopyOnWriteArrayList class is introduced in JDK 1.5, which implements the List interface. It is an enhanced version of ArrayList in which all modifications (add, s... |
How can we implement auto-complete JComboBox in Java?
| A JComboBox is a subclass of JComponent class and it is a combination of a text field and a drop-down list from which the user can choose a value. A JComboBox can generate an ActionListener, ChangeListener, and ItemListener interfaces when the user actions on a combo box.
We can implement auto-complete JComboBox when t... | [
{
"code": null,
"e": 1335,
"s": 1062,
"text": "A JComboBox is a subclass of JComponent class and it is a combination of a text field and a drop-down list from which the user can choose a value. A JComboBox can generate an ActionListener, ChangeListener, and ItemListener interfaces when the user acti... |
How to Create and Modify Properties File Form Java Program in Text and XML Format? - GeeksforGeeks | 21 Dec, 2021
Properties file are a text-oriented key value a pair of contents present in a Java project with .properties extension. Line by line, the key-value pair of contents are present, and they are usually prepared by means of notepad, Wordpad, EditPlus, etc., Properties files are usually helpful to store importan... | [
{
"code": null,
"e": 24090,
"s": 24062,
"text": "\n21 Dec, 2021"
},
{
"code": null,
"e": 24504,
"s": 24090,
"text": "Properties file are a text-oriented key value a pair of contents present in a Java project with .properties extension. Line by line, the key-value pair of contents... |
C++ Program for GCD of more than two (or array) numbers? | The common divisor of two numbers are the numbers that are divisors of both of them.
For example, the divisors of 12 are 1, 2, 3, 4, 6, 12. The divisors of 18 are 1, 2, 3, 6, 9, 18. Thus, the common divisors of 12 and 18 are 1, 2, 3, 6. The greatest among these is, perhaps unsurprisingly, called the of 12 and 18. The u... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "The common divisor of two numbers are the numbers that are divisors of both of them."
},
{
"code": null,
"e": 1509,
"s": 1147,
"text": "For example, the divisors of 12 are 1, 2, 3, 4, 6, 12. The divisors of 18 are 1, 2, 3, 6, 9, 18. ... |
Program to find Kth bit in n-th binary string using Python | Suppose we have two positive values n and k, now we can make a binary string S_n by using following rules −
S_1 = 0
S_1 = 0
S_i = S_i-1 concatenate "1" concatenate reverse(invert(S_i-1)) for i > 1
S_i = S_i-1 concatenate "1" concatenate reverse(invert(S_i-1)) for i > 1
Here reverse(x) returns the reversed string x, and... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "Suppose we have two positive values n and k, now we can make a binary string S_n by using following rules −"
},
{
"code": null,
"e": 1178,
"s": 1170,
"text": "S_1 = 0"
},
{
"code": null,
"e": 1186,
"s": 1178,
"tex... |
Object to array - JavaScript | Suppose, we have an object of key value pairs like this −
const obj = {
name: "Vikas",
age: 45,
occupation: "Frontend Developer",
address: "Tilak Nagar, New Delhi",
experience: 23,
salary: "98000"
};
We are required to write a function that takes in the object and returns an array of arrays with each ... | [
{
"code": null,
"e": 1120,
"s": 1062,
"text": "Suppose, we have an object of key value pairs like this −"
},
{
"code": null,
"e": 1280,
"s": 1120,
"text": "const obj = {\n name: \"Vikas\",\n age: 45,\n occupation: \"Frontend Developer\",\n address: \"Tilak Nagar, New Delh... |
Find Two Missing Numbers | Set 1 (An Interesting Linear Time Solution) - GeeksforGeeks | 26 Apr, 2021
Given an array of n unique integers where each element in the array is in the range [1, n]. The array has all distinct elements and the size of the array is (n-2). Hence Two numbers from the range are missing from this array. Find the two missing numbers.Examples :
Input : arr[] = {1, 3, 5, 6}
Output : ... | [
{
"code": null,
"e": 25045,
"s": 25017,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 25313,
"s": 25045,
"text": "Given an array of n unique integers where each element in the array is in the range [1, n]. The array has all distinct elements and the size of the array is (n-2).... |
Working with Missing Data in Machine Learning | by Boyan Angelov | Towards Data Science | Missing values are representative of the messiness of real world data. There can be a multitude of reasons why they occur — ranging from human errors during data entry, incorrect sensor readings, to software bugs in the data processing pipeline.
The normal reaction is frustration. Missing data are probably the most wid... | [
{
"code": null,
"e": 418,
"s": 172,
"text": "Missing values are representative of the messiness of real world data. There can be a multitude of reasons why they occur — ranging from human errors during data entry, incorrect sensor readings, to software bugs in the data processing pipeline."
},
{... |
Symfony - Forms | Symfony provides various in-built tags to handle HTML forms easily and securely. Symfony’s Form component performs form creation and validation process. It connects the model and the view layer. It provides a set of form elements to create a full-fledged html form from pre-defined models. This chapter explains about Fo... | [
{
"code": null,
"e": 2538,
"s": 2203,
"text": "Symfony provides various in-built tags to handle HTML forms easily and securely. Symfony’s Form component performs form creation and validation process. It connects the model and the view layer. It provides a set of form elements to create a full-fledge... |
How null is converted to String in JavaScript? | Use the String() method in JavaScript to convert to String.
You can try to run the following code to learn how to convert null to String in JavaScript.
Live Demo
<!DOCTYPE html>
<html>
<body>
<p>Convert null to String</p>
<script>
var myVal = null;
document.write("String: " + String(myV... | [
{
"code": null,
"e": 1122,
"s": 1062,
"text": "Use the String() method in JavaScript to convert to String."
},
{
"code": null,
"e": 1214,
"s": 1122,
"text": "You can try to run the following code to learn how to convert null to String in JavaScript."
},
{
"code": null,
... |
How to create table header in HTML? | To create table header in HTML, use the <th>...</th> tag. A table header tag is surrounded by the table row <tr>...</tr>. The <tr> tag is surrounded by the <table> tag. A table consist of a rows and columns, which can be set using one or more <tr>, <th>, and <td> elements. Use the style attribute to add CSS properties ... | [
{
"code": null,
"e": 1416,
"s": 1062,
"text": "To create table header in HTML, use the <th>...</th> tag. A table header tag is surrounded by the table row <tr>...</tr>. The <tr> tag is surrounded by the <table> tag. A table consist of a rows and columns, which can be set using one or more <tr>, <th>... |
A Practical Guide for Exploratory Data Analysis: Movies on Streaming Platforms | by Soner Yıldırım | Towards Data Science | Exploring movies on Netflix, Hulu, Prime Video, and Disney+.
We live in the era of big data. We can collect lots of data which allows to infer meaningful results and make informed business decisions. To get the most out of data, a robust and thorough data analysis process is needed. In this post, we will try to explore... | [
{
"code": null,
"e": 232,
"s": 171,
"text": "Exploring movies on Netflix, Hulu, Prime Video, and Disney+."
},
{
"code": null,
"e": 581,
"s": 232,
"text": "We live in the era of big data. We can collect lots of data which allows to infer meaningful results and make informed busine... |
Assert Statements in Dart - GeeksforGeeks | 20 Jul, 2020
As a programmer, it is very necessary to make an errorless code is very necessary and to find the error is very difficult in a big program. Dart provides the programmer with assert statements to check for the error. The assert statement is a useful tool to debug the code and it uses boolean condition for t... | [
{
"code": null,
"e": 24004,
"s": 23976,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 24474,
"s": 24004,
"text": "As a programmer, it is very necessary to make an errorless code is very necessary and to find the error is very difficult in a big program. Dart provides the progr... |
Bundle in Android with Example - GeeksforGeeks | 05 May, 2021
It is known that Intents are used in Android to pass to the data from one activity to another. But there is one another way, that can be used to pass the data from one activity to another in a better way and less code space ie by using Bundles in Android. Android Bundles are generally used for passing data... | [
{
"code": null,
"e": 24480,
"s": 24452,
"text": "\n05 May, 2021"
},
{
"code": null,
"e": 25270,
"s": 24480,
"text": "It is known that Intents are used in Android to pass to the data from one activity to another. But there is one another way, that can be used to pass the data from... |
Find height of a special binary tree whose leaf nodes are connected - GeeksforGeeks | 31 Mar, 2022
Given a special binary tree whose leaf nodes are connected to form a circular doubly linked list, find its height.
For example,
1
/ \
2 3
/ \
4 5
/
6
In the above binary tree, 6, 5 and 3 are leaf nodes and they form a circular doubly linked list. Here, th... | [
{
"code": null,
"e": 26295,
"s": 26267,
"text": "\n31 Mar, 2022"
},
{
"code": null,
"e": 26410,
"s": 26295,
"text": "Given a special binary tree whose leaf nodes are connected to form a circular doubly linked list, find its height."
},
{
"code": null,
"e": 26424,
... |
How to Convert XML data into JSON using PHP ? - GeeksforGeeks | 13 Apr, 2021
In this article, we are going to see how to convert XML data into JSON format using PHP.
Requirements:
XAMPP Server
Introduction: PHP stands for hypertext preprocessor, which is used to create dynamic web pages. It also parses the XML and JSON data. XML stands for an extensible markup language in which we ... | [
{
"code": null,
"e": 32761,
"s": 32733,
"text": "\n13 Apr, 2021"
},
{
"code": null,
"e": 32850,
"s": 32761,
"text": "In this article, we are going to see how to convert XML data into JSON format using PHP."
},
{
"code": null,
"e": 32864,
"s": 32850,
"text": "R... |
How do you get the length of a string in JQuery? - GeeksforGeeks | 12 Sep, 2019
The task is to get the length of a string with the help of JQuery. We can find the length of the string by the jQuery .length property. The length property contains the number of elements in the jQuery object. Thus it can be used to get or find out the number of characters in a string.
Syntax:
$(selector).... | [
{
"code": null,
"e": 26376,
"s": 26348,
"text": "\n12 Sep, 2019"
},
{
"code": null,
"e": 26663,
"s": 26376,
"text": "The task is to get the length of a string with the help of JQuery. We can find the length of the string by the jQuery .length property. The length property contain... |
Constructor Chaining In Java with Examples - GeeksforGeeks | 16 Aug, 2021
Prerequisite – Constructors in Java Constructor chaining is the process of calling one constructor from another constructor with respect to current object. Constructor chaining can be done in two ways:
Within same class: It can be done using this() keyword for constructors in same class
From base class: ... | [
{
"code": null,
"e": 30305,
"s": 30277,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 30509,
"s": 30305,
"text": "Prerequisite – Constructors in Java Constructor chaining is the process of calling one constructor from another constructor with respect to current object. Constru... |
How to use a variable for a key in a JavaScript object literal? - GeeksforGeeks | 31 Oct, 2019
In ES5 and earlier, you could not use a variable as a property name inside an object literal. The only option you had was to create the object literal, assign the variable property name with value and pass the resulting object to the animate method. ES6 defines ‘ComputedPropertyName’ as part of the grammar... | [
{
"code": null,
"e": 24778,
"s": 24750,
"text": "\n31 Oct, 2019"
},
{
"code": null,
"e": 25237,
"s": 24778,
"text": "In ES5 and earlier, you could not use a variable as a property name inside an object literal. The only option you had was to create the object literal, assign the ... |
Recursion in Scala - GeeksforGeeks | 29 Mar, 2019
Recursion is a method which breaks the problem into smaller sub problems and calls itself for each of the problems. That is, it simply means function calling itself. We can use recursion instead of loops. Recursion avoids mutable state associated with loops. Recursion is quite common in functional programm... | [
{
"code": null,
"e": 26173,
"s": 26145,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 26646,
"s": 26173,
"text": "Recursion is a method which breaks the problem into smaller sub problems and calls itself for each of the problems. That is, it simply means function calling itsel... |
Program to find all types of Matrix - GeeksforGeeks | 13 Mar, 2022
Given the dimension of the matrix R(rows) * C(column) the task is to find which type of matrix is representing by the given dimension. Examples:
Input : R = 1 C = 0
Output : Row Matrix
Input : R = 4 C = 5
Output : Horizontal Matrix
Row Matrix : When R = 1 and C = 0 then the matrix represent Row Ma... | [
{
"code": null,
"e": 24922,
"s": 24894,
"text": "\n13 Mar, 2022"
},
{
"code": null,
"e": 25069,
"s": 24922,
"text": "Given the dimension of the matrix R(rows) * C(column) the task is to find which type of matrix is representing by the given dimension. Examples: "
},
{
"c... |
Number of Closed Islands in C++ | Suppose we have a 2D grid consists of 0s (as land) and 1s (as water). An island is a maximal 4- directionally connected group of 0s. A closed island is an island totally surrounded by 1s. We have to find the number of closed islands. So if the grid is like
So the output will be 2. There are two islands, that are comple... | [
{
"code": null,
"e": 1319,
"s": 1062,
"text": "Suppose we have a 2D grid consists of 0s (as land) and 1s (as water). An island is a maximal 4- directionally connected group of 0s. A closed island is an island totally surrounded by 1s. We have to find the number of closed islands. So if the grid is l... |
p5.js | lights() Function - GeeksforGeeks | 13 Jan, 2022
The lights() function in p5.js is used to set the default ambient and directional light in the scene. The default ambient light used is ambientLight(128, 128, 128) and the directional light is directionalLight(128, 128, 128, 0, 0, -1). This function can be used to quickly add default lights in the scene.Th... | [
{
"code": null,
"e": 24087,
"s": 24059,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 24508,
"s": 24087,
"text": "The lights() function in p5.js is used to set the default ambient and directional light in the scene. The default ambient light used is ambientLight(128, 128, 128)... |
Logistic Regression — Idea and Application | by Tanveer Hurra | Towards Data Science | This article will try to:
Discuss the idea behind logistic regression
Explain it further through an example
What you are already supposed to know
Basic Probability Theory
Linear Regression
Sigmoid function
You are given a problem of predicting the gender of a person based on his/her height. To start with you are provid... | [
{
"code": null,
"e": 198,
"s": 172,
"text": "This article will try to:"
},
{
"code": null,
"e": 242,
"s": 198,
"text": "Discuss the idea behind logistic regression"
},
{
"code": null,
"e": 280,
"s": 242,
"text": "Explain it further through an example"
},
{... |
GATE | GATE-CS-2004 | Question 48 - GeeksforGeeks | 28 Jun, 2021
Consider two processes P1 and P2 accessing the shared variables X and Y protected by two binary semaphores SX and SY respectively, both initialized to 1. P and V denote the usual semaphone operators, where P decrements the semaphore value, and V increments the semaphore value. The pseudo-code of P1 and P2 ... | [
{
"code": null,
"e": 24540,
"s": 24512,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24863,
"s": 24540,
"text": "Consider two processes P1 and P2 accessing the shared variables X and Y protected by two binary semaphores SX and SY respectively, both initialized to 1. P and V d... |
Filter an array containing objects based on another array containing objects in JavaScript | Suppose we have two arrays of objects like these −
const arr1 = [{id:'1',name:'A'},{id:'2',name:'B'},{id:'3',name:'C'},{id:'4',name:'D'}];
const arr2 = [{id:'1',name:'A',state:'healthy'},{id:'3',name:'C',state:'healthy'}];
We are required to write a JavaScript function that takes in two such arrays. Our function should... | [
{
"code": null,
"e": 1113,
"s": 1062,
"text": "Suppose we have two arrays of objects like these −"
},
{
"code": null,
"e": 1285,
"s": 1113,
"text": "const arr1 = [{id:'1',name:'A'},{id:'2',name:'B'},{id:'3',name:'C'},{id:'4',name:'D'}];\nconst arr2 = [{id:'1',name:'A',state:'heal... |
Stable Selection Sort | 29 Apr, 2021
A sorting algorithm is said to be stable if two objects with equal or same keys appear in the same order in sorted output as they appear in the input array to be sorted.Any comparison based sorting algorithm which is not stable by nature can be modified to be stable by changing the key comparison operation... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Apr, 2021"
},
{
"code": null,
"e": 559,
"s": 52,
"text": "A sorting algorithm is said to be stable if two objects with equal or same keys appear in the same order in sorted output as they appear in the input array to be sorted.Any c... |
What is conversion constructor in C++? | 01 Sep, 2021
Pre-requisite: Type Conversion in C++ and Use of explicit keyword in C++
In C++, if a class has a constructor which can be called with a single argument, then this constructor becomes conversion constructor because such a constructor allows automatic conversion to the class being constructed.
Example
C... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 128,
"s": 54,
"text": "Pre-requisite: Type Conversion in C++ and Use of explicit keyword in C++ "
},
{
"code": null,
"e": 350,
"s": 128,
"text": "In C++, if a class has a constr... |
Check if a string contains only alphabets in Java | 23 May, 2022
Given a string, the task is to write a Java program to check whether the string contains only alphabets or not. If so, then print true, otherwise false.
Examples:
Input: GeeksforGeeksOutput: trueExplanation: The given string contains only alphabets so the output is true.
Input: GeeksforGeeks2020Output: fal... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 May, 2022"
},
{
"code": null,
"e": 181,
"s": 28,
"text": "Given a string, the task is to write a Java program to check whether the string contains only alphabets or not. If so, then print true, otherwise false."
},
{
"code": ... |
How to pre populate database in Android using SQLite Database | 01 May, 2020
Often, there is a need to initiate an Android app with an already existing database. This is called prepopulating a database. In this article, we will see how to pre-populate database in Android using SQLite Database. The database used in this example can be downloaded as Demo Database.
Approach:
Add the s... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 May, 2020"
},
{
"code": null,
"e": 342,
"s": 54,
"text": "Often, there is a need to initiate an Android app with an already existing database. This is called prepopulating a database. In this article, we will see how to pre-populate... |
Stack.Synchronized() Method in C# | 04 Feb, 2019
This method(comes under System.Collections Namespace) is used to return a synchronized (thread safe) wrapper for the Stack. To guarantee the thread safety of the Stack, all operations must be done through this wrapper.
Syntax:
public static System.Collections.Stack Synchronized (System.Collections.Stack st... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Feb, 2019"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "This method(comes under System.Collections Namespace) is used to return a synchronized (thread safe) wrapper for the Stack. To guarantee the thread safety of the Stack, all op... |
Number of visible boxes after putting one inside another | 06 May, 2021
Given N boxes and their size in an array. You are allowed to keep a box inside another box only if the box in which it is held is empty and the size of the box is at least twice as large as the size of the box. The task is to find minimum number of visible boxes.Examples –
Input : arr[] = { 1, 3, 4, 5 }
... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 330,
"s": 54,
"text": "Given N boxes and their size in an array. You are allowed to keep a box inside another box only if the box in which it is held is empty and the size of the box is at least tw... |
Scala Lists | 14 Mar, 2019
A list is a collection which contains immutable data. List represents linked list in Scala. The Scala List class holds a sequenced, linear list of items.Following are the point of difference between lists and array in Scala:
Lists are immutable whereas arrays are mutable in Scala.
Lists represents a linked... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Mar, 2019"
},
{
"code": null,
"e": 253,
"s": 28,
"text": "A list is a collection which contains immutable data. List represents linked list in Scala. The Scala List class holds a sequenced, linear list of items.Following are the poin... |
Starting off in Bioinformatics — Turning DNA sequences into Protein sequences | by Vijini Mallawaarachchi | Towards Data Science | In this article, we will be learning about proteins and how to convert a DNA sequence into a protein sequence. I suggest you read my previous article on DNA nuleotides and strands if you missed it, so this article will make more sense as you read. So let’s move on to proteins.
Proteins are large chainlike molecules whi... | [
{
"code": null,
"e": 450,
"s": 172,
"text": "In this article, we will be learning about proteins and how to convert a DNA sequence into a protein sequence. I suggest you read my previous article on DNA nuleotides and strands if you missed it, so this article will make more sense as you read. So let’... |
How to add a new column to represent the percentage for groups in an R data frame? | In data analysis, we often need to find the percentage of values that exists in a data group. This helps us to understand which value occurs frequently and which one has low frequency. Also, plotting of percentages through pie charts can be done and that gives a better view of the data to the readers. Adding a new colu... | [
{
"code": null,
"e": 1519,
"s": 1062,
"text": "In data analysis, we often need to find the percentage of values that exists in a data group. This helps us to understand which value occurs frequently and which one has low frequency. Also, plotting of percentages through pie charts can be done and tha... |
Longest Uncommon Subsequence | 09 Jun, 2021
Given two strings, find the length of longest uncommon subsequence of the two strings. The longest uncommon subsequence is defined as the longest subsequence of one of these strings which is not a subsequence of other strings. Examples:
Input : "abcd", "abc"
Output : 4
The longest subsequence is 4 becaus... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n09 Jun, 2021"
},
{
"code": null,
"e": 291,
"s": 52,
"text": "Given two strings, find the length of longest uncommon subsequence of the two strings. The longest uncommon subsequence is defined as the longest subsequence of one of these ... |
Bootstrap 4 .d-*-flex class | Use the .d-*-flex class in Bootstrap to set a flexbox container on a screen size as shown below −
<div class="d-flex bg-primary">d-flex</div>
<span class="d-sm-flex bg-warning">d-sm-flex</span>
<span class="d-md-flex bg-info">d-md-flex</span>
<span class="d-lg-flex bg-success">d-lg-flex</span>
Above the flex is set for... | [
{
"code": null,
"e": 1285,
"s": 1187,
"text": "Use the .d-*-flex class in Bootstrap to set a flexbox container on a screen size as shown below −"
},
{
"code": null,
"e": 1482,
"s": 1285,
"text": "<div class=\"d-flex bg-primary\">d-flex</div>\n<span class=\"d-sm-flex bg-warning\">... |
Relation Schema in DBMS | 06 Aug, 2021
Relation schema defines the design and structure of the relation like it consists of the relation name, set of attributes/field names/column names. every attribute would have an associated domain.
There is a student named Geeks, she is pursuing B.Tech, in the 4th year, and belongs to IT department (depart... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 251,
"s": 53,
"text": "Relation schema defines the design and structure of the relation like it consists of the relation name, set of attributes/field names/column names. every attribute would have... |
Python – Import module from different directory | 28 Apr, 2021
While working on big projects we may confront a situation where we want to import a module from a different directory. But for some reason, the module may not be imported correctly. Now don’t worry if your module is not imported correctly. In this article, we will discuss ways to import a module from anoth... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Apr, 2021"
},
{
"code": null,
"e": 375,
"s": 54,
"text": "While working on big projects we may confront a situation where we want to import a module from a different directory. But for some reason, the module may not be imported cor... |
MultiMap in Java Guava | 10 Jul, 2020
Introduction : A Multimap is a general way to associate keys with arbitrarily many values. Guava’s Multimap framework makes it easy to handle a mapping from keys to multiple values. There are two ways to think of a Multimap conceptually :1) As a collection of mappings from single keys to single values.
a -... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 358,
"s": 54,
"text": "Introduction : A Multimap is a general way to associate keys with arbitrarily many values. Guava’s Multimap framework makes it easy to handle a mapping from keys to multiple ... |
Angular Material - Tabs | The md-tabs and md-tab Angular directives are used to show tabs in the applcation. md-tabs is the grouping container for md-tab elements.
The following table lists out the parameters and description of the different attributes of md-tabs.
md-selected
Index of the active/selected tab.
md-no-ink
If present, disables the ... | [
{
"code": null,
"e": 2462,
"s": 2324,
"text": "The md-tabs and md-tab Angular directives are used to show tabs in the applcation. md-tabs is the grouping container for md-tab elements."
},
{
"code": null,
"e": 2563,
"s": 2462,
"text": "The following table lists out the parameters... |
Sorting Hash in Perl | 28 Dec, 2018
Prerequisite: Perl | Hashes
Set of key/value pair is called a Hash. Each key in a hash structure are unique and of type strings. The values associated with these keys are scalar. These values can either be a number, string or a reference. A Hash is declared using my keyword. Let us consider an example to u... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Dec, 2018"
},
{
"code": null,
"e": 56,
"s": 28,
"text": "Prerequisite: Perl | Hashes"
},
{
"code": null,
"e": 378,
"s": 56,
"text": "Set of key/value pair is called a Hash. Each key in a hash structure are unique ... |
Object toString() Method in Java | 04 May, 2022
Object class is present in java.lang package. Every class in Java is directly or indirectly derived from the Object class, henceforth it is a child of the Object class. If a class does not extend any other class then it is a direct child class of Object and if extends another class then it is indirectly de... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 May, 2022"
},
{
"code": null,
"e": 436,
"s": 52,
"text": "Object class is present in java.lang package. Every class in Java is directly or indirectly derived from the Object class, henceforth it is a child of the Object class. If a ... |
std::count() in C++ STL | 22 Sep, 2019
std::count() returns number of occurrences of an element in a given range. Returns the number of elements in the range [first,last) that compare equal to val.
// Returns count of occurrences of value in// range [begin, end]int count(Iterator first, Iterator last, T &val)
first, last : Input iterators to th... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Sep, 2019"
},
{
"code": null,
"e": 211,
"s": 52,
"text": "std::count() returns number of occurrences of an element in a given range. Returns the number of elements in the range [first,last) that compare equal to val."
},
{
"... |
Introduction to Data Structures | 28 Jun, 2022
WHAT IS DATA :
Data is the collection of different numbers, symbols, and alphabets to represent information.
WHAT IS DATA STRUCTURE :
A data structure is a group of data elements that provides the easiest way to store and perform different actions on the data of the computer. A data structure is a particul... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 67,
"s": 52,
"text": "WHAT IS DATA :"
},
{
"code": null,
"e": 161,
"s": 67,
"text": "Data is the collection of different numbers, symbols, and alphabets to represent information... |
Shimmer Effect to Image in Android | 23 Feb, 2021
Shimmer Effect is one of the most popular features that we see in most Android apps. We can get to see this Shimmer Effect while loading the screen in animated form. Using Shimmer Effect in the Android app makes a good User Experience. In this article, we are going to see how to implement the Shimmer Effec... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 522,
"s": 28,
"text": "Shimmer Effect is one of the most popular features that we see in most Android apps. We can get to see this Shimmer Effect while loading the screen in animated form. Using Shi... |
Calculating the completeness score using sklearn in Python | 26 May, 2021
An entirely complete clustering is one where each cluster has information that directs a place toward a similar class cluster. Completeness portrays the closeness of the clustering algorithm to this (completeness_score) perfection.
This metric is autonomous of the outright values of the labels. A permutat... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 May, 2021"
},
{
"code": null,
"e": 261,
"s": 28,
"text": "An entirely complete clustering is one where each cluster has information that directs a place toward a similar class cluster. Completeness portrays the closeness of the clust... |
numpy.diagflat() in Python | 04 Aug, 2021
numpy.diagflat (a, k = 0): Create a two-dimensional array with the array_like input as a diagonal to the new output array.
Parameters :
a : array_like input data with diagonal elements
strong>k : [int, optional, 0 by default]
Diagonal we require; k>0 means diagonal above main diagonal or vice... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 151,
"s": 28,
"text": "numpy.diagflat (a, k = 0): Create a two-dimensional array with the array_like input as a diagonal to the new output array."
},
{
"code": null,
"e": 165,
"s": 1... |
How to Add Custom Toolbar Background in Android? | 23 Feb, 2021
A toolbar is basically a form action bar that contains many interactive items. A toolbar supports a more focused feature than an action bar. The toolbar was added in Android Lollipop (API 21) and is the successor of the ActionBar. The toolbar is a ViewGroup that can be put anyplace in the XML layouts. Tool... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n23 Feb, 2021"
},
{
"code": null,
"e": 723,
"s": 28,
"text": "A toolbar is basically a form action bar that contains many interactive items. A toolbar supports a more focused feature than an action bar. The toolbar was added in Android L... |
Image Caption Generator using Deep Learning on Flickr8K dataset | 02 Sep, 2020
Generating a caption for a given image is a challenging problem in the deep learning domain. In this article, we will use different techniques of computer vision and NLP to recognize the context of an image and describe them in a natural language like English. we will build a working model of the image cap... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n02 Sep, 2020"
},
{
"code": null,
"e": 633,
"s": 52,
"text": "Generating a caption for a given image is a challenging problem in the deep learning domain. In this article, we will use different techniques of computer vision and NLP to r... |
Grav - Markdown Syntax | Markdown syntax is defined as writing plain text in an easy to read and easy to write format, which is later converted into HTML code. Symbols like (*) or (`) are used in markdown syntax. These symbols are used to bold, creating headers and organize your content.
To use Markdown syntax, you must create a .md file in yo... | [
{
"code": null,
"e": 2900,
"s": 2636,
"text": "Markdown syntax is defined as writing plain text in an easy to read and easy to write format, which is later converted into HTML code. Symbols like (*) or (`) are used in markdown syntax. These symbols are used to bold, creating headers and organize you... |
Convert list of Celsius values into Fahrenheit using NumPy array | 25 Jan, 2022
Let us see how to convert a list of Celsius temperatures into Fahrenheit by converting them into NumPy array. The formula to convert Celsius to Fahrenheit is :
feh = (9 * cel / 5 + 32)
Method 1 : Using the numpy.array() method.
python3
# importing the moduleimport numpy as np # taking the celsius in... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jan, 2022"
},
{
"code": null,
"e": 190,
"s": 28,
"text": "Let us see how to convert a list of Celsius temperatures into Fahrenheit by converting them into NumPy array. The formula to convert Celsius to Fahrenheit is : "
},
{
... |
jQuery | wrap() with Examples | 13 Feb, 2019
The wrap() method is an inbuilt method in jQuery which is used to wrap the specified element around the selected element.
Syntax:
$(selector).wrap(element, function)
Parameters: This method accepts two parameters as mentioned above and described below:
element: It is required parameter which is used to spe... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 150,
"s": 28,
"text": "The wrap() method is an inbuilt method in jQuery which is used to wrap the specified element around the selected element."
},
{
"code": null,
"e": 158,
"s": 15... |
Find the k most frequent words from a file | 11 Jan, 2022
Given a book of words. Assume you have enough main memory to accommodate all words. design a data structure to find top K maximum occurring words. The data structure should be dynamic so that new words can be added. A simple solution is to use Hashing. Hash all words one by one in a hash table. If a word i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Jan, 2022"
},
{
"code": null,
"e": 2759,
"s": 54,
"text": "Given a book of words. Assume you have enough main memory to accommodate all words. design a data structure to find top K maximum occurring words. The data structure should ... |
How to Build a Simple Web Server with Node.js ? | 25 Jun, 2021
Introduction: Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside a browser. You need to remember that NodeJS is not a framework, and it’s not a programming language. Node.js is mostly used in server-side programming. In this article, we will discuss how t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2021"
},
{
"code": null,
"e": 370,
"s": 28,
"text": "Introduction: Node.js is an open-source and cross-platform runtime environment for executing JavaScript code outside a browser. You need to remember that NodeJS is not a frame... |
Flyweight Design Pattern | 01 Sep, 2021
Flyweight pattern is one of the structural design patterns as this pattern provides ways to decrease object count thus improving application required objects structure. Flyweight pattern is used when we need to create a large number of similar objects (say 105). One important feature of flyweight objects i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 461,
"s": 54,
"text": "Flyweight pattern is one of the structural design patterns as this pattern provides ways to decrease object count thus improving application required objects structure. Flywe... |
Kafka Automation using Python with Real World Example | 03 Jan, 2022
Apache Kafka is a publish-subscribe messaging queue used for real-time streams of data. Apache Kafka lets you send and receive messages between various Microservices. Developing a scalable and reliable Automation Framework for Kafka-based Microservices Projects can be challenging sometimes.
In this articl... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jan, 2022"
},
{
"code": null,
"e": 320,
"s": 28,
"text": "Apache Kafka is a publish-subscribe messaging queue used for real-time streams of data. Apache Kafka lets you send and receive messages between various Microservices. Developi... |
Python program to convert binary to ASCII | 31 Aug, 2021
In this article, we are going to see the conversion of Binary to ASCII in the Python programming language. There are multiple approaches by which this conversion can be performed that are illustrated below:
Binascii helps convert between binary and various ASCII-encoded binary representations.
b2a_uu() fun... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 261,
"s": 54,
"text": "In this article, we are going to see the conversion of Binary to ASCII in the Python programming language. There are multiple approaches by which this conversion can be perfo... |
Software Testing | Configuration Testing | 08 May, 2019
Configuration Testing is the type of Software Testing which verifies the performance of the system under development against various combinations of software and hardware to find out the best configuration under which the system can work without any flaws or issues while matching its functional requirement... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 May, 2019"
},
{
"code": null,
"e": 338,
"s": 28,
"text": "Configuration Testing is the type of Software Testing which verifies the performance of the system under development against various combinations of software and hardware to f... |
Introduction to Ant Colony Optimization | 17 May, 2020
The algorithmic world is beautiful with multifarious strategies and tools being developed round the clock to render to the need for high-performance computing. In fact, when algorithms are inspired by natural laws, interesting results are observed. Evolutionary algorithms belong to such a class of algorith... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 798,
"s": 52,
"text": "The algorithmic world is beautiful with multifarious strategies and tools being developed round the clock to render to the need for high-performance computing. In fact, when ... |
Python | Sort Python Dictionaries by Key or Value | 01 Jul, 2022
In this article, we will discuss how we sort a dictionary by value and keys in Python.
We need sorting of data to reduce the complexity of the data and make queries faster and more efficient. Therefore sorting is very important when we are dealing with a large amount of data. Here, we will use the followin... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Jul, 2022"
},
{
"code": null,
"e": 141,
"s": 54,
"text": "In this article, we will discuss how we sort a dictionary by value and keys in Python."
},
{
"code": null,
"e": 373,
"s": 141,
"text": "We need sorting of... |
Python program to sort a list of tuples by second Item | 19 May, 2022
Given a list of tuples, write a Python program to sort the tuples by the second item of each tuple. Examples:
Input : [('for', 24), ('Geeks', 8), ('Geeks', 30)]
Output : [('Geeks', 8), ('for', 24), ('Geeks', 30)]
Input : [('452', 10), ('256', 5), ('100', 20), ('135', 15)]
Output : [('256', 5), ('452', 10... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 May, 2022"
},
{
"code": null,
"e": 162,
"s": 52,
"text": "Given a list of tuples, write a Python program to sort the tuples by the second item of each tuple. Examples:"
},
{
"code": null,
"e": 388,
"s": 162,
"tex... |
Building a Chat Bot With Object Detection and OCR | by Mitchell A. Carroll | Towards Data Science | In part 1 of this series, we gave our bot the ability to detect sentiment from text and respond accordingly. But that’s about all it can do, and admittedly quite boring.
Of course, in a real chat, we often send a multitude of media: from text, images, videos, gifs, to anything else. So in this, our next step in our jou... | [
{
"code": null,
"e": 342,
"s": 172,
"text": "In part 1 of this series, we gave our bot the ability to detect sentiment from text and respond accordingly. But that’s about all it can do, and admittedly quite boring."
},
{
"code": null,
"e": 682,
"s": 342,
"text": "Of course, in a ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.