title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
C/C++ Program to check whether it is possible to make a divisible by 3 number using all digits in an array - GeeksforGeeks | 05 Dec, 2018
Given an array of integers, the task is to find whether it is possible to construct an integer using all the digits of these numbers such that it would be divisible by 3. If it is possible then print “Yes” and if not print “No”.
Examples:
Input : arr[] = {40, 50, 90}
Output : Yes
We can construct a number ... | [
{
"code": null,
"e": 26175,
"s": 26147,
"text": "\n05 Dec, 2018"
},
{
"code": null,
"e": 26404,
"s": 26175,
"text": "Given an array of integers, the task is to find whether it is possible to construct an integer using all the digits of these numbers such that it would be divisibl... |
Understanding Code Reuse and Modularity in Python 3 - GeeksforGeeks | 05 Jul, 2021
What is Object Oriented Programming(OOP)?
OOP is a programming paradigm based on the concept of “objects”, which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. Learn more here, or just Google “OOP”.Objects have characteristic... | [
{
"code": null,
"e": 25721,
"s": 25693,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 25763,
"s": 25721,
"text": "What is Object Oriented Programming(OOP)?"
},
{
"code": null,
"e": 26313,
"s": 25763,
"text": "OOP is a programming paradigm based on the conce... |
Collect.js reject() Method - GeeksforGeeks | 30 Nov, 2020
The reject() method is used to filter the given collection of elements using the given callback function. If the callback function returns true, then the element is removed from the resulting collection, otherwise, it is not removed.
Syntax:
collect(array).reject(callback)
Parameters: The collect() method ... | [
{
"code": null,
"e": 24909,
"s": 24881,
"text": "\n30 Nov, 2020"
},
{
"code": null,
"e": 25143,
"s": 24909,
"text": "The reject() method is used to filter the given collection of elements using the given callback function. If the callback function returns true, then the element i... |
How to Match patterns and strings using the RegEx module in Python | The RegEx module stands for Regular expressions. If you have already worked on programming, you would have come across this term several times already. We use the Regular expressions to search and replace, it is used in various text editors, search engines, word processors, etc.
In other words, it helps match a certain... | [
{
"code": null,
"e": 1342,
"s": 1062,
"text": "The RegEx module stands for Regular expressions. If you have already worked on programming, you would have come across this term several times already. We use the Regular expressions to search and replace, it is used in various text editors, search engi... |
CSS - Backgrounds | This chapter teaches you how to set backgrounds of various HTML elements. You can set the following background properties of an element −
The background-color property is used to set the background color of an element.
The background-color property is used to set the background color of an element.
The background-image... | [
{
"code": null,
"e": 2764,
"s": 2626,
"text": "This chapter teaches you how to set backgrounds of various HTML elements. You can set the following background properties of an element −"
},
{
"code": null,
"e": 2845,
"s": 2764,
"text": "The background-color property is used to set... |
D3.js - Scales API | D3.js provides scale functions to perform data transformations. These functions map an input domain to an output range.
We can configure the API directly using the following script.
<script src = "https://d3js.org/d3-array.v1.min.js"></script>
<script src = "https://d3js.org/d3-collection.v1.min.js"></script>
<script s... | [
{
"code": null,
"e": 2250,
"s": 2130,
"text": "D3.js provides scale functions to perform data transformations. These functions map an input domain to an output range."
},
{
"code": null,
"e": 2312,
"s": 2250,
"text": "We can configure the API directly using the following script."... |
Java8 Concatenate Arrays Example | Java Concatenate Two Arrays | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorial, I am going to show you how ... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
How to make a txt file in internal storage in android? | This example demonstrates How to make a txt file in internal storage in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version = "1.0" encoding = "utf-8"?>
<L... | [
{
"code": null,
"e": 1143,
"s": 1062,
"text": "This example demonstrates How to make a txt file in internal storage in android."
},
{
"code": null,
"e": 1272,
"s": 1143,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required detai... |
Minimum XOR Value Pair - GeeksforGeeks | 11 Mar, 2022
Given an array of integers. Find the pair in an array that has a minimum XOR value. Examples :
Input : arr[] = {9, 5, 3}
Output : 6
All pair with xor value (9 ^ 5) => 12,
(5 ^ 3) => 6, (9 ^ 3) => 10.
Minimum XOR value is 6
Input : arr[] = {1, 2, 3, 4, 5}
Output : 1
A Simple ... | [
{
"code": null,
"e": 24846,
"s": 24818,
"text": "\n11 Mar, 2022"
},
{
"code": null,
"e": 24943,
"s": 24846,
"text": "Given an array of integers. Find the pair in an array that has a minimum XOR value. Examples : "
},
{
"code": null,
"e": 25142,
"s": 24943,
"t... |
Python program to count positive and negative numbers in a list | In this article, we will learn about the solution and approach to solve the given problem statement.
Given a list iterable we need to count all the positive and negative numbers available in the iterable.
Her we will be discussing two approaches −
Brute-force approach
Using lambda inline function
Live Demo
list1 = [1,... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "In this article, we will learn about the solution and approach to solve the given problem statement."
},
{
"code": null,
"e": 1267,
"s": 1163,
"text": "Given a list iterable we need to count all the positive and negative numbers avai... |
Find frequency of smallest value in an array - GeeksforGeeks | 11 May, 2021
Given an array A of N elements. Find the frequency of the smallest value in the array.Examples:
Input : N = 5, arr[] = {3, 2, 3, 4, 4}
Output : 1
The smallest element in the array is 2
and it occurs only once.
Input : N = 6, arr[] = {4, 3, 5, 3, 3, 6}
Output : 3
The smallest element in the array is 3 ... | [
{
"code": null,
"e": 24611,
"s": 24583,
"text": "\n11 May, 2021"
},
{
"code": null,
"e": 24709,
"s": 24611,
"text": "Given an array A of N elements. Find the frequency of the smallest value in the array.Examples: "
},
{
"code": null,
"e": 24942,
"s": 24709,
"... |
How to Randomly Shuffle Columns in MATLAB in Matrix? - GeeksforGeeks | 27 Aug, 2021
In this article, we are going to discuss the “random shuffling of columns in a Matrix ” with the help of size() and randperm() function. The size() function is used to return the size of each dimension of the specified array “X” or the size of the specified matrix “X”.
1) randperm(): The randperm() functi... | [
{
"code": null,
"e": 24255,
"s": 24227,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 24526,
"s": 24255,
"text": "In this article, we are going to discuss the “random shuffling of columns in a Matrix ” with the help of size() and randperm() function. The size() function is use... |
Matplotlib.markers module in Python - GeeksforGeeks | 07 Oct, 2021
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.
The matplotlib.dates module provides functions to handle markers in Matplotlib. It is used bot... | [
{
"code": null,
"e": 23901,
"s": 23873,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 24114,
"s": 23901,
"text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an... |
How to Count Number of Files and Subdirectories inside a Given Linux Directory? | It often becomes essential to know not just the count of files in my current directory but also the count of files from all the subdirectories inside the current directory. This can be found out using the
we can use ls to list the files, then choose only the ones that start with ‘-‘ symbol. The R option along with the ... | [
{
"code": null,
"e": 1267,
"s": 1062,
"text": "It often becomes essential to know not just the count of files in my current directory but also the count of files from all the subdirectories inside the current directory. This can be found out using the"
},
{
"code": null,
"e": 1489,
"... |
Restoring a Docker Container | 30 Sep, 2021
If you have a backup of your Docker Container stored as a Tar File in your local machine or pushed it on the Docker Hub account, you can restore that Tar File back into a Docker Image, create a Container and use it. In this article, we are going to discuss how to restore a Docker Image from a Tar File or p... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 383,
"s": 28,
"text": "If you have a backup of your Docker Container stored as a Tar File in your local machine or pushed it on the Docker Hub account, you can restore that Tar File back into a Dock... |
getx() function in C | 25 Jan, 2018
The header file graphics.h contains getx() function which returns the X coordinate of the current position.Syntax :
int getx();
Example :
Explanation : Initially, the X coordinate of the current position is 0. On moving the coordinates using moveto() function, the X coordinate changes to 80.
Below is th... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n25 Jan, 2018"
},
{
"code": null,
"e": 170,
"s": 54,
"text": "The header file graphics.h contains getx() function which returns the X coordinate of the current position.Syntax :"
},
{
"code": null,
"e": 183,
"s": 170,
... |
Python Data Types | 01 Oct, 2021
Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, data types are actually classes and variables are instance (object) of these classes.
Fol... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n01 Oct, 2021"
},
{
"code": null,
"e": 356,
"s": 52,
"text": "Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. Since eve... |
Working with MySQL BLOB in Python | 13 Jun, 2022
In Python Programming, We can connect with several databases like MySQL, Oracle, SQLite, etc., using inbuilt support. We have separate modules for each database. We can use SQL Language as a mediator between the python program and database. We will write all queries in our python program and send those com... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jun, 2022"
},
{
"code": null,
"e": 473,
"s": 28,
"text": "In Python Programming, We can connect with several databases like MySQL, Oracle, SQLite, etc., using inbuilt support. We have separate modules for each database. We can use SQ... |
Strings in Java | 27 Jun, 2022
Strings in Java are Objects that are backed internally by a char array. Since arrays are immutable(cannot grow), Strings are immutable as well. Whenever a change to a String is made, an entirely new String is created.
Syntax:
Chapters
descriptions off, selected
captions settings, opens captions settings... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Jun, 2022"
},
{
"code": null,
"e": 271,
"s": 52,
"text": "Strings in Java are Objects that are backed internally by a char array. Since arrays are immutable(cannot grow), Strings are immutable as well. Whenever a change to a String ... |
Java program to check palindrome (using library methods) | 28 Jun, 2021
Given a string, write a Java function to check if it is palindrome or not. A string is said to be palindrome if reverse of the string is same as string. For example, “abba” is palindrome, but “abbc” is not palindrome. The problem here is solved using string reverse function.
Examples:
Input : malayalam
Out... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 329,
"s": 53,
"text": "Given a string, write a Java function to check if it is palindrome or not. A string is said to be palindrome if reverse of the string is same as string. For example, “abba” i... |
Specifying the increment in for-loops in Python | 01 Oct, 2020
Let us see how to control the increment in for-loops in Python. We can do this by using the range() function.
range() allows the user to generate a series of numbers within a given range. Depending on how many arguments the user is passing to the function, the user can decide where that series of numbers w... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 138,
"s": 28,
"text": "Let us see how to control the increment in for-loops in Python. We can do this by using the range() function."
},
{
"code": null,
"e": 428,
"s": 138,
"text... |
turtle.shape() function in Python | 20 Jul, 2020
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This function is used to set the turtle shape to shape with a given name or, if the name i... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n20 Jul, 2020"
},
{
"code": null,
"e": 271,
"s": 54,
"text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a ve... |
DataTypes in MongoDB | 09 Jun, 2022
In MongoDB, the documents are stores in BSON, which is the binary encoded format of JSON and using BSON we can make remote procedure calls in MongoDB. BSON data format supports various data-types. Below are the enlisted MongoDB data types:
1. String: This is the most commonly used data type in MongoDB to s... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Jun, 2022"
},
{
"code": null,
"e": 294,
"s": 54,
"text": "In MongoDB, the documents are stores in BSON, which is the binary encoded format of JSON and using BSON we can make remote procedure calls in MongoDB. BSON data format suppor... |
How to create an empty PySpark DataFrame ? | 11 Aug, 2021
In this article, we are going to see how to create an empty PySpark dataframe. Empty Pysaprk dataframe is a dataframe containing no data and may or may not specify the schema of the dataframe.
We’ll first create an empty RDD by specifying an empty schema.
emptyRDD() method creates an RDD without any data.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 221,
"s": 28,
"text": "In this article, we are going to see how to create an empty PySpark dataframe. Empty Pysaprk dataframe is a dataframe containing no data and may or may not specify the schema ... |
How to get file input by selected file name without path using jQuery ? - GeeksforGeeks | 18 Aug, 2021
The task is to get the file input by selected filename without the path using jQuery. To select the file we will use HTML <input type=”file”>. After that we will get the file name by using the jQuery change() method. This method is used in the JQuery to get the file input by selected file name. And the HTM... | [
{
"code": null,
"e": 25954,
"s": 25926,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 26391,
"s": 25954,
"text": "The task is to get the file input by selected filename without the path using jQuery. To select the file we will use HTML <input type=”file”>. After that we will g... |
Lowest Common Ancestor in a Binary Tree | Practice | GeeksforGeeks | Given a Binary Tree with all unique values and two nodes value, n1 and n2. The task is to find the lowest common ancestor of the given two nodes. We may assume that either both n1 and n2 are present in the tree or none of them are present.
Example 1:
Input:
n1 = 2 , n2 = 3
1
/ \
2 3
Output: 1
E... | [
{
"code": null,
"e": 479,
"s": 238,
"text": "Given a Binary Tree with all unique values and two nodes value, n1 and n2. The task is to find the lowest common ancestor of the given two nodes. We may assume that either both n1 and n2 are present in the tree or none of them are present. "
},
{
... |
Object.assign( ) in JavaScript | 13 Sep, 2021
Object and Object Constructors in JavaScript? In the living world of object-oriented programming we already know the importance of classes and objects but unlike other programming languages, JavaScript does not have the traditional classes as seen in other languages. But JavaScript has objects and construc... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n13 Sep, 2021"
},
{
"code": null,
"e": 1056,
"s": 54,
"text": "Object and Object Constructors in JavaScript? In the living world of object-oriented programming we already know the importance of classes and objects but unlike other progr... |
How to change color of regression line in R ? | 24 Jun, 2021
A regression line is basically used in statistical models which help to estimate the relationship between a dependent variable and at least one independent variable. In this article, we are going to see how to plot a regression line using ggplot2 in R programming language and different methods to change th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n24 Jun, 2021"
},
{
"code": null,
"e": 384,
"s": 28,
"text": "A regression line is basically used in statistical models which help to estimate the relationship between a dependent variable and at least one independent variable. In this a... |
Tracking bird migration using Python-3 | 29 Sep, 2021
One fascinating area of research uses GPS to track the movements of animals. It is now possible to manufacture a small GPS device that is solar charged, so you don’t need to change batteries and use it to track flight patterns of birds. The data for this case study comes from the LifeWatch INBO project. Se... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 830,
"s": 52,
"text": "One fascinating area of research uses GPS to track the movements of animals. It is now possible to manufacture a small GPS device that is solar charged, so you don’t need to ... |
Working with IP Addresses in Python | 18 Aug, 2021
IP (Internet Protocol) -Address is the basic fundamental concept of computer networks which provides the address assigning capabilities to a network. Python provides ipaddress module which is used to validate and categorize the IP address according to their types(IPv4 or IPv6). This module is also used for... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 436,
"s": 28,
"text": "IP (Internet Protocol) -Address is the basic fundamental concept of computer networks which provides the address assigning capabilities to a network. Python provides ipaddress... |
Temperature Converter using Tkinter | 20 Jan, 2022
Prerequisites: Python GUI – tkinterPython Tkinter is a GUI programming package or built-in library. Tkinter provides the Tk GUI toolkit with a potent object-oriented interface. Python with Tkinter is the fastest and easiest way to create GUI applications. Creating a GUI using Tkinter is an easy task.Approa... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Jan, 2022"
},
{
"code": null,
"e": 341,
"s": 28,
"text": "Prerequisites: Python GUI – tkinterPython Tkinter is a GUI programming package or built-in library. Tkinter provides the Tk GUI toolkit with a potent object-oriented interface... |
system() in C/C++ | 29 May, 2017
system() is used to invoke an operating system command from a C/C++ program.
int system(const char *command);
Note: stdlib.h or cstdlib needs to be included to call system.
Using system(), we can execute any command that can run on terminal if operating system allows. For example, we can call system(“... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n29 May, 2017"
},
{
"code": null,
"e": 129,
"s": 52,
"text": "system() is used to invoke an operating system command from a C/C++ program."
},
{
"code": null,
"e": 167,
"s": 129,
"text": " int system(const char *c... |
How to Create a Basic Project using MVT in Django ? | 16 Aug, 2021
Prerequisite – Django Project MVT Structure
Assuming you have gone through the previous article. This article focuses on creating a basic project to render a template using MVT architecture. We will use MVT (Models, Views, Templates) to render data to a local server.
Create a basic Project:
To initiate ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 97,
"s": 52,
"text": "Prerequisite – Django Project MVT Structure "
},
{
"code": null,
"e": 322,
"s": 97,
"text": "Assuming you have gone through the previous article. This arti... |
Python | Pair iteration in list | 22 Jan, 2019
List iteration is common in programming, but sometimes one requires to print the elements in consecutive pairs. This particular problem is quite common and having a solution to it always turns out to be handy. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using list comprehens... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jan, 2019"
},
{
"code": null,
"e": 328,
"s": 54,
"text": "List iteration is common in programming, but sometimes one requires to print the elements in consecutive pairs. This particular problem is quite common and having a solution ... |
Program to find the Nth term of the series 3, 7, 13, 21, 31..... | 07 Oct, 2021
Given a number N, the task is to find the Nth term of this series:
3, 7, 13, 21, 31, .......
Examples:
Input: N = 4
Output: 21
Explanation:
Nth term = (pow(N, 2) + N + 1)
= (pow(4, 2) + 4 + 1)
= 21
Input: N = 11
Output: 133
Approach:Subtracting these two equations we get Therefore, the ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 119,
"s": 52,
"text": "Given a number N, the task is to find the Nth term of this series:"
},
{
"code": null,
"e": 145,
"s": 119,
"text": "3, 7, 13, 21, 31, ......."
},
{
... |
Java | CDMA (Code Division Multiple Access) | 11 Mar, 2022
CDMA is a channelization protocol for Multiple Access, where information can be sent simultaneously through several transmitters over a single communication channel.
It is achieved in below steps:
A signal is generated which extends over a wide bandwidth.
The code which performs this action is called sprea... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n11 Mar, 2022"
},
{
"code": null,
"e": 220,
"s": 54,
"text": "CDMA is a channelization protocol for Multiple Access, where information can be sent simultaneously through several transmitters over a single communication channel."
},
... |
Modifiers for Vector in C++ STL | 28 Jun, 2021
Click here for Set 1 of Vectors.
Modifiers1.1 assign(input_iterator first, input_iterator last) – Assigns new content to vector and resize1.2 assign(size_type n, const value_type g) – Assigns new content to vector and resize
#include <iostream>#include <vector> using namespace std; int main(){ vecto... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 87,
"s": 54,
"text": "Click here for Set 1 of Vectors."
},
{
"code": null,
"e": 281,
"s": 89,
"text": "Modifiers1.1 assign(input_iterator first, input_iterator last) – Assigns n... |
Iterative Preorder Traversal | 17 Jun, 2022
Given a Binary Tree, write an iterative function to print the Preorder traversal of the given binary tree.Refer to this for recursive preorder traversal of Binary Tree. To convert an inherently recursive procedure to iterative, we need an explicit stack.
Following is a simple stack based iterative process... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n17 Jun, 2022"
},
{
"code": null,
"e": 308,
"s": 52,
"text": "Given a Binary Tree, write an iterative function to print the Preorder traversal of the given binary tree.Refer to this for recursive preorder traversal of Binary Tree. To co... |
How to put images in a box without space using Bootstrap? | 19 Feb, 2020
Bootstrap 4 is a CSS a library for frontend web development developed by Twitter which helps the developer to beautify the way the webpage looks. The bootstrap library has pre-defined CSS classes that are easy to use and it helps the developer to provide an artistic look to the website with minimal effort.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 336,
"s": 28,
"text": "Bootstrap 4 is a CSS a library for frontend web development developed by Twitter which helps the developer to beautify the way the webpage looks. The bootstrap library has pre... |
Keras - Locally connected layer | Locally connected layers are similar to Conv1D layer but the difference is Conv1D layer weights are shared but here weights are unshared. We can use different set of filters to apply different patch of input.
Locally connected layer has one arguments and it is as follows −
keras.layers.LocallyConnected1D(n)
A simple e... | [
{
"code": null,
"e": 2394,
"s": 2185,
"text": "Locally connected layers are similar to Conv1D layer but the difference is Conv1D layer weights are shared but here weights are unshared. We can use different set of filters to apply different patch of input."
},
{
"code": null,
"e": 2459,
... |
Running GUI Applications on Docker in Linux | 21 Oct, 2020
Let’s say you are trying to build a UI application and deploying it as a Docker Container. If you want that UI application to display the user interface on your local machine while running the application inside the Docker Container, you will have to connect the display of the Docker Container with the dis... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n21 Oct, 2020"
},
{
"code": null,
"e": 611,
"s": 52,
"text": "Let’s say you are trying to build a UI application and deploying it as a Docker Container. If you want that UI application to display the user interface on your local machine... |
factor command in Linux with examples | 15 May, 2019
The factor command in Linux is used to print the prime factors of the given numbers, either given from command line or read from standard input.
The numbers given through standard input may be delimited by tabs, spaces or newlines.
Syntax:
factor [NUMBER]
Factor 100 (non-prime number):We get the prime fact... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 May, 2019"
},
{
"code": null,
"e": 173,
"s": 28,
"text": "The factor command in Linux is used to print the prime factors of the given numbers, either given from command line or read from standard input."
},
{
"code": null,
... |
sciPy stats.variation() function | Python | 13 Feb, 2019
scipy.stats.variation(arr, axis = None) function computes the coefficient of variation. It is defined as the ratio of standard deviation to mean.
Parameters :arr : [array_like] input array.axis : [int or tuples of int] axis along which we want to calculate the coefficient of variation.-> axis = 0 coefficie... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Feb, 2019"
},
{
"code": null,
"e": 174,
"s": 28,
"text": "scipy.stats.variation(arr, axis = None) function computes the coefficient of variation. It is defined as the ratio of standard deviation to mean."
},
{
"code": null,
... |
Product of minimum edge weight between all pairs of a Tree | 05 May, 2022
Given a tree with N vertices and N-1 Edges. Let’s define a function F(a, b) which is equal to the minimum edge weight in the path between node a & b. The task is to calculate the product of all such F(a, b). Here a&b are unordered pairs and a!=b.So, basically, we need to find the value of:
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n05 May, 2022"
},
{
"code": null,
"e": 345,
"s": 52,
"text": "Given a tree with N vertices and N-1 Edges. Let’s define a function F(a, b) which is equal to the minimum edge weight in the path between node a & b. The task is to calculate... |
Artificial Intelligence Opportunities & Challenges in Businesses | by Robert Adixon | Towards Data Science | ● Looking for opportunities and challenges that businesses face with implementing AI?
● Confused about whether to start AI based development or not in your business?
● How is AI imapacting your business growth and profit?
Here, in this blog, you will find answers to all such questions. Let’s start!
Artificial Intellige... | [
{
"code": null,
"e": 258,
"s": 172,
"text": "● Looking for opportunities and challenges that businesses face with implementing AI?"
},
{
"code": null,
"e": 338,
"s": 258,
"text": "● Confused about whether to start AI based development or not in your business?"
},
{
"code"... |
Python IMDbPY – Movie info set - GeeksforGeeks | 22 Apr, 2020
IMDb data base have every information of the movie i.e when movie released, rating, locations etc but in order to retrieve them problem occur as there will be lots of web pages which can be both time-and bandwidth-consuming, especially if you’re interested in only a small part of the information.
If we wan... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 25853,
"s": 25555,
"text": "IMDb data base have every information of the movie i.e when movie released, rating, locations etc but in order to retrieve them problem occur as there will be lots... |
Python | Transpose elements of two dimensional list - GeeksforGeeks | 19 Jan, 2021
Given a two-dimensional list of integers, write a Python program to get the transpose of given list of lists.In Python, a matrix can be interpreted as a list of lists. Each element is treated as a row of the matrix. For example m = [[10, 20], [40, 50], [30, 60]] represents a matrix of 3 rows and 2 columns.... | [
{
"code": null,
"e": 26565,
"s": 26537,
"text": "\n19 Jan, 2021"
},
{
"code": null,
"e": 26956,
"s": 26565,
"text": "Given a two-dimensional list of integers, write a Python program to get the transpose of given list of lists.In Python, a matrix can be interpreted as a list of li... |
NLP Part 3 | Exploratory Data Analysis of Text Data | by Kamil Mysiak | Towards Data Science | This is a continuation of a three part series on NLP using python. Feel free to check out my other articles. (Part 1, Part 2)
Let’s get a better understanding of our newly cleansed dataset.Exploratory Data Analysis (EDA) is the process by which the data analyst becomes acquainted with their data to drive intuition and ... | [
{
"code": null,
"e": 298,
"s": 172,
"text": "This is a continuation of a three part series on NLP using python. Feel free to check out my other articles. (Part 1, Part 2)"
},
{
"code": null,
"e": 611,
"s": 298,
"text": "Let’s get a better understanding of our newly cleansed datas... |
Comparing the Performance of Fully-Connected, Simple CNN, and ResNet50 for Binary Image Classification in TensorFlow | by Binh Phan | Towards Data Science | In the world of machine learning, there are three models that you can use to perform binary image classification: a fully-connected network, a convolutional neural network, or a pre-trained network like MobileNet with transfer learning applied to it. In my previous stories, I showed how to implement these models to bui... | [
{
"code": null,
"e": 924,
"s": 172,
"text": "In the world of machine learning, there are three models that you can use to perform binary image classification: a fully-connected network, a convolutional neural network, or a pre-trained network like MobileNet with transfer learning applied to it. In m... |
Python program to print all distinct elements of a given integer array. | Given an integer array. The elements of the array may be duplicate.Our task is to display the distinct values.
Input::A=[1,2,3,4,2,3,5,6]
Output [1,2,3,4,5,6]
Step 1: input Array element.
Step 2: Then pick all the elements one by one.
Step 3: then check if the picked element is already displayed or not.
Step 4: use ... | [
{
"code": null,
"e": 1173,
"s": 1062,
"text": "Given an integer array. The elements of the array may be duplicate.Our task is to display the distinct values."
},
{
"code": null,
"e": 1222,
"s": 1173,
"text": "Input::A=[1,2,3,4,2,3,5,6]\nOutput [1,2,3,4,5,6]\n"
},
{
"code"... |
What is the JLink tool in Java 9? | JLink is a new linker tool that has been used to create our own customized JRE. Usually, we can run our program using default JRE provided by Oracle. If we need to create our own JRE then use this tool. JLink tool can help to create its own JRE with only the required class to run the application. It can reduce the size... | [
{
"code": null,
"e": 1442,
"s": 1062,
"text": "JLink is a new linker tool that has been used to create our own customized JRE. Usually, we can run our program using default JRE provided by Oracle. If we need to create our own JRE then use this tool. JLink tool can help to create its own JRE with onl... |
How to print a page using JavaScript? | To print a page in JavaScript, use the print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing.
Here’s an example −
You can try to run the following code to learn how to print a page −
Live Demo
<!DOCTYPE html>
<html>
<body>... | [
{
"code": null,
"e": 1251,
"s": 1062,
"text": "To print a page in JavaScript, use the print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing."
},
{
"code": null,
"e": 1271,
"s": 1251,
"t... |
GATE CS 2010 - GeeksforGeeks | 10 Nov, 2021
a
/ | \
b c d
Newton-Raphson method is used to compute a root of the equation x2-13=0 with 3.5 as the initial value. The approximation after one iteration is
3.607
3.667
3.676
3.575
In Newton-Raphson's method, We use the following formula to get the next value of f(x). f'(x) is derivative of... | [
{
"code": null,
"e": 28855,
"s": 28827,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 28879,
"s": 28855,
"text": " a \n / | \\\n b c d"
},
{
"code": null,
"e": 29024,
"s": 28879,
"text": "Newton-Raphson method is used to compute a root of the equation... |
Cypress - Mouse Actions | Cypress can handle hidden elements. There are occasions when submenus get displayed only on hovering over the main menu. These submenus are initially made hidden with the CSS property display:none.
For handling hidden elements, Cypress takes the help of the jQuery method show. It has to be invoked with the help of the ... | [
{
"code": null,
"e": 2695,
"s": 2497,
"text": "Cypress can handle hidden elements. There are occasions when submenus get displayed only on hovering over the main menu. These submenus are initially made hidden with the CSS property display:none."
},
{
"code": null,
"e": 2851,
"s": 269... |
How to Install Go Project Dependencies? - GeeksforGeeks | 22 Nov, 2021
We all know that project management is the most essential key for the setup of any project and in the same way, installing dependencies is also one of the important parts of project management.
For installing the go project dependencies, we use go get command, which automatically updates the go.mod file. Y... | [
{
"code": null,
"e": 24952,
"s": 24924,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 25146,
"s": 24952,
"text": "We all know that project management is the most essential key for the setup of any project and in the same way, installing dependencies is also one of the importan... |
Getting Started with End-to-End Speech Translation | by Mattia Di Gangi | Towards Data Science | With Pytorch you can translate English speech in only a few steps
Update 24–05–2021: The github repository used in this tutorial is no longer developed. If interested you should refer to this fork that is actively developed.
Speech-to-text translation is the task of translating a speech given in a source language into ... | [
{
"code": null,
"e": 238,
"s": 172,
"text": "With Pytorch you can translate English speech in only a few steps"
},
{
"code": null,
"e": 397,
"s": 238,
"text": "Update 24–05–2021: The github repository used in this tutorial is no longer developed. If interested you should refer to... |
Mercari price recommendation for online retail sellers using Machine learning | by Debayan Mitra | Towards Data Science | Business problemUse of Machine learning / Deep learning to solve the business problemEvaluation metric (RMSLE)Exploratory data analysisFeature engineering (Generating 19 new features)Existing solutionsMy Experiments with models for improvementsSummary, results and conclusionsFuture workLink to my profile — Github code ... | [
{
"code": null,
"e": 514,
"s": 171,
"text": "Business problemUse of Machine learning / Deep learning to solve the business problemEvaluation metric (RMSLE)Exploratory data analysisFeature engineering (Generating 19 new features)Existing solutionsMy Experiments with models for improvementsSummary, re... |
How To Install and Configure Webmin on Ubuntu 16.04 | In this article, we will learn – How we can install Webmin on Ubuntu 16.04. Webmin is a web-based control panel with dashboards for any Linux server machines, which allows you to control your server with a simple interface, where we can change the settings of common application packages with simple clicks. Webmin can a... | [
{
"code": null,
"e": 1492,
"s": 1062,
"text": "In this article, we will learn – How we can install Webmin on Ubuntu 16.04. Webmin is a web-based control panel with dashboards for any Linux server machines, which allows you to control your server with a simple interface, where we can change the setti... |
Instruction type INR R in 8085 Microprocessor | In 8085 Instruction set, INR is a mnemonic that stands for ‘INcRement’ and ‘R’ stands for any of the following registers or memory location M pointed by HL pair.
R = A, B, C, D, E, H, L, or M
This instruction is used to add 1 with the contents of R. So the previous value in R will get increased by amount 1 only. The r... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "In 8085 Instruction set, INR is a mnemonic that stands for ‘INcRement’ and ‘R’ stands for any of the following registers or memory location M pointed by HL pair."
},
{
"code": null,
"e": 1255,
"s": 1224,
"text": "R = A, B, C, D, E, H... |
CSS - Flash Effect | A sudden brief burst of bright light of an element.
@keyframes flash {
0%, 50%, 100% {
opacity: 1;
}
25%, 75% {
opacity: 0;
}
}
Opacity − Opacity applies to an element to make translucence.
Opacity − Opacity applies to an element to make translucence.
<html>
<head>
<style>
.ani... | [
{
"code": null,
"e": 2678,
"s": 2626,
"text": "A sudden brief burst of bright light of an element."
},
{
"code": null,
"e": 2778,
"s": 2678,
"text": "@keyframes flash {\n 0%, 50%, 100% {\n opacity: 1;\n }\n 25%, 75% {\n opacity: 0;\n }\n}"
},
{
"code": n... |
Get the Names of all Collections using PyMongo - GeeksforGeeks | 17 May, 2020
PyMongo is the module used for establishing a connection to the MongoDB using Python and perform all the operations like insertion, deletion, updating, etc. PyMongo is the recommended way to work with MongoDB and Python.
Note: For detailed information about Python and MongoDB visit MongoDB and Python.
Let’... | [
{
"code": null,
"e": 24237,
"s": 24209,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 24458,
"s": 24237,
"text": "PyMongo is the module used for establishing a connection to the MongoDB using Python and perform all the operations like insertion, deletion, updating, etc. PyMong... |
Difference between sum of the squares of and square of sum first n natural numbers. | With a given number n, write a program to find the difference between sum of the squares of and square of sum first n natural numbers.
n = 3
Squares of first three numbers
= 3x3 + 2x2 + 1x1
= 9 + 4 + 1
= 14
Squares of sum of first three numbers
= (3 + 2 + 1)x(3 + 2 + 1)
= 6x6
= 36
Difference
= 36 - 14
= 22
Live Demo... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "With a given number n, write a program to find the difference between sum of the squares of and square of sum first n natural numbers."
},
{
"code": null,
"e": 1372,
"s": 1197,
"text": "n = 3\nSquares of first three numbers\n= 3x3 + ... |
Deploying a Web App with Streamlit Sharing | by Aren Carpenter | Towards Data Science | You may remember a previous post with instructions on how to host a web app created with Streamlit using Heroku. But now it’s even easier!
Streamlit has recently unveiled their new native solution for hosting web apps, Streamlit Sharing! It’s currently in beta, but you can message the developers to get access for hosti... | [
{
"code": null,
"e": 311,
"s": 172,
"text": "You may remember a previous post with instructions on how to host a web app created with Streamlit using Heroku. But now it’s even easier!"
},
{
"code": null,
"e": 621,
"s": 311,
"text": "Streamlit has recently unveiled their new nativ... |
Binary list to integer in Python | We can convert a list of 0s and 1s representing a binary number to a decimal number in python using various approaches. In the below examples we use the int() method as well as bitwise left shift operator.
The int() method takes in two arguments and changes the base of the input as per the below syntax.
int(x, base=10)... | [
{
"code": null,
"e": 1268,
"s": 1062,
"text": "We can convert a list of 0s and 1s representing a binary number to a decimal number in python using various approaches. In the below examples we use the int() method as well as bitwise left shift operator."
},
{
"code": null,
"e": 1367,
... |
Collect Your Own Fitbit Data with Python | by Stephen Hsu | Towards Data Science | So you’ve got your Fitbit over the Christmas break and you’ve got some New Years Resolutions. You go online and see the graphs on your dashboard but you’re still not pleased. You want more data, more graphs, and more information. Well say no more, because I’m going to teach you how to collect your own Fitbit data using... | [
{
"code": null,
"e": 687,
"s": 171,
"text": "So you’ve got your Fitbit over the Christmas break and you’ve got some New Years Resolutions. You go online and see the graphs on your dashboard but you’re still not pleased. You want more data, more graphs, and more information. Well say no more, because... |
Express.js res.redirect() Function - GeeksforGeeks | 29 Mar, 2022
The res.redirect() function redirects to the URL derived from the specified path, with specified status, a integer (positive) which corresponds to an HTTP status code. The default status is “302 Found”.
Syntax:
res.redirect([status, ] path)
Parameter: This function accepts two parameters as mentioned above... | [
{
"code": null,
"e": 24509,
"s": 24481,
"text": "\n29 Mar, 2022"
},
{
"code": null,
"e": 24712,
"s": 24509,
"text": "The res.redirect() function redirects to the URL derived from the specified path, with specified status, a integer (positive) which corresponds to an HTTP status c... |
What is the role of IWebHostEnvironment interface in C# ASP.NET Core? | IWebHostEnvironment Provides information about the web hosting environment an
application is running in.
belongs to namespace Microsoft.AspNetCore.Hosting
The IWebHostEnvironment interface need to be injected as dependency in the
Controller and then later used throughout the Controller.
The IWebHostEnvironment interfac... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "IWebHostEnvironment Provides information about the web hosting environment an\napplication is running in."
},
{
"code": null,
"e": 1217,
"s": 1167,
"text": "belongs to namespace Microsoft.AspNetCore.Hosting"
},
{
"code": null... |
A single neuron neural network in Python | Neural networks are very important core of deep learning; it has many practical applications in many different areas. Now a days these networks are used for image classification, speech recognition, object detection etc.
Let’s do understand what is this and how does it work?
This network has different components. They ... | [
{
"code": null,
"e": 1283,
"s": 1062,
"text": "Neural networks are very important core of deep learning; it has many practical applications in many different areas. Now a days these networks are used for image classification, speech recognition, object detection etc."
},
{
"code": null,
... |
Constructor Delegation in C++ - GeeksforGeeks | 23 Jul, 2021
Sometimes it is useful for a constructor to be able to call another constructor of the same class. This feature, called Constructor Delegation, was introduced in C++ 11.An example program without delegation :
CPP
// A C++ program to demonstrate need of// constructor delegation.#include <iostream>using na... | [
{
"code": null,
"e": 24122,
"s": 24094,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 24333,
"s": 24122,
"text": "Sometimes it is useful for a constructor to be able to call another constructor of the same class. This feature, called Constructor Delegation, was introduced in C... |
wxPython - HTMLWindow Class | wxHTML library contains classes for parsing and displaying HTML content. Although this is not intended to be a full-featured browser, wx.HtmlWindow object is a generic HTML viewer.
HtmlWindow class constructor takes a familiar look −
(Parent, id, pos, size, style)
This class supports the following styles −
wxHW_SCROLL... | [
{
"code": null,
"e": 2063,
"s": 1882,
"text": "wxHTML library contains classes for parsing and displaying HTML content. Although this is not intended to be a full-featured browser, wx.HtmlWindow object is a generic HTML viewer."
},
{
"code": null,
"e": 2116,
"s": 2063,
"text": "H... |
Draw Composition of Plots Using the patchwork Package in R - GeeksforGeeks | 28 Jul, 2021
In this article, we will discuss how to draw a composition of plots using the patchwork package in R programming language. The patchwork package makes it easier to plot different ggplots in a single graph. We will require both ggplot2 packages for plotting our data and the patchwork package to combine the ... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 25569,
"s": 25242,
"text": "In this article, we will discuss how to draw a composition of plots using the patchwork package in R programming language. The patchwork package makes it easier to... |
Extract key value from a nested object in JavaScript? | Let us first create a nested object −
var details = {
"teacherDetails":
{
"teacherName": ["John", "David"]
},
"subjectDetails":
{
"subjectName": ["MongoDB", "Java"]
}
}
Let us now extract the keys. Following is the code −
var details = {
"teacherDetails":
{
"teacherName": ["Joh... | [
{
"code": null,
"e": 1100,
"s": 1062,
"text": "Let us first create a nested object −"
},
{
"code": null,
"e": 1261,
"s": 1100,
"text": "var details = {\n \"teacherDetails\":\n {\n \"teacherName\": [\"John\", \"David\"]\n },\n \"subjectDetails\":\n {\n \"subjec... |
Finding two closest elements to a specific number in an array using JavaScript | We are required to write a JavaScript function that takes in an array of sorted integers, arr, as the first argument and a target number, as the second argument.
Our function should return an array of exactly two numbers that exists in the array arr and are closest to target. The output array should also be sorted in i... | [
{
"code": null,
"e": 1224,
"s": 1062,
"text": "We are required to write a JavaScript function that takes in an array of sorted integers, arr, as the first argument and a target number, as the second argument."
},
{
"code": null,
"e": 1399,
"s": 1224,
"text": "Our function should ... |
How to create arrays dynamically in C#? | Dynamic arrays are growable arrays and have an advantage over static arrays. This is because the size of an array is fixed.
To create arrays dynamically in C#, use the ArrayList collection. It represents ordered collection of an object that can be indexed individually. It also allows dynamic memory allocation, adding, ... | [
{
"code": null,
"e": 1186,
"s": 1062,
"text": "Dynamic arrays are growable arrays and have an advantage over static arrays. This is because the size of an array is fixed."
},
{
"code": null,
"e": 1423,
"s": 1186,
"text": "To create arrays dynamically in C#, use the ArrayList coll... |
Python - Itertools.zip_longest() - GeeksforGeeks | 27 Feb, 2020
Python’s Itertool is a module that provides various functions that work on iterators to produce complex iterators. This module works as a fast, memory-efficient tool that is used either by themselves or in combination to form iterator algebra.
Iterators in Python is an object that can iterate like sequence... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n27 Feb, 2020"
},
{
"code": null,
"e": 24536,
"s": 24292,
"text": "Python’s Itertool is a module that provides various functions that work on iterators to produce complex iterators. This module works as a fast, memory-efficient to... |
MySQL command for display current configuration variables? | You can use SHOW VARIABLES command to display current configuration variables. The syntax is as follows −
SHOW VARIABLES;
If you want any specific information, then implement the LIKE operator. The syntax is as follows −
SHOW VARIABLES LIKE ‘%AnySpecificInformation%’;
Now we will implement the above syntax −
mysql> sho... | [
{
"code": null,
"e": 1168,
"s": 1062,
"text": "You can use SHOW VARIABLES command to display current configuration variables. The syntax is as follows −"
},
{
"code": null,
"e": 1184,
"s": 1168,
"text": "SHOW VARIABLES;"
},
{
"code": null,
"e": 1283,
"s": 1184,
... |
Multiplicative Congruence method for generating Pseudo Random Numbers - GeeksforGeeks | 08 Feb, 2022
Multiplicative Congruential Method (Lehmer Method) is a type of linear congruential generator for generating pseudorandom numbers in a specific range. This method can be defined as:
where, X, the sequence of pseudo-random numbersm ( > 0), the modulusa (0, m), the multiplierX0 [0, m), initial value ... | [
{
"code": null,
"e": 25126,
"s": 25098,
"text": "\n08 Feb, 2022"
},
{
"code": null,
"e": 25309,
"s": 25126,
"text": "Multiplicative Congruential Method (Lehmer Method) is a type of linear congruential generator for generating pseudorandom numbers in a specific range. This method ... |
Batch Script - Remove All Spaces | This is used to remove all spaces in a string via substitution.
@echo off
set str = This string has a lot of spaces
echo %str%
set str=%str:=%
echo %str%
The key thing to note about the above program is, the : = operator is used to remove all spaces from a string.
The above command produces the following o... | [
{
"code": null,
"e": 2233,
"s": 2169,
"text": "This is used to remove all spaces in a string via substitution."
},
{
"code": null,
"e": 2336,
"s": 2233,
"text": "@echo off \nset str = This string has a lot of spaces \necho %str% \n\nset str=%str:=% \necho %str%"
},
{
... |
Puppet - Manifest Files | In Puppet, all the programs which are written using Ruby programming language and saved with an extension of .pp are called manifests. In general terms, all Puppet programs which are built with an intension of creating or managing any target host machine is called a manifest. All the programs written in Puppet follow P... | [
{
"code": null,
"e": 2513,
"s": 2173,
"text": "In Puppet, all the programs which are written using Ruby programming language and saved with an extension of .pp are called manifests. In general terms, all Puppet programs which are built with an intension of creating or managing any target host machin... |
From Data Analyst to Data Storyteller in 3 Steps | by Max Hilsdorf | Towards Data Science | Why you need to learn this
It is widely known that various forms of data preparation make up more than 80% of a data scientists job. This is a valuable piece of information given that new people getting into the field seem to think it is all about expensive computers and complex deep learning models. You might be able ... | [
{
"code": null,
"e": 199,
"s": 172,
"text": "Why you need to learn this"
},
{
"code": null,
"e": 785,
"s": 199,
"text": "It is widely known that various forms of data preparation make up more than 80% of a data scientists job. This is a valuable piece of information given that ne... |
Azure Machine Learning : Run Python Script Experiment | Towards Data Science | In Part 1 of this series I mostly covered an overview and introduction about Azure Machine Learning (AML) Service, in that post I covered setup, configuration, and various OOB capabilities on the offering by this cloud-managed service. I also discussed AML Workspace, AML Experiment, and AML service experiment’s dashboa... | [
{
"code": null,
"e": 506,
"s": 172,
"text": "In Part 1 of this series I mostly covered an overview and introduction about Azure Machine Learning (AML) Service, in that post I covered setup, configuration, and various OOB capabilities on the offering by this cloud-managed service. I also discussed AM... |
Implementing circular queue ring buffer in JavaScript | The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. It is also called "Ring Buffer".
One of the benefits of the circular queue is that we can make use of the space... | [
{
"code": null,
"e": 1304,
"s": 1062,
"text": "The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. It is also called \"Ring Buffer\"."
},
{... |
Matplotlib.axes.Axes.set_xlabel() 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... |
How to set the Background Color of the ComboBox in C#? | 27 Jun, 2019
In windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is displayed at a time and the rest of the items are present in the drop-down menu. You are allowed to set the background color of the ComboBox by ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 478,
"s": 28,
"text": "In windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is displayed at... |
Minimax Algorithm in Game Theory | Set 5 (Zobrist Hashing) | 18 Apr, 2022
Previous posts on this topic : Minimax Algorithm in Game Theory, Evaluation Function in Game Theory, Tic-Tac-Toe AI – Finding optimal move, Alpha-Beta Pruning.Zobrist Hashing is a hashing function that is widely used in 2 player board games. It is the most common hashing function used in transposition tabl... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Apr, 2022"
},
{
"code": null,
"e": 714,
"s": 54,
"text": "Previous posts on this topic : Minimax Algorithm in Game Theory, Evaluation Function in Game Theory, Tic-Tac-Toe AI – Finding optimal move, Alpha-Beta Pruning.Zobrist Hashing... |
Python lambda | 23 Jun, 2022
In Python, an anonymous function means that a function is without a name. As we already know that def keyword is used to define the normal functions and the lambda keyword is used to create anonymous functions.
Syntax:
lambda arguments : expression
This function can have any number of arguments but only o... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 263,
"s": 52,
"text": "In Python, an anonymous function means that a function is without a name. As we already know that def keyword is used to define the normal functions and the lambda keyword is... |
Python Program To Reverse Words In A Given String | 15 Dec, 2021
Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”
Examples:
Input: s = “geeks quiz practice code” Output: s = “code practice quiz geeks”
Input: s = “getting good at coding needs a lot of practice” Output: s = “practic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Dec, 2021"
},
{
"code": null,
"e": 167,
"s": 28,
"text": "Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”"
},
{
"code": null,
"e":... |
Golomb sequence | 18 Feb, 2022
In mathematics, the Golomb sequence is a non-decreasing integer sequence where n-th term is equal to number of times n appears in the sequence.The first few values are 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, ......
Explanation of few terms: Third term is 2, note that three appears 2 times. Second term is 2, note ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n18 Feb, 2022"
},
{
"code": null,
"e": 262,
"s": 54,
"text": "In mathematics, the Golomb sequence is a non-decreasing integer sequence where n-th term is equal to number of times n appears in the sequence.The first few values are 1, 2, ... |
Insert Python Dictionary in PostgreSQL using Psycopg2 | 21 Oct, 2021
In this article, we are going to see how to insert a Python dictionary in PostgreSQL using Psycopg2.
We can insert a python dictionary by taking the dictionary keys as column names and values as dictionary values. We import the Psycopg2 package and form a connection to the PostgreSQL database using psycopg... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Oct, 2021"
},
{
"code": null,
"e": 129,
"s": 28,
"text": "In this article, we are going to see how to insert a Python dictionary in PostgreSQL using Psycopg2."
},
{
"code": null,
"e": 524,
"s": 129,
"text": "We ca... |
Python | Data Augmentation | 09 Sep, 2019
Data augmentation is the process of increasing the amount and diversity of data. We do not collect new data, rather we transform the already present data. I will be talking specifically about image data augmentation in this article.So we will look at various ways to transform and augment the image data.Thi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Sep, 2019"
},
{
"code": null,
"e": 377,
"s": 28,
"text": "Data augmentation is the process of increasing the amount and diversity of data. We do not collect new data, rather we transform the already present data. I will be talking sp... |
scipy stats.erlang() | Python | 20 Mar, 2019
scipy.stats.erlang() : is an Erlang continuous random variable that is defined with a standard format and some shape parameters to complete its specification. it is a special case of the Gamma distribution.
Parameters :q : lower and upper tail probabilityx : quantilesloc : [optional] location parameter. De... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Mar, 2019"
},
{
"code": null,
"e": 235,
"s": 28,
"text": "scipy.stats.erlang() : is an Erlang continuous random variable that is defined with a standard format and some shape parameters to complete its specification. it is a special ... |
Matplotlib.axes.Axes.set_facecolor() 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... |
Communication between Parent and Child process using pipe in Python | 16 Apr, 2019
Prerequisite – Creating child process in PythonAs there are many processes running simultaneously on the computer so it is very necessary to have proper communication between them as one process may be dependent on other processes.There are various methods to communicate between processes. Here is a simple... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 Apr, 2019"
},
{
"code": null,
"e": 472,
"s": 52,
"text": "Prerequisite – Creating child process in PythonAs there are many processes running simultaneously on the computer so it is very necessary to have proper communication between... |
Python string | capwords() method | 11 Aug, 2021
In Python, string capwords() method is used to capitalize all the words in the string using split() method.
Syntax: string.capwords(string, sep=None) Return Value: Returns a formatted string after above operations.
Split the argument into words using split, capitalize each word using capitalize, and join... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 138,
"s": 28,
"text": "In Python, string capwords() method is used to capitalize all the words in the string using split() method. "
},
{
"code": null,
"e": 245,
"s": 138,
"text... |
Kali Linux – Default Passwords | 30 Jun, 2020
Kali Linux is a great OS for hacking and penetration testing, but as it could be used to hack others it could even get you hacked easily. So it is recommended to use Kali Linux in live mode but during the time of installation we are asked for credentials so we enter them manually. But when we use Kali Live... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Jun, 2020"
},
{
"code": null,
"e": 410,
"s": 28,
"text": "Kali Linux is a great OS for hacking and penetration testing, but as it could be used to hack others it could even get you hacked easily. So it is recommended to use Kali Linu... |
Difference between include() and include_once() in PHP | 29 Oct, 2021
The include() function in PHP is mostly used to include the code/data of one PHP file to another file. During this process if there are any kind of errors then this require() function will display/give a warning but unlike the require() function in which the execution comes to a halt, the include() functio... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Oct, 2021"
},
{
"code": null,
"e": 424,
"s": 28,
"text": "The include() function in PHP is mostly used to include the code/data of one PHP file to another file. During this process if there are any kind of errors then this require() ... |
ReactJS UI Ant Design Tabs Component | 01 Jun, 2021
Ant Design Library has this component pre-built, and it is very easy to integrate as well. Tabs Component to used as Tabs make it easy to switch between different views. We can use the following approach in ReactJS to use the Ant Design Tabs Component.
Tabs Props:
activeKey: It is used to denote the curren... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jun, 2021"
},
{
"code": null,
"e": 281,
"s": 28,
"text": "Ant Design Library has this component pre-built, and it is very easy to integrate as well. Tabs Component to used as Tabs make it easy to switch between different views. We ca... |
How to convert Python’s .isoformat() string back into datetime object | 28 Jul, 2021
In this article, we will learn how to convert Pythons .isoFormat() string back into a datetime object. Here we are using the current time and for that, we will store the current time in the current_time variable.
The function now() of this module, does the job perfectly.
Example: Getting current time
Pytho... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 241,
"s": 28,
"text": "In this article, we will learn how to convert Pythons .isoFormat() string back into a datetime object. Here we are using the current time and for that, we will store the curre... |
How to connect Node.js application to MySQL ? | 19 Oct, 2021
Node.js is an open-source and cross-platform runtime environment built on Chrome’s V8 engine that enables us to use JavaScript outside the browser. Node.js helps us to use build server-side applications using JavaScript. In this article, we will discuss how to connect the Node.js application to MySQL. For ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Oct, 2021"
},
{
"code": null,
"e": 414,
"s": 28,
"text": "Node.js is an open-source and cross-platform runtime environment built on Chrome’s V8 engine that enables us to use JavaScript outside the browser. Node.js helps us to use bui... |
Seaborn - Color Palette | Color plays an important role than any other aspect in the visualizations. When used effectively, color adds more value to the plot. A palette means a flat surface on which a painter arranges and mixes paints.
Seaborn provides a function called color_palette(), which can be used to give colors to plots and adding more... | [
{
"code": null,
"e": 2250,
"s": 2039,
"text": "Color plays an important role than any other aspect in the visualizations. When used effectively, color adds more value to the plot. A palette means a flat surface on which a painter arranges and mixes paints.\n"
},
{
"code": null,
"e": 2383... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.