title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
JBoss Fuse - AMQ With Camel
In this chapter, we will learn the basics of how ActiveMQ works with Camel. Before we can use ActiveMQ queue or topic in our code we have to configure ActiveMQComponent. Minimal configuration of ActiveMQComponent can be done as shown in the following program − <bean id = "activemq" class = "org.apache.activemq.camel.co...
[ { "code": null, "e": 1992, "s": 1916, "text": "In this chapter, we will learn the basics of how ActiveMQ works with Camel." }, { "code": null, "e": 2177, "s": 1992, "text": "Before we can use ActiveMQ queue or topic in our code we have to configure ActiveMQComponent. Minimal conf...
How to change the underline color in CSS? - GeeksforGeeks
25 May, 2021 Styling is implemented to HTML text to make it catchy and attractive. The text can be made italic, underline, and bold as per requirement. Underline tag: To change the color of the underline, we need to add some styling using CSS (inline/internal/external). By default, the color of the underline is black. ...
[ { "code": null, "e": 25011, "s": 24983, "text": "\n25 May, 2021" }, { "code": null, "e": 25150, "s": 25011, "text": "Styling is implemented to HTML text to make it catchy and attractive. The text can be made italic, underline, and bold as per requirement." }, { "code": nu...
How to replace all words with another words in HTML ? - GeeksforGeeks
11 Jun, 2020 The JavaScript replace() method is used to replace any occurrence of a character in a string or the entire string. It searches for a string corresponding to either a particular value or regular expression and returns a new string with the modified values. One can also use regular expressions instead of str...
[ { "code": null, "e": 25300, "s": 25272, "text": "\n11 Jun, 2020" }, { "code": null, "e": 25556, "s": 25300, "text": "The JavaScript replace() method is used to replace any occurrence of a character in a string or the entire string. It searches for a string corresponding to either...
C Program to check if a number is divisible by any of its digits
Given a number n, task is to find that any of the digit in the number divides the number completely or not. Like we are given a number 128625 is divisible by 5 which is also present in the number. Input: 53142 Output: yes Explanation: This number is divisible by 1, 2 and 3 which are the digits of the number Input: 223 ...
[ { "code": null, "e": 1259, "s": 1062, "text": "Given a number n, task is to find that any of the digit in the number divides the number completely or not. Like we are given a number 128625 is divisible by 5 which is also present in the number." }, { "code": null, "e": 1451, "s": 1259...
Program to print all substrings of a given string in C++
In this tutorial, we will be discussing a program to print all the substring of a given string. For this we will be given with a string or an array of characters. Our task is to print all the substrings of that particular string. Live Demo #include<bits/stdc++.h> using namespace std; //printing all the substrings void...
[ { "code": null, "e": 1158, "s": 1062, "text": "In this tutorial, we will be discussing a program to print all the substring of a given string." }, { "code": null, "e": 1292, "s": 1158, "text": "For this we will be given with a string or an array of characters. Our task is to prin...
Iterative Search for a key ‘x’ in Binary Tree
27 Jun, 2022 Given a Binary Tree and a key to be searched in it, write an iterative method that returns true if key is present in Binary Tree, else false. For example, in the following tree, if the searched key is 3, then function should return true and if the searched key is 12, then function should return false. On...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Jun, 2022" }, { "code": null, "e": 194, "s": 52, "text": "Given a Binary Tree and a key to be searched in it, write an iterative method that returns true if key is present in Binary Tree, else false." }, { "code": null, ...
Java program to Find the Square Root of a Number using Binary Search
03 Mar, 2021 Given a non-negative number find the square root of a number using the binary search approach. Examples : Input: x = 16 Output: 4 Explanation: The square root of 16 is 4. Input: x = 5 Output: 2 Explanation: The square root of 5 lies in between 2 and 3 so floor of the square root is 2. Naive Approach: Ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Mar, 2021" }, { "code": null, "e": 123, "s": 28, "text": "Given a non-negative number find the square root of a number using the binary search approach." }, { "code": null, "e": 134, "s": 123, "text": "Examples :"...
Gerrit - Installing Git-Review
You can work with Gerrit by installing git-review on different platforms as discussed in this chapter. In Windows, you can install the git-review as listed in the following steps. Step 1 − First install Python for installing git-review. Step 2 − Keep the Python installation in the default directory (like C:\Python27) i...
[ { "code": null, "e": 2475, "s": 2372, "text": "You can work with Gerrit by installing git-review on different platforms as discussed in this chapter." }, { "code": null, "e": 2552, "s": 2475, "text": "In Windows, you can install the git-review as listed in the following steps." ...
Collections.shuffle() Method in Java with Examples
07 Jul, 2022 shuffle() method of Collections class as the class name suggests is present in utility package known as java.util that shuffles the elements in the list. There are two ways with which we can use to implement in our programs that are as follows: Using the pre-defined source of randomnessUsing the user-provi...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jul, 2022" }, { "code": null, "e": 206, "s": 52, "text": "shuffle() method of Collections class as the class name suggests is present in utility package known as java.util that shuffles the elements in the list." }, { "code"...
Translation of objects in computer graphics
19 Jun, 2022 In computer graphics, we have seen how to draw some basic figures like line and circles. In this post we will discuss on basics of an important operation in computer graphics as well as 2-D geometry, which is transformation. In computer graphics, transformation of the coordinates consists of three major pr...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jun, 2022" }, { "code": null, "e": 370, "s": 52, "text": "In computer graphics, we have seen how to draw some basic figures like line and circles. In this post we will discuss on basics of an important operation in computer graphics...
Bash Scripting – Concatenate String
04 Jan, 2022 In this article, we will see the concatenation of string in bash scripting. Joining two or more strings together is called string concatenation. Bash does not have any built-in function to perform the concatenation on string data or variables. There are various methods using which we can perform the concat...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jan, 2022" }, { "code": null, "e": 104, "s": 28, "text": "In this article, we will see the concatenation of string in bash scripting." }, { "code": null, "e": 375, "s": 104, "text": "Joining two or more strings to...
Tpot AutoML
09 Mar, 2021 Tpot is an automated machine learning package in python that uses genetic programming concepts to optimize the machine learning pipeline. It automates the most tedious part of machine learning by intelligently exploring thousands of the possible to find the best possible parameter that suits your data. Tpo...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Mar, 2021" }, { "code": null, "e": 424, "s": 28, "text": "Tpot is an automated machine learning package in python that uses genetic programming concepts to optimize the machine learning pipeline. It automates the most tedious part of...
PHP | Get PHP configuration information using phpinfo()
13 Jan, 2022 PHP provides us with a built-in function phpinfo() which gives us the details about the PHP version and PHP configuration of PHP installed in our system. To know about the Configurations and PHP version which is installed in your computer, a simple PHP script can be used. The script consists of a PHP funct...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2022" }, { "code": null, "e": 548, "s": 28, "text": "PHP provides us with a built-in function phpinfo() which gives us the details about the PHP version and PHP configuration of PHP installed in our system. To know about the Con...
Remove characters that appear more than k times
23 Jun, 2022 Given a string of lowercase letters, reduce it by removing the characters which appear more than k times in the string.Examples: Input : str = "geeksforgeeks" k = 2 Output : for Input : str = "geeksforgeeks" k = 3 Output : gksforgks Approach : Create a hash table of 26 indexes, where 0t...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jun, 2022" }, { "code": null, "e": 158, "s": 28, "text": "Given a string of lowercase letters, reduce it by removing the characters which appear more than k times in the string.Examples: " }, { "code": null, "e": 279, ...
Print all sublists of a list in Python
12 Jul, 2022 Given a list, print all the sublists of a list. Examples: Input : list = [1, 2, 3] Output : [[], [1], [1, 2], [1, 2, 3], [2], [2, 3], [3]] Input : [1, 2, 3, 4] Output : [[], [1], [1, 2], [1, 2, 3], [1, 2, 3, 4], [2], [2, 3], [2, 3, 4], [3], [3, 4], [4]] Approach#1: The approach...
[ { "code": null, "e": 53, "s": 25, "text": "\n12 Jul, 2022" }, { "code": null, "e": 102, "s": 53, "text": "Given a list, print all the sublists of a list. " }, { "code": null, "e": 113, "s": 102, "text": "Examples: " }, { "code": null, "e": 333, ...
Recursively enumerable sets and Turing machines - GeeksforGeeks
21 Jan, 2014 1. For every non-deterministic Turing machine, there exists an equivalent deterministic Turing machine. 2. Turing recognizable languages are closed under union and complementation. 3. Turing decidable languages are closed under intersection and complementation. 4. Turing recognizable languages ...
[ { "code": null, "e": 31777, "s": 31749, "text": "\n21 Jan, 2014" }, { "code": null, "e": 32130, "s": 31777, "text": "1. For every non-deterministic Turing machine, \n there exists an equivalent deterministic Turing machine.\n2. Turing recognizable languages are closed under uni...
RC4 Encryption Algorithm
18 Oct, 2021 RC4 is a stream cipher and variable-length key algorithm. This algorithm encrypts one byte at a time (or larger units at a time).A key input is pseudorandom bit generator that produces a stream 8-bit number that is unpredictable without knowledge of input key, The output of the generator is called key-stre...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Oct, 2021" }, { "code": null, "e": 457, "s": 52, "text": "RC4 is a stream cipher and variable-length key algorithm. This algorithm encrypts one byte at a time (or larger units at a time).A key input is pseudorandom bit generator tha...
Uber H3 for Data Analysis with Python | by Eshwaran Venkat | Towards Data Science
If you’ve ever played Civilization VI or Settlers of Catan, you might have noticed that the board map is shaped into regular hexagons. This is a famed game design technique called Hex Map and is used in board games such as Hexagonal chess and video games such as Forge of Empires. This is a natural feature of the game b...
[ { "code": null, "e": 463, "s": 47, "text": "If you’ve ever played Civilization VI or Settlers of Catan, you might have noticed that the board map is shaped into regular hexagons. This is a famed game design technique called Hex Map and is used in board games such as Hexagonal chess and video games s...
How to access a function property as a method in JavaScript?
A javascript object is made up of properties. To access a property as a method, just define a function to a property and include other properties in that function. In the following example an object called "employee" is created with properties "fullName", "lastName" , "firstName" and "id". A function is defined under p...
[ { "code": null, "e": 1227, "s": 1062, "text": " A javascript object is made up of properties. To access a property as a method, just define a function to a property and include other properties in that function." }, { "code": null, "e": 1590, "s": 1227, "text": "In the following ...
Context free languages and Push-down automata - GeeksforGeeks
21 Jan, 2014 NDPDA can handle languages or grammars with ambiguity, but DPDA cannot handle languages with ambiguity and any context-free grammar. S → AB A → 0A|ε B → 1B|ε S → AB A → 0A|ε B → 1B|ε L1 = { | m, n >= 0 } L2 = { | i, j, k >= 0 } For each occurrence of ...
[ { "code": null, "e": 29810, "s": 29782, "text": "\n21 Jan, 2014" }, { "code": null, "e": 29943, "s": 29810, "text": "NDPDA can handle languages or grammars with ambiguity, but DPDA cannot handle languages with ambiguity and any context-free grammar." }, { "code": null, ...
Yii - Sessions
Sessions make data accessible across various pages. A session creates a file on the server in a temporary directory where all session variables are stored. This data is available to all the pages of your web site during the visit of that particular user. When a session starts, the following happens − PHP creates a uniq...
[ { "code": null, "e": 3088, "s": 2833, "text": "Sessions make data accessible across various pages. A session creates a file on the server in a temporary directory where all session variables are stored. This data is available to all the pages of your web site during the visit of that particular user...
HTML Class Attribute
The class attribute in HTML is used to set one or more classnames for an element. With the specified class name you can work it through CSS and point in a stylesheet. Let us now see an example to implement the class attribute in HTML − Live Demo <!DOCTYPE html> <html> <head> <style> h2.demo { color: orange; back...
[ { "code": null, "e": 1229, "s": 1062, "text": "The class attribute in HTML is used to set one or more classnames for an element. With the specified class name you can work it through CSS and point in a stylesheet." }, { "code": null, "e": 1298, "s": 1229, "text": "Let us now see ...
How can I set the row height in Tkinter TreeView?
The treeview widget in Tkinter provides a way to represent the data in a hierarchical structure. With the Treeview widget, we can insert our data in the form of a table. The table can have rows and columns in which we can insert the data instantly. We can also configure the properties of the treeview widget such as its...
[ { "code": null, "e": 1311, "s": 1062, "text": "The treeview widget in Tkinter provides a way to represent the data in a hierarchical structure. With the Treeview widget, we can insert our data in the form of a table. The table can have rows and columns in which we can insert the data instantly." }...
Data Preprocessing, Analysis & Visualization
In the real world, we usually come across lots of raw data which is not fit to be readily processed by machine learning algorithms. We need to preprocess the raw data before it is fed into various machine learning algorithms. This chapter discusses various techniques for preprocessing data in Python machine learning. I...
[ { "code": null, "e": 2623, "s": 2304, "text": "In the real world, we usually come across lots of raw data which is not fit to be readily processed by machine learning algorithms. We need to preprocess the raw data before it is fed into various machine learning algorithms. This chapter discusses vari...
UNPIVOT multiple columns into tidy pairs with BigQuery and a SQL UDF | by Felipe Hoffa | Towards Data Science
Important update: I left Google and joined Snowflake in 2020 — so I’m unable to keep my older posts updated. If you want to try Snowflake, join us — I’m having a lot of fun ❄️. As an example of non-tidy data, we can see how the Novel Coronavirus (COVID-19) Case (provided by JHU CSSE), and the Apple Mobility Trends Repo...
[ { "code": null, "e": 349, "s": 172, "text": "Important update: I left Google and joined Snowflake in 2020 — so I’m unable to keep my older posts updated. If you want to try Snowflake, join us — I’m having a lot of fun ❄️." }, { "code": null, "e": 509, "s": 349, "text": "As an exa...
Arithmetic operations in excel file using openpyxl in Python
Python can help us use excel files directly from the python environment. We can refer to the each cell or a range of cells in excel and apply arithmetic operators on those cells. The results of those operations can also be stored at some cells whose location can be specified by the python program. In the below examples...
[ { "code": null, "e": 1361, "s": 1062, "text": "Python can help us use excel files directly from the python environment. We can refer to the each cell or a range of cells in excel and apply arithmetic operators on those cells. The results of those operations can also be stored at some cells whose loc...
Trains - Solved Examples
Q 1 - What is 90 kmph as metres per second? A - 15 m /sec B - 20 m /sec C - 25 m /sec D - 30 m /sec Answer - C Explanation 90 kmph = ( 90 * 5/18) m/sec = 25 m /sec. Q 2 - What is 35 m/sec as km/hr? A - 123 km/hr B - 124 km/hr C - 125 km/hr D - 126 km/hr Answer - D Explanation 35 m/sec = (35 * 18 / 5 ) km/hr = 12...
[ { "code": null, "e": 3936, "s": 3892, "text": "Q 1 - What is 90 kmph as metres per second?" }, { "code": null, "e": 3950, "s": 3936, "text": "A - 15 m /sec" }, { "code": null, "e": 3965, "s": 3950, "text": "B - 20 m /sec " }, { "code": null, "e": 3...
How to get the second last record from a table in MySQL?
To get the record before the last one i.e. the second last record in MySQL, you need to use subquery. The syntax is as follows SELECT *FROM (SELECT *FROM yourTableName ORDER BY yourIdColumnName DESC LIMIT 2) anyAliasName ORDER BY yourIdColumnName LIMIT 1; Let us first create a table. The query to create a table is as f...
[ { "code": null, "e": 1164, "s": 1062, "text": "To get the record before the last one i.e. the second last record in MySQL, you need to use subquery." }, { "code": null, "e": 1189, "s": 1164, "text": "The syntax is as follows" }, { "code": null, "e": 1318, "s": 118...
How to get random value out of an array in PHP?
To get random value out of an array in PHP, the code is as follows− Live Demo <?php $arr = array( "p"=>"150", "q"=>"100", "r"=>"120", "s"=>"110", "t"=>"115", "u"=>"103", "v"=>"105", "w"=>"125" ); echo "Array values ...\n"; echo "Value 1 = " . $arr["p"], "\n"; echo "Value 2 = " . $arr["q"], "\n"; echo "V...
[ { "code": null, "e": 1130, "s": 1062, "text": "To get random value out of an array in PHP, the code is as follows−" }, { "code": null, "e": 1141, "s": 1130, "text": " Live Demo" }, { "code": null, "e": 1676, "s": 1141, "text": "<?php\n $arr = array( \"p\"=>\...
Maintain Image Quality When Applying CSS Transform & Scale
The CSS image-rendering property helps us set an algorithm for scaling our image. The syntax of CSS image-rendering property is as follows − Selector { image-rendering: /*value*/ } The following examples illustrate CSS image-rendering property. Live Demo <!DOCTYPE html> <html> <head> <style> img {...
[ { "code": null, "e": 1144, "s": 1062, "text": "The CSS image-rendering property helps us set an algorithm for scaling our image." }, { "code": null, "e": 1203, "s": 1144, "text": "The syntax of CSS image-rendering property is as follows −" }, { "code": null, "e": 1246...
Get the Name of a Member Object in Java
The getName() method is used to get the names of the entities such as interface, class, array class, void etc. that are represented by the class objects. These names are returned in the form of a string. A program that gets the name of the member objects using getName() method is given as follows − Live Demo import ja...
[ { "code": null, "e": 1266, "s": 1062, "text": "The getName() method is used to get the names of the entities such as interface, class, array class, void etc. that are represented by the class objects. These names are returned in the form of a string." }, { "code": null, "e": 1362, "s...
Java.util.TimerTask class in Java - GeeksforGeeks
22 Apr, 2022 TimerTask is an abstract class defined in java.util package. TimerTask class defines a task that can be scheduled to run for just once or for repeated number of time. In order to define a TimerTask object, this class needs to be implemented and the run method need to be overridden. The run method is implic...
[ { "code": null, "e": 24509, "s": 24481, "text": "\n22 Apr, 2022" }, { "code": null, "e": 24980, "s": 24509, "text": "TimerTask is an abstract class defined in java.util package. TimerTask class defines a task that can be scheduled to run for just once or for repeated number of ti...
How to Build Neural Network from Scratch | by Arseny Turin | Towards Data Science
Step by step tutorial on how to build a simple neural network from scratch In this post, we will build our own neural network from scratch with one hidden layer and a sigmoid activation function. We will take a closer look at the derivatives and a chain rule to have a clear picture of the backpropagation implementation...
[ { "code": null, "e": 247, "s": 172, "text": "Step by step tutorial on how to build a simple neural network from scratch" }, { "code": null, "e": 596, "s": 247, "text": "In this post, we will build our own neural network from scratch with one hidden layer and a sigmoid activation ...
Checkpointing Deep Learning Models in Keras | by Renu Khandelwal | Towards Data Science
Different methods to save and load the deep learning model are using JSON files YAML files Checkpoints In this article, you will learn how to checkpoint a deep learning model built using Keras and then reinstate the model architecture and trained weights to a new model or resume the training from you left off Allow us ...
[ { "code": null, "e": 241, "s": 172, "text": "Different methods to save and load the deep learning model are using" }, { "code": null, "e": 252, "s": 241, "text": "JSON files" }, { "code": null, "e": 263, "s": 252, "text": "YAML files" }, { "code": null...
Compare two Files line by line in Python - GeeksforGeeks
17 Feb, 2021 In Python, there are many methods available to this comparison. In this Article, We’ll find out how to Compare two different files line by line. Python supports many modules to do so and here we will discuss approaches using its various modules. This article uses two sample files for implementation. Files ...
[ { "code": null, "e": 24225, "s": 24197, "text": "\n17 Feb, 2021" }, { "code": null, "e": 24471, "s": 24225, "text": "In Python, there are many methods available to this comparison. In this Article, We’ll find out how to Compare two different files line by line. Python supports ma...
What is the K-Nearest Neighbor?. An introduction with a Python example | by Andrew Udell | Towards Data Science
K-Nearest Neighbor (KNN) is an easy to understand, but essential and broadly applicable supervised machine learning technique. To understand the intuition behind KNN, examine the scatterplot below. The plot shows the relationship between two arbitrary dimensions, x and y. The blue points represent members of group A an...
[ { "code": null, "e": 593, "s": 172, "text": "K-Nearest Neighbor (KNN) is an easy to understand, but essential and broadly applicable supervised machine learning technique. To understand the intuition behind KNN, examine the scatterplot below. The plot shows the relationship between two arbitrary dim...
How to get device id in android?
This example demonstrate about How to get device id in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:and...
[ { "code": null, "e": 1126, "s": 1062, "text": "This example demonstrate about How to get device id in android." }, { "code": null, "e": 1255, "s": 1126, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a ne...
Keras - Model Evaluation and Model Prediction
This chapter deals with the model evaluation and model prediction in Keras. Let us begin by understanding the model evaluation. Evaluation is a process during development of the model to check whether the model is best fit for the given problem and corresponding data. Keras model provides a function, evaluate which doe...
[ { "code": null, "e": 2127, "s": 2051, "text": "This chapter deals with the model evaluation and model prediction in Keras." }, { "code": null, "e": 2179, "s": 2127, "text": "Let us begin by understanding the model evaluation." }, { "code": null, "e": 2431, "s": 21...
Docker + OpenCV: Real-Time Facial Recognition in 1 minute | by Chamal Gomes | Towards Data Science
Integrating Docker, OpenCV.js and Nginx for quick deployment of real-time facial recognition machine learning models. This is a convenient solution for the Mac Docker community who is struggling to get webcam access due to the drawbacks of the Docker hyper kit support with the help of Nginx. This solution could easily ...
[ { "code": null, "e": 590, "s": 172, "text": "Integrating Docker, OpenCV.js and Nginx for quick deployment of real-time facial recognition machine learning models. This is a convenient solution for the Mac Docker community who is struggling to get webcam access due to the drawbacks of the Docker hype...
VB.Net - Forms
Let's start with creating a Window Forms Application by following the following steps in Microsoft Visual Studio - File → New Project → Windows Forms Applications Finally, select OK, Microsoft Visual Studio creates your project and displays following window Form with a name Form1. Visual Basic Form is the container fo...
[ { "code": null, "e": 2464, "s": 2300, "text": "Let's start with creating a Window Forms Application by following the following steps in Microsoft Visual Studio - File → New Project → Windows Forms Applications" }, { "code": null, "e": 2583, "s": 2464, "text": "Finally, select OK...
Program to convert Array to List in Java
The array is as follows − String arr[] = { "One", "Two", "Three", "Four", "Five" }; Now, using the Array.asList() to convert the above array to list − List<String>myList = Arrays.asList(arr); Following is the program to convert Array to List in Java − import java.util.*; public class Demo { public static void main(S...
[ { "code": null, "e": 1088, "s": 1062, "text": "The array is as follows −" }, { "code": null, "e": 1146, "s": 1088, "text": "String arr[] = { \"One\", \"Two\", \"Three\", \"Four\", \"Five\" };" }, { "code": null, "e": 1213, "s": 1146, "text": "Now, using the Ar...
Understanding RNNs (Recurrent Neural Networks) | by Tony Yiu | Towards Data Science
The first time I heard of a RNN (Recurrent Neural Network), I was perplexed. The article I read was claiming that a RNN is a neural net with memory — that it could remember the sequential ups and downs of the data in order to make more informed predictions. My first thought back then was — how is a RNN different from a...
[ { "code": null, "e": 429, "s": 171, "text": "The first time I heard of a RNN (Recurrent Neural Network), I was perplexed. The article I read was claiming that a RNN is a neural net with memory — that it could remember the sequential ups and downs of the data in order to make more informed prediction...
Graphical Approach to Exploratory Data Analysis in Python | by Kieran Tan Kah Wang | Towards Data Science
Exploratory Data Analysis (EDA) is one of the most important aspect in every data science or data analysis problem. It provides us greater understanding on our data and can possibly unravel hidden insights that aren’t that obvious to us. The first article I’ve wrote on Medium is also on performing EDA in R, you can che...
[ { "code": null, "e": 618, "s": 172, "text": "Exploratory Data Analysis (EDA) is one of the most important aspect in every data science or data analysis problem. It provides us greater understanding on our data and can possibly unravel hidden insights that aren’t that obvious to us. The first article...
Knowing the complexity in competitive programming - GeeksforGeeks
24 May, 2018 Prerequisite: Time Complexity Analysis Generally, while doing competitive programming problems on various sites, the most difficult task faced is writing the code under desired complexity otherwise the program will get a TLE ( Time Limit Exceeded ). A naive solution is almost never accepted. So how to know...
[ { "code": null, "e": 24653, "s": 24625, "text": "\n24 May, 2018" }, { "code": null, "e": 24692, "s": 24653, "text": "Prerequisite: Time Complexity Analysis" }, { "code": null, "e": 24993, "s": 24692, "text": "Generally, while doing competitive programming prob...
Tryit Editor v3.7
Tryit: HTML table border
[]
How to add CSS
When a browser reads a style sheet, it will format the HTML document according to the information in the style sheet. There are three ways of inserting a style sheet: External CSS Internal CSS Inline CSS With an external style sheet, you can change the look of an entire website by changing just one file! Each HTML pa...
[ { "code": null, "e": 119, "s": 0, "text": "When a browser reads a style sheet, it will format the HTML document according to \nthe information in the style sheet." }, { "code": null, "e": 168, "s": 119, "text": "There are three ways of inserting a style sheet:" }, { "code...
How to list all triggers in a MySQL database?
To list all triggers in a MySQL database, you can use the SHOW command. The query is as follows − mysql> show triggers; The following is the output − +----------------+--------+----------------------+--------------------------------------------------------------------+--------+------------------------+-----------------...
[ { "code": null, "e": 1160, "s": 1062, "text": "To list all triggers in a MySQL database, you can use the SHOW command. The query is as follows −" }, { "code": null, "e": 1182, "s": 1160, "text": "mysql> show triggers;" }, { "code": null, "e": 1212, "s": 1182, ...
Setting Up Jupyter Notebooks for Data Visualization in Python | by Alan Jones | Towards Data Science
We are going to see how you set up the Jupyter Notebooks environment with Anaconda, see how to create a notebook and then plot your first graph. Although the language used to create the plots is Python, you don’t really have to know much about programming, as only a very limited set of the language is needed. You will ...
[ { "code": null, "e": 316, "s": 171, "text": "We are going to see how you set up the Jupyter Notebooks environment with Anaconda, see how to create a notebook and then plot your first graph." }, { "code": null, "e": 696, "s": 316, "text": "Although the language used to create the ...
Get Size of the Pandas DataFrame - GeeksforGeeks
28 Nov, 2021 In this article, we will discuss how to get the size of the Pandas Dataframe using Python. This will return the size of dataframe i.e. rows*columns Syntax: dataframe.size where, dataframe is the input dataframe Example: Python code to create a student dataframe and display size Python3 # import pandas mod...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n28 Nov, 2021" }, { "code": null, "e": 25646, "s": 25555, "text": "In this article, we will discuss how to get the size of the Pandas Dataframe using Python." }, { "code": null, "e": 25704, "s": 25646, "text": ...
C# Linq Distinct() Method
To get the distinct elements, use the Distinct() method. The following is our list with duplicate elements. List<int> points = new List<int> { 5, 10, 5, 20, 30, 30, 40, 50, 60, 70 }; Now to get the distinct elements − points.AsQueryable().Distinct(); Let us see the entire example − Live Demo using System; using System...
[ { "code": null, "e": 1119, "s": 1062, "text": "To get the distinct elements, use the Distinct() method." }, { "code": null, "e": 1170, "s": 1119, "text": "The following is our list with duplicate elements." }, { "code": null, "e": 1245, "s": 1170, "text": "Lis...
Java ceil() method with Examples
08 Apr, 2018 The java.lang.Math.ceil() returns the double value that is greater than or equal to the argument and is equal to the nearest mathematical integer.Note: If the argument is Integer, then the result is Integer. If the argument is NaN or an infinity or positive zero or negative zero, then the result is the sam...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Apr, 2018" }, { "code": null, "e": 204, "s": 52, "text": "The java.lang.Math.ceil() returns the double value that is greater than or equal to the argument and is equal to the nearest mathematical integer.Note:" }, { "code": ...
C - Basic Datatypes
C - Programming HOME C - Basic Introduction C - Program Structure C - Reserved Keywords C - Basic Datatypes C - Variable Types C - Storage Classes C - Using Constants C - Operator Types C - Control Statements C - Input and Output C - Pointing to Data C - Using Functions C - Play with Strings C - Structured Datatypes C ...
[ { "code": null, "e": 1609, "s": 1588, "text": "C - Programming HOME" }, { "code": null, "e": 1632, "s": 1609, "text": "C - Basic Introduction" }, { "code": null, "e": 1654, "s": 1632, "text": "C - Program Structure" }, { "code": null, "e": 1676, ...
ReactJS UI Ant Design DatePicker Component
01 Jun, 2021 Ant Design Library has this component pre-built, and it is very easy to integrate as well. DatePicker Component is used to select a date from a popup panel when the user clicks on the input box. We can use the following approach in ReactJS to use the Ant Design DatePicker Component. Common API: allowClear:...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Jun, 2021" }, { "code": null, "e": 312, "s": 28, "text": "Ant Design Library has this component pre-built, and it is very easy to integrate as well. DatePicker Component is used to select a date from a popup panel when the user click...
Output of Java Programs | Set 12
11 Nov, 2021 1) What is the output of the following program? public class Test implements Runnable{ public void run() { System.out.printf("%d",3); } public static void main(String[] args) throws InterruptedException { Thread thread = new Thread(new Test()); thread.start(); Sys...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Nov, 2021" }, { "code": null, "e": 102, "s": 54, "text": "1) What is the output of the following program?" }, { "code": "public class Test implements Runnable{ public void run() { System.out.printf(\"%d\",3); ...
Getter and Setter Methods in Dart
31 Oct, 2021 Getter and setter methods are the class methods used to manipulate the data of the class fields. Getter is used to read or get the data of the class field whereas setter is used to set the data of the class field to some variable. It is used to retrieve a particular class field and save it in a variable. A...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2021" }, { "code": null, "e": 259, "s": 28, "text": "Getter and setter methods are the class methods used to manipulate the data of the class fields. Getter is used to read or get the data of the class field whereas setter is us...
Python MySQL - Create Table
The CREATE TABLE statement is used to create tables in MYSQL database. Here, you need to specify the name of the table and, definition (name and datatype) of each column. Following is the syntax to create a table in MySQL − CREATE TABLE table_name( column1 datatype, column2 datatype, column3 datatype, ........
[ { "code": null, "e": 2524, "s": 2353, "text": "The CREATE TABLE statement is used to create tables in MYSQL database. Here, you need to specify the name of the table and, definition (name and datatype) of each column." }, { "code": null, "e": 2577, "s": 2524, "text": "Following i...
Difference between SortedList and SortedDictionary in C#
01 May, 2019 In C#, SortedList is a collection of key/value pairs which are sorted according to keys. By default, this collection sort the key/value pairs in ascending order. It is of both generic and non-generic type of collection. The generic SortedList is defined in System.Collections.Generic namespace whereas non-g...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 May, 2019" }, { "code": null, "e": 400, "s": 28, "text": "In C#, SortedList is a collection of key/value pairs which are sorted according to keys. By default, this collection sort the key/value pairs in ascending order. It is of both...
Python-Quizzes | Python Dictionary Quiz | Question 25
17 Sep, 2020 Question 25:Find the output of the following program: counter = {} def addToCounter(country): if country in counter: counter[country] += 1 else: counter[country] = 1 addToCounter('China') addToCounter('Japan') addToCounter('china') print (len(counter)) (A) 0(B) 1(C) 2(D) 3Answer...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 Sep, 2020" }, { "code": null, "e": 107, "s": 53, "text": "Question 25:Find the output of the following program:" }, { "code": "counter = {} def addToCounter(country): if country in counter: counter[country] += ...
How to Set Precision For Double Values in Java?
04 Jul, 2022 Significant digits are referred to all digits inclusive of left and right to decimal place keeping a note adding 0 to left of any number is not countable as significant digits whereas precise digits referred to digits that are only lying on the right side or in short after the decimal place in mathematics....
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jul, 2022" }, { "code": null, "e": 598, "s": 52, "text": "Significant digits are referred to all digits inclusive of left and right to decimal place keeping a note adding 0 to left of any number is not countable as significant digit...
Numpy | Indexing - GeeksforGeeks
15 Nov, 2018 NumPy or Numeric Python is a package for computation on homogenous n-dimensional arrays. In numpy dimensions are called as axes. Why do we need NumPy ? A question arises that why do we need NumPy when python lists are already there. The answer to it is we cannot perform operations on all the elements of tw...
[ { "code": null, "e": 43445, "s": 43417, "text": "\n15 Nov, 2018" }, { "code": null, "e": 43574, "s": 43445, "text": "NumPy or Numeric Python is a package for computation on homogenous n-dimensional arrays. In numpy dimensions are called as axes." }, { "code": null, "e...
ImageField – Django Models
12 Feb, 2020 ImageField is a FileField with uploads restricted to image formats only. Before uploading files, one needs to specify a lot of settings so that file is securely saved and can be retrieved in a convenient manner. The default form widget for this field is a ClearableFileInput. In addition to the special attr...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Feb, 2020" }, { "code": null, "e": 516, "s": 52, "text": "ImageField is a FileField with uploads restricted to image formats only. Before uploading files, one needs to specify a lot of settings so that file is securely saved and can...
DoubleUnaryOperator Interface in Java
18 Nov, 2019 The DoubleUnaryOperator Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents a function which takes in one argument and operates on it. Both its argument and return type are of double data type.It is very si...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Nov, 2019" }, { "code": null, "e": 391, "s": 28, "text": "The DoubleUnaryOperator Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represent...
Number of solutions for the equation x + y + z <= n
25 May, 2022 Given four numbers x, y, z, n. The task is to find the number of solutions for the equation x + y + z <= n, such that 0 <= x <= X, 0 <= y <= Y, 0 <= z <= Z. Examples: Input: x = 1, y = 1, z = 1, n = 1 Output: 4 Input: x = 1, y = 2, z = 3, n = 4 Output: 20 Approach: Let’s iterate explicitly over all possi...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 May, 2022" }, { "code": null, "e": 185, "s": 28, "text": "Given four numbers x, y, z, n. The task is to find the number of solutions for the equation x + y + z <= n, such that 0 <= x <= X, 0 <= y <= Y, 0 <= z <= Z." }, { "cod...
Searching BETWEEN dates stored as varchar in MySQL?
You can search between dates stored as varchar using STR_TO_DATE(). The syntax is as follows − select *from yourTableName where STR_TO_DATE(LEFT(yourColumnName,LOCATE('',yourColumnName)),'%m/%d/%Y') BETWEEN 'yourDateValue1' AND 'yourDateValue2’; To understand the above syntax, let us create a table. The query to create...
[ { "code": null, "e": 1282, "s": 1187, "text": "You can search between dates stored as varchar using STR_TO_DATE(). The syntax is as follows −" }, { "code": null, "e": 1433, "s": 1282, "text": "select *from yourTableName where STR_TO_DATE(LEFT(yourColumnName,LOCATE('',yourColumnNa...
JSF - Expression Language
JSF provides a rich expression language. We can write normal operations using #{operation-expression} notation. Following are some of the advantages of JSF Expression languages. Can reference bean properties where bean can be an object stored in request, session or application scope or is a managed bean. Can reference ...
[ { "code": null, "e": 2130, "s": 1952, "text": "JSF provides a rich expression language. We can write normal operations using #{operation-expression} notation. Following are some of the advantages of JSF Expression languages." }, { "code": null, "e": 2258, "s": 2130, "text": "Can ...
Setting Up Jupyter on Google Cloud | by Asko Seeba | Towards Data Science
UPDATE: In my next post I gave the equivalent instructions for Setting Up Jupyter on AWS — if you are more into AWS, go and check that article. Google Cloud is a great, powerful and rapidly evolving contemporary cloud environment, which provides plenty of cool services and tools for data scientists and data engineers. ...
[ { "code": null, "e": 315, "s": 171, "text": "UPDATE: In my next post I gave the equivalent instructions for Setting Up Jupyter on AWS — if you are more into AWS, go and check that article." }, { "code": null, "e": 1746, "s": 315, "text": "Google Cloud is a great, powerful and rap...
A Guide to the Pipe in R. R’s most important operator for data... | by Rory Spanton | Towards Data Science
Data analysis often involves many steps. A typical journey from raw data to results might involve filtering cases, transforming values, summarising data, and then running a statistical test. But how can we link all these steps together, while keeping our code efficient and readable? Enter the pipe, R’s most important o...
[ { "code": null, "e": 521, "s": 172, "text": "Data analysis often involves many steps. A typical journey from raw data to results might involve filtering cases, transforming values, summarising data, and then running a statistical test. But how can we link all these steps together, while keeping our ...
Difference between Array and Array of Objects in JavaScript - GeeksforGeeks
02 Nov, 2021 In this article, we will see the differences between Array and Array of Objects in JavaScript. 1. Array: An Array is a collection of data and a data structure that is stored in a sequence of memory locations. One can access the elements of an array by calling the index number such as 0, 1, 2, 3, ..., etc....
[ { "code": null, "e": 25325, "s": 25297, "text": "\n02 Nov, 2021" }, { "code": null, "e": 25420, "s": 25325, "text": "In this article, we will see the differences between Array and Array of Objects in JavaScript." }, { "code": null, "e": 25761, "s": 25420, "tex...
Measure text height on an HTML5 canvas element
To get the text height, set the font in pt − context.font="15pt Calibri"; Now, get the height like the following − var height = parseInt(context.font.match(/\d+/), 10); Above we have used a match to separate the font size from font face.
[ { "code": null, "e": 1107, "s": 1062, "text": "To get the text height, set the font in pt −" }, { "code": null, "e": 1136, "s": 1107, "text": "context.font=\"15pt Calibri\";" }, { "code": null, "e": 1177, "s": 1136, "text": "Now, get the height like the follow...
How to get current formatted date dd/mm/yyyy in JavaScript ? - GeeksforGeeks
21 Jul, 2021 The task is to format the current date in dd/mm/yyyy format by using JavaScript. We’re going to discuss few methods.First few methods to know JavaScript getDate() Method:This method returns the day of the month (from 1 to 31) for the defined date.Syntax:Date.getDate() Return value:It returns a number, from...
[ { "code": null, "e": 24627, "s": 24599, "text": "\n21 Jul, 2021" }, { "code": null, "e": 24769, "s": 24627, "text": "The task is to format the current date in dd/mm/yyyy format by using JavaScript. We’re going to discuss few methods.First few methods to know" }, { "code":...
How to draw shapes using Graphics - 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 In this tutorial, I am going to show you how ...
[ { "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, ...
React.js useImperativeHandle Additional Hook - GeeksforGeeks
17 Mar, 2021 The useImperativeHandle hook works in the similar phase of useRef hook but only it allows us to modify the instance that is going to be passed with the ref object which provides a reference to any DOM element. Although this hook is used in rare cases, it has some most advanced functionality. Syntax: useImp...
[ { "code": null, "e": 24397, "s": 24369, "text": "\n17 Mar, 2021" }, { "code": null, "e": 24690, "s": 24397, "text": "The useImperativeHandle hook works in the similar phase of useRef hook but only it allows us to modify the instance that is going to be passed with the ref object ...
Python Program to Replace Specific Line in File - GeeksforGeeks
14 Sep, 2021 In this article, we are going to write a Python program to replace specific lines in the file. We will first open the file in read-only mode and read all the lines using readlines(), creating a list of lines storing it in a variable. We will make the necessary changes to a specific line and after that, we ...
[ { "code": null, "e": 24421, "s": 24393, "text": "\n14 Sep, 2021" }, { "code": null, "e": 24516, "s": 24421, "text": "In this article, we are going to write a Python program to replace specific lines in the file." }, { "code": null, "e": 24809, "s": 24516, "tex...
How to install and import Python modules at runtime?
You can use pip to install packages at runtime and importlib.import_module(moduleName) to import module by using its name as a string. For example, import pip import importlib def import_with_auto_install(package): try: return importlib.import_module(package) except ImportError: pip.main(['insta...
[ { "code": null, "e": 1210, "s": 1062, "text": "You can use pip to install packages at runtime and importlib.import_module(moduleName) to import module by using its name as a string. For example," }, { "code": null, "e": 1544, "s": 1210, "text": "import pip\nimport importlib\ndef ...
Scrape Table from Website using Python - Selenium - GeeksforGeeks
03 Mar, 2021 Selenium is the automation software testing tool that obtains the website, performs various actions, or obtains the data from the website. It was chiefly developed for easing the testing work by automating the web applications. Nowadays, apart from being used for testing, it can also be used for making ted...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n03 Mar, 2021" }, { "code": null, "e": 24501, "s": 23901, "text": "Selenium is the automation software testing tool that obtains the website, performs various actions, or obtains the data from the website. It was chiefly developed...
Java Concurrency - AtomicLong Class
A java.util.concurrent.atomic.AtomicLong class provides operations on underlying long value that can be read and written atomically, and also contains advanced atomic operations. AtomicLong supports atomic operations on underlying long variable. It have get and set methods that work like reads and writes on volatile va...
[ { "code": null, "e": 3157, "s": 2657, "text": "A java.util.concurrent.atomic.AtomicLong class provides operations on underlying long value that can be read and written atomically, and also contains advanced atomic operations. AtomicLong supports atomic operations on underlying long variable. It have...
Finding the elements of nth row of Pascal's triangle in JavaScript
Pascal's triangle is a triangular array constructed by summing adjacent elements in preceding rows. The first few elements of Pascals triangle are − We are required to write a JavaScript function that takes in a positive number, say num as the only argument. The function should return an array of all the elements that ...
[ { "code": null, "e": 1162, "s": 1062, "text": "Pascal's triangle is a triangular array constructed by summing adjacent elements in preceding\nrows." }, { "code": null, "e": 1211, "s": 1162, "text": "The first few elements of Pascals triangle are −" }, { "code": null, ...
Python Pillow - Cropping an Image
Cropping is one of the important operations of the image processing to remove unwanted portions of an image as well as to add required features to an image. It is widely used process in web applications, for uploading an image. The crop() function of the image class in Pillow requires the portion to be cropped as recta...
[ { "code": null, "e": 2428, "s": 2200, "text": "Cropping is one of the important operations of the image processing to remove unwanted portions of an image as well as to add required features to an image. It is widely used process in web applications, for uploading an image." }, { "code": nul...
Python has a built-in Logo Turtle, and it’s great for reinforcement learning | by Tom Grek | Towards Data Science
A little while ago I was teaching a Berkeley class on data analytics, and one of the exercises had students go through the Python stdlib to find interesting modules. I went through the docs too and was delighted to find that Python has a turtle! Do you remember? FORWARD 10LEFT 90 My high school in the 90s was not rich ...
[ { "code": null, "e": 435, "s": 172, "text": "A little while ago I was teaching a Berkeley class on data analytics, and one of the exercises had students go through the Python stdlib to find interesting modules. I went through the docs too and was delighted to find that Python has a turtle! Do you re...
What is the difference between ++i and i++ in C++?
There is a big distinction between the suffix and prefix versions of ++. In the prefix version (i.e., ++i), the value of i is incremented, and the value of the expression is the new value of i. So basically it first increments then assigns a value to the expression. In the postfix version (i.e., i++), the value of i is...
[ { "code": null, "e": 1135, "s": 1062, "text": "There is a big distinction between the suffix and prefix versions of ++." }, { "code": null, "e": 1329, "s": 1135, "text": "In the prefix version (i.e., ++i), the value of i is incremented, and the value of the expression is the new ...
Creating First REST API with FastAPI - GeeksforGeeks
05 Sep, 2020 FastAPI :FastAPI is modern Web Framework . It is used for building API and is very easy to learn . Features of FastAPI : High Performance than many Web Frameworks, faster than Node.js, etc . Easy to Develop API’s Production Ready Well Documentation to learn code fast Swagger UI to form API Documentation Av...
[ { "code": null, "e": 25981, "s": 25953, "text": "\n05 Sep, 2020" }, { "code": null, "e": 26080, "s": 25981, "text": "FastAPI :FastAPI is modern Web Framework . It is used for building API and is very easy to learn ." }, { "code": null, "e": 26102, "s": 26080, ...
Get the Day of the Week from Today's Date in Java
To get the day of the week, use the Calendar.DAY_OF_WEEK. Firstly, let us get the current date. java.util.Date utilDate = new java.util.Date(); java.sql.Date dt = new java.sql.Date(utilDate.getTime()); Now, using GregorianCalendar, set the time. java.util.GregorianCalendar cal = new java.util.GregorianCalendar(); cal.s...
[ { "code": null, "e": 1120, "s": 1062, "text": "To get the day of the week, use the Calendar.DAY_OF_WEEK." }, { "code": null, "e": 1158, "s": 1120, "text": "Firstly, let us get the current date." }, { "code": null, "e": 1264, "s": 1158, "text": "java.util.Date ...
Print all the leaf nodes of Binary Heap - GeeksforGeeks
07 Apr, 2022 Given an array of N elements which denotes the array representation of binary heap, the task is to find the leaf nodes of this binary heap. Examples: Input: arr[] = {1, 2, 3, 4, 5, 6, 7} Output: 4 5 6 7 Explanation: 1 / \ 2 3 / \ / \ 4 5 6 7 ...
[ { "code": null, "e": 24920, "s": 24892, "text": "\n07 Apr, 2022" }, { "code": null, "e": 25060, "s": 24920, "text": "Given an array of N elements which denotes the array representation of binary heap, the task is to find the leaf nodes of this binary heap." }, { "code": n...
Angular 10 getLocaleTimeFormat() Function - GeeksforGeeks
30 Apr, 2021 The getLocaleTimeFormat is used to get the localized time-value formatting for the given locale. Syntax: getLocaleTimeFormat(locale: string, width: FormatWidth): string NgModule: Module used by getLocaleTimeFormat is: CommonModule Approach: Create the angular app to be used In app.module.ts import LOCALE_I...
[ { "code": null, "e": 26464, "s": 26436, "text": "\n30 Apr, 2021" }, { "code": null, "e": 26561, "s": 26464, "text": "The getLocaleTimeFormat is used to get the localized time-value formatting for the given locale." }, { "code": null, "e": 26569, "s": 26561, "t...
Can we declare an interface as final in java?
Interface in Java is similar to class but, it contains only abstract methods and fields which are final and static. Since all the methods are abstract you cannot instantiate it. To use it, you need to implement this interface using a class and provide body to all the abstract methods int it. If you declare a class fina...
[ { "code": null, "e": 1178, "s": 1062, "text": "Interface in Java is similar to class but, it contains only abstract methods and fields which are final and static." }, { "code": null, "e": 1355, "s": 1178, "text": "Since all the methods are abstract you cannot instantiate it. To u...
Hash Table Data Structure in Javascript
Hash Table is a data structure which stores data in an associative manner. In a hash table, data is stored in an array format, where each data value has its own unique index value. Access to data becomes very fast if we know the index of the desired data. Thus, it becomes a data structure in which insertion and search ...
[ { "code": null, "e": 1318, "s": 1062, "text": "Hash Table is a data structure which stores data in an associative manner. In a hash table, data is stored in an array format, where each data value has its own unique index value. Access to data becomes very fast if we know the index of the desired dat...
Python | Pandas dataframe.median()
24 Nov, 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. Pandas dataframe.median() function return the median of the values for the requested axisIf t...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Nov, 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...
Difference between EDF and LST CPU scheduling algorithms
20 Jun, 2020 1. Earliest Deadline First (EDF) :In Earliest Deadline First scheduling algorithm, at every scheduling point the task having the shortest deadline is scheduled for the execution. It is an optimal dynamic priority-driven scheduling algorithm used in real-time systems. It uses priorities of the tasks for sch...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Jun, 2020" }, { "code": null, "e": 485, "s": 28, "text": "1. Earliest Deadline First (EDF) :In Earliest Deadline First scheduling algorithm, at every scheduling point the task having the shortest deadline is scheduled for the executi...
Rounding off values in R Language – round() Function
15 Apr, 2021 round() function in R Language is used to round off values to a specific number of decimal value. Syntax: round(x, digits)Parameters: x: Value to be round off digits: Number of digits to which value has to be round off Example 1: Rounding off the values Python3 # R program to illustrate# round function ...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2021" }, { "code": null, "e": 127, "s": 28, "text": "round() function in R Language is used to round off values to a specific number of decimal value. " }, { "code": null, "e": 248, "s": 127, "text": "Syntax:...
PyQtGraph – Setting Pen of Graph Item
08 Dec, 2021 In this article we will see how we can set the pen of the graph item in PyQTGraph. PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for displaying da...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Dec, 2021" }, { "code": null, "e": 782, "s": 28, "text": "In this article we will see how we can set the pen of the graph item in PyQTGraph. PyQtGraph is a graphics and user interface library for Python that provides functionality co...
Python Tweepy – Getting the name of a user
18 Jun, 2020 In this article we will see how we can get the name of a user. Name is the display name of the twitter account. It is the name that users choose to identify themselves on the network. Many users choose to either use their real name as the basis for their display name. Unlike screen names, the names need no...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2020" }, { "code": null, "e": 504, "s": 28, "text": "In this article we will see how we can get the name of a user. Name is the display name of the twitter account. It is the name that users choose to identify themselves on the ...
Java Program to Extract Last two Digits of a Given Year
02 Nov, 2020 As the name suggests where there is an execution to be operated required to deal with digits of the number, the modulo operator plays a vital role. Here the goal is to extract the last digits of a number. So making the problem easier to think about what if the goal is to extract the last digit from a numbe...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Nov, 2020" }, { "code": null, "e": 687, "s": 52, "text": "As the name suggests where there is an execution to be operated required to deal with digits of the number, the modulo operator plays a vital role. Here the goal is to extrac...
Goldeneye DDos Tool in Kali Linux
24 Jun, 2021 Goldeneye is a free and Open source tool available on GitHub. We can perform a denial of service attack using this tool. It’s a framework written in .NET Core. This tool provides many base classes and extensions to use with your daily work. This tool allows a single machine to take down another machine’s w...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Jun, 2021" }, { "code": null, "e": 636, "s": 53, "text": "Goldeneye is a free and Open source tool available on GitHub. We can perform a denial of service attack using this tool. It’s a framework written in .NET Core. This tool prov...
Top 5 PSUs for Computer Science Engineers in India
13 Mar, 2020 Every year, the Public Sector Undertakings(PSUs) of India offers an ample amount of employment opportunities (especially for Engineering Graduates!). And who wouldn’t want to work in such prestigious Government organizations like IOCL, DRDO, ONGC, etc? (Everyone wants!) There may be many other reasons too ...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Mar, 2020" }, { "code": null, "e": 563, "s": 54, "text": "Every year, the Public Sector Undertakings(PSUs) of India offers an ample amount of employment opportunities (especially for Engineering Graduates!). And who wouldn’t want to...
Hadoop – Reducer in Map-Reduce
21 Feb, 2022 Map-Reduce is a programming model that is mainly divided into two phases i.e. Map Phase and Reduce Phase. It is designed for processing the data in parallel which is divided on various machines(nodes). The Hadoop Java programs are consist of Mapper class and Reducer class along with the driver class. Reduc...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Feb, 2022" }, { "code": null, "e": 495, "s": 28, "text": "Map-Reduce is a programming model that is mainly divided into two phases i.e. Map Phase and Reduce Phase. It is designed for processing the data in parallel which is divided o...
How to get the new image URL after refreshing the image using JavaScript ?
13 Jun, 2022 The browser cache relies on the image URL to decide whether the image is the same or not and whether to use the stored version. It means if we change something within the URL and then attempt to reload the image, the cache will no longer be able to change that it is the same resource. The cache will fetch ...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Jun, 2022" }, { "code": null, "e": 385, "s": 52, "text": "The browser cache relies on the image URL to decide whether the image is the same or not and whether to use the stored version. It means if we change something within the URL...
Method Class | getGenericReturnType() Method in Java
21 Aug, 2021 The getGenericReturnType() method of java.lang.reflect.Method class returns a Type object that represent the return type, declared in method at time of coding. Hence, getGenericReturnType() method returns the return type of method object. If a formal return type is a parameterized type, the Type object ret...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Aug, 2021" }, { "code": null, "e": 267, "s": 28, "text": "The getGenericReturnType() method of java.lang.reflect.Method class returns a Type object that represent the return type, declared in method at time of coding. Hence, getGener...
PyQt5 – Create translucent Push Button
22 Apr, 2020 In this article we will see how to create translucent button, here translucent refer as button which are not completely opaque. In order to do this, we have to change the alpha level of push button, alpha level is the opaque factor greater the value of alpha more the object is opaque, but unlike main windo...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 156, "s": 28, "text": "In this article we will see how to create translucent button, here translucent refer as button which are not completely opaque." }, { "code": null, "e": 454, "...
Minimax Algorithm in Game Theory | Set 1 (Introduction)
13 Jun, 2022 Minimax is a kind of backtracking algorithm that is used in decision making and game theory to find the optimal move for a player, assuming that your opponent also plays optimally. It is widely used in two player turn-based games such as Tic-Tac-Toe, Backgammon, Mancala, Chess, etc.In Minimax the two playe...
[ { "code": null, "e": 54, "s": 26, "text": "\n13 Jun, 2022" }, { "code": null, "e": 898, "s": 54, "text": "Minimax is a kind of backtracking algorithm that is used in decision making and game theory to find the optimal move for a player, assuming that your opponent also plays opti...
Chained Exceptions in C#
Chained Exceptions are a chain of try-catch statements that handle exceptions. To create a chain of exceptions i.e. chained exceptions − Set the first try-catch − static void Main(string[] args) { try { One(); } catch (Exception e) { Console.WriteLine(e); } } Now try-catch under method One() − stat...
[ { "code": null, "e": 1199, "s": 1062, "text": "Chained Exceptions are a chain of try-catch statements that handle exceptions. To create a chain of exceptions i.e. chained exceptions −" }, { "code": null, "e": 1225, "s": 1199, "text": "Set the first try-catch −" }, { "code...