title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to set the Background Color of the Label in C#? - GeeksforGeeks | 30 Jun, 2019
In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set the background color of the Label control using BackColor Property. It makes your label more attractive. You can set this property using two dif... | [
{
"code": null,
"e": 26377,
"s": 26349,
"text": "\n30 Jun, 2019"
},
{
"code": null,
"e": 26700,
"s": 26377,
"text": "In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. You are allowed to set ... |
D3.js selection.html() Function - GeeksforGeeks | 31 Aug, 2020
The selection.html() function is used to set the inner HTML on all the selected elements. If the value is constant then all the elements are given same value. A null value will clear the content of the element.
Syntax:
selection.html([value]);
Parameters: This function accepts single parameter as mentioned... | [
{
"code": null,
"e": 26545,
"s": 26517,
"text": "\n31 Aug, 2020"
},
{
"code": null,
"e": 26756,
"s": 26545,
"text": "The selection.html() function is used to set the inner HTML on all the selected elements. If the value is constant then all the elements are given same value. A nu... |
TypeScript | String localeCompare() Method - GeeksforGeeks | 18 Jun, 2020
The localeCompare() is an inbuilt function in TypeScript which is used to get the number indicating whether a reference string comes before or after or is the same as the given string in sorted order. Syntax:
string.localeCompare( param )
Parameter: This method accept a single parameter as mentioned abov... | [
{
"code": null,
"e": 25715,
"s": 25687,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 25924,
"s": 25715,
"text": "The localeCompare() is an inbuilt function in TypeScript which is used to get the number indicating whether a reference string comes before or after or is the same... |
Parsing String of symbols to Expression - GeeksforGeeks | 13 Aug, 2021
Given an expression as a string str consisting of numbers and basic arithmetic operators(+, -, *, /), the task is to solve the expression. Note that the numbers used in this program are single-digit numbers and parentheses are not allowed.Examples:
Input: str = “3/3+4*6-9” Output: 16 Since (3 / 3) = 1 an... | [
{
"code": null,
"e": 26299,
"s": 26271,
"text": "\n13 Aug, 2021"
},
{
"code": null,
"e": 26550,
"s": 26299,
"text": "Given an expression as a string str consisting of numbers and basic arithmetic operators(+, -, *, /), the task is to solve the expression. Note that the numbers us... |
Python Program for Coin Change | DP-7 - GeeksforGeeks | 20 Dec, 2021
Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, how many ways can we make the change? The order of coins doesn\’t matter.
For example, for N = 4 and S = {1,2,3}, there are four solutions: {1,1,1,1},{1,1,2},{2,2},{1,3}. So o... | [
{
"code": null,
"e": 26097,
"s": 26069,
"text": "\n20 Dec, 2021"
},
{
"code": null,
"e": 26303,
"s": 26097,
"text": "Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, how many ways can we make the c... |
D3.js | d3.color() Function - GeeksforGeeks | 02 Dec, 2019
The d3.color() function in D3.js is used to parse the specified CSS color used as parameter of the function and return RGB or HSL color. If specifier is not given, then null is returned.
Syntax:
d3.color(color);
Parameters: This function accepts single parameter color which specifies the CSS color.
Return ... | [
{
"code": null,
"e": 25409,
"s": 25381,
"text": "\n02 Dec, 2019"
},
{
"code": null,
"e": 25596,
"s": 25409,
"text": "The d3.color() function in D3.js is used to parse the specified CSS color used as parameter of the function and return RGB or HSL color. If specifier is not given,... |
C# Program to Count the Files Based on Extension using LINQ - GeeksforGeeks | 09 Dec, 2021
Given files, now we count the files based on extension using LINQ. We are considering all types of file formats like pdf, txt, xml and going to count these files based on the extension. For that, we have to know the following methods:
Path.GetExtension(): This method is used to get an extension of the give... | [
{
"code": null,
"e": 25547,
"s": 25519,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 25782,
"s": 25547,
"text": "Given files, now we count the files based on extension using LINQ. We are considering all types of file formats like pdf, txt, xml and going to count these files b... |
new Operator vs newInstance() Method in Java - GeeksforGeeks | 24 Apr, 2022
In Java, new is an operator where newInstance() is a method where both are used for object creation. If we know the type of object to be created then we can use a new operator but if we do not know the type of object to be created in beginning and is passed at runtime, in that case, the newInstance() metho... | [
{
"code": null,
"e": 26039,
"s": 26011,
"text": "\n24 Apr, 2022"
},
{
"code": null,
"e": 26357,
"s": 26039,
"text": "In Java, new is an operator where newInstance() is a method where both are used for object creation. If we know the type of object to be created then we can use a ... |
Python | Sort tuple list by Nth element of tuple - GeeksforGeeks | 11 May, 2020
Sometimes, while working with Python list, we can come across a problem in which we need to sort list according to any tuple element. These must be a generic way to perform the sort by particular tuple index. This has a good utility in web development domain. Let’s discuss certain ways in which this task c... | [
{
"code": null,
"e": 25455,
"s": 25427,
"text": "\n11 May, 2020"
},
{
"code": null,
"e": 25779,
"s": 25455,
"text": "Sometimes, while working with Python list, we can come across a problem in which we need to sort list according to any tuple element. These must be a generic way t... |
Java Program to Find Area of Rectangle Using Method Overloading - GeeksforGeeks | 04 Dec, 2020
A rectangle is a simple flat figure in a plane. It has four sides and four right-angles. In a rectangle all four sides are not of equal length like a square, sides opposite to each other have equal length and both the diagonals of the rectangle have equal length.
Method overloading allows different methods... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n04 Dec, 2020"
},
{
"code": null,
"e": 25489,
"s": 25225,
"text": "A rectangle is a simple flat figure in a plane. It has four sides and four right-angles. In a rectangle all four sides are not of equal length like a square, sides... |
Dynamic Memory Allocation in C using malloc(), calloc(), free() and realloc() - GeeksforGeeks | 09 Dec, 2021
Since C is a structured language, it has some fixed rules for programming. One of them includes changing the size of an array. An array is a collection of items stored at contiguous memory locations.
As it can be seen that the length (size) of the array above made is 9. But what if there is a requirement ... | [
{
"code": null,
"e": 25681,
"s": 25653,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 25882,
"s": 25681,
"text": "Since C is a structured language, it has some fixed rules for programming. One of them includes changing the size of an array. An array is a collection of items st... |
AVL Tree | Set 1 (Insertion) - GeeksforGeeks | 19 Feb, 2022
AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes. An Example Tree that is an AVL Tree
The above tree is AVL because differences between heights of left and right subtrees for every node is less than... | [
{
"code": null,
"e": 26033,
"s": 26005,
"text": "\n19 Feb, 2022"
},
{
"code": null,
"e": 26228,
"s": 26033,
"text": "AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes. An Exa... |
Jupyter and tensorboard in tmux and ssh | by Fabio M. Graetz | Towards Data Science | In recent posts, I described how you can set up your personal deep learning workstation and how you can switch it on and access it remotely.
In this short article, I explain how I usually set up my remote working environment with tmux and check on my phone on the progress of my calculations.
tmux is a terminal multiple... | [
{
"code": null,
"e": 312,
"s": 171,
"text": "In recent posts, I described how you can set up your personal deep learning workstation and how you can switch it on and access it remotely."
},
{
"code": null,
"e": 464,
"s": 312,
"text": "In this short article, I explain how I usuall... |
How To Tag Any Image Using Deep Learning | by Tyler Folkman | Towards Data Science | You probably have photos, right?
You probably want those photos tagged automatically for you, right?
But you also don’t want to write a ton of code to do so.
Read on to learn how to use deep learning and Pytorch to tag any photo with less than 60 lines of code. The best part is, you’ll only have to change about 3 lines... | [
{
"code": null,
"e": 205,
"s": 172,
"text": "You probably have photos, right?"
},
{
"code": null,
"e": 273,
"s": 205,
"text": "You probably want those photos tagged automatically for you, right?"
},
{
"code": null,
"e": 330,
"s": 273,
"text": "But you also don... |
How to Extract Text from PDF. Learn to use Python to extract text... | by Costas Andreou | Towards Data Science | In this blog, we are going to examine the most popular libraries for processing PDFs with Python. A lot of information is shared in the form of PDF, and often we need to extract some details for further processing.
To assist it in my research in identifying the most popular python libraries, I looked across StackOverfl... | [
{
"code": null,
"e": 387,
"s": 172,
"text": "In this blog, we are going to examine the most popular libraries for processing PDFs with Python. A lot of information is shared in the form of PDF, and often we need to extract some details for further processing."
},
{
"code": null,
"e": 720... |
How to Install PyGTK in Python on MacOS? - GeeksforGeeks | 22 Nov, 2021
PyGTK is a Python package or module that enables developers to work with GTK+ GUI Toolkit. This is how WikiBooks describes GTK+:
“GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API.”
And this is how gtk.org t... | [
{
"code": null,
"e": 24561,
"s": 24533,
"text": "\n22 Nov, 2021"
},
{
"code": null,
"e": 24690,
"s": 24561,
"text": "PyGTK is a Python package or module that enables developers to work with GTK+ GUI Toolkit. This is how WikiBooks describes GTK+:"
},
{
"code": null,
"e... |
How to make a countdown timer in Android? | Before getting into an example, we should know what is a countdown timer in android. Count down timer as simple as we see in watches and mobile phones. we can set count down time after completion of time it will stop and get 0 values.
There are four methods are available to use countdown timer as shown below -
onTick(l... | [
{
"code": null,
"e": 1297,
"s": 1062,
"text": "Before getting into an example, we should know what is a countdown timer in android. Count down timer as simple as we see in watches and mobile phones. we can set count down time after completion of time it will stop and get 0 values."
},
{
"cod... |
Greatest number among three given numbers in PL/SQL - GeeksforGeeks | 14 Aug, 2021
Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.Given three numbers and the task is to find greatest among them.... | [
{
"code": null,
"e": 24340,
"s": 24312,
"text": "\n14 Aug, 2021"
},
{
"code": null,
"e": 24649,
"s": 24340,
"text": "Prerequisite – PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part,... |
etags - Unix, Linux Command | ctags [-aCdgImRVh] [-BtTuvwx] [-l language]
[-o tagfile] [-r regexp]
[--append] [--backward-search]
[--cxref] [--defines] [--forward-search]
[--globals] [--ignore-indentation]
[--language=language] [--members]
[--output=tagfile] [--regex=regexp]
[--ignore-case-regex=regexp]
[--typedefs] [--typedefs-and-c++]
[--update... | [
{
"code": null,
"e": 10945,
"s": 10577,
"text": "\nctags [-aCdgImRVh] [-BtTuvwx] [-l language]\n\n[-o tagfile] [-r regexp]\n\n[--append] [--backward-search]\n[--cxref] [--defines] [--forward-search]\n[--globals] [--ignore-indentation]\n[--language=language] [--members]\n[--output=tagfile] [--regex=r... |
Convert a List of String to a comma separated String in Java - GeeksforGeeks | 11 Dec, 2018
Given a List of String, the task is to convert the List to a comma separated String in Java.
Examples:
Input: List<String> = ["Geeks", "ForGeeks", "GeeksForGeeks"]
Output: "Geeks, For, Geeks"
Input: List<String> = ["G", "e", "e", "k", "s"]
Output: "G, e, e, k, s"
Approach: This can be achieved with the h... | [
{
"code": null,
"e": 24418,
"s": 24390,
"text": "\n11 Dec, 2018"
},
{
"code": null,
"e": 24511,
"s": 24418,
"text": "Given a List of String, the task is to convert the List to a comma separated String in Java."
},
{
"code": null,
"e": 24521,
"s": 24511,
"text"... |
How to import data into SAS? - GeeksforGeeks | 23 Jul, 2019
Entering Data Directly: You can enter numbers of lines of data directly in SAS program by using a DATALINES statement.The keywords are as follows:DATA: The DATA step always starts with a DATA statement. The purpose of the DATA statement is to tell SAS that you are creating a new data set i.e. outdata.DATA ... | [
{
"code": null,
"e": 24477,
"s": 24449,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 26481,
"s": 24477,
"text": "Entering Data Directly: You can enter numbers of lines of data directly in SAS program by using a DATALINES statement.The keywords are as follows:DATA: The DATA st... |
SQL - Date Functions | The following table has a list of all the important Date and Time related functions available through SQL. There are various other functions supported by your RDBMS. The given list is based on MySQL RDBMS.
Adds dates
Adds time
Converts from one timezone to another
Returns the current date
Synonyms for CURDATE()
Synonym... | [
{
"code": null,
"e": 2659,
"s": 2453,
"text": "The following table has a list of all the important Date and Time related functions available through SQL. There are various other functions supported by your RDBMS. The given list is based on MySQL RDBMS."
},
{
"code": null,
"e": 2670,
... |
Different ways for String to Integer Conversions in Java - GeeksforGeeks | 29 May, 2019
Given a String in Java, the task is to convert this String into Integer.
Examples:
Input: str = "1234"
Output: 1234
Input: str = "456"
Output: 456
Convert using Integer.parseInt(String)The Integer class has a static method that returns an integer object representing the specified String parameter.Syntax ... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n29 May, 2019"
},
{
"code": null,
"e": 24021,
"s": 23948,
"text": "Given a String in Java, the task is to convert this String into Integer."
},
{
"code": null,
"e": 24031,
"s": 24021,
"text": "Examples:"
},
... |
How can we set up a MySQL User account by using INSERT INTO statement? | For adding a new user to MySQL, we just need to add a new entry to the user table in the database mysql. To illustrate it we are using the following example −
The following program is an example of adding a new user guest with SELECT, INSERT and UPDATE privileges with the password guest123; the SQL query is −
root@host... | [
{
"code": null,
"e": 1221,
"s": 1062,
"text": "For adding a new user to MySQL, we just need to add a new entry to the user table in the database mysql. To illustrate it we are using the following example −"
},
{
"code": null,
"e": 1373,
"s": 1221,
"text": "The following program i... |
Java Assignment Operator Examples | The following program is a simple example that demonstrates the assignment operators. Copy and paste the following Java program in Test.java file. Compile and run this program −
Online Demo
public class Test {
public static void main(String args[]) {
int a = 10;
int b = 20;
int c = 0;
c = a ... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "The following program is a simple example that demonstrates the assignment operators. Copy and paste the following Java program in Test.java file. Compile and run this program −"
},
{
"code": null,
"e": 1252,
"s": 1240,
"text": "Onli... |
Difference between Java and PHP - GeeksforGeeks | 10 Sep, 2020
Java is a very famous object-oriented programming language. It was developed by Sun Microsystems. It has a virtual machine platform that allows you to create compiled programs that run on nearly every platform. Java promised, “Write Once, Run Anywhere”. It has a continuous contribution from industry expert... | [
{
"code": null,
"e": 26423,
"s": 26395,
"text": "\n10 Sep, 2020"
},
{
"code": null,
"e": 26788,
"s": 26423,
"text": "Java is a very famous object-oriented programming language. It was developed by Sun Microsystems. It has a virtual machine platform that allows you to create compi... |
Barabasi Albert Graph (for Scale Free Models) - GeeksforGeeks | 15 Nov, 2021
The current article would deal with the concepts surrounding the complex networks using the python library Networkx. It is a Python language software package for the creation, manipulation, and study of the structure, dynamics, and function of complex networks. With NetworkX you can load and store networks... | [
{
"code": null,
"e": 26387,
"s": 26359,
"text": "\n15 Nov, 2021"
},
{
"code": null,
"e": 26899,
"s": 26387,
"text": "The current article would deal with the concepts surrounding the complex networks using the python library Networkx. It is a Python language software package for t... |
Life Expectancy vs Gross Domestic Product using Data Analytics! | by Dhruvil Shah | Towards Data Science | Data Analytics refers to data processing methods to improve productivity and business benefit. Data is derived from various sources and is cleaned and categorized to interpret different patterns of actions. Here, the relation between the terms GDP and Life Expectancy at Birth Year is analyzed with the help of the last ... | [
{
"code": null,
"e": 534,
"s": 172,
"text": "Data Analytics refers to data processing methods to improve productivity and business benefit. Data is derived from various sources and is cleaned and categorized to interpret different patterns of actions. Here, the relation between the terms GDP and Lif... |
Anonymous Functions in Scala - GeeksforGeeks | 26 Feb, 2019
In Scala, An anonymous function is also known as a function literal. A function which does not contain a name is known as an anonymous function. An anonymous function provides a lightweight function definition. It is useful when we want to create an inline function.Syntax:
(z:Int, y:Int)=> z*y
Or
(_:Int)*(... | [
{
"code": null,
"e": 24818,
"s": 24790,
"text": "\n26 Feb, 2019"
},
{
"code": null,
"e": 25092,
"s": 24818,
"text": "In Scala, An anonymous function is also known as a function literal. A function which does not contain a name is known as an anonymous function. An anonymous funct... |
Python - How to Count the NaN Occurrences in a Column in Pandas Dataframe? | To count the NaN occurrences in a column, use the isna(). Use the sum() to add the values and find the count.
At first, let us import the required libraries with their respective aliases −
import pandas as pd
import numpy as np
Create a DataFrame. We have set the NaN values using the Numpy np.inf in “Units_Sold” column... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "To count the NaN occurrences in a column, use the isna(). Use the sum() to add the values and find the count."
},
{
"code": null,
"e": 1251,
"s": 1172,
"text": "At first, let us import the required libraries with their respective ali... |
Python Pandas - Create a subset by choosing specific values from columns based on indexes | To create a subset by choosing specific values from columns based on indexes, use the iloc() method. Let us first import the pandas library
import pandas as pd
Create a Pandas DataFrame with Product records. We have 3 columns in it
dataFrame = pd.DataFrame({"Product": ["SmartTV", "ChromeCast", "Speaker", "Earphone"],
"... | [
{
"code": null,
"e": 1202,
"s": 1062,
"text": "To create a subset by choosing specific values from columns based on indexes, use the iloc() method. Let us first import the pandas library"
},
{
"code": null,
"e": 1222,
"s": 1202,
"text": "import pandas as pd"
},
{
"code": ... |
Matplotlib.axes.Axes.invert_yaxis() in Python - GeeksforGeeks | 19 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute.
The Axe... | [
{
"code": null,
"e": 24699,
"s": 24671,
"text": "\n19 Apr, 2020"
},
{
"code": null,
"e": 24999,
"s": 24699,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, ... |
Dictionary keys() Method in Java with Examples - GeeksforGeeks | 27 Dec, 2018
The keys() method of Dictionary class in Java is used to get the enumeration of the keys present in the dictionary.
Syntax:
Enumeration enu = DICTIONARY.keys()
Parameters: The method does not take any parameters.
Return value: The method returns an enumeration of the keys of the Dictionary.
Below programs ... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n27 Dec, 2018"
},
{
"code": null,
"e": 24064,
"s": 23948,
"text": "The keys() method of Dictionary class in Java is used to get the enumeration of the keys present in the dictionary."
},
{
"code": null,
"e": 24072,
... |
Java new Keyword | ❮ Java Keywords
Create an object called "myObj" and print the value of x:
public class Main {
int x = 5;
public static void main(String[] args) {
Main myObj = new Main();
System.out.println(myObj.x);
}
}
Try it Yourself »
The new keyword creates new objects.
Read more about objects in our Java Classe... | [
{
"code": null,
"e": 18,
"s": 0,
"text": "\n❮ Java Keywords\n"
},
{
"code": null,
"e": 76,
"s": 18,
"text": "Create an object called \"myObj\" and print the value of x:"
},
{
"code": null,
"e": 222,
"s": 76,
"text": "public class Main {\n int x = 5;\n\n publ... |
Find the largest and second largest value in a Linked List - GeeksforGeeks | 18 Jun, 2021
Given a Linked List, the task is to find the largest and second largest value in a Linked List.Example:
Input: LL = 10 -> 15 -> 5 -> 20 -> 7 -> 9 Output: Largest = 20 Second Largest = 15Input: LL = 0 -> 5 -> 52 -> 21 Output: Largest = 52 Second Largest = 21
Approach:
Store the maximum of first two ... | [
{
"code": null,
"e": 24794,
"s": 24766,
"text": "\n18 Jun, 2021"
},
{
"code": null,
"e": 24900,
"s": 24794,
"text": "Given a Linked List, the task is to find the largest and second largest value in a Linked List.Example: "
},
{
"code": null,
"e": 25056,
"s": 2490... |
C# | Get or set the element at specified index in Collection<T> - GeeksforGeeks | 01 Feb, 2019
Collection<T>.Item[Int32] property is used to get or set the element at the specified index.
Syntax:
public T this[int index] { get; set; }
Here, index is the zero-based index of the element to get or set.
Return Value: The element at the specified index.
Exception: This method will give ArgumentOutOfRang... | [
{
"code": null,
"e": 24302,
"s": 24274,
"text": "\n01 Feb, 2019"
},
{
"code": null,
"e": 24395,
"s": 24302,
"text": "Collection<T>.Item[Int32] property is used to get or set the element at the specified index."
},
{
"code": null,
"e": 24403,
"s": 24395,
"text"... |
How to select data from a table using SQL | by Kate Marie Lewis | Towards Data Science | Whilst self isolating at home, my friends and I have decided to work together as a group learning data science. We have had one lesson so far and I have been so pleased by how enthusiastic the group is. By asking questions, my friends helped me to be clearer in my explanations and assisted each other learning. Hopefull... | [
{
"code": null,
"e": 579,
"s": 172,
"text": "Whilst self isolating at home, my friends and I have decided to work together as a group learning data science. We have had one lesson so far and I have been so pleased by how enthusiastic the group is. By asking questions, my friends helped me to be clea... |
List of tuples to dictionary conversion in Python | In this article, we are going to learn how to convert the list of tuples into a dictionary. Converting a list of tuples into a dictionary is a straightforward thing.
Follow the below steps to complete the code.
Initialize the list with tuples.
Use the dict to convert given list of tuples into a dictionary.
Print the re... | [
{
"code": null,
"e": 1228,
"s": 1062,
"text": "In this article, we are going to learn how to convert the list of tuples into a dictionary. Converting a list of tuples into a dictionary is a straightforward thing."
},
{
"code": null,
"e": 1273,
"s": 1228,
"text": "Follow the below... |
MATLAB - Scalar Multiplication of Vectors | When you multiply a vector by a number, this is called the scalar multiplication. Scalar multiplication produces a new vector of same type with each element of the original vector multiplied by the number.
Create a script file with the following code −
v = [ 12 34 10 8];
m = 5 * v
When you run the file, it displays the... | [
{
"code": null,
"e": 2347,
"s": 2141,
"text": "When you multiply a vector by a number, this is called the scalar multiplication. Scalar multiplication produces a new vector of same type with each element of the original vector multiplied by the number."
},
{
"code": null,
"e": 2394,
... |
Serialize Python dictionary to XML - GeeksforGeeks | 30 Nov, 2021
XML is a markup language that is designed to transport data. It was made while keeping it self descriptive in mind. Syntax of XML is similar to HTML other than the fact that the tags in XML aren’t pre-defined. This allows for data to be stored between custom tags where the tag contains details about the da... | [
{
"code": null,
"e": 24854,
"s": 24826,
"text": "\n30 Nov, 2021"
},
{
"code": null,
"e": 25228,
"s": 24854,
"text": "XML is a markup language that is designed to transport data. It was made while keeping it self descriptive in mind. Syntax of XML is similar to HTML other than the... |
Knowing The General Modeling Framework is a Must For All Data Scientists | by Robert Wood | Towards Data Science | When it comes to building statistical models, we do so with the purpose of understanding or approximating some aspect of our world.
The concept of the general modeling framework lends well to breaking down the purposes and approaches that we might take to generate said understanding.
Take a look at the general modeling... | [
{
"code": null,
"e": 304,
"s": 172,
"text": "When it comes to building statistical models, we do so with the purpose of understanding or approximating some aspect of our world."
},
{
"code": null,
"e": 457,
"s": 304,
"text": "The concept of the general modeling framework lends we... |
jQuery | Selectors and Event Methods - GeeksforGeeks | 12 Feb, 2019
jQuery is a powerful JavaScript library. It is more powerful than the JavaScript. The codes of jQuery are more precise, shorter and simpler than the standard JavaScript codes. It can perform a variety of functions.In this article, we will learn about jQuery selectors, jQuery Event methods and some useful m... | [
{
"code": null,
"e": 40747,
"s": 40719,
"text": "\n12 Feb, 2019"
},
{
"code": null,
"e": 41062,
"s": 40747,
"text": "jQuery is a powerful JavaScript library. It is more powerful than the JavaScript. The codes of jQuery are more precise, shorter and simpler than the standard JavaS... |
Computer Programming - Numbers | Every programming language provides support for manipulating different types of numbers such as simple whole integers and floating point numbers. C, Java, and Python categorize these numbers in several categories based on their nature.
Let's go back and check the data types chapter, where we listed down the core data t... | [
{
"code": null,
"e": 2376,
"s": 2140,
"text": "Every programming language provides support for manipulating different types of numbers such as simple whole integers and floating point numbers. C, Java, and Python categorize these numbers in several categories based on their nature."
},
{
"co... |
Python 3 - Number max() Method | The max() method returns the largest of its arguments i.e. the value closest to positive infinity.
Following is the syntax for max() method −
max( x, y, z, .... )
x − This is a numeric expression.
x − This is a numeric expression.
y − This is also a numeric expression.
y − This is also a numeric expression.
z − This i... | [
{
"code": null,
"e": 2439,
"s": 2340,
"text": "The max() method returns the largest of its arguments i.e. the value closest to positive infinity."
},
{
"code": null,
"e": 2482,
"s": 2439,
"text": "Following is the syntax for max() method −"
},
{
"code": null,
"e": 250... |
How to check if a vector contains given value in R ? - GeeksforGeeks | 05 Apr, 2021
We can check if a vector contains a given value using the %in% operator. For this, we have to create a vector with some values. And we have to read input from the user for what value to be checked. Or we can assign some value to a variable explicitly. Using the %in% operator with the below-given syntax we ... | [
{
"code": null,
"e": 26597,
"s": 26569,
"text": "\n05 Apr, 2021"
},
{
"code": null,
"e": 26945,
"s": 26597,
"text": "We can check if a vector contains a given value using the %in% operator. For this, we have to create a vector with some values. And we have to read input from the ... |
JavaScript String substr() Method - GeeksforGeeks | 06 Oct, 2021
Below is the example of the String substr() Method.
Example:
JavaScript
<script>function func() { var str = 'Geeks for Geeks'; var sub_str = str.substr(6); document.write(sub_str);}func();</script>
Output:
for Geeks
str.substr() method returns the specified number of characters from the spec... | [
{
"code": null,
"e": 26175,
"s": 26147,
"text": "\n06 Oct, 2021"
},
{
"code": null,
"e": 26229,
"s": 26175,
"text": "Below is the example of the String substr() Method. "
},
{
"code": null,
"e": 26240,
"s": 26229,
"text": "Example: "
},
{
"code": nul... |
How to draw a rounded Rectangle on HTML Canvas? | To draw a rectangle in HTML, use the canvas element. With canvas, use the rect() method to draw a rectangle. But, for creating a rounded rectangle, using the rect() method won’t work. We will be using the lineTo() and quadraticCurveTo() method to create a rounded rectangle.
This is how you can create a canvas in HTML5 ... | [
{
"code": null,
"e": 1337,
"s": 1062,
"text": "To draw a rectangle in HTML, use the canvas element. With canvas, use the rect() method to draw a rectangle. But, for creating a rounded rectangle, using the rect() method won’t work. We will be using the lineTo() and quadraticCurveTo() method to create... |
Output of Java Programs | Set 36 (do-while loop) - GeeksforGeeks | 18 Jun, 2020
Prerequisite : while loop in Java
1. What will be the output for the following program?
class Test {public static void main(String[] args) { do while (true) System.out.println("HELLO"); while (false); }}
Options:1. HELLO2. Compile time error3. HELLO (infinit... | [
{
"code": null,
"e": 25905,
"s": 25877,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 25939,
"s": 25905,
"text": "Prerequisite : while loop in Java"
},
{
"code": null,
"e": 25993,
"s": 25939,
"text": "1. What will be the output for the following program?"
... |
Does it make sense to use “LIMIT 1” in a query “SELECT 1 ...”? | Yes, you can use LIMIT 1 with SELECT1.
Suppose, you are using SELECT 1 and your table has billions of records. In this case, it will print 1 billion times.
The syntax of SELECT 1 is as follows −
SELECT 1 FROM yourTableName;
Suppose, you are using LIMIT 1 and your table has billions of records. This case, it will print ... | [
{
"code": null,
"e": 1101,
"s": 1062,
"text": "Yes, you can use LIMIT 1 with SELECT1."
},
{
"code": null,
"e": 1218,
"s": 1101,
"text": "Suppose, you are using SELECT 1 and your table has billions of records. In this case, it will print 1 billion times."
},
{
"code": null... |
Check if a linked list is Circular Linked List - GeeksforGeeks | 07 Jul, 2021
Given a singly linked list, find if the linked list is circular or not. A linked list is called circular if it is not NULL-terminated and all nodes are connected in the form of a cycle. Below is an example of a circular linked list.
An empty linked list is considered as circular.Note that this problem is ... | [
{
"code": null,
"e": 25863,
"s": 25835,
"text": "\n07 Jul, 2021"
},
{
"code": null,
"e": 26097,
"s": 25863,
"text": "Given a singly linked list, find if the linked list is circular or not. A linked list is called circular if it is not NULL-terminated and all nodes are connected i... |
Perl | Opening and Reading a File - GeeksforGeeks | 26 Feb, 2019
A filehandle is an internal Perl structure that associates a physical file with a name. All filehandles have read/write access, so once filehandle is attached to a file reading/writing can be done. However, the mode in which file handle is opened is to be specified while associating a filehandle.
Open fu... | [
{
"code": null,
"e": 25200,
"s": 25172,
"text": "\n26 Feb, 2019"
},
{
"code": null,
"e": 25499,
"s": 25200,
"text": "A filehandle is an internal Perl structure that associates a physical file with a name. All filehandles have read/write access, so once filehandle is attached to a... |
How to convert Dictionary to Hashtable in PowerShell? | Like any other data type conversion in PowerShell, we can convert Dictionary to hashtable in a similar way. We have a below Dictionary for the example called $CityData.
Key Value
--- -----
India 91
Austria 43
Its datatype is Dictionary,
PS C:\> $citydata.GetType() | ft -AutoSize
IsPublic IsSerial Name ... | [
{
"code": null,
"e": 1232,
"s": 1062,
"text": "Like any other data type conversion in PowerShell, we can convert Dictionary to hashtable in a similar way. We have a below Dictionary for the example called $CityData."
},
{
"code": null,
"e": 1288,
"s": 1232,
"text": "Key Valu... |
How to create and populate two-dimension Java array? | A two-dimensional array in Java is represented as an array of one-dimensional arrays of the same type. Mostly, it is used to represent a table of values with rows and columns −
Live Demo
public class Creating2DArray {
public static void main(String args[]) {
int[][] myArray = new int[3][3];
myArray[0][0] = 21;
myArra... | [
{
"code": null,
"e": 1239,
"s": 1062,
"text": "A two-dimensional array in Java is represented as an array of one-dimensional arrays of the same type. Mostly, it is used to represent a table of values with rows and columns −"
},
{
"code": null,
"e": 1250,
"s": 1239,
"text": " Live... |
ML - Support Vector Machine(SVM) | Support vector machines (SVMs) are powerful yet flexible supervised machine learning algorithms which are used both for classification and regression. But generally, they are used in classification problems. In 1960s, SVMs were first introduced but later they got refined in 1990. SVMs have their unique way of implement... | [
{
"code": null,
"e": 2797,
"s": 2304,
"text": "Support vector machines (SVMs) are powerful yet flexible supervised machine learning algorithms which are used both for classification and regression. But generally, they are used in classification problems. In 1960s, SVMs were first introduced but late... |
Addressing Modes - GeeksforGeeks | 04 Sep, 2019
Addressing Modes– The term addressing modes refers to the way in which the operand of an instruction is specified. The addressing mode specifies a rule for interpreting or modifying the address field of the instruction before the operand is actually executed.
Addressing modes for 8086 instructions are divi... | [
{
"code": null,
"e": 27462,
"s": 27434,
"text": "\n04 Sep, 2019"
},
{
"code": null,
"e": 27722,
"s": 27462,
"text": "Addressing Modes– The term addressing modes refers to the way in which the operand of an instruction is specified. The addressing mode specifies a rule for interpr... |
How to Get Started With Facebook’s Detectron2 | by Rob | Towards Data Science | Among many different techniques for object detection, Facebook came up with its model: Detectron2. This model, similarly to Yolo models, is able to draw bounding boxes around objects and inference with a panoptic segmentation model, in other words, instead of drawing a box around an object it “wraps” the object boundin... | [
{
"code": null,
"e": 567,
"s": 171,
"text": "Among many different techniques for object detection, Facebook came up with its model: Detectron2. This model, similarly to Yolo models, is able to draw bounding boxes around objects and inference with a panoptic segmentation model, in other words, instea... |
How to do Logistic Regression in R | by Michaelino Mervisiano | Towards Data Science | Introduction
Logistic regression is one of the most popular forms of the generalized linear model. It comes in handy if you want to predict a binary outcome from a set of continuous and/or categorical predictor variables. In this article, I will discuss an overview on how to use Logistic Regression in R with an example... | [
{
"code": null,
"e": 184,
"s": 171,
"text": "Introduction"
},
{
"code": null,
"e": 501,
"s": 184,
"text": "Logistic regression is one of the most popular forms of the generalized linear model. It comes in handy if you want to predict a binary outcome from a set of continuous and/... |
Automorphic Number - GeeksforGeeks | 11 Mar, 2022
Given a number N, the task is to check whether the number is Automorphic number or not. A number is called Automorphic number if and only if its square ends in the same digits as the number itself.Examples :
Input : N = 76
Output : Automorphic
Explanation: As 76*76 = 5776
Input : N = 25
Output : Auto... | [
{
"code": null,
"e": 26274,
"s": 26246,
"text": "\n11 Mar, 2022"
},
{
"code": null,
"e": 26484,
"s": 26274,
"text": "Given a number N, the task is to check whether the number is Automorphic number or not. A number is called Automorphic number if and only if its square ends in the... |
Predicting Future Stock Market Trends with Python & Machine Learning | by Lucas Rea | Towards Data Science | Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details.
With the recent vola... | [
{
"code": null,
"e": 472,
"s": 172,
"text": "Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking profession... |
Convert Unicode to ASCII in Python - GeeksforGeeks | 05 Aug, 2021
Unicode is the universal character set and a standard to support all the world’s languages. It contains 140,000+ characters used by 150+ scripts along with various symbols. ASCII on the other hand is a subset of Unicode and the most compatible character set, consisting of 128 letters made of English letter... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n05 Aug, 2021"
},
{
"code": null,
"e": 24818,
"s": 24292,
"text": "Unicode is the universal character set and a standard to support all the world’s languages. It contains 140,000+ characters used by 150+ scripts along with various... |
How to convert a JavaScript date to UTC? - GeeksforGeeks | 22 Apr, 2019
The Javascript date can be converted to UTC by using functions present in Javascript Date object.The toUTCString() method is used to convert a Date object into a string, according to universal time.The toGMTString() returns a string which represents the Date based on the GMT (UT) time zone.
By default, Jav... | [
{
"code": null,
"e": 26646,
"s": 26618,
"text": "\n22 Apr, 2019"
},
{
"code": null,
"e": 26938,
"s": 26646,
"text": "The Javascript date can be converted to UTC by using functions present in Javascript Date object.The toUTCString() method is used to convert a Date object into a s... |
Percentage increase in volume of the cube if a side of cube is increased by a given percentage - GeeksforGeeks | 27 Mar, 2022
Given here is a cube, whose one side is increased by a given percentage. The task is to find percentage increase in the volume of the cube.Examples:
Input: x = 10
Output: 33.1%
Input: x = 50
Output: 237.5%
Approach
In a cube, all sides are equal, so, length = breadth = height
let side of the cube = a
... | [
{
"code": null,
"e": 26451,
"s": 26423,
"text": "\n27 Mar, 2022"
},
{
"code": null,
"e": 26602,
"s": 26451,
"text": "Given here is a cube, whose one side is increased by a given percentage. The task is to find percentage increase in the volume of the cube.Examples: "
},
{
... |
Sorting element of an array by frequency in decreasing order - GeeksforGeeks | 21 Apr, 2022
Given an array arr[] of N integers. The task is to sort the array arr[] according to the frequency of elements in decreasing order. Note: If the frequencies of the two elements are the same, then the smaller element should come first.
Examples:
Input: arr[] = { 4, 4, 5, 6, 4, 2, 2, 8, 5 } Output: 4 4 4 2... | [
{
"code": null,
"e": 26067,
"s": 26039,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 26302,
"s": 26067,
"text": "Given an array arr[] of N integers. The task is to sort the array arr[] according to the frequency of elements in decreasing order. Note: If the frequencies of the... |
lvalue and rvalue in C language - GeeksforGeeks | 27 Sep, 2017
L-value: “l-value” refers to memory location which identifies an object. l-value may appear as either left hand or right hand side of an assignment operator(=). l-value often represents as identifier.
Expressions referring to modifiable locations are called “modifiable l-values“. A modifiable l-value canno... | [
{
"code": null,
"e": 25795,
"s": 25767,
"text": "\n27 Sep, 2017"
},
{
"code": null,
"e": 25996,
"s": 25795,
"text": "L-value: “l-value” refers to memory location which identifies an object. l-value may appear as either left hand or right hand side of an assignment operator(=). l-... |
How to get the n-largest values of an array using NumPy? - GeeksforGeeks | 29 Aug, 2020
Let’s see the program for how to get the n-largest values of an array using NumPy library. For getting n-largest values from a NumPy array we have to first sort the NumPy array using numpy.argsort() function of NumPy then applying slicing concept with negative indexing.
Syntax: numpy.argsort(arr, axis=-1, ... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 25808,
"s": 25537,
"text": "Let’s see the program for how to get the n-largest values of an array using NumPy library. For getting n-largest values from a NumPy array we have to first sort th... |
CSS - Responsive | Responsive web design provides an optimal experience, easy reading and easy navigation with a minimum of resizing on different devices such as desktops, mobiles and tabs).
Below image shows the responsive structure of web pages.
<html>
<head>
<style>
body {
font: 600 14px/24px "Open Sans",... | [
{
"code": null,
"e": 2798,
"s": 2626,
"text": "Responsive web design provides an optimal experience, easy reading and easy navigation with a minimum of resizing on different devices such as desktops, mobiles and tabs)."
},
{
"code": null,
"e": 2855,
"s": 2798,
"text": "Below imag... |
C++ Library - <basic_istream> | It is used for Input stream objects can read and interpret input from sequences of characters. Specific members are provided to perform these input operations.
The standard objects cin and wcin use particular instantiations of this class template.
Below is definition of std::basic_istream.
template <class charT, class ... | [
{
"code": null,
"e": 2763,
"s": 2603,
"text": "It is used for Input stream objects can read and interpret input from sequences of characters. Specific members are provided to perform these input operations."
},
{
"code": null,
"e": 2851,
"s": 2763,
"text": "The standard objects c... |
K-Primes (Numbers with k prime factors) in a range - GeeksforGeeks | 21 Apr, 2021
Given three integers A, B and K. We need to find no. of K-prime numbers in the range [A, B]. A number is called K-prime if it has exactly K distinct prime factors.
Examples:
Input : A = 4, B = 10, K = 2.
Output : 6 10
Given range is [4, 5, 6, 7, 8, 9, 10].
From the above range 6 and 10 have 2 distinct
p... | [
{
"code": null,
"e": 24524,
"s": 24496,
"text": "\n21 Apr, 2021"
},
{
"code": null,
"e": 24689,
"s": 24524,
"text": "Given three integers A, B and K. We need to find no. of K-prime numbers in the range [A, B]. A number is called K-prime if it has exactly K distinct prime factors.... |
How to get current day, month and year in Java 8? | The java.time package of Java provides API’s for dates, times, instances and durations. It provides various classes like Clock, LocalDate, LocalDateTime, LocalTime, MonthDay,Year, YearMonth etc. Using classes of this package you can get details related to date and time in much simpler way compared to previous alternati... | [
{
"code": null,
"e": 1387,
"s": 1062,
"text": "The java.time package of Java provides API’s for dates, times, instances and durations. It provides various classes like Clock, LocalDate, LocalDateTime, LocalTime, MonthDay,Year, YearMonth etc. Using classes of this package you can get details related ... |
Joining DataFrames matching by substring with Python Pandas | by Cristian Saavedra Desmoineaux | Towards Data Science | The next Python Pandas code made it for Jupyter Notebook is available in GitHub, and It answers the question: “Which tasks don’t match?”
The first part of the code creates two DataFrames: df1 and df2.
The df1 DataFrame has the complete name of the tasks in the task_name column.
And the df2 DataFrame has a substring in ... | [
{
"code": null,
"e": 184,
"s": 47,
"text": "The next Python Pandas code made it for Jupyter Notebook is available in GitHub, and It answers the question: “Which tasks don’t match?”"
},
{
"code": null,
"e": 248,
"s": 184,
"text": "The first part of the code creates two DataFrames:... |
Find a pair of overlapping intervals from a given Set - GeeksforGeeks | 15 Jun, 2021
Given a 2D array arr[][] with each row of the form {l, r}, the task is to find a pair (i, j) such that the ith interval lies within the jth interval. If multiple solutions exist, then print anyone of them. Otherwise, print -1.
Examples:
Input: N = 5, arr[][] = { { 1, 5 }, { 2, 10 }, { 3, 10}, {2, 2}, {2, 1... | [
{
"code": null,
"e": 26297,
"s": 26269,
"text": "\n15 Jun, 2021"
},
{
"code": null,
"e": 26524,
"s": 26297,
"text": "Given a 2D array arr[][] with each row of the form {l, r}, the task is to find a pair (i, j) such that the ith interval lies within the jth interval. If multiple s... |
Python | os.access() Method - GeeksforGeeks | 12 Sep, 2018
OS module in Python provides functions for interacting with the operating system. OS, comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality.
os.access() method uses the real uid/gid to test for access to path. Most operations us... | [
{
"code": null,
"e": 24290,
"s": 24262,
"text": "\n12 Sep, 2018"
},
{
"code": null,
"e": 24510,
"s": 24290,
"text": "OS module in Python provides functions for interacting with the operating system. OS, comes under Python’s standard utility modules. This module provides a portabl... |
Get Started With Examples of Reactivity in Shiny apps. | by Lorna Maria A | Towards Data Science | One of the things that makes shiny apps interactive is reactivity. In the simplest of terms reactivity/reactive programming is the ability of a program to compute outputs from a given set of user inputs. The ability of a shiny app to handle reactivity makes a two-way communication between the user and the existing info... | [
{
"code": null,
"e": 500,
"s": 171,
"text": "One of the things that makes shiny apps interactive is reactivity. In the simplest of terms reactivity/reactive programming is the ability of a program to compute outputs from a given set of user inputs. The ability of a shiny app to handle reactivity mak... |
C# String.PadLeft Method | Pad the beginning of the string with spaces using the PadLeft() method. You can also pad it with a Unicode character.
Let’s say the following is our string.
string myStr = "DemoOne";
To set a padding at the beginning of the above string, use the PadLeft method.
myStr.PadLeft(10);
Here is the complete example.
Live Dem... | [
{
"code": null,
"e": 1180,
"s": 1062,
"text": "Pad the beginning of the string with spaces using the PadLeft() method. You can also pad it with a Unicode character."
},
{
"code": null,
"e": 1219,
"s": 1180,
"text": "Let’s say the following is our string."
},
{
"code": nul... |
How to get all options in a drop-down list by Selenium WebDriver using C#? | We can get all options in a drop−down list by Selenium Webdriver in C#. The static drop−down in an html code is identified with a select tag. All the options for a drop−down have the option tag.
To obtain all the options in the form of a list, we shall first identify that element with the help of any of the locators li... | [
{
"code": null,
"e": 1257,
"s": 1062,
"text": "We can get all options in a drop−down list by Selenium Webdriver in C#. The static drop−down in an html code is identified with a select tag. All the options for a drop−down have the option tag."
},
{
"code": null,
"e": 1502,
"s": 1257,
... |
An overview of time series forecasting models | by Davide Burba | Towards Data Science | What is this article about?
This article provides an overview of the main models available for modelling univariate time series and forecasting their evolution. The models were developed in R and Python. The related code is available here.
Time series forecasting is a hot topic which has many possible applications, suc... | [
{
"code": null,
"e": 199,
"s": 171,
"text": "What is this article about?"
},
{
"code": null,
"e": 411,
"s": 199,
"text": "This article provides an overview of the main models available for modelling univariate time series and forecasting their evolution. The models were developed... |
Possibility of moving out of maze in C++ | In this problem, we are given a maze of n integers, each integer indicates the number of moves to be done. Along with the direction indicated using ‘>’ and ‘<’. Our task is to find whether it is possible to move out of the maze or not if the starting point is the position at 0 indexes.
Let’s take an example to understa... | [
{
"code": null,
"e": 1349,
"s": 1062,
"text": "In this problem, we are given a maze of n integers, each integer indicates the number of moves to be done. Along with the direction indicated using ‘>’ and ‘<’. Our task is to find whether it is possible to move out of the maze or not if the starting po... |
Largest Values From Labels in Python | Suppose we have a set of items: the i-th item has value values[i] and label labels[i]. Then, we will take a subset S of these items, such that −
|S| <= num_wanted
For every label L, the number of items present in S with label L is <= use_limit.
We have to find the largest possible sum of the subset S.
For example, if t... | [
{
"code": null,
"e": 1207,
"s": 1062,
"text": "Suppose we have a set of items: the i-th item has value values[i] and label labels[i]. Then, we will take a subset S of these items, such that −"
},
{
"code": null,
"e": 1225,
"s": 1207,
"text": "|S| <= num_wanted"
},
{
"code... |
Count Odd Even | Practice | GeeksforGeeks | Given an array A[] of N elements. The task is to count number of even and odd elements in the array.
Example:
Input:
N = 5
A[] = 1 2 3 4 5
Output:
3 2
Explanation:
There are 3 odd elements (1, 3, 5)
and 2 even elements (2 and 4).
Your Task:
Your task is to complete the function countOddEven() which should print number ... | [
{
"code": null,
"e": 379,
"s": 278,
"text": "Given an array A[] of N elements. The task is to count number of even and odd elements in the array."
},
{
"code": null,
"e": 388,
"s": 379,
"text": "Example:"
},
{
"code": null,
"e": 508,
"s": 388,
"text": "Input:\... |
AngularJS | angular.isDefined() Function - GeeksforGeeks | 12 Apr, 2019
The angular.isDefined() function in AngularJS is used to determine the value inside isDefined function is defined or not. It returns true if the reference is a defined otherwise returns false.
Syntax:
angular.isDefined( value )
Return Value: It returns true if the passed value is defined otherwise returns ... | [
{
"code": null,
"e": 30067,
"s": 30039,
"text": "\n12 Apr, 2019"
},
{
"code": null,
"e": 30260,
"s": 30067,
"text": "The angular.isDefined() function in AngularJS is used to determine the value inside isDefined function is defined or not. It returns true if the reference is a def... |
MySQL - CREATE EVENT Statement | A MySQL Event is nothing but a task that execute at a particular schedule. An event can contain one or more MySQL statements these statements are stored in the databases and gets executed at the specified schedule.
The CREATE EVENT statement is used to create and schedule an MYSQL event.
Following is the syntax of the ... | [
{
"code": null,
"e": 2548,
"s": 2333,
"text": "A MySQL Event is nothing but a task that execute at a particular schedule. An event can contain one or more MySQL statements these statements are stored in the databases and gets executed at the specified schedule."
},
{
"code": null,
"e": 2... |
Tryit Editor v3.7 | CSS Style Images
Tryit: Different filters on image | [
{
"code": null,
"e": 26,
"s": 9,
"text": "CSS Style Images"
}
] |
Tryit Editor v3.7 | Tryit: HTML link to same folder | [] |
How to remove a particular value from a vector in R? | To remove a particular value from a vector, we can use negation of value.
For example, if we have a vector called V that contains repetitive values starting from 1 to 10 and if we want to remove all 10s from V then we can use the command given below −
V<-V[V!=10]
In order to remove 0 from vector x1, use the code given ... | [
{
"code": null,
"e": 1136,
"s": 1062,
"text": "To remove a particular value from a vector, we can use negation of value."
},
{
"code": null,
"e": 1314,
"s": 1136,
"text": "For example, if we have a vector called V that contains repetitive values starting from 1 to 10 and if we wa... |
CSS @font-face rule - GeeksforGeeks | 25 Nov, 2021
The @font-face CSS at-rule rule is used to associate a font name that can be used in a style sheet. A font-family descriptor is used within the rule to name the font and an src descriptor is associated with an external font name. This can be used with downloadable fonts. This CSS @font-face rule can conta... | [
{
"code": null,
"e": 24854,
"s": 24826,
"text": "\n25 Nov, 2021"
},
{
"code": null,
"e": 25197,
"s": 24854,
"text": "The @font-face CSS at-rule rule is used to associate a font name that can be used in a style sheet. A font-family descriptor is used within the rule to name the f... |
Factorials of large numbers | Practice | GeeksforGeeks | Given an integer N, find its factorial.
Example 1:
Input: N = 5
Output: 120
Explanation : 5! = 1*2*3*4*5 = 120
Example 2:
Input: N = 10
Output: 3628800
Explanation :
10! = 1*2*3*4*5*6*7*8*9*10 = 3628800
Your Task:
You don't need to read input or print anything. Complete the function factorial() that takes integer N ... | [
{
"code": null,
"e": 290,
"s": 238,
"text": "Given an integer N, find its factorial.\n\nExample 1:"
},
{
"code": null,
"e": 351,
"s": 290,
"text": "Input: N = 5\nOutput: 120\nExplanation : 5! = 1*2*3*4*5 = 120\n"
},
{
"code": null,
"e": 362,
"s": 351,
"text": ... |
Java Examples - Getting Thread Name | How to get the name of a running thread?
Following example shows how to get the name of a running thread.
public class TwoThreadGetName extends Thread {
public void run() {
for (int i = 0; i < 10; i++) {
printMsg();
}
}
public void printMsg() {
Thread t = Thread.currentThread();
... | [
{
"code": null,
"e": 2109,
"s": 2068,
"text": "How to get the name of a running thread?"
},
{
"code": null,
"e": 2174,
"s": 2109,
"text": "Following example shows how to get the name of a running thread."
},
{
"code": null,
"e": 2655,
"s": 2174,
"text": "publi... |
Completion time of a given process in round robin - GeeksforGeeks | 30 Apr, 2021
We are given n-processes with their completion times in form of an array. We need to find the time instant when a given process p ends if the scheduling process is round robin and time slice is 1-sec. note : Array index start with 0.Examples :
Input : arr[] = {3, 2, 4, 2}, p = 1
Output : Completion time ... | [
{
"code": null,
"e": 24822,
"s": 24794,
"text": "\n30 Apr, 2021"
},
{
"code": null,
"e": 25068,
"s": 24822,
"text": "We are given n-processes with their completion times in form of an array. We need to find the time instant when a given process p ends if the scheduling process is... |
Disable Exit (or [ X ]) in Tkinter Window | The window manager implements the Tkinter window control icons. To hide and show the Tkinter window control icons, we can use the built-in function, which describes whether we want to disable control icons’ functionality.
To disable the Exit or [X] control icon, we have to define the protocol() method. We can limit the... | [
{
"code": null,
"e": 1284,
"s": 1062,
"text": "The window manager implements the Tkinter window control icons. To hide and show the Tkinter window control icons, we can use the built-in function, which describes whether we want to disable control icons’ functionality."
},
{
"code": null,
... |
Electron - Menus | The desktop apps come with two types of menus – the application menu(on the top bar) and a context menu(right-click menu). We will learn how to create both of these in this chapter.
We will be using two modules – the Menu and the MenuItem modules. Note that the Menu and the MenuItem modules are only available in the ma... | [
{
"code": null,
"e": 2247,
"s": 2065,
"text": "The desktop apps come with two types of menus – the application menu(on the top bar) and a context menu(right-click menu). We will learn how to create both of these in this chapter."
},
{
"code": null,
"e": 2530,
"s": 2247,
"text": "... |
C++ String Library - append | It extends the string by appending additional characters at the end of its current value.
Following is the declaration for std::string::append.
string& append (const string& str);
string& append (const string& str);
string& append (const string& str);
str − It is a string object.
str − It is a string object.
c − It is ... | [
{
"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": 2747,
"s": 2693,
"text": "Following is the declaration for std::string::append."
},
{
"code": null,
"e": 2... |
How to delete all users from specific OU using PowerShell? | To remove all users from the specific OU, we need to first retrieve the users from that OU. For example, we have 3 users in the OU called LABDOMAIN and we need to delete them all.
Get-ADUser -SearchBase "OU=LabUsers,DC=labdomain,DC=local" -Filter *
The above command will retrieve users from the specific OU and then we ... | [
{
"code": null,
"e": 1242,
"s": 1062,
"text": "To remove all users from the specific OU, we need to first retrieve the users from that OU. For example, we have 3 users in the OU called LABDOMAIN and we need to delete them all."
},
{
"code": null,
"e": 1311,
"s": 1242,
"text": "Ge... |
Custom Sort String in C++ | Suppose we have S and T two strings these are composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We have to permute the characters of T so that they match the order that S was sorted. More specifically, if x occurs before y in S, then x will occur before ... | [
{
"code": null,
"e": 1408,
"s": 1062,
"text": "Suppose we have S and T two strings these are composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We have to permute the characters of T so that they match the order that S was sorted. More... |
CICS - Handle condition | Handle condition is used to transfer the control of the program to a paragraph or a procedure label. If the condition name specified in the exception block arises, the particular para will be given control and then we can handle that condition.
HANDLE CONDITION can handle only conditions related to CICS, not the ordina... | [
{
"code": null,
"e": 2171,
"s": 1926,
"text": "Handle condition is used to transfer the control of the program to a paragraph or a procedure label. If the condition name specified in the exception block arises, the particular para will be given control and then we can handle that condition."
},
... |
4 Jupyter Notebook Alternative for Data Scientist | by Cornellius Yudha Wijaya | Towards Data Science | If you enjoy my content and want to get more in-depth knowledge regarding data or just daily life as a Data Scientist, please consider subscribing to my newsletter here.
As modern Data scientists, programming is the main tool that we must master. Although, unlike software developers or engineers, we utilize programming... | [
{
"code": null,
"e": 342,
"s": 172,
"text": "If you enjoy my content and want to get more in-depth knowledge regarding data or just daily life as a Data Scientist, please consider subscribing to my newsletter here."
},
{
"code": null,
"e": 639,
"s": 342,
"text": "As modern Data s... |
Creating a Slider / Carousel with CSS Flexbox (with infinite repeating items in loop) | We can create an infinitely scrolling slider using CSS Flexbox with the help of JavaScript.
The following examples illustrate carousel using CSS.
Live Demo
<!DOCTYPE html>
<html>
<head>
<style>
img {
width: 100%;
}
.container {
max-width: 600px;
p... | [
{
"code": null,
"e": 1154,
"s": 1062,
"text": "We can create an infinitely scrolling slider using CSS Flexbox with the help of JavaScript."
},
{
"code": null,
"e": 1208,
"s": 1154,
"text": "The following examples illustrate carousel using CSS."
},
{
"code": null,
"e":... |
How to apply an id attribute to a child element of a ReactJS component ? - GeeksforGeeks | 07 Apr, 2021
We can get the ID attribute of a ReactJS component from the props of the ReactJS component. As we are inside a ReactJS component here we are going to use this.props instead of props. If the ID attribute has been passed as id to the ReactJS component then we can use the following to get the ID attribute pas... | [
{
"code": null,
"e": 25256,
"s": 25228,
"text": "\n07 Apr, 2021"
},
{
"code": null,
"e": 25568,
"s": 25256,
"text": "We can get the ID attribute of a ReactJS component from the props of the ReactJS component. As we are inside a ReactJS component here we are going to use this.prop... |
Visualizing the Central Limit Theorem with Python | by Valentina Alto | Towards Data Science | Whenever you are dealing with data and want to gather some information about them, the very first thing you are likely to check is whether they follow a known distribution.
Why is it so important knowing data distribution?
The answer to this question relies on the goal of many statistical types of research, that is, kn... | [
{
"code": null,
"e": 344,
"s": 171,
"text": "Whenever you are dealing with data and want to gather some information about them, the very first thing you are likely to check is whether they follow a known distribution."
},
{
"code": null,
"e": 394,
"s": 344,
"text": "Why is it so ... |
How can I override the 'Home' button in my Android App? | This example demonstrates how do I in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://sc... | [
{
"code": null,
"e": 1109,
"s": 1062,
"text": "This example demonstrates how do I in android."
},
{
"code": null,
"e": 1238,
"s": 1109,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project."
},
... |
Replace part of string in MySQL table column? | To replace part of string in MySQL table column, you can use REPLACE(). Following is the syntax −
update yourTableName set yourColumnName = REPLACE(yourColumnName ,'yourOldValue','yourNewValue');
Let us first create a table −
mysql> create table replacePartOfStringDemo
-> (
-> WebsiteURL varchar(100)
-> );
Que... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "To replace part of string in MySQL table column, you can use REPLACE(). Following is the syntax −"
},
{
"code": null,
"e": 1258,
"s": 1160,
"text": "update yourTableName set yourColumnName = REPLACE(yourColumnName ,'yourOldValue','yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.