title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Pair plot and PairGrid in Details | by Rashida Nasrin Sucky | Towards Data Science
When I first learn to make the pairplots, I used them in every project for some time. I still use them a lot. Pair plots are several bivariate distributions in one plot and can be made using just one simple function. Even The most basic one is very useful in a data analytics project where there are several continuous v...
[ { "code": null, "e": 776, "s": 172, "text": "When I first learn to make the pairplots, I used them in every project for some time. I still use them a lot. Pair plots are several bivariate distributions in one plot and can be made using just one simple function. Even The most basic one is very useful...
Mongoose | findOneAndDelete() Function - GeeksforGeeks
20 May, 2020 The findOneAndDelete() function is used to find a matching document, remove it, and passes the found document (if any) to the callback. Installation of mongoose module: You can visit the link to Install mongoose module. You can install this package by using this command.npm install mongooseAfter installing...
[ { "code": null, "e": 24128, "s": 24100, "text": "\n20 May, 2020" }, { "code": null, "e": 24264, "s": 24128, "text": "The findOneAndDelete() function is used to find a matching document, remove it, and passes the found document (if any) to the callback." }, { "code": null,...
PHP - Simple XML GET
XML Get has used to get the node values from xml file. The following example shows, How to get the data from xml. Note.xml is xml file, It can accessed by php file. <SUBJECT> <COURSE>Android</COURSE> <COUNTRY>India</COUNTRY> <COMPANY>TutorialsPoint</COMPANY> <PRICE>$10</PRICE> </SUBJECT> Index page has righ...
[ { "code": null, "e": 2871, "s": 2757, "text": "XML Get has used to get the node values from xml file. The following example shows, How to get the data from xml." }, { "code": null, "e": 2922, "s": 2871, "text": "Note.xml is xml file, It can accessed by php file." }, { "co...
Java program to count words in a given string
The words in a given string can be counted using a while loop. An example of this is given as follows − String = Sky is blue Number of words = 3 A program that demonstrates this is given as follows. Live Demo public class Example { public static void main(String args[]) { int flag = 0; int count = 0; ...
[ { "code": null, "e": 1166, "s": 1062, "text": "The words in a given string can be counted using a while loop. An example of this is given as follows −" }, { "code": null, "e": 1207, "s": 1166, "text": "String = Sky is blue\nNumber of words = 3" }, { "code": null, "e":...
Semaphores in Operating System
Semaphores are integer variables that are used to solve the critical section problem by using two atomic operations, wait and signal that are used for process synchronization. The definitions of wait and signal are as follows − WaitThe wait operation decrements the value of its argument S, if it is positive. If S is ne...
[ { "code": null, "e": 1238, "s": 1062, "text": "Semaphores are integer variables that are used to solve the critical section problem by using two atomic operations, wait and signal that are used for process synchronization." }, { "code": null, "e": 1290, "s": 1238, "text": "The de...
Java Program to add and remove elements from a set which maintains the insertion order
Create a LinkedHashSet − LinkedHashSet<Integer>set = new LinkedHashSet<Integer>(); Now, add elements to the Set − set.add(20); set.add(60); set.add(80); set.add(120); set.add(150); set.add(200); For removing the elements − set.remove(150); set.remove(260); Above process of insertion and deletion won’t affect the insert...
[ { "code": null, "e": 1087, "s": 1062, "text": "Create a LinkedHashSet −" }, { "code": null, "e": 1145, "s": 1087, "text": "LinkedHashSet<Integer>set = new LinkedHashSet<Integer>();" }, { "code": null, "e": 1176, "s": 1145, "text": "Now, add elements to the Set...
Lodash _.truncate() Method - GeeksforGeeks
18 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 _.truncate() method of String in lodash is used to truncate the stated string if it is longer than the specified string length. The last characters of the string w...
[ { "code": null, "e": 24722, "s": 24694, "text": "\n18 Sep, 2020" }, { "code": null, "e": 24862, "s": 24722, "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 connect a progress bar to a function in Tkinter?
A Progress Bar helps to visualize the state of a running process. We have used and interacted with many progress bars such as getting the status of downloading a file from the internet, Loading a file on the local system, etc. Let us suppose that we want to create and connect a progress bar in our application. We will ...
[ { "code": null, "e": 1289, "s": 1062, "text": "A Progress Bar helps to visualize the state of a running process. We have used and interacted with many progress bars such as getting the status of downloading a file from the internet, Loading a file on the local system, etc." }, { "code": null...
Python Program to Form a New String where the First Character and the Last Character have been Exchanged
When it is required to form a new string where the first and last characters are exchanged, a method can be defined that uses indexing to form the new string. Below is the demonstration of the same − Live Demo def exchange_val(my_string): return my_string[-1:] + my_string[1:-1] + my_string[:1] my_string = “Hi ther...
[ { "code": null, "e": 1221, "s": 1062, "text": "When it is required to form a new string where the first and last characters are exchanged, a method can be defined that uses indexing to form the new string." }, { "code": null, "e": 1262, "s": 1221, "text": "Below is the demonstrat...
Tryit Editor v3.6 - Show Node.js Command Prompt
var fs = require('fs'); ​ //create a file named mynewfile1.txt: fs.appendFile('mynewfile1.txt', 'Hello content!', function (err) { if (err) throw err;
[ { "code": null, "e": 24, "s": 0, "text": "var fs = require('fs');" }, { "code": null, "e": 26, "s": 24, "text": "​" }, { "code": null, "e": 64, "s": 26, "text": "//create a file named mynewfile1.txt:" }, { "code": null, "e": 131, "s": 64, "...
Spotify Genre Classification Algorithm | by Caelan Dwyer | Towards Data Science
This article assumes a basic understanding of machine learning algorithms and data science techniques. Article outline: Supervised machine learning Classification — multi-class Dataset — preliminary analysis & feature selection Algorithm selection — SVM, Logistic Regression, Random Forest Model performance — accuracy s...
[ { "code": null, "e": 150, "s": 47, "text": "This article assumes a basic understanding of machine learning algorithms and data science techniques." }, { "code": null, "e": 167, "s": 150, "text": "Article outline:" }, { "code": null, "e": 195, "s": 167, "text":...
Java - The Enumeration Interface
The Enumeration interface defines the methods by which you can enumerate (obtain one at a time) the elements in a collection of objects. This legacy interface has been superceded by Iterator. Although not deprecated, Enumeration is considered obsolete for new code. However, it is used by several methods defined by the ...
[ { "code": null, "e": 2514, "s": 2377, "text": "The Enumeration interface defines the methods by which you can enumerate (obtain one at a time) the elements in a collection of objects." }, { "code": null, "e": 2837, "s": 2514, "text": "This legacy interface has been superceded by ...
CSS | transform-origin Property - GeeksforGeeks
06 Nov, 2019 The transform-origin property of CSS is used to specify the origin of rotation of an element. It is the point about which an element is rotated. It can be used for both 2D and 3D rotations. Syntax: transform-origin: position | initial | inherit Property Values: position: This specifies the position of the ...
[ { "code": null, "e": 24985, "s": 24957, "text": "\n06 Nov, 2019" }, { "code": null, "e": 25175, "s": 24985, "text": "The transform-origin property of CSS is used to specify the origin of rotation of an element. It is the point about which an element is rotated. It can be used for...
How to Install and Configure MS SQL (Beta) on CentOS 7
In this article, we will learn about – How to install and configure MS SQL on CentOS 7. Microsoft has recently announced that they are planning to release the MS SQL for Linux. Specially the beta versions for RedHat enterprises Linux, Centos & Ubuntu but only with 64-bit editions. A machine with a minimum of 4 GB RAM a...
[ { "code": null, "e": 1344, "s": 1062, "text": "In this article, we will learn about – How to install and configure MS SQL on CentOS 7. Microsoft has recently announced that they are planning to release the MS SQL for Linux. Specially the beta versions for RedHat enterprises Linux, Centos & Ubuntu bu...
How to replace only the first repeated value in a string in MySQL
For this, you can use REGEXP_REPLACE(). Let’s say our string is − This is my first MySQL query. This is the first tutorial. I am learning for the first time. We need to replace only the 1st occurrence of a specific word, let’s say “first”. The output should be − This is my second MySQL query. This is the first tutorial...
[ { "code": null, "e": 1128, "s": 1062, "text": "For this, you can use REGEXP_REPLACE(). Let’s say our string is −" }, { "code": null, "e": 1220, "s": 1128, "text": "This is my first MySQL query. This is the first tutorial. I am learning for the first time." }, { "code": nu...
Python | Multiply 2d numpy array corresponding to 1d array - GeeksforGeeks
15 Mar, 2019 Given a two numpy arrays, the task is to multiply 2d numpy array with 1d numpy array each row corresponding to one element in numpy. Let’s discuss a few methods for a given task. Method #1: Using np.newaxis() # Python code to demonstrate# multiplication of 2d array# with 1d array import numpy as np ini_a...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n15 Mar, 2019" }, { "code": null, "e": 24471, "s": 24292, "text": "Given a two numpy arrays, the task is to multiply 2d numpy array with 1d numpy array each row corresponding to one element in numpy. Let’s discuss a few methods fo...
How to call the constructor of a superclass from a constructor in java?
Whenever you inherit/extend a class, a copy of superclass’s members is created in the subclass object and thus, using the subclass object you can access the members of both classes. In the following example we have a class named SuperClass with a method with name demo(). We are extending this class with another class (...
[ { "code": null, "e": 1244, "s": 1062, "text": "Whenever you inherit/extend a class, a copy of superclass’s members is created in the subclass object and thus, using the subclass object you can access the members of both classes." }, { "code": null, "e": 1393, "s": 1244, "text": "...
GATE | GATE CS 2010 | Question 6 - GeeksforGeeks
19 Oct, 2020 The minterm expansion of f(P, Q, R) = PQ + QR’ + PR’ is(A) m2 + m4 + m6 + m7(B) m0 + m1 + m3 + m5(C) m0 + m1 + m6 + m7(D) m2 + m3 + m4 + m5Answer: (A)Explanation: K-map, = PQ + QR’ + PR’ = PQ(R+R’) + (P+P’)QR’ + P(Q+Q’)R’ = PQR + PQR’ +PQR’ +P’QR’ + PQR’ + PQ’R’ = PQR(m7) + PQR'(m6)+P’QR'(m2) +PQ’R'(m4) ...
[ { "code": null, "e": 24413, "s": 24385, "text": "\n19 Oct, 2020" }, { "code": null, "e": 24583, "s": 24413, "text": "The minterm expansion of f(P, Q, R) = PQ + QR’ + PR’ is(A) m2 + m4 + m6 + m7(B) m0 + m1 + m3 + m5(C) m0 + m1 + m6 + m7(D) m2 + m3 + m4 + m5Answer: (A)Explanation: ...
Multithreading in C
Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of multitasking: process-based and thread-based. Process-based multitasking handles the concurrent execution of programs. Thread-base...
[ { "code": null, "e": 1298, "s": 1062, "text": "Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of multitasking: process-based and thread-based." }, { "co...
Building MobileNet from Scratch Using TensorFlow | by Arjun Sarkar | Towards Data Science
Previously I have discussed the architecture of MobileNet and its most important layer “Depthwise Separable Convolutions” in the story — Understanding Depthwise Separable Convolutions and the efficiency of MobileNets. Next, we will see how to implement this architecture from scratch using TensorFlow. Figure 2 shows the...
[ { "code": null, "e": 264, "s": 46, "text": "Previously I have discussed the architecture of MobileNet and its most important layer “Depthwise Separable Convolutions” in the story — Understanding Depthwise Separable Convolutions and the efficiency of MobileNets." }, { "code": null, "e": 3...
Comparable in Java - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Comparable is an interface in Java and it com...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Powershell - Create File
New-Item cmdlet is used to create a file by passing the path using -Path as path of the file and -ItemType as File. In this example, we'll create a file in D:\Temp\Test Folder with name "Test File.txt" Type the following command in PowerShell ISE Console New-Item -Path 'D:\temp\Test Folder\Test File.txt' -ItemType File...
[ { "code": null, "e": 2150, "s": 2034, "text": "New-Item cmdlet is used to create a file by passing the path using -Path as path of the file and -ItemType as File." }, { "code": null, "e": 2236, "s": 2150, "text": "In this example, we'll create a file in D:\\Temp\\Test Folder with...
JavaScript Arithmetic
Arithmetic operators perform arithmetic on numbers (literals or variables). A typical arithmetic operation operates on two numbers. The two numbers can be literals: or variables: or expressions: The numbers (in an arithmetic operation) are called operands. The operation (to be performed between the two operands) is def...
[ { "code": null, "e": 76, "s": 0, "text": "Arithmetic operators perform arithmetic on numbers (literals or variables)." }, { "code": null, "e": 132, "s": 76, "text": "A typical arithmetic operation operates on two numbers." }, { "code": null, "e": 165, "s": 132, ...
PHP $_ENV
$_ENV is another superglobal associative array in PHP. It stores environment variables available to current script. $HTTP_ENV_VARS also contains the same information, but is not a superglobal, and now been deprecated. Environment variables are imported into global namespace. Most of these variables are provided by the ...
[ { "code": null, "e": 1280, "s": 1062, "text": "$_ENV is another superglobal associative array in PHP. It stores environment variables available to current script. $HTTP_ENV_VARS also contains the same information, but is not a superglobal, and now been deprecated." }, { "code": null, "e"...
Dart - Const And Final Keyword - GeeksforGeeks
10 Sep, 2021 Dart supports the assignment of constant value to a variable. These are done by the use of the following keyword: const keywordfinal keyword const keyword final keyword These keywords are used to keep the value of a variable static throughout the code base, meaning once the variable is defined its state ca...
[ { "code": null, "e": 23969, "s": 23941, "text": "\n10 Sep, 2021" }, { "code": null, "e": 24083, "s": 23969, "text": "Dart supports the assignment of constant value to a variable. These are done by the use of the following keyword:" }, { "code": null, "e": 24110, "...
LSTM Autoencoder for Extreme Rare Event Classification in Keras | by Chitta Ranjan | Towards Data Science
<<Download the free book, Understanding Deep Learning, to learn more>> This post is a continuation of my previous post Extreme Rare Event Classification using Autoencoders. In the previous post, we talked about the challenges in an extremely rare event data with less than 1% positively labeled data. We built an Autoenc...
[ { "code": null, "e": 118, "s": 47, "text": "<<Download the free book, Understanding Deep Learning, to learn more>>" }, { "code": null, "e": 443, "s": 118, "text": "This post is a continuation of my previous post Extreme Rare Event Classification using Autoencoders. In the previou...
How to remove active nav-tab when click outside of nav-tab in Bootstrap ? - GeeksforGeeks
31 Jul, 2019 Bootstrap has the class called “collapse navbar-collapse” which collapses the navigation bar when the user changes the screen resolution. The java-script along-with it at the bottom of the code triggers the collapsed menu in such a way that when the user clicks the hamburger icon of the menu and navigates ...
[ { "code": null, "e": 24438, "s": 24410, "text": "\n31 Jul, 2019" }, { "code": null, "e": 25080, "s": 24438, "text": "Bootstrap has the class called “collapse navbar-collapse” which collapses the navigation bar when the user changes the screen resolution. The java-script along-wit...
How to check windows certificate expiry date using PowerShell?
To get the particular windows certificate expiry date from the particular store, we first need the full path of that certificate along with a thumbprint. If the thumbprint is not known to you, we can use the friendly name. With the thumbprint, Get-ChildItem Cert:\LocalMachine\root\0563B8630D62D75 | fl * When you run th...
[ { "code": null, "e": 1285, "s": 1062, "text": "To get the particular windows certificate expiry date from the particular store, we first need the full path of that certificate along with a thumbprint. If the thumbprint is not known to you, we can use the friendly name." }, { "code": null, ...
JavaScript Function Literals
JavaScript 1.2 introduces the concept of function literals which is another new way of defining functions. A function literal is an expression that defines an unnamed function. The syntax for a function literal is much like a function statement, except that it is used as an expression rather than a statement and no fun...
[ { "code": null, "e": 2643, "s": 2466, "text": "JavaScript 1.2 introduces the concept of function literals which is another new way of defining functions. A function literal is an expression that defines an unnamed function." }, { "code": null, "e": 2810, "s": 2643, "text": "The s...
Vehicle Crashes & Machine Learning | by Abdishakur | Towards Data Science
Road accidents constitute a major problem in our societies around the world. The World Health Organization(WHO) estimated that 1.25 million deaths were related to road traffic injuries in the year 2010. For the year 2016, the USA alone had recorded 37, 461 motor vehicle crash-related deaths, averaging around 102 people...
[ { "code": null, "e": 710, "s": 171, "text": "Road accidents constitute a major problem in our societies around the world. The World Health Organization(WHO) estimated that 1.25 million deaths were related to road traffic injuries in the year 2010. For the year 2016, the USA alone had recorded 37, 46...
HTML | type Attribute - GeeksforGeeks
06 Jul, 2021 The HTML type Attribute is used to specify the type of button for <button> elements. It is also used in the <input> element to specify the type of input to display. For embed elements like link, object, script, source, and style used to specify the Internet Media Type. Syntax: <element type="value"> Su...
[ { "code": null, "e": 24589, "s": 24561, "text": "\n06 Jul, 2021" }, { "code": null, "e": 24861, "s": 24589, "text": "The HTML type Attribute is used to specify the type of button for <button> elements. It is also used in the <input> element to specify the type of input to display...
C# Program to display a string in reverse alphabetic order
Set a string array and convert it to character array − string str = "Amit"; char[] arr = str.ToCharArray(); Now, use the Reverse method to display the above string in reverse alphabetic order − Array.Reverse(arr); Here is the complete code − Live Demo using System; using System.Linq; using System.IO; class Program { ...
[ { "code": null, "e": 1117, "s": 1062, "text": "Set a string array and convert it to character array −" }, { "code": null, "e": 1170, "s": 1117, "text": "string str = \"Amit\";\nchar[] arr = str.ToCharArray();" }, { "code": null, "e": 1256, "s": 1170, "text": "...
Popularity Ranking of Programming Languages | by Vahid Vaezian | Towards Data Science
There has never been a unanimous agreement on what the most popular programming languages are, and probably never will be. Yet we believe that there is merit in trying to come up with ways to rank the popularity of programming languages. It helps us to see the trends over time and gives us hints as to what to focus on....
[ { "code": null, "e": 579, "s": 172, "text": "There has never been a unanimous agreement on what the most popular programming languages are, and probably never will be. Yet we believe that there is merit in trying to come up with ways to rank the popularity of programming languages. It helps us to se...
How to change the background color of a plot created by using plot function in R?
To change the focus of a plot we can do multiple things and one such thing is changing the background of the plot. If the background color of a plot is different than white then obviously it will get attention of the readers because this is unusual as most of the times the plots have white backgrounds, hence if we want...
[ { "code": null, "e": 1495, "s": 1062, "text": "To change the focus of a plot we can do multiple things and one such thing is changing the background of the plot. If the background color of a plot is different than white then obviously it will get attention of the readers because this is unusual as m...
jQuery Examples - $("ul li:first")
"$("ul li:first")" get only the first <li> element of the <ul>. Here is the simple syntax to use this selector − $("tagname child-element:first") Here is the description of all the parameters used by this selector − tagname − Any standard container tag name like ol, ul etc. tagname − Any standard container tag name li...
[ { "code": null, "e": 1752, "s": 1688, "text": "\"$(\"ul li:first\")\" get only the first <li> element of the <ul>." }, { "code": null, "e": 1801, "s": 1752, "text": "Here is the simple syntax to use this selector −" }, { "code": null, "e": 1835, "s": 1801, "te...
3 Steps to Build and Deploy your NLP model as a Microservice on Azure | by Ricardo Carvalho | Towards Data Science
After spending countless hours training your model, you now need to make it available for other applications or services. Depending on how you approach the deployment to the cloud, this process may take several hours or just a few minutes. More importantly, your deployment choice should be based on your scalability and...
[ { "code": null, "e": 294, "s": 172, "text": "After spending countless hours training your model, you now need to make it available for other applications or services." }, { "code": null, "e": 514, "s": 294, "text": "Depending on how you approach the deployment to the cloud, this ...
How to set the font of the content present in the ComboBox in C#? - GeeksforGeeks
27 Jun, 2019 In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is displayed at a time and the rest of the items are present in the drop-down menu. You are allowed to set the font of the content present in your ...
[ { "code": null, "e": 24222, "s": 24194, "text": "\n27 Jun, 2019" }, { "code": null, "e": 24617, "s": 24222, "text": "In Windows forms, ComboBox provides two different features in a single control, it means ComboBox works as both TextBox and ListBox. In ComboBox, only one item is ...
Become a video analysis expert using python | by Kunal Dhariwal | Towards Data Science
The task of generating highlights for any sport is quite tedious and difficult. It involves a lot of tech and other software, hardware needs. You also need to invest in a lot of time to do it. If you’re into such a video company or department then it is okay, but if you’re a normal user just like me, you wouldn’t want ...
[ { "code": null, "e": 771, "s": 171, "text": "The task of generating highlights for any sport is quite tedious and difficult. It involves a lot of tech and other software, hardware needs. You also need to invest in a lot of time to do it. If you’re into such a video company or department then it is o...
How to create a upload file button in ReactJS? - GeeksforGeeks
03 Aug, 2021 As we know that uploading is a very important step in any application, so we can create a simple upload file button in ReactJS using the following approach. Material UI for React has this component available for us and it is very easy to integrate. Creating React Application And Installing Module: Step 1:...
[ { "code": null, "e": 25034, "s": 25006, "text": "\n03 Aug, 2021" }, { "code": null, "e": 25284, "s": 25034, "text": "As we know that uploading is a very important step in any application, so we can create a simple upload file button in ReactJS using the following approach. Materi...
PHP program to find the maximum element in an array
To find the maximum element in an array, the PHP code is as follows − Live Demo <?php function get_max_value($my_array){ $n = count($my_array); $max_val = $my_array[0]; for ($i = 1; $i < $n; $i++) if ($max_val < $my_array[$i]) $max_val = $my_array[$i]; return $max_val; ...
[ { "code": null, "e": 1132, "s": 1062, "text": "To find the maximum element in an array, the PHP code is as follows −" }, { "code": null, "e": 1143, "s": 1132, "text": " Live Demo" }, { "code": null, "e": 1534, "s": 1143, "text": "<?php\n function get_max_val...
ES6 - split()
This method splits a String object into an array of strings by separating the string into substrings. string.split([separator][, limit]); separator − Specifies the character to use for separating the string. Ifseparator is omitted, the array returned contains one element consisting of the entire string. separator − S...
[ { "code": null, "e": 2379, "s": 2277, "text": "This method splits a String object into an array of strings by separating the string into substrings." }, { "code": null, "e": 2417, "s": 2379, "text": "string.split([separator][, limit]); \n" }, { "code": null, "e": 2584...
Output of Java Program | Set 8
02 Aug, 2021 Difficulty level : IntermediatePredict the output of following Java Programs.Program 1: Java class GfG{ public static void main(String args[]) { String s1 = new String("geeksforgeeks"); String s2 = new String("geeksforgeeks"); if (s1 == s2) System.out.println("Equal")...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Aug, 2021" }, { "code": null, "e": 143, "s": 54, "text": "Difficulty level : IntermediatePredict the output of following Java Programs.Program 1: " }, { "code": null, "e": 148, "s": 143, "text": "Java" }, { ...
Difference between Assertions and Triggers in DBMS
21 Sep, 2021 1. What are Assertions? When a constraint involves 2 (or) more tables, the table constraint mechanism is sometimes hard and results may not come as expected. To cover such situation SQL supports the creation of assertions that are constraints not associated with only one table. And an assertion statement s...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Sep, 2021" }, { "code": null, "e": 523, "s": 54, "text": "1. What are Assertions? When a constraint involves 2 (or) more tables, the table constraint mechanism is sometimes hard and results may not come as expected. To cover such si...
Smart calculator in Python
11 Jan, 2022 Problem – This smart calculator works on the text statement also. The user need not provide algebraic expression always. It fetches the word form the command (given by the user) and then formulates the expression.Examples: Input : Hi calculator plz find the lcm of 4 and 8. Output : 8 Input : Hi smar...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jan, 2022" }, { "code": null, "e": 252, "s": 28, "text": "Problem – This smart calculator works on the text statement also. The user need not provide algebraic expression always. It fetches the word form the command (given by the use...
Swift – Operators
02 Feb, 2022 Swift is a general-purpose, multi-paradigm, and compiled programming language which is developed by Apple Inc. In Swift, an operator is a symbol that tells the compiler to perform the manipulations in the given expression. Just like other programming languages, the working of operators in Swift is also the...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Feb, 2022" }, { "code": null, "e": 565, "s": 28, "text": "Swift is a general-purpose, multi-paradigm, and compiled programming language which is developed by Apple Inc. In Swift, an operator is a symbol that tells the compiler to per...
LinkedList push() Method in Java
10 Dec, 2018 The java.util.LinkedList.push() method is used to push an element at the starting(top) of the stack represented by LinkedList. This is similar to the addFirst() method of LinkedList and simply inserts the element at the first position or top of the linked list. Syntax: LinkedListObject.push(Object element)...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Dec, 2018" }, { "code": null, "e": 290, "s": 28, "text": "The java.util.LinkedList.push() method is used to push an element at the starting(top) of the stack represented by LinkedList. This is similar to the addFirst() method of Link...
Int32.Equals Method in C# with Examples
04 Apr, 2019 Int32.Equals() Method is used to get a value which indicates whether the current instance is equal to a specified object or Int32 or not. There are two methods in the overload list of this method as follows: Equals(Int32) Method Equals(Object) Method This method is used to return a value indicating whether...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Apr, 2019" }, { "code": null, "e": 236, "s": 28, "text": "Int32.Equals() Method is used to get a value which indicates whether the current instance is equal to a specified object or Int32 or not. There are two methods in the overload...
Form Handling in ReactJS
In this article, we are going to see how to handle the forms properly in a React application. Handling Forms is one of the most crucial parts needed while building a real-world React application. It is all about taking the inputs from the user, validating it and displaying if there are errors in the data submitted by t...
[ { "code": null, "e": 1156, "s": 1062, "text": "In this article, we are going to see how to handle the forms properly in a React application." }, { "code": null, "e": 1391, "s": 1156, "text": "Handling Forms is one of the most crucial parts needed while building a real-world React...
C program to draw a solar system using computer graphics - GeeksforGeeks
02 Jul, 2021 Prerequisite: Graphics.h, include graphics.h in CodeBlocks Required header files: #include <stdio.h> #include <conio.h> #include <graphics.h> #include <dos.h> #include <math.h> Functions used: getmaxx(): It returns the maximum X coordinate for current graphics mode and driver. setcolor(): It is used to se...
[ { "code": null, "e": 24234, "s": 24206, "text": "\n02 Jul, 2021" }, { "code": null, "e": 24293, "s": 24234, "text": "Prerequisite: Graphics.h, include graphics.h in CodeBlocks" }, { "code": null, "e": 24316, "s": 24293, "text": "Required header files:" }, ...
Check if list is sorted or not in Python
Lists are the most widely used data collectios in python. We may come across situation when we need to know if the given list is already sorted or not. In this article we will see the approaches to achieve this. We take a copy of the given list, apply sort function to it and store that copy as a new list. Then we compa...
[ { "code": null, "e": 1274, "s": 1062, "text": "Lists are the most widely used data collectios in python. We may come across situation when we need to know if the given list is already sorted or not. In this article we will see the approaches to achieve this." }, { "code": null, "e": 1447...
Java - The Map.Entry Interface
The Map.Entry interface enables you to work with a map entry. The entrySet( ) method declared by the Map interface returns a Set containing the map entries. Each of these set elements is a Map.Entry object. Following table summarizes the methods declared by this interface − boolean equals(Object obj) Returns true if ob...
[ { "code": null, "e": 2439, "s": 2377, "text": "The Map.Entry interface enables you to work with a map entry." }, { "code": null, "e": 2584, "s": 2439, "text": "The entrySet( ) method declared by the Map interface returns a Set containing the map entries. Each of these set element...
Money Distributions | Practice | GeeksforGeeks
Find the number of ways in which N coins can be distributed among K pupils such that each pupil receives at least one coin each. Two distributions are said to be different only if they have at least one pupil who got a different number of coins. Example 1: Input: N = 7, K = 3 Output: 15 Explanation: Coin distributio...
[ { "code": null, "e": 474, "s": 226, "text": "Find the number of ways in which N coins can be distributed among K pupils such that each pupil receives at least one coin each. Two distributions are said to be different only if they have at least one pupil who got a different number of coins.\n " }, ...
Program to convert Hexa-Decimal Number to its equivalent BCD - GeeksforGeeks
14 Dec, 2020 Given a HexaDecimal Number N, the task is to convert the number to its equivalent Binary Coded Decimal.Examples: Input: 11F Output: 0001 0001 1111 Explanation: Binary of 1 – 0001 Binary of F – 1111 Thus, Equivalent BCD is 0001 0001 1111Input: A D Output: 1010 1101 Explanation: Binary of A – 1010 Binary o...
[ { "code": null, "e": 24988, "s": 24960, "text": "\n14 Dec, 2020" }, { "code": null, "e": 25103, "s": 24988, "text": "Given a HexaDecimal Number N, the task is to convert the number to its equivalent Binary Coded Decimal.Examples: " }, { "code": null, "e": 25342, ...
How to detect click outside React component ? - GeeksforGeeks
11 Feb, 2022 We can use the createRef() method to create a reference for any element in the class-based component. Then we can check whether click event occurred in the component or outside the component. In the functional component, we can use the useRef() hook to create a reference for any element. Creating React Ap...
[ { "code": null, "e": 25312, "s": 25284, "text": "\n11 Feb, 2022" }, { "code": null, "e": 25505, "s": 25312, "text": "We can use the createRef() method to create a reference for any element in the class-based component. Then we can check whether click event occurred in the compon...
Interactive Neural Network Fun in Excel | by Tony Roberts | Towards Data Science
After reading Making deep neural networks paint to understand how they work by Paras Chopra I was inspired to delve into some experiments of my own. The images produced were intriguing, and I wanted to play around and get a feel for how they changed in response to changing the structure of the neural network. I encoura...
[ { "code": null, "e": 482, "s": 171, "text": "After reading Making deep neural networks paint to understand how they work by Paras Chopra I was inspired to delve into some experiments of my own. The images produced were intriguing, and I wanted to play around and get a feel for how they changed in re...
PostgreSQL – FORMAT Function
25 Aug, 2021 In PostgreSQL, the FORMAT() function is used to format arguments based on a format string. Syntax: FORMAT(format_string [, format_argument [, ....] ]) Let’s analyze the above syntax: The FORMAT() function is variadic, meaning, users can supply the arguments as an array marked with the VARIADIC keyword. The...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Aug, 2021" }, { "code": null, "e": 119, "s": 28, "text": "In PostgreSQL, the FORMAT() function is used to format arguments based on a format string." }, { "code": null, "e": 179, "s": 119, "text": "Syntax:\nFORMAT...
How To Add Identifier Column When Concatenating Pandas dataframes?
18 Apr, 2022 We generally want to concat two or more dataframes when working with some data. So, when we concat these dataframes we need to actually want to provide an identifier column in order to identify the concatenated dataframes. In this article, we’ll see with the help of examples of how we can do this. Example ...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Apr, 2022" }, { "code": null, "e": 327, "s": 28, "text": "We generally want to concat two or more dataframes when working with some data. So, when we concat these dataframes we need to actually want to provide an identifier column in...
PostgreSQL – BIGINT Integer Data Type
28 Aug, 2020 PostgreSQL allows a type of integer type namely BIGINT. It requires 8 bytes of storage size and can store integers in the range of -9, 223, 372, 036, 854, 775, 808 to +9, 223, 372, 036, 854, 775, 807. Using BIGINT type is not only consuming a lot of storage but also decreasing the performance of the databa...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 495, "s": 28, "text": "PostgreSQL allows a type of integer type namely BIGINT. It requires 8 bytes of storage size and can store integers in the range of -9, 223, 372, 036, 854, 775, 808 to +9, 223,...
Program for n-th odd number
23 Apr, 2021 Given a number n, print the nth odd number. The 1st odd number is 1, 2nd is 3, and so on.Examples: Input : 3 Output : 5 First three odd numbers are 1, 3, 5, .. Input : 5 Output : 9 First 5 odd numbers are 1, 3, 5, 7, 9, .. The nth odd number is given by the formula 2*n-1. C++ Java Python3 C# PHP J...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Apr, 2021" }, { "code": null, "e": 129, "s": 28, "text": "Given a number n, print the nth odd number. The 1st odd number is 1, 2nd is 3, and so on.Examples: " }, { "code": null, "e": 254, "s": 129, "text": "Input...
Python – Nearest occurrence between two elements in a List
11 Jun, 2021 Given a list and two elements, x and y find the nearest occurrence index of element x from element y. Input : test_list = [2, 4, 5, 7, 8, 6, 3, 8, 7, 2, 0, 9, 4, 9, 4], x = 4, y = 6 Output : 1 Explanation : 4 is found at 1, 12 and 14th index, 6 is at 5th index, nearest is 1st index. Input : test_list = [2,...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jun, 2021" }, { "code": null, "e": 130, "s": 28, "text": "Given a list and two elements, x and y find the nearest occurrence index of element x from element y." }, { "code": null, "e": 312, "s": 130, "text": "Inpu...
Node.js URL.hash API
14 Oct, 2021 The url.hash is an inbuilt application programming interface of class URL within url module which is used to get and set the fragment portion of the URL. Syntax: url.hash Return value: It gets and sets the fragment portion of the URL. Below programs illustrate the use of url.hash Method: Example 1: Java...
[ { "code": null, "e": 53, "s": 25, "text": "\n14 Oct, 2021" }, { "code": null, "e": 207, "s": 53, "text": "The url.hash is an inbuilt application programming interface of class URL within url module which is used to get and set the fragment portion of the URL." }, { "code"...
Python – Binomial Distribution
16 Jul, 2020 Binomial distribution is a probability distribution that summarises the likelihood that a variable will take one of two independent values under a given set of parameters. The distribution is obtained by performing a number of Bernoulli trials. A Bernoulli trial is assumed to meet each of these criteria : ...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Jul, 2020" }, { "code": null, "e": 297, "s": 52, "text": "Binomial distribution is a probability distribution that summarises the likelihood that a variable will take one of two independent values under a given set of parameters. Th...
Get Flight Status using Python
17 May, 2022 Prerequisite Implementing Web Scraping in Python with BeautifulSoup In this article, we are going to write a python script to get Flight Status. Module needed: bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module does not come built-in with Python. To install...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 May, 2022" }, { "code": null, "e": 120, "s": 52, "text": "Prerequisite Implementing Web Scraping in Python with BeautifulSoup" }, { "code": null, "e": 197, "s": 120, "text": "In this article, we are going to writ...
Create Holiday Calendar using HTML and PHP
06 Jul, 2021 In this article, we will create a holiday calendar for a given month using the concept of tables in HTML, CSS for styling the calendar, and PHP. We will also display all the holidays in a given month, highlight them using a different color and display the holiday name whenever the mouse hovers over the hig...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jul, 2021" }, { "code": null, "e": 197, "s": 52, "text": "In this article, we will create a holiday calendar for a given month using the concept of tables in HTML, CSS for styling the calendar, and PHP." }, { "code": null, ...
Logger log() Method in Java with Examples
27 Jun, 2019 The log() method of Logger is used to Log a message. If the logger is currently enabled for the given message level which is passed as parameter then a corresponding LogRecord is created and forwarded to all the registered Output Handler objects. But in logger class, there are seven different log() method ...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jun, 2019" }, { "code": null, "e": 387, "s": 28, "text": "The log() method of Logger is used to Log a message. If the logger is currently enabled for the given message level which is passed as parameter then a corresponding LogRecord...
Node.js Readable Stream close Event
12 Oct, 2021 The ‘close’ Event in a Readable Stream is emitted when the stream and any of its hidden resources are being closed This event implies that no further events can be emitted, and no further computations can take place. Moreover, if a Readable stream is created with the emitClose option then it can always emi...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Oct, 2021" }, { "code": null, "e": 352, "s": 28, "text": "The ‘close’ Event in a Readable Stream is emitted when the stream and any of its hidden resources are being closed This event implies that no further events can be emitted, an...
Python | Pandas Series.str.lower(), upper() and title()
17 Sep, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Python has some inbuilt methods to convert a string into lower, upper or Camel case. But thes...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Sep, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes imp...
PHP Tutorials - GeeksforGeeks
23 Dec, 2021 The term PHP is an acronym for Hypertext Preprocessor. It is a server-side scripting language that is used for web development. It can be easily embedded with HTML files. HTML codes can also be written in a PHP file. The PHP codes are executed on the server-side whereas HTML codes are directly executed on ...
[ { "code": null, "e": 24903, "s": 24875, "text": "\n23 Dec, 2021" }, { "code": null, "e": 25223, "s": 24903, "text": "The term PHP is an acronym for Hypertext Preprocessor. It is a server-side scripting language that is used for web development. It can be easily embedded with HTML...
How to make a Python auto clicker?
19 Jan, 2021 In this article, we will see how to create an auto-clicker using Python. The code will take input from the keyboard when the user clicks on the start key and terminates auto clicker when the user clicks on exit key, the auto clicker starts clicking wherever the pointer is placed on the screen. We are going...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jan, 2021" }, { "code": null, "e": 392, "s": 52, "text": "In this article, we will see how to create an auto-clicker using Python. The code will take input from the keyboard when the user clicks on the start key and terminates auto ...
How to match date with MongoDB $match?
To match date, use $match along with aggregate(). Let us create a collection with documents − > db.demo491.insertOne({"ShippingDate":new ISODate("2020-01-10")});{ "acknowledged" : true, "insertedId" : ObjectId("5e849a09b0f3fa88e22790be") } > db.demo491.insertOne({"ShippingDate":new ISODate("2020-02-21")});{ "a...
[ { "code": null, "e": 1281, "s": 1187, "text": "To match date, use $match along with aggregate(). Let us create a collection with documents −" }, { "code": null, "e": 1877, "s": 1281, "text": "> db.demo491.insertOne({\"ShippingDate\":new ISODate(\"2020-01-10\")});{\n \"acknowled...
Number of cards needed build a House of Cards of a given level N
21 Dec, 2021 Given a number N, the task is to find the number of cards needed to make a House of Cards of N levels. Examples: Input: N = 3 Output: 15 From the above image, it is clear that for the House of Cards for 3 levels 15 cards are neededInput: N = 2 Output: 7 Approach: If we observe carefully, then a se...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Dec, 2021" }, { "code": null, "e": 156, "s": 52, "text": "Given a number N, the task is to find the number of cards needed to make a House of Cards of N levels. " }, { "code": null, "e": 168, "s": 156, "text": "E...
numpy.nonzero() in Python
28 Nov, 2018 numpy.nonzero()function is used to Compute the indices of the elements that are non-zero. It returns a tuple of arrays, one for each dimension of arr, containing the indices of the non-zero elements in that dimension.The corresponding non-zero values in the array can be obtained with arr[nonzero(arr)] . To...
[ { "code": null, "e": 53, "s": 25, "text": "\n28 Nov, 2018" }, { "code": null, "e": 143, "s": 53, "text": "numpy.nonzero()function is used to Compute the indices of the elements that are non-zero." }, { "code": null, "e": 449, "s": 143, "text": "It returns a tu...
JP Morgan Code for Good Internship Interview Experience 2021
05 Aug, 2021 Application Process + Resume Pre-Requisite: The Code For Good event is the only means by which the students can apply for the Software Engineer Program (SEP) at JP Morgan Chase & Co. First Step was to Apply for JP Morgan [On Campus] for Software Engineer Program, 2022. CGPA Cutoff: 7 CGPA & No Backlog [...
[ { "code": null, "e": 54, "s": 26, "text": "\n05 Aug, 2021" }, { "code": null, "e": 84, "s": 54, "text": "Application Process + Resume " }, { "code": null, "e": 99, "s": 84, "text": "Pre-Requisite:" }, { "code": null, "e": 238, "s": 99, "tex...
HTML DOM getElementsByClassName() Method
12 Nov, 2021 The getElementsByClassName() method in Javascript returns an object containing all the elements with the specified class names in the document as objects. Each element in the returned object can be accessed by its index. The index value will start with 0. This method can be called upon any individual eleme...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Nov, 2021" }, { "code": null, "e": 408, "s": 28, "text": "The getElementsByClassName() method in Javascript returns an object containing all the elements with the specified class names in the document as objects. Each element in the ...
java.time.ZonedDateTime Class in Java
28 Mar, 2021 ZonedDateTime is an immutable object representing a date-time along with the time zone. This class stores all date and time fields.This class stores time to a precision of nanoseconds and a time-zone, with a zone Offset used to handle local date-times. For example, the value “2nd October 2011 at 14:45.30.1...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Mar, 2021" }, { "code": null, "e": 524, "s": 28, "text": "ZonedDateTime is an immutable object representing a date-time along with the time zone. This class stores all date and time fields.This class stores time to a precision of nan...
How to convert an enum type variable to a string in C++?
Here we will see how to convert some enum type data to a string in C++. There is no such direct function to do so. But we can create our own function to convert enum to string. We shall create a function that takes an enum value as an argument, and we manually return the enum names as a string from that function. Live...
[ { "code": null, "e": 1239, "s": 1062, "text": "Here we will see how to convert some enum type data to a string in C++. There is no such direct function to do so. But we can create our own function to convert enum to string." }, { "code": null, "e": 1377, "s": 1239, "text": "We sh...
Lightning Fast XGBoost on Multiple GPUs | by Rahul Agarwal | Towards Data Science
XGBoost is one of the most used libraries fora data science. At the time XGBoost came into existence, it was lightning fast compared to its nearest rival Python’s Scikit-learn GBM. But as the times have progressed, it has been rivaled by some awesome libraries like LightGBM and Catboost, both on speed as well as accura...
[ { "code": null, "e": 233, "s": 172, "text": "XGBoost is one of the most used libraries fora data science." }, { "code": null, "e": 496, "s": 233, "text": "At the time XGBoost came into existence, it was lightning fast compared to its nearest rival Python’s Scikit-learn GBM. But a...
Iterative Segment Tree (Range Minimum Query) - GeeksforGeeks
23 Jun, 2021 We have discussed recursive segment tree implementation. In this post, iterative implementation is discussed.Let us consider the following problem understand Segment Trees.We have an array arr[0 . . . n-1]. We should be able to 1 Find the minimum of elements from index l to r where 0 <= l <= r <= n-1 2 Cha...
[ { "code": null, "e": 24097, "s": 24069, "text": "\n23 Jun, 2021" }, { "code": null, "e": 24525, "s": 24097, "text": "We have discussed recursive segment tree implementation. In this post, iterative implementation is discussed.Let us consider the following problem understand Segme...
Designing Non-Deterministic Finite Automata (Set 5) - GeeksforGeeks
20 Nov, 2019 Prerequisite: Finite Automata IntroductionIn this article, we will see some designing of Non-Deterministic Finite Automata (NFA). Problem-1: Construction of a minimal NFA accepting a set of strings over {a, b} in which each string of the language contain ‘ab’ as the substring.Explanation: The desired langu...
[ { "code": null, "e": 24270, "s": 24242, "text": "\n20 Nov, 2019" }, { "code": null, "e": 24400, "s": 24270, "text": "Prerequisite: Finite Automata IntroductionIn this article, we will see some designing of Non-Deterministic Finite Automata (NFA)." }, { "code": null, "...
Reshape NumPy Array
20 Jan, 2022 NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is the fundamental package for scientific computing with Python. Numpy is basically used for creating array of n dimensions.Reshaping numpy array si...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jan, 2022" }, { "code": null, "e": 635, "s": 28, "text": "NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is the fundament...
Calculator Program with Batch Scripting in Windows
07 Sep, 2020 By using the Batch Scripting of command prompt one could even design a normal basic calculator that takes expressions and returns the result. Type the following script in notepad or any other text editor software: @echo off :a echo ________Calculator________ echo. set /p expression= Enter expression to cal...
[ { "code": null, "e": 53, "s": 25, "text": "\n07 Sep, 2020" }, { "code": null, "e": 267, "s": 53, "text": "By using the Batch Scripting of command prompt one could even design a normal basic calculator that takes expressions and returns the result. Type the following script in not...
Examples of Data Link Layer Protocols
05 Aug, 2020 Data Link Layer protocols are generally responsible to simply ensure and confirm that the bits and bytes that are received are identical to the bits and bytes being transferred. It is basically a set of specifications that are used for implementation of data link layer just above the physical layer of the ...
[ { "code": null, "e": 52, "s": 24, "text": "\n05 Aug, 2020" }, { "code": null, "e": 401, "s": 52, "text": "Data Link Layer protocols are generally responsible to simply ensure and confirm that the bits and bytes that are received are identical to the bits and bytes being transferr...
p5.js | blendMode() Function
20 Feb, 2020 The blendMode() function is used to blend two pixels according to the given blending mode. The different types of blending modes have different methods of mixing the source pixels with the ones present in the display window, to produce the resulting pixel. Syntax: blendMode( mode ) Parameters: This functio...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Feb, 2020" }, { "code": null, "e": 285, "s": 28, "text": "The blendMode() function is used to blend two pixels according to the given blending mode. The different types of blending modes have different methods of mixing the source pi...
numpy.isscalar() in Python
29 Nov, 2018 numpy.isscalar(num) : This is a logical function that returns true if the type of input num is scalar. Parameters : num : Input argument of any type and shape. Return : True, if input is scalar; else False Code 1 : Working # Python program explaining# isscalar() functionimport numpy as np in_array = [1, ...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Nov, 2018" }, { "code": null, "e": 131, "s": 28, "text": "numpy.isscalar(num) : This is a logical function that returns true if the type of input num is scalar." }, { "code": null, "e": 144, "s": 131, "text": "Par...
JavaScript | Array find() function
14 Mar, 2018 arr.find() function is used to find the first element from the array that satisfies the condition implemented by a function. If more than one element satisfies the condition then the first element satisfying the condition is returned. Suppose that you want to find the first odd number in the array. The arg...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Mar, 2018" }, { "code": null, "e": 670, "s": 54, "text": "arr.find() function is used to find the first element from the array that satisfies the condition implemented by a function. If more than one element satisfies the condition ...
log() function in C++
10 Dec, 2019 Log() function in C++ : The log() function in C++ returns the natural logarithm (base-e logarithm) of the argument passed in the parameter. Syntax for returning natural logarithm:result = log(x) Syntax for returning logarithm (base-10 logarithm) of the argument.result = log10(x) The parameters can be of an...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 Dec, 2019" }, { "code": null, "e": 193, "s": 53, "text": "Log() function in C++ : The log() function in C++ returns the natural logarithm (base-e logarithm) of the argument passed in the parameter." }, { "code": null, "e...
List FindLastIndex() Method in C# | Set -2
05 Dec, 2019 This method is used to search for an element which matches the conditions defined by a specified predicate and returns the zero-based index of the last occurrence within the List<T> or a portion of it. There are 3 methods in the overload list of this method: FindLastIndex(Predicate<T>) Method FindLastIndex...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Dec, 2019" }, { "code": null, "e": 287, "s": 28, "text": "This method is used to search for an element which matches the conditions defined by a specified predicate and returns the zero-based index of the last occurrence within the L...
Maximum path sum that starting with any cell of 0-th row and ending with any cell of (N-1)-th row
07 Jul, 2022 Given a N X N matrix Mat[N][N] of positive integers. There are only three possible moves from a cell (i, j) (i+1, j)(i+1, j-1)(i+1, j+1) (i+1, j) (i+1, j-1) (i+1, j+1) Starting from any column in row 0, return the largest sum of any of the paths up to row N-1. Examples: Input : mat[4][4] = { {4, 2, 3, 4}...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jul, 2022" }, { "code": null, "e": 163, "s": 54, "text": "Given a N X N matrix Mat[N][N] of positive integers. There are only three possible moves from a cell (i, j) " }, { "code": null, "e": 192, "s": 163, "text...
What is the difference between the dot (.) operator and -> in C++?
The dot and arrow operator are both used in C++ to access the members of a class. They are just used in different scenarios. In C++, types declared as class, struct, or union are considered "of class type". So the following refers to all three of them. a.b is only used if b is a member of the object (or reference[1] to...
[ { "code": null, "e": 1440, "s": 1187, "text": "The dot and arrow operator are both used in C++ to access the members of a class. They are just used in different scenarios. In C++, types declared as class, struct, or union are considered \"of class type\". So the following refers to all three of them...
Python | Dividing two lists
11 Feb, 2019 Sometimes we come across the situations in which we require to apply a particular function to each elements of two lists at similar index. Most popular of them are 4 of the elementary mathematics operations. These are quite similar and come up as application for certain utilities. Let’s discuss certain way...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Feb, 2019" }, { "code": null, "e": 390, "s": 28, "text": "Sometimes we come across the situations in which we require to apply a particular function to each elements of two lists at similar index. Most popular of them are 4 of the el...
Walmart Interview Experience for SDE | On- Campus 2021 (Virtual)
26 Aug, 2021 Walmart Global Tech visited our campus in the month of August, to hire students for the Software Development Engineer role.Initially, there was a CGPA based shortlisting, after which around 250 students were selected to attend the Online Assessment. Online Assessment: The platform was HackerEarth, time dur...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Aug, 2021" }, { "code": null, "e": 304, "s": 54, "text": "Walmart Global Tech visited our campus in the month of August, to hire students for the Software Development Engineer role.Initially, there was a CGPA based shortlisting, aft...
Excel VBA Logical Operators
24 Aug, 2021 Logical operators are used for performing logical and asthmatic operations on a set of values or variables. The table depicts all the different types of logical operators supported by Excel: AND (LOGICAL AND) If both the conditions are True, then the Expression is true. Example: Assume variable A holds 1...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Aug, 2021" }, { "code": null, "e": 245, "s": 54, "text": "Logical operators are used for performing logical and asthmatic operations on a set of values or variables. The table depicts all the different types of logical operators sup...
Python – Assign Alphabet to each element
11 Sep, 2021 Given a list of elements, assign similar alphabet to same element. Input : test_list = [4, 5, 2, 4, 2, 6] Output : [‘a’, ‘b’, ‘c’, ‘a’, ‘c’, ‘d’] Explanation : Alphabets assigned to elements as occurring. Input : test_list = [4, 5, 2, 4, 2, 6] Output : [‘a’, ‘b’, ‘c’, ‘a’, ‘c’] Explanation : Alphabets assi...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Sep, 2021" }, { "code": null, "e": 95, "s": 28, "text": "Given a list of elements, assign similar alphabet to same element." }, { "code": null, "e": 233, "s": 95, "text": "Input : test_list = [4, 5, 2, 4, 2, 6] Ou...
Python Script to create random jokes using pyjokes
02 Dec, 2020 Python supports creation of random jokes using one of its libraries. Let us explore it a little more, Pyjokes is a python library that is used to create one-line jokes for programmers. Informally, it can also be referred as a fun python library which is pretty simple to use. Let us see how you can actually...
[ { "code": null, "e": 53, "s": 25, "text": "\n02 Dec, 2020" }, { "code": null, "e": 398, "s": 53, "text": "Python supports creation of random jokes using one of its libraries. Let us explore it a little more, Pyjokes is a python library that is used to create one-line jokes for pr...
Looping through buttons in Tkinter
26 Mar, 2021 In this article, let’s see how we can loop through the buttons in Tkinter. Stepwise implementation: Step 1: Import the Tkinter package and all of its modules and create a root window (root = Tk()). Python3 # Import package and it's modulesfrom tkinter import * # create root windowroot = Tk() # root windo...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Mar, 2021" }, { "code": null, "e": 129, "s": 54, "text": "In this article, let’s see how we can loop through the buttons in Tkinter." }, { "code": null, "e": 154, "s": 129, "text": "Stepwise implementation:" },...
Python OpenCV | cv2.copyMakeBorder() method
08 Aug, 2021 OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.copyMakeBorder() method is used to create a border around the image like a photo frame. Syntax: cv2.copyMakeBorder(src, top, bottom, left, right, borderType, value) Parameters: src: It is the source image. top: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Aug, 2021" }, { "code": null, "e": 212, "s": 28, "text": "OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.copyMakeBorder() method is used to create a border around the image like a photo ...
Gensim - Documents & LDA Model
This chapter discusses the documents and LDA model in Gensim. We can find the optimal number of topics for LDA by creating many LDA models with various values of topics. Among those LDAs we can pick one having highest coherence value. Following function named coherence_values_computation() will train multiple LDA model...
[ { "code": null, "e": 2114, "s": 2052, "text": "This chapter discusses the documents and LDA model in Gensim." }, { "code": null, "e": 2287, "s": 2114, "text": "We can find the optimal number of topics for LDA by creating many LDA models with various values of topics. Among those ...
MVC Framework - Ajax Support
As you might be knowing, Ajax is a shorthand for Asynchronous JavaScript and XML. The MVC Framework contains built-in support for unobtrusive Ajax. You can use the helper methods to define your Ajax features without adding a code throughout all the views. This feature in MVC is based on the jQuery features. To enable t...
[ { "code": null, "e": 2334, "s": 2025, "text": "As you might be knowing, Ajax is a shorthand for Asynchronous JavaScript and XML. The MVC Framework contains built-in support for unobtrusive Ajax. You can use the helper methods to define your Ajax features without adding a code throughout all the view...
How to change navigation bar color in Bootstrap ? - GeeksforGeeks
03 Aug, 2021 The navigation bar color can be changed in Bootstrap using 2 methods:Method 1: Using the inbuilt color classesChanging the text colorThe text color of the navigation bar can be changed using two inbuilt classes: navbar-light: This class will set the color of the text to dark. This is used when using a li...
[ { "code": null, "e": 24601, "s": 24573, "text": "\n03 Aug, 2021" }, { "code": null, "e": 24815, "s": 24601, "text": "The navigation bar color can be changed in Bootstrap using 2 methods:Method 1: Using the inbuilt color classesChanging the text colorThe text color of the navigati...
A little DISTINCT challenge with DAX optimisation | by Salvatore Cagliari | Towards Data Science
One of my clients asked me about the best way to perform a count of all his orders. This looks like an easy task in DAX, but it holds a few minor hurdles to answer the question in the best way. I used the Contoso dataset from Microsoft for this article. You can find it here: Microsoft Contoso BI Demo Dataset for Retail...
[ { "code": null, "e": 365, "s": 171, "text": "One of my clients asked me about the best way to perform a count of all his orders. This looks like an easy task in DAX, but it holds a few minor hurdles to answer the question in the best way." }, { "code": null, "e": 627, "s": 365, "...