title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
PyQt5 – How to change the text of existing push button ?
22 Apr, 2020 In this article we will see how to change the text of existing push button. We know when we create a button, we set the text to it but sometimes, conditions occur in which re-usability of push button occur i.e button should do its normal operation just change the text of it, so it look different. In order ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 326, "s": 28, "text": "In this article we will see how to change the text of existing push button. We know when we create a button, we set the text to it but sometimes, conditions occur in which re-...
How to use SCSS mixins with angular 7?
27 Jun, 2020 When working with the Angular CLI, the default stylesheets have the .css extension. Starting an Angular CLI Project with Sass Normally, when we run ng new my-app, our app will have .css files. To get the CLI to generate .scss files (or .sass/.less) is an easy matter. Create a new project with Sass with the...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jun, 2020" }, { "code": null, "e": 112, "s": 28, "text": "When working with the Angular CLI, the default stylesheets have the .css extension." }, { "code": null, "e": 154, "s": 112, "text": "Starting an Angular CL...
String from prefix and suffix of given two strings
20 May, 2021 Given two strings a and b, form a new string of length l, from these strings by combining the prefix of string a and suffix of string b.Examples : Input : string a = remuneration string b = acquiesce length of pre/suffix(l) = 5 Output :remuniesce Input : adulation obstreperous ...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 May, 2021" }, { "code": null, "e": 201, "s": 52, "text": "Given two strings a and b, form a new string of length l, from these strings by combining the prefix of string a and suffix of string b.Examples : " }, { "code": nul...
Sitadel – Web Application Security Scanner in Kali Linux
23 Aug, 2021 Sitadel is an open-source web application vulnerability scanner. The tool uses the technique of black-box to find various vulnerabilities. Sitadel provides a command-line interface that you can run on the Kali Linux terminal in order to scan hosts and domains. The interactive console provides a number of h...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 673, "s": 28, "text": "Sitadel is an open-source web application vulnerability scanner. The tool uses the technique of black-box to find various vulnerabilities. Sitadel provides a command-line inte...
GATE | GATE-CS-2000 | Question 23
28 Jun, 2021 Given the relations employee (name, salary, deptno) and department (deptno, deptname, address) Which of the following queries cannot be expressed using the basic relational algebra operations (U, -, x, , , p)?(A) Department address of every employee(B) Employees whose name is the same as their department ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jun, 2021" }, { "code": null, "e": 48, "s": 28, "text": "Given the relations" }, { "code": null, "e": 123, "s": 48, "text": "employee (name, salary, deptno) and\ndepartment (deptno, deptname, address)" }, { ...
LocalDateTime format() method in Java
30 Nov, 2018 The format() method of LocalDateTime class in Java formats this date-time using the specified formatter. Syntax: public String format(DateTimeFormatter formatter) Parameter: This method accepts a parameter formatter which specifies the formatter to use, not null. Returns: The function returns the formatte...
[ { "code": null, "e": 53, "s": 25, "text": "\n30 Nov, 2018" }, { "code": null, "e": 158, "s": 53, "text": "The format() method of LocalDateTime class in Java formats this date-time using the specified formatter." }, { "code": null, "e": 166, "s": 158, "text": "...
Perl | chop() Function
07 May, 2019 The chop() function in Perl is used to remove the last character from the input string. Syntax: chop(String) Parameters:String : It is the input string whose last characters are removed. Returns: the last removed character. Example 1: #!/usr/bin/perl # Initialising a string$string = "GfG is a computer sci...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 May, 2019" }, { "code": null, "e": 116, "s": 28, "text": "The chop() function in Perl is used to remove the last character from the input string." }, { "code": null, "e": 137, "s": 116, "text": "Syntax: chop(Strin...
Count total number of digits from 1 to N in C++
We are given a number N as input. The goal is to count the total number of digits between numbers 1 to N. 1 to 9 numbers require 1 digit each, 11 to 99 require 2 digits each, 100 to 999 require 3 digits each and so on. Let us understand with examples Input − N=11 Output − Count of total number of digits from 1 to N are...
[ { "code": null, "e": 1281, "s": 1062, "text": "We are given a number N as input. The goal is to count the total number of digits between numbers 1 to N. 1 to 9 numbers require 1 digit each, 11 to 99 require 2 digits each, 100 to 999 require 3 digits each and so on." }, { "code": null, "e...
Microsoft Azure - Point-to-Site Connectivity
In the last chapter, we saw how an endpoint can be created to access a virtual machine; this is quite a tedious task. If a virtual machine in virtual network needs to be connected with on-premise machine, the point-to-site connectivity is needed. Point-to-site connectivity makes it very productive to work with remote v...
[ { "code": null, "e": 3346, "s": 3009, "text": "In the last chapter, we saw how an endpoint can be created to access a virtual machine; this is quite a tedious task. If a virtual machine in virtual network needs to be connected with on-premise machine, the point-to-site connectivity is needed. Point-...
SQL - Clone Tables
There may be a situation when you need an exact copy of a table and the CREATE TABLE ... or the SELECT... commands does not suit your purposes because the copy must include the same indexes, default values and so forth. If you are using MySQL RDBMS, you can handle this situation by adhering to the steps given below − U...
[ { "code": null, "e": 2673, "s": 2453, "text": "There may be a situation when you need an exact copy of a table and the CREATE TABLE ... or the SELECT... commands does not suit your purposes because the copy must include the same indexes, default values and so forth." }, { "code": null, "...
What’s fancy about context transition in DAX? | by Salvatore Cagliari | Towards Data Science
In this article, I show you what context transition is in DAX and how to use it. I will cover only the basics of this feature. If I want to explain all details, I would have to start an entire series of articles. Instead, I want to give you some small examples of how you can work with context transition and the most im...
[ { "code": null, "e": 253, "s": 172, "text": "In this article, I show you what context transition is in DAX and how to use it." }, { "code": null, "e": 385, "s": 253, "text": "I will cover only the basics of this feature. If I want to explain all details, I would have to start an ...
Trim a string in Java to remove leading and trailing spaces
To remove leading and trailing spaces in Java, use the trim() method. This method returns a copy of this string with leading and trailing white space removed, or this string if it has no leading or trailing white space. Let’s say the following is our string with leading and trailing spaces − String str = new String(" J...
[ { "code": null, "e": 1282, "s": 1062, "text": "To remove leading and trailing spaces in Java, use the trim() method. This method returns a copy of this string with leading and trailing white space removed, or this string if it has no leading or trailing white space." }, { "code": null, "...
Perl do...while Loop
Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop checks its condition at the bottom of the loop. A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time. The syntax of a do...while loop in Perl is − do { ...
[ { "code": null, "e": 2370, "s": 2220, "text": "Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop checks its condition at the bottom of the loop." }, { "code": null, "e": 2490, "s": 2370, "text": "A do...while loop is similar to ...
C Program for nth Catalan Number
Given an interger n; the task is to find the Catalan Number on that nth position. So, before doing the program we must know what is a Catalan Number? Catlan numbers are the sequence of natural numbers, which occurs in the form of various counting number problems. Catalan numbers C0, C1, C2,... Cn are driven by formula ...
[ { "code": null, "e": 1212, "s": 1062, "text": "Given an interger n; the task is to find the Catalan Number on that nth position. So, before doing the program we must know what is a Catalan Number?" }, { "code": null, "e": 1326, "s": 1212, "text": "Catlan numbers are the sequence ...
Optimising pairwise Euclidean distance calculations using Python | by TU | Towards Data Science
Euclidean distance is one of the most commonly used metric, serving as a basis for many machine learning algorithms. However when one is faced with very large data sets, containing multiple features, the simple distance calculation becomes a source of headaches and memory errors. Although being aware that packages like...
[ { "code": null, "e": 453, "s": 172, "text": "Euclidean distance is one of the most commonly used metric, serving as a basis for many machine learning algorithms. However when one is faced with very large data sets, containing multiple features, the simple distance calculation becomes a source of hea...
C# Program to Generate Random Even Numbers Using LINQ Parallel Query - GeeksforGeeks
28 Nov, 2021 LINQ is known as Language Integrated Query and was introduced in .NET 3.5. It gives power to .NET languages to generate or create queries to retrieve data from the data source. In this article, we will generate random even numbers in parallel using LINQ. So, we will use ParallelQuery{TSource} to generate a...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n28 Nov, 2021" }, { "code": null, "e": 24891, "s": 24302, "text": "LINQ is known as Language Integrated Query and was introduced in .NET 3.5. It gives power to .NET languages to generate or create queries to retrieve data from the...
Program to count Number of connected components in an undirected graph - GeeksforGeeks
11 Apr, 2022 Given an undirected graph g, the task is to print the number of connected components in the graph. Examples: Input: Output: 3 There are three connected components: 1 – 5, 0 – 2 – 4 and 3 Approach: DFS visit all the connected vertices of the given vertex. When iterating over all vertices, whenever we ...
[ { "code": null, "e": 25138, "s": 25110, "text": "\n11 Apr, 2022" }, { "code": null, "e": 25237, "s": 25138, "text": "Given an undirected graph g, the task is to print the number of connected components in the graph." }, { "code": null, "e": 25249, "s": 25237, ...
How to use CheckBox in Android - GeeksforGeeks
19 Feb, 2021 CheckBox belongs to android.widget.CheckBox class. Android CheckBox class is the subclass of CompoundButton class. It is generally used in a place where user can select one or more than choices from a given list of choices. For example, selecting hobbies. public class CheckBox extends CompoundButton Class...
[ { "code": null, "e": 25476, "s": 25448, "text": "\n19 Feb, 2021" }, { "code": null, "e": 25732, "s": 25476, "text": "CheckBox belongs to android.widget.CheckBox class. Android CheckBox class is the subclass of CompoundButton class. It is generally used in a place where user can s...
unordered_set find() function in C++ STL - GeeksforGeeks
28 Sep, 2018 The unordered_set::find() function is a built-in function in C++ STL which is used to search for an element in the container. It returns an iterator to the element, if found else, it returns an iterator pointing to unordered_set::end(). Syntax : unordered_set_name.find(key) Parameter: This function accepts...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n28 Sep, 2018" }, { "code": null, "e": 25604, "s": 25367, "text": "The unordered_set::find() function is a built-in function in C++ STL which is used to search for an element in the container. It returns an iterator to the element...
p5.js | setInput() Function - GeeksforGeeks
17 Jan, 2020 The setInput() function is an inbuilt function in p5.js library. This function is used to connects to the p5sound instance that is the master output by default. By using this function you can also pass in a specific source. Syntax: setInput(snd, smoothing) Note: All the sound-related functions only work wh...
[ { "code": null, "e": 26627, "s": 26599, "text": "\n17 Jan, 2020" }, { "code": null, "e": 26851, "s": 26627, "text": "The setInput() function is an inbuilt function in p5.js library. This function is used to connects to the p5sound instance that is the master output by default. By...
Python string | ascii_lowercase - GeeksforGeeks
16 Oct, 2018 In Python3, ascii_lowercase is a pre-initialized string used as string constant. In Python, string ascii_lowercase will give the lowercase letters ‘abcdefghijklmnopqrstuvwxyz’. Syntax : string.ascii_lowercase Parameters : Doesn’t take any parameter, since it’s not a function. Returns : Return all lowercase...
[ { "code": null, "e": 26117, "s": 26089, "text": "\n16 Oct, 2018" }, { "code": null, "e": 26294, "s": 26117, "text": "In Python3, ascii_lowercase is a pre-initialized string used as string constant. In Python, string ascii_lowercase will give the lowercase letters ‘abcdefghijklmno...
Express.js res.send() Function - GeeksforGeeks
19 Aug, 2021 The res.send() function basically sends the HTTP response. The body parameter can be a String or a Buffer object or an object or an Array. Syntax: res.send( [body] ) Parameter: This function accepts a single parameter body that describe the body which is to be sent in the response. Returns: It returns an ...
[ { "code": null, "e": 26341, "s": 26313, "text": "\n19 Aug, 2021" }, { "code": null, "e": 26480, "s": 26341, "text": "The res.send() function basically sends the HTTP response. The body parameter can be a String or a Buffer object or an object or an Array." }, { "code": nu...
How to check a webpage is loaded inside an iframe or into the browser window using JavaScript? - GeeksforGeeks
25 Apr, 2019 An iFrame is a rectangular frame or region in the webpage to load or display another separate webpage or document inside it. So basically, an iFrame is used to display a webpage within a webpage. You can see more about iFrames here : HTML iFrames There may be a variety of reasons for checking whether a web...
[ { "code": null, "e": 25707, "s": 25679, "text": "\n25 Apr, 2019" }, { "code": null, "e": 25903, "s": 25707, "text": "An iFrame is a rectangular frame or region in the webpage to load or display another separate webpage or document inside it. So basically, an iFrame is used to dis...
Flutter - Difference Between setState and Provider in State Management - GeeksforGeeks
19 Apr, 2021 In this article, we will look into how we can use state management or provider package for implementing state management in our flutter app. We are creating a simple counter app in flutter, which will help us in understanding state management in flutter application and deciding which is a better way to bu...
[ { "code": null, "e": 25261, "s": 25233, "text": "\n19 Apr, 2021" }, { "code": null, "e": 25403, "s": 25261, "text": "In this article, we will look into how we can use state management or provider package for implementing state management in our flutter app. " }, { "code":...
C program to Find the Largest Number Among Three Numbers - GeeksforGeeks
26 Dec, 2018 Given three numbers A, B and C; The task is to find the largest number among the three. Examples: Input: A = 2, B = 8, C = 1 Output: Largest number = 8 Input: A = 231, B = 4751, C = 75821 Output: Largest number = 75821 In the below programs, to find the largest of the three number, , , and ‘s are used. ...
[ { "code": null, "e": 26143, "s": 26115, "text": "\n26 Dec, 2018" }, { "code": null, "e": 26231, "s": 26143, "text": "Given three numbers A, B and C; The task is to find the largest number among the three." }, { "code": null, "e": 26241, "s": 26231, "text": "Ex...
PHP | Spreadsheet_Excel_Writer | Close() Function - GeeksforGeeks
04 Oct, 2021 The close() function is an inbuilt function in PHP | Spreadsheet_Excel_Writer which is used to finalize the spreadsheet after which all the operations are done. This method should always be the last one to be called on every workbook. Syntax: mixed Workbook::close() Parameters: This function does not acce...
[ { "code": null, "e": 26243, "s": 26215, "text": "\n04 Oct, 2021" }, { "code": null, "e": 26478, "s": 26243, "text": "The close() function is an inbuilt function in PHP | Spreadsheet_Excel_Writer which is used to finalize the spreadsheet after which all the operations are done. Th...
Split Vector into Chunks in R - GeeksforGeeks
23 Sep, 2021 In this article, we will discuss how to split vectors into chunks in R programming language. In this scenario, a chuck length is specified, so that we can divide the vector using the split() function. Syntax: split(vector, ceiling(seq_along(vector) / chunk_length)) where, vector is the input vector split...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n23 Sep, 2021" }, { "code": null, "e": 26580, "s": 26487, "text": "In this article, we will discuss how to split vectors into chunks in R programming language." }, { "code": null, "e": 26688, "s": 26580, "text"...
Working with CSV files in R Programming - GeeksforGeeks
10 May, 2020 CSV files are basically the text files wherein the values of each row are separated by a delimiter, as in a comma or a tab. In this article, we will use the following sample CSV file:sample.csv id, name, department, salary, projects 1, A, IT, 60754, 4 2, B, Tech, 59640, 2 3, C...
[ { "code": null, "e": 30289, "s": 30261, "text": "\n10 May, 2020" }, { "code": null, "e": 30483, "s": 30289, "text": "CSV files are basically the text files wherein the values of each row are separated by a delimiter, as in a comma or a tab. In this article, we will use the follow...
How to create X and Y axis flip animation using HTML and CSS ? - GeeksforGeeks
27 Apr, 2020 The flip animation is the kind of loading animation in which we use a square flip effect to give the feel of loading animation. These kinds of animations are useful in times when the content of the website is taking too long to load. This animation can keep visitors engage and prevent them from leaving you...
[ { "code": null, "e": 26231, "s": 26203, "text": "\n27 Apr, 2020" }, { "code": null, "e": 26735, "s": 26231, "text": "The flip animation is the kind of loading animation in which we use a square flip effect to give the feel of loading animation. These kinds of animations are usefu...
JavaTuples getLabel() method - GeeksforGeeks
27 Aug, 2018 The getLabel() method in org.javatuples is used to fetch the label from the TupleClassObject from the LabelValue Class. This method can be used with only LabelValue class object of javatuples library. It returns a Label which is the element present at the index 0 of the LabelValueClassObject. The returned ...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n27 Aug, 2018" }, { "code": null, "e": 23898, "s": 23557, "text": "The getLabel() method in org.javatuples is used to fetch the label from the TupleClassObject from the LabelValue Class. This method can be used with only LabelValu...
C library function - system()
The C library function int system(const char *command) passes the command name or program name specified by command to the host environment to be executed by the command processor and returns after the command has been completed. Following is the declaration for system() function. int system(const char *command) comman...
[ { "code": null, "e": 2237, "s": 2007, "text": "The C library function int system(const char *command) passes the command name or program name specified by command to the host environment to be executed by the command processor and returns after the command has been completed." }, { "code": n...
Convert Decimal to Int64 (long) in C#
Use the Convert.ToInt64() method to convert Decimal to Int64 (long) in C#. Let’s say we have a decimal variable. decimal d = 310.23m; Now to convert it to Int64, use the Convert.ToInt64() method. long res; res = Convert.ToInt64(d); Let us see another example − Live Demo using System; class Demo { static void Main()...
[ { "code": null, "e": 1137, "s": 1062, "text": "Use the Convert.ToInt64() method to convert Decimal to Int64 (long) in C#." }, { "code": null, "e": 1175, "s": 1137, "text": "Let’s say we have a decimal variable." }, { "code": null, "e": 1196, "s": 1175, "text":...
Linux Admin - Quick Guide
Unique among business class Linux distributions, CentOS stays true to the open-source nature that Linux was founded on. The first Linux kernel was developed by a college student at the University of Helsinki (Linus Torvalds) and combined with the GNU utilities founded and promoted by Richard Stallman. CentOS has a prov...
[ { "code": null, "e": 2642, "s": 2257, "text": "Unique among business class Linux distributions, CentOS stays true to the open-source nature that Linux was founded on. The first Linux kernel was developed by a college student at the University of Helsinki (Linus Torvalds) and combined with the GNU ut...
C program demonstrating the concepts of strings using Pointers
An array of characters is called a string. The syntax for declaring an array is as follows − char stringname [size]; For example − char string[50]; string of length 50 characters Using single character constant − char string[10] = { ‘H’, ‘e’, ‘l’, ‘l’, ‘o’ ,‘\0’} Using string constants − char string[10] = "Hello":; Acc...
[ { "code": null, "e": 1105, "s": 1062, "text": "An array of characters is called a string." }, { "code": null, "e": 1155, "s": 1105, "text": "The syntax for declaring an array is as follows −" }, { "code": null, "e": 1179, "s": 1155, "text": "char stringname [s...
Plotting live data with Matplotlib | by Thiago Carvalho | Towards Data Science
Whether you’re working with a sensor, continually pulling data from an API, or have a file that’s often updated, you may want to analyze your data in real-time. This article will explore a simple way to use functions to animate our plots with Matplotlib’s FuncAnimation. The data for this first example is from the OS, a...
[ { "code": null, "e": 333, "s": 172, "text": "Whether you’re working with a sensor, continually pulling data from an API, or have a file that’s often updated, you may want to analyze your data in real-time." }, { "code": null, "e": 443, "s": 333, "text": "This article will explore...
Predicting house value using regression analysis | by Bhavesh Patel | Towards Data Science
Machine learning model Regression analysis is a basic method used in statistical analysis of data. It’s a statistical method which allows estimating the relationships among variables. One needs to identify dependent variable which will vary based on the value of the independent variable. For example, the value of the h...
[ { "code": null, "e": 195, "s": 172, "text": "Machine learning model" }, { "code": null, "e": 648, "s": 195, "text": "Regression analysis is a basic method used in statistical analysis of data. It’s a statistical method which allows estimating the relationships among variables. On...
Convert Floats to Integers in a Pandas DataFrame - GeeksforGeeks
20 Aug, 2020 Let us see how to convert float to integer in a Pandas DataFrame. We will be using the astype() method to do this. It can also be done using the apply() method. Method 1: Using DataFrame.astype() method First of all we will create a DataFrame: # importing the libraryimport pandas as pd # creating a DataFr...
[ { "code": null, "e": 24064, "s": 24036, "text": "\n20 Aug, 2020" }, { "code": null, "e": 24225, "s": 24064, "text": "Let us see how to convert float to integer in a Pandas DataFrame. We will be using the astype() method to do this. It can also be done using the apply() method." ...
count() function in PHP
The count() function counts elements in an array, or properties in an object. It returns the number of elements in an array. count(arr, mode) arr − The specified array. arr − The specified array. mode − Specifies the mode. Possible values are 0 or 1. 0: Do not count all the elements, 1: Count all the elements. mode − ...
[ { "code": null, "e": 1187, "s": 1062, "text": "The count() function counts elements in an array, or properties in an object. It returns the number of elements in an array." }, { "code": null, "e": 1205, "s": 1187, "text": "count(arr, mode)\n" }, { "code": null, "e": 1...
DAX Information - ISLOGICAL function
Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE. ISLOGICAL (<value>) value The value that you want to test. TRUE or FALSE. = ISLOGICAL (5>4) returns TRUE. 53 Lectures 5.5 hours Abhay Gadiya 24 Lectures 2 hours Randy Minder 26 Lectures 4.5 ho...
[ { "code": null, "e": 2087, "s": 2001, "text": "Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE." }, { "code": null, "e": 2109, "s": 2087, "text": "ISLOGICAL (<value>) \n" }, { "code": null, "e": 2115, "s": 2109, "text": "va...
Consul - Architecture
The architecture diagram for consul working in one datacenter can be best described as shown below − As we can observe, there are three different servers, which are managed by Consul. The working architecture works by the using raft algorithm, which helps us in electing a leader out of the three different servers. Thes...
[ { "code": null, "e": 1903, "s": 1802, "text": "The architecture diagram for consul working in one datacenter can be best described as shown below −" }, { "code": null, "e": 2379, "s": 1903, "text": "As we can observe, there are three different servers, which are managed by Consul...
Add Text to ggplot2 Plot in R - GeeksforGeeks
30 May, 2021 In this article, we are going to see how to add Text to the ggplot2 plot in R Programming Language. To do this annotate() is used. It is useful for adding small annotations (such as text labels) or if you have your data in vectors, and for some reason don’t want to put them in a data frame. Syntax: annotat...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n30 May, 2021" }, { "code": null, "e": 26587, "s": 26487, "text": "In this article, we are going to see how to add Text to the ggplot2 plot in R Programming Language." }, { "code": null, "e": 26779, "s": 26587, ...
How to remove multiple selected items in listbox in Tkinter? - GeeksforGeeks
02 Feb, 2021 Prerequisite: Tkinter, Listbox in Tkinter Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and e...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n02 Feb, 2021" }, { "code": null, "e": 25689, "s": 25647, "text": "Prerequisite: Tkinter, Listbox in Tkinter" }, { "code": null, "e": 25993, "s": 25689, "text": "Python offers multiple options for developing GU...
Python | sympy.prime() method - GeeksforGeeks
26 Aug, 2019 With the help of sympy.prime() method, we can find the nth prime, with the primes indexed as prime(1) = 2, prime(2) = 3, etc. Syntax: prime(n) Parameter:n – It denotes the nth prime number. Returns: Returns the nth prime number. Example #1: # import sympy from sympy import prime n = 5 # Use prime() metho...
[ { "code": null, "e": 25665, "s": 25637, "text": "\n26 Aug, 2019" }, { "code": null, "e": 25791, "s": 25665, "text": "With the help of sympy.prime() method, we can find the nth prime, with the primes indexed as prime(1) = 2, prime(2) = 3, etc." }, { "code": null, "e": ...
Batch Script - SUBST
This batch command assigns a drive letter to a local folder, displays current assignments, or removes an assignment. Subst [driveletter] @echo off Subst p: P: will be assigned as the drive letter for the current folder. Print Add Notes Bookmark this page
[ { "code": null, "e": 2286, "s": 2169, "text": "This batch command assigns a drive letter to a local folder, displays current assignments, or removes an assignment." }, { "code": null, "e": 2307, "s": 2286, "text": "Subst [driveletter]\n" }, { "code": null, "e": 2327, ...
Sorting a vector in C++
Sorting a vector in C++ can be done by using std::sort(). It is defined in<algorithm> header. To get a stable sort std::stable_sort is used. It is exactly like sort() but maintains the relative order of equal elements. Quicksort(), mergesort() can also be used, as per requirement. Begin Decalre v of vector type. ...
[ { "code": null, "e": 1344, "s": 1062, "text": "Sorting a vector in C++ can be done by using std::sort(). It is defined in<algorithm> header. To get a stable sort std::stable_sort is used. It is exactly like sort() but maintains the relative order of equal elements. Quicksort(), mergesort() can also ...
Format percentage with MessageFormat class in Java
To format message with percentage fillers in Java, we use the MessageFormat class. The MessageFormat class gives us a way to produce concatenated messages which are not dependent on the language. The MessageFormat class extends the Serializable and Cloneable interfaces. Declaration - The java.text.MessageFormat class i...
[ { "code": null, "e": 1333, "s": 1062, "text": "To format message with percentage fillers in Java, we use the MessageFormat class. The MessageFormat class gives us a way to produce concatenated messages which are not dependent on the language. The MessageFormat class extends the Serializable and Clon...
Python - CGI Programming
The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom script. The CGI specs are currently maintained by the NCSA. The Common Gateway Interface, or CGI, is a standard for external gateway programs to interface with information servers suc...
[ { "code": null, "e": 2441, "s": 2244, "text": "The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom script. The CGI specs are currently maintained by the NCSA." }, { "code": null, "e": 2583, "s": 2441...
Font Awesome - Brand icons
This chapter explains the usage of Font Awesome Brand icons. Assume that custom is the CSS class name where we defined the size and color, as shown in the example given below. <html> <head> <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"> ...
[ { "code": null, "e": 2742, "s": 2566, "text": "This chapter explains the usage of Font Awesome Brand icons. Assume that custom is the CSS class name where we defined the size and color, as shown in the example given below." }, { "code": null, "e": 3053, "s": 2742, "text": "<html>...
PyQt5 QSpinBox - Setting size increment - GeeksforGeeks
28 May, 2020 In this article we will see how we can set the size increment of spin box or not. Size increment is used when spin box size is changeable with the main window size. Base size is used to calculate a proper spin box size if the spin box defines sizeIncrement. By default, for a newly-created spin box, this pr...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n28 May, 2020" }, { "code": null, "e": 24259, "s": 23901, "text": "In this article we will see how we can set the size increment of spin box or not. Size increment is used when spin box size is changeable with the main window size...
Display an Icon from Image Sprite using CSS
The main advantage of using image sprite is to reduce the number of http requests that makes our site’s load time faster. Following is the code for displaying an icon from image sprite using CSS − Live Demo <!DOCTYPE html> <html> <head> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } ...
[ { "code": null, "e": 1184, "s": 1062, "text": "The main advantage of using image sprite is to reduce the number of http requests that makes our site’s load time faster." }, { "code": null, "e": 1259, "s": 1184, "text": "Following is the code for displaying an icon from image spri...
How does one remove a Docker image?
If you have been using Docker for quite a long time now, you might have several unused images already existing in your local machine. These images might be previously downloaded older versions, or simply an image that you downloaded for testing. These images take up a lot of space unnecessarily and reduce the overall p...
[ { "code": null, "e": 1469, "s": 1062, "text": "If you have been using Docker for quite a long time now, you might have several unused images already existing in your local machine. These images might be previously downloaded older versions, or simply an image that you downloaded for testing. These i...
Jump Game in Python
Suppose we have an array of non-negative integers; we are initially positioned at the first index of the array. Each element in the given array represents out maximum jump length at that position. We have to determine if we are able to reach the last index or not. So if the array is like [2,3,1,1,4], then the output wi...
[ { "code": null, "e": 1487, "s": 1062, "text": "Suppose we have an array of non-negative integers; we are initially positioned at the first index of the array. Each element in the given array represents out maximum jump length at that position. We have to determine if we are able to reach the last in...
Remove Trailing Zero in MySQL?
Use trim() function to remove trailing zeroz in MySQL. Following is the syntax − select trim(yourColumnName)+0 As anyAliasName from yourTableName; Let us first create a table − mysql> create table removeTrailingZero -> ( -> Number DECIMAL(10,4) -> ); Query OK, 0 rows affected (0.83 sec) Following is the query ...
[ { "code": null, "e": 1143, "s": 1062, "text": "Use trim() function to remove trailing zeroz in MySQL. Following is the syntax −" }, { "code": null, "e": 1209, "s": 1143, "text": "select trim(yourColumnName)+0 As anyAliasName from yourTableName;" }, { "code": null, "e"...
Find all good indices in the given Array - GeeksforGeeks
26 May, 2021 Given an array A[] of integers. The task is to print all indices of this array such that after removing the ith element from the array, the array becomes a good array.Note: An array is good if there is an element in the array that equals to the sum of all other elements. 1-based indexing is considered fo...
[ { "code": null, "e": 24796, "s": 24768, "text": "\n26 May, 2021" }, { "code": null, "e": 24971, "s": 24796, "text": "Given an array A[] of integers. The task is to print all indices of this array such that after removing the ith element from the array, the array becomes a good ar...
B-Spline Curve in Computer Graphics - GeeksforGeeks
22 Jan, 2021 Prerequisite – Bezier Curve Concept of B-spline curve came to resolve the disadvantages having by Bezier curve, as we all know that both curves are parametric in nature. In Bezier curve we face a problem, when we change any of the control point respective location the whole curve shape gets change. But her...
[ { "code": null, "e": 24538, "s": 24510, "text": "\n22 Jan, 2021" }, { "code": null, "e": 24566, "s": 24538, "text": "Prerequisite – Bezier Curve" }, { "code": null, "e": 25007, "s": 24566, "text": "Concept of B-spline curve came to resolve the disadvantages ha...
Bitonic Sort in C++
The bitonic sort is a parallel sorting algorithm that is created for best implementation and has optimum usage with hardware and parallel processor array. It is not the most effective one though as compared to the merge sort. But it is good for parallel implementation. This is due to the predefined comparison sequence ...
[ { "code": null, "e": 1217, "s": 1062, "text": "The bitonic sort is a parallel sorting algorithm that is created for best implementation and has optimum usage with hardware and parallel processor array." }, { "code": null, "e": 1449, "s": 1217, "text": "It is not the most effectiv...
How to loop through HTML elements without using forEach() loop in JavaScript ? - GeeksforGeeks
07 Apr, 2021 In this article, we will learn how to loop through HTML elements without using the forEach() method. Approach 1: Using the for loop: The HTML elements can be iterated by using the regular JavaScript for loop. The number of elements to be iterated can be found using the length property. The for loop has th...
[ { "code": null, "e": 24968, "s": 24937, "text": " \n07 Apr, 2021\n" }, { "code": null, "e": 25069, "s": 24968, "text": "In this article, we will learn how to loop through HTML elements without using the forEach() method." }, { "code": null, "e": 25447, "s": 25069,...
Can we create an object of an abstract class in Java?
No, we can't create an object of an abstract class. But we can create a reference variable of an abstract class. The reference variable is used to refer to the objects of derived classes (subclasses of abstract class). An abstract class means hiding the implementation and showing the function definition to the user is ...
[ { "code": null, "e": 1281, "s": 1062, "text": "No, we can't create an object of an abstract class. But we can create a reference variable of an abstract class. The reference variable is used to refer to the objects of derived classes (subclasses of abstract class)." }, { "code": null, "e...
What are the undecidable problems in TOC?
The problems for which we can’t construct an algorithm that can answer the problem correctly in the infinite time are termed as Undecidable Problems in the theory of computation (TOC). A problem is undecidable if there is no Turing machine that will always halt an infinite amount of time to answer as ‘yes’ or ‘no’. Exa...
[ { "code": null, "e": 1247, "s": 1062, "text": "The problems for which we can’t construct an algorithm that can answer the problem correctly in the infinite time are termed as Undecidable Problems in the theory of computation (TOC)." }, { "code": null, "e": 1379, "s": 1247, "text"...
Create an Exception Logging Decorator in Python - GeeksforGeeks
08 May, 2020 Prerequisites: Decorators in Python, Logging in Python Logging helps you to keep track of the program/application you run. It stores the outputs/errors/messages/exceptions anything you want to store. Program executions can be debugged with the help of print statements during the runtime of code. But the co...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n08 May, 2020" }, { "code": null, "e": 24347, "s": 24292, "text": "Prerequisites: Decorators in Python, Logging in Python" }, { "code": null, "e": 24802, "s": 24347, "text": "Logging helps you to keep track of ...
How to call a method after a delay in Swift(iOS)?
In this post, we will be seeing how you can delay a method call using Swift. Here we will be seeing how you can achieve the same in two ways, So let’s get started, We will be seeing both the example in Playground, Step 1 − Open Xcode → New Playground. In the first approach, we will be using asyncAfter(deadline: execute...
[ { "code": null, "e": 1204, "s": 1062, "text": "In this post, we will be seeing how you can delay a method call using Swift. Here we will be seeing how you can achieve the same in two ways," }, { "code": null, "e": 1226, "s": 1204, "text": "So let’s get started," }, { "cod...
How To Convert Python Dictionary To JSON?
08 Nov, 2021 JSON stands for JavaScript Object Notation. It means that a script (executable) file which is made of text in a programming language, is used to store and transfer the data. Python supports JSON through a built-in package called json. To use this feature, we import the JSON package in Python script. The te...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Nov, 2021" }, { "code": null, "e": 552, "s": 28, "text": "JSON stands for JavaScript Object Notation. It means that a script (executable) file which is made of text in a programming language, is used to store and transfer the data. P...
Check if a given directed graph is strongly connected | Set 2 (Kosaraju using BFS)
07 Jul, 2022 Given a directed graph, find out whether the graph is strongly connected or not. A directed graph is strongly connected if there is a path between any two pairs of vertices. There are different methods to check the connectivity of directed graph but one of the optimized method is Kosaraju’s DFS based simpl...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2022" }, { "code": null, "e": 375, "s": 54, "text": "Given a directed graph, find out whether the graph is strongly connected or not. A directed graph is strongly connected if there is a path between any two pairs of vertices. ...
Lodash _.fromQuery() Method
30 Sep, 2020 The Lodash _.fromQuery() method is used to convert the given URL Query String into an equivalent JavaScript object. Syntax: _.fromQuery( URL_Query); Parameters: This method accepts a single parameter as mentioned above and described below: URL_Query: This method takes a URL Query String to convert into Jav...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2020" }, { "code": null, "e": 144, "s": 28, "text": "The Lodash _.fromQuery() method is used to convert the given URL Query String into an equivalent JavaScript object." }, { "code": null, "e": 152, "s": 144, ...
Python | Dictionary has_key()
12 Apr, 2022 Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only a single value as an element, Dictionary holds key: value pair. Note: has_key() method was removed in Python 3. Use the in operator instead. In Python Dictionar...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Apr, 2022" }, { "code": null, "e": 239, "s": 28, "text": "Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only a single value as an element...
CSS | Display property
28 Jun, 2022 The Display property in CSS defines how the components(div, hyperlink, heading, etc) are going to be placed on the web page. As the name suggests, this property is used to define the display of the different parts of a web page. Syntax: display: value; Property values Few important values are described...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Jun, 2022" }, { "code": null, "e": 292, "s": 53, "text": "The Display property in CSS defines how the components(div, hyperlink, heading, etc) are going to be placed on the web page. As the name suggests, this property is used to de...
Trie | (Insert and Search)
25 Jun, 2022 Trie is an efficient information retrieval data structure. Using Trie, search complexities can be brought to optimal limit (key length). If we store keys in a binary search tree, a well balanced BST will need time proportional to M * log N, where M is the maximum string length and N is the number of keys i...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Jun, 2022" }, { "code": null, "e": 531, "s": 54, "text": "Trie is an efficient information retrieval data structure. Using Trie, search complexities can be brought to optimal limit (key length). If we store keys in a binary search t...
Python - Tkinter Canvas
The Canvas is a rectangular area intended for drawing pictures or other complex layouts. You can place graphics, text, widgets or frames on a Canvas. Here is the simple syntax to create this widget − w = Canvas ( master, option=value, ... ) master − This represents the parent window. master − This represents the paren...
[ { "code": null, "e": 2528, "s": 2378, "text": "The Canvas is a rectangular area intended for drawing pictures or other complex layouts. You can place graphics, text, widgets or frames on a Canvas." }, { "code": null, "e": 2578, "s": 2528, "text": "Here is the simple syntax to cre...
Spatial Resolution (down sampling and up sampling) in image processing
12 Dec, 2021 A digital image is a two-dimensional array of size M x N where M is the number of rows and N is the number of columns in the array. A digital image is made up of a finite number of discrete picture elements called a pixel. The location of each pixel is given by coordinates (x, y) and the value of each pix...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Dec, 2021" }, { "code": null, "e": 440, "s": 28, "text": "A digital image is a two-dimensional array of size M x N where M is the number of rows and N is the number of columns in the array. A digital image is made up of a finite num...
Python | Subtract two list elements if element in first list is greater
01 Jun, 2021 Given two list, If element in first list in greater than element in second list, then subtract it, else return the element of first list only.Examples: Input: l1 = [10, 20, 30, 40, 50, 60] l2 = [60, 50, 40, 30, 20, 10] Output: [10, 20, 30, 10, 30, 50] Input: l1 = [15, 9, 10, 56, 23, 78, 5, 4, 9] l2 = [9,...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Jun, 2021" }, { "code": null, "e": 207, "s": 54, "text": "Given two list, If element in first list in greater than element in second list, then subtract it, else return the element of first list only.Examples: " }, { "code":...
How to pass a json object as a parameter to a python function?
We have this code below which will the given json object as a parameter to a python function. import json json_string = '{"name":"Rupert", "age": 25, "desig":"developer"}' print type (json_string) def func(strng): a =json.loads(strng) print type(a) for k,v in a.iteritems(): print k,v print di...
[ { "code": null, "e": 1281, "s": 1187, "text": "We have this code below which will the given json object as a parameter to a python function." }, { "code": null, "e": 1537, "s": 1281, "text": "import json\njson_string = '{\"name\":\"Rupert\", \"age\": 25, \"desig\":\"developer\"}'...
TIKA - Content Extraction
Tika uses various parser libraries to extract content from given parsers. It chooses the right parser for extracting the given document type. For parsing documents, the parseToString() method of Tika facade class is generally used. Shown below are the steps involved in the parsing process and these are abstracted by th...
[ { "code": null, "e": 2386, "s": 2244, "text": "Tika uses various parser libraries to extract content from given parsers. It chooses the right parser for extracting the given document type." }, { "code": null, "e": 2596, "s": 2386, "text": "For parsing documents, the parseToString...
Parsing Time in Golang
08 Jun, 2020 Parsing time is to convert our time to Golang time object so that we can extract information such as date, month, etc from it easily. We can parse any time by using time.Parse function which takes our time string and format in which our string is written as input and if there is no error in our format, it ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2020" }, { "code": null, "e": 369, "s": 28, "text": "Parsing time is to convert our time to Golang time object so that we can extract information such as date, month, etc from it easily. We can parse any time by using time.Parse...
Creating Word Embeddings: Coding the Word2Vec Algorithm in Python using Deep Learning | by Eligijus Bujokas | Towards Data Science
When I was writing another article that showcased how to use word embeddings in a text classification objective I realized that I always used pre-trained word embeddings downloaded from an external source (for example https://nlp.stanford.edu/projects/glove/). I started thinking about how to create word embeddings from...
[ { "code": null, "e": 720, "s": 171, "text": "When I was writing another article that showcased how to use word embeddings in a text classification objective I realized that I always used pre-trained word embeddings downloaded from an external source (for example https://nlp.stanford.edu/projects/glo...
How to create Android Notification with BroadcastReceiver?
This example demonstrate about How to create Android Notification with BroadcastReceiver. 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 = "u...
[ { "code": null, "e": 1152, "s": 1062, "text": "This example demonstrate about How to create Android Notification with BroadcastReceiver." }, { "code": null, "e": 1281, "s": 1152, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requi...
Plotting graph using seaborn in python.
Plotly's Python graphing library makes interactive, publication-quality graphs online. this graph is mainly used when we want to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axes, polar charts, and bubble charts. Seaborn is a library for making...
[ { "code": null, "e": 1351, "s": 1062, "text": "Plotly's Python graphing library makes interactive, publication-quality graphs online. this graph is mainly used when we want to make line plots, scatter plots, area charts, bar charts, error bars, box plots, histograms, heatmaps, subplots, multiple-axe...
5 tips to boost your Power BI development | by Nikola Ilic | Towards Data Science
One of the things that I like most about Power BI is rapid report development. In just a few clicks, results can be visible and ready for analysis. Of course, complexity comes later, but that first visual impression can be easily achieved within a few minutes. I’m sure that most of you have your own tips and tricks for...
[ { "code": null, "e": 433, "s": 172, "text": "One of the things that I like most about Power BI is rapid report development. In just a few clicks, results can be visible and ready for analysis. Of course, complexity comes later, but that first visual impression can be easily achieved within a few min...
Lodash _.lowerCase() Method - GeeksforGeeks
07 Sep, 2020 Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. The _.lowerCase() method is used to convert the given string, as space separated words, to lower case. Syntax: _.lowerCase([string='']) Parameters: This method accept...
[ { "code": null, "e": 37045, "s": 37017, "text": "\n07 Sep, 2020" }, { "code": null, "e": 37185, "s": 37045, "text": "Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc." }, { "code": n...
How to access a NumPy array by column - GeeksforGeeks
29 May, 2021 Accessing a NumPy based array by a specific Column index can be achieved by the indexing. Let’s discuss this in detail. NumPy follows standard 0 based indexing. Row and column in NumPy are similar to Python List Examples: Given array : 1 13 6 9 4 7 19 16 2 Input: print(NumPy_a...
[ { "code": null, "e": 24814, "s": 24786, "text": "\n29 May, 2021" }, { "code": null, "e": 24934, "s": 24814, "text": "Accessing a NumPy based array by a specific Column index can be achieved by the indexing. Let’s discuss this in detail." }, { "code": null, "e": 24975,...
How to pass multiple data from one activity to another in Android?
This example demonstrate about How to pass multiple data from one activity to another 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" encodin...
[ { "code": null, "e": 1159, "s": 1062, "text": "This example demonstrate about How to pass multiple data from one activity to another in Android" }, { "code": null, "e": 1288, "s": 1159, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill al...
GWT - Button Widget
The Button widget represents a standard push button. Following is the declaration for com.google.gwt.user.client.ui.Button class − public class Button extends ButtonBase Following default CSS Style rule will be applied to all the Button widget. You can override it as per your requirements. .gwt-Button { } Button() C...
[ { "code": null, "e": 2076, "s": 2023, "text": "The Button widget represents a standard push button." }, { "code": null, "e": 2154, "s": 2076, "text": "Following is the declaration for com.google.gwt.user.client.ui.Button class −" }, { "code": null, "e": 2196, "s":...
Pyspark – demand forecasting data science project | by Alexandre Wrg | Towards Data Science
In this article, we will build a step-by-step demand forecasting project with Pyspark. Here, the list of tasks: Import dataFilter dataFeatures engineering (features creation)Imputing dataFeatures engineering (features transformation)Applying a gradient boosted tree regressorOptimise the model with Kfold and GridSearch ...
[ { "code": null, "e": 284, "s": 172, "text": "In this article, we will build a step-by-step demand forecasting project with Pyspark. Here, the list of tasks:" }, { "code": null, "e": 506, "s": 284, "text": "Import dataFilter dataFeatures engineering (features creation)Imputing dat...
Isolation Forest from Scratch. Implementation of Isolation forest from... | by Carlos Mougan | Towards Data Science
Lately, I have been reading about Isolation Forest and its performance in outlier/anomaly detection. After carefully reading about the algorithm (and not finding any vanilla tutorial of my taste). I decided to code it from scratch in the simplest possible way in order to grasp the algorithm better. The goal of this pos...
[ { "code": null, "e": 472, "s": 172, "text": "Lately, I have been reading about Isolation Forest and its performance in outlier/anomaly detection. After carefully reading about the algorithm (and not finding any vanilla tutorial of my taste). I decided to code it from scratch in the simplest possible...
C - Constants and Literals
Constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are enumeration constants as well. Constants a...
[ { "code": null, "e": 2214, "s": 2084, "text": "Constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals." }, { "code": null, "e": 2393, "s": 2214, "text": "Constants can be of any of the basic data types like...
C# StartsWith() Method
The StartsWith() method in C# is used to determine whether the beginning of this string instance matches the specified string. public bool StartsWith (string val); Above, val is the string to compare. Live Demo using System; public class Demo { public static void Main() { string str = "JohnAndJacob"; Co...
[ { "code": null, "e": 1189, "s": 1062, "text": "The StartsWith() method in C# is used to determine whether the beginning of this string instance matches the specified string." }, { "code": null, "e": 1226, "s": 1189, "text": "public bool StartsWith (string val);" }, { "cod...
How to copy a collection from one database to another in MongoDB?
In MongoDB, the command does not exist to copy a collection from one database to another. To achieve it, use the below concept − db.yourCollectionName.find().forEach(function(yourVariableName){ db.getSiblingDB('yourDestinationDatabase')['yourCollectionName'].insert(yourVariableName); }); Let us create a collection i...
[ { "code": null, "e": 1191, "s": 1062, "text": "In MongoDB, the command does not exist to copy a collection from one database to another. To achieve it, use the below concept −" }, { "code": null, "e": 1354, "s": 1191, "text": "db.yourCollectionName.find().forEach(function(yourVar...
Creating an index on a nested MongoDB field?
You can use dot(.) notation for this. Let us first create a collection with documents − > db.createIndexOnNestedFieldDemo.insertOne( {"UserDetails":{"UserPersonalDetails":{"UserFirstName":"John","UserLastName":"Smith"}}}); { "acknowledged" : true, "insertedId" : ObjectId("5ce929c778f00858fb12e916") ...
[ { "code": null, "e": 1150, "s": 1062, "text": "You can use dot(.) notation for this. Let us first create a collection with documents −" }, { "code": null, "e": 1830, "s": 1150, "text": "> db.createIndexOnNestedFieldDemo.insertOne(\n {\"UserDetails\":{\"UserPersonalDetails\":{\"...
What are the DDL commands in DBMS?
Data definition language (DDL) is a language that allows the user to define the data and their relationship to other types of data. Data Definition language statements work with the structure of the database table. Various data types used in defining columns in a database table Various data types used in defining colum...
[ { "code": null, "e": 1194, "s": 1062, "text": "Data definition language (DDL) is a language that allows the user to define the data and their relationship to other types of data." }, { "code": null, "e": 1277, "s": 1194, "text": "Data Definition language statements work with the ...
NHibernate - Load/Get
In this chapter, we will be covering how the Load and Get features are working and how we can use them. These are two very similar APIs provided by ISession for loading an object by primary key. Get − it will return the object or a null. Get − it will return the object or a null. Load − it will return the object or it ...
[ { "code": null, "e": 2528, "s": 2333, "text": "In this chapter, we will be covering how the Load and Get features are working and how we can use them. These are two very similar APIs provided by ISession for loading an object by primary key." }, { "code": null, "e": 2571, "s": 2528, ...
SAP BPC - Configuring Elimination
In BPC, it is necessary to configure intercompany eliminations between subsidiaries or parents to avoid double counting. Intercompany eliminations is performed with help of script logic. If you have transactions between subsidiaries Co. XP02, XP03, these transactions should be eliminated. These transactions are for int...
[ { "code": null, "e": 2361, "s": 2174, "text": "In BPC, it is necessary to configure intercompany eliminations between subsidiaries or parents to avoid double counting. Intercompany eliminations is performed with help of script logic." }, { "code": null, "e": 2578, "s": 2361, "tex...
When and where static blocks are executed in java?
A static block is a block of code with a static keyword. In general, these are used to initialize the static members. JVM executes static blocks before the main method at the time of class loading. Live Demo public class MyClass { static{ System.out.println("Hello this is a static block"); } public stat...
[ { "code": null, "e": 1260, "s": 1062, "text": "A static block is a block of code with a static keyword. In general, these are used to initialize the static members. JVM executes static blocks before the main method at the time of class loading." }, { "code": null, "e": 1271, "s": 126...
C++ Vector Library - resize() Function
The C++ function std::vector::resize() changes the size of vector. If n is smaller than current size then extra elements are destroyed. If n is greater than current container size then new elements are inserted at the end of vector. If val is specified then new elements are initialed with val. Following is the declarat...
[ { "code": null, "e": 2739, "s": 2603, "text": "The C++ function std::vector::resize() changes the size of vector. If n is smaller than current size then extra elements are destroyed." }, { "code": null, "e": 2836, "s": 2739, "text": "If n is greater than current container size th...
Node.js URL.format(urlObject) API - GeeksforGeeks
14 Oct, 2021 The URL.format(urlObject) is the inbuilt API provided by URL class, which takes an object or string and return a formatted string derived from that object or string. Syntax: const url.format(urlObject) If the urlObject is not an object or string, then it will throw a TypeError.Return value: It returns str...
[ { "code": null, "e": 24187, "s": 24159, "text": "\n14 Oct, 2021" }, { "code": null, "e": 24353, "s": 24187, "text": "The URL.format(urlObject) is the inbuilt API provided by URL class, which takes an object or string and return a formatted string derived from that object or strin...
XML - DTDs
The XML Document Type Declaration, commonly known as DTD, is a way to describe XML language precisely. DTDs check vocabulary and validity of the structure of XML documents against grammatical rules of appropriate XML language. An XML DTD can be either specified inside the document, or it can be kept in a separate docum...
[ { "code": null, "e": 2188, "s": 1961, "text": "The XML Document Type Declaration, commonly known as DTD, is a way to describe XML language precisely. DTDs check vocabulary and validity of the structure of XML documents against grammatical rules of appropriate XML language." }, { "code": null...
Apex - Testing
Testing is the integrated part of Apex or any other application development. In Apex, we have separate test classes to develop for all the unit testing. In SFDC, the code must have 75% code coverage in order to be deployed to Production. This code coverage is performed by the test classes. Test classes are the code sni...
[ { "code": null, "e": 2205, "s": 2052, "text": "Testing is the integrated part of Apex or any other application development. In Apex, we have separate test classes to develop for all the unit testing." }, { "code": null, "e": 2428, "s": 2205, "text": "In SFDC, the code must have 7...
An Efficient Way to Read Data from the Web Directly into Python | by Luke Gloege, Ph.D. | Towards Data Science
Storage space on my hard drive is precious and I don’t want to download a bunch of data when I’m just going to process it down into something manageable. Sometimes we can paste a URL into pd.read_csv() or xr.read_dataset() and it will gladly read the data. For example, xarray includes support for OPeNDAP to access some...
[ { "code": null, "e": 326, "s": 172, "text": "Storage space on my hard drive is precious and I don’t want to download a bunch of data when I’m just going to process it down into something manageable." }, { "code": null, "e": 527, "s": 326, "text": "Sometimes we can paste a URL int...
Logistic Regression Model Fitting and Finding the Correlation, P-Value, Z Score, Confidence Interval, and More | by Rashida Nasrin Sucky | Towards Data Science
Most data scientists who do not have strong statistics background may think of logistic regression as a machine learning model. That’s true. But it has been around for a long time in statistics. Statistics is a very important part of data science and machine learning. Because it is essential for any type of exploratory...
[ { "code": null, "e": 366, "s": 171, "text": "Most data scientists who do not have strong statistics background may think of logistic regression as a machine learning model. That’s true. But it has been around for a long time in statistics." }, { "code": null, "e": 670, "s": 366, ...
Understanding How Schools Work with Canonical Correlation Analysis | by Liana Mehrabyan | Towards Data Science
Us data scientists spend most of our time analysing relationships and patterns in our data. Most of our exploratory tools, however, focus on one-to-one relationships. But what if we want to have a more generalised view and find commonalities and patterns between certain groups of variables? This post includes: an intro...
[ { "code": null, "e": 463, "s": 171, "text": "Us data scientists spend most of our time analysing relationships and patterns in our data. Most of our exploratory tools, however, focus on one-to-one relationships. But what if we want to have a more generalised view and find commonalities and patterns ...
Underscore.js _.contains Function
17 Dec, 2021 The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even without using any built-in objects. The _.contains() function is used to check whether a particular item is given in the list of not. This func...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2021" }, { "code": null, "e": 530, "s": 28, "text": "The Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invokes, etc even without usi...
How to Use Italic Font in R?
04 Dec, 2021 In this article, we are going to see how to use italic font using various functionalities in the R programming language. In this approach to use the italic function, the user needs to use three different functions within each other, and the italic font will be applied to the given text, starting with the s...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Dec, 2021" }, { "code": null, "e": 149, "s": 28, "text": "In this article, we are going to see how to use italic font using various functionalities in the R programming language." }, { "code": null, "e": 716, "s": 149...