title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
scipy stats.moment() function | Python | 11 Feb, 2019
scipy.stats.moment(array, axis=0) function calculates the nth moment about the mean for a sample i.e. array elements along the specified axis of the array (list in python).
Its formula –
Parameters :array : Input array or object having the elements to calculate the moment.axis : Axis along which the moment... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n11 Feb, 2019"
},
{
"code": null,
"e": 201,
"s": 28,
"text": "scipy.stats.moment(array, axis=0) function calculates the nth moment about the mean for a sample i.e. array elements along the specified axis of the array (list in python)."
... |
Continue Statement in Java | 23 Jun, 2022
Suppose a person wants code to execute for the values as per the code is designed to be executed but forcefully the same user wants to skip out the execution for which code should have been executed as designed above but will not as per the demand of the user. In simpler words, it is a decision-making prob... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Jun, 2022"
},
{
"code": null,
"e": 394,
"s": 52,
"text": "Suppose a person wants code to execute for the values as per the code is designed to be executed but forcefully the same user wants to skip out the execution for which code s... |
Row Echelon Form | 22 Jan, 2021
A matrix is in Row Echelon form if it has the following properties:
Any row consisting entirely of zeros occurs at the bottom of the matrix.
For each row that does not contain entirely zeros, the first non-zero entry is 1 (called a leading 1).
For two successive (non-zero) rows, the leading 1 in the higher... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n22 Jan, 2021"
},
{
"code": null,
"e": 122,
"s": 54,
"text": "A matrix is in Row Echelon form if it has the following properties:"
},
{
"code": null,
"e": 195,
"s": 122,
"text": "Any row consisting entirely of zeros ... |
GATE | GATE IT 2005 | Question 71 | 28 Jun, 2021
A network with CSMA/CD protocol in the MAC layer is running at 1 Gbps over a 1 km cable with no repeaters. The signal speed in the cable is 2 x 108 m/sec. The minimum frame size for this network should be
(A) 10000 bits(B) 10000 bytes(C) 5000 bits(D) 5000 bytesAnswer: (A)Explanation:
Frame Size S >= 2BL/P... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 259,
"s": 54,
"text": "A network with CSMA/CD protocol in the MAC layer is running at 1 Gbps over a 1 km cable with no repeaters. The signal speed in the cable is 2 x 108 m/sec. The minimum frame s... |
Java.net.HttpURLConnection Class in Java | 20 Apr, 2022
HttpURLConnection class is an abstract class directly extending from URLConnection class. It includes all the functionality of its parent class with additional HTTP-specific features. HttpsURLConnection is another class that is used for the more secured HTTPS protocol.
It is one of the popular choices amo... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n20 Apr, 2022"
},
{
"code": null,
"e": 299,
"s": 28,
"text": "HttpURLConnection class is an abstract class directly extending from URLConnection class. It includes all the functionality of its parent class with additional HTTP-specific f... |
How to operate callback-based fs.mkdir() method with promises in Node.js ? | 18 Jul, 2020
The fs.mkdir() method is defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of the user’s computer. The mkdir() method is used to asynchronously create a directory.
The fs.mkdir() method is based on callback. Using callback methods leads to a gr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jul, 2020"
},
{
"code": null,
"e": 255,
"s": 28,
"text": "The fs.mkdir() method is defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of the user’s computer. The mkdir() m... |
Open computer drives like C, D or E using Python | 29 Dec, 2020
Have you ever wondered that you can open your drives by just typing C, D or E and then that drives are open.This can be possible by using Python. So, for performing this task this we are using os.startfile() method of OS library. This Method start a file with its associated program.
Syntax: os.startfile(fi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Dec, 2020"
},
{
"code": null,
"e": 312,
"s": 28,
"text": "Have you ever wondered that you can open your drives by just typing C, D or E and then that drives are open.This can be possible by using Python. So, for performing this task ... |
Compressing and Decompressing files using GZIP Format in java | 02 Jun, 2017
The java.util.zip package provides classes compress and decompress the file contents. FileInputStream, FileOutputStream and GZIPOutputStream classes are provided in Java to compress and decompress the files.
Compressing a File using GZIPOutputStream
Methods used in the program
read(): Reads a byte of data.... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Jun, 2017"
},
{
"code": null,
"e": 236,
"s": 28,
"text": "The java.util.zip package provides classes compress and decompress the file contents. FileInputStream, FileOutputStream and GZIPOutputStream classes are provided in Java to co... |
Python | Pandas Series.append() | 27 Feb, 2019
Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
Pandas Series.append() function is used to concate... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Feb, 2019"
},
{
"code": null,
"e": 285,
"s": 28,
"text": "Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based index... |
TreeSet iterator() Method in Java | 26 Nov, 2018
The Java.util.TreeSet.iterator() method is used to return an iterator of the same elements as that of the TreeSet. The elements are returned in random order from what was present in the Tree set.
Syntax:
Iterator iterate_value = Tree_Set.iterator();
Parameters: The function does not take any parameter.
Re... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n26 Nov, 2018"
},
{
"code": null,
"e": 248,
"s": 52,
"text": "The Java.util.TreeSet.iterator() method is used to return an iterator of the same elements as that of the TreeSet. The elements are returned in random order from what was pre... |
Python | How to get unique elements in nested tuple | 21 Nov, 2019
Sometimes, while working with tuples, we can have a problem in which we have nested tuples and we need to extract elements that occur singly, i.e are elementary. This kind of problem can have applications in many domains. Let’s discuss certain ways in which this problem can be solved.
Method #1 : Using nes... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Nov, 2019"
},
{
"code": null,
"e": 314,
"s": 28,
"text": "Sometimes, while working with tuples, we can have a problem in which we have nested tuples and we need to extract elements that occur singly, i.e are elementary. This kind of ... |
Shell Script to Count Lines and Words in a File | 18 May, 2021
Linux provides users a great cool feature of the command-line tool along with a graphical user interface where they can perform tasks via ruining command. All of this command returns a status according to their execution. Its execution value can be used for showing errors or take some other action in a she... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n18 May, 2021"
},
{
"code": null,
"e": 372,
"s": 53,
"text": "Linux provides users a great cool feature of the command-line tool along with a graphical user interface where they can perform tasks via ruining command. All of this command... |
rm - Unix, Linux Command | rm - remove files or directories
rm [OPTION]... FILE...
rm removes each specified file. By default, it does not remove directories.
If the -I or --interactive=once option is given, and there are more than three files or the -r, -R, or --recursive are given, then rm prompts the user for whether to proceed with the entir... | [
{
"code": null,
"e": 10744,
"s": 10711,
"text": "rm - remove files or directories"
},
{
"code": null,
"e": 10767,
"s": 10744,
"text": "rm [OPTION]... FILE..."
},
{
"code": null,
"e": 10843,
"s": 10767,
"text": "rm removes each specified file. By default, it do... |
numpy.sin() in Python | 04 Jul, 2021
numpy.sin(x[, out]) = ufunc ‘sin’) : This mathematical function helps user to calculate trigonometric sine for all x(being the array elements). Parameters :
array : [array_like]elements are in radians.
2pi Radians = 36o degrees
Return :
An array with trigonometric sine of
x for all x i.e. array e... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n04 Jul, 2021"
},
{
"code": null,
"e": 211,
"s": 52,
"text": "numpy.sin(x[, out]) = ufunc ‘sin’) : This mathematical function helps user to calculate trigonometric sine for all x(being the array elements). Parameters : "
},
{
"... |
Intermediate Coding Problems in Python | 17 Dec, 2021
Python, being a very dynamic and versatile programming language, is used in almost every field. From software development to machine learning, it covers them all. This article will focus on some interesting coding problems which can be used to sharpen our skills a bit more and at the same time, have fun so... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 571,
"s": 54,
"text": "Python, being a very dynamic and versatile programming language, is used in almost every field. From software development to machine learning, it covers them all. This articl... |
Print * in place of characters for reading passwords in C | 20 Sep, 2018
While writing a C program, if you want to type password and it should not be visible on screen or an * symbol is to be printed.
Examples:
Input : abcdefg
Output : *******
Note : Below solution uses getch() which may not work on all compilers as this is a non-standard function.
// C program to print * // i... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n20 Sep, 2018"
},
{
"code": null,
"e": 180,
"s": 52,
"text": "While writing a C program, if you want to type password and it should not be visible on screen or an * symbol is to be printed."
},
{
"code": null,
"e": 190,
... |
Python Program for BogoSort or Permutation Sort | In this article, we will learn about the solution to the problem statement given below.
Problem statement − We are given an array, we need to sort it using the concept of permutation sort.
BogoSort also is known as permutation sort, is based on generating and testing paradigms.
Now let’s observe the solution in the imp... | [
{
"code": null,
"e": 1150,
"s": 1062,
"text": "In this article, we will learn about the solution to the problem statement given below."
},
{
"code": null,
"e": 1251,
"s": 1150,
"text": "Problem statement − We are given an array, we need to sort it using the concept of permutation... |
Scala - Quick Guide | Scala, short for Scalable Language, is a hybrid functional programming language. It was created by Martin Odersky. Scala smoothly integrates the features of object-oriented and functional languages. Scala is compiled to run on the Java Virtual Machine. Many existing companies, who depend on Java for business critical a... | [
{
"code": null,
"e": 2443,
"s": 1998,
"text": "Scala, short for Scalable Language, is a hybrid functional programming language. It was created by Martin Odersky. Scala smoothly integrates the features of object-oriented and functional languages. Scala is compiled to run on the Java Virtual Machine. ... |
Modernize Your Sinful Python Code with Beautiful Type Hints | by Eirik Berge | Towards Data Science | Setting the StageUnderstanding Dynamic Types and Static TypesPython Type Hints for VariablesChecking Type Hints with MypyPython Type Hints for FunctionsHow to Add Lists as Type HintsFive Awesome Type Hints to Power Up Your CodeWhy All The Cool Kids Use Python 3.9+Wrapping Up and Further Resources
Setting the Stage
Unde... | [
{
"code": null,
"e": 470,
"s": 172,
"text": "Setting the StageUnderstanding Dynamic Types and Static TypesPython Type Hints for VariablesChecking Type Hints with MypyPython Type Hints for FunctionsHow to Add Lists as Type HintsFive Awesome Type Hints to Power Up Your CodeWhy All The Cool Kids Use Py... |
HTML <del> Tag - GeeksforGeeks | 17 Mar, 2022
The <del> tag in HTML stands for delete and is used to mark a portion of text which has been deleted from the document. The deleted text is rendered as strike-through text by the web browsers although this property can be changed using CSS text-decoration property. The <del> tag requires a starting and end... | [
{
"code": null,
"e": 22720,
"s": 22692,
"text": "\n17 Mar, 2022"
},
{
"code": null,
"e": 23036,
"s": 22720,
"text": "The <del> tag in HTML stands for delete and is used to mark a portion of text which has been deleted from the document. The deleted text is rendered as strike-thro... |
Concurrency in Python - Multiprocessing | In this chapter, we will focus more on the comparison between multiprocessing and multithreading.
It is the use of two or more CPUs units within a single computer system. It is the best approach to get the full potential from our hardware by utilizing full number of CPU cores available in our computer system.
It is the... | [
{
"code": null,
"e": 2020,
"s": 1922,
"text": "In this chapter, we will focus more on the comparison between multiprocessing and multithreading."
},
{
"code": null,
"e": 2233,
"s": 2020,
"text": "It is the use of two or more CPUs units within a single computer system. It is the b... |
RxJS - Latest Updates | We are using RxJS version 6 in this tutorial. RxJS is commonly used to deal with reactive programming and used more often with Angular, ReactJS. Angular 6 loads rxjs6 by default.
RxJS version 5 was handled differently in comparison to version 6. The code will break in case you update your RxJS 5 to 6. In this chapter, ... | [
{
"code": null,
"e": 2003,
"s": 1824,
"text": "We are using RxJS version 6 in this tutorial. RxJS is commonly used to deal with reactive programming and used more often with Angular, ReactJS. Angular 6 loads rxjs6 by default."
},
{
"code": null,
"e": 2219,
"s": 2003,
"text": "RxJ... |
Roll a six-sided die 6000 times in Java | In order to roll a six sided die 6000 times in Java, we need to the nextInt() statement with decision making statements.
The nextInt() method returns the next random integer value from this random number generator sequence.
Declaration − The java.util.Random.nextInt() method is declared as follows −
public int nextInt(... | [
{
"code": null,
"e": 1183,
"s": 1062,
"text": "In order to roll a six sided die 6000 times in Java, we need to the nextInt() statement with decision making statements."
},
{
"code": null,
"e": 1286,
"s": 1183,
"text": "The nextInt() method returns the next random integer value fr... |
Computing Node Embedding with a Graph Database: Neo4j & its Graph Data Science Library | by Estelle Scifo | Towards Data Science | Machine Learning these days is all about vectors. Performing a classification task requires that your data is well-arranged into rows (observations), each one containing the same amount of features (columns). While this is easy to obtain from data originally stored in an Excel sheet or in SQL or noSQL databases, the tr... | [
{
"code": null,
"e": 600,
"s": 172,
"text": "Machine Learning these days is all about vectors. Performing a classification task requires that your data is well-arranged into rows (observations), each one containing the same amount of features (columns). While this is easy to obtain from data origina... |
11 Pandas Built-in Functions You Should Know | by Roman Orac | Towards Data Science | I’ve been using pandas for a few years and each time I feel I am typing too much, I google the operation and I usually find a shorter way of doing it — a new pandas trick!
I learned about these functions recently and I deem them essential because of ease of use.
By reading this article, you’ll learn:
How to retrieve a ... | [
{
"code": null,
"e": 344,
"s": 172,
"text": "I’ve been using pandas for a few years and each time I feel I am typing too much, I google the operation and I usually find a shorter way of doing it — a new pandas trick!"
},
{
"code": null,
"e": 435,
"s": 344,
"text": "I learned abou... |
Python | Check if two lists have at-least one element common | 21 Nov, 2018
Given two lists a, b. Check if two lists have at least one element common in them.
Examples:
Input : a = [1, 2, 3, 4, 5]
b = [5, 6, 7, 8, 9]
Output : True
Input : a=[1, 2, 3, 4, 5]
b=[6, 7, 8, 9]
Output : False
Method 1 : Traversal of List
Using traversal in two lists, we can check if the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Nov, 2018"
},
{
"code": null,
"e": 111,
"s": 28,
"text": "Given two lists a, b. Check if two lists have at least one element common in them."
},
{
"code": null,
"e": 121,
"s": 111,
"text": "Examples:"
},
{
... |
R – Line Graphs | 09 Dec, 2021
A line graph is a chart that is used to display information in the form of a series of data points. It utilizes points and lines to represent change over time. Line graphs are drawn by plotting different points on their X coordinates and Y coordinates, then by joining them together through a line from begi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n09 Dec, 2021"
},
{
"code": null,
"e": 446,
"s": 28,
"text": "A line graph is a chart that is used to display information in the form of a series of data points. It utilizes points and lines to represent change over time. Line graphs are... |
C++ Program to swap two members using Friend Function | 07 Jul, 2022
Pre-requisite: Friend FunctionCASE 1: Given two numbers a & b, swap these two numbers using the friend function of C++.
Examples:
Input : a = 5, b = 9
Output : a = 9, b = 5
Input : a = 4, b = 6
Output : a= 6, b = 4
Approach: Create a class Swap, declare three variables in it, i.e., a, b, and temp and cr... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 174,
"s": 53,
"text": "Pre-requisite: Friend FunctionCASE 1: Given two numbers a & b, swap these two numbers using the friend function of C++. "
},
{
"code": null,
"e": 185,
"s": 17... |
Python Dictionary clear() | 13 Jan, 2018
The clear() method removes all items from the dictionary.
Syntax:
dict.clear()
Parameters:
The clear() method doesn't take any parameters.
Returns:
The clear() method doesn't return any value.
Examples:
Input : d = {1: "geeks", 2: "for"}
d.clear()
Output : d = {}
Error:
As we are not passing an... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n13 Jan, 2018"
},
{
"code": null,
"e": 110,
"s": 52,
"text": "The clear() method removes all items from the dictionary."
},
{
"code": null,
"e": 118,
"s": 110,
"text": "Syntax:"
},
{
"code": null,
"e": 13... |
random.seed( ) in Python | 16 May, 2020
random() function 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.
random() function generates numbers for some values. This value is also called seed value.
How Se... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n16 May, 2020"
},
{
"code": null,
"e": 262,
"s": 52,
"text": "random() function 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 g... |
Subtract String Lists in Python | 04 Oct, 2021
Sometimes, while working with lists, we can have a problem in which we need to remove one list elements from other, i.e perform subtraction. This has application across many domains. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using loop + remove() The combination of above f... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Oct, 2021"
},
{
"code": null,
"e": 275,
"s": 28,
"text": "Sometimes, while working with lists, we can have a problem in which we need to remove one list elements from other, i.e perform subtraction. This has application across many d... |
How to Install Statsmodels in Python? | 16 Dec, 2021
Statsmodels is a popular library in Python that enables us to estimate and analyze various statistical models. It is built on numeric and scientific libraries like NumPy and SciPy. It is a python module that provides classes & functions for the estimation of many different statistical models.
In this artic... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n16 Dec, 2021"
},
{
"code": null,
"e": 322,
"s": 28,
"text": "Statsmodels is a popular library in Python that enables us to estimate and analyze various statistical models. It is built on numeric and scientific libraries like NumPy and S... |
Use image as a button in kivy | 29 Jun, 2022
Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications. As we have discussed earlier that how to work with images and now in th... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Jun, 2022"
},
{
"code": null,
"e": 535,
"s": 28,
"text": "Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it doe... |
Matplotlib.figure.Figure() in Python | 30 Apr, 2020
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elemen... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n30 Apr, 2020"
},
{
"code": null,
"e": 339,
"s": 28,
"text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains a... |
Linux Error Redirection | 02 Dec, 2020
Redirection is a feature in Linux which can be used to change the standard input device (keyboard) or standard output device (screen) during the execution of a command. The basic process of any Linux command is that it takes an input and gives output but the standard/input and output can be changed using t... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n02 Dec, 2020"
},
{
"code": null,
"e": 361,
"s": 28,
"text": "Redirection is a feature in Linux which can be used to change the standard input device (keyboard) or standard output device (screen) during the execution of a command. The ba... |
Sum of first n odd numbers in O(1) Complexity | 24 May, 2021
Given the sequence of odd numbers 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, .... Find the sum of first n odd numbersExamples:
Input : n = 2
Output : 4
Sum of first two odd numbers is 1 + 3 = 4.
Input : 5
Output : 25
Sum of first 5 odd numbers is 1 + 3 + 5 +
7 + 9 = 25
A simple solution is to iterate ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n24 May, 2021"
},
{
"code": null,
"e": 181,
"s": 52,
"text": "Given the sequence of odd numbers 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, .... Find the sum of first n odd numbersExamples: "
},
{
"code": null,
"e": 325,
... |
Isoformat() Method Of Datetime Class In Python | 15 Oct, 2021
In this example, we will learn How to get date values in ISO 8601 format using Python. The Isoformat() function is used to return a string of date, time, and UTC offset to the corresponding time zone in ISO 8601 format.
The standard ISO 8601 format is all about date formats for the Gregorian calendar. This... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n15 Oct, 2021"
},
{
"code": null,
"e": 248,
"s": 28,
"text": "In this example, we will learn How to get date values in ISO 8601 format using Python. The Isoformat() function is used to return a string of date, time, and UTC offset to the... |
How to remove options from select element using jQuery ? | 21 Jun, 2019
The task is to remove the option elements from the select element using jQuery.
Approach:
Select the option from select which needs to remove.
Use JQuery remove() method to remove the option from the HTML document.
Example 1: This example removes the option of which val = ‘val_1’ using remove() method.
<!D... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n21 Jun, 2019"
},
{
"code": null,
"e": 108,
"s": 28,
"text": "The task is to remove the option elements from the select element using jQuery."
},
{
"code": null,
"e": 118,
"s": 108,
"text": "Approach:"
},
{
"c... |
Create a Music Website Template using HTML, CSS & JavaScript | 23 Aug, 2021
A music website is basically a webpage where one can play/pause music. It has other options like the home section, music section, about section, contact section, etc. In this project, we are going to make a website that will play/pause music using HTML, CSS, and JavaScript. We will use HTML to give a basic... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n23 Aug, 2021"
},
{
"code": null,
"e": 569,
"s": 53,
"text": "A music website is basically a webpage where one can play/pause music. It has other options like the home section, music section, about section, contact section, etc. In this... |
Python | Message Encode-Decode using Tkinter | 06 Jul, 2021
Prerequisite : Basics of TkinterPython offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter outputs the fastest and easiest wa... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 762,
"s": 52,
"text": "Prerequisite : Basics of TkinterPython offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is most commonly used method... |
Difference between Actual and Formal Parameters in PL/SQL | 23 Nov, 2020
A parameter is an optional list of parameters that you define both pass information into the procedure and send information out of procedure back to the calling program. Parameter is also known as argument. When you define a parameter, you also specify the way in which it can be used. There are three diffe... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n23 Nov, 2020"
},
{
"code": null,
"e": 398,
"s": 54,
"text": "A parameter is an optional list of parameters that you define both pass information into the procedure and send information out of procedure back to the calling program. Para... |
Instant truncatedTo() method in Java with Examples | 29 Nov, 2018
The truncatedTo() method of an Instant class is used to get the value of this Instant in the specified unit. This method takes a parameter Unit, which is the Unit in which this Instant is to be truncated to. It returns a truncated immutable Instant with the value in the specified unit.
Syntax:
public Insta... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Nov, 2018"
},
{
"code": null,
"e": 315,
"s": 28,
"text": "The truncatedTo() method of an Instant class is used to get the value of this Instant in the specified unit. This method takes a parameter Unit, which is the Unit in which thi... |
Number of Reflexive Relations on a Set | Difficulty Level :
Easy
Given a number n, find out number of Reflexive Relation on a set of first n natural numbers {1, 2, ..n}.Examples :
Input : n = 2
Output : 4
The given set A = {1, 2}. The following
are reflexive relations on A * A :
{{1, 1), (2, 2)}
{(1, 1), (2, 2), (1, 2)}
{(1, 1), (2, 2), (1, 2), (2, 1)}
{(1... | [
{
"code": null,
"e": 24,
"s": 0,
"text": "Difficulty Level :\nEasy"
},
{
"code": null,
"e": 141,
"s": 24,
"text": "Given a number n, find out number of Reflexive Relation on a set of first n natural numbers {1, 2, ..n}.Examples : "
},
{
"code": null,
"e": 442,
"s... |
SQL Query to Display the Length and First 3 Characters of Ename Column in Emp Table | 10 Oct, 2021
To display the length and first three characters of a string, string functions come in handy to do these in SQL. In this article let us see how to display the length and first 3 characters of the Ename column in the Emp table using MSSQL as the server.
To find the length of a string we use the LEN( ) funct... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n10 Oct, 2021"
},
{
"code": null,
"e": 281,
"s": 28,
"text": "To display the length and first three characters of a string, string functions come in handy to do these in SQL. In this article let us see how to display the length and first... |
Detecting Multicollinearity with VIF - Python - GeeksforGeeks | 29 Aug, 2020
Multicollinearity occurs when there are two or more independent variables in a multiple regression model, which have a high correlation among themselves. When some features are highly correlated, we might have difficulty in distinguishing between their individual effects on the dependent variable. Multicol... | [
{
"code": null,
"e": 23889,
"s": 23861,
"text": "\n29 Aug, 2020"
},
{
"code": null,
"e": 24309,
"s": 23889,
"text": "Multicollinearity occurs when there are two or more independent variables in a multiple regression model, which have a high correlation among themselves. When some... |
Count of AP (Arithmetic Progression) Subsequences in an array in C++ | Given an array arr[] containing integer elements. The goal is to count the number of Arithmetic Progression subsequences inside arr[]. The range of elements inside arr[] are [1,1000000].
Empty sequence or single element will also be counted.
For Example
Input - arr[] = {1,2,3}
Output - Count of AP (Arithmetic Progressi... | [
{
"code": null,
"e": 1249,
"s": 1062,
"text": "Given an array arr[] containing integer elements. The goal is to count the number of Arithmetic Progression subsequences inside arr[]. The range of elements inside arr[] are [1,1000000]."
},
{
"code": null,
"e": 1304,
"s": 1249,
"tex... |
Configure XGBoost Models with YAML | by Cole Brendel | Towards Data Science | How to use YAML files to make your models rapidly sharable, wickedly flexible, and to prepare them for production
There is nothing more enjoyable than starting work on a new ML project. First, you get your hands dirty with some data cleaning, then you get to load that squeaky-clean data into a pandas df to start some e... | [
{
"code": null,
"e": 286,
"s": 172,
"text": "How to use YAML files to make your models rapidly sharable, wickedly flexible, and to prepare them for production"
},
{
"code": null,
"e": 733,
"s": 286,
"text": "There is nothing more enjoyable than starting work on a new ML project. ... |
Getting the name of the Enumeration Constant having Specified value in C# - GeeksforGeeks | 23 Jul, 2019
Enum.GetName(Type, Object) Method is used to get the name of the constant in the specified enumeration that has the specified value.
Syntax:
public static string GetName (Type enumType, object value);
Parameters:
enumType: It is an enumeration type.
value: It is the value of a particular enumerated constan... | [
{
"code": null,
"e": 24222,
"s": 24194,
"text": "\n23 Jul, 2019"
},
{
"code": null,
"e": 24355,
"s": 24222,
"text": "Enum.GetName(Type, Object) Method is used to get the name of the constant in the specified enumeration that has the specified value."
},
{
"code": null,
... |
How to add title to regression model using stargazer in R? | To add title to regression model using stargazer, we can use title argument inside stargazer function.
For example, if we have a model called Reg_Model with Output as text then the title to this model using stargazer can be added by using the below mentioned command −
stargazer(Reg_Model,type="text",title="Regression M... | [
{
"code": null,
"e": 1165,
"s": 1062,
"text": "To add title to regression model using stargazer, we can use title argument inside stargazer function."
},
{
"code": null,
"e": 1331,
"s": 1165,
"text": "For example, if we have a model called Reg_Model with Output as text then the t... |
Python Program to Read a Number n And Print the Series "1+2+.....+n= " | When it is required to display the sum all the natural numbers within a given range, a method can be defined that uses a loop to iterate over the elements, and returns the sum of these numbers as output.
Below is a demonstration of the same −
Live Demo
def sum_natural_nums(val):
my_sum = 0
for i in range(1, val ... | [
{
"code": null,
"e": 1266,
"s": 1062,
"text": "When it is required to display the sum all the natural numbers within a given range, a method can be defined that uses a loop to iterate over the elements, and returns the sum of these numbers as output."
},
{
"code": null,
"e": 1305,
"s... |
How does $('iframe').ready() method work in jQuery? | Here’s an example wherein the iframe size is larger than the page. We will scroll to the top of the page whenever the iframe loads using jQuery −
Live Demo
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(func... | [
{
"code": null,
"e": 1208,
"s": 1062,
"text": "Here’s an example wherein the iframe size is larger than the page. We will scroll to the top of the page whenever the iframe loads using jQuery −"
},
{
"code": null,
"e": 1218,
"s": 1208,
"text": "Live Demo"
},
{
"code": null... |
Using Genetic Algorithms to Build Trading Strategies | by Victor Sim | 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.
Genetic algorithms a... | [
{
"code": null,
"e": 471,
"s": 171,
"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... |
Reconstruct the array by replacing arr[i] with (arr[i-1]+1) % M - GeeksforGeeks | 25 Aug, 2021
Given an array of N elements and an integer M. Now, the array is modified by replacing some of the array elements with -1. The task is to print the original array.The elements in the original array are related as, for every index i, a[i] = (a[i-1]+1)% M.It is guaranteed that there is one non-zero value in ... | [
{
"code": null,
"e": 24862,
"s": 24834,
"text": "\n25 Aug, 2021"
},
{
"code": null,
"e": 25180,
"s": 24862,
"text": "Given an array of N elements and an integer M. Now, the array is modified by replacing some of the array elements with -1. The task is to print the original array.... |
10 Netstat Command Examples on Linux | Netstat is a command line utility that can be utilized to list out all the network (socket) connections on a method comparable to network connections, routing tables, interface records, masquerade connections, multicast memberships etc. This article explains about – Top 10 Netstat Command Examples on Linux.
To show abo... | [
{
"code": null,
"e": 1371,
"s": 1062,
"text": "Netstat is a command line utility that can be utilized to list out all the network (socket) connections on a method comparable to network connections, routing tables, interface records, masquerade connections, multicast memberships etc. This article exp... |
React JSX | JSX stands for JavaScript XML.
JSX allows us to write HTML in React.
JSX makes it easier to write and add HTML in React.
JSX allows us to write HTML elements in JavaScript and place them in the DOM
without any createElement() and/or
appendChild() methods.
JSX converts HTML tags into react elements.
You are not requir... | [
{
"code": null,
"e": 31,
"s": 0,
"text": "JSX stands for JavaScript XML."
},
{
"code": null,
"e": 69,
"s": 31,
"text": "JSX allows us to write HTML in React."
},
{
"code": null,
"e": 121,
"s": 69,
"text": "JSX makes it easier to write and add HTML in React."
... |
Encrypt and Decrypt Files using Python — Python Programming | by Misha Sv | Towards Data Science | Table of Contents
Introduction
Creating a key
Loading a key
Encrypting a file
Decrypting a file
Complete Object-Oriented Programming Example
Conclusion
Today we observe data from all different sources, and ultimately the challenge becomes its security and privacy. That involves not only major datasets held by businesse... | [
{
"code": null,
"e": 189,
"s": 171,
"text": "Table of Contents"
},
{
"code": null,
"e": 202,
"s": 189,
"text": "Introduction"
},
{
"code": null,
"e": 217,
"s": 202,
"text": "Creating a key"
},
{
"code": null,
"e": 231,
"s": 217,
"text": "Lo... |
A Boolean Matrix Question - GeeksforGeeks | 25 Feb, 2022
Given a boolean matrix mat[M][N] of size M X N, modify it such that if a matrix cell mat[i][j] is 1 (or true) then make all the cells of ith row and jth column as 1.
Example 1
The matrix
1 0
0 0
should be changed to following
1 1
1 0
Example 2
The matrix
0 0 0
0 0 1
should be changed to following
0 0 1
... | [
{
"code": null,
"e": 24589,
"s": 24561,
"text": "\n25 Feb, 2022"
},
{
"code": null,
"e": 24757,
"s": 24589,
"text": "Given a boolean matrix mat[M][N] of size M X N, modify it such that if a matrix cell mat[i][j] is 1 (or true) then make all the cells of ith row and jth column as ... |
Working With Browsers Using Selenium Library | In this chapter, we will learn how to work with browsers using Robot Framework and Selenium Library in ride.
Project setup in Ride
Import Selenium Library
Test case using Chrome Browser
Test case using Firefox Browser
We will first create a project in Ride to work with browsers. Open ride using ride.py from the command... | [
{
"code": null,
"e": 2278,
"s": 2169,
"text": "In this chapter, we will learn how to work with browsers using Robot Framework and Selenium Library in ride."
},
{
"code": null,
"e": 2300,
"s": 2278,
"text": "Project setup in Ride"
},
{
"code": null,
"e": 2324,
"s":... |
Real-Time Object detection API using Tensorflow and OpenCV | by Daniel Ajisafe | Towards Data Science | The amount of visual data in the world today has grown exponentially in the last couple of years and this is largely due to lots of sensors everywhere. Building machine learning models that are capable of localizing and identifying obejcts in a single image remains a core challenge in computer vision. Working to solve ... | [
{
"code": null,
"e": 545,
"s": 172,
"text": "The amount of visual data in the world today has grown exponentially in the last couple of years and this is largely due to lots of sensors everywhere. Building machine learning models that are capable of localizing and identifying obejcts in a single ima... |
Different Ways For Integer to String Conversions in Java - GeeksforGeeks | 24 Apr, 2022
To convert integer to string in Java, we have some inbuilt methods and classes.
Using toString() method of Integer classUsing valueOf() method of String classUsing Integer(int).toString() method of Integer classUsing DecimalFormat ClassUsing StringBuffer classusing StringBuilder class Using special radix ... | [
{
"code": null,
"e": 24334,
"s": 24306,
"text": "\n24 Apr, 2022"
},
{
"code": null,
"e": 24415,
"s": 24334,
"text": "To convert integer to string in Java, we have some inbuilt methods and classes. "
},
{
"code": null,
"e": 24700,
"s": 24415,
"text": "Using toS... |
Modulus of a Complex Number - GeeksforGeeks | 15 Apr, 2020
Given a complex number z, the task is to determine the modulus of this complex number.
Note: Given a complex number z = a + ib the modulus is denoted by |z| and is defined as
Examples:
Input: z = 3 + 4iOutput: 5|z| = (32 + 42)1/2 = (9 + 16)1/2 = 5
Input: z = 6 – 8iOutput: 10Explanation:|z| = (62 + (-8)2)1... | [
{
"code": null,
"e": 26671,
"s": 26643,
"text": "\n15 Apr, 2020"
},
{
"code": null,
"e": 26758,
"s": 26671,
"text": "Given a complex number z, the task is to determine the modulus of this complex number."
},
{
"code": null,
"e": 26847,
"s": 26758,
"text": "Not... |
How to find Gradient of a Function using Python? - GeeksforGeeks | 28 Jul, 2020
The gradient of a function simply means the rate of change of a function. We will use numdifftools to find Gradient of a function.
Examples:
Input : x^4+x+1
Output :Gradient of x^4+x+1 at x=1 is 4.99
Input :(1-x)^2+(y-x^2)^2
Output :Gradient of (1-x^2)+(y-x^2)^2 at (1, 2) is [-4. 2.]
Approach:
For Si... | [
{
"code": null,
"e": 25915,
"s": 25887,
"text": "\n28 Jul, 2020"
},
{
"code": null,
"e": 26046,
"s": 25915,
"text": "The gradient of a function simply means the rate of change of a function. We will use numdifftools to find Gradient of a function."
},
{
"code": null,
... |
How to play videos in Android from assets folder or raw folder? | This example demonstrates how do I play videos in Android from the assets folder or raw folder 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"... | [
{
"code": null,
"e": 1169,
"s": 1062,
"text": "This example demonstrates how do I play videos in Android from the assets folder or raw folder in android."
},
{
"code": null,
"e": 1298,
"s": 1169,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project a... |
Largest number with given sum | Practice | GeeksforGeeks | Geek lost the password of his super locker. He remembers the number of digits N as well as the sum S of all the digits of his password. He know that his password is the largest number of N digits that can be made with given sum S. As he is busy doing his homework, help him retrieving his password.
Example 1:
Input:
N =... | [
{
"code": null,
"e": 537,
"s": 238,
"text": "Geek lost the password of his super locker. He remembers the number of digits N as well as the sum S of all the digits of his password. He know that his password is the largest number of N digits that can be made with given sum S. As he is busy doing his ... |
Integer Promotions in C - GeeksforGeeks | 28 May, 2017
Some data types like char , short int take less number of bytes than int, these data types are automatically promoted to int or unsigned int when an operation is performed on them. This is called integer promotion. For example no arithmetic calculation happens on smaller types like char, short and enum. Th... | [
{
"code": null,
"e": 24155,
"s": 24127,
"text": "\n28 May, 2017"
},
{
"code": null,
"e": 24685,
"s": 24155,
"text": "Some data types like char , short int take less number of bytes than int, these data types are automatically promoted to int or unsigned int when an operation is p... |
Get global variable dynamically by name string in JavaScript? | Display in alert by using alert(window()). Following is the syntax −
alert(window['yourVariableName' + 'yourVariableName' + otherVariableName]);
Live Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link ... | [
{
"code": null,
"e": 1131,
"s": 1062,
"text": "Display in alert by using alert(window()). Following is the syntax −"
},
{
"code": null,
"e": 1207,
"s": 1131,
"text": "alert(window['yourVariableName' + 'yourVariableName' + otherVariableName]);"
},
{
"code": null,
"e": ... |
C++ Program to Check Prime Number By Creating a Function | A prime number is a whole number that is greater than one and the only factors of a prime number should be one and itself.
Some of the first prime numbers are −
2, 3, 5, 7, 11, 13 ,17
A program to check if a number is prime or not using a function is as follows.
Live Demo
#include <iostream>
using namespace std;
void ... | [
{
"code": null,
"e": 1185,
"s": 1062,
"text": "A prime number is a whole number that is greater than one and the only factors of a prime number should be one and itself."
},
{
"code": null,
"e": 1223,
"s": 1185,
"text": "Some of the first prime numbers are −"
},
{
"code":... |
PyQt - Hello World | Creating a simple GUI application using PyQt involves the following steps −
Import QtGui module.
Import QtGui module.
Create an application object.
Create an application object.
A QWidget object creates top level window. Add QLabel object in it.
A QWidget object creates top level window. Add QLabel object in it.
Set th... | [
{
"code": null,
"e": 2002,
"s": 1926,
"text": "Creating a simple GUI application using PyQt involves the following steps −"
},
{
"code": null,
"e": 2023,
"s": 2002,
"text": "Import QtGui module."
},
{
"code": null,
"e": 2044,
"s": 2023,
"text": "Import QtGui m... |
How to convert 3-digit color code to 6-digit color code using JavaScript ? - GeeksforGeeks | 12 Mar, 2021
In this article, we are converting a three-digit color HEX code into a six-digit color HEX code using JavaScript. To solve this problem, first we copy of the individual digits and paster at consecutive position. For example – #34E will be converted into #3344EE and #E90 will be converted into #EE9900.
Step... | [
{
"code": null,
"e": 25220,
"s": 25192,
"text": "\n12 Mar, 2021"
},
{
"code": null,
"e": 25523,
"s": 25220,
"text": "In this article, we are converting a three-digit color HEX code into a six-digit color HEX code using JavaScript. To solve this problem, first we copy of the indiv... |
Difference between strong and bold tag in HTML - GeeksforGeeks | 03 Dec, 2020
HTML strong tag: The strong tag is one of the element of HTML used in formatting HTML texts. It is used to show importance of the text by making it bold or highlighting it semantically.
Syntax:
<strong> Contents... </strong>
HTML bold tag: The bold tag or <b> is also one of the formatting elements of HTML.... | [
{
"code": null,
"e": 24174,
"s": 24146,
"text": "\n03 Dec, 2020"
},
{
"code": null,
"e": 24360,
"s": 24174,
"text": "HTML strong tag: The strong tag is one of the element of HTML used in formatting HTML texts. It is used to show importance of the text by making it bold or highlig... |
IN vs EXISTS in SQL - GeeksforGeeks | 15 May, 2021
SQL stands for Structured Query Language. It is used for storing data in databases, modifying or manipulating data in databases and retrieving data from databases. We can say that SQL manages data in a relational database management system (RDBMS).
The instructions that are used to communicate with a datab... | [
{
"code": null,
"e": 25513,
"s": 25485,
"text": "\n15 May, 2021"
},
{
"code": null,
"e": 25762,
"s": 25513,
"text": "SQL stands for Structured Query Language. It is used for storing data in databases, modifying or manipulating data in databases and retrieving data from databases.... |
Create Multiple frames with Grid manager using Tkinter - GeeksforGeeks | 16 Mar, 2021
Prerequisites: Tkinter
Tkinter can support the creation of more than one widget in the same frame. Not just this it also supports a mechanism to align them relative to each other. One of the easiest ways of aligning the different widgets in the Tkinter is through grid manager. Apart from aligning various w... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n16 Mar, 2021"
},
{
"code": null,
"e": 25560,
"s": 25537,
"text": "Prerequisites: Tkinter"
},
{
"code": null,
"e": 25921,
"s": 25560,
"text": "Tkinter can support the creation of more than one widget in the sam... |
Java Program to Print Smallest and Biggest Possible Palindrome Word in a Given String - GeeksforGeeks | 04 Dec, 2020
A Palindrome String is a string whose reversed string is equal to the original string. In this Java Program, we are going to see the approach of printing the smallest and biggest palindrome word in a String.
Given a sentence of words in the form of a string, and we need to print the smallest and longest pa... | [
{
"code": null,
"e": 25673,
"s": 25645,
"text": "\n04 Dec, 2020"
},
{
"code": null,
"e": 25881,
"s": 25673,
"text": "A Palindrome String is a string whose reversed string is equal to the original string. In this Java Program, we are going to see the approach of printing the small... |
Python - Convert String to Nested Dictionaries - GeeksforGeeks | 14 May, 2020
Sometimes, while working with dictionaries, we can have a problem in which we need to convert a String to nested dictionary, each separator occurrence meaning a new nesting. This is a particular problem but can occur in data domains and day-day programming. Let’s discuss certain way in which this task can ... | [
{
"code": null,
"e": 25627,
"s": 25599,
"text": "\n14 May, 2020"
},
{
"code": null,
"e": 25943,
"s": 25627,
"text": "Sometimes, while working with dictionaries, we can have a problem in which we need to convert a String to nested dictionary, each separator occurrence meaning a ne... |
Compute the integer absolute value (abs) without branching - GeeksforGeeks | 24 Mar, 2022
We need not to do anything if a number is positive. We want to change only negative numbers. Since negative numbers are stored in 2’s complement form, to get the absolute value of a negative number we have to toggle bits of the number and add 1 to the result.For example -2 in a 8 bit system is stored as fo... | [
{
"code": null,
"e": 26159,
"s": 26131,
"text": "\n24 Mar, 2022"
},
{
"code": null,
"e": 26905,
"s": 26159,
"text": "We need not to do anything if a number is positive. We want to change only negative numbers. Since negative numbers are stored in 2’s complement form, to get the a... |
Suffix Array | Set 2 (nLogn Algorithm) - GeeksforGeeks | 21 Apr, 2022
Given a string, the task is to construct a suffix array for the given string.
A suffix array is a sorted array of all suffixes of a given string. The definition is similar to Suffix Tree which is compressed trie of all suffixes of the given text.
Examples:
Input: str = “banana”Output: {5, 3, 1, 0, 4, 2}Exp... | [
{
"code": null,
"e": 26035,
"s": 26007,
"text": "\n21 Apr, 2022"
},
{
"code": null,
"e": 26113,
"s": 26035,
"text": "Given a string, the task is to construct a suffix array for the given string."
},
{
"code": null,
"e": 26282,
"s": 26113,
"text": "A suffix arr... |
Print matrix in antispiral form - GeeksforGeeks | 22 Apr, 2021
Given a 2D array, the task is to print matrix in anti spiral form:Examples:
Output: 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Input : arr[][4] = {1, 2, 3, 4
5, 6, 7, 8
9, 10, 11, 12
13, 14, 15, 16};
Output : 10 11 7 6 5 9 13 14 15 16 12 8 4 3 2 1
... | [
{
"code": null,
"e": 26165,
"s": 26137,
"text": "\n22 Apr, 2021"
},
{
"code": null,
"e": 26243,
"s": 26165,
"text": "Given a 2D array, the task is to print matrix in anti spiral form:Examples: "
},
{
"code": null,
"e": 26291,
"s": 26243,
"text": "Output: 16 1... |
Python program to check whether a number is Prime or not - GeeksforGeeks | 10 Nov, 2021
Given a positive integer N, The task is to write a Python program to check if the number is prime or not.Definition: A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers are {2, 3, 5, 7, 11, ....}.
Examples :
Input: n = 11Out... | [
{
"code": null,
"e": 26303,
"s": 26275,
"text": "\n10 Nov, 2021"
},
{
"code": null,
"e": 26581,
"s": 26303,
"text": "Given a positive integer N, The task is to write a Python program to check if the number is prime or not.Definition: A prime number is a natural number greater tha... |
CSS | :nth-last-child() Selector - GeeksforGeeks | 07 Jan, 2019
The nth-last-child() selector in CSS is used to match elements based on their position among the group of siblings, counting from end.
Syntax:
:nth-last-child(number) {
//CSS Property
}
Where number is the argument that represents the pattern for matching elements counting from the end. It can be odd, ... | [
{
"code": null,
"e": 24897,
"s": 24869,
"text": "\n07 Jan, 2019"
},
{
"code": null,
"e": 25032,
"s": 24897,
"text": "The nth-last-child() selector in CSS is used to match elements based on their position among the group of siblings, counting from end."
},
{
"code": null,
... |
Java Program to Get System Name for Windows and Linux Machine - GeeksforGeeks | 05 Jul, 2021
We can get the System name for a Windows or Linux machine using the getHostName() method of the InetAddress class of java.net package after getting the IP address of the system using getLocalHost() method of the same class. The class InetAddress gets the IP address of any hostname. getLocalHost() method o... | [
{
"code": null,
"e": 25225,
"s": 25197,
"text": "\n05 Jul, 2021"
},
{
"code": null,
"e": 25760,
"s": 25225,
"text": "We can get the System name for a Windows or Linux machine using the getHostName() method of the InetAddress class of java.net package after getting the IP address ... |
Python Program to Check Prime Number - GeeksforGeeks | 30 Nov, 2018
Given a positive integer, check if the number is prime or not. A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself. Examples of first few prime numbers are {2, 3, 5,
Examples:
Input: n = 11
Output: true
Input: n = 15
Output: false
Input: n = 1
Output: false... | [
{
"code": null,
"e": 26279,
"s": 26251,
"text": "\n30 Nov, 2018"
},
{
"code": null,
"e": 26490,
"s": 26279,
"text": "Given a positive integer, check if the number is prime or not. A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself. Ex... |
Flex (Fast Lexical Analyzer Generator ) | 28 Jun, 2022
FLEX (fast lexical analyzer generator) is a tool/computer program for generating lexical analyzers (scanners or lexers) written by Vern Paxson in C around 1987. It is used together with Berkeley Yacc parser generator or GNU Bison parser generator. Flex and Bison both are more flexible than Lex and Yacc and... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 649,
"s": 52,
"text": "FLEX (fast lexical analyzer generator) is a tool/computer program for generating lexical analyzers (scanners or lexers) written by Vern Paxson in C around 1987. It is used to... |
Java.util.zip.ZipInputStream class in Java | 28 Jan, 2017
This class implements an input stream filter for reading files in the ZIP file format. Includes support for both compressed and uncompressed entries.Constructors:
ZipInputStream(InputStream in) : Creates a new ZIP input stream.
ZipInputStream(InputStream in, Charset charset) : Creates a new ZIP input strea... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Jan, 2017"
},
{
"code": null,
"e": 191,
"s": 28,
"text": "This class implements an input stream filter for reading files in the ZIP file format. Includes support for both compressed and uncompressed entries.Constructors:"
},
{
... |
How to create a form using Django Forms ? | 16 Aug, 2021
Django forms are an advanced set of HTML forms that can be created using python and support all features of HTML forms in a pythonic way. This post revolves around how to create a basic form using various Form Fields and attributes. Creating a form in Django is completely similar to creating a model, one n... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 552,
"s": 53,
"text": "Django forms are an advanced set of HTML forms that can be created using python and support all features of HTML forms in a pythonic way. This post revolves around how to cre... |
Finding sum of first n natural numbers in PL/SQL | 07 Jul, 2018
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 a positive integer n and the task is to find the sum of fi... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Jul, 2018"
},
{
"code": null,
"e": 366,
"s": 28,
"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, we declare ... |
Difference between Active Attack and Passive Attack | 07 Jul, 2022
Active Attacks: Active attacks are the type of attacks in which, The attacker efforts to change or modify the content of messages. Active Attack is danger for Integrity as well as availability. Due to active attack system is always damaged and System resources can be changed. The most important thing is th... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Jul, 2022"
},
{
"code": null,
"e": 422,
"s": 54,
"text": "Active Attacks: Active attacks are the type of attacks in which, The attacker efforts to change or modify the content of messages. Active Attack is danger for Integrity as we... |
Range sum queries without updates | 12 Jun, 2022
Given an array arr of integers of size n. We need to compute the sum of elements from index i to index j. The queries consisting of i and j index values will be executed multiple times.
Examples:
Input : arr[] = {1, 2, 3, 4, 5}
i = 1, j = 3
i = 2, j = 4
Output : 9
12
In... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n12 Jun, 2022"
},
{
"code": null,
"e": 240,
"s": 54,
"text": "Given an array arr of integers of size n. We need to compute the sum of elements from index i to index j. The queries consisting of i and j index values will be executed mult... |
Simplify the directory path (Unix like) | 07 Sep, 2021
Given an absolute path for a file (Unix-style), simplify it. Note that absolute path always begin with ‘/’ ( root directory ), a dot in path represent current directory and double dot represents parent directory.Examples:
"/a/./" --> means stay at the current directory 'a'
"/a/b/.." --> means jump to th... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n07 Sep, 2021"
},
{
"code": null,
"e": 277,
"s": 54,
"text": "Given an absolute path for a file (Unix-style), simplify it. Note that absolute path always begin with ‘/’ ( root directory ), a dot in path represent current directory and d... |
Making a Port-Scanner in Kali Linux Terminal Using Python | 17 Dec, 2021
In computer networking, a port is a virtual point where network connections start and end. It’s like an open door of your home, If you don’t close this then anyone can Enter your home. A port scanner is a program that is searching ports in a network and tries to find which ports are virtually open and clos... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 479,
"s": 54,
"text": "In computer networking, a port is a virtual point where network connections start and end. It’s like an open door of your home, If you don’t close this then anyone can Enter ... |
How to add/update an attribute to an HTML element using JavaScript? | 01 Sep, 2021
We can use two approaches to modify an attribute of an HTML element using JavaScript.Approach 1: We can use the inbuilt setAttribute() function of JavaScript.Syntax:
var elementVar = document.getElementById("element_id");
elementVar.setAttribute("attribute", "value");
So what basically we are doing is in... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 196,
"s": 28,
"text": "We can use two approaches to modify an attribute of an HTML element using JavaScript.Approach 1: We can use the inbuilt setAttribute() function of JavaScript.Syntax: "
},
... |
Merging two unsorted arrays in sorted order | 27 Jan, 2022
Write a SortedMerge() function that takes two lists, each of which is unsorted, and merges the two together into one new list which is in sorted (increasing) order. SortedMerge() should return the new list.
Examples :
Input : a[] = {10, 5, 15}
b[] = {20, 3, 2}
Output : Merge List :
{2, 3, ... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 Jan, 2022"
},
{
"code": null,
"e": 259,
"s": 52,
"text": "Write a SortedMerge() function that takes two lists, each of which is unsorted, and merges the two together into one new list which is in sorted (increasing) order. SortedMer... |
Graph Data Structure And Algorithms - GeeksforGeeks | 18 Jun, 2022
Data Structure and Algorithms CoursePractice Problems on GraphsRecent Articles on Graph
A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. More formally a Graph c... | [
{
"code": null,
"e": 26165,
"s": 26137,
"text": "\n18 Jun, 2022"
},
{
"code": null,
"e": 26253,
"s": 26165,
"text": "Data Structure and Algorithms CoursePractice Problems on GraphsRecent Articles on Graph"
},
{
"code": null,
"e": 26490,
"s": 26253,
"text": "A ... |
How to run PowerShell commands in Background? | To run commands in the background in the PowerShell, you need to use Background job cmdlets. Background job means running commands/job in the background without occupying the console.
Start-Job is one of the job scheduler cmdlets for PowerShell which runs PowerShell commands in the background without interacting with t... | [
{
"code": null,
"e": 1371,
"s": 1187,
"text": "To run commands in the background in the PowerShell, you need to use Background job cmdlets. Background job means running commands/job in the background without occupying the console."
},
{
"code": null,
"e": 1679,
"s": 1371,
"text":... |
Payload in Computer Networks | 19 Oct, 2020
Payload During the transmission of the data with the Internet Protocol from the sender to receiver. Data is sent in terms of packets and individual packets contain a header and the data which is sent by the sender this data is called Payload. Headers are appended to the payload for transport and then disca... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n19 Oct, 2020"
},
{
"code": null,
"e": 463,
"s": 52,
"text": "Payload During the transmission of the data with the Internet Protocol from the sender to receiver. Data is sent in terms of packets and individual packets contain a header a... |
SQL MIN() and MAX() | 14 Aug, 2020
SQL MIN() FunctionsThe MIN() function provides the smallest value of the chosen column.MIN() Syntax –SELECT MIN(column_name)
FROM table_name
WHERE condition;
SQL MAX() FunctionsThe MAX() function provides the largest value of the chosen column.MAX() Syntax –SELECT MAX(column_name)
FROM table_name
WHERE con... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n14 Aug, 2020"
},
{
"code": null,
"e": 344,
"s": 28,
"text": "SQL MIN() FunctionsThe MIN() function provides the smallest value of the chosen column.MIN() Syntax –SELECT MIN(column_name)\nFROM table_name\nWHERE condition;\nSQL MAX() Func... |
Python hash() method | 17 Sep, 2021
Python hash() function is a built-in function and returns the hash value of an object if it has one. The hash value is an integer which is used to quickly compare dictionary keys while looking at a dictionary.
Syntax : hash(obj)
Parameters : obj : The object which we need to convert into hash.
Returns : R... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n17 Sep, 2021"
},
{
"code": null,
"e": 264,
"s": 54,
"text": "Python hash() function is a built-in function and returns the hash value of an object if it has one. The hash value is an integer which is used to quickly compare dictionary ... |
Servlets - Form Data | You must have come across many situations when you need to pass some information from your browser to web server and ultimately to your backend program. The browser uses two methods to pass this information to web server. These methods are GET Method and POST Method.
The GET method sends the encoded user information ap... | [
{
"code": null,
"e": 2587,
"s": 2319,
"text": "You must have come across many situations when you need to pass some information from your browser to web server and ultimately to your backend program. The browser uses two methods to pass this information to web server. These methods are GET Method an... |
Juggler Sequence | 21 Jun, 2022
Juggler Sequence is a series of integer number in which the first term starts with a positive integer number a and the remaining terms are generated from the immediate previous term using the below recurrence relation : Juggler Sequence starting with number 3: 5, 11, 36, 6, 2, 1Juggler Sequence starting wi... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n21 Jun, 2022"
},
{
"code": null,
"e": 518,
"s": 53,
"text": "Juggler Sequence is a series of integer number in which the first term starts with a positive integer number a and the remaining terms are generated from the immediate previo... |
Python | Write multiple files data to master file | 06 May, 2019
Given a number of input files in a source directory, write a Python program to read data from all the files and write it to a single master file.
Source directory contains n number of files, and structure is same for all files. The objective of this code is to read all the files one by one and then append ... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n06 May, 2019"
},
{
"code": null,
"e": 174,
"s": 28,
"text": "Given a number of input files in a source directory, write a Python program to read data from all the files and write it to a single master file."
},
{
"code": null,
... |
C# | Deconstructors with Tuples | 28 Aug, 2019
A tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. But if you are trying to retrieve multiple fields or property values from the tuple is more difficult. So, to overcome this problem deconstructor was intr... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n28 Aug, 2019"
},
{
"code": null,
"e": 566,
"s": 28,
"text": "A tuple is a data structure which gives you the easiest way to represent a data set which has multiple values that may/may not be related to each other. But if you are trying ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.