title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Gensim - Documents & Corpus | Here, we shall learn about the core concepts of Gensim, with main focus on the documents and the corpus.
Following are the core concepts and terms that are needed to understand and use Gensim −
Document − ZIt refers to some text.
Document − ZIt refers to some text.
Corpus − It refers to a collection of documents.
Corpu... | [
{
"code": null,
"e": 2157,
"s": 2052,
"text": "Here, we shall learn about the core concepts of Gensim, with main focus on the documents and the corpus."
},
{
"code": null,
"e": 2246,
"s": 2157,
"text": "Following are the core concepts and terms that are needed to understand and u... |
Reshaping Pandas DataFrames. Melt, Stack and Pivot functions | by Soner Yıldırım | Towards Data Science | Pandas is a very powerful Python data analysis library that expedites the preprocessing steps of your project. The core data structure of Pandas is DataFrame which represents data in tabular form with labeled rows and columns. In this post, I will try to explain how to reshape a dataframe by modifying row-column struct... | [
{
"code": null,
"e": 497,
"s": 172,
"text": "Pandas is a very powerful Python data analysis library that expedites the preprocessing steps of your project. The core data structure of Pandas is DataFrame which represents data in tabular form with labeled rows and columns. In this post, I will try to ... |
Machine Learning in Apache Spark for Beginners — Healthcare Data Analysis | by Sagar Daswani | Towards Data Science | Step by Step guide to build you first Machine Learning model in Apache Spark using Databricks
Apache Spark is a cluster computing framework designed for fast and efficient computation. It can handle millions of data points with a relatively low amount of computing power. Apache Spark is built on top of and is an extens... | [
{
"code": null,
"e": 265,
"s": 171,
"text": "Step by Step guide to build you first Machine Learning model in Apache Spark using Databricks"
},
{
"code": null,
"e": 734,
"s": 265,
"text": "Apache Spark is a cluster computing framework designed for fast and efficient computation. I... |
Boyer Moore Algorithm | Good Suffix heuristic - GeeksforGeeks | 31 Oct, 2019
We have already discussed Bad character heuristic variation of Boyer Moore algorithm. In this article we will discuss Good Suffix heuristic for pattern searching. Just like bad character heuristic, a preprocessing table is generated for good suffix heuristic.
Good Suffix Heuristic
Let t be substring of tex... | [
{
"code": null,
"e": 24936,
"s": 24908,
"text": "\n31 Oct, 2019"
},
{
"code": null,
"e": 25196,
"s": 24936,
"text": "We have already discussed Bad character heuristic variation of Boyer Moore algorithm. In this article we will discuss Good Suffix heuristic for pattern searching. ... |
Prototype - toObject() Method | This method returns a cloned, vanilla object.
hash.toObject();
Returns a cloned, vanilla object.
<html>
<head>
<title>Prototype examples</title>
<script type = "text/javascript" src = "/javascript/prototype.js"></script>
<script>
function showResult() {
var h = new Hash... | [
{
"code": null,
"e": 2107,
"s": 2061,
"text": "This method returns a cloned, vanilla object."
},
{
"code": null,
"e": 2125,
"s": 2107,
"text": "hash.toObject();\n"
},
{
"code": null,
"e": 2159,
"s": 2125,
"text": "Returns a cloned, vanilla object."
},
{
... |
Multi-Class Text Classification Model Comparison and Selection | by Susan Li | Towards Data Science | When working on a supervised machine learning problem with a given data set, we try different algorithms and techniques to search for models to produce general hypotheses, which then make the most accurate predictions possible about future instances. The same principles apply to text (or document) classification where ... | [
{
"code": null,
"e": 638,
"s": 47,
"text": "When working on a supervised machine learning problem with a given data set, we try different algorithms and techniques to search for models to produce general hypotheses, which then make the most accurate predictions possible about future instances. The s... |
How to get items with a specific value from documents using MongoDB shell? | To get items with a specific value, simply use find(). Let us create a collection with documents −
> db.demo563.insertOne({"Name":"Chris","Age":21,"isMarried":true}){
"acknowledged" : true, "insertedId" : ObjectId("5e8f546c54b4472ed3e8e878")
}
> db.demo563.insertOne({"Name":"Bob","Age":23,"isMarried":false}){
"ac... | [
{
"code": null,
"e": 1161,
"s": 1062,
"text": "To get items with a specific value, simply use find(). Let us create a collection with documents −"
},
{
"code": null,
"e": 1751,
"s": 1161,
"text": "> db.demo563.insertOne({\"Name\":\"Chris\",\"Age\":21,\"isMarried\":true}){\n \"a... |
C library macro - setjmp() | The C library macro int setjmp(jmp_buf environment), saves the current environment into the variable environment for later use by the function longjmp(). If this macro returns directly from the macro invocation, it returns zero but if it returns from a longjmp() function call, then it returns the value passed to longjm... | [
{
"code": null,
"e": 2351,
"s": 2007,
"text": "The C library macro int setjmp(jmp_buf environment), saves the current environment into the variable environment for later use by the function longjmp(). If this macro returns directly from the macro invocation, it returns zero but if it returns from a ... |
SAS - One Way Anova | ANOVA stands for Analysis of Variance. In SAS it is done using PROC ANOVA. It performs analysis of data from a wide variety of experimental designs. In this process, a continuous response variable, known as a dependent variable, is measured under experimental conditions identified by classification variables, known as ... | [
{
"code": null,
"e": 3069,
"s": 2583,
"text": "ANOVA stands for Analysis of Variance. In SAS it is done using PROC ANOVA. It performs analysis of data from a wide variety of experimental designs. In this process, a continuous response variable, known as a dependent variable, is measured under experi... |
mysql_secure_installation - Improve MySQL Installation Security | Let us understand the MySQL installation related program mysql_secure_installation −
This program enables the user to improve the security of their MySQL installation in the below mentioned ways:
This program enables the user to improve the security of their MySQL installation in the below mentioned ways:
The user can ... | [
{
"code": null,
"e": 1147,
"s": 1062,
"text": "Let us understand the MySQL installation related program mysql_secure_installation −"
},
{
"code": null,
"e": 1258,
"s": 1147,
"text": "This program enables the user to improve the security of their MySQL installation in the below me... |
How to use Deep Learning for Time Series Forecasting | by Christophe Pere | Towards Data Science | For a long time, I heard that the problem of time series could only be approached by statistical methods (AR[1], AM[2], ARMA[3], ARIMA[4]). These techniques are generally used by mathematicians who try to improve them continuously to constrain stationary and non-stationary time series.
A friend of mine (mathematician, ... | [
{
"code": null,
"e": 459,
"s": 172,
"text": "For a long time, I heard that the problem of time series could only be approached by statistical methods (AR[1], AM[2], ARMA[3], ARIMA[4]). These techniques are generally used by mathematicians who try to improve them continuously to constrain stationary ... |
Retail Management - Pricing | The bitterness of poor quality remains a long after low price is forgotten.
− Leon M. Cautillo
We as customers, often get to read advertisements from various retailers saying, “Quality product for right price!” This leads to following questions such as what is the right price and who sets it? What are the factors and s... | [
{
"code": null,
"e": 2091,
"s": 2015,
"text": "The bitterness of poor quality remains a long after low price is forgotten."
},
{
"code": null,
"e": 2110,
"s": 2091,
"text": "− Leon M. Cautillo"
},
{
"code": null,
"e": 2387,
"s": 2110,
"text": "We as customers,... |
numpy.random.randn() in Python - GeeksforGeeks | 28 Mar, 2022
The numpy.random.randn() function creates an array of specified shape and fills it with random values as per standard normal distribution. If positive arguments are provided, randn generates an array of shape (d0, d1, ..., dn), filled with random floats sampled from a univariate “normal” (Gaussian) distrib... | [
{
"code": null,
"e": 24873,
"s": 24845,
"text": "\n28 Mar, 2022"
},
{
"code": null,
"e": 25399,
"s": 24873,
"text": "The numpy.random.randn() function creates an array of specified shape and fills it with random values as per standard normal distribution. If positive arguments ar... |
All about Functions and Scopes in JavaScript - GeeksforGeeks | 19 Sep, 2021
In this article, we will cover all the basic concepts of JS functions, callbacks, scopes, closures in-depth which would help you to –
understand different types of functions declaration.
make better use of functions.
understand how different scopes and scope chain works in JS.
learn about closures and how ... | [
{
"code": null,
"e": 24838,
"s": 24810,
"text": "\n19 Sep, 2021"
},
{
"code": null,
"e": 24972,
"s": 24838,
"text": "In this article, we will cover all the basic concepts of JS functions, callbacks, scopes, closures in-depth which would help you to –"
},
{
"code": null,
... |
Apache Kafka - Integration With Storm | In this chapter, we will learn how to integrate Kafka with Apache Storm.
Storm was originally created by Nathan Marz and team at BackType. In a short time, Apache Storm became a standard for distributed real-time processing system that allows you to process a huge volume of data. Storm is very fast and a benchmark cloc... | [
{
"code": null,
"e": 2040,
"s": 1967,
"text": "In this chapter, we will learn how to integrate Kafka with Apache Storm."
},
{
"code": null,
"e": 2537,
"s": 2040,
"text": "Storm was originally created by Nathan Marz and team at BackType. In a short time, Apache Storm became a stan... |
C++ Program to Represent Graph Using Incidence Matrix | The incidence matrix of a graph is another representation of a graph to store into the memory. This matrix is not a square matrix. The order of the incidence matrix is V x E. Where V is the number of vertices and E is the number of edges in the graph.
In each row of this matrix we are placing the vertices, and in each ... | [
{
"code": null,
"e": 1314,
"s": 1062,
"text": "The incidence matrix of a graph is another representation of a graph to store into the memory. This matrix is not a square matrix. The order of the incidence matrix is V x E. Where V is the number of vertices and E is the number of edges in the graph."
... |
Password Entropy in Cryptography - GeeksforGeeks | 16 Feb, 2021
Password Entropy is the measure of password strength or how strong the given password is. It is a measure of effectiveness of a password against guessing or brute-force attacks. It decides whether the entered password is common and easily crack-able or not. It is calculated by knowing character set (lower ... | [
{
"code": null,
"e": 24510,
"s": 24482,
"text": "\n16 Feb, 2021"
},
{
"code": null,
"e": 24973,
"s": 24510,
"text": "Password Entropy is the measure of password strength or how strong the given password is. It is a measure of effectiveness of a password against guessing or brute-... |
How to use sizeof() operator to find the size of a data type or a variable in C# | The sizeof() datatype returns the size of a data type. Let’s say you need to find the size of int datatype −
sizeof(int);
For double datatype
sizeof(double);
Let us see the complete example to find the size of various datatypes −
Live Demo
using System;
namespace Demo {
class Program {
static void Main(str... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "The sizeof() datatype returns the size of a data type. Let’s say you need to find the size of int datatype −"
},
{
"code": null,
"e": 1184,
"s": 1171,
"text": "sizeof(int);"
},
{
"code": null,
"e": 1204,
"s": 1184,
... |
zlib.decompress(s) in Python | 06 Mar, 2020
With the help of zlib.decompress(s) method, we can decompress the compressed bytes of string into original string by using zlib.decompress(s) method.
Syntax : zlib.decompress(string)Return : Return decompressed string.
Example #1 :In this example we can see that by using zlib.decompress(s) method, we are a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Mar, 2020"
},
{
"code": null,
"e": 178,
"s": 28,
"text": "With the help of zlib.decompress(s) method, we can decompress the compressed bytes of string into original string by using zlib.decompress(s) method."
},
{
"code": nul... |
Apache Solr - On Windows Environment | In this chapter, we will discuss how to set up Solr in Windows environment. To install Solr on your Windows system, you need to follow the steps given below −
Visit the homepage of Apache Solr and click the download button.
Visit the homepage of Apache Solr and click the download button.
Select one of the mirrors to ge... | [
{
"code": null,
"e": 2183,
"s": 2024,
"text": "In this chapter, we will discuss how to set up Solr in Windows environment. To install Solr on your Windows system, you need to follow the steps given below −"
},
{
"code": null,
"e": 2248,
"s": 2183,
"text": "Visit the homepage of A... |
Type Casting operators in C++ | A cast is a special operator that forces one data type to be converted into another. As an operator, a
cast is unary and has the same precedence as any other unary operator.
The most general cast supported by most of the C++ compilers is as follows
(type) expression
Where type is the desired data type. There are other ... | [
{
"code": null,
"e": 1236,
"s": 1062,
"text": "A cast is a special operator that forces one data type to be converted into another. As an operator, a\ncast is unary and has the same precedence as any other unary operator."
},
{
"code": null,
"e": 1311,
"s": 1236,
"text": "The mos... |
How does spring boot connect localhost MySQL | For this, use application.properties −
spring.datasource.username=yourMySQLUserName
spring.datasource.password=yourMySQLPassword
spring.datasource.url=jdbc:mysql://localhost:3306/yoruDatabaseName
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
To understand the above syntax, let us create a table −
mysql> ... | [
{
"code": null,
"e": 1101,
"s": 1062,
"text": "For this, use application.properties −"
},
{
"code": null,
"e": 1319,
"s": 1101,
"text": "spring.datasource.username=yourMySQLUserName\nspring.datasource.password=yourMySQLPassword\nspring.datasource.url=jdbc:mysql://localhost:3306/y... |
How to get text from Selenium element WebElement object? | We can get text from a webelement with Selenium webdriver. The getText() methods obtains the innerText of an element. It fetches the text of an element which is visible along with its sub elements. It ignores the trailing and leading spaces.
First of all we need to identify the element with help of any of the locators ... | [
{
"code": null,
"e": 1304,
"s": 1062,
"text": "We can get text from a webelement with Selenium webdriver. The getText() methods obtains the innerText of an element. It fetches the text of an element which is visible along with its sub elements. It ignores the trailing and leading spaces."
},
{
... |
Run SQL file in MySQL database from terminal? | To run SQL file in database, you need to use below syntax:
mysql -u yourUserName -p yourDatabaseName < yourFileName.sql
To understand the above syntax, let us open command prompt using windows+R shortcut key.
The snapshot is as follows:
After pressing OK button, you will get a command prompt. The snapshot is as follows... | [
{
"code": null,
"e": 1121,
"s": 1062,
"text": "To run SQL file in database, you need to use below syntax:"
},
{
"code": null,
"e": 1182,
"s": 1121,
"text": "mysql -u yourUserName -p yourDatabaseName < yourFileName.sql"
},
{
"code": null,
"e": 1271,
"s": 1182,
... |
MATLAB - The Nested Loops | MATLAB allows to use one loop inside another loop. Following section shows few examples to illustrate the concept.
The syntax for a nested for loop statement in MATLAB is as follows −
for m = 1:j
for n = 1:k
<statements>;
end
end
The syntax for a nested while loop statement in MATLAB is as follows −
while ... | [
{
"code": null,
"e": 2256,
"s": 2141,
"text": "MATLAB allows to use one loop inside another loop. Following section shows few examples to illustrate the concept."
},
{
"code": null,
"e": 2325,
"s": 2256,
"text": "The syntax for a nested for loop statement in MATLAB is as follows ... |
JavaScript filter an array of strings, matching case insensitive substring? | Let’s first create array of strings −
let studentDetails =
[
{studentName: "John Smith"},
{studentName: "john smith"},
{studentName: "Carol Taylor"}
];
Now, match case insensitive substring, use the filter() and the concept of toLowerCase() in it.
Following is the code −
let studentDetails =
[
{studentName:... | [
{
"code": null,
"e": 1100,
"s": 1062,
"text": "Let’s first create array of strings −"
},
{
"code": null,
"e": 1223,
"s": 1100,
"text": "let studentDetails =\n[\n {studentName: \"John Smith\"},\n {studentName: \"john smith\"},\n {studentName: \"Carol Taylor\"}\n];"
},
{
... |
Action Masking with RLlib. RL algorithms learn via trial and... | by Christian Hubbs | Towards Data Science | RL algorithms learn via trial and error. The agent searches the state space early on and takes random actions to learn what leads to a good reward. Pretty straightforward.
Unfortunately, this isn’t terribly efficient, especially if we already know something about what makes a good vs. bad action in some states. Thankfu... | [
{
"code": null,
"e": 344,
"s": 172,
"text": "RL algorithms learn via trial and error. The agent searches the state space early on and takes random actions to learn what leads to a good reward. Pretty straightforward."
},
{
"code": null,
"e": 636,
"s": 344,
"text": "Unfortunately,... |
Ruby | Hash Class - GeeksforGeeks | 11 Aug, 2021
In Ruby, Hash is a collection of unique keys and their values. Hash is like an Array, except the indexing is done with the help of arbitrary keys of any object type. In Hash, the order of returning keys and their value by various iterators is arbitrary and will generally not be in the insertion order. The ... | [
{
"code": null,
"e": 23986,
"s": 23958,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 24427,
"s": 23986,
"text": "In Ruby, Hash is a collection of unique keys and their values. Hash is like an Array, except the indexing is done with the help of arbitrary keys of any object typ... |
An Interesting Method to Generate Binary Numbers from 1 to n? | Here we will see one interesting method for generating binary numbers from 1 to n. Here we are using queue. Initially the queue will hold first binary number ‘1’. Now repeatedly delete element from queue, and print it, and append 0 at the end of the front item, and append 1 at the end of the front time, and insert them... | [
{
"code": null,
"e": 1441,
"s": 1062,
"text": "Here we will see one interesting method for generating binary numbers from 1 to n. Here we are using queue. Initially the queue will hold first binary number ‘1’. Now repeatedly delete element from queue, and print it, and append 0 at the end of the fro... |
How to secure Python Flask Web APIs with Azure AD | by René Bremer | Towards Data Science | Python Flask is a popular tool to create web applications. Using Azure AD, users can authenticate to the REST APIs and retrieve data from Azure SQL. In this blog, a sample Python web application is created as follows:
1a: User logs in to web app and acquires a token
1b: User calls a REST API to request a dataset
2: Web... | [
{
"code": null,
"e": 389,
"s": 171,
"text": "Python Flask is a popular tool to create web applications. Using Azure AD, users can authenticate to the REST APIs and retrieve data from Azure SQL. In this blog, a sample Python web application is created as follows:"
},
{
"code": null,
"e": ... |
How to Install iPython on Windows? - GeeksforGeeks | 22 Sep, 2021
Ipython is a toolkit used for using Python interactively using a Python shell and also provides a Jupyter kernel to work with Python code in Jupyter notebooks. In this article, we will look into the process of installing ipython package on Windows.
The only thing that you need for installing the Scrapy mod... | [
{
"code": null,
"e": 24952,
"s": 24924,
"text": "\n22 Sep, 2021"
},
{
"code": null,
"e": 25201,
"s": 24952,
"text": "Ipython is a toolkit used for using Python interactively using a Python shell and also provides a Jupyter kernel to work with Python code in Jupyter notebooks. In ... |
Stream empty() in Java with Examples | 06 Dec, 2018
Stream empty() creates an empty sequential Stream.
Syntax :
static <T> Stream<T> empty()
Parameters :
T : The type of stream elements.
Stream : A sequence of objects that supports various methods which can be pipelined to produce the desired result.
Return Value : Stream empty() returns an empty sequentia... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 Dec, 2018"
},
{
"code": null,
"e": 79,
"s": 28,
"text": "Stream empty() creates an empty sequential Stream."
},
{
"code": null,
"e": 88,
"s": 79,
"text": "Syntax :"
},
{
"code": null,
"e": 118,
"s"... |
Create First GUI Application using Python-Tkinter | 20 Sep, 2021
Tkinter is a Python Package for creating GUI applications. Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths; it’s cross-platform, so the same code works on Windows, macOS, and Linux. Tkinter is lightweight and... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Sep, 2021"
},
{
"code": null,
"e": 648,
"s": 52,
"text": "Tkinter is a Python Package for creating GUI applications. Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library... |
SQL Query to Display All the Existing Constraints on a Table | 30 Dec, 2021
In SQL, we sometimes need to display all the currently existing constraints on a table. The whole process for doing the same is demonstrated below. For this article, we will be using the Microsoft SQL Server as our database.
Step 1: Create a Database. For this use the below command to create a database nam... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Dec, 2021"
},
{
"code": null,
"e": 253,
"s": 28,
"text": "In SQL, we sometimes need to display all the currently existing constraints on a table. The whole process for doing the same is demonstrated below. For this article, we will b... |
Number with maximum number of prime factors | 22 Jun, 2022
Given an integer N. The task is to find a number that is smaller than or equal to N and has maximum prime factors. In case there are two or more numbers with the same maximum number of prime factors, find the smallest of all.Examples:
Input : N = 10
Output : 6
Number of prime factor of:
1 : 0
2 : 1
3 : 1... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n22 Jun, 2022"
},
{
"code": null,
"e": 289,
"s": 52,
"text": "Given an integer N. The task is to find a number that is smaller than or equal to N and has maximum prime factors. In case there are two or more numbers with the same maximum... |
Python PIL | copy() method | 25 Jun, 2019
Syntax:Image.copy()
Parameters: no arguments
Returns:An image object
# Importing Image module from PIL packagefrom PIL import Image # creating a image objectim1 = Image.open(r"C:\Users\sadow984\Desktop\i3.PNG") # copying image to another image objectim2 = im1.copy() # shows the copied imageim2.show()... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 100,
"s": 28,
"text": "Syntax:Image.copy()\n\nParameters: no arguments\n\nReturns:An image object\n"
},
{
"code": "# Importing Image module from PIL packagefrom PIL import Image # creating ... |
Install Apache Spark in a Standalone Mode on Windows | 15 Mar, 2021
Apache Spark is a lightning-fast unified analytics engine used for cluster computing for large data sets like BigData and Hadoop with the aim to run programs parallel across multiple nodes. It is a combination of multiple stack libraries such as SQL and Dataframes, GraphX, MLlib, and Spark Streaming.
Spark... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 330,
"s": 28,
"text": "Apache Spark is a lightning-fast unified analytics engine used for cluster computing for large data sets like BigData and Hadoop with the aim to run programs parallel across m... |
Sort the matrix column-wise | 04 Jul, 2022
Given a matrix mat[][] of dimensions N * M, the task is to sort each column of a matrix in ascending order and print the updated matrix.
Examples:
Input: mat[][] = { {1, 6, 10}, {8, 5, 9}, {9, 4, 15}, {7, 3, 60} }Output:1 3 97 4 108 5 159 6 60Explanation:The input matrix is sorted in a column wise manner, ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Jul, 2022"
},
{
"code": null,
"e": 165,
"s": 28,
"text": "Given a matrix mat[][] of dimensions N * M, the task is to sort each column of a matrix in ascending order and print the updated matrix."
},
{
"code": null,
"e": 1... |
How to pass or return a structure to/from a Function in C/C++? | 16 Dec, 2019
A structure is a user-defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type.
How to pass structure as an argument to the functions?
Passing of structure to the function can be done in two ways:
By passing all the elements ... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n16 Dec, 2019"
},
{
"code": null,
"e": 216,
"s": 54,
"text": "A structure is a user-defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type."
},
{
... |
Multicollinearity in Data | 27 Sep, 2021
The variable should have a robust relationship with independent variables. However, any unbiased variables shouldn’t have robust correlations among other independent variables. Collinearity can be a linear affiliation among explanatory variables. Two variables are perfectly collinear if there’s a particula... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Sep, 2021"
},
{
"code": null,
"e": 1564,
"s": 28,
"text": "The variable should have a robust relationship with independent variables. However, any unbiased variables shouldn’t have robust correlations among other independent variable... |
Java Program to Return the Elements at Odd Positions in a List | 17 Dec, 2020
Given a List, the task is to return the elements at Odd positions in a list. Let’s consider the following list.
Clearly, we can see that elements 20, 40, 60 are at Odd Positions as the index of the list is zero-based. Now we should return these elements.
Approach 1:
Initialize a temporary value with zero.
... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n17 Dec, 2020"
},
{
"code": null,
"e": 140,
"s": 28,
"text": "Given a List, the task is to return the elements at Odd positions in a list. Let’s consider the following list."
},
{
"code": null,
"e": 283,
"s": 140,
"te... |
C Program to print all permutations of a given string | 10 Dec, 2021
A permutation also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation.
Source: Mathword(http://mathworld.wolfram.com/Permutation.html)
Below are the permutations of strin... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n10 Dec, 2021"
},
{
"code": null,
"e": 260,
"s": 52,
"text": "A permutation also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string... |
Java Program for Matrix Chain Multiplication | DP-8 | 12 Dec, 2018
Given a sequence of matrices, find the most efficient way to multiply these matrices together. The problem is not actually to perform the multiplications, but merely to decide in which order to perform the multiplications.
We have many options to multiply a chain of matrices because matrix multiplication i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n12 Dec, 2018"
},
{
"code": null,
"e": 251,
"s": 28,
"text": "Given a sequence of matrices, find the most efficient way to multiply these matrices together. The problem is not actually to perform the multiplications, but merely to decide... |
Time when minute hand and hour hand coincide | 09 Mar, 2021
Given time in hours, find the time in minute at which the minute hand and hour hand coincide in next one hour.Examples :
Input : 3
Output : (180/11) minutes
Input :7
Output : (420/11) minutes
Approach : 1. Take two variables for hour “h1 and h2” and then find the angle “theta” [theta = (30 * h1)] and... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n09 Mar, 2021"
},
{
"code": null,
"e": 176,
"s": 53,
"text": "Given time in hours, find the time in minute at which the minute hand and hour hand coincide in next one hour.Examples : "
},
{
"code": null,
"e": 249,
"s": ... |
Tryit Editor v3.6 - Show Python | username = input("Enter username:")
print("Username is: " + username) | [
{
"code": null,
"e": 36,
"s": 0,
"text": "username = input(\"Enter username:\")"
}
] |
Conda + Google Colab. A guide to installing Conda when using... | by David R. Pugh | Towards Data Science | Conda is the recommended environment and package management solution for a number of popular data science tools including Pandas, Scikit-Learn, PyTorch, NVIDIA Rapids and many others. Conda also dramatically simplifies the process of installing popular deep learning tools like TensorFlow.
Google Colab is a free service... | [
{
"code": null,
"e": 462,
"s": 172,
"text": "Conda is the recommended environment and package management solution for a number of popular data science tools including Pandas, Scikit-Learn, PyTorch, NVIDIA Rapids and many others. Conda also dramatically simplifies the process of installing popular de... |
Implementing the Perceptron Algorithm in Python | by Suraj Verma | Towards Data Science | In this article, we are going to look at the Perceptron Algorithm, which is the most basic single-layered neural network used for binary classification. First, we will look at the Unit Step Function and see how the Perceptron Algorithm classifies and then have a look at the perceptron update rule.
Finally, we will plot... | [
{
"code": null,
"e": 471,
"s": 172,
"text": "In this article, we are going to look at the Perceptron Algorithm, which is the most basic single-layered neural network used for binary classification. First, we will look at the Unit Step Function and see how the Perceptron Algorithm classifies and then... |
Clone a linked list with next and random pointer | Set 1 - GeeksforGeeks | 17 Feb, 2022
You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list. The second pointer however CAN point to any node in the list and not just the previous node. Now write a program in O(n) time to duplicate this list. That is, write a program which will... | [
{
"code": null,
"e": 24267,
"s": 24239,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 24604,
"s": 24267,
"text": "You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list. The second pointer however CAN point to a... |
BK-Tree | Introduction & Implementation - GeeksforGeeks | 20 Apr, 2022
BK Tree or Burkhard Keller Tree is a data structure that is used to perform spell check based on Edit Distance (Levenshtein distance) concept. BK trees are also used for approximate string matching. Various auto correct feature in many software can be implemented based on this data structure.
Pre-requisit... | [
{
"code": null,
"e": 24486,
"s": 24458,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 24781,
"s": 24486,
"text": "BK Tree or Burkhard Keller Tree is a data structure that is used to perform spell check based on Edit Distance (Levenshtein distance) concept. BK trees are also us... |
How I Coded Technical Indicators for Bitcoin | Towards Data Science | When it comes to trading, there are a variety of techniques that can be applied to find the most optimum time to invest. Some could look at the financials and see if there is value behind the curtains. Others might look to the daily news and observe how it may influence the current price. Another group might actually l... | [
{
"code": null,
"e": 605,
"s": 172,
"text": "When it comes to trading, there are a variety of techniques that can be applied to find the most optimum time to invest. Some could look at the financials and see if there is value behind the curtains. Others might look to the daily news and observe how i... |
Groovy - Break Statement | The break statement is used to alter the flow of control inside loops and switch statements. We have already seen the break statement in action in conjunction with the switch statement. The break statement can also be used with while and for statements. Executing a break statement with any of these looping constructs c... | [
{
"code": null,
"e": 2619,
"s": 2238,
"text": "The break statement is used to alter the flow of control inside loops and switch statements. We have already seen the break statement in action in conjunction with the switch statement. The break statement can also be used with while and for statements.... |
Ruby on Rails - Models | Model.new # creates a new empty model
Model.create( :field ⇒ 'value', :other_field ⇒ 42 )
# creates an object with the passed parameters and saves it
Model.find_or_create_by_field( value )
# searches for a record where "field = value", creates
# a new record if not found
User.find_or_create_by_name_and_email( 'ra... | [
{
"code": null,
"e": 2449,
"s": 2103,
"text": "Model.new # creates a new empty model\nModel.create( :field ⇒ 'value', :other_field ⇒ 42 )\n# creates an object with the passed parameters and saves it\n\nModel.find_or_create_by_field( value ) \n# searches for a record where \"field = value\", creat... |
Maximum occured integer | Practice | GeeksforGeeks | Given n integer ranges, the task is to find the maximum occurring integer in these ranges. If more than one such integer exits, find the smallest one. The ranges are given as two arrays L[] and R[]. L[i] consists of starting point of range and R[i] consists of corresponding end point of the range.
For example conside... | [
{
"code": null,
"e": 539,
"s": 238,
"text": "Given n integer ranges, the task is to find the maximum occurring integer in these ranges. If more than one such integer exits, find the smallest one. The ranges are given as two arrays L[] and R[]. L[i] consists of starting point of range and R[i] consi... |
SQL Aliases | SQL aliases are used to give a table, or a column in a table, a temporary name.
Aliases are often used to make column names more readable.
An alias only exists for the duration of that query.
An alias is created with the AS keyword.
In this tutorial we will use the well-known Northwind sample database.
Below is a selec... | [
{
"code": null,
"e": 80,
"s": 0,
"text": "SQL aliases are used to give a table, or a column in a table, a temporary name."
},
{
"code": null,
"e": 139,
"s": 80,
"text": "Aliases are often used to make column names more readable."
},
{
"code": null,
"e": 192,
"s": ... |
A financial neural network for quants | by Nicolus Rotich | Towards Data Science | Artificial intelligence (AI) is continuously becoming an integral part of what we do nowadays, from the suggestions of the YouTube videos we ought to watch, to the algorithms running our high frequency trading in the Wall Street. Indeed Google algorithms know what we prefer, better than what we want. That was according... | [
{
"code": null,
"e": 673,
"s": 171,
"text": "Artificial intelligence (AI) is continuously becoming an integral part of what we do nowadays, from the suggestions of the YouTube videos we ought to watch, to the algorithms running our high frequency trading in the Wall Street. Indeed Google algorithms ... |
Hotel Management System | 10 Feb, 2022
Given the data for Hotel management and User:Hotel Data:
Hotel Name Room Available Location Rating Price per Room
H1 4 Bangalore 5 100
H2 5 Bangalore 5 200
H3 6 Mumbai ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 86,
"s": 28,
"text": "Given the data for Hotel management and User:Hotel Data: "
},
{
"code": null,
"e": 355,
"s": 86,
"text": "Hotel Name Room Available Location Rat... |
Flatten A list of NumPy arrays | 16 Sep, 2021
Prerequisite Differences between Flatten() and Ravel() Numpy Functions, numpy.ravel() in Python,
In this article, we will see how we can flatten a list of numpy arrays. NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a lar... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Sep, 2021"
},
{
"code": null,
"e": 126,
"s": 28,
"text": "Prerequisite Differences between Flatten() and Ravel() Numpy Functions, numpy.ravel() in Python, "
},
{
"code": null,
"e": 414,
"s": 126,
"text": "In this ... |
How to add Custom Fonts in Android | 22 Aug, 2021
Google Fonts provide a wide variety of fonts that can be used to style the text in Android Studio. Appropriate fonts do not just enhance the user interface but they also signify and emphasize the purpose of the text. There are majorly three methods to add custom fonts to text in Android Studio. The first t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Aug, 2021"
},
{
"code": null,
"e": 486,
"s": 28,
"text": "Google Fonts provide a wide variety of fonts that can be used to style the text in Android Studio. Appropriate fonts do not just enhance the user interface but they also signi... |
Parse XML using Minidom in Python | 10 Jul, 2020
DOM (document object model) is a cross-language API from W3C i.e. World Wide Web Consortium for accessing and modifying XML documents. Python enables you to parse XML files with the help of xml.dom.minidom, which is the minimal implementation of the DOM interface. It is simpler than the full DOM API and sh... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Jul, 2020"
},
{
"code": null,
"e": 366,
"s": 28,
"text": "DOM (document object model) is a cross-language API from W3C i.e. World Wide Web Consortium for accessing and modifying XML documents. Python enables you to parse XML files wi... |
Java Program to Convert Date to TimeStamp | 22 Oct, 2021
We can convert date to timestamp using the Timestamp class which is present in the SQL package.
The constructor of the time-stamp class requires a long value.
So data needs to be converted into a long value by using the getTime() method of the date class(which is present in the util package).
Example:
Inp... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 125,
"s": 28,
"text": "We can convert date to timestamp using the Timestamp class which is present in the SQL package. "
},
{
"code": null,
"e": 188,
"s": 125,
"text": "The const... |
Stack machine in Computer Organisation | 19 Feb, 2020
Instruction formats are classified into different types depending upon the CPU organization. CPU organization is again classified into three types based on internal storage: Stack machine, Accumulator machine, General purpose organization or General register. In this article, we will learn about the stack ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n19 Feb, 2020"
},
{
"code": null,
"e": 370,
"s": 28,
"text": "Instruction formats are classified into different types depending upon the CPU organization. CPU organization is again classified into three types based on internal storage: S... |
How to Implement Notification Counter in Android? | 20 Sep, 2021
Notification Counter basically counts the notifications that you got through an application and shows on the top of your application icon so that you get to know you get new messages or any new update without opening your application or specific feature like the message button in Instagram. Notification co... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Sep, 2021"
},
{
"code": null,
"e": 591,
"s": 28,
"text": "Notification Counter basically counts the notifications that you got through an application and shows on the top of your application icon so that you get to know you get new m... |
PostgreSQL – LIKE operator | 28 Aug, 2020
The PostgreSQL LIKE operator is used query data using pattern matching techniques. Its result include strings that are case-sensitive and follow the mentioned pattern.It is important to know that PostgreSQL provides with 2 special wildcard characters for the purpose of patterns matching as below:
Percent (... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2020"
},
{
"code": null,
"e": 326,
"s": 28,
"text": "The PostgreSQL LIKE operator is used query data using pattern matching techniques. Its result include strings that are case-sensitive and follow the mentioned pattern.It is im... |
Program to print the Fish Pattern | 23 Nov, 2021
Given an integer N, the task is to print a pattern of fish over 2N+1 rows.
Example:
Input: N=3Output: * *** * ***** ************ ***** ** *** * *
Input: N=5Output: * *** * ***** ** ******* *** **... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 Nov, 2021"
},
{
"code": null,
"e": 128,
"s": 53,
"text": "Given an integer N, the task is to print a pattern of fish over 2N+1 rows."
},
{
"code": null,
"e": 137,
"s": 128,
"text": "Example:"
},
{
"code":... |
How to center a div within another div? - GeeksforGeeks | 09 Jan, 2020
The div tag is used to construct a division or section of an HTML document in which other elements of HTML is placed and that division/section works like a container whose CSS styling can be done as a single unit or javascript can be used to perform various tasks on that container.
Syntax:
<div>
<h3>'Thi... | [
{
"code": null,
"e": 31393,
"s": 31365,
"text": "\n09 Jan, 2020"
},
{
"code": null,
"e": 31676,
"s": 31393,
"text": "The div tag is used to construct a division or section of an HTML document in which other elements of HTML is placed and that division/section works like a contain... |
JavaScript - Math max Method | This method returns the largest of zero or more numbers. If no arguments are given, the results is –Infinity.
Its syntax is as follows −
Math.max(value1, value2, ... valueN ) ;
value1, value2, ... valueN : Numbers.
Returns the largest of zero or more numbers.
Try the following example program.
<html>
<head>
... | [
{
"code": null,
"e": 2576,
"s": 2466,
"text": "This method returns the largest of zero or more numbers. If no arguments are given, the results is –Infinity."
},
{
"code": null,
"e": 2603,
"s": 2576,
"text": "Its syntax is as follows −"
},
{
"code": null,
"e": 2644,
... |
C# Any Method | The Any method checks whether any of the element in a sequence satisfy a specific condition or not.
If any element satisfy the condition, true is returned.
Let us see an example.
int[] arr = {5, 7, 10, 12, 15, 18, 20};
Now, using Any() method, we will check whether any of the element in the above array is greater than ... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "The Any method checks whether any of the element in a sequence satisfy a specific condition or not."
},
{
"code": null,
"e": 1218,
"s": 1162,
"text": "If any element satisfy the condition, true is returned."
},
{
"code": null... |
How do I insert a JPEG image into a Python Tkinter window? | Python provides the Pillow (PIL) package to support, process, and display the images in tkinter applications. A Tkinter application generally supports image files such as, ppm, png, and gif.
Let us suppose we want to embed and display a JPEG or JPG image in our application.
Tkinter Label widgets are generally used to d... | [
{
"code": null,
"e": 1253,
"s": 1062,
"text": "Python provides the Pillow (PIL) package to support, process, and display the images in tkinter applications. A Tkinter application generally supports image files such as, ppm, png, and gif."
},
{
"code": null,
"e": 1337,
"s": 1253,
... |
How to use ORDER BY field and sort by id in a single MySQL field? | For this, you can use ORDER BY FIELD. Let us first create a table −
mysql> create table DemoTable
-> (
-> Id int,
-> Name varchar(20)
-> );
Query OK, 0 rows affected (1.78 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values(101,'Chris');
Query OK, 1 row affected ... | [
{
"code": null,
"e": 1130,
"s": 1062,
"text": "For this, you can use ORDER BY FIELD. Let us first create a table −"
},
{
"code": null,
"e": 1251,
"s": 1130,
"text": "mysql> create table DemoTable\n -> (\n -> Id int,\n -> Name varchar(20)\n -> );\nQuery OK, 0 rows affected... |
How to explicitly call base class constructor from child class in C#? | Make use of this keyword in c# to call one constructor from another constructor To call a constructor which is present in parent class make use of base keyword
To call a constructor which is present in another class make use of base keyword
class DemoBase{
public DemoBase(int firstNumber, int secondNumber, int third... | [
{
"code": null,
"e": 1222,
"s": 1062,
"text": "Make use of this keyword in c# to call one constructor from another constructor To call a constructor which is present in parent class make use of base keyword"
},
{
"code": null,
"e": 1303,
"s": 1222,
"text": "To call a constructor ... |
Filtering Lists in Python. Filtering Methods in Python | by Sadrach Pierre, Ph.D. | Towards Data Science | In this post, we will discuss three methods for list filtering in Python. Specifically, we will walk through how to use list comprehension, generator expressions and the built-in ‘filter()’ method to filter lists in python.
Let’s get started!
Suppose we have data in a list and we want to extract values or reduce the li... | [
{
"code": null,
"e": 396,
"s": 172,
"text": "In this post, we will discuss three methods for list filtering in Python. Specifically, we will walk through how to use list comprehension, generator expressions and the built-in ‘filter()’ method to filter lists in python."
},
{
"code": null,
... |
How to call an activity method from a fragment in Android App using Kotlin. | This example demonstrates how to call an activity method from a fragment in an Android App using Kotlin.
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" e... | [
{
"code": null,
"e": 1167,
"s": 1062,
"text": "This example demonstrates how to call an activity method from a fragment in an Android App using Kotlin."
},
{
"code": null,
"e": 1296,
"s": 1167,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and... |
Bash program to check if the Number is a Palindrome? | To check whether a number is palindrome or not, we have to reverse the number, and then if the actual number and the reversed number are same, then this is palindrome. In Bash, performing the reverse operation is very easy. We have to use the ‘rev’ command to do that. Let us see the program to understand clearly.
#!/bi... | [
{
"code": null,
"e": 1377,
"s": 1062,
"text": "To check whether a number is palindrome or not, we have to reverse the number, and then if the actual number and the reversed number are same, then this is palindrome. In Bash, performing the reverse operation is very easy. We have to use the ‘rev’ comm... |
How to make bar and hbar charts with labels using matplotlib | by Jacob Toftgaard Rasmussen | Towards Data Science | The first time I made a bar chart I could not immediately figure out how to add labels to the bars. Especially the horizontal bar charts were troublesome for me. So don’t worry if you also cannot make it work. In this post you will learn how this is done along with some tips and tricks for styling the diagram.
NOTE: If... | [
{
"code": null,
"e": 483,
"s": 171,
"text": "The first time I made a bar chart I could not immediately figure out how to add labels to the bars. Especially the horizontal bar charts were troublesome for me. So don’t worry if you also cannot make it work. In this post you will learn how this is done ... |
What is setTimeout() Method in javascript? | This is one of the many timing events. The window object allows the execution of code at specified time intervals. This object has provided SetTimeout() to execute a function after a certain amount of time. It takes two parameters as arguments. One is the function and the other is the time that specifies the interval a... | [
{
"code": null,
"e": 1426,
"s": 1062,
"text": "This is one of the many timing events. The window object allows the execution of code at specified time intervals. This object has provided SetTimeout() to execute a function after a certain amount of time. It takes two parameters as arguments. One is t... |
C# Substring() Method | The Substring() method in C# is used to retrieve a substring from this instance. The substring starts at a specified character position and continues to the end of the string.
The syntax is as follows -
public string Substring (int begnIndex);
public string Substring (int begnIndex, int len);
Above, begnIndex is the ze... | [
{
"code": null,
"e": 1238,
"s": 1062,
"text": "The Substring() method in C# is used to retrieve a substring from this instance. The substring starts at a specified character position and continues to the end of the string."
},
{
"code": null,
"e": 1265,
"s": 1238,
"text": "The sy... |
Perl | Use of Hash bang or Shebang line - GeeksforGeeks | 11 Jul, 2019
Practical Extraction and Reporting Language or Perl is an interpreter based language. Hash-bangs or shebangs are useful when we are executing Perl scripts on Unix-like systems such as Linux and Mac OSX. A Hashbang line is the first line of a Perl program and is a path to the Perl binary. It allows invoking... | [
{
"code": null,
"e": 23990,
"s": 23962,
"text": "\n11 Jul, 2019"
},
{
"code": null,
"e": 24414,
"s": 23990,
"text": "Practical Extraction and Reporting Language or Perl is an interpreter based language. Hash-bangs or shebangs are useful when we are executing Perl scripts on Unix-... |
CONCAT() function in SQL Server | 28 Dec, 2020
CONCAT() :This function in SQL Server helps to concatenate two or more strings together. CONCAT() function can accept a minimum of 2 parameters and a maximum of 254 parameters.
Syntax :
CONCAT(string_1, string_2, .......string_n)
Parameters :
string_1, string_2, .......string_n –The given strings which nee... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Dec, 2020"
},
{
"code": null,
"e": 205,
"s": 28,
"text": "CONCAT() :This function in SQL Server helps to concatenate two or more strings together. CONCAT() function can accept a minimum of 2 parameters and a maximum of 254 parameters... |
Simple registration form using Python Tkinter | 09 Sep, 2021
Prerequisites: Tkinter Introduction, openpyxl module.Python provides the Tkinter toolkit to develop GUI applications. Now, it’s upto the imagination or necessity of developer, what he/she want to develop using this toolkit. Let’s make a simple information form GUI application using Tkinter. In this applica... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n09 Sep, 2021"
},
{
"code": null,
"e": 479,
"s": 54,
"text": "Prerequisites: Tkinter Introduction, openpyxl module.Python provides the Tkinter toolkit to develop GUI applications. Now, it’s upto the imagination or necessity of developer... |
Linear Regression Implementation From Scratch using Python | 01 Oct, 2020
Linear Regression is a supervised learning algorithm which is both a statistical and a machine learning algorithm. It is used to predict the real-valued output y based on the given input value x. It depicts the relationship between the dependent variable y and the independent variables xi ( or features ).... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 435,
"s": 54,
"text": "Linear Regression is a supervised learning algorithm which is both a statistical and a machine learning algorithm. It is used to predict the real-valued output y based on the... |
Salesforce Interview Experience for SDE Internship (On-Campus) | 08 Sep, 2020
This article is about my Internship Interview experience with Salesforce’s Campus Recruitment Program (Futureforce) at IIT (ISM) Dhanbad. The process took place in the first week of September in total virtual mode.
Round 1:Online Coding Round
Platform: Hackerrank
Duration: 1 hour 15 min.
No. Of Questions:... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Sep, 2020"
},
{
"code": null,
"e": 244,
"s": 28,
"text": "This article is about my Internship Interview experience with Salesforce’s Campus Recruitment Program (Futureforce) at IIT (ISM) Dhanbad. The process took place in the first w... |
How to fadeOut and remove a div using jQuery ? | 03 Jun, 2019
Given a div element. The task is to remove it with a fadeOut effect using JQuery. Here are few methods discussed.First few methods to know.
jQuery text() Method:This method sets/returns the text content of the selected elements.If this method is used to return content, it provides the text content of all m... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n03 Jun, 2019"
},
{
"code": null,
"e": 168,
"s": 28,
"text": "Given a div element. The task is to remove it with a fadeOut effect using JQuery. Here are few methods discussed.First few methods to know."
},
{
"code": null,
"e"... |
Python | os.umask() method | 26 Jan, 2022
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.
os.umask() method in Python is used to set the current numeric umask value and get the p... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n26 Jan, 2022"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin... |
List get() method in Java with Examples | 11 Dec, 2018
The get() method of List interface in Java is used to get the element present in this list at a given specific index.
Syntax :
E get(int index)
Where, E is the type of element maintained
by this List container.
Parameter : This method accepts a single parameter index of type integer which represents the ... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 171,
"s": 53,
"text": "The get() method of List interface in Java is used to get the element present in this list at a given specific index."
},
{
"code": null,
"e": 180,
"s": 171,
... |
HTML | DOM Input Image disabled Property | 21 Jun, 2022
The HTML DOM Input Image disabled Property is used to set or return the boolean value that represents an image field should be disabled or not. By default, the disabled elements are displayed in gray and are unusable and unclickable.
Syntax:
It returns the disabled property.
imageObject.disabled
It is use... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 263,
"s": 28,
"text": "The HTML DOM Input Image disabled Property is used to set or return the boolean value that represents an image field should be disabled or not. By default, the disabled elemen... |
GridView in Android with Example | 06 Sep, 2021
A GridView is a type of AdapterView that displays items in a two-dimensional scrolling grid. Items are inserted into this grid layout from a database or from an array. The adapter is used for displaying this data, setAdapter() method is used to join the adapter with GridView. The main function of the adapt... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Sep, 2021"
},
{
"code": null,
"e": 629,
"s": 54,
"text": "A GridView is a type of AdapterView that displays items in a two-dimensional scrolling grid. Items are inserted into this grid layout from a database or from an array. The ad... |
Python PIL | blend() method | 25 Jun, 2019
Syntax: PIL.Image.blend(image1, image2, alpha).
Parameter:image1: first imageimage2: second image, must have the same mode and size as the first image.alpha: The interpolation alpha factor. If alpha is 0.0, a copy of the first image is returned. If alpha is 1.0, a copy of the second image is returned. Ther... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n25 Jun, 2019"
},
{
"code": null,
"e": 100,
"s": 52,
"text": "Syntax: PIL.Image.blend(image1, image2, alpha)."
},
{
"code": null,
"e": 475,
"s": 100,
"text": "Parameter:image1: first imageimage2: second image, must h... |
Find Prime Adam integers in the given range [L, R] | 08 Nov, 2021
Given two numbers L and R which signifies a range [L, R], the task is to print all the prime adam integers in this range.Note: A number which is both prime, as well as adam, is known as a prime adam number. Examples:
Input: L = 5, R = 100 Output: 11 13 31 Explanation: The three numbers 11, 13, 31 are pri... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n08 Nov, 2021"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "Given two numbers L and R which signifies a range [L, R], the task is to print all the prime adam integers in this range.Note: A number which is both prime, as well as adam, i... |
AutoVIML: Automating Machine Learning | by Himanshu Sharma | Towards Data Science | Machine Learning provides the advantage of studying algorithms which improves automatically with experience. There are ’n’ numbers of machine learning algorithms and techniques and generally, we need to test most of them in order to find the best prediction model for our dataset which has the highest accuracy.
Most of ... | [
{
"code": null,
"e": 484,
"s": 172,
"text": "Machine Learning provides the advantage of studying algorithms which improves automatically with experience. There are ’n’ numbers of machine learning algorithms and techniques and generally, we need to test most of them in order to find the best predicti... |
JavaScript if else else if | Conditional statements are used to perform different actions based on different conditions.
Very often when you write code, you want to perform different actions for different decisions.
You can use conditional statements in your code to do this.
In JavaScript we have the following conditional statements:
Use if to spe... | [
{
"code": null,
"e": 92,
"s": 0,
"text": "Conditional statements are used to perform different actions based on different conditions."
},
{
"code": null,
"e": 187,
"s": 92,
"text": "Very often when you write code, you want to perform different actions for different decisions."
... |
Pure CSS Menus - GeeksforGeeks | 18 Oct, 2021
Menus are the main tools for visitors to navigate throughout a website. Pure.CSS comes up with very simple vertical and horizontal menus that can be easily customized by the developer.
Pure CSS Menu Classes:
Vertical Menu
Horizontal Menu
Selected and Disabled Items Inside a Menu
Dropdown Menu
Vertical Menu... | [
{
"code": null,
"e": 24985,
"s": 24957,
"text": "\n18 Oct, 2021"
},
{
"code": null,
"e": 25170,
"s": 24985,
"text": "Menus are the main tools for visitors to navigate throughout a website. Pure.CSS comes up with very simple vertical and horizontal menus that can be easily customi... |
Count number of lines in a text file in Python | 08 Jul, 2022
Prerequisites: File Handling in Python
Counting the number of characters is important because almost all the text boxes that rely on user input have a certain limit on the number of characters that can be inserted. For example, If the file is small, you can use readlines() or an A loop approach. If you ha... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n08 Jul, 2022"
},
{
"code": null,
"e": 92,
"s": 52,
"text": "Prerequisites: File Handling in Python "
},
{
"code": null,
"e": 660,
"s": 92,
"text": "Counting the number of characters is important because almost all t... |
Angular CLI - ng version Command | This chapter explains the syntax, options of ng version command along with an example.
The syntax for ng version command is as follows −
ng version [options]
ng v [options]
ng version command shows the Angular CLI version installed.
Options are optional parameters.
An example for ng version command is given below −
\>... | [
{
"code": null,
"e": 2296,
"s": 2209,
"text": "This chapter explains the syntax, options of ng version command along with an example."
},
{
"code": null,
"e": 2346,
"s": 2296,
"text": "The syntax for ng version command is as follows −"
},
{
"code": null,
"e": 2383,
... |
Random Pick with Weight in C++ | Suppose we have an array w of positive integers, were w[i] describes the weight of index i, we have to define a function pickIndex() which randomly picks an index in proportion to its weight.
So if the input is like [1,3], call pickIndex() five times, then the answer may come as − 0, 1, 1, 1, 0.
To solve this, we will ... | [
{
"code": null,
"e": 1379,
"s": 1187,
"text": "Suppose we have an array w of positive integers, were w[i] describes the weight of index i, we have to define a function pickIndex() which randomly picks an index in proportion to its weight."
},
{
"code": null,
"e": 1484,
"s": 1379,
... |
Perl | Arrays | 26 Nov, 2019
In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list is termed as an element. Elements can either be a number, string, or any type of scalar data including another variable. Example:
@number = (50, 70, 46);
@names = ("Geeks", "... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n26 Nov, 2019"
},
{
"code": null,
"e": 303,
"s": 53,
"text": "In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list is termed as an element. Elements can either be a numb... |
PL/SQL - Triggers | In this chapter, we will discuss Triggers in PL/SQL. Triggers are stored programs, which are automatically executed or fired when some events occur. Triggers are, in fact, written to be executed in response to any of the following events −
A database manipulation (DML) statement (DELETE, INSERT, or UPDATE)
A database m... | [
{
"code": null,
"e": 2439,
"s": 2199,
"text": "In this chapter, we will discuss Triggers in PL/SQL. Triggers are stored programs, which are automatically executed or fired when some events occur. Triggers are, in fact, written to be executed in response to any of the following events −"
},
{
... |
Docker – Concept of Dockerfile | 28 Jul, 2021
Dockerfile is a simple text file with instructions to build a Docker image. As shown below dockerfile is a simple text file where we give some instructions to build an image. And when we run docker build command a file image gets created.
If you want to create your own image you can use a dockerfile. So d... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 268,
"s": 28,
"text": "Dockerfile is a simple text file with instructions to build a Docker image. As shown below dockerfile is a simple text file where we give some instructions to build an image.... |
Python | os.sched_setaffinity() method | 02 Nov, 2021
OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.
os.sched_setaffinity() method in Python is used to set the CPU affinity mask of a proces... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Nov, 2021"
},
{
"code": null,
"e": 247,
"s": 28,
"text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of usin... |
How to Select date from a datepicker with Selenium Webdriver using Python? | We can select a date from a datepicker with Selenium webdriver using Python. To identify a particular date, first we have to use the find_elements method and identify all the dates having a common locator value.
The find_elements returns a list of matching elements. We have to iterate through this list and search for t... | [
{
"code": null,
"e": 1399,
"s": 1187,
"text": "We can select a date from a datepicker with Selenium webdriver using Python. To identify a particular date, first we have to use the find_elements method and identify all the dates having a common locator value."
},
{
"code": null,
"e": 1620... |
Interface in Java | An interface is a reference type in Java. It is similar to a class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface.
Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types. ... | [
{
"code": null,
"e": 1386,
"s": 1187,
"text": "An interface is a reference type in Java. It is similar to a class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface."
},
{
"code": null,
"e": 1572,
"s": 13... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.