title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Java Program to Sort Objects in ArrayList by Date
21 Feb, 2022 The foremost tool that strikes is the sort() method to be used for the comparator mechanism of the Collections class which sorts in the decreasing order. Yes if in generic we want to achieve the goal considering the boundary condition where objects to sorted are user-defined then blindly do with Comparator...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Feb, 2022" }, { "code": null, "e": 433, "s": 28, "text": "The foremost tool that strikes is the sort() method to be used for the comparator mechanism of the Collections class which sorts in the decreasing order. Yes if in generic we ...
Sum and Product of Array elements using JavaScript
12 Sep, 2019 Given an array and is the task to find the Sum and Product of the values of an Array using JavaScript. Simple method: It uses a simple method to access the array elements by an index number and use the loop to find the sum and product of values of an Array using JavaScript. Example 1: This example uses a s...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Sep, 2019" }, { "code": null, "e": 131, "s": 28, "text": "Given an array and is the task to find the Sum and Product of the values of an Array using JavaScript." }, { "code": null, "e": 303, "s": 131, "text": "Sim...
mktime() function in C++ STL
20 Jul, 2021 The mktime() is an inbuilt C++ function which converts the local calendar time to the time since epoch and returns the value as an object of type time_t. Syntax : time_t mktime( struct tm *time_ptr ) Parameters: The function accepts a mandatory parameter pointer time_ptr that points to a tm object struc...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jul, 2021" }, { "code": null, "e": 182, "s": 28, "text": "The mktime() is an inbuilt C++ function which converts the local calendar time to the time since epoch and returns the value as an object of type time_t." }, { "code":...
Unsupervised Anomaly Detection in Python | by Edwin Tan | Towards Data Science
Anomaly detection also known as outlier detection is the process of finding data points within a dataset that differs from the rest. Common applications of anomaly detection includes fraud detection in financial transactions, fault detection and predictive maintenance. Broadly speaking, anomaly detection can be categor...
[ { "code": null, "e": 442, "s": 172, "text": "Anomaly detection also known as outlier detection is the process of finding data points within a dataset that differs from the rest. Common applications of anomaly detection includes fraud detection in financial transactions, fault detection and predictiv...
process.cpuUsage() Method in Node.js
The process.argv() method is used for getting the user and its cpu usage for the current running process. The data is returned in an object with the properties user and system. The values obtained are in microseconds,i.e.10^-6 seconds. The values returned may be greater than the actual elapsed time if multiple cores ar...
[ { "code": null, "e": 1425, "s": 1062, "text": "The process.argv() method is used for getting the user and its cpu usage for the current running process. The data is returned in an object with the properties user and system. The values obtained are in microseconds,i.e.10^-6 seconds. The values return...
JavaScript Prompt Example
The prompt dialog box is very useful when you want to pop-up a text box to get user input. Thus, it enables you to interact with the user. The user needs to fill in the field and then click OK. This dialog box is displayed using a method called prompt() Following is the code for showing prompt in JavaScript − Live Dem...
[ { "code": null, "e": 1316, "s": 1062, "text": "The prompt dialog box is very useful when you want to pop-up a text box to get user input. Thus, it enables you to interact with the user. The user needs to fill in the field and then click OK. This dialog box is displayed using a method called prompt()...
Detecting knee- / elbow points in a graph | by Daniel Kleine | Towards Data Science
When working with data, it is sometimes important to know where a data point’s “relative costs to increase some tunable parameter is no longer worth the corresponding performance benefit” (Satopää, Albrecht, Irwin, and Raghavan, 2011, [2], p.1 ). The algorithm “Kneedle” detects those beneficial data points showing th...
[ { "code": null, "e": 912, "s": 172, "text": "When working with data, it is sometimes important to know where a data point’s “relative costs to increase some tunable parameter is no longer worth the corresponding performance benefit” (Satopää, Albrecht, Irwin, and Raghavan, 2011, [2], p.1 ). The al...
Sorting an associative array in ascending order - JavaScript
Suppose, we have an array of objects like this − const people = [ {"id":1, "name":"Andrew", "age":30, "gender":"m", "category":"G"}, {"id":2, "name":"Brandon", "age":25, "gender":"m", "category":"G"}, {"id":3, "name":"Christine", "age":20, "gender":"m", "category":"G"}, {"id":4, "name":"Elena", "age":29, "g...
[ { "code": null, "e": 1111, "s": 1062, "text": "Suppose, we have an array of objects like this −" }, { "code": null, "e": 1415, "s": 1111, "text": "const people = [\n {\"id\":1, \"name\":\"Andrew\", \"age\":30, \"gender\":\"m\", \"category\":\"G\"},\n {\"id\":2, \"name\":\"Bra...
Gradient Descent animation: 1. Simple linear Regression | by Tobias Roeschl | Towards Data Science
The Gradient Descent method is one of the most widely used parameter optimization algorithms in machine learning today. Python’s celluloid-module enables us to create vivid animations of model parameters and costs during gradient descent. In this article, I exemplarily want to use simple linear regression to visualize ...
[ { "code": null, "e": 411, "s": 172, "text": "The Gradient Descent method is one of the most widely used parameter optimization algorithms in machine learning today. Python’s celluloid-module enables us to create vivid animations of model parameters and costs during gradient descent." }, { "c...
Count maximum number of cars parked at the same time - GeeksforGeeks
23 Aug, 2021 Given a 2d array arr[][] with each row representing a pair representing entry and exit time of a car in a parking lot, the task is to calculate the maximum number of cars that can be parked at the same time. Examples: Input: arr[][] = {{1012, 1136}, {1317, 1417}, {1015, 1020}}Output: 2Explanation:1st car e...
[ { "code": null, "e": 25141, "s": 25113, "text": "\n23 Aug, 2021" }, { "code": null, "e": 25349, "s": 25141, "text": "Given a 2d array arr[][] with each row representing a pair representing entry and exit time of a car in a parking lot, the task is to calculate the maximum number ...
java.lang.reflect.Field.get() Method Example
The java.lang.reflect.Field.get(Object obj) method returns the value of the field represented by this Field, on the specified object. The value is automatically wrapped in an object if it has a primitive type. Following is the declaration for java.lang.reflect.Field.get(Object obj) method. public Object get(Object obj)...
[ { "code": null, "e": 1664, "s": 1454, "text": "The java.lang.reflect.Field.get(Object obj) method returns the value of the field represented by this Field, on the specified object. The value is automatically wrapped in an object if it has a primitive type." }, { "code": null, "e": 1745, ...
Python Stock Analysis — Candlestick Chart with Python and Plotly | by Jose Manu (CodingFun) | Towards Data Science
A candlestick chart is a very common and useful representation of stock prices. By looking into a candlestick chart, we can visually see the open, close, low and high price for any given stock. In this article, I would like to show you how to use Python, Pandas and Plotly to build your own candlestick chart. We will st...
[ { "code": null, "e": 366, "s": 172, "text": "A candlestick chart is a very common and useful representation of stock prices. By looking into a candlestick chart, we can visually see the open, close, low and high price for any given stock." }, { "code": null, "e": 482, "s": 366, "...
How to split last n digits of each value in the array with JavaScript?
We have an array of literals like this − const arr = ["", 20191219, 20191220, 20191221, 20191222, 20191223, 20191224, 20191225]; We are required to write a JavaScript function that takes in this array and a number n and if the corresponding element contains more than or equal to n characters, then the new element shoul...
[ { "code": null, "e": 1103, "s": 1062, "text": "We have an array of literals like this −" }, { "code": null, "e": 1191, "s": 1103, "text": "const arr = [\"\", 20191219, 20191220, 20191221, 20191222, 20191223, 20191224, 20191225];" }, { "code": null, "e": 1466, "s":...
Python - WebForm Submission
Often the interaction with a webpage needs some data to be submitted to the server through the forms present in the html page. These webforms are typically used for processes like signing up for a new account or supplying some information like name or roll number to retrieve the result of an examination. The requests ...
[ { "code": null, "e": 2729, "s": 2326, "text": "Often the interaction with a webpage needs some data to be submitted to the server through the forms present in the html page. These webforms are typically used \nfor processes like signing up for a new account or supplying some information like name or...
Count the number of occurrences of a string in a VARCHAR field in MySQL?
To count the number of occurrences of a string in a VARCHAR, we can use the logic of subtraction with length. First, we will create a table with the help of create command. mysql> create table StringOccurrenceDemo -> ( -> Cases varchar(100), -> StringValue varchar(500) -> ); Query OK, 0 rows affected (0.56 ...
[ { "code": null, "e": 1235, "s": 1062, "text": "To count the number of occurrences of a string in a VARCHAR, we can use the logic of subtraction with length. First, we will create a table with the help of create command." }, { "code": null, "e": 1388, "s": 1235, "text": "mysql> cr...
Microsoft Azure - Find Orphaned Disks - GeeksforGeeks
16 Dec, 2021 In this article, you will see that how to find the unattached disks also known as orphaned disks in Azure. The main objective or purpose of deleting the orphaned resources is to save the cost of unused resources. When you delete a VM in Azure, the disks will not be deleted automatically and they will be le...
[ { "code": null, "e": 25772, "s": 25744, "text": "\n16 Dec, 2021" }, { "code": null, "e": 26101, "s": 25772, "text": "In this article, you will see that how to find the unattached disks also known as orphaned disks in Azure. The main objective or purpose of deleting the orphaned r...
How to parse JSON input using Python?
You can parse JSON files using the JSON module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content − { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": ...
[ { "code": null, "e": 1290, "s": 1062, "text": "You can parse JSON files using the JSON module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content −" }, { "code": nul...
How to use custom headers in the PowerShell output table?
If you want the specific properties in PowerShell, you need to use the Select-Object (Alias − Select) as a pipeline. In the below example, we will retrieve the specific properties of the Spooler service. Get-Service Spooler | Select Name, DisplayName, Starttype, Status Name DisplayName StartType Status ----...
[ { "code": null, "e": 1179, "s": 1062, "text": "If you want the specific properties in PowerShell, you need to use the Select-Object (Alias − Select) as a pipeline." }, { "code": null, "e": 1266, "s": 1179, "text": "In the below example, we will retrieve the specific properties of...
Data Preprocessing with scikit-learn — Missing Values | by Angelica Lo Duca | Towards Data Science
By popular demand from my previous article, in this tutorial I illustrate how to preprocess data using scikit-learn, a Python library for machine learning. Data preprocessing transforms data into a format which is more suitable for estimators. Data preprocessing involves the following operations: dealing with missing v...
[ { "code": null, "e": 328, "s": 172, "text": "By popular demand from my previous article, in this tutorial I illustrate how to preprocess data using scikit-learn, a Python library for machine learning." }, { "code": null, "e": 470, "s": 328, "text": "Data preprocessing transforms ...
Implementing an XGBoost Model in R | by Michael Grogan | Towards Data Science
In this example, an XGBoost model is built in R to predict incidences of customers cancelling their hotel booking. The analysis is based on data from Antonio, Almeida and Nunes (2019): Hotel booking demand datasets. The H1 dataset is used for training and validation, while H2 is used for testing purposes. In order to p...
[ { "code": null, "e": 387, "s": 171, "text": "In this example, an XGBoost model is built in R to predict incidences of customers cancelling their hotel booking. The analysis is based on data from Antonio, Almeida and Nunes (2019): Hotel booking demand datasets." }, { "code": null, "e": 47...
Text Classifier with Multiple Outputs and Multiple Losses in Keras | by Daniel Da Costa | Towards Data Science
In this post, we'll go through the definition of a multi-label classifier, multiple losses, text preprocessing and a step-by-step explanation on how to build a multi-output RNN-LSTM in Keras. The dataset that we'll be working on consists of natural disaster messages that are classified into 36 different classes. The da...
[ { "code": null, "e": 363, "s": 171, "text": "In this post, we'll go through the definition of a multi-label classifier, multiple losses, text preprocessing and a step-by-step explanation on how to build a multi-output RNN-LSTM in Keras." }, { "code": null, "e": 554, "s": 363, "te...
Finding the longest string in an array in JavaScript
We are required to write a JavaScript function that takes in an array of strings. Our function should iterate through the array and find and return the longest string from the array. Our function should do this without changing the content of the input array. The code for this will be − const arr = ["aaaa", "aa", "aa",...
[ { "code": null, "e": 1245, "s": 1062, "text": "We are required to write a JavaScript function that takes in an array of strings. Our function should iterate through the array and find and return the longest string from the array." }, { "code": null, "e": 1322, "s": 1245, "text": ...
How to create an ordinal variable in R?
An ordinal variable is a type of categorical variable which has natural ordering. For example, an ordinal variable could be level of salary something defined with Low, Medium, and High categories here we have three categories but there exists a natural order in these categories as low salary is always less than the med...
[ { "code": null, "e": 1727, "s": 1187, "text": "An ordinal variable is a type of categorical variable which has natural ordering. For example, an ordinal variable could be level of salary something defined with Low, Medium, and High categories here we have three categories but there exists a natural ...
How to send an Email from your Android App?
17 Jan, 2020 In this article, you will make a basic android application which can be used to send email through your android application. You can do so with the help of Intent with action as ACTION_SEND with extra fields: email id to which you want to send mail, subject of email and body of the email. Basically Intent ...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jan, 2020" }, { "code": null, "e": 179, "s": 54, "text": "In this article, you will make a basic android application which can be used to send email through your android application." }, { "code": null, "e": 263, "s"...
Lodash | _.clone() Method
02 Feb, 2022 The _.clone() method is used to create a shallow copy of the value. This method supports cloning arrays, array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. It is loosely based on the structured clone algorithm. Syntax: _.clone( value ) P...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Feb, 2022" }, { "code": null, "e": 309, "s": 28, "text": "The _.clone() method is used to create a shallow copy of the value. This method supports cloning arrays, array buffers, booleans, date objects, maps, numbers, Object objects, ...
What is DNS TXT Record?
19 Oct, 2021 Domain Name System (DNS) plays an essential role in maintaining the whole Internet infrastructure, so its failure makes the system unreachable for the user. DNS connects data with various domain names for each participating entity. This application or model was developed using Microsoft visual basic 6.0 an...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Oct, 2021" }, { "code": null, "e": 697, "s": 28, "text": "Domain Name System (DNS) plays an essential role in maintaining the whole Internet infrastructure, so its failure makes the system unreachable for the user. DNS connects data ...
new vs malloc() and free() vs delete in C++
21 Apr, 2021 We use new and delete operators in C++ to dynamically allocate memory whereas malloc() and free() functions are also used for the same purpose in C and C++. The functionality of the new or malloc() and delete or free() seems to be the same but they differ in various ways.The behavior with respect to constr...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Apr, 2021" }, { "code": null, "e": 437, "s": 52, "text": "We use new and delete operators in C++ to dynamically allocate memory whereas malloc() and free() functions are also used for the same purpose in C and C++. The functionality...
Python Tweepy – Getting the location of a user
06 Dec, 2021 In this article we will see how we can get the location of a user. The location of the user account need not be the exact physical location of the user. As the user is free to change their location, the location of the account can even by a hypothetical place. The location attribute is optional and is Null...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2021" }, { "code": null, "e": 341, "s": 28, "text": "In this article we will see how we can get the location of a user. The location of the user account need not be the exact physical location of the user. As the user is free to...
C Program for ID3 Tagging
01 Jul, 2020 Introduction: Digital audio files can contain, in addition to the audio track, related text and/or graphical information. The information you’re probably familiar with takes the form of Song title, Artist name, Album name, Year, and Genre. This is the information displayed when you playback a digital audio...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Jul, 2020" }, { "code": null, "e": 42, "s": 28, "text": "Introduction:" }, { "code": null, "e": 378, "s": 42, "text": "Digital audio files can contain, in addition to the audio track, related text and/or graphical...
HTML Canvas Basics
10 Dec, 2021 In this article, we will know HTML Canvas Basics, their implementation through the examples. The HTML “canvas” element is used to draw graphics via JavaScript. The “canvas” element is only a container for graphics. One must use JavaScript to actually draw the graphics. Canvas has several methods for drawi...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Dec, 2021" }, { "code": null, "e": 146, "s": 52, "text": "In this article, we will know HTML Canvas Basics, their implementation through the examples. " }, { "code": null, "e": 517, "s": 146, "text": "The HTML “c...
Python | Sympy Line.intersection() method
10 Feb, 2020 Syntax: Line.intersection(o) Parameters: o: Point or LinearEntity Returns: intersection: list of geometrical entities Example #1: # import sympy and Point, Linefrom sympy import Point, Line p1, p2, p3 = Point(0, 0), Point(1, 1), Point(7, 7)l1 = Line(p1, p2) # using intersection() methodshowIntersect...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Feb, 2020" }, { "code": null, "e": 151, "s": 28, "text": "Syntax: Line.intersection(o)\n\nParameters:\n o: Point or LinearEntity\n\nReturns:\n intersection: list of geometrical entities\n" }, { "code": null, "e": 163, ...
How to divide the row values by row sum in R matrix?
To divide matrix row values by row sum in R, we can follow the below steps − First of all, create a matrix. Then, use apply function to divide the matrix row values by row sum. Let’s create a matrix as shown below − Live Demo M<-matrix(sample(1:100,75),ncol=3) M On executing, the above script generates the below outpu...
[ { "code": null, "e": 1139, "s": 1062, "text": "To divide matrix row values by row sum in R, we can follow the below steps −" }, { "code": null, "e": 1170, "s": 1139, "text": "First of all, create a matrix." }, { "code": null, "e": 1239, "s": 1170, "text": "The...
CSS ::placeholder Selector - GeeksforGeeks
21 Oct, 2021 The placeholder selector in the CSS pseudo-element is used to design the placeholder text by changing the text color and it allows to modify the style of the text. The ::first-line pseudo-element is the only subset of CSS properties that is applicable & can be applied in a rule using ::placeholder in its s...
[ { "code": null, "e": 23644, "s": 23616, "text": "\n21 Oct, 2021" }, { "code": null, "e": 23808, "s": 23644, "text": "The placeholder selector in the CSS pseudo-element is used to design the placeholder text by changing the text color and it allows to modify the style of the text....
GATE | GATE-CS-2017 (Set 2) | Question 55 - GeeksforGeeks
28 Jun, 2021 Consider a binary code that consists only four valid codewords as given below.00000, 01011, 10101, 11110 Let minimum Hamming distance of code be p and maximum number of erroneous bits that can be corrected by the code be q. The value of p and q are: (A) p = 3 and q = 1(B) p = 3 and q = 2(C) p = 4 and q = 1...
[ { "code": null, "e": 24070, "s": 24042, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24175, "s": 24070, "text": "Consider a binary code that consists only four valid codewords as given below.00000, 01011, 10101, 11110" }, { "code": null, "e": 24320, "s": 24175...
Why cannot we specify access modifiers inside an interface in C#?
Interface methods are contract with the outside world which specifies that class implementing this interface does a certain set of things. Interface members are always public because the purpose of an interface is to enable other types to access a class or struct. Interfaces can have access specifiers like protected or...
[ { "code": null, "e": 1201, "s": 1062, "text": "Interface methods are contract with the outside world which specifies that class implementing this interface does a certain set of things." }, { "code": null, "e": 1327, "s": 1201, "text": "Interface members are always public because...
SQL Aliases
SQL aliases are used to give a table, or a column in a table, a temporary name. Aliases are often used to make column names more readable. An alias only exists for the duration of that query. An alias is created with the AS keyword. In this tutorial we will use the well-known Northwind sample database. Below is a selec...
[ { "code": null, "e": 80, "s": 0, "text": "SQL aliases are used to give a table, or a column in a table, a temporary name." }, { "code": null, "e": 139, "s": 80, "text": "Aliases are often used to make column names more readable." }, { "code": null, "e": 192, "s": ...
Difference between highest and least frequencies in an array - GeeksforGeeks
01 Jul, 2021 Given an array, find the difference between highest occurrence and least occurrence of any number in an arrayExamples: Input : arr[] = [7, 8, 4, 5, 4, 1, 1, 7, 7, 2, 5] Output : 2 Lowest occurring element (5) occurs once. Highest occurring element (1 or 7) occurs 3 times Input : arr[] = [1, 1, 1, 3, 3...
[ { "code": null, "e": 25566, "s": 25538, "text": "\n01 Jul, 2021" }, { "code": null, "e": 25687, "s": 25566, "text": "Given an array, find the difference between highest occurrence and least occurrence of any number in an arrayExamples: " }, { "code": null, "e": 25889...
Java Program to sort an array in case-insensitive order
An array can be sorted in case-insensitive order using the java.util.Arrays.sort() method. Also the java.text.Collator class is required as Collator.getInstance() is used to obtain the Collator object for the required locale. A program that demonstrates this is given as follows − Live Demo import java.text.Collator; i...
[ { "code": null, "e": 1288, "s": 1062, "text": "An array can be sorted in case-insensitive order using the java.util.Arrays.sort() method. Also the java.text.Collator class is required as Collator.getInstance() is used to obtain the Collator object for the required locale." }, { "code": null,...
htmlspecialchars() function in PHP
The htmlspecialchars() function is used to convert special characters to HTML entities. The predefined characters are − & (ampersand) becomes & amp; " (double quote) becomes & quot; ' (single quote) becomes & #039; < (less than) becomes & lt; > (greater than) becomes & gt; htmlspecialchars(str,flags,character-set,doubl...
[ { "code": null, "e": 1150, "s": 1062, "text": "The htmlspecialchars() function is used to convert special characters to HTML entities." }, { "code": null, "e": 1182, "s": 1150, "text": "The predefined characters are −" }, { "code": null, "e": 1211, "s": 1182, ...
Creating a Priority Queue using Javascript
Our class will have the following functions − enqueue(element): Function to add an element in the queue. dequeue(): Function that removes an element from the queue. peek(): Returns the element from the front of the queue. isFull(): Checks if we reached the element limit on the queue. isEmpty(): checks if the queue is e...
[ { "code": null, "e": 1108, "s": 1062, "text": "Our class will have the following functions −" }, { "code": null, "e": 1167, "s": 1108, "text": "enqueue(element): Function to add an element in the queue." }, { "code": null, "e": 1227, "s": 1167, "text": "dequeu...
How to find the index of an item in a C# list in a single step?
To get the index of an item in a single line, use the FindIndex() and Contains() method. int index = myList.FindIndex(a => a.Contains("Tennis")); Above, we got the index of an element using the FindIndex(), which is assisted by Contains method for that specific element. Here is the complete code − Live Demo using Syst...
[ { "code": null, "e": 1151, "s": 1062, "text": "To get the index of an item in a single line, use the FindIndex() and Contains() method." }, { "code": null, "e": 1208, "s": 1151, "text": "int index = myList.FindIndex(a => a.Contains(\"Tennis\"));" }, { "code": null, "e...
Check for Valid hex code - JavaScript
A string can be considered as a valid hex code if it contains no characters other than the 0-9 and a-f alphabets For example − '3423ad' is a valid hex code '4234es' is an invalid hex code We are required to write a JavaScript function that takes in a string and checks whether its a valid hex code or not. Following is t...
[ { "code": null, "e": 1175, "s": 1062, "text": "A string can be considered as a valid hex code if it contains no characters other than the 0-9 and a-f alphabets" }, { "code": null, "e": 1189, "s": 1175, "text": "For example −" }, { "code": null, "e": 1250, "s": 118...
Class Binding in Angular 8
23 Sep, 2020 Class binding in Angular makes it very easy to set the class property of a view element. We can set or remove the CSS class names from an element’s class attribute with the help of class binding. We bind a class of a DOM element to a field that is a defined property in our Typescript Code. Its syntax is li...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Sep, 2020" }, { "code": null, "e": 224, "s": 28, "text": "Class binding in Angular makes it very easy to set the class property of a view element. We can set or remove the CSS class names from an element’s class attribute with the he...
Sparta Tool in Kali Linux
06 Jan, 2021 Information Gathering is a very important step before starting penetration testing. Mostly, Pen Testers begin their work by collecting information and this requires a lot of patience and effort. The information Gathering category has many tools that work differently, but the sole purpose is to gather infor...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jan, 2021" }, { "code": null, "e": 647, "s": 28, "text": "Information Gathering is a very important step before starting penetration testing. Mostly, Pen Testers begin their work by collecting information and this requires a lot of p...
Python program to check if a word is a noun
11 Dec, 2020 Given a word, the task is to write a Python program to find if the word is a noun or not using Python. Examples: Input: India Output: India is noun. Input: Writing Output: Writing is not a noun. There are various libraries that can be used to solve this problem. Approach 1: PoS tagging using NLTK Python3 ...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2020" }, { "code": null, "e": 131, "s": 28, "text": "Given a word, the task is to write a Python program to find if the word is a noun or not using Python." }, { "code": null, "e": 141, "s": 131, "text": "Exa...
How to write Comments in Python3?
13 Jun, 2022 Comments are text notes added to the program to provide explanatory information about the source code. They are used in a programming language to document the program and remind programmers of what tricky things they just did with the code and also help the later generation for understanding and maintenanc...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Jun, 2022" }, { "code": null, "e": 546, "s": 53, "text": "Comments are text notes added to the program to provide explanatory information about the source code. They are used in a programming language to document the program and rem...
Remove All Spaces From a String in SQL Server
26 Sep, 2021 There are scenarios of the occurrence of spaces before and after a string and we may need to remove/trim the spaces for our use. Let us see how it is getting handled in SQL Server. Till SQL Server 2016, we have the functions called SQL LTRIM and SQL RTRIM functions. The name itself implies that LTRIM is he...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Sep, 2021" }, { "code": null, "e": 424, "s": 28, "text": "There are scenarios of the occurrence of spaces before and after a string and we may need to remove/trim the spaces for our use. Let us see how it is getting handled in SQL Se...
How To Reorder Boxplots in R with ggplot2?
17 Oct, 2021 In this article, we will discuss how to reorder the boxplot with ggplot2 in R Programming Language. To reorder the boxplot we will use reorder() function of ggplot2. Syntax: ggplot(sample_data, aes(x=reorder(name,value),y=value)) By default, ggplot2 orders the groups in alphabetical order. But for better v...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Oct, 2021" }, { "code": null, "e": 128, "s": 28, "text": "In this article, we will discuss how to reorder the boxplot with ggplot2 in R Programming Language." }, { "code": null, "e": 194, "s": 128, "text": "To reo...
Python Arithmetic Operators
29 Aug, 2020 Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication and division. There are 7 arithmetic operators in Python : AdditionSubtractionMultiplicationDivisionModulusExponentiationFloor division Addition Subtraction Multiplication Division Modulus Exponentia...
[ { "code": null, "e": 54, "s": 26, "text": "\n29 Aug, 2020" }, { "code": null, "e": 176, "s": 54, "text": "Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication and division." }, { "code": null, "e": 221, "s": 1...
How to Use Google Play Install Referrer API in Android?
10 Mar, 2021 Google Play Install Referrer is the API that is used in most of the applications but it is not been seen in the app. This functionality works under the hood and is used to check the sources from where the app is getting most of the downloads. Google Play Install Referrer API tells us that from where the ap...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Mar, 2021" }, { "code": null, "e": 453, "s": 28, "text": "Google Play Install Referrer is the API that is used in most of the applications but it is not been seen in the app. This functionality works under the hood and is used to che...
Create a stopwatch using python
12 Jul, 2021 This article focus on creating a stopwatch using Tkinter in python Tkinter : Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit. It’s very easy...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Jul, 2021" }, { "code": null, "e": 458, "s": 52, "text": "This article focus on creating a stopwatch using Tkinter in python Tkinter : Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast...
Dynamic RadioButton in Kotlin
19 Feb, 2021 Android Radio Button is bi-state button which can either be checked or unchecked. Also, it’s working is same as Checkbox except that radio button can not allow to be unchecked once it was selected. Generally, we use RadioButton controls to allow users to select one option from multiple options. By default,...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Feb, 2021" }, { "code": null, "e": 226, "s": 28, "text": "Android Radio Button is bi-state button which can either be checked or unchecked. Also, it’s working is same as Checkbox except that radio button can not allow to be unchecked...
Partition a set into two subsets such that the difference of subset sums is minimum
27 May, 2022 Given a set of integers, the task is to divide it into two sets S1 and S2 such that the absolute difference between their sums is minimum. If there is a set S with n elements, then if we assume Subset1 has m elements, Subset2 must have n-m elements and the value of abs(sum(Subset1) – sum(Subset2)) should b...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 May, 2022" }, { "code": null, "e": 370, "s": 52, "text": "Given a set of integers, the task is to divide it into two sets S1 and S2 such that the absolute difference between their sums is minimum. If there is a set S with n elements...
Zombie Processes and their Prevention
05 Nov, 2021 Prerequisites: fork() in C, Zombie ProcessZombie state: When a process is created in UNIX using fork() system call, the address space of the Parent process is replicated. If the parent process calls wait() system call, then the execution of the parent is suspended until the child is terminated. At the term...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Nov, 2021" }, { "code": null, "e": 1129, "s": 54, "text": "Prerequisites: fork() in C, Zombie ProcessZombie state: When a process is created in UNIX using fork() system call, the address space of the Parent process is replicated. If...
matplotlib.patches.Rectangle in Python
27 Apr, 2020 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.patches.Rectangle class is used to rectangle patch to a plot with lower left at ...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Apr, 2020" }, { "code": null, "e": 240, "s": 28, "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 and designed t...
How to set the opacity of background image in CSS ?
26 Mar, 2021 In this article, we are going to see how to set the opacity of a background image in CSS. Opacity can be defined as the quality of lacking transparency. It can be used to define the amount of content to be visible. Approach: We can use the opacity property in CSS which is used to change the opacity of an e...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2021" }, { "code": null, "e": 243, "s": 28, "text": "In this article, we are going to see how to set the opacity of a background image in CSS. Opacity can be defined as the quality of lacking transparency. It can be used to defi...
Python EasyGUI – Showing Image in a Button Box
05 Sep, 2020 In this article we will see how we can add or show image in the button box. Button box is used to display a window having multiple buttons in EasyGUI, it can be used where there is condition to select one among lot of buttons for example buttons in lift at a time user can opt only one option, below is how ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2020" }, { "code": null, "e": 368, "s": 28, "text": "In this article we will see how we can add or show image in the button box. Button box is used to display a window having multiple buttons in EasyGUI, it can be used where the...
Types in Julia | Set 1
26 Mar, 2020 Types in Julia are basically the data elements of various different sizes and functionality. Every value(not variable) in a program is bound to be of some type. Variables are simply names bound to some values. Defining a value’s type is done either by the programmer or by the compiler itself. It is always ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2020" }, { "code": null, "e": 498, "s": 28, "text": "Types in Julia are basically the data elements of various different sizes and functionality. Every value(not variable) in a program is bound to be of some type. Variables are ...
SWING - JMenuBar Class
The JMenuBar class provides an implementation of a menu bar. Following is the declaration for javax.swing.JMenuBar class − public class JMenuBar extends JComponent implements Accessible, MenuElement JMenuBar() Creates a new menu bar. JMenu add(JMenu c) Appends the specified menu to the end of the menu bar. vo...
[ { "code": null, "e": 1958, "s": 1897, "text": "The JMenuBar class provides an implementation of a menu bar." }, { "code": null, "e": 2020, "s": 1958, "text": "Following is the declaration for javax.swing.JMenuBar class −" }, { "code": null, "e": 2106, "s": 2020, ...
Counter Type in Cassandra - GeeksforGeeks
27 Dec, 2019 In this article, we will discuss how to create counter type column in Cassandra and what are the restriction while using the counter column as a data type into the table and we will see how we can update the Counter Column by using an Update Query. let’s discuss one by one. The counter is a special column ...
[ { "code": null, "e": 23913, "s": 23885, "text": "\n27 Dec, 2019" }, { "code": null, "e": 24188, "s": 23913, "text": "In this article, we will discuss how to create counter type column in Cassandra and what are the restriction while using the counter column as a data type into the...
HTML5 - Microdata
Microdata is a standardized way to provide additional semantics in your web pages. Microdata lets you define your own customized elements and start embedding custom properties in your web pages. At a high level, microdata consists of a group of name-value pairs. The groups are called items, and each name-value pair is ...
[ { "code": null, "e": 2691, "s": 2608, "text": "Microdata is a standardized way to provide additional semantics in your web pages." }, { "code": null, "e": 2871, "s": 2691, "text": "Microdata lets you define your own customized elements and start embedding custom properties in you...
How can I find non-ASCII characters in MySQL?
Non ASCII characters are characters such as the pound symbol(£), trademark symbol, plusminus symbol etc. To find the non-ASCII characters from the table, the following steps are required − First a table is created with the help of the create command which is given as follows − mysql> CREATE table NonASciiDemo -> ( -> N...
[ { "code": null, "e": 1251, "s": 1062, "text": "Non ASCII characters are characters such as the pound symbol(£), trademark symbol, plusminus\nsymbol etc. To find the non-ASCII characters from the table, the following steps are required −" }, { "code": null, "e": 1340, "s": 1251, "...
Puppeteer - Device Emulation
We can run tests with mobile configurations in Puppeteer and check the responsive property of a webpage. The list of devices that the Puppeteer supports can be obtained from the Chrome DevTools. Right-click on a page opened in the Chrome browser, then select Inspect. Then, click on the Toggle Device Toolbar. Click on t...
[ { "code": null, "e": 3018, "s": 2750, "text": "We can run tests with mobile configurations in Puppeteer and check the responsive property of a webpage. The list of devices that the Puppeteer supports can be obtained from the Chrome DevTools. Right-click on a page opened in the Chrome browser, then s...
Which event occurs when a value is added to an input box in JavaScript? - GeeksforGeeks
11 Feb, 2022 JavaScript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model (DOM). These events by default use bubbling propagation i.e, upwards in the DOM from children to parent. We can bind events either as inline or in an external script. There a...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n11 Feb, 2022" }, { "code": null, "e": 25356, "s": 24909, "text": "JavaScript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model (DOM). These events by default ...
Electron - Webview
The webview tag is used to embed the 'guest' content like web pages in your Electron app. This content is contained within the webview container. An embedded page within your app controls how this content will be displayed. The webview runs in a separate process than your app. To ensure security from malicious content,...
[ { "code": null, "e": 2289, "s": 2065, "text": "The webview tag is used to embed the 'guest' content like web pages in your Electron app. This content is contained within the webview container. An embedded page within your app controls how this content will be displayed." }, { "code": null, ...
How to set selected item of Spinner by value instead of by position on Android?
This example demonstrates how do I set the selected item of Spinner by value instead of by position on Android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version=...
[ { "code": null, "e": 1174, "s": 1062, "text": "This example demonstrates how do I set the selected item of Spinner by value instead of by position on Android." }, { "code": null, "e": 1303, "s": 1174, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Proj...
Prolog - Examples of Cuts
In this section, we will see some examples of cuts in prolog. Let us consider, we want to find the maximum of two elements. So we will check these two conditions. If X > Y, then Max := X If X > Y, then Max := X if X <= Y, then Max := Y if X <= Y, then Max := Y Now from these two lines, we can understand that these two ...
[ { "code": null, "e": 2255, "s": 2092, "text": "In this section, we will see some examples of cuts in prolog. Let us consider, we want to find the maximum of two elements. So we will check these two conditions." }, { "code": null, "e": 2279, "s": 2255, "text": "If X > Y, then Max ...
scipy stats.cauchy() | Python - GeeksforGeeks
20 Mar, 2019 scipy.stats.cauchy() is an cauchy continuous random variable that is defined with a standard format and some shape parameters to complete its specification. Parameters :q : lower and upper tail probabilityx : quantilesloc : [optional]location parameter. Default = 0scale : [optional]scale parameter. Default...
[ { "code": null, "e": 25421, "s": 25393, "text": "\n20 Mar, 2019" }, { "code": null, "e": 25578, "s": 25421, "text": "scipy.stats.cauchy() is an cauchy continuous random variable that is defined with a standard format and some shape parameters to complete its specification." }, ...
random.getstate() in Python - GeeksforGeeks
27 Jul, 2021 random() module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these randomly generated numbers can be determined. The getstate() method of the random module returns an object with the current internal state of th...
[ { "code": null, "e": 25047, "s": 25019, "text": "\n27 Jul, 2021" }, { "code": null, "e": 25256, "s": 25047, "text": "random() module is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these r...
Ratio Manipulations in C++ | Set 1 (Arithmetic) - GeeksforGeeks
18 Jan, 2022 C++ allows us to perform addition, subtraction, multiplication, and division operations on fractions. One method of adding ratios is discussed in the following article – Program to add two fractions. The method used here is tedious and lengthy, so to overcome that a better method was introduced in C++. The...
[ { "code": null, "e": 25860, "s": 25832, "text": "\n18 Jan, 2022" }, { "code": null, "e": 26316, "s": 25860, "text": "C++ allows us to perform addition, subtraction, multiplication, and division operations on fractions. One method of adding ratios is discussed in the following art...
How to Hide Axis Text Ticks or Tick Labels in Matplotlib? - GeeksforGeeks
17 Dec, 2020 Prerequisites: Matplotlib The Matplotlib library by default shows the axis ticks and tick labels. Sometimes it is necessary to hide these axis ticks and tick labels. This article discusses some methods by which this can be done. xticks(ticks=None, labels=None, **kwargs)– used to get and set the current tic...
[ { "code": null, "e": 25539, "s": 25511, "text": "\n17 Dec, 2020" }, { "code": null, "e": 25565, "s": 25539, "text": "Prerequisites: Matplotlib" }, { "code": null, "e": 25768, "s": 25565, "text": "The Matplotlib library by default shows the axis ticks and tick ...
Find the duplicate characters in a string in O(1) space - GeeksforGeeks
29 Jan, 2022 Given a string str, the task is to find all the duplicate characters present in a given string in lexicographical order without using any additional data structure. Examples: Input: str = “geeksforgeeks” Output: e g k s Explanation: Frequency of character ‘g’ = 2 Frequency of character ‘e’ = 4 Frequency of...
[ { "code": null, "e": 26253, "s": 26225, "text": "\n29 Jan, 2022" }, { "code": null, "e": 26418, "s": 26253, "text": "Given a string str, the task is to find all the duplicate characters present in a given string in lexicographical order without using any additional data structure...
Java Swing | JToolBar - GeeksforGeeks
09 Sep, 2021 JToolBar is a part of Java Swing package. JToolBar is an implementation of toolbar. The JToolBar is a group of commonly used components such as buttons or drop down menu. JToolBar can be dragged to different locations by the user Constructors of the class are: JToolBar() : creates a new toolbar with hori...
[ { "code": null, "e": 25671, "s": 25643, "text": "\n09 Sep, 2021" }, { "code": null, "e": 25902, "s": 25671, "text": "JToolBar is a part of Java Swing package. JToolBar is an implementation of toolbar. The JToolBar is a group of commonly used components such as buttons or drop dow...
K Dimensional Tree | Set 2 (Find Minimum) - GeeksforGeeks
03 Nov, 2020 We strongly recommend to refer below post as a prerequisite of this. K Dimensional Tree | Set 1 (Search and Insert) In this post find minimum is discussed. The operation is to find minimum in the given dimension. This is especially needed in delete operation. For example, consider below KD Tree, if given d...
[ { "code": null, "e": 26383, "s": 26355, "text": "\n03 Nov, 2020" }, { "code": null, "e": 26452, "s": 26383, "text": "We strongly recommend to refer below post as a prerequisite of this." }, { "code": null, "e": 26499, "s": 26452, "text": "K Dimensional Tree | ...
Python | Thresholding techniques using OpenCV | Set-3 (Otsu Thresholding) - GeeksforGeeks
29 May, 2019 In the previous posts, Simple Thresholding and Adaptive Thresholding were explained. In Simple Thresholding, the global value of threshold was used which remained constant throughout. In Adaptive thresholding, the threshold value is calculated for smaller regions with different threshold values for differe...
[ { "code": null, "e": 42651, "s": 42623, "text": "\n29 May, 2019" }, { "code": null, "e": 43009, "s": 42651, "text": "In the previous posts, Simple Thresholding and Adaptive Thresholding were explained. In Simple Thresholding, the global value of threshold was used which remained ...
stringstream in C++ and its applications - GeeksforGeeks
30 Jan, 2022 A stringstream associates a string object with a stream allowing you to read from the string as if it were a stream (like cin). To use stringstream, we need to include sstream header file. The stringstream class is extremely useful in parsing input. Basic methods are: clear()- To clear the stream.str()- T...
[ { "code": null, "e": 28207, "s": 28179, "text": "\n30 Jan, 2022" }, { "code": null, "e": 28458, "s": 28207, "text": "A stringstream associates a string object with a stream allowing you to read from the string as if it were a stream (like cin). To use stringstream, we need to inc...
Dart Programming - Substring Method
Returns the substring of this string that extends from startIndex, inclusive, to endIndex, exclusive. substring(int startIndex, [ int endIndex ]) startIndex − the index to start extracting from(inclusive). startIndex − the index to start extracting from(inclusive). endIndex − the index to stop extracting (exclusive). ...
[ { "code": null, "e": 2627, "s": 2525, "text": "Returns the substring of this string that extends from startIndex, inclusive, to endIndex, exclusive." }, { "code": null, "e": 2672, "s": 2627, "text": "substring(int startIndex, [ int endIndex ])\n" }, { "code": null, "e...
How to Locate Dark Web Hacker Forums for Security Research | by Mitchell Telatnik | Towards Data Science
To most users, Google is the gateway to exploring the internet. However, the deep web contains pages that cannot be indexed by Google. Within this space, lies the dark web — anonymized websites, often called hidden services, dealing in criminal activity from drugs to hacking to human trafficking. Conducting security re...
[ { "code": null, "e": 470, "s": 172, "text": "To most users, Google is the gateway to exploring the internet. However, the deep web contains pages that cannot be indexed by Google. Within this space, lies the dark web — anonymized websites, often called hidden services, dealing in criminal activity f...
How to create SVG graphics using JavaScript?
All modern browsers support SVG and you can easily create it using JavaScript. Google Chrome and Firefox both support SVG. With JavaScript, create a blank SVG document object model (DOM). Using attributes, create a shape like a circle or a rectangle. var mySvg = "http://www.w3.org/2000/svg"; var myDoc = evt.target.owne...
[ { "code": null, "e": 1185, "s": 1062, "text": "All modern browsers support SVG and you can easily create it using JavaScript. Google Chrome and Firefox both support SVG." }, { "code": null, "e": 1313, "s": 1185, "text": "With JavaScript, create a blank SVG document object model (...
Int32.GetHashCode Method in C# with Examples - GeeksforGeeks
04 Apr, 2019 Int32.GetHashCode method is used to get the HashCode for the current Int32 instance. Syntax: public override int GetHashCode (); Return Value: This method returns a 32-bit signed integer hash code. Below programs illustrate the use of the above discussed-method: Example 1: // C# program to illustrate the//...
[ { "code": null, "e": 23879, "s": 23851, "text": "\n04 Apr, 2019" }, { "code": null, "e": 23964, "s": 23879, "text": "Int32.GetHashCode method is used to get the HashCode for the current Int32 instance." }, { "code": null, "e": 24008, "s": 23964, "text": "Synta...
Difference Between CSS Display and Visibility
We can hide or remove an element in a HTML document with CSS Visibility and CSS Display properties respectively. To the user, there might not seem any difference in using any of the two properties, but there is. CSS Display − none does not render the element on the document and thus not allocating it any space. CSS Vis...
[ { "code": null, "e": 1274, "s": 1062, "text": "We can hide or remove an element in a HTML document with CSS Visibility and CSS Display properties respectively. To the user, there might not seem any difference in using any of the two properties, but there is." }, { "code": null, "e": 1375...
Tryit Editor v3.7
CSS Style Images Tryit: Image hover - Slide in from top
[ { "code": null, "e": 26, "s": 9, "text": "CSS Style Images" } ]
How to print new line in Java?
The java.io.PrintStream.println() method prints an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and then println(). Using this method you can print the data on the console. import java.io.*; public class PrintStreamDemo { public static void main(String[] arg...
[ { "code": null, "e": 1237, "s": 1062, "text": "The java.io.PrintStream.println() method prints an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and then println()." }, { "code": null, "e": 1294, "s": 1237, "text": "Using t...
MySQL SELECT to sum a column value with previous value
For this, you can use a session variable. Let us first create a table − mysql> create table DemoTable809(Price int); Query OK, 0 rows affected (0.53 sec) Insert some records in the table using insert command − mysql> insert into DemoTable809 values(40); Query OK, 1 row affected (0.17 sec) mysql> insert into DemoTable80...
[ { "code": null, "e": 1134, "s": 1062, "text": "For this, you can use a session variable. Let us first create a table −" }, { "code": null, "e": 1216, "s": 1134, "text": "mysql> create table DemoTable809(Price int);\nQuery OK, 0 rows affected (0.53 sec)" }, { "code": null,...
Statistics in Python — Using ANOVA for Feature Selection | by Wei-Meng Lee | Towards Data Science
In my previous article, I talked about using the chi-square statistics to select features from a dataset for machine learning. The chi-square test is used when both your independent and dependent variables are all categorical variables. However, what if your independent variable is categorical and your dependent variab...
[ { "code": null, "e": 601, "s": 172, "text": "In my previous article, I talked about using the chi-square statistics to select features from a dataset for machine learning. The chi-square test is used when both your independent and dependent variables are all categorical variables. However, what if y...
UPDATE column to append data into it in MySQL?
To achieve this, the following is the syntax. UPDATE yourTableName set yourColumnName=concat(ifnull(yourColumnName,””),’anyValue1,anyValue2,anyValue); To understand the above syntax, let us first create a table. The query to create a table is as follows - mysql> create table AppendDataDemo -> ( -> StudentId int, -> Stu...
[ { "code": null, "e": 1108, "s": 1062, "text": "To achieve this, the following is the syntax." }, { "code": null, "e": 1213, "s": 1108, "text": "UPDATE yourTableName set\nyourColumnName=concat(ifnull(yourColumnName,””),’anyValue1,anyValue2,anyValue);" }, { "code": null, ...
C++ String Library - operator+=
It extends the string by appending additional characters at the end of its current value. Following is the declaration for std::string::operator+= string& operator+= (const string& str); string& operator+= (const string& str); str − It is a string object. str − It is a string object. c − It is a character object. c − I...
[ { "code": null, "e": 2693, "s": 2603, "text": "It extends the string by appending additional characters at the end of its current value." }, { "code": null, "e": 2750, "s": 2693, "text": "Following is the declaration for std::string::operator+=" }, { "code": null, "e"...
Lodash _.isNull() Method - GeeksforGeeks
05 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.isNull() method is used to find whether the value of the object is null. If the value is null then returns true otherwise it returns false. Syntax: _.isNull(valu...
[ { "code": null, "e": 24909, "s": 24881, "text": "\n05 Sep, 2020" }, { "code": null, "e": 25049, "s": 24909, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc." }, { "code": n...
Running Docker Container as a Non Root User
When you run an application inside a Docker Container, by default it has access to all the root privileges. You might have noticed that when you open an Ubuntu Docker Container Bash, you are logged in as the root user by default. This can prove to be a major concern in terms of security of the application. Any outsider...
[ { "code": null, "e": 1627, "s": 1062, "text": "When you run an application inside a Docker Container, by default it has access to all the root privileges. You might have noticed that when you open an Ubuntu Docker Container Bash, you are logged in as the root user by default. This can prove to be a ...
GATE | GATE-CS-2015 (Set 1) | Question 56 - GeeksforGeeks
28 Jun, 2021 Consider a main memory with five page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following is true with respect to page replacement policies First-In-First Out (FIFO) and Least Recently Used (LRU)? (A) Both incur the same number of pa...
[ { "code": null, "e": 24101, "s": 24073, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24372, "s": 24101, "text": "Consider a main memory with five page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following...
Java & MySQL - Commit & Rollback
Once you are done with your changes and you want to commit the changes then call commit() method on connection object as follows − conn.commit( ); Otherwise, to roll back updates to the database made using the Connection named conn, use the following code − conn.rollback( ); The following example illustrates the use ...
[ { "code": null, "e": 2817, "s": 2686, "text": "Once you are done with your changes and you want to commit the changes then call commit() method on connection object as follows −" }, { "code": null, "e": 2834, "s": 2817, "text": "conn.commit( );\n" }, { "code": null, "...
HBase - Read Data
The get command and the get() method of HTable class are used to read data from a table in HBase. Using get command, you can get a single row of data at a time. Its syntax is as follows: get ’<table name>’,’row1’ The following example shows how to use the get command. Let us scan the first row of the emp table. hbase(...
[ { "code": null, "e": 2224, "s": 2037, "text": "The get command and the get() method of HTable class are used to read data from a table in HBase. Using get command, you can get a single row of data at a time. Its syntax is as follows:" }, { "code": null, "e": 2251, "s": 2224, "tex...
gRPC - Hello World App with Java
Let us now create a basic "Hello World" like app that will use gRPC along with Java. First let us define the "greeting.proto" file in common_proto_files − syntax = "proto3"; option java_package = "com.tp.greeting"; service Greeter { rpc greet (ClientInput) returns (ServerOutput) {} } message ClientInput { string ...
[ { "code": null, "e": 1922, "s": 1837, "text": "Let us now create a basic \"Hello World\" like app that will use gRPC along with Java." }, { "code": null, "e": 1992, "s": 1922, "text": "First let us define the \"greeting.proto\" file in common_proto_files −" }, { "code": n...
Angular Material - Subheaders
The md-subheader, an Angular directive, is used to show a subheader for a section. The following example shows the use of md-subheader and also the uses of subheader component. am_subheaders.htm <html lang = "en"> <head> <link rel = "stylesheet" href = "https://ajax.googleapis.com/ajax/libs/angular_ma...
[ { "code": null, "e": 2273, "s": 2190, "text": "The md-subheader, an Angular directive, is used to show a subheader for a section." }, { "code": null, "e": 2367, "s": 2273, "text": "The following example shows the use of md-subheader and also the uses of subheader component." },...
Creating interactive maps and Geo Visualizations in Java - GeeksforGeeks
24 Jan, 2022 Unfolding is a library to create interactive maps and geo visualizations in Processing and Java. In this article, we will discuss what are the features of unfolding and how it is used to create interactive maps in Java and Processing. The main purpose of using unfolding is to create not only static maps bu...
[ { "code": null, "e": 23839, "s": 23811, "text": "\n24 Jan, 2022" }, { "code": null, "e": 24370, "s": 23839, "text": "Unfolding is a library to create interactive maps and geo visualizations in Processing and Java. In this article, we will discuss what are the features of unfoldin...
The Struggles I Had When Switching to Python | Towards Data Science
When I started learning data science, I started learning with R. I was a statistics major, and in the world of academia, there is a heavy preference of R over Python. There isn’t anything inherently wrong with learning one or the other, but I had invested several years mastering R before I joined the workforce and Pyth...
[ { "code": null, "e": 516, "s": 171, "text": "When I started learning data science, I started learning with R. I was a statistics major, and in the world of academia, there is a heavy preference of R over Python. There isn’t anything inherently wrong with learning one or the other, but I had invested...
How to add a variable to Python plt.title?
To add a varaible to Python plt.title(), we can take the following steps − Create data points for x and y using numpy and num (is a variable) to calculate y and set this in title. Create data points for x and y using numpy and num (is a variable) to calculate y and set this in title. Plot x and y data points using plot...
[ { "code": null, "e": 1137, "s": 1062, "text": "To add a varaible to Python plt.title(), we can take the following steps −" }, { "code": null, "e": 1242, "s": 1137, "text": "Create data points for x and y using numpy and num (is a variable) to calculate y and set this in title." ...
Python – Non-overlapping Random Ranges
22 Apr, 2020 Sometimes, while working with Python, we can have problem in which we need to extract N random ranges which are non-overlapping in nature and with given range size. This can have applications in which we work with data. Lets discuss certain way in which this task can be performed. Method : Using any() + ra...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 310, "s": 28, "text": "Sometimes, while working with Python, we can have problem in which we need to extract N random ranges which are non-overlapping in nature and with given range size. This can h...
Python | Adding value to sublists
08 Apr, 2019 Sometimes, we just have to manipulate a list of lists by appending a similar value to all the sublists. Using a loop for achieving this particular task can be an option but sometimes leads to sacrifice the readability of code. It is always wanted to have a oneliner to perform this particular task. Let’s di...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Apr, 2019" }, { "code": null, "e": 381, "s": 28, "text": "Sometimes, we just have to manipulate a list of lists by appending a similar value to all the sublists. Using a loop for achieving this particular task can be an option but so...
How to Permute the Rows and Columns in a Matrix on MATLAB?
27 Jan, 2022 In this article, we will discuss how to find the permutation of the rows and columns in a Matrix with the help of multiple approaches In this approach, we are simply permuting the rows and columns of the matrix in the specified format of rows and columns respectively. For column permutation, we take an ex...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jan, 2022" }, { "code": null, "e": 162, "s": 28, "text": "In this article, we will discuss how to find the permutation of the rows and columns in a Matrix with the help of multiple approaches" }, { "code": null, "e": 513,...