title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Create Distinct Color Palette in R - GeeksforGeeks
23 May, 2021 In this article, we will discuss how to create a distinct color palette in R Programming Language. There are a number of ways to create color palettes in R programming, all such methods are discussed below. We’ll be using a package named grDevices, stands for graphics Devices, for making distinct color pa...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n23 May, 2021" }, { "code": null, "e": 25059, "s": 24851, "text": "In this article, we will discuss how to create a distinct color palette in R Programming Language. There are a number of ways to create color palettes in R program...
Java final Keyword
❮ Java Keywords Set a variable to final, to prevent it from being overridden/modified: public class Main { final int x = 10; public static void main(String[] args) { Main myObj = new Main(); myObj.x = 25; // will generate an error: cannot assign a value to a final variable System.out.println(myObj.x);...
[ { "code": null, "e": 18, "s": 0, "text": "\n❮ Java Keywords\n" }, { "code": null, "e": 89, "s": 18, "text": "Set a variable to final, to prevent it from being overridden/modified:" }, { "code": null, "e": 329, "s": 89, "text": "public class Main {\n final int...
JqueryUI - Spinner
Spinner widget adds a up/down arrow to the left of a input box thus allowing a user to increment/decrement a value in the input box. It allows users to type a value directly, or modify an existing value by spinning with the keyboard, mouse or scrollwheel. It also has a step feature to skip values. In addition to the b...
[ { "code": null, "e": 2767, "s": 2264, "text": "Spinner widget adds a up/down arrow to the left of a input box thus allowing a user to increment/decrement a value in the input box. It allows users to type a value directly, or modify an existing value by spinning with the keyboard, mouse or scrollwhe...
Data Analysis with Python - GeeksforGeeks
26 Apr, 2022 Data Analysis is the technique to collect, transform, and organize data to make future predictions, and make informed data-driven decisions. It also helps to find possible solutions for a business problem. There are six steps for Data Analysis. They are: Ask or Specify Data Requirements Prepare or Collect ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n26 Apr, 2022" }, { "code": null, "e": 24547, "s": 24292, "text": "Data Analysis is the technique to collect, transform, and organize data to make future predictions, and make informed data-driven decisions. It also helps to find ...
Matlab-Matrix - Trace
Trace helps you to calculate the sum of diagonal elements in a given matrix. Consider the given 3x3 matrix. Let us find out the sum of diagonal elements as shown below − a = [ 1 2 3; 2 3 4; 1 2 5]; test = trace(a) The execution in MATLAB is as follows − >> a = [ 1 2 3; 2 3 4; 1 2 5] test = trace(a) a = 1 2 3 ...
[ { "code": null, "e": 2076, "s": 1999, "text": "Trace helps you to calculate the sum of diagonal elements in a given matrix." }, { "code": null, "e": 2169, "s": 2076, "text": "Consider the given 3x3 matrix. Let us find out the sum of diagonal elements as shown below −" }, { ...
How to send PDF in express route response and force browser download ? - GeeksforGeeks
26 Apr, 2021 In this article, we will see how to send PDF files in the express route’s response and make the browser force download the file. Approach: Load required packages, then create an express app.Define the routes for homepage and PDF download requests.Create an index.html file with a single button to download P...
[ { "code": null, "e": 24486, "s": 24458, "text": "\n26 Apr, 2021" }, { "code": null, "e": 24615, "s": 24486, "text": "In this article, we will see how to send PDF files in the express route’s response and make the browser force download the file." }, { "code": null, "e...
C++ Program to Find Closest Pair of Points in an Array
This is the program to find closest pair of points in an array. For Distance between Closest point Begin Declare function Closest_dist_Spoint(poi stp[], int s, double dist, poi &pnt1, poi &pnt2) to the double datatype. Declare Minimum to the double datatype. Initialize Minimum = dist. for (int i = 0; i <...
[ { "code": null, "e": 1126, "s": 1062, "text": "This is the program to find closest pair of points in an array." }, { "code": null, "e": 1161, "s": 1126, "text": "For Distance between Closest point" }, { "code": null, "e": 1714, "s": 1161, "text": "Begin\n De...
Conditional rendering component using Enums in ReactJS - GeeksforGeeks
23 Nov, 2021 In some situations, React Js developer needs to render and hide components based on the particular condition. For example, while building a To-do list app, the developer needs to render tasks if any pending task is available otherwise they need to show a message like “There is no pending task available.” T...
[ { "code": null, "e": 24330, "s": 24302, "text": "\n23 Nov, 2021" }, { "code": null, "e": 24636, "s": 24330, "text": "In some situations, React Js developer needs to render and hide components based on the particular condition. For example, while building a To-do list app, the dev...
Longest Palindromic Substring | Practice | GeeksforGeeks
Given a string S, find the longest palindromic substring in S. Substring of string S: S[ i . . . . j ] where 0 ≤ i ≤ j < len(S). Palindrome string: A string which reads the same backwards. More formally, S is palindrome if reverse(S) = S. Incase of conflict, return the substring which occurs first ( with the least star...
[ { "code": null, "e": 572, "s": 238, "text": "Given a string S, find the longest palindromic substring in S. Substring of string S: S[ i . . . . j ] where 0 ≤ i ≤ j < len(S). Palindrome string: A string which reads the same backwards. More formally, S is palindrome if reverse(S) = S. Incase of confli...
Check if a given number is Pronic - GeeksforGeeks
31 Jan, 2022 The numbers that can be arranged to form a rectangle are called Rectangular Numbers (also known as Pronic numbers). The first few Pronic numbers are: 0, 2, 6, 12, 20, 30, 42, 56, 72, 90, 110, 132, 156, 182, 210, 240, 272, 306, 342, 380, 420, 462 . . . . . . Pronic number is a number which is the product of...
[ { "code": null, "e": 24802, "s": 24774, "text": "\n31 Jan, 2022" }, { "code": null, "e": 25255, "s": 24802, "text": "The numbers that can be arranged to form a rectangle are called Rectangular Numbers (also known as Pronic numbers). The first few Pronic numbers are: 0, 2, 6, 12, ...
Two interfaces with same methods having same signature but different return types - GeeksforGeeks
17 Apr, 2019 Java does not support multiple inheritances but we can achieve the effect of multiple inheritances using interfaces. In interfaces, a class can implement more than one interface which can’t be done through extends keyword.Please refer Multiple inheritance in java for more.Let’s say we have two interfaces w...
[ { "code": null, "e": 23581, "s": 23553, "text": "\n17 Apr, 2019" }, { "code": null, "e": 23959, "s": 23581, "text": "Java does not support multiple inheritances but we can achieve the effect of multiple inheritances using interfaces. In interfaces, a class can implement more than...
Character Recognition and Segmentation For Custom Data Using Detectron2 | by Syam Kakarla | Towards Data Science
What is Detectron2? Project Setup Build the Model Training and Evaluation Results Resources Detectron2 is an opensource object recognition and segmentation software system that implements state of the art algorithms as part of Facebook AI Research(FAIR). It is a ground-up rewrite in PyTorch to its previous version Dete...
[ { "code": null, "e": 191, "s": 171, "text": "What is Detectron2?" }, { "code": null, "e": 205, "s": 191, "text": "Project Setup" }, { "code": null, "e": 221, "s": 205, "text": "Build the Model" }, { "code": null, "e": 245, "s": 221, "text":...
Number of n digit stepping numbers - GeeksforGeeks
22 Apr, 2021 Given n, find count of n digit Stepping numbers. A number is called stepping number if all adjacent digits have an absolute difference of 1. 321 is a Stepping Number while 421 is not. Examples : Input : 2 Output : 17 Explanation: The numbers are 10, 12, 21, 23, 32, 34, 43, 45, 54, 56, 65, 67, 76, 78, ...
[ { "code": null, "e": 24939, "s": 24911, "text": "\n22 Apr, 2021" }, { "code": null, "e": 25123, "s": 24939, "text": "Given n, find count of n digit Stepping numbers. A number is called stepping number if all adjacent digits have an absolute difference of 1. 321 is a Stepping Numb...
How to Search and Download Data using Kaggle API? | by Satyam Kumar | Towards Data Science
Kaggle is the world’s largest data science community with powerful tools, datasets, and other resources to help you achieve your data science goals. Kaggle contains tons of freely available datasets used for educational purposes. It also hosts competitions and has freely available notebook to explore and run data scien...
[ { "code": null, "e": 523, "s": 171, "text": "Kaggle is the world’s largest data science community with powerful tools, datasets, and other resources to help you achieve your data science goals. Kaggle contains tons of freely available datasets used for educational purposes. It also hosts competition...
Sass - Installation
In this chapter, we will learn the step-by-step procedure to install Ruby, which is used for executing the SASS files. Operating System − Cross-platform Operating System − Cross-platform Browser Support − IE (Internet Explorer 8+), Firefox, Google Chrome, Safari, Opera Browser Support − IE (Internet Explorer 8+), Firef...
[ { "code": null, "e": 1971, "s": 1852, "text": "In this chapter, we will learn the step-by-step procedure to install Ruby, which is used for executing the SASS files." }, { "code": null, "e": 2005, "s": 1971, "text": "Operating System − Cross-platform" }, { "code": null, ...
gdb - Unix, Linux Command
gdb The GNU Debugger gdb [-help] [-nx] [-q] [-batch] [-cd=dir] [-f] [-b bps] [-tty=dev] [-s symfile] [-e prog] [-se prog] [-c core] [-x cmds] [-d dir] [prog[core|procID]] Example-1: To Starting GDB # gdb `which python` /var/cores/core.python.30520 output: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 201...
[ { "code": null, "e": 10599, "s": 10577, "text": "gdb The GNU Debugger" }, { "code": null, "e": 10749, "s": 10599, "text": "gdb [-help] [-nx] [-q] [-batch] [-cd=dir] [-f] [-b bps] [-tty=dev] [-s symfile] [-e prog] [-se prog] [-c core] [-x cmds] [-d dir] [prog[core|procID]]" }, ...
Machine Learning in production: Keras, Flask, Docker and Heroku | by Aissam Outchakoucht | Towards Data Science
In this tutorial we will try to walk together through all the building blocks of a Machine/Deep Learning project in production, i.e. a model that people can actually interact with. Broadly speaking, we’ll create a web interface in which a user could upload an image, then a bit of Deep Learning magic comes into play, an...
[ { "code": null, "e": 353, "s": 172, "text": "In this tutorial we will try to walk together through all the building blocks of a Machine/Deep Learning project in production, i.e. a model that people can actually interact with." }, { "code": null, "e": 559, "s": 353, "text": "Broad...
Python Keras | keras.utils.to_categorical() - GeeksforGeeks
23 Jun, 2021 Keras provides numpy utility library, which provides functions to perform actions on numpy arrays. Using the method to_categorical(), a numpy array (or) a vector which has integers that represent different categories, can be converted into a numpy array (or) a matrix which has binary values and has columns...
[ { "code": null, "e": 26077, "s": 26049, "text": "\n23 Jun, 2021" }, { "code": null, "e": 26432, "s": 26077, "text": "Keras provides numpy utility library, which provides functions to perform actions on numpy arrays. Using the method to_categorical(), a numpy array (or) a vector w...
Android UI Layouts - GeeksforGeeks
21 Feb, 2022 Android Layout is used to define the user interface that holds the UI controls or widgets that will appear on the screen of an android application or activity screen. Generally, every application is a combination of View and ViewGroup. As we know, an android application contains a large number of activitie...
[ { "code": null, "e": 25745, "s": 25717, "text": "\n21 Feb, 2022" }, { "code": null, "e": 26331, "s": 25745, "text": "Android Layout is used to define the user interface that holds the UI controls or widgets that will appear on the screen of an android application or activity scre...
Final static variable in Java - GeeksforGeeks
22 Sep, 2017 Prerequisite : static variables, final keyword Static variable: When the value of a variable is not varied, then it is a not good choice to go for instance variable. At that time we can add static modifier to that variable. Whenever we declare variable as static, then at the class level a single variable i...
[ { "code": null, "e": 24190, "s": 24162, "text": "\n22 Sep, 2017" }, { "code": null, "e": 24237, "s": 24190, "text": "Prerequisite : static variables, final keyword" }, { "code": null, "e": 24729, "s": 24237, "text": "Static variable: When the value of a variab...
Get max and min values of an array in Arduino
In order to get the max/ min values of an array in Arduino, we can run a simple for loop. Two implementations are shown below. One uses the max() and min() functions of Arduino, and the other uses the > and < operators. The max and min functions have the following syntax: max(a,b) and min(a,b), and they return the max ...
[ { "code": null, "e": 1282, "s": 1062, "text": "In order to get the max/ min values of an array in Arduino, we can run a simple for loop. Two implementations are shown below. One uses the max() and min() functions of Arduino, and the other uses the > and < operators." }, { "code": null, "...
CouchDB - Deleting a Document
You can delete a document in CouchDB by sending an HTTP request to the server using DELETE method through cURL utility. Following is the syntax to delete a document. curl -X DELETE http : // 127.0.0.1:5984 / database name/database id?_rev id Using −X, we can specify a custom request method of HTTP we are using, while c...
[ { "code": null, "e": 2004, "s": 1838, "text": "You can delete a document in CouchDB by sending an HTTP request to the server using DELETE method through cURL utility. Following is the syntax to delete a document." }, { "code": null, "e": 2080, "s": 2004, "text": "curl -X DELETE h...
How to connect Azure Account using PowerShell?
To connect the azure account with PowerShell, we can use the Connect-AZAccount command. If we check the command parameters from the below URL, there are multiple methods we can connect to the azure account but in this article, we will use the simple methods to connect. Using the Interactive console to connect portal Us...
[ { "code": null, "e": 1332, "s": 1062, "text": "To connect the azure account with PowerShell, we can use the Connect-AZAccount command. If we check the command parameters from the below URL, there are multiple methods we can connect to the azure account but in this article, we will use the simple met...
Practice Questions for Recursion | Set 3 - GeeksforGeeks
09 Apr, 2021 Explain the functionality of below recursive functions. Question 1 C++ C Java Python3 C# Javascript void fun1(int n){ int i = 0; if (n > 1) fun1(n - 1); for (i = 0; i < n; i++) cout << " * ";} // This code is contributed by shubhamsingh10 void fun1(int n){ int i = 0; if (n > 1) f...
[ { "code": null, "e": 24665, "s": 24637, "text": "\n09 Apr, 2021" }, { "code": null, "e": 24722, "s": 24665, "text": "Explain the functionality of below recursive functions. " }, { "code": null, "e": 24734, "s": 24722, "text": "Question 1 " }, { "code":...
Count frequencies of all elements in array in Python using collections module - GeeksforGeeks
19 Feb, 2021 Given an unsorted array of n integers which can contains n integers. Count frequency of all elements that are present in array.Examples: Input : arr[] = [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 4, 5, 5] Output : 1 -> 4 2 -> 4 3 -> 2 4 -> 1 5 -> 2 This problem can be solved in man...
[ { "code": null, "e": 24800, "s": 24772, "text": "\n19 Feb, 2021" }, { "code": null, "e": 24937, "s": 24800, "text": "Given an unsorted array of n integers which can contains n integers. Count frequency of all elements that are present in array.Examples:" }, { "code": null...
Working of Compiler Phases with Example - GeeksforGeeks
24 Aug, 2020 In this article, we are going to cover an overview that how we can each compiler phase works individually with the help of an example. Let’s discuss one by one. Pre-requisite – Introduction to compiler phases You will see how compiler phases like lexical analyzer, Syntax analyzer, Semantic Analyzer, Interm...
[ { "code": null, "e": 24445, "s": 24417, "text": "\n24 Aug, 2020" }, { "code": null, "e": 24606, "s": 24445, "text": "In this article, we are going to cover an overview that how we can each compiler phase works individually with the help of an example. Let’s discuss one by one." ...
PHP mysqli_refresh() Function
The mysqli_refresh() function refreshes the tables, flushes the logs, flushes the caches. mysqli_refresh($con, options); con(Mandatory) This is an object representing a connection to MySQL Server. options(Mandatory) This represents the options of the MYSQL refresh command, you can specify multiple options by separatin...
[ { "code": null, "e": 2847, "s": 2757, "text": "The mysqli_refresh() function refreshes the tables, flushes the logs, flushes the caches." }, { "code": null, "e": 2879, "s": 2847, "text": "mysqli_refresh($con, options);\n" }, { "code": null, "e": 2894, "s": 2879, ...
Cross Platform NLP GUI on Flutter | by Doug Foo | Towards Data Science
I started a project to build a Killer Chat App that leverages a NLP Sentiment Analyzer to perform realtime chat analysis in live chats as per my last article [2]. This article is the R&D phase of the project: Backend REST service for Sentiment Analysis Front end Visualizer to see what the model produces While I could h...
[ { "code": null, "e": 381, "s": 172, "text": "I started a project to build a Killer Chat App that leverages a NLP Sentiment Analyzer to perform realtime chat analysis in live chats as per my last article [2]. This article is the R&D phase of the project:" }, { "code": null, "e": 425, ...
CUDA - Keywords and Thread Organization
In this chapter, we will discuss the keywords and thread organisation in CUDA. The following keywords are used while declaring a CUDA function. As an example, while declaring the kernel, we have to use the __global__ keyword. This provides a hint to the compiler that this function will be executed on the device and can...
[ { "code": null, "e": 1971, "s": 1892, "text": "In this chapter, we will discuss the keywords and thread organisation in CUDA." }, { "code": null, "e": 2238, "s": 1971, "text": "The following keywords are used while declaring a CUDA function. As an example, while declaring the ker...
C++ Library - <thread>
Thread is a sequence of instructions that can be executed concurrently with other such sequences in multithreading environments, while sharing a same address spac. It is a thread id. It is a native handle type. It is used to construct thread. It is used to destructor thread. It is a move-assign thread. It is used to ge...
[ { "code": null, "e": 2767, "s": 2603, "text": "Thread is a sequence of instructions that can be executed concurrently with other such sequences in multithreading environments, while sharing a same address spac." }, { "code": null, "e": 2786, "s": 2767, "text": "It is a thread id....
How to print object array in JavaScript?
To print object array in JavaScript, use JSON.stringify() method. You can try to run the following code to display object array − Live Demo <!DOCTYPE html> <html> <body> <pre id="test"></pre> <script> var data = [{ date: new Date(2017, 11, 25), value: 10 }, { ...
[ { "code": null, "e": 1128, "s": 1062, "text": "To print object array in JavaScript, use JSON.stringify() method." }, { "code": null, "e": 1192, "s": 1128, "text": "You can try to run the following code to display object array −" }, { "code": null, "e": 1202, "s": ...
How to check if a variable is boolean in JavaScript?
To check if a variable is Boolean in JavaScript, use the typeof operator. You can try to run the following code to check for a Boolean variable − Live Demo <html> <head> <title>JavaScript Boolean</title> </head> <body> <script> var answer = true; if(typeof(answer) === "boolean") ...
[ { "code": null, "e": 1136, "s": 1062, "text": "To check if a variable is Boolean in JavaScript, use the typeof operator." }, { "code": null, "e": 1208, "s": 1136, "text": "You can try to run the following code to check for a Boolean variable −" }, { "code": null, "e":...
Longest alternating subsequence in terms of positive and negative integers - GeeksforGeeks
31 May, 2021 Given an array arr[] of positive and negative numbers only. The task is to find the length of the longest alternating (means negative-positive-negative or positive-negative-positive) subsequence present in the array. Examples: Input: arr[] = {-4, 3, -5, 9, 10, 12, 2, -1} Output: 5 Explanation: The longes...
[ { "code": null, "e": 24549, "s": 24521, "text": "\n31 May, 2021" }, { "code": null, "e": 24767, "s": 24549, "text": "Given an array arr[] of positive and negative numbers only. The task is to find the length of the longest alternating (means negative-positive-negative or positive...
Tag Sort (To get both sorted and original)
14 Jun, 2022 This is not a new sorting algorithm, but an idea when we need to avoid swapping of large objects or need to access elements of a large array in both original and sorted orders.A common sorting task is to sort elements of an array using a sorting algorithm like Quick Sort, Bubble Sort.. etc, but there may b...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Jun, 2022" }, { "code": null, "e": 582, "s": 52, "text": "This is not a new sorting algorithm, but an idea when we need to avoid swapping of large objects or need to access elements of a large array in both original and sorted order...
Program to print tetrahedral numbers upto Nth term
25 May, 2022 Prerequisites: Triangular numbers Tetrahedral numbers Given a value n, and the task is to print tetrahedral number series up to nth term.Examples: Input: 5 Output: 1 4 10 20 35 Input: 10 Output: 1 4 10 20 35 56 84 120 165 220 Method 1: Using Triangular Number series: This problem can b...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 May, 2022" }, { "code": null, "e": 45, "s": 28, "text": "Prerequisites: " }, { "code": null, "e": 64, "s": 45, "text": "Triangular numbers" }, { "code": null, "e": 84, "s": 64, "text": "Tetrah...
MySQL | Common MySQL Queries
14 Aug, 2021 MySQL server is a open-source relational database management system which is a major support for web based applications. Databases and related tables are the main component of many websites and applications as the data is stored and exchanged over the web. Even all social networking websites mainly Faceboo...
[ { "code": null, "e": 52, "s": 24, "text": "\n14 Aug, 2021" }, { "code": null, "e": 541, "s": 52, "text": "MySQL server is a open-source relational database management system which is a major support for web based applications. Databases and related tables are the main component o...
How To Use Jupyter Notebook - An Ultimate Guide - GeeksforGeeks
28 Mar, 2022 The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and m...
[ { "code": null, "e": 24433, "s": 24402, "text": " \n28 Mar, 2022\n" }, { "code": null, "e": 24947, "s": 24433, "text": "The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narr...
How to remove leading and trailing whitespace in a MySQL field?
To remove leading and trailing space, we can use the trim() in MySQL. Firstly, we will create a table with the help of CREATE command. Creating a table − mysql> CREATE table TrailingANdLeadingDemo -> ( -> SpaceTrailLead varchar(100) -> ); Query OK, 0 rows affected (0.57 sec) After creating a table, we will insert a rec...
[ { "code": null, "e": 1197, "s": 1062, "text": "To remove leading and trailing space, we can use the trim() in MySQL. Firstly, we will create a\ntable with the help of CREATE command." }, { "code": null, "e": 1216, "s": 1197, "text": "Creating a table −" }, { "code": null,...
Create two unequal columns with Bootstrap Grid Layout
To create two unequal columns with Bootstrap Grid Layout, you can try to run the following code Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script...
[ { "code": null, "e": 1158, "s": 1062, "text": "To create two unequal columns with Bootstrap Grid Layout, you can try to run the following code" }, { "code": null, "e": 1168, "s": 1158, "text": "Live Demo" }, { "code": null, "e": 1816, "s": 1168, "text": "<!DOC...
A Beginners guide to Building your own Face Recognition System to creep out your Friends | by Rachel Smith | Towards Data Science
Facial recognition systems are steadily making their way into our everyday lives. Built on AI, they can (with varying degrees of accuracy) pick you out of a crowd and identify you as an individual leading to all manner of consequences. Depending on where you live in the world, they are able to unlock your phone screen,...
[ { "code": null, "e": 590, "s": 172, "text": "Facial recognition systems are steadily making their way into our everyday lives. Built on AI, they can (with varying degrees of accuracy) pick you out of a crowd and identify you as an individual leading to all manner of consequences. Depending on where ...
Java - Bitwise Operators Example
The following program is a simple example that demonstrates the bitwise operators. Copy and paste the following Java program in Test.java file and compile and run this program − public class Test { public static void main(String args[]) { int a = 60; /* 60 = 0011 1100 */ int b = 13; /* 13 = 0000 1101 */...
[ { "code": null, "e": 2555, "s": 2377, "text": "The following program is a simple example that demonstrates the bitwise operators. Copy and paste the following Java program in Test.java file and compile and run this program −" }, { "code": null, "e": 3343, "s": 2555, "text": "publ...
Job Sequencing Problem with Deadlines
In this problem, there is a list of jobs given. In the list, the deadline and the profits are also given for each job. Every job will take a single unit of time, so the minimum deadline for a job is 1. If only one job can be scheduled at a time, then maximize the profit. To solve this problem, all subset of the set of ...
[ { "code": null, "e": 1334, "s": 1062, "text": "In this problem, there is a list of jobs given. In the list, the deadline and the profits are also given for each job. Every job will take a single unit of time, so the minimum deadline for a job is 1. If only one job can be scheduled at a time, then ma...
Bootstrap 4 - Text
Bootstrap provides text utilities to control text alignment, transform, weight and more. The text can justified by using the .text-justify class and for left, right, and center alignment of text, use the text-left, text-right and text-center classes respectively. The following example demonstrates usage of text alignme...
[ { "code": null, "e": 1905, "s": 1816, "text": "Bootstrap provides text utilities to control text alignment, transform, weight and more." }, { "code": null, "e": 2080, "s": 1905, "text": "The text can justified by using the .text-justify class and for left, right, and center align...
Cryptography with Python - ROT13 Algorithm
Till now, you have learnt about reverse cipher and Caesar cipher algorithms. Now, let us discuss the ROT13 algorithm and its implementation. ROT13 cipher refers to the abbreviated form Rotate by 13 places. It is a special case of Caesar Cipher in which shift is always 13. Every letter is shifted by 13 places to encrypt...
[ { "code": null, "e": 2433, "s": 2292, "text": "Till now, you have learnt about reverse cipher and Caesar cipher algorithms. Now, let us discuss the ROT13 algorithm and its implementation." }, { "code": null, "e": 2637, "s": 2433, "text": "ROT13 cipher refers to the abbreviated fo...
How to find the sum of variables by row in an R data frame?
To find the sum of variables by row we mean the sum of row values in the data frame. This can be easily done with the help of rowSums function. For example, if we have a data frame called df then the sum of variables by row can be found by using the command − rowSums(df) Consider the below data frame − Live Demo > x1<-...
[ { "code": null, "e": 1322, "s": 1062, "text": "To find the sum of variables by row we mean the sum of row values in the data frame. This can be easily done with the help of rowSums function. For example, if we have a data frame called df then the sum of variables by row can be found by using the com...
Using Bitcoin Data in Python. Getting Started with the Bitcoin... | by Stephen Lewis | Towards Data Science
Bitcoin and cryptocurrencies, in general, have been on the up in recent months. From the sudden crash in March, Bitcoin has responded very well and has since almost doubled in price. Add to this the much-hyped halving event earlier this month, and there are now a lot of people curious and looking to start investing and...
[ { "code": null, "e": 502, "s": 172, "text": "Bitcoin and cryptocurrencies, in general, have been on the up in recent months. From the sudden crash in March, Bitcoin has responded very well and has since almost doubled in price. Add to this the much-hyped halving event earlier this month, and there a...
Get a list of Constraints from MySQL Database?
To get a list of constraints from MySQL database, use the following syntax − select *from information_schema.table_constraints where constraint_schema = 'yourDatabaseName'; Here, we will get the constraints from the database “business”. The following is the query to list the constraints of all the tables in the databas...
[ { "code": null, "e": 1139, "s": 1062, "text": "To get a list of constraints from MySQL database, use the following syntax −" }, { "code": null, "e": 1235, "s": 1139, "text": "select *from information_schema.table_constraints where constraint_schema = 'yourDatabaseName';" }, {...
CSS background-image Property - GeeksforGeeks
11 Oct, 2021 The background-image property is used to set one or more background images for an element. By default, it places the image on the top left corner. To specify two or more images, we need to specify the separate URLs with a comma for both images. Syntax: background-image: url('url')|none|initial|inherit; Pr...
[ { "code": null, "e": 23596, "s": 23568, "text": "\n11 Oct, 2021" }, { "code": null, "e": 23841, "s": 23596, "text": "The background-image property is used to set one or more background images for an element. By default, it places the image on the top left corner. To specify two o...
How to customize the axis of a Bar Plot in R - GeeksforGeeks
18 Jul, 2021 Barplots in R programming language can be created using the barplot() method. It takes as input a matrix or vector of values. The bar heights are equivalent to the values contained in the vector. Syntax: barplot(H, xlab, ylab, main, names.arg, col) The names.args attribute in the barplot() method can be u...
[ { "code": null, "e": 25242, "s": 25214, "text": "\n18 Jul, 2021" }, { "code": null, "e": 25439, "s": 25242, "text": "Barplots in R programming language can be created using the barplot() method. It takes as input a matrix or vector of values. The bar heights are equivalent to the...
Components of convolutional neural networks | by John Olafenwa | Towards Data Science
Recent state-of-the-art architectures have employed a number of additional components to complement the convolution operation. In this post, I would be explaining some of the most important components that have improved both the speed and accuracy of modern convolutional neural networks. I would begin by explaining the...
[ { "code": null, "e": 456, "s": 47, "text": "Recent state-of-the-art architectures have employed a number of additional components to complement the convolution operation. In this post, I would be explaining some of the most important components that have improved both the speed and accuracy of moder...
CSS - text-indent
The text-indent property defines an indentation distance for the first line of text in a block-level element. length − Any length value. Negative lengths are permitted for the property, and will produce a "hanging indent" effect. length − Any length value. Negative lengths are permitted for the property, and will prod...
[ { "code": null, "e": 2737, "s": 2626, "text": "The text-indent property defines an indentation distance for the first line of text in a block-level element." }, { "code": null, "e": 2857, "s": 2737, "text": "length − Any length value. Negative lengths are permitted for the prope...
A guide to XGBoost hyperparameters | by Mahbubul Alam | Towards Data Science
What is the one machine learning algorithm — if you ask — that consistently gives superior performance in regression and classification? XGBoost it is. It is arguably the most powerful algorithm and is increasingly being used in all industries and in all problem domains —from customer analytics and sales prediction to ...
[ { "code": null, "e": 309, "s": 172, "text": "What is the one machine learning algorithm — if you ask — that consistently gives superior performance in regression and classification?" }, { "code": null, "e": 538, "s": 309, "text": "XGBoost it is. It is arguably the most powerful a...
Calculate Running Total in SQL - GeeksforGeeks
27 Apr, 2021 Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracle, etc. In this article, we will be using the Microsoft SQL Server.Here we are going to see how to get the running salary total of each departme...
[ { "code": null, "e": 25623, "s": 25595, "text": "\n27 Apr, 2021" }, { "code": null, "e": 26098, "s": 25623, "text": "Structured Query Language or SQL is a standard Database language that is used to create, maintain and retrieve the data from relational databases like MySQL, Oracl...
Installing Apache Pig 0.17.0 on Windows 10 | by Hadi Fadlallah | Towards Data Science
This article is a part of a series that we are publishing on TowardsDataScience.com that aims to illustrate how to install Big Data technologies on Windows operating system. Previously published: Installing Hadoop 3.2.1 Single node cluster on Windows 10 Installing Apache Hive 3.1.2 on Windows 10 In this article, we wil...
[ { "code": null, "e": 345, "s": 171, "text": "This article is a part of a series that we are publishing on TowardsDataScience.com that aims to illustrate how to install Big Data technologies on Windows operating system." }, { "code": null, "e": 367, "s": 345, "text": "Previously p...
jQuery | index() with examples - GeeksforGeeks
13 Feb, 2019 The index() is an inbuilt method in jQuery which is used to return the index of the a specified elements with respect to selector.Syntax: $(selector).index(element) Parameter: It accepts an optional parameter “element” which is used to get the position of the element.Return value: It returns an integer de...
[ { "code": null, "e": 26716, "s": 26688, "text": "\n13 Feb, 2019" }, { "code": null, "e": 26854, "s": 26716, "text": "The index() is an inbuilt method in jQuery which is used to return the index of the a specified elements with respect to selector.Syntax:" }, { "code": nul...
True, False, and Nil In Ruby - GeeksforGeeks
02 Sep, 2021 Ruby is an open-sourced object-oriented programming language developed by Yukihiro Matsumoto. In Ruby, everything is treated as an object. true, false and nil are built-in data types of Ruby. Note: Always remember in Ruby true, false, and nil are objects, not numbers. Whenever Ruby requires a Boolean value...
[ { "code": null, "e": 23906, "s": 23878, "text": "\n02 Sep, 2021" }, { "code": null, "e": 24297, "s": 23906, "text": "Ruby is an open-sourced object-oriented programming language developed by Yukihiro Matsumoto. In Ruby, everything is treated as an object. true, false and nil are ...
C# - Variables
A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a specific type, which determines the size and layout of the variable's memory the range of values that can be stored within that memory and the set of operations that can be applied to the variable. The b...
[ { "code": null, "e": 2585, "s": 2270, "text": "A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a specific type, which determines the size and layout of the variable's memory the range of values that can be stored within that memory a...
Program to concatenate two given Matrices of same size
12 Apr, 2021 Given two matrices A and B of size M x N, the task is to concatenate them into one matrix.Concatenation of matrix: The process of appending elements of every row of the matrix one after the other is known as the Concatenation of matrix. Examples: Input: A[][] = {{1, 2}, {3, 4}}, B[][] = {{5, 6},...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Apr, 2021" }, { "code": null, "e": 276, "s": 28, "text": "Given two matrices A and B of size M x N, the task is to concatenate them into one matrix.Concatenation of matrix: The process of appending elements of every row of the matrix...
How to Ignore Unknown Properties While Parsing JSON in Java?
21 Apr, 2021 There are unknown properties while parsing JSON in java of which the most common problem while parsing JSON in Java using Jackson API is that it fails when JSON contains unknown properties which means the Java class doesn’t have all the field corresponding to all JSON properties. For example, if you are co...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2021" }, { "code": null, "e": 687, "s": 28, "text": "There are unknown properties while parsing JSON in java of which the most common problem while parsing JSON in Java using Jackson API is that it fails when JSON contains unkno...
lsusb command in Linux with Examples
23 Apr, 2019 The lsusb command in Linux is used to display the information about USB buses and the devices connected to them. The properties displayed are speed, BUS, class, type details, etc. Syntax: lsusb [ options ] Example: Options: -v : This option is used to display the output in verbose mode and also display det...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Apr, 2019" }, { "code": null, "e": 233, "s": 53, "text": "The lsusb command in Linux is used to display the information about USB buses and the devices connected to them. The properties displayed are speed, BUS, class, type details,...
How to find the age when date of birth is known? Using Java?
Java provides a class named Period in the java.time package. This is used to calculate the time period between two given dates as days, months and, years etc. The between() method of this class accepts two LocalDate objects and finds out the period between the two given dates (number of years, months, and days) and ret...
[ { "code": null, "e": 1346, "s": 1187, "text": "Java provides a class named Period in the java.time package. This is used to calculate the time period between two given dates as days, months and, years etc." }, { "code": null, "e": 1532, "s": 1346, "text": "The between() method of...
How to invert key value in JavaScript object ?
03 Dec, 2020 JavaScript is a high level, interpreted and dynamically typed client-side scripting language. JavaScript is used to add dynamic features to the static HTML. Everything is an object in JavaScript. Objects in JavaScript can be declared using figure brackets {..} and the objects may comprise certain propertie...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Dec, 2020" }, { "code": null, "e": 742, "s": 28, "text": "JavaScript is a high level, interpreted and dynamically typed client-side scripting language. JavaScript is used to add dynamic features to the static HTML. Everything is an o...
queue push() and pop() in C++ STL
23 Jun, 2022 The queue is a type of container which operates in a First In First Out (FIFO) type of arrangement. Elements are inserted at the back(end) and are deleted from the front of the queue. push() function is used to insert an element at the back of the queue. This is an inbuilt function from C++ Standard Templ...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Jun, 2022" }, { "code": null, "e": 238, "s": 53, "text": "The queue is a type of container which operates in a First In First Out (FIFO) type of arrangement. Elements are inserted at the back(end) and are deleted from the front of t...
Sum of absolute differences of all pairs in a given array
05 Jul, 2022 Given a sorted array of distinct elements, the task is to find the summation of absolute differences of all pairs in the given array. Examples: Input : arr[] = {1, 2, 3, 4} Output: 10 Sum of |2-1| + |3-1| + |4-1| + |3-2| + |4-2| + |4-3| = 10 Input : arr[] = {1, 8, 9, 15, 16} Output: 74 Input : ar...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Jul, 2022" }, { "code": null, "e": 186, "s": 52, "text": "Given a sorted array of distinct elements, the task is to find the summation of absolute differences of all pairs in the given array." }, { "code": null, "e": 197...
Map entrySet() method in Java with Examples
20 Jan, 2022 The java.util.Map.entrySet() method in Java is used to create a set out of the same elements contained in the map. It basically returns a set view of the map or we can create a new set and store the map elements into them. Syntax: map.entrySet() Parameters: The method does not take any parameter. Return Va...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Jan, 2022" }, { "code": null, "e": 276, "s": 53, "text": "The java.util.Map.entrySet() method in Java is used to create a set out of the same elements contained in the map. It basically returns a set view of the map or we can create...
Python eval()
The eval() method parses the expression passed on to this method and runs the expression within the program. In other words, it interprets a string as code inside a python program. The Syntax for eval is as below − eval(expression, globals=None, locals=None) Where Expression − It is the python expression passed onto th...
[ { "code": null, "e": 1368, "s": 1187, "text": "The eval() method parses the expression passed on to this method and runs the expression within the program. In other words, it interprets a string as code inside a python program." }, { "code": null, "e": 1402, "s": 1368, "text": "T...
Bottom Up Testing
Each component at lower hierarchy is tested individually and then the components that rely upon these components are tested. The order of Integration by Bottom-down approach will be: 4,2 5,2 6,3 7,3 2,1 3,1 + Firstly, Test 4,5,6,7 individually using drivers. + Test 2 such that it calls 4 and 5 separately. If an error ...
[ { "code": null, "e": 6004, "s": 5879, "text": "Each component at lower hierarchy is tested individually and then the components that rely upon these components are tested." }, { "code": null, "e": 6062, "s": 6004, "text": "The order of Integration by Bottom-down approach will be:...
What does the if __name__ == "__main__": do in Python?
When the Python interpreter reads a source file, it executes all of the code found in it. Before executing the code, it will define a few special variables. For example, if the python interpreter is running that module (the source file) as the main program, it sets the special __name__ variable to have a value "__main_...
[ { "code": null, "e": 1277, "s": 1187, "text": "When the Python interpreter reads a source file, it executes all of the code found in it." }, { "code": null, "e": 1606, "s": 1277, "text": "Before executing the code, it will define a few special variables. For example, if the pytho...
Rotate a Matrix by 180 degree
01 May, 2021 Given a square matrix, the task is that we turn it by 180 degrees in an anti-clockwise direction without using any extra space. Examples : Input : 1 2 3 4 5 6 7 8 9 Output : 9 8 7 6 5 4 3 2 1 Input : 1 2 3 4 5 6 7 8 9 0 1 2 3 4 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 May, 2021" }, { "code": null, "e": 183, "s": 54, "text": "Given a square matrix, the task is that we turn it by 180 degrees in an anti-clockwise direction without using any extra space. " }, { "code": null, "e": 195, ...
Text Preprocessing in Python | Set 2
29 May, 2019 Prerequisite: Introduction to NLP, Text Preprocessing in Python | Set 1 In the previous post, we saw the basic preprocessing steps when working with textual data. In this article, we will look at some more advanced text preprocessing techniques. We can use these techniques to gain more insights into the da...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 May, 2019" }, { "code": null, "e": 100, "s": 28, "text": "Prerequisite: Introduction to NLP, Text Preprocessing in Python | Set 1" }, { "code": null, "e": 352, "s": 100, "text": "In the previous post, we saw the b...
What is the purpose of the testng.xml file?
The testng.xml file has the numerous uses as listed below − Test cases are executed in groups. Test cases are executed in groups. Test methods can be included or excluded in the execution. Test methods can be included or excluded in the execution. The execution of multiple test cases from multiple java class files can ...
[ { "code": null, "e": 1247, "s": 1187, "text": "The testng.xml file has the numerous uses as listed below −" }, { "code": null, "e": 1282, "s": 1247, "text": "Test cases are executed in groups." }, { "code": null, "e": 1317, "s": 1282, "text": "Test cases are e...
Remove last node of the linked list
24 Jun, 2022 Given a linked list, the task is to remove the last node of the linked list and update the head pointer of the linked list. Examples: Input: 1 -> 2 -> 3 -> 4 -> 5 -> NULL Output: 1 -> 2 -> 3 -> 4 -> NULL Explanation: The last node of the linked list is 5, so 5 is deleted. Input: 2 -> 4 -> 6 -> 8 -> 33 ...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jun, 2022" }, { "code": null, "e": 176, "s": 52, "text": "Given a linked list, the task is to remove the last node of the linked list and update the head pointer of the linked list." }, { "code": null, "e": 188, "s":...
Number of handshakes such that a person shakes hands only once
02 May, 2022 There is N number of people at a party. Find the total number of handshakes such that a person can handshake only once. Examples: Input : 5 Output : 10 Input : 9 Output : 36 We can see a recursive nature in the problem. // n-th person has (n-1) choices and after // n-th person chooses a person, problem...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 May, 2022" }, { "code": null, "e": 172, "s": 52, "text": "There is N number of people at a party. Find the total number of handshakes such that a person can handshake only once." }, { "code": null, "e": 183, "s": 172...
Python MongoDB - Create Database
Unlike other databases, MongoDB does not provide separate command to create a database. In general, the use command is used to select/switch to the specific database. This command initially verifies whether the database we specify exists, if so, it connects to it. If the database, we specify with the use command doesn’...
[ { "code": null, "e": 3293, "s": 3205, "text": "Unlike other databases, MongoDB does not provide separate command to create a database." }, { "code": null, "e": 3565, "s": 3293, "text": "In general, the use command is used to select/switch to the specific database. This command in...
Exploratory Data Analysis with Python in B2B Marketing | by Mai Nguyen | Towards Data Science
This project focuses on conducting Exploratory Data Analysis (EDA) for B2B Marketing using Python. We will use data from Olist, an e-commerce platform that connects small and medium business with top Marketplaces in Brazil, as an example. Besides providing the method and the code, I also want to discuss the fundamental...
[ { "code": null, "e": 641, "s": 172, "text": "This project focuses on conducting Exploratory Data Analysis (EDA) for B2B Marketing using Python. We will use data from Olist, an e-commerce platform that connects small and medium business with top Marketplaces in Brazil, as an example. Besides providin...
How do I remove a particular element from an array in JavaScript
To remove an element from an array, use the splice() method. JavaScript array splice() method changes the content of an array, adding new elements while removing old elements. The following are the parameters − index − Index at which to start changing the array. index − Index at which to start changing the array. howMa...
[ { "code": null, "e": 1238, "s": 1062, "text": "To remove an element from an array, use the splice() method. JavaScript array splice() method changes the content of an array, adding new elements while removing old elements." }, { "code": null, "e": 1273, "s": 1238, "text": "The fo...
Describe about net income approach in capital structure.
Capital structure plays an important role in value of a company. Different companies have different capital structures like some have capital based on debt, some have based on equity and some have a mixed or combination of both in their financial mix. Durand proposed net income approach and he states that change in cos...
[ { "code": null, "e": 1314, "s": 1062, "text": "Capital structure plays an important role in value of a company. Different companies have different\ncapital structures like some have capital based on debt, some have based on equity and some have a\nmixed or combination of both in their financial mix....
Batch Script - TYPE
This batch command prints the content of a file or files to the output. TYPE [filename] Where filename is the file whose contents need to be displayed. @echo off TYPE C:\tp\lists.txt The contents of the file lists.txt will be displayed to the command prompt. Print Add Notes Bookmark this page
[ { "code": null, "e": 2241, "s": 2169, "text": "This batch command prints the content of a file or files to the output." }, { "code": null, "e": 2258, "s": 2241, "text": "TYPE [filename]\n" }, { "code": null, "e": 2322, "s": 2258, "text": "Where filename is the...
Batch Script - Arrays
Arrays are not specifically defined as a type in Batch Script but can be implemented. The following things need to be noted when arrays are implemented in Batch Script. Each element of the array needs to be defined with the set command. The ‘for’ loop would be required to iterate through the values of the array. An arr...
[ { "code": null, "e": 2338, "s": 2169, "text": "Arrays are not specifically defined as a type in Batch Script but can be implemented. The following things need to be noted when arrays are implemented in Batch Script." }, { "code": null, "e": 2406, "s": 2338, "text": "Each element ...
Google AMP - Form
This chapter explains how to work with form in Google AMP. Note that forms tag remains the same as in standard HTML. AMP has added special restriction on the use of forms due to which we need to add the amp-form JavaScript file to work with forms. <script async custom-element = "amp-form" src = "https://cdn.ampproj...
[ { "code": null, "e": 2479, "s": 2420, "text": "This chapter explains how to work with form in Google AMP." }, { "code": null, "e": 2668, "s": 2479, "text": "Note that forms tag remains the same as in standard HTML. AMP has added special restriction on the use of forms due to whic...
How to convert date YYYYMMDD to YY-MM-DD in MySQL query?
To convert date YYYYMMDD to YY-MM-DD in MySQL, use the below syntax − select date_format(str_to_date(yourColumnName, '%Y%m%d'),'%Y-%m-%d') from yourTableName; Let us first create a table − mysql> create table DemoTable ( ClientId int NOT NULL AUTO_INCREMENT PRIMARY KEY, ClientProjectDeadline varchar(200) ); Query...
[ { "code": null, "e": 1132, "s": 1062, "text": "To convert date YYYYMMDD to YY-MM-DD in MySQL, use the below syntax −" }, { "code": null, "e": 1221, "s": 1132, "text": "select date_format(str_to_date(yourColumnName, '%Y%m%d'),'%Y-%m-%d') from yourTableName;" }, { "code": n...
Deep Learning for NLP: Creating a Chatbot with Keras! | by z_ai | Towards Data Science
In the previous post, we learned what Artificial Neural Networks and Deep Learning are. Also, some neural network structures for exploiting sequential data like text or audio were introduced. If you haven’t read that post, you should sit back, grab a coffee, and slowly enjoy it. It can be found here. This new post will...
[ { "code": null, "e": 474, "s": 172, "text": "In the previous post, we learned what Artificial Neural Networks and Deep Learning are. Also, some neural network structures for exploiting sequential data like text or audio were introduced. If you haven’t read that post, you should sit back, grab a coff...
Lua - Environment
If you are still willing to set up your environment for Lua programming language, you need the following softwares available on your computer - (a) Text Editor, (b) The Lua Interpreter, and (c) Lua Compiler. You need a text editor to type your program. Examples of a few editors include Windows Notepad, OS Edit command,...
[ { "code": null, "e": 2311, "s": 2103, "text": "If you are still willing to set up your environment for Lua programming language, you need the following softwares available on your computer - (a) Text Editor, (b) The Lua Interpreter, and (c) Lua Compiler." }, { "code": null, "e": 2462, ...
Swift - Deinitialization
Before a class instance needs to be deallocated 'deinitializer' has to be called to deallocate the memory space. The keyword 'deinit' is used to deallocate the memory spaces occupied by the system resources. Deinitialization is available only on class types. Swift 4 automatically deallocates your instances when they ar...
[ { "code": null, "e": 2512, "s": 2253, "text": "Before a class instance needs to be deallocated 'deinitializer' has to be called to deallocate the memory space. The keyword 'deinit' is used to deallocate the memory spaces occupied by the system resources. Deinitialization is available only on class t...
Android - Emulator
The Android SDK includes a virtual mobile device emulator that runs on your computer. The emulator lets you prototype, develop and test Android applications without using a physical device. In this chapter we are going to explore different functionalities in the emulator that are present in the real android device. If ...
[ { "code": null, "e": 3797, "s": 3607, "text": "The Android SDK includes a virtual mobile device emulator that runs on your computer. The emulator lets you prototype, develop and test Android applications without using a physical device." }, { "code": null, "e": 3924, "s": 3797, "...
Get and Set Working Directory in R - GeeksforGeeks
30 Jun, 2021 In this article, we are going to see how to get and set a working directory in R Programming Language. getwd(): The getwd() method is used to gather information about the current working pathname or default working directory. This function has no arguments. It returns an absolute pathname. It returns NULL ...
[ { "code": null, "e": 25162, "s": 25134, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25265, "s": 25162, "text": "In this article, we are going to see how to get and set a working directory in R Programming Language." }, { "code": null, "e": 25514, "s": 25265, ...
How to update only one property in MongoDB?
To update only one property, use $addToSet in MongoDB. Let us create a collection with documents − > db.demo336.insertOne({"Name":"Chris","Score":[45,67,78]}); { "acknowledged" : true, "insertedId" : ObjectId("5e522cb1f8647eb59e562097") } > db.demo336.insertOne({"Name":"David","Score":[89,93,47]}); { "acknowle...
[ { "code": null, "e": 1161, "s": 1062, "text": "To update only one property, use $addToSet in MongoDB. Let us create a collection with documents −" }, { "code": null, "e": 1453, "s": 1161, "text": "> db.demo336.insertOne({\"Name\":\"Chris\",\"Score\":[45,67,78]});\n{\n \"acknowl...
Parse and format a number to decimal in Java
To parse and format a number to decimal, try the following code. Live Demo public class Demo { public static void main( String args[] ) { int val = Integer.parseInt("5"); String str = Integer.toString(val); System.out.println(str); } } 5 In the above program, we have used the Integer.parseInt()...
[ { "code": null, "e": 1127, "s": 1062, "text": "To parse and format a number to decimal, try the following code." }, { "code": null, "e": 1138, "s": 1127, "text": " Live Demo" }, { "code": null, "e": 1323, "s": 1138, "text": "public class Demo {\n public stat...
Java Examples - Spliting a String
How to split a string into a number of substrings ? Following example splits a string into a number of substrings with the help of str split(string) method and then prints the substrings. public class JavaStringSplitEmp{ public static void main(String args[]) { String str = "jan-feb-march"; String[] temp...
[ { "code": null, "e": 2120, "s": 2068, "text": "How to split a string into a number of substrings ?" }, { "code": null, "e": 2256, "s": 2120, "text": "Following example splits a string into a number of substrings with the help of str split(string) method and then prints the substr...
Address Binding and its Types - GeeksforGeeks
23 Oct, 2020 In this article, We are going to cover address binding with the help of an example and Its types like compile time, load time, and execution time address binding. Let’s discuss one by one. Address Binding :The Association of program instruction and data to the actual physical memory locations is called the...
[ { "code": null, "e": 24446, "s": 24418, "text": "\n23 Oct, 2020" }, { "code": null, "e": 24635, "s": 24446, "text": "In this article, We are going to cover address binding with the help of an example and Its types like compile time, load time, and execution time address binding. ...
How to add a black hover to an image using bootstrap? - GeeksforGeeks
15 Sep, 2020 Bootstrap is a popular CSS framework widely used by frontend developers to create interactive UI for web applications. Bootstrap is widely used because of its simplicity and ease to use. BootStrap allows multiple utilities to make images interactive. One of these utilities can be changing the color of the ...
[ { "code": null, "e": 28440, "s": 28412, "text": "\n15 Sep, 2020" }, { "code": null, "e": 28918, "s": 28440, "text": "Bootstrap is a popular CSS framework widely used by frontend developers to create interactive UI for web applications. Bootstrap is widely used because of its simp...
How do I get the 'state' of a Tkinter Checkbutton?
Tkinter provides a variety of input widgets such as entry widget, text widget, listbox, combobox, spinbox, checkbox, etc. Checkboxes are used for taking validity input and the state gets active whenever the user clicks on the checkbutton. In terms of a particular application, we can check the state of the tkinter Check...
[ { "code": null, "e": 1475, "s": 1062, "text": "Tkinter provides a variety of input widgets such as entry widget, text widget, listbox, combobox, spinbox, checkbox, etc. Checkboxes are used for taking validity input and the state gets active whenever the user clicks on the checkbutton. In terms of a ...
C# - Indexers
An indexer allows an object to be indexed such as an array. When you define an indexer for a class, this class behaves similar to a virtual array. You can then access the instance of this class using the array access operator ([ ]). A one dimensional indexer has the following syntax − element-type this[int index] { ...
[ { "code": null, "e": 2503, "s": 2270, "text": "An indexer allows an object to be indexed such as an array. When you define an indexer for a class, this class behaves similar to a virtual array. You can then access the instance of this class using the array access operator ([ ])." }, { "code"...
Real World Example on Web Scraping with Selenium and Beautiful Soup | by Timothy Tan | Towards Data Science
5.39 Billion. That’s how many pages the World Wide Web has got. In terms of data? Over 1,200 petabytes worth. That’s equivalent to 1,200,000 terabytes, and 1,200,000,000 gigabytes. All I’m saying is that there is a hell lot of unstructured data out there on the web. Just sitting there... Waiting to be scraped and analy...
[ { "code": null, "e": 61, "s": 47, "text": "5.39 Billion." }, { "code": null, "e": 111, "s": 61, "text": "That’s how many pages the World Wide Web has got." }, { "code": null, "e": 129, "s": 111, "text": "In terms of data?" }, { "code": null, "e": 1...
How to set Row Header View for JScrollPane in Java?
Set Row Header View using the setRowHeaderView() method. Let us first create a KScrollPane and set a list − List<String> myList = new ArrayList<>(10); for (int index = 0; index < 20; index++) { myList.add("List Item " + index); } final JList<String> list = new JList<String>(myList.toArray(new String[myList.size()]))...
[ { "code": null, "e": 1170, "s": 1062, "text": "Set Row Header View using the setRowHeaderView() method. Let us first create a KScrollPane and set a list −" }, { "code": null, "e": 1462, "s": 1170, "text": "List<String> myList = new ArrayList<>(10);\nfor (int index = 0; index < 20...
Node.js response.writeHead() Method - GeeksforGeeks
23 Sep, 2020 The response.writeHead() (Added in v1..0) property is an inbuilt property of the ‘http’ module which sends a response header to the request. The status code is a 3-digit HTTP status code, like 404. The last argument, headers, are the response headers. Optionally one can give a human-readable statusMessage ...
[ { "code": null, "e": 24498, "s": 24470, "text": "\n23 Sep, 2020" }, { "code": null, "e": 24829, "s": 24498, "text": "The response.writeHead() (Added in v1..0) property is an inbuilt property of the ‘http’ module which sends a response header to the request. The status code is a 3...
An array of streams in C#
Set the string array for the values − string[] names = new string[] {"Jack", "Tom"}; Now using foreach array, write the content in the file − using (StreamWriter sw = new StreamWriter("names.txt")) { foreach (string s in names) { sw.WriteLine(s); } } The following is an example showing an array of streams ...
[ { "code": null, "e": 1100, "s": 1062, "text": "Set the string array for the values −" }, { "code": null, "e": 1147, "s": 1100, "text": "string[] names = new string[] {\"Jack\", \"Tom\"};" }, { "code": null, "e": 1204, "s": 1147, "text": "Now using foreach arra...
How to assign int value to char variable in Java
To assign int value to a char variable in Java would consider the ASCII value and display the associated character/ digit. Here, we have a char. char val; Now assign int value to it. val = 77; Now, when you will print the value of “val”, it would display the character associate with the value (ASCII) 77. The following ...
[ { "code": null, "e": 1185, "s": 1062, "text": "To assign int value to a char variable in Java would consider the ASCII value and display the associated character/ digit." }, { "code": null, "e": 1207, "s": 1185, "text": "Here, we have a char." }, { "code": null, "e": ...
Center links in a Navigation Bar with CSS
To center links in a navigation bar, you need to add ‘text-align: center’ to <li> Live Demo <!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; width: 200px; } li a { display: block; ...
[ { "code": null, "e": 1144, "s": 1062, "text": "To center links in a navigation bar, you need to add ‘text-align: center’ to <li>" }, { "code": null, "e": 1154, "s": 1144, "text": "Live Demo" }, { "code": null, "e": 1969, "s": 1154, "text": "<!DOCTYPE html>\n<h...
How to show a Soft Keyboard based on Android EditText focused using Kotlin?
This example demonstrates how to show a Soft Keyboard based on Android EditText focused 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" enco...
[ { "code": null, "e": 1164, "s": 1062, "text": "This example demonstrates how to show a Soft Keyboard based on Android EditText focused using Kotlin." }, { "code": null, "e": 1293, "s": 1164, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fi...