title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Networking in C#
The .NET Framework has a layered, extensible, and managed implementation of networking services. You can easily integrate them into your applications. Use the System.Net; namespace. Let us see how to acess the Uri class:.In C#, it provides object representation of a uniform resource identifier (URI) − Uri uri = new Uri...
[ { "code": null, "e": 1369, "s": 1187, "text": "The .NET Framework has a layered, extensible, and managed implementation of networking services. You can easily integrate them into your applications. Use the System.Net; namespace." }, { "code": null, "e": 1490, "s": 1369, "text": "...
How to make a Todo List CLI application using Python ?
17 May, 2022 In this article, we see how to make a Command Line application todo list in python. Todo list is a basic application in which users can add items. It’s a list of tasks you need to complete or things that you want to do. In to-do, list tasks are organized in order of priority. One of the most important ...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 May, 2022" }, { "code": null, "e": 437, "s": 52, "text": "In this article, we see how to make a Command Line application todo list in python. Todo list is a basic application in which users can add items. It’s a list of tasks you n...
Explain Prototype Inheritance in JavaScript
12 Jan, 2022 In this article, we will try to understand the facts that are required to effectively understand what exactly Prototype Inheritance in JavaScript means or what does it actually implies with the help of several examples of approaches. Let’s understand the basics behind Prototype Inheritance in JavaScript. P...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Jan, 2022" }, { "code": null, "e": 288, "s": 54, "text": "In this article, we will try to understand the facts that are required to effectively understand what exactly Prototype Inheritance in JavaScript means or what does it actual...
Python | locals() function
22 Sep, 2021 Python locals() function returns the dictionary of the current local symbol table. Symbol table: It is a data structure created by a compiler for which is used to store all information needed to execute a program. Local symbol Table: This symbol table stores all information needed for the local scope of th...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Sep, 2021" }, { "code": null, "e": 111, "s": 28, "text": "Python locals() function returns the dictionary of the current local symbol table." }, { "code": null, "e": 242, "s": 111, "text": "Symbol table: It is a d...
SQL Query to Find Monthly Salary of Employee If Annual Salary is Given
13 Apr, 2021 SQL stands for Structured Query Language, which used in the database to retrieve data, update and modify data in relational databases like MySql, Oracle, etc. And a query is a question or request for data from the database, that is if we ask someone any question then the question is the query. Similarly, w...
[ { "code": null, "e": 53, "s": 25, "text": "\n13 Apr, 2021" }, { "code": null, "e": 561, "s": 53, "text": "SQL stands for Structured Query Language, which used in the database to retrieve data, update and modify data in relational databases like MySql, Oracle, etc. And a query is ...
Rexx - Stacks
The stack is sometimes called the external data queue, but we follow common usage and refer to it as the stack. It is a block of memory that is logically external to Rexx. Instructions like push and queue place data into the stack, and instructions like pull and parse pull extract data from it. The queued built-in func...
[ { "code": null, "e": 2839, "s": 2473, "text": "The stack is sometimes called the external data queue, but we follow common usage and refer to it as the stack. It is a block of memory that is logically external to Rexx. Instructions like push and queue place data into the stack, and instructions like...
DirectX - Modeling
Source assets which is required for models stored in Autodesk FBX, Wavefront OBJ or other formats. A typical build process is used for conversion which is used in run-time friendly format which is easy to load and render. For creating a model, Visual Studio includes a built-in system which includes a convert format of ...
[ { "code": null, "e": 2520, "s": 2298, "text": "Source assets which is required for models stored in Autodesk FBX, Wavefront OBJ or other formats. A typical build process is used for conversion which is used in run-time friendly format which is easy to load and render." }, { "code": null, ...
MySQL query to find all rows where string contains less than four characters?
Use CHAR_LENGTH() and find the count of characters in every string and then get the strings which are less than four characters. Let us first create a table − mysql> create table DemoTable -> ( -> Name varchar(100) -> ); Query OK, 0 rows affected (1.38 sec) Insert some records in the table using insert command...
[ { "code": null, "e": 1221, "s": 1062, "text": "Use CHAR_LENGTH() and find the count of characters in every string and then get the strings which are less than four characters. Let us first create a table −" }, { "code": null, "e": 1329, "s": 1221, "text": "mysql> create table Dem...
How to set a value in a particular JTable cell with Java?
Let’s say initially our table is the following with a specific cell [2,1] with value “Kane” − The following is an example to set a new value to the above table. Here, we will update the cell [2,1] − table.setValueAt("Guptill", 2, 1); Let us see the complete example − package my; import java.awt.Color; import javax.swin...
[ { "code": null, "e": 1156, "s": 1062, "text": "Let’s say initially our table is the following with a specific cell [2,1] with value “Kane” −" }, { "code": null, "e": 1261, "s": 1156, "text": "The following is an example to set a new value to the above table. Here, we will update ...
Find the final sequence of the array after performing given operations - GeeksforGeeks
28 May, 2021 Given an array arr[] of size N, the task is to perform the following operation exactly N times, Create an empty list of integers b[] and in the ith operation, Append arr[i] to the end of b[].Reverse the elements in b[]. Append arr[i] to the end of b[]. Reverse the elements in b[]. Finally, print the cont...
[ { "code": null, "e": 24890, "s": 24862, "text": "\n28 May, 2021" }, { "code": null, "e": 25051, "s": 24890, "text": "Given an array arr[] of size N, the task is to perform the following operation exactly N times, Create an empty list of integers b[] and in the ith operation, " ...
How to save canvas data to file in HTML5?
A Canvas is just a rectangular area on the HTML page. We can draw graphics in this rectangular area (Canvas) with the help of JavaScript. Canvas can be created in HTML5 as − <canvas id = ”canvas1” width = ”250” height = ”150”></canvas> This creates an empty canvas with name canvas1 wit...
[ { "code": null, "e": 1200, "s": 1062, "text": "A Canvas is just a rectangular area on the HTML page. We can draw graphics in this rectangular area (Canvas) with the help of JavaScript." }, { "code": null, "e": 1237, "s": 1200, "text": " Canvas can be created in HTML5 as −" }, ...
Java Program to Find the Length/Size of an ArrayList
28 Oct, 2021 Given an ArrayList in Java, the task is to write a Java program to find the length or size of the ArrayList. Examples: Input: ArrayList: [1, 2, 3, 4, 5] Output: 5 Input: ArrayList: [geeks, for, geeks] Output: 3 ArrayList – An ArrayList is a part of the collection framework and is present in java.util pac...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Oct, 2021" }, { "code": null, "e": 137, "s": 28, "text": "Given an ArrayList in Java, the task is to write a Java program to find the length or size of the ArrayList." }, { "code": null, "e": 148, "s": 137, "text"...
MathWorks Interview Experience for Internship (On-Campus)
06 Oct, 2020 MathWorks visited our college for summer internship 2021. Students from CSE/ECE/EE with CGPA>=7 were eligible to give the online test. Round 1: It consisted of 12 MCQ questions and 2 coding questions and a duration of 60 minutes. The test was conducted on HackerRank. The MCQ questions mainly focussed on t...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Oct, 2020" }, { "code": null, "e": 164, "s": 28, "text": "MathWorks visited our college for summer internship 2021. Students from CSE/ECE/EE with CGPA>=7 were eligible to give the online test. " }, { "code": null, "e": 55...
Implementing JOI Module in ReactJS
21 Sep, 2021 Joi module is a popular module for data validation. This module validates the data based on schemas. There are various functions like optional(), required(), min(), max(), etc which make it easy to use and a user-friendly module for validating the data. Advantages of Using JOI over Javascript validations: ...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Sep, 2021" }, { "code": null, "e": 282, "s": 28, "text": "Joi module is a popular module for data validation. This module validates the data based on schemas. There are various functions like optional(), required(), min(), max(), etc...
scipy.fftshift() in Python
29 Aug, 2020 With the help of scipy.fftshift() method, we can shift the lower and upper half of vector by using fast fourier transformation and return the shifted vector by using this method. Syntax : scipy.fft.fftshift(x) Return : Return the transformed vector. Example #1 : In this example we can see that by using sci...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Aug, 2020" }, { "code": null, "e": 207, "s": 28, "text": "With the help of scipy.fftshift() method, we can shift the lower and upper half of vector by using fast fourier transformation and return the shifted vector by using this meth...
Introduction in deep learning with julia
16 Aug, 2021 A new transition in Data Science is Julia since it is fast and easy to learn and work with. Julia being a promising language is mainly focused on the scientific computing domain. It provides good execution speed which is comparable to C/C++. It also supports parallelism. Julia is good for writing codes in ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Aug, 2021" }, { "code": null, "e": 639, "s": 28, "text": "A new transition in Data Science is Julia since it is fast and easy to learn and work with. Julia being a promising language is mainly focused on the scientific computing doma...
Python | Get Unique values from list of dictionary
26 Jul, 2019 Sometimes, while working with Python dictionaries, we can have a problem in which we need to find the unique values over all the dictionaries in a list. This kind of utility can occur in case while working with similar data and we wish to extract the unique ones. Let’s discuss certain ways in which this ta...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Jul, 2019" }, { "code": null, "e": 356, "s": 28, "text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to find the unique values over all the dictionaries in a list. This kind of utility c...
Matplotlib.pyplot.xcorr() in Python
22 Apr, 2021 Matplotlib is built on NumPy and sideby framework that’s why it is fast and efficient. It is open-source and has huge community support. It possesses the ability to work well with many operating systems and graphic backends. To get what matplotlib.pyplot.xcorr() do we need to understand Cross-Correlation. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2021" }, { "code": null, "e": 336, "s": 28, "text": "Matplotlib is built on NumPy and sideby framework that’s why it is fast and efficient. It is open-source and has huge community support. It possesses the ability to work well ...
Pandas DataFrames
A Pandas DataFrame is a 2 dimensional data structure, like a 2 dimensional array, or a table with rows and columns. Create a simple Pandas DataFrame: calories duration 0 420 50 1 380 40 2 390 45 As you can see from the result above, the DataFrame is like a table wi...
[ { "code": null, "e": 117, "s": 0, "text": "A Pandas DataFrame is a 2 dimensional data structure, like a 2 dimensional \narray, or a table with rows and columns." }, { "code": null, "e": 151, "s": 117, "text": "Create a simple Pandas DataFrame:" }, { "code": null, "e":...
A guide to Collaborative Topic Modeling recommender systems | by Mario Damiano Russo | Towards Data Science
Recommender Systems are a broad class of machine learning models with the aim of forecasting the unobserved rating that a user u would give to an item i. In this guide, we will discuss Collaborative Topic Modeling/Regression (CTM/CTR) as introduced by Wang and Blei (2011) [3], a recommender system for text-based items ...
[ { "code": null, "e": 326, "s": 172, "text": "Recommender Systems are a broad class of machine learning models with the aim of forecasting the unobserved rating that a user u would give to an item i." }, { "code": null, "e": 684, "s": 326, "text": "In this guide, we will discuss C...
Creating a Stack in Javascript
Though Arrays in JavaScript provide all the functionality of a Stack, let us implement our own Stack class. Our class will have the following functions − push(element): Function to push elements on top of the stack. pop(): Function that removes an element from the top and returns it. peek(): Returns the element on top ...
[ { "code": null, "e": 1216, "s": 1062, "text": "Though Arrays in JavaScript provide all the functionality of a Stack, let us implement our own Stack class. Our class will have the following functions −" }, { "code": null, "e": 1278, "s": 1216, "text": "push(element): Function to p...
MySQLi Procedural Functions - GeeksforGeeks
28 Jan, 2022 MySQLi (MySQL Improved) provides procedural and object oriented interface to data and its management. The i extension MySQL functions allows the user to access its database servers. The MySQL improved extension is specially designed to work with MySQL version 4.1.13 and new versions.Advantages of using pre...
[ { "code": null, "e": 23877, "s": 23849, "text": "\n28 Jan, 2022" }, { "code": null, "e": 24204, "s": 23877, "text": "MySQLi (MySQL Improved) provides procedural and object oriented interface to data and its management. The i extension MySQL functions allows the user to access its...
Add leading Zeros to Python string
We may sometimes need to append zeros as string to various data elements in python. There may the reason for formatting and nice representation or there may be the reason for some calculations where these values will act as input. Below are the methods which we will use for this purpose. Here we take a DataFrame and ap...
[ { "code": null, "e": 1351, "s": 1062, "text": "We may sometimes need to append zeros as string to various data elements in python. There may the reason for formatting and nice representation or there may be the reason for some calculations where these values will act as input. Below are the methods ...
SAP UI5 - Quick Guide
SAP provides various tools that the users can use to enhance their user experience to create apps with rich user interfaces for Web business applications. The most common enablement tools include − Theme Designer NWBC and Side Panel FPM Screens SAP UI5 Development Tools Web-based apps that you create using SAP UI5 prov...
[ { "code": null, "e": 2239, "s": 2041, "text": "SAP provides various tools that the users can use to enhance their user experience to create apps with rich user interfaces for Web business applications. The most common enablement tools include −" }, { "code": null, "e": 2254, "s": 223...
Using Association Rules for HR Analysis | by Eduardo Furtado | Towards Data Science
Association Rules algorithms such as Apriori are a great way to find what items regularly occur together in your dataset and see their relationship. It is an unsupervised machine learning model commonly used to find relationships in transactions, eg. clients purchases. An item is considered frequent if its occurrences ...
[ { "code": null, "e": 442, "s": 172, "text": "Association Rules algorithms such as Apriori are a great way to find what items regularly occur together in your dataset and see their relationship. It is an unsupervised machine learning model commonly used to find relationships in transactions, eg. clie...
MATLAB - Determinant of a Matrix
Determinant of a matrix is calculated using the det function of MATLAB. Determinant of a matrix A is given by det(A). Create a script file with the following code − a = [ 1 2 3; 2 3 4; 1 2 5] det(a) When you run the file, it displays the following result − a = 1 2 3 2 3 4 1 2 5...
[ { "code": null, "e": 2259, "s": 2141, "text": "Determinant of a matrix is calculated using the det function of MATLAB. Determinant of a matrix A is given by det(A)." }, { "code": null, "e": 2306, "s": 2259, "text": "Create a script file with the following code −" }, { "co...
Marketing Mix Modeling with Facebook’s Robyn | Towards Data Science
This article provides you a first overview of Facebook Experimental’s Robyn. Since the Facebook Marketing Science team has already created a great quick start guide and very detailed pages, I try to keep the article short and on point. For detailed explanations, you can find more information here. Facebook Experimental...
[ { "code": null, "e": 471, "s": 172, "text": "This article provides you a first overview of Facebook Experimental’s Robyn. Since the Facebook Marketing Science team has already created a great quick start guide and very detailed pages, I try to keep the article short and on point. For detailed explan...
How to perform drag and drop operation in Selenium with python?
We can perform drag and drop actions in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements. These types of actions are mainly common in complex scenarios like drag and drop and hovering ...
[ { "code": null, "e": 1288, "s": 1062, "text": "We can perform drag and drop actions in Selenium with the help of Action\nChains class. These classes are generally used for automating interactions like\ncontext menu click, mouse button actions, key press and mouse movements." }, { "code": nul...
Concatenate a string given number of times in C++ programming
A program to concatenate a string a given number of times will run the string concatenate method n number of times based on the value of n. The result would be string repeated a number of times. given string: “ I love Tutorials point” n = 5 I love Tutorials pointI love Tutorials pointI love Tutorials pointI love Tutori...
[ { "code": null, "e": 1202, "s": 1062, "text": "A program to concatenate a string a given number of times will run the string concatenate method n number of times based on the value of n." }, { "code": null, "e": 1257, "s": 1202, "text": "The result would be string repeated a numb...
Java Program to create a TreeSet with custom Comparator
To create a TreeSet with custom comparator, let us first create a an Integer array and set it to TreeSet Integer arr[] = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }; Set<Integer> set = new TreeSet<Integer>(Collections.reverseOrder()); Above, we have used the Comparator with reverseOrder(), which returns a comparator th...
[ { "code": null, "e": 1167, "s": 1062, "text": "To create a TreeSet with custom comparator, let us first create a an Integer array and set it to TreeSet" }, { "code": null, "e": 1297, "s": 1167, "text": "Integer arr[] = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };\nSet<Integer> se...
Convert list of tuples into list in Python
We may come across a lists whose elements are tuples. But for further data processing we may need to convert the tuples to the normal elements of a list. In this article we will see the approaches to achieve this. In this approach we design nested for loops to iterate through each tuple and produce the final list of el...
[ { "code": null, "e": 1276, "s": 1062, "text": "We may come across a lists whose elements are tuples. But for further data processing we may need to convert the tuples to the normal elements of a list. In this article we will see the approaches to achieve this." }, { "code": null, "e": 13...
How to add Icon to JButton in Java?
To add icon to a button, use the Icon class, which will allow you to add an image to the button. We are creating a button wherein we are adding an icon with Icon class − Icon icon = new ImageIcon("E:\\editicon.PNG"); JButton button7 = new JButton(icon); Above, we have set icon for button 7. The following is an example ...
[ { "code": null, "e": 1159, "s": 1062, "text": "To add icon to a button, use the Icon class, which will allow you to add an image to the button." }, { "code": null, "e": 1232, "s": 1159, "text": "We are creating a button wherein we are adding an icon with Icon class −" }, { ...
HTML - <title> Tag
The HTML <title> tag is used for indicating the title of the HTML document. The body title is placed between the <head> and the </head> tags. HTML document title is visible via browser’s title bar. <!DOCTYPE html> <html> <head> <title>Title comes here</title> </head> <body> <p>title tag is used f...
[ { "code": null, "e": 2516, "s": 2374, "text": "The HTML <title> tag is used for indicating the title of the HTML document. The body title is placed between the <head> and the </head> tags." }, { "code": null, "e": 2572, "s": 2516, "text": "HTML document title is visible via brows...
Pairs of Amicable Numbers - GeeksforGeeks
25 Feb, 2022 Given an array of integers, print the number of pairs in the array that form an amicable pair. Two numbers are amicable if the first is equal to the sum of divisors of the second, and if the second number is equal to the sum of divisors of the first.Examples : Input : arr[] = {220, 284, 1184, 1210, 2, 5...
[ { "code": null, "e": 24431, "s": 24403, "text": "\n25 Feb, 2022" }, { "code": null, "e": 24694, "s": 24431, "text": "Given an array of integers, print the number of pairs in the array that form an amicable pair. Two numbers are amicable if the first is equal to the sum of divisor...
Central binomial coefficient - GeeksforGeeks
28 Jun, 2021 Given an integer N, the task is to find the Central binomial coefficient. The first few Central binomial coefficients for N = 0, 1, 2, 3... are 1, 2, 6, 20, 70, 252, 924, 3432..... Examples: Input: N = 3 Output: 20 Explanation: Central Binomial Coefficient = = = = 20Input: N = 2 Output: 6 Approach:...
[ { "code": null, "e": 26047, "s": 26019, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26193, "s": 26047, "text": "Given an integer N, the task is to find the Central binomial coefficient. The first few Central binomial coefficients for N = 0, 1, 2, 3... are " }, { "co...
How to sort an Array in C# | Array.Sort() Method Set - 1 - GeeksforGeeks
10 May, 2019 Array.Sort Method is used to sort elements in a one-dimensional array. There are 17 methods in the overload list of this method as follows: Sort<T>(T[]) MethodSort<T>(T[], IComparer<T>) MethodSort<T>(T[], Int32, Int32) MethodSort<T>(T[], Comparison<T>) MethodSort(Array, Int32, Int32, IComparer) MethodSort(...
[ { "code": null, "e": 25378, "s": 25350, "text": "\n10 May, 2019" }, { "code": null, "e": 25518, "s": 25378, "text": "Array.Sort Method is used to sort elements in a one-dimensional array. There are 17 methods in the overload list of this method as follows:" }, { "code": n...
Field getAnnotation() method in Java With Examples - GeeksforGeeks
17 Sep, 2019 The getAnnotation() method of java.lang.reflect.Field is used to return returns Field objects’s for the specified type if such an annotation is present, else null.This is important method to get annotation for Field object. Syntax: public <T extends Annotation> T getAnnotation(Class<T> annotationClass) ...
[ { "code": null, "e": 25501, "s": 25473, "text": "\n17 Sep, 2019" }, { "code": null, "e": 25725, "s": 25501, "text": "The getAnnotation() method of java.lang.reflect.Field is used to return returns Field objects’s for the specified type if such an annotation is present, else null....
B+ tree Insertion in Data Structure
Here we will see, how to perform the insertion into a B+ Tree. Suppose we have a B+ Tree like below − Example of B+ Tree − To insert an element, the idea is very similar to the B-Tree, if one element is inserted, that will be stored at the leaf node. If that is present in some internal node, then it will also be there,...
[ { "code": null, "e": 1164, "s": 1062, "text": "Here we will see, how to perform the insertion into a B+ Tree. Suppose we have a B+ Tree like below −" }, { "code": null, "e": 1185, "s": 1164, "text": "Example of B+ Tree −" }, { "code": null, "e": 1421, "s": 1185, ...
What is a Graphics Card? - GeeksforGeeks
12 Aug, 2020 Graphics card is a hardware which is used to increase the video memory of a computer, and make its display quality more high-definition. It makes the computer more powerful and gives it the capacity to do more high-level works. The quality of the image depends on the quality of the graphics card. It is ver...
[ { "code": null, "e": 24257, "s": 24229, "text": "\n12 Aug, 2020" }, { "code": null, "e": 24755, "s": 24257, "text": "Graphics card is a hardware which is used to increase the video memory of a computer, and make its display quality more high-definition. It makes the computer more...
Convert Your Python Code into a Windows Application (.exe file) | by Ujjwal Dalmia | Towards Data Science
You wrote an amazing Python application and presented it to your boss. He is impressed and wants to use it on his system. He neither has Python installed on his system and nor he has ever worked on it. You are stuck!!! If the above sounds familiar, then this tutorial will solve your problem. Here, we will learn the pro...
[ { "code": null, "e": 390, "s": 171, "text": "You wrote an amazing Python application and presented it to your boss. He is impressed and wants to use it on his system. He neither has Python installed on his system and nor he has ever worked on it. You are stuck!!!" }, { "code": null, "e":...
What is the difference between abstract class and a concrete class in Java?
Following are the notable differences between an abstract class and concrete class. Abstract classes may or may not contain abstract methods, i.e., methods without body ( public void get(); ) But, if a class has at least one abstract method, then the class must be declared abstract. You cannot instantiate an abstract c...
[ { "code": null, "e": 1146, "s": 1062, "text": "Following are the notable differences between an abstract class and concrete class." }, { "code": null, "e": 1254, "s": 1146, "text": "Abstract classes may or may not contain abstract methods, i.e., methods without body ( public void...
Java Guava | Lists.partition() method with Examples - GeeksforGeeks
04 Feb, 2019 The Lists.partition() method in Guava Library is used to divide the original list into sublists of the same size. The method accepts two parameters. For example: If the original list passed as parameter is [a, b, c, d, e] and the partition size is 3, then the sublists yield are as [[a, b, c], [d, e]]. Synt...
[ { "code": null, "e": 23859, "s": 23831, "text": "\n04 Feb, 2019" }, { "code": null, "e": 24008, "s": 23859, "text": "The Lists.partition() method in Guava Library is used to divide the original list into sublists of the same size. The method accepts two parameters." }, { ...
How to Send and Receive JSON Data to and from the Server
JavaScript can send network requests to the server and load JSON. JS does this using something called AJAX. AJAX stands for Asynchronous JavaScript and XML. JS has an API, fetch, to GET(receive) and POST(send) information to the server. You can use fetch to GET JSON data in the following way − const URL = 'https://json...
[ { "code": null, "e": 1299, "s": 1062, "text": "JavaScript can send network requests to the server and load JSON. JS does this using something called AJAX. AJAX stands for Asynchronous JavaScript and XML. JS has an API, fetch, to GET(receive) and POST(send) information to the server." }, { "c...
Python | Numpy numpy.transpose() - GeeksforGeeks
07 Mar, 2022 With the help of Numpy numpy.transpose(), We can perform the simple function of transpose within one line by using numpy.transpose() method of Numpy. It can transpose the 2-D arrays on the other hand it has no effect on 1-D arrays. This method transpose the 2-D numpy array. Parameters: axes : [None, tuple...
[ { "code": null, "e": 25084, "s": 25056, "text": "\n07 Mar, 2022" }, { "code": null, "e": 25360, "s": 25084, "text": "With the help of Numpy numpy.transpose(), We can perform the simple function of transpose within one line by using numpy.transpose() method of Numpy. It can transp...
Implementation of Least Recently Used (LRU) page replacement algorithm using Counters - GeeksforGeeks
02 Dec, 2019 Prerequisite – Least Recently Used (LRU) Page Replacement algorithmLeast Recently Used page replacement algorithm replaces the page which is not used recently. Implementation:In this article, LRU is implemented using counters, a ctime (i.e., counter) variable is used to represent the current time, it is in...
[ { "code": null, "e": 25689, "s": 25661, "text": "\n02 Dec, 2019" }, { "code": null, "e": 25849, "s": 25689, "text": "Prerequisite – Least Recently Used (LRU) Page Replacement algorithmLeast Recently Used page replacement algorithm replaces the page which is not used recently." ...
How to fetch data from MongoDB using Python? - GeeksforGeeks
31 Aug, 2021 MongoDB is a cross-platform, document-oriented database that works on the concept of collections and documents. MongoDB offers high speed, high availability, and high scalability. Pymongo provides various methods for fetching the data from mongodb. Let’s see them one by one. 1) Find One: This method is use...
[ { "code": null, "e": 25339, "s": 25311, "text": "\n31 Aug, 2021" }, { "code": null, "e": 25519, "s": 25339, "text": "MongoDB is a cross-platform, document-oriented database that works on the concept of collections and documents. MongoDB offers high speed, high availability, and h...
Angular ng Bootstrap Buttons Component - GeeksforGeeks
06 Jul, 2021 Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article we will know how to use Buttons in angular ng bootstrap. Buttons are used to make a group of buttons. Insta...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n06 Jul, 2021" }, { "code": null, "e": 26538, "s": 26354, "text": "Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make ...
Python - Test if String contains any Uppercase character - GeeksforGeeks
11 Oct, 2020 Given a String, Test if it contains any uppercase character. Input : test_str = ‘geeksforgeeks’ Output : False Explanation : No uppercase character in String. Input : test_str = ‘geeksforgEeks’ Output : True Explanation : E is uppercase in String. Method #1 : Using loop + isupper() In this, we iterate for...
[ { "code": null, "e": 26113, "s": 26085, "text": "\n11 Oct, 2020" }, { "code": null, "e": 26174, "s": 26113, "text": "Given a String, Test if it contains any uppercase character." }, { "code": null, "e": 26272, "s": 26174, "text": "Input : test_str = ‘geeksforg...
Basic data analysis techniques every data analyst should know, using Python. | by Erfan Nariman | Towards Data Science
In my daily job as a data analyst I see all kinds of data and all kinds of analysis requests from the clients. What I noticed is that certain basic techniques you need in most projects, independent of the type of project you are working on. I’m convinced every data analyst/scientist should have a good understanding of ...
[ { "code": null, "e": 624, "s": 171, "text": "In my daily job as a data analyst I see all kinds of data and all kinds of analysis requests from the clients. What I noticed is that certain basic techniques you need in most projects, independent of the type of project you are working on. I’m convinced ...
Construct a simple HTTP request on TCP protocol - GeeksforGeeks
01 Feb, 2022 HTTP Request : HTTP messages are how data is exchanged between a server and a client. In this, there are two types of messages where one is HTTP client request and the second is the response from the server. Messages in textual form and it is encoded in ASCII form, and span over multiple lines. And message...
[ { "code": null, "e": 24430, "s": 24402, "text": "\n01 Feb, 2022" }, { "code": null, "e": 24445, "s": 24430, "text": "HTTP Request :" }, { "code": null, "e": 24638, "s": 24445, "text": "HTTP messages are how data is exchanged between a server and a client. In t...
Check whether right angled triangle is valid or not for large sides in Python
Suppose we have three sides in a list. We have to check whether these three sides are forming a right angled triangle or not. So, if the input is like sides = [8, 10, 6], then the output will be True as (8^2 + 6^2) = 10^2. To solve this, we will follow these steps − sort the list sides if (sides[0]^2 + sides[1]^2) is s...
[ { "code": null, "e": 1188, "s": 1062, "text": "Suppose we have three sides in a list. We have to check whether these three sides are forming a right angled triangle or not." }, { "code": null, "e": 1285, "s": 1188, "text": "So, if the input is like sides = [8, 10, 6], then the ou...
Java Methods
A method is a block of code which only runs when it is called. You can pass data, known as parameters, into a method. Methods are used to perform certain actions, and they are also known as functions. Why use methods? To reuse code: define the code once, and use it many times. A method must be declared within a class....
[ { "code": null, "e": 63, "s": 0, "text": "A method is a block of code which only runs when it is called." }, { "code": null, "e": 118, "s": 63, "text": "You can pass data, known as parameters, into a method." }, { "code": null, "e": 201, "s": 118, "text": "Met...
Bootstrap - Typography
Bootstrap uses Helvetica Neue, Helvetica, Arial, and sans-serif in its default font stack. Using typography feature of Bootstrap you can create headings, paragraphs, lists and other inline elements. Let see learn each one of these in the following sections. All HTML headings (h1 to h6) are styled in Bootstrap. An examp...
[ { "code": null, "e": 3589, "s": 3331, "text": "Bootstrap uses Helvetica Neue, Helvetica, Arial, and sans-serif in its default font stack. Using typography feature of Bootstrap you can create headings, paragraphs, lists and other inline elements. Let see learn each one of these in the following secti...
Find n/k th node in Linked list | Practice | GeeksforGeeks
Given a singly linked list and a number k. Write a function to find the (N/k)th element, where N is the number of elements in the list. We need to consider ceil value in case of decimals. Input: The first line of input contains an integer T denoting the number of test cases. The first line of each test case consists of...
[ { "code": null, "e": 426, "s": 238, "text": "Given a singly linked list and a number k. Write a function to find the (N/k)th element, where N is the number of elements in the list. We need to consider ceil value in case of decimals." }, { "code": null, "e": 659, "s": 426, "text":...
How to Implement Queue in Java using Array and Generics? - GeeksforGeeks
24 Oct, 2021 The queue is a linear data structure that follows the FIFO rule (first in first out). We can implement Queue for not only Integers but also Strings, Float, or Characters. There are 5 primary operations in Queue: enqueue() adds element x to the front of the queuedequeue() removes the last element of the que...
[ { "code": null, "e": 23635, "s": 23607, "text": "\n24 Oct, 2021" }, { "code": null, "e": 23847, "s": 23635, "text": "The queue is a linear data structure that follows the FIFO rule (first in first out). We can implement Queue for not only Integers but also Strings, Float, or Char...
Machine Translation with Transformers Using Pytorch | by Raymond Cheng | Towards Data Science
Translation, or more formally, machine translation, is one of the most popular tasks in Natural Language Processing (NLP) that deals with translating from one language to another. In the early days, translation is initially done by simply substituting words in one language to words in another. However, doing that does ...
[ { "code": null, "e": 788, "s": 172, "text": "Translation, or more formally, machine translation, is one of the most popular tasks in Natural Language Processing (NLP) that deals with translating from one language to another. In the early days, translation is initially done by simply substituting wor...
The enigma of Adjusted R Squared in regression analysis | by Sanjay Nandakumar | Towards Data Science
“Truth does not consist in minute accuracy of detail; but in conveying a right impression.” Henry Alford Regression analysis is one of the most fundamental but commanding machine learning techniques which is still predominant and made a way for many advanced kinds of research in the industry. Although there are a handf...
[ { "code": null, "e": 264, "s": 172, "text": "“Truth does not consist in minute accuracy of detail; but in conveying a right impression.”" }, { "code": null, "e": 277, "s": 264, "text": "Henry Alford" }, { "code": null, "e": 1142, "s": 277, "text": "Regression ...
Weka - Quick Guide
The foundation of any Machine Learning application is data - not just a little data but a huge data which is termed as Big Data in the current terminology. To train the machine to analyze big data, you need to have several considerations on the data − The data must be clean. It should not contain null values. Besides, ...
[ { "code": null, "e": 1950, "s": 1794, "text": "The foundation of any Machine Learning application is data - not just a little data but a huge data which is termed as Big Data in the current terminology." }, { "code": null, "e": 2046, "s": 1950, "text": "To train the machine to an...
Downloading with chrome headless and selenium.
We can download Chrome in headless mode in Selenium. The headless execution is one of the ways saving resources by not utilizing the complete graphical interface. After the version 59, Chrome can be used in headless mode. The ChromeOptions class is used to modify the default character of the browser. The parameter head...
[ { "code": null, "e": 1225, "s": 1062, "text": "We can download Chrome in headless mode in Selenium. The headless execution is one of the ways saving resources by not utilizing the complete graphical interface." }, { "code": null, "e": 1462, "s": 1225, "text": "After the version 5...
GATE | GATE CS 2008 | Question 39 - GeeksforGeeks
28 Jun, 2021 Consider the following functions: f(n) = 2n g(n) = n! h(n) = nlogn Which of the following statements about the asymptotic behaviour of f(n), g(n), and h(n) is true? (A) f(n) = O(g(n)); g(n) = O(h(n)) (B) f(n) = (g(n)); g(n) = O(h(n)) (C) g(n) = O(f(n)); h(n) = O(f(n)) (D) h(n) = O(f(n)); g(n) = (f(n)) (A)...
[ { "code": null, "e": 24075, "s": 24047, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24109, "s": 24075, "text": "Consider the following functions:" }, { "code": null, "e": 24142, "s": 24109, "text": "f(n) = 2n\ng(n) = n!\nh(n) = nlogn" }, { "code":...
Bootstrap 4 - Sizing
You can make the size of an element wide or tall by using width and height utilities. The width and height can be set for an element, by using 25%, 50%, 75%, 100%, and auto values. For instance, use w-25 (for remaining values, replace 25 with those values) for width utility and h-25 (for remaining values, replace 25 w...
[ { "code": null, "e": 1902, "s": 1816, "text": "You can make the size of an element wide or tall by using width and height utilities." }, { "code": null, "e": 2174, "s": 1902, "text": "The width and height can be set for an element, by using 25%, 50%, 75%, 100%, and auto values. ...
Python Pandas - Aggregations
Once the rolling, expanding and ewm objects are created, several methods are available to perform aggregations on data. Let us create a DataFrame and apply aggregations on it. import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(10, 4), index = pd.date_range('1/1/2000', periods=10), columns =...
[ { "code": null, "e": 2563, "s": 2443, "text": "Once the rolling, expanding and ewm objects are created, several methods are available to perform aggregations on data." }, { "code": null, "e": 2619, "s": 2563, "text": "Let us create a DataFrame and apply aggregations on it." }, ...
Graph Algorithms (Part 2). Main concepts, properties, and... | by Maël Fabien | Towards Data Science
Graphs are becoming central to machine learning these days, whether you’d like to understand the structure of a social network by predicting potential connections, detecting fraud, understand customer’s behavior of a car rental service or making real-time recommendations for example. In this article, we’ll cover : The ...
[ { "code": null, "e": 457, "s": 172, "text": "Graphs are becoming central to machine learning these days, whether you’d like to understand the structure of a social network by predicting potential connections, detecting fraud, understand customer’s behavior of a car rental service or making real-time...
Data Science Skills: Web scraping javascript using python | by Kerry Parker | Towards Data Science
There are different ways of scraping web pages using python. In my previous article, I gave an introduction to web scraping by using the libraries:requests and BeautifulSoup. However, many web pages are dynamic and use JavaScript to load their content. These websites often require a different approach to gather the dat...
[ { "code": null, "e": 494, "s": 171, "text": "There are different ways of scraping web pages using python. In my previous article, I gave an introduction to web scraping by using the libraries:requests and BeautifulSoup. However, many web pages are dynamic and use JavaScript to load their content. Th...
The Medium-Sized Dataset. Too big for RAM, too small for a... | by João Paulo Figueira | Towards Data Science
Small datasets are cool. You can load them into memory and manipulate them at will, no sweat. Massive datasets are also cool. They have lots of data and the promise of exciting models and analyses. You gladly pay the price of the required cluster just to handle all that goodness. Medium-sized datasets are a pain. They ...
[ { "code": null, "e": 669, "s": 171, "text": "Small datasets are cool. You can load them into memory and manipulate them at will, no sweat. Massive datasets are also cool. They have lots of data and the promise of exciting models and analyses. You gladly pay the price of the required cluster just to ...
How to print the first character of each word in a String in Java?
A String class can be used to represent the character strings, all the string literals in a Java program are implemented as an instance of a String class. The Strings are constants and their values cannot be changed (immutable) once created. We can print the first character of each word in a string by using the below p...
[ { "code": null, "e": 1304, "s": 1062, "text": "A String class can be used to represent the character strings, all the string literals in a Java program are implemented as an instance of a String class. The Strings are constants and their values cannot be changed (immutable) once created." }, { ...
How to make a jQuery function call after “X” seconds?
To make a jQuery function call after “X” seconds, use the siteTimeout() method. On button click, set the following and fade out the element. Here, we have also set the milliseconds. This is the delay that would occur before fading an element: $("#button1").bind("click",function() { setTimeout(function() { $('#...
[ { "code": null, "e": 1142, "s": 1062, "text": "To make a jQuery function call after “X” seconds, use the siteTimeout() method." }, { "code": null, "e": 1305, "s": 1142, "text": "On button click, set the following and fade out the element. Here, we have also set the milliseconds. ...
JDBC - Updating a Result Set Example
Following is the example, which makes use of the ResultSet.CONCUR_UPDATABLE and ResultSet.TYPE_SCROLL_INSENSITIVE described in the Result Set tutorial. This example would explain INSERT, UPDATE and DELETE operation on a table. It should be noted that tables you are working on should have Primary Key set properly. Drop ...
[ { "code": null, "e": 2389, "s": 2162, "text": "Following is the example, which makes use of the ResultSet.CONCUR_UPDATABLE and ResultSet.TYPE_SCROLL_INSENSITIVE described in the Result Set tutorial. This example would explain INSERT, UPDATE and DELETE operation on a table." }, { "code": null...
Clustering Analysis in R using K-means | by Luiz Fonseca | Towards Data Science
The purpose of clustering analysis is to identify patterns in your data and create groups according to those patterns. Therefore, if two points have similar characteristics, that means they have the same pattern and consequently, they belong to the same group. By doing clustering analysis we should be able to check wha...
[ { "code": null, "e": 563, "s": 172, "text": "The purpose of clustering analysis is to identify patterns in your data and create groups according to those patterns. Therefore, if two points have similar characteristics, that means they have the same pattern and consequently, they belong to the same g...
Swift - Closures
Closures in Swift 4 are similar to that of self-contained functions organized as blocks and called anywhere like C and Objective C languages. Constants and variable references defined inside the functions are captured and stored in closures. Functions are considered as special cases of closures and it takes the followi...
[ { "code": null, "e": 2590, "s": 2253, "text": "Closures in Swift 4 are similar to that of self-contained functions organized as blocks and called anywhere like C and Objective C languages. Constants and variable references defined inside the functions are captured and stored in closures. Functions a...
How to validate a URL using regular expression in C#?
To validate, you need to check for the protocols. http https With that, you need to check for .com, .in, .org, etc. For this, use the following regular expression − (http|http(s)?://)?([\w-]+\.)+[\w-]+[.com|.in|.org]+(\[\?%&=]*)? The following is the code − Live Demo using System; using System.Text.RegularExpressions;...
[ { "code": null, "e": 1112, "s": 1062, "text": "To validate, you need to check for the protocols." }, { "code": null, "e": 1123, "s": 1112, "text": "http\nhttps" }, { "code": null, "e": 1178, "s": 1123, "text": "With that, you need to check for .com, .in, .org,...
Parse TradingView Stock Recommendations in Seconds! | Towards Data Science
In one of my earlier articles, we went over how to parse the top analyst recommendations from Yahoo Finance for any stock. While they offered validation as to where a stock might move in the future, they were only updated once a month and did not offer any info as to the rationale behind the rating. Luckily, since then...
[ { "code": null, "e": 348, "s": 47, "text": "In one of my earlier articles, we went over how to parse the top analyst recommendations from Yahoo Finance for any stock. While they offered validation as to where a stock might move in the future, they were only updated once a month and did not offer any...
Enum.GetName in C#
Gets the string representation of an Enum value using the Enum.GetName. It has two parameters − Type − Enumeration type Type − Enumeration type Object − Value of an enumeration Object − Value of an enumeration The following is an example − Live Demo using System; class Demo { enum Vehicle { Car, Motorb...
[ { "code": null, "e": 1134, "s": 1062, "text": "Gets the string representation of an Enum value using the Enum.GetName." }, { "code": null, "e": 1158, "s": 1134, "text": "It has two parameters −" }, { "code": null, "e": 1182, "s": 1158, "text": "Type − Enumerat...
Training, Validating and Testing — Successfully Comparing Model Performances | Towards Data Science
If you have already used machine learning algorithms, you likely have encountered functions named like train_test_split() or similar sounding functions that are available in libraries such as scikit-learn, TensorFlow or others. Training a model is the first step in making good predictions, however identifying how well ...
[ { "code": null, "e": 632, "s": 171, "text": "If you have already used machine learning algorithms, you likely have encountered functions named like train_test_split() or similar sounding functions that are available in libraries such as scikit-learn, TensorFlow or others. Training a model is the fir...
Python Program to Implement a Stack using Linked List
When it is required to implement a stack data structure using a linked list, a method to add (push values) elements to the linked list, and a method to delete (pop values) the elements of the linked list are defined. Below is a demonstration for the same − Live Demo class Node: def __init__(self, data): self....
[ { "code": null, "e": 1404, "s": 1187, "text": "When it is required to implement a stack data structure using a linked list, a method to add (push values) elements to the linked list, and a method to delete (pop values) the elements of the linked list are defined." }, { "code": null, "e":...
Digital Low Pass Butterworth Filter in Python
08 Dec, 2020 In this article, we are going to discuss how to design a Digital Low Pass Butterworth Filter using Python. The Butterworth filter is a type of signal processing filter designed to have a frequency response as flat as possible in the pass band. Let us take the below specifications to design the filter and o...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Dec, 2020" }, { "code": null, "e": 443, "s": 54, "text": "In this article, we are going to discuss how to design a Digital Low Pass Butterworth Filter using Python. The Butterworth filter is a type of signal processing filter design...
Sending SMS using NEXMO API in Node.js
14 Feb, 2020 Introduction: SMS is a common method of sending short messages between cell phones, but these SMS can be sent using API in Node.js. Now there are lots of API in the market for sending SMS like Twilio, Exotel, etc to the user but the popular among them is Nexmo. Features of NEXMO: Integrating this module in...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Feb, 2020" }, { "code": null, "e": 316, "s": 54, "text": "Introduction: SMS is a common method of sending short messages between cell phones, but these SMS can be sent using API in Node.js. Now there are lots of API in the market fo...
Smallest subset with sum greater than all other elements
09 Apr, 2021 Given an array of non-negative integers. Our task is to find minimum number of elements such that their sum should be greater than the sum of rest of the elements of the array.Examples : Input : arr[] = {3, 1, 7, 1} Output : 1 Smallest subset is {7}. Sum of this subset is greater than all other elements ...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Apr, 2021" }, { "code": null, "e": 241, "s": 52, "text": "Given an array of non-negative integers. Our task is to find minimum number of elements such that their sum should be greater than the sum of rest of the elements of the arra...
RUN vs CMD vs Entrypoint in Docker
The commands RUN, CMD and Entrypoint usually cause a lot of confusion among docker developers. Understanding all the three commands conceptually will help to have a clearer understanding of the same. When we try to build an image using dockerfile, the instructions are executed step by step. The first instruction is usu...
[ { "code": null, "e": 1387, "s": 1187, "text": "The commands RUN, CMD and Entrypoint usually cause a lot of confusion among docker developers. Understanding all the three commands conceptually will help to have a clearer understanding of the same." }, { "code": null, "e": 1982, "s": 1...
Program to print number with star pattern
04 Jun, 2022 We have to print the pattern as given in the below example.Examples : Input : 5 Output : 1 1*2 1*2*3 1*2 1 Input : 9 Output : 1 1*2 1*2*3 1*2*3*4 1*2*3*4*5 1*2*3*4 1*2*3 1*2 1 C++ Java Python3 C# PHP Javascript #include <iostream>using namespace std; // C++ program to print ...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jun, 2022" }, { "code": null, "e": 123, "s": 52, "text": "We have to print the pattern as given in the below example.Examples : " }, { "code": null, "e": 256, "s": 123, "text": "Input : 5\nOutput :\n 1\n 1*2\n1*...
Difference between Steganography and Cryptography
08 Jun, 2020 1. Steganography:Steganography is a method in which secret message is hidden in a cover media. Steganography means covered writing. Steganography is the idea to prevent secret information by creating the suspicion. Steganography is less popular than Cryptography. In steganography, structure of data is not ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Jun, 2020" }, { "code": null, "e": 383, "s": 28, "text": "1. Steganography:Steganography is a method in which secret message is hidden in a cover media. Steganography means covered writing. Steganography is the idea to prevent secret...
Change the x or y ticks of a Matplotlib figure
29 Oct, 2021 Matplotlib is a plotting library in Python to visualize data, inspired by MATLAB, meaning that the terms used (Axis, Figure, Plots) will be similar to those used in MATLAB. Pyplot is a module within the Matplotlib library which is a shell-like interface to Matplotlib module. There are many ways to change t...
[ { "code": null, "e": 53, "s": 25, "text": "\n29 Oct, 2021" }, { "code": null, "e": 329, "s": 53, "text": "Matplotlib is a plotting library in Python to visualize data, inspired by MATLAB, meaning that the terms used (Axis, Figure, Plots) will be similar to those used in MATLAB. P...
How to Build a TODO Android Application with AWS DynamoDB as Database?
04 Feb, 2021 This is a TODO application made on android studio IDE, code is written in JAVA, and data store in AWS DynamoDB and fetch to the home screen. The connection established between the application and AWS through Amplify CLI and the data is successful gets stored by creating a TODO Table in DynamoDB, a Schema i...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Feb, 2021" }, { "code": null, "e": 704, "s": 52, "text": "This is a TODO application made on android studio IDE, code is written in JAVA, and data store in AWS DynamoDB and fetch to the home screen. The connection established betwee...
Python | Using variable outside and inside the class and method
18 May, 2020 In Python, we can define the variable outside the class, inside the class, and even inside the methods. Let’s see, how to use and access these variables throughout the program. Variable defined outside the class: The variables that are defined outside the class can be accessed by any class or any methods i...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 May, 2020" }, { "code": null, "e": 205, "s": 28, "text": "In Python, we can define the variable outside the class, inside the class, and even inside the methods. Let’s see, how to use and access these variables throughout the program...
NumPy in Python | Set 1 (Introduction)
06 May, 2022 This article will help you get acquainted with the widely used array-processing library in Python, NumPy. What is NumPy? NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is the fundamental package ...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 May, 2022" }, { "code": null, "e": 488, "s": 54, "text": "This article will help you get acquainted with the widely used array-processing library in Python, NumPy. What is NumPy? NumPy is a general-purpose array-processing package. ...
Program to create grade calculator in Python
26 Oct, 2018 Given different scored marks of students. We need to find grades. The test score is an average of the respective marks scored in assignments, tests and lab-works. The final test score is assigned using below formula. 10 % of marks scored from submission of Assignments 70 % of marks scored from Test 20 % of...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Oct, 2018" }, { "code": null, "e": 269, "s": 52, "text": "Given different scored marks of students. We need to find grades. The test score is an average of the respective marks scored in assignments, tests and lab-works. The final t...
Python: Numpy’s Structured Array
27 Aug, 2021 Numpy’s Structured Array is similar to Struct in C. It is used for grouping data of different types and sizes. Structure array uses data containers called fields. Each data field can contain data of any type and size. Array elements can be accessed with the help of dot notation.Note: Arrays with named fiel...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Aug, 2021" }, { "code": null, "e": 420, "s": 28, "text": "Numpy’s Structured Array is similar to Struct in C. It is used for grouping data of different types and sizes. Structure array uses data containers called fields. Each data fi...
CSS - Visibility
A property called visibility allows you to hide an element from view. You can use this property along with JavaScript to create very complex menu and very complex webpage layouts. You may choose to use the visibility property to hide error messages that are only displayed if the user needs to see them, or to hide answe...
[ { "code": null, "e": 2940, "s": 2760, "text": "A property called visibility allows you to hide an element from view. You can use this property along with JavaScript to create very complex menu and very complex webpage layouts." }, { "code": null, "e": 3127, "s": 2940, "text": "Yo...
Gradient borders
23 May, 2019 Gradient borders are not directly supported by using CSS. There are two methods to create gradient borders which are listed below: Method 1: Using border-image with gradient: The border is created by using the size and color as transparent in the border property. The gradient is used to define the border-i...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2019" }, { "code": null, "e": 159, "s": 28, "text": "Gradient borders are not directly supported by using CSS. There are two methods to create gradient borders which are listed below:" }, { "code": null, "e": 482, ...
JavaScript Array reduce() Method
01 Nov, 2021 Below is the example of Array reduce() method. Example:<!DOCTYPE html><html> <head> <title> JavaScript Array reduce() Method </title></head> <body style="text-align:center;"> <h1 style="color: green;">GeeksforGeeks</h1> <p> Click here to get the Subtract o...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Nov, 2021" }, { "code": null, "e": 75, "s": 28, "text": "Below is the example of Array reduce() method." }, { "code": null, "e": 859, "s": 75, "text": "Example:<!DOCTYPE html><html> <head> <title> J...
How to Access Index in Python’s for Loop
21 Jun, 2022 In this article, we will discuss how to access index in python for loop in Python Here, we will 4 different methods of Python program to access index of a list using for loop. we will cover different approaches to finding indexes in python for strings, lists, To handle looping requirements, the Python pro...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2022" }, { "code": null, "e": 110, "s": 28, "text": "In this article, we will discuss how to access index in python for loop in Python" }, { "code": null, "e": 289, "s": 110, "text": "Here, we will 4 differen...
DateTime.IsLeapYear() Method in C#
15 Jul, 2021 This method returns an indication of whether the specified year is a leap year or not. Here, the year is always interpreted as a year in the Gregorian calendar. Syntax: public static bool IsLeapYear (int year); Return Value: This method return true if year is a leap year otherwise it returns false. Except...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2021" }, { "code": null, "e": 189, "s": 28, "text": "This method returns an indication of whether the specified year is a leap year or not. Here, the year is always interpreted as a year in the Gregorian calendar." }, { ...
numpy.arange() in Python
08 Nov, 2021 The arange([start,] stop[, step,][, dtype]) : Returns an array with evenly spaced elements as per the interval. The interval mentioned is half-opened i.e. [Start, Stop) Parameters : start : [optional] start of interval range. By default start = 0 stop : end of interval range step : [optional] step size...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Nov, 2021" }, { "code": null, "e": 224, "s": 54, "text": "The arange([start,] stop[, step,][, dtype]) : Returns an array with evenly spaced elements as per the interval. The interval mentioned is half-opened i.e. [Start, Stop) " }...
HTML | <body> alink Attribute
05 Jan, 2022 The HTML <body> alink Attribute is used to specify the color of an active link in a document. Note: The HTML <body> alink attribute is not supported by HTML5. Syntax: <body alink="color_name|hex_number|rgb_number"> Attribute Values: color_name: It specifies the name of the color of an active link. hex_numb...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jan, 2022" }, { "code": null, "e": 122, "s": 28, "text": "The HTML <body> alink Attribute is used to specify the color of an active link in a document." }, { "code": null, "e": 187, "s": 122, "text": "Note: The HT...
How to Install PHP on Linux?
06 Dec, 2021 PHP is a general-purpose scripting language that is especially used in web development. It was created in 1994 by Rasmus Lerdorf. It is used to manage dynamic content, databases, session tracking, and build entire e-commerce websites and Linux is an open-source operating system. It was first released on 1...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Dec, 2021" }, { "code": null, "e": 457, "s": 28, "text": "PHP is a general-purpose scripting language that is especially used in web development. It was created in 1994 by Rasmus Lerdorf. It is used to manage dynamic content, databas...
PHP | check if a number is Even or Odd
31 Jul, 2021 A number is called even if the number is divisible by 2 and is called odd if it is not divisible by 2. Given a number, we need to check whether it is odd or even in PHP. Examples : Input : 42 Output : Even Explanation: The number 42 is divisible by 2 Input : 39 Output : Odd Explanation: The number 39 is n...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Jul, 2021" }, { "code": null, "e": 198, "s": 28, "text": "A number is called even if the number is divisible by 2 and is called odd if it is not divisible by 2. Given a number, we need to check whether it is odd or even in PHP." },...
Channel Assignment Problem
23 Jun, 2022 There are M transmitter and N receiver stations. Given a matrix that keeps track of the number of packets to be transmitted from a given transmitter to a receiver. If the (i; j)-th entry of the matrix is k, it means at that time the station i has k packets for transmission to station j. During a time slot,...
[ { "code": null, "e": 54, "s": 26, "text": "\n23 Jun, 2022" }, { "code": null, "e": 583, "s": 54, "text": "There are M transmitter and N receiver stations. Given a matrix that keeps track of the number of packets to be transmitted from a given transmitter to a receiver. If the (i;...
Python – Create a dictionary using list with none values
11 Sep, 2021 Sometimes you might need to convert a list to dict object for some better and fast operation. Let’s see how to convert a list into a dictionary of none values. Here we will find three methods of doing this. Method #1: Using zip()and dict Python3 # Python code to demonstrate# converting list into dictionar...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Sep, 2021" }, { "code": null, "e": 261, "s": 54, "text": "Sometimes you might need to convert a list to dict object for some better and fast operation. Let’s see how to convert a list into a dictionary of none values. Here we will f...
Python Program for N Queen Problem | Backtracking-3
31 May, 2022 The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, the following is a solution for 4 Queen problem. The expected output is a binary matrix that has 1s for the blocks where queens are placed. For example, the following is the outpu...
[ { "code": null, "e": 54, "s": 26, "text": "\n31 May, 2022" }, { "code": null, "e": 231, "s": 54, "text": "The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, the following is a solution for 4 Queen proble...
World Wide Web (WWW)
03 Jul, 2022 The World Wide Web is abbreviated as WWW and is commonly known as the web. The WWW was initiated by CERN (European library for Nuclear Research) in 1989. History: It is a project created, by Timothy Berner Lee in 1989, for researchers to work together effectively at CERN. is an organization, named the Wor...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Jul, 2022" }, { "code": null, "e": 209, "s": 54, "text": "The World Wide Web is abbreviated as WWW and is commonly known as the web. The WWW was initiated by CERN (European library for Nuclear Research) in 1989. " }, { "code...