title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
Docker for Data Science — A Step by Step Guide | by Dean Pleban | Towards Data Science | A lot has already been said about why Docker can improve your life as a data scientist. I was working on an (un-)cool depth estimation project using Fast.ai with a few friends when I stumbled upon this tweet by @jeremyphoward.
It so happens that we were using Docker to create our data science workspace for the project,... | [
{
"code": null,
"e": 399,
"s": 172,
"text": "A lot has already been said about why Docker can improve your life as a data scientist. I was working on an (un-)cool depth estimation project using Fast.ai with a few friends when I stumbled upon this tweet by @jeremyphoward."
},
{
"code": null,
... |
C++ Array Library - front() Function | The C++ function std::array::front() returns reference to the first element of the array container. If array size is zero then behavior of this method is undefined. Unlike begin()
method this method returns first element itself and not iterator.
Following is the declaration for std::array::front() function form std::ar... | [
{
"code": null,
"e": 2849,
"s": 2603,
"text": "The C++ function std::array::front() returns reference to the first element of the array container. If array size is zero then behavior of this method is undefined. Unlike begin()\nmethod this method returns first element itself and not iterator."
},
... |
Best of arXiv—Readings for November 2021 | by Sergi Castella i Sapé | Towards Data Science | After a slow summer break, the ML world has been back at full speed for the past month: conferences getting back to in-person format, new parameter count records, Deepmind being the Robin Hood of Reinforcement Learning or a GPT-3 like model (T-0) now published and open-sourced.
Nonetheless, as we approach the end of 20... | [
{
"code": null,
"e": 325,
"s": 46,
"text": "After a slow summer break, the ML world has been back at full speed for the past month: conferences getting back to in-person format, new parameter count records, Deepmind being the Robin Hood of Reinforcement Learning or a GPT-3 like model (T-0) now publi... |
Divide an array into K subarray with the given condition - GeeksforGeeks | 06 May, 2021
Given an array arr[] and an integer K. The task is to divide the array into K parts ( subarray ) such that the sum of the values of all subarray is minimum.The value of every subarray is defined as:
Take the maximum from that subarray.
Subtract each element of the subarray with the maximum.
Take the sum ... | [
{
"code": null,
"e": 25378,
"s": 25350,
"text": "\n06 May, 2021"
},
{
"code": null,
"e": 25579,
"s": 25378,
"text": "Given an array arr[] and an integer K. The task is to divide the array into K parts ( subarray ) such that the sum of the values of all subarray is minimum.The val... |
Deploy a Python model (more efficiently) over Spark | by Schaun Wheeler | Towards Data Science | UPDATE: I wrote about another way of deploying Scikit-Learn models over Spark that avoids some of the problems of this approach.
I’m posting this so other people can hopefully avoid some of the pain I had to go through. There are times when I want to train a model in scikit-learn, but model outcomes for all records in ... | [
{
"code": null,
"e": 301,
"s": 172,
"text": "UPDATE: I wrote about another way of deploying Scikit-Learn models over Spark that avoids some of the problems of this approach."
},
{
"code": null,
"e": 855,
"s": 301,
"text": "I’m posting this so other people can hopefully avoid some... |
Erlang - OTP | OTP stands for Open Telecom Platform. It’s an application operating system and a set of libraries and procedures used for building large-scale, fault-tolerant, distributed applications. If you want to program your own applications using OTP, then the central concept that you will find very useful is the OTP behavior. A... | [
{
"code": null,
"e": 2757,
"s": 2301,
"text": "OTP stands for Open Telecom Platform. It’s an application operating system and a set of libraries and procedures used for building large-scale, fault-tolerant, distributed applications. If you want to program your own applications using OTP, then the ce... |
How to create a simple server in Node.js that display Hello World ? - GeeksforGeeks | 01 Oct, 2021
A Server is a piece of computer hardware or software that provides functionality for other programs or devices, called clients. This architecture is called the client-server model. Node is an open-source, cross-platform runtime environment that allows developers to create all kinds of server-side tools and... | [
{
"code": null,
"e": 24557,
"s": 24529,
"text": "\n01 Oct, 2021"
},
{
"code": null,
"e": 24893,
"s": 24557,
"text": "A Server is a piece of computer hardware or software that provides functionality for other programs or devices, called clients. This architecture is called the cli... |
How to Install a Package in R ? - GeeksforGeeks | 21 Apr, 2021
R programming language doesn’t come with all packages installed, and they need to be installed explicitly. In this article, we will discuss How to Install a Package in the R language.
Method 1: Using application options
1. Open R studio.
2. Select tools
3. After selecting the tools you need to press instal... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 25035,
"s": 24851,
"text": "R programming language doesn’t come with all packages installed, and they need to be installed explicitly. In this article, we will discuss How to Install a Packag... |
Lucene - WildcardQuery | WildcardQuery is used to search documents using wildcards like '*' for any character sequence, matching a single character.
Following is the declaration for org.apache.lucene.search.WildcardQuery class −
public class WildcardQuery
extends MultiTermQuery
protected Term term
WildcardQuery(Term term)
boolean equals(... | [
{
"code": null,
"e": 1967,
"s": 1843,
"text": "WildcardQuery is used to search documents using wildcards like '*' for any character sequence, matching a single character."
},
{
"code": null,
"e": 2047,
"s": 1967,
"text": "Following is the declaration for org.apache.lucene.search.... |
How to retrieve documents from a collection in MongoDB? | To retrieve documents from a collection in MongoDB, you need to use find() method. The syntax is as follows:
db.yourCollectionName.find();
The above syntax will return all the documents from a collection in MongoDB. To understand
the above syntax, let us create a collection with documents. The query to create documents... | [
{
"code": null,
"e": 1171,
"s": 1062,
"text": "To retrieve documents from a collection in MongoDB, you need to use find() method. The syntax is as follows:"
},
{
"code": null,
"e": 1201,
"s": 1171,
"text": "db.yourCollectionName.find();"
},
{
"code": null,
"e": 1399,
... |
How to make a class thread-safe in Java? | A thread-safe class is a class that guarantees the internal state of the class as well as returned values from methods, are correct while invoked concurrently from multiple threads.
The HashMap is a non-synchronized collection class. If we need to perform thread-safe operations on it then we must need to synchronize it... | [
{
"code": null,
"e": 1244,
"s": 1062,
"text": "A thread-safe class is a class that guarantees the internal state of the class as well as returned values from methods, are correct while invoked concurrently from multiple threads."
},
{
"code": null,
"e": 1395,
"s": 1244,
"text": "... |
_Noreturn function specifier in C - GeeksforGeeks | 29 Mar, 2019
After the removal of “noreturn” keyword, C11 standard (known as final draft) of C programming language introduce a new “_Noreturn” function specifier that specify that the function does not return to the function that it was called from. If the programmer try to return any value from that function which is... | [
{
"code": null,
"e": 24232,
"s": 24204,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 24632,
"s": 24232,
"text": "After the removal of “noreturn” keyword, C11 standard (known as final draft) of C programming language introduce a new “_Noreturn” function specifier that specify ... |
Bitcoin's Monetary Policy - GeeksforGeeks | 03 Jan, 2020
Bitcoin‘s Monetary Policy consists of 2 main parts:
1. The Halving
2. Block Frequency
The Monetary Policy is completely controlled by Software. It’s all preprogrammed.
1. The Halving:The number of Bitcoins released into the system every 10 minutes is halved after every 4 years. Actually, the halving takes... | [
{
"code": null,
"e": 24984,
"s": 24956,
"text": "\n03 Jan, 2020"
},
{
"code": null,
"e": 25036,
"s": 24984,
"text": "Bitcoin‘s Monetary Policy consists of 2 main parts:"
},
{
"code": null,
"e": 25071,
"s": 25036,
"text": "1. The Halving\n2. Block Frequency "
... |
gdbtui - Unix, Linux Command | GDB can do four main kinds of things (plus other things in support of
these) to help you catch bugs in the act:
You can use GDB to debug programs written in C, C++, and Modula-2.
Fortran support will be added when a GNU Fortran compiler is ready.
GDB is invoked with the shell command
gdb . Once started, i... | [
{
"code": null,
"e": 10691,
"s": 10577,
"text": "\nGDB can do four main kinds of things (plus other things in support of\nthese) to help you catch bugs in the act:\n"
},
{
"code": null,
"e": 10836,
"s": 10699,
"text": "\nYou can use GDB to debug programs written in C, C++, and Mo... |
Creating a Cell at specific position in Excel file using Java - GeeksforGeeks | 14 Apr, 2022
Apache POI is an open-source java library to create and manipulate various file formats based on Microsoft Office. Using POI, one should be able to perform create, modify and display/read operations on the following file formats/ it can be used to create a cell in a Given Excel file at a specific position.... | [
{
"code": null,
"e": 24558,
"s": 24530,
"text": "\n14 Apr, 2022"
},
{
"code": null,
"e": 24922,
"s": 24558,
"text": "Apache POI is an open-source java library to create and manipulate various file formats based on Microsoft Office. Using POI, one should be able to perform create,... |
How to show all the tables present in the database and server in MySQL using Python? | We may sometimes require to get the list of all the tables present in our database. This can be done by using the SHOW TABLES command.
The SHOW TABLES command is used to display the table names in a database as well as the server.
To show the tables present in a database −
SHOW TABLES
The above statement when executed ... | [
{
"code": null,
"e": 1197,
"s": 1062,
"text": "We may sometimes require to get the list of all the tables present in our database. This can be done by using the SHOW TABLES command."
},
{
"code": null,
"e": 1293,
"s": 1197,
"text": "The SHOW TABLES command is used to display the ... |
Position of robot after given movements in C++ | In this problem, we are given a robot that moves in all four directions but only one move. The directions are up(‘U’), down(‘D’), left(‘L’), right(‘R’). And we are given a string that contains initials of directions of the number. Our task is to print the final position of the robot, given the initial position of the r... | [
{
"code": null,
"e": 1397,
"s": 1062,
"text": "In this problem, we are given a robot that moves in all four directions but only one move. The directions are up(‘U’), down(‘D’), left(‘L’), right(‘R’). And we are given a string that contains initials of directions of the number. Our task is to print t... |
Python 3 - String title() Method | The title() method returns a copy of the string in which first characters of all the words are capitalized.
Following is the syntax for title() method −
str.title();
NA
This method returns a copy of the string in which first characters of all the words are capitalized.
The following example shows the usage of title() ... | [
{
"code": null,
"e": 2448,
"s": 2340,
"text": "The title() method returns a copy of the string in which first characters of all the words are capitalized."
},
{
"code": null,
"e": 2493,
"s": 2448,
"text": "Following is the syntax for title() method −"
},
{
"code": null,
... |
How to set time zone in a JSP? | The <fmt:setTimeZone> tag is used to copy a time zone object into the specified scoped variable.
The <fmt:setTimeZone> tag has the following attributes −
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<html>
<head>
<tit... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "The <fmt:setTimeZone> tag is used to copy a time zone object into the specified scoped variable."
},
{
"code": null,
"e": 1216,
"s": 1159,
"text": "The <fmt:setTimeZone> tag has the following attributes −"
},
{
"code": null,
... |
How to validate a date pattern in JavaScript? | To validate a date pattern in JavaScript, try to run the following code. Here, we will check for correct as well as incorrect dates to validate
Live Demo
<!DOCTYPE html>
<html>
<body>
<script>
function validDate(date) {
var split = date.split('/');
var date = new Date(split... | [
{
"code": null,
"e": 1206,
"s": 1062,
"text": "To validate a date pattern in JavaScript, try to run the following code. Here, we will check for correct as well as incorrect dates to validate"
},
{
"code": null,
"e": 1216,
"s": 1206,
"text": "Live Demo"
},
{
"code": null,
... |
Generating Singlish Text Messages with a LSTM Network | by Jason Yip | Towards Data Science | After publishing my first post on Medium, I realized how enjoyable it was to go through the whole process of conceptualizing an idea to sharing my findings and learning experience. I realized most data-related projects and solutions arise from these 2 things — 1) A problem we are trying to solve 2) An opportunity from ... | [
{
"code": null,
"e": 671,
"s": 172,
"text": "After publishing my first post on Medium, I realized how enjoyable it was to go through the whole process of conceptualizing an idea to sharing my findings and learning experience. I realized most data-related projects and solutions arise from these 2 thi... |
Design Patterns - Proxy Pattern | In proxy pattern, a class represents functionality of another class. This type of design pattern comes under structural pattern.
In proxy pattern, we create object having original object to interface its functionality to outer world.
We are going to create an Image interface and concrete classes implementing the Image ... | [
{
"code": null,
"e": 2880,
"s": 2751,
"text": "In proxy pattern, a class represents functionality of another class. This type of design pattern comes under structural pattern."
},
{
"code": null,
"e": 2985,
"s": 2880,
"text": "In proxy pattern, we create object having original ob... |
Using CAPM to Evaluate the Performance of Listed Investment Companies with R | by David Harris | Towards Data Science | The return on an investment should compensate an investor for the time value of the capital they have invested, as well as the risk that some, or all, of their investment may be lost. The Capital Asset Pricing Model (CAPM) is widely used in finance as a means of determining the level of compensation an investor should ... | [
{
"code": null,
"e": 676,
"s": 172,
"text": "The return on an investment should compensate an investor for the time value of the capital they have invested, as well as the risk that some, or all, of their investment may be lost. The Capital Asset Pricing Model (CAPM) is widely used in finance as a m... |
Python 3 - List append() Method | The append() method appends a passed obj into the existing list.
Following is the syntax for append() method −
list.append(obj)
obj − This is the object to be appended in the list.
This method does not return any value but updates existing list.
The following example shows the usage of append() method.
#!/usr/bin/pyth... | [
{
"code": null,
"e": 2405,
"s": 2340,
"text": "The append() method appends a passed obj into the existing list."
},
{
"code": null,
"e": 2451,
"s": 2405,
"text": "Following is the syntax for append() method −"
},
{
"code": null,
"e": 2469,
"s": 2451,
"text": "... |
Changing the Position of List Markers in CSS | The CSS list-style-position property is used to set marker position of list items. The default value for this property is outside which sets the marker outside the list item.
The syntax of CSS list-style-position property is as follows −
Selector {
list-style-position: /*value*/
}
The following examples illustrate C... | [
{
"code": null,
"e": 1237,
"s": 1062,
"text": "The CSS list-style-position property is used to set marker position of list items. The default value for this property is outside which sets the marker outside the list item."
},
{
"code": null,
"e": 1300,
"s": 1237,
"text": "The syn... |
How to change the Y-axis values in a bar plot using ggplot2 in R? | Bar plot is frequently used to analyze the number of times a level of factor variable occurs in a data set and the Y-axis values are crucial to the bar plot. Sometimes these values are not in the form we want, therefore, we want to replace them with the new ones. This can be done with the help of breaks argument of sca... | [
{
"code": null,
"e": 1419,
"s": 1062,
"text": "Bar plot is frequently used to analyze the number of times a level of factor variable occurs in a data set and the Y-axis values are crucial to the bar plot. Sometimes these values are not in the form we want, therefore, we want to replace them with the... |
How to populate an array one value at a time by taking input from user in Java? | To read data from user create a scanner class. Read the size of the array to be created from the user using nextInt() method. Create an array with the specified size. In the loop read the values from the user and store in the array created above.
import java.util.Arrays;
import java.util.Scanner;
public class Populati... | [
{
"code": null,
"e": 1309,
"s": 1062,
"text": "To read data from user create a scanner class. Read the size of the array to be created from the user using nextInt() method. Create an array with the specified size. In the loop read the values from the user and store in the array created above."
},
... |
A Guide to Streamlit — Frontend for Data Science Made Simpler | by Yash Prakash | Towards Data Science | Multiple times in our data science job or even in a cool side project that we dedicate our time and energy to, we face the dilemma of how to showcase our work properly. Should we build a new webpage ourselves, make sure our model works as an API and finally, put it all together as a package and expect someone else to r... | [
{
"code": null,
"e": 537,
"s": 172,
"text": "Multiple times in our data science job or even in a cool side project that we dedicate our time and energy to, we face the dilemma of how to showcase our work properly. Should we build a new webpage ourselves, make sure our model works as an API and final... |
How to Auto-Detect the Date/Datetime Columns and Set Their Datatype When Reading a CSV File in Pandas | Towards Data Science | Say I have a CSV data file that I want to read into a Pandas dataframe, and some of its columns are dates or datetimes, but I don’t want to bother identifying/specifying the names of these columns in advance. Instead I would like to automatically obtain the datatypes shown in the df.info() output pictured above, where ... | [
{
"code": null,
"e": 620,
"s": 172,
"text": "Say I have a CSV data file that I want to read into a Pandas dataframe, and some of its columns are dates or datetimes, but I don’t want to bother identifying/specifying the names of these columns in advance. Instead I would like to automatically obtain t... |
Autohiding Scrollbars using Python-tkinter - GeeksforGeeks | 26 Mar, 2020
Before moving on to the topic lets see what is Python Tkinter. So, we all know that Python has different options for creating GUI(s) and tkinter is one of them. It is the standard GUI library for Python. And it makes the creation of GUI applications very quick still simple when python is merged with it. It... | [
{
"code": null,
"e": 24317,
"s": 24289,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24702,
"s": 24317,
"text": "Before moving on to the topic lets see what is Python Tkinter. So, we all know that Python has different options for creating GUI(s) and tkinter is one of them. It... |
Can the abstract methods of an interface throw an exception in java? | Yes, the abstract methods of an interface can throw an exception.
In the following example the interface (MyInterface) contains an abstract method with name display, which throws an IOException.
import java.io.IOException;
abstract interface MyInterface {
public abstract void display()throws IOException ;
}
You need... | [
{
"code": null,
"e": 1128,
"s": 1062,
"text": "Yes, the abstract methods of an interface can throw an exception."
},
{
"code": null,
"e": 1257,
"s": 1128,
"text": "In the following example the interface (MyInterface) contains an abstract method with name display, which throws an ... |
C program to store inventory system using structures | Structure is a collection of different datatype variables, grouped together under a single name.
The features of structure in the C programming language are as follows −
It is possible to copy the contents of all the structure elements of different datatypes to another structure variable of its type by using an assignm... | [
{
"code": null,
"e": 1159,
"s": 1062,
"text": "Structure is a collection of different datatype variables, grouped together under a single name."
},
{
"code": null,
"e": 1232,
"s": 1159,
"text": "The features of structure in the C programming language are as follows −"
},
{
... |
How to catch a divide by zero error in C++? | The following is an example to catch a divide by zero error.
Live Demo
#include <iostream>
using namespace std;
int display(int x, int y) {
if( y == 0 ) {
throw "Division by zero condition!";
}
return (x/y);
}
int main () {
int a = 50;
int b = 0;
int c = 0;
try {
c = display(a, b);
... | [
{
"code": null,
"e": 1123,
"s": 1062,
"text": "The following is an example to catch a divide by zero error."
},
{
"code": null,
"e": 1134,
"s": 1123,
"text": " Live Demo"
},
{
"code": null,
"e": 1482,
"s": 1134,
"text": "#include <iostream>\nusing namespace st... |
Develop and sell a Python API — from start to end tutorial | by Daniel Deutsch | Towards Data Science | I recently read a blog post about setting up your own API and selling it.
I was quite inspired and wanted to test if it works. In just 5 days I was able to create an API from start to end. So I thought I share issues I came across, elaborate on concepts that the article was introducing, and provide a quick checklist to... | [
{
"code": null,
"e": 245,
"s": 171,
"text": "I recently read a blog post about setting up your own API and selling it."
},
{
"code": null,
"e": 557,
"s": 245,
"text": "I was quite inspired and wanted to test if it works. In just 5 days I was able to create an API from start to en... |
Angular Material 7 - Progress Bar | The <mat-progress-bar>, an Angular Directive, is used to show a progress bar with material styling.
In this chapter, we will showcase the configuration required to draw a deterministic as well as indeterministic progress bar using Angular Material.
Follow the following steps to update the Angular application we created... | [
{
"code": null,
"e": 2855,
"s": 2755,
"text": "The <mat-progress-bar>, an Angular Directive, is used to show a progress bar with material styling."
},
{
"code": null,
"e": 3004,
"s": 2855,
"text": "In this chapter, we will showcase the configuration required to draw a determinist... |
Binary representation of a given number in C++ | A binary number is a number that consists of only two digits 0 and 1. For example, 01010111.
There are various ways to represent a given number in binary form.
This method is used to represent a number in its binary form using recursion.
Step 1 : if number > 1. Follow step 2 and 3.
Step 2 : push the number to a stand.
... | [
{
"code": null,
"e": 1155,
"s": 1062,
"text": "A binary number is a number that consists of only two digits 0 and 1. For example, 01010111."
},
{
"code": null,
"e": 1222,
"s": 1155,
"text": "There are various ways to represent a given number in binary form."
},
{
"code": ... |
Int16.Parse(String) Method in C# with Examples - GeeksforGeeks | 12 Jun, 2019
Int16.Parse(String) Method is used to convert the string representation of a number to its 16-bit signed integer equivalent.
Syntax:
public static short Parse (string str);
Here, str is a string that contains a number to convert. The format of str will be [optional white space][optional sign]digits[optiona... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n12 Jun, 2019"
},
{
"code": null,
"e": 24036,
"s": 23911,
"text": "Int16.Parse(String) Method is used to convert the string representation of a number to its 16-bit signed integer equivalent."
},
{
"code": null,
"e": 2... |
Minimum value of "max + min" in a subarray - GeeksforGeeks | 13 May, 2021
Given a array of n positive elements we need to find the lowest possible sum of max and min elements in a subarray given that size of subarray should be greater than equal to 2.Examples:
Input : arr[] = {1 12 2 2}
Output : 4
Sum of 2+2 of subarray [2, 2]
Input : arr[] = {10 20 30 40 23 45}
Output : 30 ... | [
{
"code": null,
"e": 25080,
"s": 25052,
"text": "\n13 May, 2021"
},
{
"code": null,
"e": 25269,
"s": 25080,
"text": "Given a array of n positive elements we need to find the lowest possible sum of max and min elements in a subarray given that size of subarray should be greater th... |
How to move a file from one folder to another using Python? | The shutil module provides functions for moving files, as well as entire folders. For moving multiple files at once, you'll have to have a list of all files you want to copy and loop over them to copy them.
Calling shutil.move(source, destination) will move the file at the path source to the folder at the path destinat... | [
{
"code": null,
"e": 1269,
"s": 1062,
"text": "The shutil module provides functions for moving files, as well as entire folders. For moving multiple files at once, you'll have to have a list of all files you want to copy and loop over them to copy them."
},
{
"code": null,
"e": 1574,
... |
Element repetition in list in Python | There are scenarios when we need to repeat the values in a list. This duplication of values can be achived in python in the following ways.
It is a straight forward approach in which pick each element, take through a inner for loop to create its duplicate and then pass both of them to an outer for loop.
Live Demo
# Gi... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "There are scenarios when we need to repeat the values in a list. This duplication of values can be achived in python in the following ways."
},
{
"code": null,
"e": 1367,
"s": 1202,
"text": "It is a straight forward approach in which... |
How to extract the value names and counts from value_counts() in Pandas ? - GeeksforGeeks | 11 Dec, 2020
Prerequisites:
panda
matplotlib
In this article, we will learn how we can extract the names and values using values_count() from panda. The panda library is equipped with a number of useful functions for ‘value_counts’ is one of them. This function returns the counts of unique items in a pandas data fram... | [
{
"code": null,
"e": 24518,
"s": 24490,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 24534,
"s": 24518,
"text": "Prerequisites: "
},
{
"code": null,
"e": 24541,
"s": 24534,
"text": "panda "
},
{
"code": null,
"e": 24552,
"s": 24541,
"te... |
Balanced Ternary Number System - GeeksforGeeks | 26 Apr, 2021
As we already know, a Binary number system is a number system that has only 2 digits in it, i.e. 0 and 1. Similarly, we also know that a Ternary number system is a number system that has only 3 digits in it, i.e. 0, 1 and 2. In this article, we will learn about Balanced Ternary Number System.A balanced ter... | [
{
"code": null,
"e": 24692,
"s": 24664,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 25290,
"s": 24692,
"text": "As we already know, a Binary number system is a number system that has only 2 digits in it, i.e. 0 and 1. Similarly, we also know that a Ternary number system is a... |
Find k longest words in given list in Python | We have a scenario where we have to pick the top n longest word from a list containing many words of varying length. In this article we will see various approaches to achieve that.
We first sort the elements of the list in the reverse order so that the longest words are available at the beginning of the list. Then find... | [
{
"code": null,
"e": 1243,
"s": 1062,
"text": "We have a scenario where we have to pick the top n longest word from a list containing many words of varying length. In this article we will see various approaches to achieve that."
},
{
"code": null,
"e": 1524,
"s": 1243,
"text": "W... |
Getting started in AI and computer vision with Nvidia Jetson Nano. Hands-on approach to the JetBot project | by David Retana | Towards Data Science | With the rise of AI and IoT, Nvidia offers us a simple, cheap and powerful solution for the development of embedded artificial intelligence applications. Jetson Nano opens up opportunities to create homemade robots, intelligent systems...
Jetson Nano is a raspberry like board but much more powerful which runs a custom ... | [
{
"code": null,
"e": 411,
"s": 172,
"text": "With the rise of AI and IoT, Nvidia offers us a simple, cheap and powerful solution for the development of embedded artificial intelligence applications. Jetson Nano opens up opportunities to create homemade robots, intelligent systems..."
},
{
"c... |
Docker for Python-Dash & R-Shiny. Easy start with Docker &... | by Meinhard Ploner | Towards Data Science | You wanna deploy your data-driven app using Docker & Docker Compose? Then read on, because this article will get you up-and-running in a few minutes. For both the most wide-spread Data Science / Analytics stacks: Python & R.
In my latest Medium stories, I explained how to set up a data-driven web application for the sa... | [
{
"code": null,
"e": 397,
"s": 172,
"text": "You wanna deploy your data-driven app using Docker & Docker Compose? Then read on, because this article will get you up-and-running in a few minutes. For both the most wide-spread Data Science / Analytics stacks: Python & R."
},
{
"code": null,
... |
Hibernate Query Language | HQL | HQL Select Tutorials Point | 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, we are going to learn about... | [
{
"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,
... |
Sum of XOR of all possible subsets in C++ | In this problem, we are given an array aar[] of n numbers. Our task is to create a program to find the Sum of XOR of all possible subsets.
Here, we will find all subsets of the array. Then for each subset, we will find the XOR of elements of the subset and add them to the sum variable.
Input: arr[] = {5, 1, 4}
Output: ... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "In this problem, we are given an array aar[] of n numbers. Our task is to create a program to find the Sum of XOR of all possible subsets."
},
{
"code": null,
"e": 1349,
"s": 1201,
"text": "Here, we will find all subsets of the array... |
Introduction to Graph Algorithm: Breadth-First Search Algorithm in Python | by Rashida Nasrin Sucky | Towards Data Science | Graph form data is present in many popular and widely used applications. Web crawlers, computer networks, relational databases, and social networks are some good examples. The graph search algorithms are important for any section of computer science. Also, it is important and useful for many coding interviews.
There ar... | [
{
"code": null,
"e": 358,
"s": 46,
"text": "Graph form data is present in many popular and widely used applications. Web crawlers, computer networks, relational databases, and social networks are some good examples. The graph search algorithms are important for any section of computer science. Also,... |
C# | How to change BackGround Color of Text in Console - GeeksforGeeks | 28 Jan, 2019
Given the normal Console in C#, the default color of the text background is “Black”. The task is to change this color to some other color.
Approach: This can be done using the BackgroundColor property in the Console class of the System package in C#.
Program 1: Changing the Console Background Color to Blue... | [
{
"code": null,
"e": 24615,
"s": 24587,
"text": "\n28 Jan, 2019"
},
{
"code": null,
"e": 24754,
"s": 24615,
"text": "Given the normal Console in C#, the default color of the text background is “Black”. The task is to change this color to some other color."
},
{
"code": nu... |
10 Examples to Master Python Dictionary Comprehensions | by Soner Yıldırım | Towards Data Science | A dictionary is an unordered collection of key-value pairs. Each entry has a key and value. A dictionary can be considered as a list with special index.
The keys must be unique and immutable. So we can use strings, numbers (int or float), or tuples as keys. Values can be of any type.
In this article, we will focus on d... | [
{
"code": null,
"e": 324,
"s": 171,
"text": "A dictionary is an unordered collection of key-value pairs. Each entry has a key and value. A dictionary can be considered as a list with special index."
},
{
"code": null,
"e": 456,
"s": 324,
"text": "The keys must be unique and immut... |
PHP – Make an upper case string using mb_strtoupper() | In PHP, mb_strtoupper() is an inbuilt function that is used to change a given string to upper case.
string mb_strtoupper(str $string, str $encoding)
mb_strtoupper() accepts two parameters: $string and $encoding.
$string− The string being uppercased.
$string− The string being uppercased.
$encoding− This parameter is the... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "In PHP, mb_strtoupper() is an inbuilt function that is used to change a given string to upper case."
},
{
"code": null,
"e": 1211,
"s": 1162,
"text": "string mb_strtoupper(str $string, str $encoding)"
},
{
"code": null,
"... |
Filter Color with OpenCV - GeeksforGeeks | 16 Feb, 2021
Colour segmentation or color filtering is widely used in OpenCV for identifying specific objects/regions having a specific color. The most widely used color space is RGB color space, it is called an additive color space as the three color shades add up to give color to the image. To identify a region of a ... | [
{
"code": null,
"e": 41162,
"s": 41134,
"text": "\n16 Feb, 2021"
},
{
"code": null,
"e": 42326,
"s": 41162,
"text": "Colour segmentation or color filtering is widely used in OpenCV for identifying specific objects/regions having a specific color. The most widely used color space ... |
How to hold key down with Selenium? | We can hold a key down with Selenium webdriver. We mostly utilize the CONTROL/SHIFT/ALT keys to hold down and then click on other keys. So, only mentioning the modifier keys like keys.CONTROL/ keys.SHIFT or Keys.ALT is not
sufficient.
To hold down a key simultaneously while another key is being pressed, we use the keyD... | [
{
"code": null,
"e": 1297,
"s": 1062,
"text": "We can hold a key down with Selenium webdriver. We mostly utilize the CONTROL/SHIFT/ALT keys to hold down and then click on other keys. So, only mentioning the modifier keys like keys.CONTROL/ keys.SHIFT or Keys.ALT is not\nsufficient."
},
{
"co... |
Monkey Patching in Ruby - GeeksforGeeks | 22 Oct, 2020
In Ruby, a Monkey Patch (MP) is referred to as a dynamic modification to a class and by a dynamic modification to a class means to add new or overwrite existing methods at runtime. This ability is provided by ruby to give more flexibility to the coders.
Ruby, being a very powerful and agile language, provi... | [
{
"code": null,
"e": 23595,
"s": 23567,
"text": "\n22 Oct, 2020"
},
{
"code": null,
"e": 23849,
"s": 23595,
"text": "In Ruby, a Monkey Patch (MP) is referred to as a dynamic modification to a class and by a dynamic modification to a class means to add new or overwrite existing me... |
HandleBars Templating in ExpressJS - GeeksforGeeks | 27 Apr, 2020
Handlebars.js is a templating engine similar to the ejs module in node.js, but more powerful and simple to use. It ensures minimum templating and is a logicless engine that keeps the view and the code separated. It can be used with express as the hbs module, available through npm. HandleBars can be used to... | [
{
"code": null,
"e": 26293,
"s": 26265,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 26667,
"s": 26293,
"text": "Handlebars.js is a templating engine similar to the ejs module in node.js, but more powerful and simple to use. It ensures minimum templating and is a logicless en... |
System.lineSeparator() method in Java With Examples - GeeksforGeeks | 19 Jun, 2018
The lineSeparator() is a built-in method in Java which returns the system-dependent line separator string. It always returns the same value – the initial value of the system property line.separator.
Syntax:
public static String lineSeparator()
Parameters: This method does not take any parameters.
Return Va... | [
{
"code": null,
"e": 26391,
"s": 26363,
"text": "\n19 Jun, 2018"
},
{
"code": null,
"e": 26590,
"s": 26391,
"text": "The lineSeparator() is a built-in method in Java which returns the system-dependent line separator string. It always returns the same value – the initial value of ... |
Largest value of K such that both K and -K exist in Array in given index range [L, R] - GeeksforGeeks | 30 Nov, 2021
Given an array, arr[] of N integers and 2 integers L and R, the task is to return the largest integer K greater than 0 and L<=K<=R, such that both values K and -K exist in array arr[]. If there is no such integer, then return 0.
Examples:
Input: N = 5, arr[] = {3, 2, -2, 5, -3}, L = 2, R = 3Output: 3Expl... | [
{
"code": null,
"e": 24716,
"s": 24688,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 24946,
"s": 24716,
"text": "Given an array, arr[] of N integers and 2 integers L and R, the task is to return the largest integer K greater than 0 and L<=K<=R, such that both values K and -K ... |
How to Query PostgreSQL using Python (with SSH) in 3 Steps | by Erik Yan | Towards Data Science | *- This story describes how to use this script to quickly setup connection with a remote PostgreSQL database with or without SSH .pem authentication. -*
Often data is housed within databases like PostgreSQL on remote servers, which can make it difficult for data analysts to access the data quickly. Sometimes, there are... | [
{
"code": null,
"e": 200,
"s": 47,
"text": "*- This story describes how to use this script to quickly setup connection with a remote PostgreSQL database with or without SSH .pem authentication. -*"
},
{
"code": null,
"e": 569,
"s": 200,
"text": "Often data is housed within databa... |
GATE | GATE-CS-2004 | Question 15 - GeeksforGeeks | 28 Jun, 2021
Choose the best matching between Group 1 and Group 2.
Group-1 Group-2
P. Data link 1. Ensures reliable transport of data
over a physical point-to-point link
Q. Network layer 2. Encoder/decodes data for physical
transmi... | [
{
"code": null,
"e": 25797,
"s": 25769,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25851,
"s": 25797,
"text": "Choose the best matching between Group 1 and Group 2."
},
{
"code": null,
"e": 26314,
"s": 25851,
"text": " Group-1 Group-2 \... |
HTML - <blockquote> Tag | The HTML <blockquote> tag is used for indicating long quotations (i.e. quotations that span multiple lines). It should contain only block-level elements within it, and not just plain text.
<!DOCTYPE html>
<html>
<head>
<title>HTML blockquote Tag</title>
</head>
<body>
<blockquote>Browsers general... | [
{
"code": null,
"e": 2563,
"s": 2374,
"text": "The HTML <blockquote> tag is used for indicating long quotations (i.e. quotations that span multiple lines). It should contain only block-level elements within it, and not just plain text."
},
{
"code": null,
"e": 3182,
"s": 2563,
"t... |
Predicting Loan Repayment. Introduction | by Imad Dabbura | Towards Data Science | The two most critical questions in the lending industry are: 1) How risky is the borrower? 2) Given the borrower’s risk, should we lend him/her? The answer to the first question determines the interest rate the borrower would have. Interest rate measures among other things (such as time value of money) the riskness of ... | [
{
"code": null,
"e": 659,
"s": 172,
"text": "The two most critical questions in the lending industry are: 1) How risky is the borrower? 2) Given the borrower’s risk, should we lend him/her? The answer to the first question determines the interest rate the borrower would have. Interest rate measures ... |
Python | Test for False list - GeeksforGeeks | 04 Jan, 2019
Sometimes, we need to check if a list is completely True of False, these occurrences come more often in testing purposes after the development phase. Hence, having a knowledge of all this is necessary and useful. Lets discuss certain ways in which this can be performed.
Method #1 : Naive MethodIn the naive... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n04 Jan, 2019"
},
{
"code": null,
"e": 24563,
"s": 24292,
"text": "Sometimes, we need to check if a list is completely True of False, these occurrences come more often in testing purposes after the development phase. Hence, having... |
MySQL query to return a substring after delimiter? | Use SUBSTRING() to return values after delimiter. Let us first create a table −
mysql> create table DemoTable
-> (
-> Title text
-> );
Query OK, 0 rows affected (0.56 sec)
Insert some records in the table using insert command −
mysql> insert into DemoTable values('John is good in MySQL,Sam is good in MongoDB,Mike is go... | [
{
"code": null,
"e": 1142,
"s": 1062,
"text": "Use SUBSTRING() to return values after delimiter. Let us first create a table −"
},
{
"code": null,
"e": 1234,
"s": 1142,
"text": "mysql> create table DemoTable\n-> (\n-> Title text\n-> );\nQuery OK, 0 rows affected (0.56 sec)"
},
... |
Spark MultiLayer Perceptron Classifier for POI Classification | by Pranav Thaenraj | Towards Data Science | Note: This article is the third in a series of articles regarding the classification of transportation POI data. The first article looked to use various Machine Learning models to classify records as Airports, Bus stops, and Train stations. The second article was centered around the use of feature reduction algorithms ... | [
{
"code": null,
"e": 687,
"s": 172,
"text": "Note: This article is the third in a series of articles regarding the classification of transportation POI data. The first article looked to use various Machine Learning models to classify records as Airports, Bus stops, and Train stations. The second art... |
Spring Boot JPA - Quick Guide | Java Persistence API is a collection of classes and methods to persistently store the vast amounts of data into a database which is provided by the Oracle Corporation.
To reduce the burden of writing codes for relational object management, a programmer follows the ‘JPA Provider’ framework, which allows easy interaction... | [
{
"code": null,
"e": 2146,
"s": 1978,
"text": "Java Persistence API is a collection of classes and methods to persistently store the vast amounts of data into a database which is provided by the Oracle Corporation."
},
{
"code": null,
"e": 2373,
"s": 2146,
"text": "To reduce the ... |
Seaborn essentials for data visualization in Python | by Mahbubul Alam | Towards Data Science | As I said before, the purpose of data visualization is to communicate hidden information in the data. Visualization fundamentally serves 4 purposes in data science, in understanding:
the distribution of features
relationships between two or more variables
comparisons between variables
the composition of data
Various wa... | [
{
"code": null,
"e": 355,
"s": 172,
"text": "As I said before, the purpose of data visualization is to communicate hidden information in the data. Visualization fundamentally serves 4 purposes in data science, in understanding:"
},
{
"code": null,
"e": 384,
"s": 355,
"text": "the... |
PHP mysqli_begin_transaction() Function | The mysqli_begin_transaction() is used to start a new transaction.
mysqli_begin_transaction($con, [$flags, $name]);
con(Mandatory)
This is an object representing a connection to MySQL Server.
flags(Optional)
A constant which can be on of the following :
MYSQLI_TRANS_START_READ_ONLY
MYSQLI_TRANS_START_READ_ONLY
MYSQLI_... | [
{
"code": null,
"e": 2824,
"s": 2757,
"text": "The mysqli_begin_transaction() is used to start a new transaction."
},
{
"code": null,
"e": 2874,
"s": 2824,
"text": "mysqli_begin_transaction($con, [$flags, $name]);\n"
},
{
"code": null,
"e": 2889,
"s": 2874,
"t... |
Python - Convert excel serial date to datetime - GeeksforGeeks | 14 Sep, 2021
This article will discuss the conversion of an excel serial date to DateTime in Python.
The Excel “serial date” format is actually the number of days since 1900-01-00 i.e., January 1st, 1900. For example, the excel serial date number 43831 represents January 1st, 2020, and after converting 43831 to a Dat... | [
{
"code": null,
"e": 24364,
"s": 24333,
"text": " \n14 Sep, 2021\n"
},
{
"code": null,
"e": 24453,
"s": 24364,
"text": "This article will discuss the conversion of an excel serial date to DateTime in Python. "
},
{
"code": null,
"e": 24696,
"s": 24453,
"text":... |
file - Unix, Linux Command | File tests each argument in an attempt to classify it.
There are three sets of tests, performed in this order:
filesystem tests, magic number tests, and language tests.
The
first test that succeeds causes the file type to be printed.
The type printed will usually contain one of the words
text (the file contains only
... | [
{
"code": null,
"e": 10813,
"s": 10577,
"text": "\nFile tests each argument in an attempt to classify it.\nThere are three sets of tests, performed in this order:\nfilesystem tests, magic number tests, and language tests.\nThe\nfirst test that succeeds causes the file type to be printed.\n"
},
{... |
Django CRUD (Create, Retrieve, Update, Delete) Function Based Views - GeeksforGeeks | 27 Aug, 2021
Django is a Python-based web framework which allows you to quickly create web application without all of the installation or dependency problems that you normally will find with other frameworks. Django is based on MVT (Model View Template) architecture and revolves around CRUD (Create, Retrieve, Update, D... | [
{
"code": null,
"e": 41554,
"s": 41526,
"text": "\n27 Aug, 2021"
},
{
"code": null,
"e": 42107,
"s": 41554,
"text": "Django is a Python-based web framework which allows you to quickly create web application without all of the installation or dependency problems that you normally ... |
Date toString() method in Java with Examples - GeeksforGeeks | 02 Jan, 2019
The toString() method of Java Date class converts this date object into a String in form “dow mon dd hh:mm:ss zzz yyy”. This method overrides toString in class object.Syntax:
public String toString()
Parameters: The function does not accept any parameter.
Return Value: It method returns a string represent... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n02 Jan, 2019"
},
{
"code": null,
"e": 24123,
"s": 23948,
"text": "The toString() method of Java Date class converts this date object into a String in form “dow mon dd hh:mm:ss zzz yyy”. This method overrides toString in class obj... |
Unsafe Code in C# - GeeksforGeeks | 11 Mar, 2019
Unsafe code in C# is the part of the program that runs outside the control of the Common Language Runtime (CLR) of the .NET frameworks. The CLR is responsible for all of the background tasks that the programmer doesn’t have to worry about like memory allocation and release, managing stack etc. Using the ke... | [
{
"code": null,
"e": 23911,
"s": 23883,
"text": "\n11 Mar, 2019"
},
{
"code": null,
"e": 24509,
"s": 23911,
"text": "Unsafe code in C# is the part of the program that runs outside the control of the Common Language Runtime (CLR) of the .NET frameworks. The CLR is responsible for ... |
JavaFX - Colors | To apply colors to an application, JavaFX provides various classes in the package javafx.scene.paint package. This package contains an abstract class named Paint and it is the base class of all the classes that are used to apply colors.
Using these classes, you can apply colors in the following patterns −
Uniform − In ... | [
{
"code": null,
"e": 2137,
"s": 1900,
"text": "To apply colors to an application, JavaFX provides various classes in the package javafx.scene.paint package. This package contains an abstract class named Paint and it is the base class of all the classes that are used to apply colors."
},
{
"c... |
Create Password Protected Zip of a file using Python - GeeksforGeeks | 24 Jan, 2021
ZIP is an archive file format that supports lossless data compression. By lossless compression, we mean that the compression algorithm allows the original data to be perfectly reconstructed from the compressed data. So, a ZIP file is a single file containing one or more compressed files, offering an ideal... | [
{
"code": null,
"e": 23973,
"s": 23942,
"text": " \n24 Jan, 2021\n"
},
{
"code": null,
"e": 24345,
"s": 23973,
"text": "ZIP is an archive file format that supports lossless data compression. By lossless compression, we mean that the compression algorithm allows the original data ... |
ReactJS Reactstrap Breadcrumb Component - GeeksforGeeks | 28 Jul, 2021
Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. Breadcrumb Component provides a way to indicate the location of the current page. We can use the following approach in ReactJS to use the ReactJS... | [
{
"code": null,
"e": 24921,
"s": 24893,
"text": "\n28 Jul, 2021"
},
{
"code": null,
"e": 25262,
"s": 24921,
"text": "Reactstrap is a popular front-end library that is easy to use React Bootstrap 4 components. This library contains the stateless React components for Bootstrap 4. B... |
Count the number of times a letter appears in a text file in Python - GeeksforGeeks | 05 Jan, 2022
In this article, we will be learning different approaches to count the number of times a letter appears in a text file in Python. Below is the content of the text file gfg.txt that we are going to use in the below programs:
Now we will discuss various approaches to get the frequency of a letter in a text f... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n05 Jan, 2022"
},
{
"code": null,
"e": 24516,
"s": 24292,
"text": "In this article, we will be learning different approaches to count the number of times a letter appears in a text file in Python. Below is the content of the text ... |
How to change the <input> type? - GeeksforGeeks | 18 Apr, 2021
The purpose of this article is to change the HTML <input> type. Javascript provides document.getElementById().type option to change the type of input field.
Syntax:
The selected input type will change to text.document.getElementById("id_of_tag_to_be_changed").type="text";
document.getElementById("id_of_ta... | [
{
"code": null,
"e": 31782,
"s": 31754,
"text": "\n18 Apr, 2021"
},
{
"code": null,
"e": 31939,
"s": 31782,
"text": "The purpose of this article is to change the HTML <input> type. Javascript provides document.getElementById().type option to change the type of input field."
},
... |
Check if list contains all unique elements in Python | A list in python can contain elements all of which may or may not be unique. But for a scenario when we need unique elements like marking the attendance for different roll numbers of a class. Below is the approaches with can use.
A python set is a collection which is unordered, unindexed and also contains unique elemen... | [
{
"code": null,
"e": 1292,
"s": 1062,
"text": "A list in python can contain elements all of which may or may not be unique. But for a scenario when we need unique elements like marking the attendance for different roll numbers of a class. Below is the approaches with can use."
},
{
"code": n... |
jQuery Mobile - Form Structure | It is used to create a form layout to collect user input. The <form> element should contain action and method attribute that submit via HTTP POST or GET. Following form controls can be used to create the structure.
Text Input
Select Input
Checkbox Input
Radio Input
Slider Input
Search Input
Following example demonstra... | [
{
"code": null,
"e": 2164,
"s": 1948,
"text": "It is used to create a form layout to collect user input. The <form> element should contain action and method attribute that submit via HTTP POST or GET. Following form controls can be used to create the structure. "
},
{
"code": null,
"e": ... |
Difference between window.location.href, window.location.replace and window.location.assign in JavaScript? | The window object includes the location object in JavaScript. It includes the following properties −
It returns the URL of the current page.
<!DOCTYPE html>
<html>
<body>
<p>Click below to get the complete URL of the page.</p>
<button onclick = "display()">URL</button>
<script>
function di... | [
{
"code": null,
"e": 1163,
"s": 1062,
"text": "The window object includes the location object in JavaScript. It includes the following properties −"
},
{
"code": null,
"e": 1203,
"s": 1163,
"text": "It returns the URL of the current page."
},
{
"code": null,
"e": 1508... |
Coin game winner where every player has three choices - GeeksforGeeks | 30 May, 2021
A and B are playing a game. At the beginning there are n coins. Given two more numbers x and y. In each move a player can pick x or y or 1 coins. A always starts the game. The player who picks the last coin wins the game or the person who is not able to pick any coin loses the game. For a given value of n,... | [
{
"code": null,
"e": 25216,
"s": 25188,
"text": "\n30 May, 2021"
},
{
"code": null,
"e": 25595,
"s": 25216,
"text": "A and B are playing a game. At the beginning there are n coins. Given two more numbers x and y. In each move a player can pick x or y or 1 coins. A always starts t... |
Difference between RGB vs RGBA color format - GeeksforGeeks | 07 Apr, 2021
In this article, we will discuss the differences between RGB and RGBA color schemes in detail. We will also see how these schemes can be used in CSS.
RGB Color Scheme: It is a three-channel format containing data for red, green, and blue colors. In CSS, the RGB color format can be specified using:
rgb(red,... | [
{
"code": null,
"e": 25402,
"s": 25374,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 25552,
"s": 25402,
"text": "In this article, we will discuss the differences between RGB and RGBA color schemes in detail. We will also see how these schemes can be used in CSS."
},
{
... |
Design a web page using HTML and CSS - GeeksforGeeks | 04 Aug, 2021
Creating an attractive page will be difficult for those who are not experts in CSS. Without using CSS, you will not be able to make the web page, more attractive. So in order to make a web page, we need to have a knowledge of HTML and CSS. In this article, the main focus will be implementing CSS. In order ... | [
{
"code": null,
"e": 24364,
"s": 24336,
"text": "\n04 Aug, 2021"
},
{
"code": null,
"e": 24739,
"s": 24364,
"text": "Creating an attractive page will be difficult for those who are not experts in CSS. Without using CSS, you will not be able to make the web page, more attractive. ... |
Null List in C# | A null list exists in C#. To check whether a list is null or not, check them against the null literal.
Set a null like this −
List<string> myList = null;
Now, to check for null, use the equality operator −
myList == null;
The following is an example −
Live Demo
using System;
using System.Collections.Generic;
using Sys... | [
{
"code": null,
"e": 1188,
"s": 1062,
"text": "A null list exists in C#. To check whether a list is null or not, check them against the null literal.\nSet a null like this −"
},
{
"code": null,
"e": 1216,
"s": 1188,
"text": "List<string> myList = null;"
},
{
"code": null,... |
Comparing String objects using Relational Operators in C++ - GeeksforGeeks | 28 Jun, 2017
If strings are compared using relational operators then, their characters are compared lexicographically according to the current character traits, means it starts comparison character by character starting from the first character until the characters in both strings are equal or a NULL character is encou... | [
{
"code": null,
"e": 24098,
"s": 24070,
"text": "\n28 Jun, 2017"
},
{
"code": null,
"e": 24413,
"s": 24098,
"text": "If strings are compared using relational operators then, their characters are compared lexicographically according to the current character traits, means it starts... |
Getting inverse cosine and inverse hyperbolic cosine in Julia - acos(), acosh() and acosd() Methods - GeeksforGeeks | 26 Mar, 2020
The acos() is an inbuilt function in julia which is used to calculate inverse cosine of the specified value and output is in radians.
Syntax: acos(x)
Parameters:
x: Specified values.
Returns: It returns the calculated inverse cosine of the specified value and output is in radians.
Example:
# Julia program ... | [
{
"code": null,
"e": 24544,
"s": 24516,
"text": "\n26 Mar, 2020"
},
{
"code": null,
"e": 24678,
"s": 24544,
"text": "The acos() is an inbuilt function in julia which is used to calculate inverse cosine of the specified value and output is in radians."
},
{
"code": null,
... |
Find elements which are present in first array and not in second - GeeksforGeeks | 11 Aug, 2021
Given two arrays, the task is that we find numbers which are present in first array, but not present in the second array. Examples :
Input : a[] = {1, 2, 3, 4, 5, 10};
b[] = {2, 3, 1, 0, 5};
Output : 4 10
4 and 10 are present in first array, but
not in second array.
Input : a[] = {4, 3, 5, 9, 11... | [
{
"code": null,
"e": 24478,
"s": 24450,
"text": "\n11 Aug, 2021"
},
{
"code": null,
"e": 24613,
"s": 24478,
"text": "Given two arrays, the task is that we find numbers which are present in first array, but not present in the second array. Examples : "
},
{
"code": null,
... |
Find the pattern of dataset by visualizing frequency distribution | Towards Data Science | “Visualization gives you answers to questions you didn’t know you had.” — Ben Schneiderman
Data science is defined as the art of interpreting data and getting useful information out of it. At the same time, Data visualization involves the representation of data. Though they are from completely different entities, the c... | [
{
"code": null,
"e": 263,
"s": 172,
"text": "“Visualization gives you answers to questions you didn’t know you had.” — Ben Schneiderman"
},
{
"code": null,
"e": 644,
"s": 263,
"text": "Data science is defined as the art of interpreting data and getting useful information out of i... |
JSF - h:setPropertyActionListener | The h:setPropertyActionListener tag adds an action listener to a component that sets a bean property to a given value.
<h:commandButton id = "submit" action = "result" value = "Show Message">
<f:setPropertyActionListener target = "#{userData.data}"
value = "JSF 2.0 User" />
</h:commandButton>
Let us crea... | [
{
"code": null,
"e": 2071,
"s": 1952,
"text": "The h:setPropertyActionListener tag adds an action listener to a component that sets a bean property to a given value."
},
{
"code": null,
"e": 2261,
"s": 2071,
"text": "<h:commandButton id = \"submit\" action = \"result\" value = \"... |
Matplotlib.colors.to_rgba() in Python - GeeksforGeeks | 27 Jan, 2022
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.colors.to_rgba() function is used convert c(color) to an RGBA color. It convert... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 25750,
"s": 25537,
"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... |
jQuery | Add Elements with Examples - GeeksforGeeks | 26 Feb, 2019
The add elements in jQuery is used to append the content in the document. The methods which is used to add the content are listed below:
append(): Inserts content at the end of the selected elements.
prepend(): Inserts content at the beginning of the selected elements.
after(): Inserts content after the se... | [
{
"code": null,
"e": 26978,
"s": 26950,
"text": "\n26 Feb, 2019"
},
{
"code": null,
"e": 27115,
"s": 26978,
"text": "The add elements in jQuery is used to append the content in the document. The methods which is used to add the content are listed below:"
},
{
"code": null... |
Hadoop - copyFromLocal Command - GeeksforGeeks | 27 Dec, 2021
Hadoop copyFromLocal command is used to copy the file from your local file system to the HDFS(Hadoop Distributed File System). copyFromLocal command has an optional switch –f which is used to replace the already existing file in the system, means it can be used to update that file. -f switch is similar to ... | [
{
"code": null,
"e": 25373,
"s": 25345,
"text": "\n27 Dec, 2021"
},
{
"code": null,
"e": 25836,
"s": 25373,
"text": "Hadoop copyFromLocal command is used to copy the file from your local file system to the HDFS(Hadoop Distributed File System). copyFromLocal command has an optiona... |
Chat Bot in Python with ChatterBot Module - GeeksforGeeks | 27 Apr, 2022
Nobody likes to be alone always, but sometimes loneliness could be a better medicine to hunch the thirst for a peaceful environment. Even during such lonely quarantines, we may ignore humans but not humanoids. Yes, if you have guessed this article for a chatbot, then you have cracked it right. We won’t req... | [
{
"code": null,
"e": 25562,
"s": 25534,
"text": "\n27 Apr, 2022"
},
{
"code": null,
"e": 26264,
"s": 25562,
"text": "Nobody likes to be alone always, but sometimes loneliness could be a better medicine to hunch the thirst for a peaceful environment. Even during such lonely quaran... |
Flip the text using CSS - GeeksforGeeks | 10 Mar, 2021
The Flipping effect creates the mirror image of the text. You can flip your text both horizontally and vertically. CSS3 allows adding various effects, including text flipping due to its transformation functions. You can flip a text without any JavaScript code.
Given below is the example of flipping the tex... | [
{
"code": null,
"e": 25937,
"s": 25909,
"text": "\n10 Mar, 2021"
},
{
"code": null,
"e": 26198,
"s": 25937,
"text": "The Flipping effect creates the mirror image of the text. You can flip your text both horizontally and vertically. CSS3 allows adding various effects, including te... |
Installing MongoDB on Windows with Python - GeeksforGeeks | 06 Oct, 2021
We would explain the installation of MongoDB in steps. Before you install, I would suggest everyone use ide spyder, Anaconda.
Step 1 -> Install the community EditionInstallation Link
Step 2 -> Run the installed MongoDB windows installer package that you just downloaded.
MongoDB get installed here->
C:\Prog... | [
{
"code": null,
"e": 42677,
"s": 42649,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 42803,
"s": 42677,
"text": "We would explain the installation of MongoDB in steps. Before you install, I would suggest everyone use ide spyder, Anaconda."
},
{
"code": null,
"e": ... |
Z-Buffer or Depth-Buffer method - GeeksforGeeks | 06 Mar, 2018
When viewing a picture containing non transparent objects and surfaces, it is not possible to see those objects from view which are behind from the objects closer to eye. To get the realistic screen image, removal of these hidden surfaces is must. The identification and removal of these surfaces is called ... | [
{
"code": null,
"e": 25759,
"s": 25731,
"text": "\n06 Mar, 2018"
},
{
"code": null,
"e": 26097,
"s": 25759,
"text": "When viewing a picture containing non transparent objects and surfaces, it is not possible to see those objects from view which are behind from the objects closer ... |
PHP | Encapsulation - GeeksforGeeks | 10 Oct, 2019
In today’s technical world, maintaining privacy has become one of the demanding needs for the protection of important data. Whenever data modified in one function affects the other functions, it causes a lot of problems in any software. To overcome this problem, object-oriented programming in PHP uses the ... | [
{
"code": null,
"e": 26217,
"s": 26189,
"text": "\n10 Oct, 2019"
},
{
"code": null,
"e": 26550,
"s": 26217,
"text": "In today’s technical world, maintaining privacy has become one of the demanding needs for the protection of important data. Whenever data modified in one function ... |
Getting the maximum value from a list in Julia - max() Method - GeeksforGeeks | 21 Apr, 2020
The max() is an inbuilt function in julia which is used to return the maximum value of the parameters.
Syntax: max(x, y, ...)
Parameters:
x: Specified 1st value.
y: Specified 2nd value and so on.
Returns: It returns the maximum value of the parameters.
Example 1:
# Julia program to illustrate # the use of ... | [
{
"code": null,
"e": 25425,
"s": 25397,
"text": "\n21 Apr, 2020"
},
{
"code": null,
"e": 25528,
"s": 25425,
"text": "The max() is an inbuilt function in julia which is used to return the maximum value of the parameters."
},
{
"code": null,
"e": 25551,
"s": 25528,
... |
Python - Find first element by second in tuple List - GeeksforGeeks | 09 May, 2022
Sometimes, while working with Python records, we can have a problem in which we need to find the first element of tuple from the given second element. This kind of problem can occur in domains such as web development. Let’s discuss certain ways in which this task can be performed.
Input : test_list = [(4, ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 25819,
"s": 25537,
"text": "Sometimes, while working with Python records, we can have a problem in which we need to find the first element of tuple from the given second element. This kind of... |
response.json() - Python requests - GeeksforGeeks | 22 Nov, 2021
response.json() returns a JSON object of the result (if the result was written in JSON format, if not it raises an error). Python requests are generally used to fetch the content from a particular resource URI. Whenever we make a request to a specified URI through Python, it returns a response object. Now,... | [
{
"code": null,
"e": 25713,
"s": 25685,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 26262,
"s": 25713,
"text": "response.json() returns a JSON object of the result (if the result was written in JSON format, if not it raises an error). Python requests are generally used to fe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.