title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Rotate matrix by 45 degrees - GeeksforGeeks
05 Jan, 2022 Given a matrix mat[][] of size N*N, the task is to rotate the matrix by 45 degrees and print the matrix. Examples: Input: N = 6, mat[][] = {{3, 4, 5, 1, 5, 9, 5}, {6, 9, 8, 7, 2, 5, 2}, {1, 5, 9, 7, 5, 3, 2}, {4, 7, 8, 9, 3, 5, 2}, {4, 5, 2, 9, 5...
[ { "code": null, "e": 26435, "s": 26407, "text": "\n05 Jan, 2022" }, { "code": null, "e": 26540, "s": 26435, "text": "Given a matrix mat[][] of size N*N, the task is to rotate the matrix by 45 degrees and print the matrix." }, { "code": null, "e": 26550, "s": 26540...
chage command in Linux with examples - GeeksforGeeks
30 Oct, 2019 chage command is used to view and change the user password expiry information. This command is used when the login is to be provided for a user for limited amount of time or when it is necessary to change the login password time to time. With the help of this command we can view the aging information of an...
[ { "code": null, "e": 25777, "s": 25749, "text": "\n30 Oct, 2019" }, { "code": null, "e": 26222, "s": 25777, "text": "chage command is used to view and change the user password expiry information. This command is used when the login is to be provided for a user for limited amount ...
How to Install Deepin on VirtualBox? - GeeksforGeeks
08 Sep, 2021 Deepin is a Debian-based distribution that aims to provide a user-friendly, user-friendly and reliable operating system. It does not only include the best open source world has to offer, but also it has created its own desktop environment called DDE which is based on the Qt 5 toolkit. It focuses much of it...
[ { "code": null, "e": 26197, "s": 26169, "text": "\n08 Sep, 2021" }, { "code": null, "e": 26537, "s": 26197, "text": "Deepin is a Debian-based distribution that aims to provide a user-friendly, user-friendly and reliable operating system. It does not only include the best open sou...
Find a number K such that exactly K array elements are greater than or equal to K - GeeksforGeeks
06 Jan, 2022 Given an array a[] of size N, which contains only non-negative elements, the task is to find any integer K for which there are exactly K array elements that are greater than or equal to K. If no such K exists, then print -1. Examples: Input: a[] = {7, 8, 9, 0, 0, 1}Output: 3Explanation:Since 3 is less than...
[ { "code": null, "e": 26135, "s": 26107, "text": "\n06 Jan, 2022" }, { "code": null, "e": 26360, "s": 26135, "text": "Given an array a[] of size N, which contains only non-negative elements, the task is to find any integer K for which there are exactly K array elements that are gr...
C# | Char.IsLower() Method - GeeksforGeeks
31 Jan, 2019 In C#, Char.IsLower() is a System.Char struct method which is used to check whether a Unicode character can be categorized as a lowercase letter or not. Valid lowercase letters will be the members of UnicodeCategory: LowercaseLetter. This method can be overloaded by passing different type and number of arg...
[ { "code": null, "e": 25277, "s": 25249, "text": "\n31 Jan, 2019" }, { "code": null, "e": 25598, "s": 25277, "text": "In C#, Char.IsLower() is a System.Char struct method which is used to check whether a Unicode character can be categorized as a lowercase letter or not. Valid lowe...
Passing arguments to a Tkinter button command
The Button widget in Tkinter is generally used for pushing an event defined in an application. We can bind the events with buttons that allow them to execute and run whenever an action is triggered by the user. However, sharing the data and variables outside the function and events seems difficult sometimes. With the B...
[ { "code": null, "e": 1273, "s": 1062, "text": "The Button widget in Tkinter is generally used for pushing an event defined in an application. We can bind the events with buttons that allow them to execute and run whenever an action is triggered by the user." }, { "code": null, "e": 1480,...
Rakuten Archives - GeeksforGeeks
Rakuten Interview Experience for Associate Software Engineer (Off-Campus) Rakuten India Interview Experience | On-Campus 2021 Rakuten Interview Experience | SDE Intern (Pool Campus) Rakuten Internship Interview Expereince Rakuten India Interview Experience for Technical Intern How to Add External JAR File to an Intelli...
[ { "code": null, "e": 24204, "s": 24130, "text": "Rakuten Interview Experience for Associate Software Engineer (Off-Campus)" }, { "code": null, "e": 24256, "s": 24204, "text": "Rakuten India Interview Experience | On-Campus 2021" }, { "code": null, "e": 24312, "s":...
DataFrame.to_excel() method in Pandas
16 Jul, 2020 The to_excel() method is used to export the DataFrame to the excel file. To write a single object to the excel file, we have to specify the target file name. If we want to write to multiple sheets, we need to create an ExcelWriter object with target filename and also need to specify the sheet in the file ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2020" }, { "code": null, "e": 513, "s": 28, "text": "The to_excel() method is used to export the DataFrame to the excel file. To write a single object to the excel file, we have to specify the target file name. If we want to wr...
Types of Virtual Machines
20 Aug, 2020 In this article, we will study about virtual machines, types of virtual machines, and virtual machine languages. Virtual Machine is like fake computer system operating on your hardware. It partially uses the hardware of your system (like CPU, RAM, disk space, etc.) but its space is completely separated fro...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Aug, 2020" }, { "code": null, "e": 166, "s": 53, "text": "In this article, we will study about virtual machines, types of virtual machines, and virtual machine languages." }, { "code": null, "e": 605, "s": 166, "...
Remove duplicates from a sorted doubly linked list
20 Jun, 2022 Given a sorted doubly linked list containing n nodes. The problem is removing duplicate nodes from the given list. Examples: Algorithm: removeDuplicates(head_ref, x) if head_ref == NULL return Initialize current = head_ref while current->next != NULL if current->data...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Jun, 2022" }, { "code": null, "e": 168, "s": 53, "text": "Given a sorted doubly linked list containing n nodes. The problem is removing duplicate nodes from the given list." }, { "code": null, "e": 179, "s": 168, ...
Remove all consecutive duplicates from the string
15 Nov, 2021 Given a string S, remove all the consecutive duplicates. Note that this problem is different from Recursively remove all adjacent duplicates. Here we keep one character and remove all subsequent same characters. Examples: Input : aaaaabbbbbb Output : ab Input : geeksforgeeks Output : geksforgeks Input ...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Nov, 2021" }, { "code": null, "e": 264, "s": 52, "text": "Given a string S, remove all the consecutive duplicates. Note that this problem is different from Recursively remove all adjacent duplicates. Here we keep one character and r...
Trigonometric Functions in Java with Examples
27 May, 2019 The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. Java.lang.Math.sin() Method : is an inbuilt method which returns the sine of the value passed as an argument. The value passed in this function sh...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 May, 2019" }, { "code": null, "e": 189, "s": 28, "text": "The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions." }, { ...
Sliding Window Protocol | Set 1 (Sender Side)
27 Jan, 2022 Prerequisite : Stop and Wait ARQ The Stop and Wait ARQ offers error and flow control, but may cause big performance issues as sender always waits for acknowledgement even if it has next packet ready to send. Consider a situation where you have a high bandwidth connection and propagation delay is also high ...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Jan, 2022" }, { "code": null, "e": 87, "s": 54, "text": "Prerequisite : Stop and Wait ARQ" }, { "code": null, "e": 518, "s": 87, "text": "The Stop and Wait ARQ offers error and flow control, but may cause big per...
Python Data analysis and Visualization
Pandas is one of the most popular python library for data science and analytics. Pandas library is used for data manipulation, analysis and cleaning. It is a high-level abstraction over low-level NumPy which is written purely in C. In this section, we will cover some of the most important (most often used) things we ne...
[ { "code": null, "e": 1427, "s": 1062, "text": "Pandas is one of the most popular python library for data science and analytics. Pandas library is used for data manipulation, analysis and cleaning. It is a high-level abstraction over low-level NumPy which is written purely in C. In this section, we w...
How to import data from .CSV file into MySQL table using Node.js ? - GeeksforGeeks
19 Jan, 2022 What is .CSV file?The .CSV (Comma Separated Values) files are plain text files that contains a list of data separated by comma(,). It is a format best used for tabular data, row, and columns, exactly like a spreadsheet, just the difference is that the file is in the form of plain text. The idea of a CSV fi...
[ { "code": null, "e": 24556, "s": 24528, "text": "\n19 Jan, 2022" }, { "code": null, "e": 24944, "s": 24556, "text": "What is .CSV file?The .CSV (Comma Separated Values) files are plain text files that contains a list of data separated by comma(,). It is a format best used for tab...
Introduction to Explainable AI(XAI) using LIME - GeeksforGeeks
25 Aug, 2021 Motivating Explainable AI The vast field of Artificial Intelligence(AI) has experienced enormous growth in recent years. With newer and more complex models coming each year, AI models have started to surpass human intellect at a pace that no one could have predicted. But as we get more accurate and precise...
[ { "code": null, "e": 24370, "s": 24342, "text": "\n25 Aug, 2021" }, { "code": null, "e": 24396, "s": 24370, "text": "Motivating Explainable AI" }, { "code": null, "e": 24909, "s": 24396, "text": "The vast field of Artificial Intelligence(AI) has experienced en...
FloatField - Django Forms - GeeksforGeeks
13 Feb, 2020 FloatField in Django Forms is a integer field, for taking input of floating point numbers from user. The default widget for this input is NumberInput.It normalizes to: A Python float. It validates that the given value is a float. It uses MaxValueValidator and MinValueValidator if max_value and min_value ar...
[ { "code": null, "e": 24322, "s": 24294, "text": "\n13 Feb, 2020" }, { "code": null, "e": 24718, "s": 24322, "text": "FloatField in Django Forms is a integer field, for taking input of floating point numbers from user. The default widget for this input is NumberInput.It normalizes...
Time Series - Exponential Smoothing
In this chapter, we will talk about the techniques involved in exponential smoothing of time series. Exponential Smoothing is a technique for smoothing univariate time-series by assigning exponentially decreasing weights to data over a time period. Mathematically, the value of variable at time ‘t+1’ given value at time...
[ { "code": null, "e": 2242, "s": 2141, "text": "In this chapter, we will talk about the techniques involved in exponential smoothing of time series." }, { "code": null, "e": 2390, "s": 2242, "text": "Exponential Smoothing is a technique for smoothing univariate time-series by assi...
Sum of the series 1, 3, 6, 10... (Triangular Numbers) in C++
In this problem, we are given a number n which is given the n of elements of the series 1, 3, 6, 10 ... (triangular number). Our task is to create a program to calculate the sum of the series. Let’s brush up about triangular numbers before calculating the sum. Triangular numbers are those numbers that can be represente...
[ { "code": null, "e": 1255, "s": 1062, "text": "In this problem, we are given a number n which is given the n of elements of the series 1, 3, 6, 10 ... (triangular number). Our task is to create a program to calculate the sum of the series." }, { "code": null, "e": 1323, "s": 1255, ...
How to hide Firefox window (Selenium WebDriver)?
We can hide the Firefox window in Selenium webdriver. This can be done by making the browser headless. We shall achieve this with the FirefoxOptions class. We shall then create an object option of that class. We have to make the browser setting options.headless to True value. This driver object shall then receive this ...
[ { "code": null, "e": 1271, "s": 1062, "text": "We can hide the Firefox window in Selenium webdriver. This can be done by making the browser headless. We shall achieve this with the FirefoxOptions class. We shall then create an object option of that class." }, { "code": null, "e": 1543, ...
Insertion Sort List C++
Suppose we have a linked list, we have to perform the insertion sort on this list. So if the list is like [9,45,23,71,80,55], sorted list is [9,23,45,55,71,80]. To solve this, we will follow these steps − dummy := new Node with some random value dummy := new Node with some random value node := given list node := given ...
[ { "code": null, "e": 1223, "s": 1062, "text": "Suppose we have a linked list, we have to perform the insertion sort on this list. So if the list is like [9,45,23,71,80,55], sorted list is [9,23,45,55,71,80]." }, { "code": null, "e": 1267, "s": 1223, "text": "To solve this, we wil...
What is the purpose of a default constructor in Java?
A constructor initializes an object when it is created. It has the same name as its class and is syntactically similar to a method. However, constructors have no explicit return type. There are two types of constructors namely − parameterized constructors − Constructors with arguments. no-arg constructors − Constructor...
[ { "code": null, "e": 1291, "s": 1062, "text": "A constructor initializes an object when it is created. It has the same name as its class and is syntactically similar to a method. However, constructors have no explicit return type. There are two types of constructors namely −" }, { "code": nu...
Arduino - Mouse Button Control
Using the Mouse library, you can control a computer's onscreen cursor with an Arduino Leonardo, Micro, or Due. This particular example uses five pushbuttons to move the onscreen cursor. Four of the buttons are directional (up, down, left, right) and one is for a left mouse click. Cursor movement from Arduino is always ...
[ { "code": null, "e": 2981, "s": 2870, "text": "Using the Mouse library, you can control a computer's onscreen cursor with an Arduino Leonardo, Micro, or Due." }, { "code": null, "e": 3296, "s": 2981, "text": "This particular example uses five pushbuttons to move the onscreen curs...
Cyber Security - Types of Enumeration - GeeksforGeeks
14 Jan, 2022 Enumeration is fundamentally checking. An attacker sets up a functioning associated with the objective host. The weaknesses are then tallied and evaluated. It is done mostly to look for assaults and dangers to the objective framework. Enumeration is utilized to gather usernames, hostname, IP addresses, pas...
[ { "code": null, "e": 24174, "s": 24146, "text": "\n14 Jan, 2022" }, { "code": null, "e": 24929, "s": 24174, "text": "Enumeration is fundamentally checking. An attacker sets up a functioning associated with the objective host. The weaknesses are then tallied and evaluated. It is d...
GATE | GATE-CS-2017 (Set 1) | Question 19 - GeeksforGeeks
28 Jun, 2021 Consider a database that has the relation schema EMP (EmpId, EmpName, and DeptName). An instance of the schema EMP and a SQL query on it are given below. The output of executing the SQL query is _______. Note: This questions appeared as Numerical Answer Type.(A) 1.2(B) 2.3(C) 2.6(D) 3.1Answer: (C)Explanati...
[ { "code": null, "e": 24488, "s": 24460, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24642, "s": 24488, "text": "Consider a database that has the relation schema EMP (EmpId, EmpName, and DeptName). An instance of the schema EMP and a SQL query on it are given below." }, {...
Why an interface doesn't have a constructor whereas an abstract class have a constructor in Java?
A Constructor is to initialize the non-static members of a particular class with respect to an object. An Interface in Java doesn't have a constructor because all data members in interfaces are public static final by default, they are constants (assign the values at the time of declaration). There are no data members i...
[ { "code": null, "e": 1165, "s": 1062, "text": "A Constructor is to initialize the non-static members of a particular class with respect to an object." }, { "code": null, "e": 1355, "s": 1165, "text": "An Interface in Java doesn't have a constructor because all data members in int...
Setting up LaTeX on your Atom Editor | by Jingles (Hong Jing) | Towards Data Science
In this tutorial, I will guide you through setting up a LaTeX editor on Atom, and here are some reasons and benefits for doing so: preview your work side by side as you save your work fast, generate previews in 3-seconds clicking on the preview will bring your cursor to the syntax’s location Dropbox and GitHub integrat...
[ { "code": null, "e": 303, "s": 172, "text": "In this tutorial, I will guide you through setting up a LaTeX editor on Atom, and here are some reasons and benefits for doing so:" }, { "code": null, "e": 356, "s": 303, "text": "preview your work side by side as you save your work" ...
Elasticsearch - API Conventions
Application Programming Interface (API) in web is a group of function calls or other programming instructions to access the software component in that particular web application. For example, Facebook API helps a developer to create applications by accessing data or other functionalities from Facebook; it can be date o...
[ { "code": null, "e": 2927, "s": 2581, "text": "Application Programming Interface (API) in web is a group of function calls or other programming instructions to access the software component in that particular web application. For example, Facebook API helps a developer to create applications by acce...
Kali Linux - Forensics Tools
In this chapter, we will learn about the forensics tools available in Kali Linux. p0f is a tool that can identify the operating system of a target host simply by examining captured packets even when the device in question is behind a packet firewall. P0f does not generate any additional network traffic, direct or indir...
[ { "code": null, "e": 2111, "s": 2029, "text": "In this chapter, we will learn about the forensics tools available in Kali Linux." }, { "code": null, "e": 2527, "s": 2111, "text": "p0f is a tool that can identify the operating system of a target host simply by examining captured p...
PyQt - QGridLayout Class
A GridLayout class object presents with a grid of cells arranged in rows and columns. The class contains addWidget() method. Any widget can be added by specifying the number of rows and columns of the cell. Optionally, a spanning factor for row as well as column, if specified makes the widget wider or taller than one c...
[ { "code": null, "e": 2304, "s": 1926, "text": "A GridLayout class object presents with a grid of cells arranged in rows and columns. The class contains addWidget() method. Any widget can be added by specifying the number of rows and columns of the cell. Optionally, a spanning factor for row as well ...
Comparing Machine Learning Models: Statistical vs. Practical Significance | by Dina Jankovic | Towards Data Science
A lot of work has been done on building and tuning ML models, but a natural question that eventually comes up after all that hard work is — how do we actually compare the models we’ve built? If we’re facing a choice between models A and B, which one is the winner and why? Could the models be combined together so that o...
[ { "code": null, "e": 523, "s": 171, "text": "A lot of work has been done on building and tuning ML models, but a natural question that eventually comes up after all that hard work is — how do we actually compare the models we’ve built? If we’re facing a choice between models A and B, which one is th...
Add elements to a Vector in Java
A dynamic array is implemented by a Vector. This means an array that can grow or reduce in size as required. Elements can be added at the end of the Vector using the java.util.Vector.add() method. This method has a single parameter i.e. the element to be added. It returns true if the element is added to the Vector as r...
[ { "code": null, "e": 1171, "s": 1062, "text": "A dynamic array is implemented by a Vector. This means an array that can grow or reduce in size as required." }, { "code": null, "e": 1411, "s": 1171, "text": "Elements can be added at the end of the Vector using the java.util.Vector...
State ProgressBar in Android
23 Feb, 2021 State Progress Bar is one of the main features that we see in many applications. We can get to see this feature in ticket booking apps, educational apps. This progress bar helps to tell the user the steps to be carried out for performing a task. In this article, we are going to see how to implement State P...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Feb, 2021" }, { "code": null, "e": 524, "s": 28, "text": "State Progress Bar is one of the main features that we see in many applications. We can get to see this feature in ticket booking apps, educational apps. This progress bar hel...
Python | Numpy matrix.mean()
15 Apr, 2019 With the help of Numpy matrix.mean() method, we can get the mean value from given matrix. Syntax : matrix.mean() Return : Return mean value from given matrix Example #1 :In this example we can see that we are able to get the mean value from a given matrix with the help of method matrix.mean(). # import the...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Apr, 2019" }, { "code": null, "e": 118, "s": 28, "text": "With the help of Numpy matrix.mean() method, we can get the mean value from given matrix." }, { "code": null, "e": 141, "s": 118, "text": "Syntax : matrix....
Javascript Tutorial
JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complimentary to and integrated with Java. JavaScript is very easy to implement because it is integrated with HTML. It is open and cross-platform. Javascript is a MUST for students and working ...
[ { "code": null, "e": 2740, "s": 2466, "text": "JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complimentary to and integrated with Java. JavaScript is very easy to implement because it is integrated with HTML. It is open...
MomentJS - Is Daylight Saving Time
This method returns true or false if the current moment falls in daylight saving time. moment().isDST(); var isdylight = moment().isDST(); If date is not given it will check for the current time. var isdylight = moment([2017, 2, 14]).isDST(); Print Add Notes Bookmark this page
[ { "code": null, "e": 2047, "s": 1960, "text": "This method returns true or false if the current moment falls in daylight saving time." }, { "code": null, "e": 2066, "s": 2047, "text": "moment().isDST();\n" }, { "code": null, "e": 2100, "s": 2066, "text": "var ...
Perl | Pass By Reference - GeeksforGeeks
12 Feb, 2019 When a variable is passed by reference function operates on original data in the function. Passing by reference allows the function to change the original value of a variable. When the values of the elements in the argument arrays @_ are changed, the values of the corresponding arguments will also change. ...
[ { "code": null, "e": 23921, "s": 23893, "text": "\n12 Feb, 2019" }, { "code": null, "e": 24097, "s": 23921, "text": "When a variable is passed by reference function operates on original data in the function. Passing by reference allows the function to change the original value of...
How to pass individual elements in an array as argument to function in C language?
If individual elements are to be passed as arguments, then array elements along with their subscripts must be given in function call. To receive the elements, simple variables are used in function definition. #include<stdio.h> main (){ void display (int, int); int a[5], i; clrscr(); printf (“enter 5 element...
[ { "code": null, "e": 1196, "s": 1062, "text": "If individual elements are to be passed as arguments, then array elements along with their subscripts must be given in function call." }, { "code": null, "e": 1271, "s": 1196, "text": "To receive the elements, simple variables are us...
Transformations of Stack, Melt, Pivot Table in pandas | by Han Qi | Towards Data Science
Full notebook at https://gist.github.com/gitgithan/0ba595e3ef9cf8fab7deeb7b8b533ba3Alternatively, click “view raw” at the bottom right of this scrollable frame and save the json as an .ipynb file from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" import pandas as...
[ { "code": null, "e": 368, "s": 172, "text": "Full notebook at https://gist.github.com/gitgithan/0ba595e3ef9cf8fab7deeb7b8b533ba3Alternatively, click “view raw” at the bottom right of this scrollable frame and save the json as an .ipynb file" }, { "code": null, "e": 692, "s": 368, ...
Siamese NN Recipes with Keras. Practical Siamese neural network... | by Duygu ALTINOK | Towards Data Science
I have been enjoying Siamese networks for different NLU tasks at my work for quite some time. In this article, I’ll share quick recipes with Keras, featuring Glove vectors or BERT as the text vectorizer. We’ll focus on semantic similarity calculations. Semantic similarity is basically the task of determining if a group...
[ { "code": null, "e": 652, "s": 171, "text": "I have been enjoying Siamese networks for different NLU tasks at my work for quite some time. In this article, I’ll share quick recipes with Keras, featuring Glove vectors or BERT as the text vectorizer. We’ll focus on semantic similarity calculations. Se...
Embedded Systems - Assembly Language
Assembly languages were developed to provide mnemonics or symbols for the machine level code instructions. Assembly language programs consist of mnemonics, thus they should be translated into machine code. A program that is responsible for this conversion is known as assembler. Assembly language is often termed as a lo...
[ { "code": null, "e": 2372, "s": 1883, "text": "Assembly languages were developed to provide mnemonics or symbols for the machine level code instructions. Assembly language programs consist of mnemonics, thus they should be translated into machine code. A program that is responsible for this conversi...
Writer append(char) method in Java with Examples - GeeksforGeeks
29 Jan, 2019 The append(char) method of Writer Class in Java is used to append the specified char value on the writer. This char value is taken as a parameter. Syntax: public void append(char charValue) Parameters: This method accepts a mandatory parameter charValue which is the char value to be appended on the writer....
[ { "code": null, "e": 24123, "s": 24095, "text": "\n29 Jan, 2019" }, { "code": null, "e": 24270, "s": 24123, "text": "The append(char) method of Writer Class in Java is used to append the specified char value on the writer. This char value is taken as a parameter." }, { "c...
Custom metrics in tensorflow2.2 | Towards Data Science
Keras has simplified DNN based machine learning a lot and it keeps getting better. Here we show how to implement metric based on the confusion matrix (recall, precision and f1) and show how using them is very simple in tensorflow 2.2. You can directly run the notebook in Google Colab. When considering a multi-class pro...
[ { "code": null, "e": 457, "s": 171, "text": "Keras has simplified DNN based machine learning a lot and it keeps getting better. Here we show how to implement metric based on the confusion matrix (recall, precision and f1) and show how using them is very simple in tensorflow 2.2. You can directly run...
Check if the given permutation is a valid BFS of a given Tree - GeeksforGeeks
22 Jun, 2021 Given a tree with N nodes numbered from 1 to N and a permutation array of numbers from 1 to N. Check if it is possible to obtain the given permutation array by applying BFS (Breadth First Traversal) on the given tree.Note: Traversal will always start from 1.Example: Input: arr[] = { 1 5 2 3 4 6 } Edges of...
[ { "code": null, "e": 24610, "s": 24582, "text": "\n22 Jun, 2021" }, { "code": null, "e": 24878, "s": 24610, "text": "Given a tree with N nodes numbered from 1 to N and a permutation array of numbers from 1 to N. Check if it is possible to obtain the given permutation array by app...
JSF - Environment Setup
This chapter will guide you on how to prepare a development environment to start your work with JSF Framework. You will learn how to setup JDK, Eclipse, Maven, and Tomcat on your machine before you set up JSF Framework. JSF requires JDK 1.5 or higher so the very first requirement is to have JDK installed on your machin...
[ { "code": null, "e": 2172, "s": 1952, "text": "This chapter will guide you on how to prepare a development environment to start your work with JSF Framework. You will learn how to setup JDK, Eclipse, Maven, and Tomcat on your machine before you set up JSF Framework." }, { "code": null, "...
PyQt5 QListWidget – Getting Spacing Between the Items - GeeksforGeeks
06 Aug, 2020 In this article we will see how we can get the space between the item of the QListWidget. QListWidget is a convenience class that provides a list view with a classic item-based interface for adding and removing items. QListWidget uses an internal model to manage each QListWidgetItem in the list. Spacing pr...
[ { "code": null, "e": 24057, "s": 24029, "text": "\n06 Aug, 2020" }, { "code": null, "e": 24710, "s": 24057, "text": "In this article we will see how we can get the space between the item of the QListWidget. QListWidget is a convenience class that provides a list view with a class...
How to detect user inactivity for 5 seconds in Android?
This example demonstrates how to detect user inactivity for 5 seconds 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"?> <andr...
[ { "code": null, "e": 1144, "s": 1062, "text": "This example demonstrates how to detect user inactivity for 5 seconds in Android." }, { "code": null, "e": 1273, "s": 1144, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required deta...
How to process Arrays in Java?
To process array elements, we often use either for loop or for each loop because all of the elements in an array are of the same type and the size of the array is known. Suppose we have an array of 5 elements we can print all the elements of this array as: Live Demo public class ProcessingArrays { public static void...
[ { "code": null, "e": 1319, "s": 1062, "text": "To process array elements, we often use either for loop or for each loop because all of the elements in an array are of the same type and the size of the array is known. Suppose we have an array of 5 elements we can print all the elements of this array ...
Keras - Layers
As learned earlier, Keras layers are the primary building block of Keras models. Each layer receives input information, do some computation and finally output the transformed information. The output of one layer will flow into the next layer as its input. Let us learn complete details about layers in this chapter. A Ke...
[ { "code": null, "e": 2367, "s": 2051, "text": "As learned earlier, Keras layers are the primary building block of Keras models. Each layer receives input information, do some computation and finally output the transformed information. The output of one layer will flow into the next layer as its inpu...
Bootstrap - Responsive utilities
Bootstrap provides some handful helper classes, for faster mobile-friendly development. These can be used for showing and hiding content by device via media query, combined with large, small, and medium devices. Use these sparingly and avoid creating entirely different versions of the same site. Responsive utilities ar...
[ { "code": null, "e": 3543, "s": 3331, "text": "Bootstrap provides some handful helper classes, for faster mobile-friendly development. These can be used for showing and hiding content by device via media query, combined with large, small, and medium devices." }, { "code": null, "e": 3708...
JavaScript How to get all 'name' values in a JSON array?
Let’s say the following is our JSON array − var details = [ { "customerDetails": [ { "customerName": "John Smith", "customerCountryName": "US" } ] }, { "customerDetails": [ { "customerName": "David Miller", ...
[ { "code": null, "e": 1106, "s": 1062, "text": "Let’s say the following is our JSON array −" }, { "code": null, "e": 1588, "s": 1106, "text": "var details = [\n {\n \"customerDetails\": [\n {\n \"customerName\": \"John Smith\",\n \"cus...
Circular Dependency in Spring | Spring Circular Dependency proble
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, we are going to learn about...
[ { "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, ...
Scala String replaceAll() method with example
03 Oct, 2019 The replaceAll() method is used to replace each of the stated sub-string of the string which matches the regular expression with the string we supply in the argument list. Method Definition: String replaceAll(String regex, String replacement)Return Type: It returns the stated string after replacing the sta...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Oct, 2019" }, { "code": null, "e": 200, "s": 28, "text": "The replaceAll() method is used to replace each of the stated sub-string of the string which matches the regular expression with the string we supply in the argument list." ...
Creating multiple process using fork()
09 Oct, 2017 Prerequisite – Introduction of fork, getpid() and getppid()Problem statement – Write a program to create one parent with three child using fork() function where each process find its Id. For example : Output :parent 28808 28809 my id is 28807 First child 0 28810 my id is 28808 Second child 28808 0 m...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Oct, 2017" }, { "code": null, "e": 253, "s": 52, "text": "Prerequisite – Introduction of fork, getpid() and getppid()Problem statement – Write a program to create one parent with three child using fork() function where each process ...
Split a String into a Number of Substrings in Java
17 Feb, 2022 Given a String, the task it to split the String into a number of substrings. A String in java can be of 0 or more characters. Examples : (a) "" is a String in java with 0 character (b) "d" is a String in java with 1 character (c) "This is a sentence." is a string with 19 characters. Substring: A String t...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Feb, 2022" }, { "code": null, "e": 129, "s": 52, "text": "Given a String, the task it to split the String into a number of substrings." }, { "code": null, "e": 179, "s": 129, "text": "A String in java can be of 0...
Morse Code Implementation
08 Feb, 2021 Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment. It is named for Samuel F. B. Morse, an inventor of the telegraph.The algorithm is very simple. Every character ...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Feb, 2021" }, { "code": null, "e": 735, "s": 54, "text": "Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer witho...
How to use Anchor tag as submit button ?
07 Apr, 2021 The <a> (anchor tag) in HTML is used to create a hyperlink on the webpage. This hyperlink is used to link the webpage to other web pages. It’s either used to provide an absolute reference or a relative reference as its “href” value. Syntax: <a href = "link"> Link Name </a> The href attribute specifies the ...
[ { "code": null, "e": 53, "s": 25, "text": "\n07 Apr, 2021" }, { "code": null, "e": 286, "s": 53, "text": "The <a> (anchor tag) in HTML is used to create a hyperlink on the webpage. This hyperlink is used to link the webpage to other web pages. It’s either used to provide an absol...
How to overlap two Barplots in Seaborn?
25 Jan, 2022 Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and colour palettes to make statistical plots more attractive. It is built on the top of matplotlib library and also closely integrated to the data structures from pandas. Bar Plot ...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jan, 2022" }, { "code": null, "e": 326, "s": 28, "text": "Seaborn is an amazing visualization library for statistical graphics plotting in Python. It provides beautiful default styles and colour palettes to make statistical plots mor...
How to trigger a file download when clicking an HTML button or JavaScript?
21 Jul, 2021 To trigger a file download on a button click we will use a custom function or HTML 5 download attribute.Approach 1: Using Download attribute The download attribute simply uses an anchor tag to prepare the location of the file that needs to be downloaded. The name of the file can be set using the attribute ...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jul, 2021" }, { "code": null, "e": 436, "s": 52, "text": "To trigger a file download on a button click we will use a custom function or HTML 5 download attribute.Approach 1: Using Download attribute The download attribute simply use...
Displaying XML Using CSS
09 Jun, 2022 XML stands for Extensible Markup Language. It is a dynamic markup language. It is used to transform data from one form to another form.An XML file can be displayed using two ways. These are as follows :- Cascading Style SheetExtensible Stylesheet Language TransformationDisplaying XML file using CSS :CSS ca...
[ { "code": null, "e": 53, "s": 25, "text": "\n09 Jun, 2022" }, { "code": null, "e": 257, "s": 53, "text": "XML stands for Extensible Markup Language. It is a dynamic markup language. It is used to transform data from one form to another form.An XML file can be displayed using two ...
Chinese Remainder Theorem | Set 1 (Introduction)
23 Aug, 2021 We are given two arrays num[0..k-1] and rem[0..k-1]. In num[0..k-1], every pair is coprime (gcd for every pair is 1). We need to find minimum positive number x such that: x % num[0] = rem[0], x % num[1] = rem[1], ....................... x % num[k-1] = rem[k-1] Basically, w...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Aug, 2021" }, { "code": null, "e": 224, "s": 52, "text": "We are given two arrays num[0..k-1] and rem[0..k-1]. In num[0..k-1], every pair is coprime (gcd for every pair is 1). We need to find minimum positive number x such that: " ...
HTML | DOM createElement() Method
24 Jul, 2019 In HTML document, the document.createElement() is a method used to create the HTML element. The element specified using elementName is created or an unknown HTML element is created if the specified elementName is not recognized. Syntax var element = document.createElement("elementName"); In the above synt...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jul, 2019" }, { "code": null, "e": 257, "s": 28, "text": "In HTML document, the document.createElement() is a method used to create the HTML element. The element specified using elementName is created or an unknown HTML element is cr...
Python | random.sample() function
29 Aug, 2018 sample() is an inbuilt function of random module in Python that returns a particular length list of items chosen from the sequence i.e. list, tuple, string or set. Used for random sampling without replacement. Syntax : random.sample(sequence, k) Parameters:sequence: Can be a list, tuple, string, or set.k: ...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Aug, 2018" }, { "code": null, "e": 263, "s": 53, "text": "sample() is an inbuilt function of random module in Python that returns a particular length list of items chosen from the sequence i.e. list, tuple, string or set. Used for r...
Reverse alternate K nodes in a Singly Linked List
03 Jul, 2022 Given a linked list, write a function to reverse every alternate k nodes (where k is an input to the function) in an efficient way. Give the complexity of your algorithm. Example: Inputs: 1->2->3->4->5->6->7->8->9->NULL and k = 3 Output: 3->2->1->4->5->6->9->8->7->NULL. Method 1 (Process 2k nodes and...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jul, 2022" }, { "code": null, "e": 225, "s": 54, "text": "Given a linked list, write a function to reverse every alternate k nodes (where k is an input to the function) in an efficient way. Give the complexity of your algorithm." ...
ER diagram of Bank Management System
20 Sep, 2021 ER diagram is known as Entity-Relationship diagram. It is used to analyze to structure of the Database. It shows relationships between entities and their attributes. An ER model provides a means of communication. ER diagram of Bank has the following description : Bank have Customer. Banks are identified...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Sep, 2021" }, { "code": null, "e": 266, "s": 52, "text": "ER diagram is known as Entity-Relationship diagram. It is used to analyze to structure of the Database. It shows relationships between entities and their attributes. An ER mo...
Prolog - Backtracking
In this chapter, we will discuss the backtracking in Prolog. Backtracking is a procedure, in which prolog searches the truth value of different predicates by checking whether they are correct or not. The backtracking term is quite common in algorithm designing, and in different programming environments. In Prolog, unti...
[ { "code": null, "e": 2643, "s": 2226, "text": "In this chapter, we will discuss the backtracking in Prolog. Backtracking is a procedure, in which prolog searches the truth value of different predicates by checking whether they are correct or not. The backtracking term is quite common in algorithm de...
Sum of upper triangle and lower triangle
08 Jun, 2022 Given a matrix print the sum of upper and lower triangular elements (i.e elements on diagonal and the upper and lower elements).Examples : Input : {6, 5, 4} {1, 2, 5} {7, 9, 7} Output : Upper sum is 29 Lower sum is 32 The solution is quite simple, we just need to traverse the matrix and...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Jun, 2022" }, { "code": null, "e": 193, "s": 52, "text": "Given a matrix print the sum of upper and lower triangular elements (i.e elements on diagonal and the upper and lower elements).Examples : " }, { "code": null, "...
Python Easy-Login Module
04 Jul, 2021 Easy-Login module is that library of Python which helps you to login in your social accounts like Facebook, Instagram, Twitter, Linkedin, Reddit etc through Python without opening the sites manually . Installation This module does not come built-in with Python. You need to install it externally. To instal...
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jul, 2021" }, { "code": null, "e": 256, "s": 54, "text": "Easy-Login module is that library of Python which helps you to login in your social accounts like Facebook, Instagram, Twitter, Linkedin, Reddit etc through Python without op...
Search element in a Spirally sorted Matrix
11 Aug, 2021 Given a spirally sorted matrix with N × N elements and an integer X, the task is to find the position of this given integer in the matrix if it exists, else print -1. Note that all the matrix elements are distinct. Examples: Input: arr[] = { {1, 2, 3, 4}, {12, 13, 14, 5}, {11, 16, 15, 6}, {10, 9, 8, 7}},...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Aug, 2021" }, { "code": null, "e": 267, "s": 52, "text": "Given a spirally sorted matrix with N × N elements and an integer X, the task is to find the position of this given integer in the matrix if it exists, else print -1. Note th...
Output of C programs | Set 51
24 May, 2019 1. What will be the output of the below program? #include <stdio.h>int main(){ printf("%d", printf("%d", printf("%d", printf("%s", "Welcome to geeksforgeeks")))); return (0);} Options:1. Welcome to geeksforgeeks25312. Welcome to geeksforgeeks24213. Welcome to geeksforgeeks21244. Welcome to geeksforge...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 May, 2019" }, { "code": null, "e": 103, "s": 54, "text": "1. What will be the output of the below program?" }, { "code": "#include <stdio.h>int main(){ printf(\"%d\", printf(\"%d\", printf(\"%d\", printf(\"%s\", \"Welcome...
Find number of times every day occurs in a Year
12 Jul, 2021 Given a year .Your task is to find the number of every day in a year ie.number of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday in that given year.Examples: Input: 2019 Output: Monday-52 Tuesday-53 Wednesday-52 Thursday-52 Friday-52 Saturday-52 ...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Jul, 2021" }, { "code": null, "e": 230, "s": 54, "text": "Given a year .Your task is to find the number of every day in a year ie.number of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday in that given year.Examples: ...
std::find_first_of in C++
04 Oct, 2017 std::find_first_of is used to compare elements between two containers. It compares all the elements in a range [first1,last1) with the elements in the range [first2,last2), and if any of the elements present in the second range is found in the first one , then it returns an iterator to that element. If the...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Oct, 2017" }, { "code": null, "e": 353, "s": 52, "text": "std::find_first_of is used to compare elements between two containers. It compares all the elements in a range [first1,last1) with the elements in the range [first2,last2), a...
Introduction to C#
17 Dec, 2019 C# is a general-purpose, modern and object-oriented programming language pronounced as “C sharp”. It was developed by Microsoft led by Anders Hejlsberg and his team within the .Net initiative and was approved by the European Computer Manufacturers Association (ECMA) and International Standards Organization...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Dec, 2019" }, { "code": null, "e": 582, "s": 54, "text": "C# is a general-purpose, modern and object-oriented programming language pronounced as “C sharp”. It was developed by Microsoft led by Anders Hejlsberg and his team within th...
TypeScript - Modules
A module is designed with the idea to organize code written in TypeScript. Modules are broadly divided into − Internal Modules External Modules Internal modules came in earlier version of Typescript. This was used to logically group classes, interfaces, functions into one unit and can be exported in another module. Thi...
[ { "code": null, "e": 2292, "s": 2182, "text": "A module is designed with the idea to organize code written in TypeScript. Modules are broadly divided into −" }, { "code": null, "e": 2309, "s": 2292, "text": "Internal Modules" }, { "code": null, "e": 2326, "s": 230...
Longest Palindromic Substring in Linear Time | Practice | GeeksforGeeks
Given a string, find the longest substring which is palindrome in Linear time O(N). Input: The first line of input contains an integer T denoting the no of test cases . Then T test cases follow. The only line of each test case contains a string. Output: For each test case print the Longest Palindromic Substring. If the...
[ { "code": null, "e": 310, "s": 226, "text": "Given a string, find the longest substring which is palindrome in Linear time O(N)." }, { "code": null, "e": 472, "s": 310, "text": "Input:\nThe first line of input contains an integer T denoting the no of test cases . Then T test case...
Convert datetime string to YYYY-MM-DD-HH:MM:SS format in Python
23 Aug, 2021 In this article, we are going to convert the DateTime string into the %Y-%m-%d-%H:%M:%S format. For this task strptime() and strftime() function is used. strptime() is used to convert the DateTime string to DateTime in the format of year-month-day hours minutes and seconds Syntax: datetime.strptime(my_dat...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 183, "s": 28, "text": "In this article, we are going to convert the DateTime string into the %Y-%m-%d-%H:%M:%S format. For this task strptime() and strftime() function is used." }, { "code"...
p5.js | resizeCanvas() Function
17 Jan, 2020 The resizeCanvas() function is used to resize the canvas to the height and width given as parameters. The canvas is immediately redrawn after the resize takes place unless the optional ‘noRedraw’ parameter is set to true. Syntax: resizeCanvas(w, h, [noRedraw]) Parameters: This function accepts three parame...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jan, 2020" }, { "code": null, "e": 250, "s": 28, "text": "The resizeCanvas() function is used to resize the canvas to the height and width given as parameters. The canvas is immediately redrawn after the resize takes place unless the...
numpy.vstack() in python
06 Jan, 2019 numpy.vstack() function is used to stack the sequence of input arrays vertically to make a single array. Syntax : numpy.vstack(tup) Parameters :tup : [sequence of ndarrays] Tuple containing arrays to be stacked. The arrays must have the same shape along all but the first axis. Return : [stacked ndarray] Th...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Jan, 2019" }, { "code": null, "e": 157, "s": 52, "text": "numpy.vstack() function is used to stack the sequence of input arrays vertically to make a single array." }, { "code": null, "e": 184, "s": 157, "text": "...
Linux Kernel Module Programming: Hello World Program
30 Jan, 2019 Kernel modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system.Custom codes can be added to Linux kernels via two methods. The basic way is to add the code to the kernel source tree and recompi...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 Jan, 2019" }, { "code": null, "e": 291, "s": 54, "text": "Kernel modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the syst...
HTML | <link> rel Attribute
06 Jun, 2022 The HTML rel attribute is used to specify the relationship between the current and the linked document. It is used only when href attribute present.Syntax: <link rel="value"> Attribute Values alternate: It specifies the alternative link of the document(i.e. print page, translated or mirror). author: It...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jun, 2022" }, { "code": null, "e": 186, "s": 28, "text": "The HTML rel attribute is used to specify the relationship between the current and the linked document. It is used only when href attribute present.Syntax: " }, { "co...
Private Constructors and Singleton Classes in Java
21 Jun, 2018 Let’s first analyze the following question: Can we have private constructors ? As you can easily guess, like any method we can provide access specifier to the constructor. If it’s made private, then it can only be accessed inside the class. Do we need such ‘private constructors ‘ ? There are various scenar...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Jun, 2018" }, { "code": null, "e": 98, "s": 54, "text": "Let’s first analyze the following question:" }, { "code": null, "e": 133, "s": 98, "text": "Can we have private constructors ?" }, { "code": null, ...
Matplotlib vs. Plotly: Let's Decide Once and for All | Towards Data Science
There is an annoying habit of soccer fans. Whenever a young but admittedly exceptional player emerges, they compare him to legends like Messi or Ronaldo. They choose to forget that the legends have been dominating the game since before the newbies had regrown teeth. Comparing Plotly to Matplotlib was, in a sense, simil...
[ { "code": null, "e": 200, "s": 46, "text": "There is an annoying habit of soccer fans. Whenever a young but admittedly exceptional player emerges, they compare him to legends like Messi or Ronaldo." }, { "code": null, "e": 313, "s": 200, "text": "They choose to forget that the le...
Ultimate Guide to Reinforcement Learning Part 1 — Creating a Game | by Daniel Brummerloh | Towards Data Science
The complete code of the environment, the training and the rollout can be found on GitHub: https://github.com/danuo/rocket-meister/ Part 1 — Creation of a playable environment with Pygame Create an environment as a gym.Env subclass. Implement the environment logic through the step() function. Acquiring user input with ...
[ { "code": null, "e": 304, "s": 172, "text": "The complete code of the environment, the training and the rollout can be found on GitHub: https://github.com/danuo/rocket-meister/" }, { "code": null, "e": 360, "s": 304, "text": "Part 1 — Creation of a playable environment with Pygam...
C# | Copy the entire LinkedList<T> to Array - GeeksforGeeks
01 Feb, 2019 LinkedList<T>.CopyTo(T[], Int32) method is used to copy the entire LinkedList<T> to a compatible one-dimensional Array, starting at the specified index of the target array. Syntax: public void CopyTo (T[] array, int index); Parameters: array : It is the one-dimensional Array that is the destination of the...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n01 Feb, 2019" }, { "code": null, "e": 24475, "s": 24302, "text": "LinkedList<T>.CopyTo(T[], Int32) method is used to copy the entire LinkedList<T> to a compatible one-dimensional Array, starting at the specified index of the targ...
Double Brace Initialization in Java - GeeksforGeeks
24 Dec, 2021 The combination of two separate processes in Java is known as Double Brace Initialization in Java. As the name suggests, there are two braces {{ included in it. A single brace { is nothing new for programmers. The first brace in the double brace initialization is used to create an anonymous inner class. We...
[ { "code": null, "e": 23583, "s": 23555, "text": "\n24 Dec, 2021" }, { "code": null, "e": 23744, "s": 23583, "text": "The combination of two separate processes in Java is known as Double Brace Initialization in Java. As the name suggests, there are two braces {{ included in it." ...
ios manipulators internal() function in C++ - GeeksforGeeks
02 Sep, 2019 The internal() method of stream manipulators in C++ is used to set the adjustfield format flag for the specified str stream. This flag sets the adjustfield to internal. It means that the number in the output will be padded to the field width by inserting fill characters at a specified internal point. Synta...
[ { "code": null, "e": 23707, "s": 23679, "text": "\n02 Sep, 2019" }, { "code": null, "e": 24009, "s": 23707, "text": "The internal() method of stream manipulators in C++ is used to set the adjustfield format flag for the specified str stream. This flag sets the adjustfield to inte...
AIML - <topic> Tag
<topic> Tag is used in AIML to store a context so that later conversation can be done based on that context. Usually, <topic> tag is used in Yes/No type conversation. It helps AIML to search categories written within the context of the topic. Define a topic using <set> tag <template> <set name = "topic"> topic-nam...
[ { "code": null, "e": 2055, "s": 1811, "text": "<topic> Tag is used in AIML to store a context so that later conversation can be done based on that context. Usually, <topic> tag is used in Yes/No type conversation. It helps AIML to search categories written within the context of the topic. " }, {...
CSS @media Rule - GeeksforGeeks
03 Nov, 2021 The @media CSS at-rule is used to apply a different set of styles for different media/devices using the Media Queries. A Media Query is mainly used to check the height, width, resolution, and orientation(Portrait/Landscape) of the device. This CSS rule is a way out for making more out of responsive design ...
[ { "code": null, "e": 23574, "s": 23546, "text": "\n03 Nov, 2021" }, { "code": null, "e": 24094, "s": 23574, "text": "The @media CSS at-rule is used to apply a different set of styles for different media/devices using the Media Queries. A Media Query is mainly used to check the he...
Make your own Audiobook using Azure Cognitive Service | by Sagnik Chattopadhyaya | Towards Data Science
Lets say you already have an PDF version of a book that you got from some sources (maybe for free) and you are not getting time to read it line by line. Also it may happen that you don’t want to spend money on buying its audio version or maybe its audio version is not available. Then this article is for you. In this ar...
[ { "code": null, "e": 558, "s": 47, "text": "Lets say you already have an PDF version of a book that you got from some sources (maybe for free) and you are not getting time to read it line by line. Also it may happen that you don’t want to spend money on buying its audio version or maybe its audio ve...
MobileNetV2: Inverted Residuals and Linear Bottlenecks | by Paul-Louis Pröve | Towards Data Science
In April 2017 a group of researchers from Google published a paper which introduced a neural network architecture that was optimized for mobile devices. They strived for a model that delivered high accuracy while keeping the parameters and mathematical operations as low as possible. This was much needed in order to bri...
[ { "code": null, "e": 532, "s": 172, "text": "In April 2017 a group of researchers from Google published a paper which introduced a neural network architecture that was optimized for mobile devices. They strived for a model that delivered high accuracy while keeping the parameters and mathematical op...
Real-time anomaly detection with Apache Kafka and Python | by Rodrigo Arenas | Towards Data Science
In this post, I'm going to discuss how to make real-time predictions with incoming stream data from Apache Kafka; the solution we are going to implement looks like this: The idea is to: Train an anomaly detection algorithm using unsupervised machine learning. Create a new data producer that sends the transactions to a ...
[ { "code": null, "e": 342, "s": 172, "text": "In this post, I'm going to discuss how to make real-time predictions with incoming stream data from Apache Kafka; the solution we are going to implement looks like this:" }, { "code": null, "e": 358, "s": 342, "text": "The idea is to:"...
How to use Machine Learning in Power BI with R | by Octavio Santiago | Towards Data Science
Microsoft has recently been making a strong move to align Open Source technologies and insert Artificial Intelligence technologies into its products, and Power BI is included in this plan. Power BI is one of the main tools for building dashboards today and Microsoft is increasing its development power and flexibility e...
[ { "code": null, "e": 501, "s": 171, "text": "Microsoft has recently been making a strong move to align Open Source technologies and insert Artificial Intelligence technologies into its products, and Power BI is included in this plan. Power BI is one of the main tools for building dashboards today an...
A gentle introduction to Deep Reinforcement Learning | by Jordi TORRES.AI | Towards Data Science
This is the first post of the series “Deep Reinforcement Learning Explained”; an introductory series that gradually and with a practical approach introduces the reader to the basic concepts and methods used in modern Deep Reinforcement Learning. Spanish version of this publication: medium.com Deep Reinforcement Learnin...
[ { "code": null, "e": 418, "s": 172, "text": "This is the first post of the series “Deep Reinforcement Learning Explained”; an introductory series that gradually and with a practical approach introduces the reader to the basic concepts and methods used in modern Deep Reinforcement Learning." }, {...
How to create a list of matrices in R?
To create a list of matrices, we simply need to find the matrix object inside list function. For example, if we have five matrix objects either of same or different dimensions defined as Matrix1, Matrix2, Matrix3, Matrix4, and Matrix5 then the list of these matrices can be created as − List_of_Matrix<-list(Matrix1,Matr...
[ { "code": null, "e": 1349, "s": 1062, "text": "To create a list of matrices, we simply need to find the matrix object inside list function. For example, if we have five matrix objects either of same or different dimensions defined as Matrix1, Matrix2, Matrix3, Matrix4, and Matrix5 then the list of t...
C library function - ceil()
The C library function double ceil(double x) returns the smallest integer value greater than or equal to x. Following is the declaration for ceil() function. double ceil(double x) x − This is the floating point value. x − This is the floating point value. This function returns the smallest integral value not less than ...
[ { "code": null, "e": 2115, "s": 2007, "text": "The C library function double ceil(double x) returns the smallest integer value greater than or equal to x." }, { "code": null, "e": 2165, "s": 2115, "text": "Following is the declaration for ceil() function." }, { "code": nu...
Node.js dns.resolve() Method - GeeksforGeeks
13 Oct, 2021 The dns.resolve() method is an inbuilt application programming interface of the dns module which is used to resolve hostname into an array of the resource records. Syntax: dns.resolve( hostname, rrtype, callback ) Parameters: This method accept three parameters as mentioned above and described below: hostn...
[ { "code": null, "e": 36865, "s": 36837, "text": "\n13 Oct, 2021" }, { "code": null, "e": 37029, "s": 36865, "text": "The dns.resolve() method is an inbuilt application programming interface of the dns module which is used to resolve hostname into an array of the resource records....
Fetch records from comma separated values using MySQL IN()?
Use FIND_IN_SET() instead of MySQL IN(). Let us first create a − mysql> create table DemoTable1423 -> ( -> CountryName varchar(100) -> ); Query OK, 0 rows affected (0.51 sec) Insert some records in the table using insert − mysql> insert into DemoTable1423 values('AUS,UK'); Query OK, 1 row affected (0.08 sec) m...
[ { "code": null, "e": 1127, "s": 1062, "text": "Use FIND_IN_SET() instead of MySQL IN(). Let us first create a −" }, { "code": null, "e": 1246, "s": 1127, "text": "mysql> create table DemoTable1423\n -> (\n -> CountryName varchar(100)\n -> );\nQuery OK, 0 rows affected (0.51...
Number of nodes greater than a given value in n-ary tree - GeeksforGeeks
04 Aug, 2021 Given a n-ary tree and a number x, find and return the number of nodes which are greater than x. Example: In the given tree, x = 7 Number of nodes greater than x are 4. Approach : The idea is maintain a count variable initialize to 0. Traverse the tree and compare root data with x. If root data is greate...
[ { "code": null, "e": 24821, "s": 24793, "text": "\n04 Aug, 2021" }, { "code": null, "e": 24919, "s": 24821, "text": "Given a n-ary tree and a number x, find and return the number of nodes which are greater than x. " }, { "code": null, "e": 24929, "s": 24919, "...
How to set Proxy in Firefox using Selenium WebDriver?
We can set a proxy in Firefox using Selenium webdriver. A proxy server enables users to access an URL of an application for testing purposes even with the presence of several layers of network. The setting up of proxy in Firefox can be done with the help of the FirefoxOptions class. The port information and the proxy s...
[ { "code": null, "e": 1256, "s": 1062, "text": "We can set a proxy in Firefox using Selenium webdriver. A proxy server enables users to access an URL of an application for testing purposes even with the presence of several layers of network." }, { "code": null, "e": 1534, "s": 1256, ...
C# Program to Sort a List of Integers Using the LINQ OrderBy() Method - GeeksforGeeks
06 Dec, 2021 Given a list of integers, now our task is to sort the given list of integers. So we use the OrderBy() method of LINQ. This method is used to sort the elements in the collection in ascending order. This method is overloaded in two different ways: OrderBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TK...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n06 Dec, 2021" }, { "code": null, "e": 24157, "s": 23911, "text": "Given a list of integers, now our task is to sort the given list of integers. So we use the OrderBy() method of LINQ. This method is used to sort the elements in t...