title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Multi Layered Neural Networks in R Programming - GeeksforGeeks
17 Sep, 2021 A series or set of algorithms that try to recognize the underlying relationship in a data set through a definite process that mimics the operation of the human brain is known as Neural Network. Hence, the neural networks could refer to the neurons of the human, either artificial or organic in nature. A neu...
[ { "code": null, "e": 24838, "s": 24810, "text": "\n17 Sep, 2021" }, { "code": null, "e": 25311, "s": 24838, "text": "A series or set of algorithms that try to recognize the underlying relationship in a data set through a definite process that mimics the operation of the human bra...
Mahotas - Getting Mean Value of Image - GeeksforGeeks
16 Apr, 2021 In this article we will see how we can get the mean value of image in mahotas. Mean value is the sum of pixel values divided by the total number of pixel values. Pixel Values Each of the pixels that represents an image stored inside a computer has a pixel value which describes how bright that pixel is, and...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n16 Apr, 2021" }, { "code": null, "e": 25062, "s": 24292, "text": "In this article we will see how we can get the mean value of image in mahotas. Mean value is the sum of pixel values divided by the total number of pixel values. P...
How to remove white spaces using Java Regular Expression (RegEx)
The regular expression “\\s” matches the spaces in a string. The replaceAll() method accepts a string and a regular expression replaces the matched characters with the given string. To remove all the white spaces from an input string, invoke the replaceAll() method on it bypassing the above mentioned regular expression...
[ { "code": null, "e": 1414, "s": 1062, "text": "The regular expression “\\\\s” matches the spaces in a string. The replaceAll() method accepts a string and a regular expression replaces the matched characters with the given string. To remove all the white spaces from an input string, invoke the repla...
eval() function in JavaScript
The eval() function accepts a string value which holds JavaScript code. This function executes the given code and returns the result of the code. Its Syntax is as follows eval(32*45); Live Demo <html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> document.write(eva...
[ { "code": null, "e": 1208, "s": 1062, "text": "The eval() function accepts a string value which holds JavaScript code. This function executes the given code and returns the result of the code." }, { "code": null, "e": 1233, "s": 1208, "text": "Its Syntax is as follows" }, { ...
Common Character Count in Strings in JavaScript
We are required to write a JavaScript function that takes in two strings, let us say str1 and str2. The function should count the number of common characters that exist in the strings. For example − const str1 = 'aabbcc'; const str2 = 'adcaa'; Then the output should be 3 Following is the code − const str1 = 'aabbcc'; c...
[ { "code": null, "e": 1162, "s": 1062, "text": "We are required to write a JavaScript function that takes in two strings, let us say str1 and str2." }, { "code": null, "e": 1247, "s": 1162, "text": "The function should count the number of common characters that exist in the string...
A/B Test Statistics Made Easy. Part 1: Continuous Metrics | by Rezwan Hoppe-Islam | Towards Data Science
Your A/B test has just finished and it looks like the Test has performed better than the Control. But is this result just due to random noise? Or is the result large enough to be statistically significant? This guide will show you how to answer these questions using inferential statistics. Statistics can often be an in...
[ { "code": null, "e": 463, "s": 172, "text": "Your A/B test has just finished and it looks like the Test has performed better than the Control. But is this result just due to random noise? Or is the result large enough to be statistically significant? This guide will show you how to answer these ques...
Bulma - Color and Typography Helpers
You can use the color helpers for changing color of the text or background. Typography helpers are used for changing size and color of the text. Bulma contains 7 types of sizes as shown in the below table − Let's create a simple example by using the above sizes − <!DOCTYPE html> <html> <head> <meta charset = "...
[ { "code": null, "e": 1774, "s": 1698, "text": "You can use the color helpers for changing color of the text or background." }, { "code": null, "e": 1905, "s": 1774, "text": "Typography helpers are used for changing size and color of the text. Bulma contains 7 types of sizes as sh...
How to Cut Your AWS ECS Costs with Fargate Spot and Prefect | by Anna Geller | Towards Data Science
Prefect is a flexible tool to orchestrate the modern data stack. In contrast to many other solutions on the market, it doesn't tie you to any specific execution framework or cloud provider — whether you want to use Kubernetes on GCP, AWS ECS, a bare-metal server, or an on-demand distributed Dask cluster such as Coiled,...
[ { "code": null, "e": 772, "s": 172, "text": "Prefect is a flexible tool to orchestrate the modern data stack. In contrast to many other solutions on the market, it doesn't tie you to any specific execution framework or cloud provider — whether you want to use Kubernetes on GCP, AWS ECS, a bare-metal...
How to use SELECT Query in Android sqlite?
Before getting into example, we should know what sqlite data base in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you do...
[ { "code": null, "e": 1456, "s": 1062, "text": "Before getting into example, we should know what sqlite data base in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the rel...
SQLite - PHP
In this chapter, you will learn how to use SQLite in PHP programs. SQLite3 extension is enabled by default as of PHP 5.3.0. It's possible to disable it by using --without-sqlite3 at compile time. Windows users must enable php_sqlite3.dll in order to use this extension. This DLL is included with Windows distributions of...
[ { "code": null, "e": 2705, "s": 2638, "text": "In this chapter, you will learn how to use SQLite in PHP programs." }, { "code": null, "e": 2834, "s": 2705, "text": "SQLite3 extension is enabled by default as of PHP 5.3.0. It's possible to disable it by using --without-sqlite3 at ...
Laravel - Delete Records
We can delete the record using the DB facade with the delete method. The syntax of delete method is shown in the following table. $query(string) − query to execute in database $bindings(array) − values to bind with queries Step 1 − Execute the below command to create a controller called StudDeleteController. php artisa...
[ { "code": null, "e": 2602, "s": 2472, "text": "We can delete the record using the DB facade with the delete method. The syntax of delete method is shown in the following table." }, { "code": null, "e": 2648, "s": 2602, "text": "$query(string) − query to execute in database" }, ...
C# program to print all the numbers divisible by 3 and 5 for a given number
To print the numbers divisible by 3 and 5, use the && operator and check two conditions − f (num % 3 == 0 && num % 5 == 0) {} If the above condition is true, that would mean the number is divisible by 3 as well as 5. The following is the complete code − Live Demo using System; using System.Collections.Generic; using S...
[ { "code": null, "e": 1152, "s": 1062, "text": "To print the numbers divisible by 3 and 5, use the && operator and check two conditions −" }, { "code": null, "e": 1188, "s": 1152, "text": "f (num % 3 == 0 && num % 5 == 0) {}" }, { "code": null, "e": 1279, "s": 1188...
Get natural logarithm value using Math.log in Java
To obtain the natural log of a number, we use the java.lang.Math.log() method. The Math.log() method returns the natural logarithm i.e. log to the base e of a double value. If the value passed is NaN or negative, the result is NaN. If the value passed is positive infinity, then the value returned is positive infinity. ...
[ { "code": null, "e": 1472, "s": 1062, "text": "To obtain the natural log of a number, we use the java.lang.Math.log() method. The Math.log() method returns the natural logarithm i.e. log to the base e of a double value. If the value passed is NaN or negative, the result is NaN. If the value passed i...
Draw house using Turtle programming in Python - GeeksforGeeks
01 Oct, 2020 Prerequisite: Turtle Programming in Python “Turtle” is a Python feature like a drawing board, which lets us command a turtle to draw all over it! ”turtle” comes packed with the standard Python package and need not be installed externally. Step 1: Import turtle and math module in Python. import turtle impor...
[ { "code": null, "e": 24316, "s": 24288, "text": "\n01 Oct, 2020" }, { "code": null, "e": 24359, "s": 24316, "text": "Prerequisite: Turtle Programming in Python" }, { "code": null, "e": 24555, "s": 24359, "text": "“Turtle” is a Python feature like a drawing boa...
How to create powerpoint files using Python
We’ve all had to make PowerPoint presentations at some point in our lives. Most often we’ve used Microsoft’s PowerPoint or Google Slides. But what if you don’t have membership or access to the internet? Or what if you just wanted to do it the “programmers” way? Well, worry not for Python’s got your back! In this articl...
[ { "code": null, "e": 1200, "s": 1062, "text": "We’ve all had to make PowerPoint presentations at some point in our lives. Most often we’ve used Microsoft’s PowerPoint or Google Slides." }, { "code": null, "e": 1324, "s": 1200, "text": "But what if you don’t have membership or acc...
GATE | GATE-CS-2014-(Set-2) | Question 65 - GeeksforGeeks
28 Jun, 2021 Consider the store and forward packet switched network given below. Assume that the bandwidth of each link is 106 bytes / sec. A user on host A sends a file of size 103 bytes to host B through routers R1 and R2 in three different ways. In the first case a single packet containing the complete file is trans...
[ { "code": null, "e": 24075, "s": 24047, "text": "\n28 Jun, 2021" }, { "code": null, "e": 24976, "s": 24075, "text": "Consider the store and forward packet switched network given below. Assume that the bandwidth of each link is 106 bytes / sec. A user on host A sends a file of siz...
Ethical Hacking - Quick Guide
Hacking has been a part of computing for almost five decades and it is a very broad discipline, which covers a wide range of topics. The first known event of hacking had taken place in 1960 at MIT and at the same time, the term "Hacker" was originated. Hacking is the act of finding the possible entry points that exist ...
[ { "code": null, "e": 2732, "s": 2479, "text": "Hacking has been a part of computing for almost five decades and it is a very broad discipline, which covers a wide range of topics. The first known event of hacking had taken place in 1960 at MIT and at the same time, the term \"Hacker\" was originated...
Modality tests and kernel density estimations | by Madalina Ciortan | Towards Data Science
When processing a large number of datasets which can potentially have different data distributions, we are confronted with the following considerations: Is the data distribution unimodal and if it is the case, which model best approximates it( uniform distribution, T-distribution, chi-square distribution, cauchy distri...
[ { "code": null, "e": 200, "s": 47, "text": "When processing a large number of datasets which can potentially have different data distributions, we are confronted with the following considerations:" }, { "code": null, "e": 381, "s": 200, "text": "Is the data distribution unimodal ...
Apache Pig - Storing Data
In the previous chapter, we learnt how to load data into Apache Pig. You can store the loaded data in the file system using the store operator. This chapter explains how to store data in Apache Pig using the Store operator. Given below is the syntax of the Store statement. STORE Relation_name INTO ' required_directory_...
[ { "code": null, "e": 2908, "s": 2684, "text": "In the previous chapter, we learnt how to load data into Apache Pig. You can store the loaded data in the file system using the store operator. This chapter explains how to store data in Apache Pig using the Store operator." }, { "code": null, ...
Pandas DataFrame astype() Method
❮ DataFrame Reference Return a new DataFrame where the data type of all columns has been set to 'int64': The astype() method returns a new DataFrame where the data types has been changed to the specified type. You can cast the entire DataFrame to one specific data type, or you can use a Python Dictionary to specif...
[ { "code": null, "e": 24, "s": 0, "text": "\n❮ DataFrame Reference\n" }, { "code": null, "e": 110, "s": 24, "text": "Return a new DataFrame where the data type of all columns has been set to \n 'int64':" }, { "code": null, "e": 216, "s": 110, "text": "The asty...
What is the super class of every class in Java?
The class named Object is the super class of every class in Java. Let’s test it with an example. The java.lang.Class.getSuperclass() returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class. So, Create a sample concrete class and lets try to get th...
[ { "code": null, "e": 1128, "s": 1062, "text": "The class named Object is the super class of every class in Java." }, { "code": null, "e": 1325, "s": 1128, "text": "Let’s test it with an example. The java.lang.Class.getSuperclass() returns the Class representing the superclass of ...
How to project specific elements in an array field with MongoDB?
To project-specific elements in an array field, use $project. Let us create a collection with documents − >db.demo355.insertOne({"id":101,"details":[{"Name":"Chris",isMarried:1},{"Name":"David",isMarried:0},{"Name":"Mike",isMarried:1}]}); { "acknowledged" : true, "insertedId" : ObjectId("5e568928f8647eb59e5620c5"...
[ { "code": null, "e": 1168, "s": 1062, "text": "To project-specific elements in an array field, use $project. Let us create a collection with documents −" }, { "code": null, "e": 1386, "s": 1168, "text": ">db.demo355.insertOne({\"id\":101,\"details\":[{\"Name\":\"Chris\",isMarried...
How to create histogram of all columns in an R data frame?
To create histogram of all columns in an R data frame, we can use hist.data.frame function of Hmisc package. For example, if we have a data frame df that contains five columns then the histogram for all the columns can be created by using a single line code as hist.data.frame(df). Consider the below data frame − Live ...
[ { "code": null, "e": 1344, "s": 1062, "text": "To create histogram of all columns in an R data frame, we can use hist.data.frame function of Hmisc package. For example, if we have a data frame df that contains five columns then the histogram for all the columns can be created by using a single line ...
How to create a plot of Poisson distribution in R?
The Poisson distribution is a discrete distribution that has only one parameter named as lambda and it is the rate parameter. The rate parameter is defined as the number of events that occur in a fixed time interval. To create a plot of Poisson distribution in R, we can use the plot function with the density of the Poi...
[ { "code": null, "e": 1422, "s": 1062, "text": "The Poisson distribution is a discrete distribution that has only one parameter named as lambda and it is the rate parameter. The rate parameter is defined as the number of events that occur in a fixed time interval. To create a plot of Poisson distribu...
Visualizing Fortune 500 Companies in a Bar Chart Race | by Kenneth Leung | Towards Data Science
Companies rise and fall amidst the intense and ruthless global competition, thus it would be fascinating to visualize the progress of the top global firms over the past few decades. The Fortune Global 500 is an annual ranking of the top 500 corporations worldwide as measured by revenue, and it serves as a good source o...
[ { "code": null, "e": 354, "s": 172, "text": "Companies rise and fall amidst the intense and ruthless global competition, thus it would be fascinating to visualize the progress of the top global firms over the past few decades." }, { "code": null, "e": 690, "s": 354, "text": "The ...
C library function - fabs()
The C library function double fabs(double x) returns the absolute value of x. Following is the declaration for fabs() function. double fabs(double x) x − This is the floating point value. x − This is the floating point value. This function returns the absolute value of x. The following example shows the usage of fabs()...
[ { "code": null, "e": 2085, "s": 2007, "text": "The C library function double fabs(double x) returns the absolute value of x." }, { "code": null, "e": 2135, "s": 2085, "text": "Following is the declaration for fabs() function." }, { "code": null, "e": 2157, "s": 21...
Matplotlib.colors.TwoSlopeNorm class in Python - GeeksforGeeks
13 Jul, 2021 Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. The matplotlib.colors.TwoSlopeNorm class is used to normalize data with the set center. It com...
[ { "code": null, "e": 23735, "s": 23707, "text": "\n13 Jul, 2021" }, { "code": null, "e": 23948, "s": 23735, "text": "Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays an...
PHP: How do I display the contents of a textfile on my page?
The file_get_contents function takes the name of the php file and reads the contents of the text file and displays it on the console. get the contents, and echo it out. <?php echo file_get_contents( "filename.php" ); ?> The contents of filename.php would be the output. In the above code, the function ‘file_get_conte...
[ { "code": null, "e": 1231, "s": 1062, "text": "The file_get_contents function takes the name of the php file and reads the contents of the text file and displays it on the console. get the contents, and echo it out." }, { "code": null, "e": 1285, "s": 1231, "text": "<?php\n ech...
Supply Chain Process Design using the Queueing Theory | by Samir Saci | Towards Data Science
Supply Chain can be defined as a network of processes and stock locations built to deliver services and goods to customers. This network usually supports the business strategy of your company; its objectives can be diverse such as delivering the best quality products, the lowest cost or the most customized service or p...
[ { "code": null, "e": 171, "s": 47, "text": "Supply Chain can be defined as a network of processes and stock locations built to deliver services and goods to customers." }, { "code": null, "e": 389, "s": 171, "text": "This network usually supports the business strategy of your com...
PHP mysqli_stmt_bind_param() Function
The mysqli_stmt_bind_param() function is used to bind variables to the parameter markers of a prepared statement. mysqli_stmt_bind_param($stmt, $types, $var1, $var2...); stmt(Mandatory) This is an object representing a prepared statement. types(Mandatory) A string (of individual characters) specifying the types of the...
[ { "code": null, "e": 2871, "s": 2757, "text": "The mysqli_stmt_bind_param() function is used to bind variables to the parameter markers of a prepared statement." }, { "code": null, "e": 2928, "s": 2871, "text": "mysqli_stmt_bind_param($stmt, $types, $var1, $var2...);\n" }, { ...
How to make your page scroll to the top when route changes? - GeeksforGeeks
08 Mar, 2021 Suppose we click on the About Us button, we are directed to a different page, but it doesn’t load from the top. We have to scroll up ourselves to see the content from the beginning. Our new page loads from the height at which our About Us button (of the previous page) was. This happens because react-router...
[ { "code": null, "e": 24852, "s": 24824, "text": "\n08 Mar, 2021" }, { "code": null, "e": 25126, "s": 24852, "text": "Suppose we click on the About Us button, we are directed to a different page, but it doesn’t load from the top. We have to scroll up ourselves to see the content f...
What is CDATA in HTML?
The CDATA Section interface is used within XML for including extended portions of text. This text is unescaped text, like < and & symbols. These symbols do not want to escape. It is used like this: <![CDATA[ ... ]]> Here’s an example: <p>The following is CDATA <![CDATA[ < > & ]]> with symbols that do not need escaping....
[ { "code": null, "e": 1238, "s": 1062, "text": "The CDATA Section interface is used within XML for including extended portions of text. This text is unescaped text, like < and & symbols. These symbols do not want to escape." }, { "code": null, "e": 1260, "s": 1238, "text": "It is ...
Java - Modifier Types
Modifiers are keywords that you add to those definitions to change their meanings. Java language has a wide variety of modifiers, including the following − Java Access Modifiers Java Access Modifiers Non Access Modifiers Non Access Modifiers To use a modifier, you include its keyword in the definition of a class, met...
[ { "code": null, "e": 2533, "s": 2377, "text": "Modifiers are keywords that you add to those definitions to change their meanings. Java language has a wide variety of modifiers, including the following −" }, { "code": null, "e": 2556, "s": 2533, "text": " Java Access Modifiers" ...
MID() function in MySQL - GeeksforGeeks
09 Dec, 2020 MID() : This function in MySQL is used to extract a substring from a given input string. If the starting position is a positive number, then the substring of the given length will be extracted from the starting index. If negative, then the substring of the given length will be extracted from the ending ind...
[ { "code": null, "e": 23877, "s": 23849, "text": "\n09 Dec, 2020" }, { "code": null, "e": 23885, "s": 23877, "text": "MID() :" }, { "code": null, "e": 24188, "s": 23885, "text": "This function in MySQL is used to extract a substring from a given input string. I...
How to implement coin change problem using bottom-up approach using C#?
CoinChangeBottomUpApproach takes 3 parameters as input n is the amount, coins array contains the total number of coins, t contains total number of coins. Declare a dynamic array which stores the previously calculated values. loop through the array and calculate the minimum coins required to calculate the amount. If the...
[ { "code": null, "e": 1454, "s": 1062, "text": "CoinChangeBottomUpApproach takes 3 parameters as input n is the amount, coins array contains the total number of coins, t contains total number of coins. Declare a dynamic array which stores the previously calculated values. loop through the array and c...
CSS Absolute and Relative Units
Both CSS Absolute Units and Relative Units fall under the category Distance units. CSS Relative Units define a length of an element in reference to another element. For example, vh relative unit is relative to viewport height. Following are the CSS relative units − Let us see an example for CSS relative units − Live D...
[ { "code": null, "e": 1145, "s": 1062, "text": "Both CSS Absolute Units and Relative Units fall under the category Distance units." }, { "code": null, "e": 1227, "s": 1145, "text": "CSS Relative Units define a length of an element in reference to another element." }, { "co...
CN Data Link Layer - GeeksforGeeks
13 Sep, 2021 Data should be transmitted at the rate of 500 Mbps. Transmission Time >= 2*Propagation Time => 10000/(500*1000000) <= 2*length/200000 => length = 2km (max) so, answer will be: (B) 2km Data should be transmitted at the rate of 500 Mbps. Transmission Time >= 2*Propagation Time => 10000/(500*1000000) <= 2*le...
[ { "code": null, "e": 36568, "s": 36540, "text": "\n13 Sep, 2021" }, { "code": null, "e": 36753, "s": 36568, "text": "Data should be transmitted at the rate of 500 Mbps.\nTransmission Time >= 2*Propagation Time\n=> 10000/(500*1000000) <= 2*length/200000\n=> length = 2km (max)\nso,...
Count Occurrences of Anagrams - GeeksforGeeks
16 Mar, 2022 Given a word and a text, return the count of the occurrences of anagrams of the word in the text(For eg: anagrams of word for are for, ofr, rof etc.)) Examples: Input : forxxorfxdofr for Output : 3 Explanation : Anagrams of the word for - for, orf, ofr appear in the text and hence the count is 3....
[ { "code": null, "e": 25128, "s": 25100, "text": "\n16 Mar, 2022" }, { "code": null, "e": 25279, "s": 25128, "text": "Given a word and a text, return the count of the occurrences of anagrams of the word in the text(For eg: anagrams of word for are for, ofr, rof etc.))" }, { ...
How to Create Dynamic 3D Scatter Plots with Plotly | by Soner Yıldırım | Towards Data Science
Visualizations stick in minds much more than plain text or numbers. Informative power of visualizations is hard to achieve with plain text. Thus, visualizations are widely used in the field of data science. The informative power of visualization depends on its structure. For instance, a 3D dynamic plot can tell much mo...
[ { "code": null, "e": 835, "s": 171, "text": "Visualizations stick in minds much more than plain text or numbers. Informative power of visualizations is hard to achieve with plain text. Thus, visualizations are widely used in the field of data science. The informative power of visualization depends o...
Streamlit 1.0 Just Landed — A 5-minute Tutorial | by Yong Cui | Towards Data Science
Web apps are still one of the essential outlets for any company or any project. The reason is simple — web apps are cross-platform and require almost zero learning curve nowadays. For data scientists, we’re not trained as a web developer, and making web apps is never the most straightforward thing for us. Fortunately, ...
[ { "code": null, "e": 582, "s": 171, "text": "Web apps are still one of the essential outlets for any company or any project. The reason is simple — web apps are cross-platform and require almost zero learning curve nowadays. For data scientists, we’re not trained as a web developer, and making web a...
What is Zombie Process in Linux?
A zombie process is a process whose execution is completed but it still has an entry in the process table. Zombie processes usually occur for child processes, as the parent process still needs to read its child’s exit status. Once this is done using the wait system call, the zombie process is eliminated from the proces...
[ { "code": null, "e": 1436, "s": 1062, "text": "A zombie process is a process whose execution is completed but it still has an entry in the process table. Zombie processes usually occur for child processes, as the parent process still needs to read its child’s exit status. Once this is done using the...
Display the maximum of three integer values in Java
The following is an example displaying the maximum of three integer values. Live Demo public class Demo { public static void main(String[] args) { int val1 = 10; int val2 = 20; int val3 = 30; System.out.println("Number 1 = "+val1); System.out.println("Number 2 = "+val2); System.o...
[ { "code": null, "e": 1138, "s": 1062, "text": "The following is an example displaying the maximum of three integer values." }, { "code": null, "e": 1149, "s": 1138, "text": " Live Demo" }, { "code": null, "e": 1597, "s": 1149, "text": "public class Demo {\n ...
Create a Surfing Web App Using Python | Towards Data Science
Businesses pay astronomical amounts on data to ensure that they are one step ahead of their competitors. With freely available datasets, specifically about the most ideal surfboard, surfing can mean business, right? A Python web application is a web page, where the instructions/actions are created using python programm...
[ { "code": null, "e": 388, "s": 172, "text": "Businesses pay astronomical amounts on data to ensure that they are one step ahead of their competitors. With freely available datasets, specifically about the most ideal surfboard, surfing can mean business, right?" }, { "code": null, "e": 62...
Topic Modeling and Sentiment Analysis on Amazon Alexa Reviews | by Muriel Kosaka | Towards Data Science
In recent times there has been a rise of smart home devices — these devices anticipate user input, responds, and can automate control of home amenities. Companies such as Amazon and Google have come out with such devices, there are numerous models of Amazon’s Echo devices and Google’s Nest Hub devices so determining wh...
[ { "code": null, "e": 538, "s": 172, "text": "In recent times there has been a rise of smart home devices — these devices anticipate user input, responds, and can automate control of home amenities. Companies such as Amazon and Google have come out with such devices, there are numerous models of Amaz...
Spring @Component Annotation with Example - GeeksforGeeks
01 Dec, 2021 Spring is one of the most popular Java EE frameworks. It is an open-source lightweight framework that allows Java EE 7 developers to build simple, reliable, and scalable enterprise applications. This framework mainly focuses on providing various ways to help you manage your business objects. It made the de...
[ { "code": null, "e": 24077, "s": 24049, "text": "\n01 Dec, 2021" }, { "code": null, "e": 24817, "s": 24077, "text": "Spring is one of the most popular Java EE frameworks. It is an open-source lightweight framework that allows Java EE 7 developers to build simple, reliable, and sc...
Drawer Widget in Flutter - GeeksforGeeks
13 Mar, 2021 The Drawer widget is used as an additional sub-router that consists of various links to other routes (ie, pages) in the same application. It has a horizontal movement from the edge of the Scaffold that navigates the link to different routes in the flutter app. All children of a Drawer widget are usually in...
[ { "code": null, "e": 25938, "s": 25910, "text": "\n13 Mar, 2021" }, { "code": null, "e": 26353, "s": 25938, "text": "The Drawer widget is used as an additional sub-router that consists of various links to other routes (ie, pages) in the same application. It has a horizontal movem...
How to convert an array to CSV file in PHP ? - GeeksforGeeks
01 Aug, 2021 To convert an array into a CSV file we can use fputcsv() function. The fputcsv() function is used to format a line as CSV (comma separated values) file and writes it to an open file. The file which has to be read and the fields are sent as parameters to the fputcsv() function and it returns the length of t...
[ { "code": null, "e": 24668, "s": 24640, "text": "\n01 Aug, 2021" }, { "code": null, "e": 25025, "s": 24668, "text": "To convert an array into a CSV file we can use fputcsv() function. The fputcsv() function is used to format a line as CSV (comma separated values) file and writes ...
Solidity - Withdrawal Pattern
Withdrawal pattern ensures that direct transfer call is not made which poses a security threat. Following contract is showing the insecure use of transfer call to send ether. pragma solidity ^0.5.0; contract Test { address payable public richest; uint public mostSent; constructor() public payable { ric...
[ { "code": null, "e": 2730, "s": 2555, "text": "Withdrawal pattern ensures that direct transfer call is not made which poses a security threat. Following contract is showing the insecure use of transfer call to send ether." }, { "code": null, "e": 3226, "s": 2730, "text": "pragma ...
How to send keyboard shortcut ALT SHIFT z (hotkey) with Selenium2?
We can send keyboard shortcut ALT SHIFT z(hotkey) with Selenium webdriver. This can be done with the help of the Keys class. We shall use the Keys.chord method and pass Keys.ALT, Keys.SHIFT and z as parameters to that method. The entire value obtained from the Keys.chord method is obtained as a String. That is then sen...
[ { "code": null, "e": 1288, "s": 1062, "text": "We can send keyboard shortcut ALT SHIFT z(hotkey) with Selenium webdriver. This can be done with the help of the Keys class. We shall use the Keys.chord method and pass Keys.ALT, Keys.SHIFT and z as parameters to that method." }, { "code": null,...
Lookup and Reference - VLOOKUP Function
Use VLOOKUP when you need to find things in a table or a range by row. Organize your data so that the value you look up is to the left of the return value you want to find. VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup]) The value you want to look up. The value you want to look up must be in the fi...
[ { "code": null, "e": 2027, "s": 1854, "text": "Use VLOOKUP when you need to find things in a table or a range by row. Organize your data so that the value you look up is to the left of the return value you want to find." }, { "code": null, "e": 2096, "s": 2027, "text": "VLOOKUP (...
Structures in C
Structure is a user defined datatype. It is used to combine the different types of data into single type. It can have multiple members and structure variables. The keyword “struct” is used to define structures in C language. Structure members can be accessed by using dot(.) operator. Here is the syntax of structures in...
[ { "code": null, "e": 1347, "s": 1062, "text": "Structure is a user defined datatype. It is used to combine the different types of data into single type. It can have multiple members and structure variables. The keyword “struct” is used to define structures in C language. Structure members can be acc...
VB.Net - Assignment Operators
There are following assignment operators supported by VB.Net − Str1 &= Str2 is same as Str1 = Str1 & Str2 Try the following example to understand all the assignment operators available in VB.Net − Module assignment Sub Main() Dim a As Integer = 21 Dim pow As Integer = 2 Dim str1 As String = "Hello!...
[ { "code": null, "e": 2363, "s": 2300, "text": "There are following assignment operators supported by VB.Net −" }, { "code": null, "e": 2387, "s": 2363, "text": "Str1 &= Str2 is same as" }, { "code": null, "e": 2406, "s": 2387, "text": "Str1 = Str1 & Str2" },...
HCL Interview Experience (On-Campus) - GeeksforGeeks
26 Jul, 2021 First we have aptitude test as normal by other companies like Accenture, Wipro, TCS but difficulty level was low. Technical Interview: Starts with introductionParadigms of OOPSPolymorphism in detailthis pointerOther some basic OOPS conceptsDiamond pattern to print –********** **** **** *** *** ** ...
[ { "code": null, "e": 25028, "s": 25000, "text": "\n26 Jul, 2021" }, { "code": null, "e": 25142, "s": 25028, "text": "First we have aptitude test as normal by other companies like Accenture, Wipro, TCS but difficulty level was low." }, { "code": null, "e": 25163, "...
Serving PyTorch models with TorchServe | by Álvaro Bartolomé | Towards Data Science
TorchServe is the ML model serving framework developed by PyTorch. Currently there are a lot of different solutions to serve ML models in production with the growth that MLOps is having nowadays as the standard procedure to work with ML models during all their lifecycle. Maybe the most popular one is TensorFlow Serving...
[ { "code": null, "e": 239, "s": 172, "text": "TorchServe is the ML model serving framework developed by PyTorch." }, { "code": null, "e": 681, "s": 239, "text": "Currently there are a lot of different solutions to serve ML models in production with the growth that MLOps is having ...
How to create maps in Plotly with non-US locations | by Kerry Halupka | Towards Data Science
Plotly makes it really easy to display geospatial data in an interactive choropleth map, particularly if your data pertains to the US. Unfortunately, if the location of your data is outside of the US, and more granular than country-level, things get a bit murky. You might feel like the poor cousin when sifting through ...
[ { "code": null, "e": 677, "s": 172, "text": "Plotly makes it really easy to display geospatial data in an interactive choropleth map, particularly if your data pertains to the US. Unfortunately, if the location of your data is outside of the US, and more granular than country-level, things get a bit...
Get the average of marks in MongoDB with aggregate?
Use $avg operator along with aggregate framework. Let us first create a collection with documents. Here, one of the fields is StudentScore − > db.averageReturiningNullDemo.insertOne( {"StudentDetails" : { "StudentScore" : 89 } }); { "acknowledged" : true, "insertedId" : ObjectId("5ce9822e78f00858fb12e927") } >...
[ { "code": null, "e": 1203, "s": 1062, "text": "Use $avg operator along with aggregate framework. Let us first create a collection with documents. Here, one of the fields is StudentScore −" }, { "code": null, "e": 1737, "s": 1203, "text": "> db.averageReturiningNullDemo.insertOne(...
How to find the maximum element of an Array using STL in C++?
Here we will see how to find the maximum element. So if the array is like [12, 45, 74, 32, 66, 96, 21, 32, 27], then max element is 96. We can use the max_element() function present in algorithm.h header file to get the maximum element. Live Demo #include<iostream> #include<algorithm> using namespace std; int main() {...
[ { "code": null, "e": 1299, "s": 1062, "text": "Here we will see how to find the maximum element. So if the array is like [12, 45, 74, 32, 66, 96, 21, 32, 27], then max element is 96. We can use the max_element() function present in algorithm.h header file to get the maximum element." }, { "c...
Upsampling an image using OpenCV
In this program, we will up sample an image. Up sampling is increasing the spatial resolution while keeping the 2D representation of an image. It is typically used for zooming in on a small region of an image. We will use the pyrup() function in the openCV library to complete this task. Step 1: Read the image. Step 2: ...
[ { "code": null, "e": 1350, "s": 1062, "text": "In this program, we will up sample an image. Up sampling is increasing the spatial resolution while keeping the 2D representation of an image. It is typically used for zooming in on a small region of an image. We will use the pyrup() function in the ope...
Deep Learning with Julia, Flux.jl story | by Artur Jurgas | Towards Data Science
A new challenger in the Data Science scene appears: Julia. It’s fast, it’s easy to type, it has a great documentation and community. But it lacks examples and tutorials to learn from so in this article we will build a classic: MNIST classifier using Convolutional Neural Network. I will focus on more beginner friendly s...
[ { "code": null, "e": 305, "s": 172, "text": "A new challenger in the Data Science scene appears: Julia. It’s fast, it’s easy to type, it has a great documentation and community." }, { "code": null, "e": 452, "s": 305, "text": "But it lacks examples and tutorials to learn from so ...
Apache HttpClient - Cookies Management
Cookies are text files stored on the client computer and they are kept for various information tracking purpose. HttpClient provides support for cookies you can create and manage cookies. Follow the steps given below to create a cookie using HttpClient library. The CookieStore interface represents the abstract store fo...
[ { "code": null, "e": 1940, "s": 1827, "text": "Cookies are text files stored on the client computer and they are kept for various information tracking purpose." }, { "code": null, "e": 2015, "s": 1940, "text": "HttpClient provides support for cookies you can create and manage coo...
Check for Balanced Tree | Practice | GeeksforGeeks
Given a binary tree, find if it is height balanced or not. A tree is height balanced if difference between heights of left and right subtrees is not more than one for all nodes of tree. A height balanced tree 1 / \ 10 39 / 5 An unbalanced tree 1 / 10 / 5 Example 1: ...
[ { "code": null, "e": 478, "s": 290, "text": "Given a binary tree, find if it is height balanced or not. \nA tree is height balanced if difference between heights of left and right subtrees is not more than one for all nodes of tree. " }, { "code": null, "e": 544, "s": 478, "text"...
C# Program to remove the end part of a string
Use the Regex.Replace method to remove the end part of a string in C#. The following is the string − string s1 = "Demo Text!"; Now, let us say you need to remove the exclamation mark (!) from the string. For that just set it to empty using replace − System.Text.RegularExpressions.Regex.Replace(s1, "!", ""); Here is the...
[ { "code": null, "e": 1133, "s": 1062, "text": "Use the Regex.Replace method to remove the end part of a string in C#." }, { "code": null, "e": 1163, "s": 1133, "text": "The following is the string −" }, { "code": null, "e": 1189, "s": 1163, "text": "string s1 ...
Decoding Python’s *args and **kwargs function parameters | by Vishal Sharma | Towards Data Science
While using Python functions, you must have bumped into *args (args) or **kwargs (kwargs) parameters. In beginner definition, these functions let you write a function with a variable number or ’n’ number of arguments in Python. Though it is the most layman definition to offer, these functions separately have specific p...
[ { "code": null, "e": 274, "s": 46, "text": "While using Python functions, you must have bumped into *args (args) or **kwargs (kwargs) parameters. In beginner definition, these functions let you write a function with a variable number or ’n’ number of arguments in Python." }, { "code": null, ...
What does the operation c=a+++b mean in C/C++?
Let us consider in C or C++, there is a statement like: c = a+++b; Then what is the meaning of this line? Well, Let the a and b are holding 2 and 5 respectively. this expression can be taken as two different types. c = (a++) + b c = a + (++b) There are post increment operator, as well as pre increment operator. It depe...
[ { "code": null, "e": 1118, "s": 1062, "text": "Let us consider in C or C++, there is a statement like:" }, { "code": null, "e": 1129, "s": 1118, "text": "c = a+++b;" }, { "code": null, "e": 1168, "s": 1129, "text": "Then what is the meaning of this line?" },...
Add a pressed effect on button click with CSS
You can try to run the following code to add a pressed effect on the click of a button Live Demo <!DOCTYPE html> <html> <head> <style> .button { background-color: orange; color: white; border: none; border-radius: 7px; box-shadow: 0 5px #999;...
[ { "code": null, "e": 1149, "s": 1062, "text": "You can try to run the following code to add a pressed effect on the click of a button" }, { "code": null, "e": 1159, "s": 1149, "text": "Live Demo" }, { "code": null, "e": 1898, "s": 1159, "text": "<!DOCTYPE html...
Python + Azure Cosmos DB. Create Datasets and Containers. Query... | by Richard Peterson | Towards Data Science
BONUS: Azure CLI commands. Azure Cosmos DB is a globally distributed, multi-model database service that is elastically scalable and extremely fast. The fact that it is globally distributed means that it is an excellent solution for applications where the data needs to be close to the user, and able to scale quickly for...
[ { "code": null, "e": 199, "s": 172, "text": "BONUS: Azure CLI commands." }, { "code": null, "e": 744, "s": 199, "text": "Azure Cosmos DB is a globally distributed, multi-model database service that is elastically scalable and extremely fast. The fact that it is globally distribut...
How to print the contents of array horizontally using C#?
Set an array. int[] array = new int[] { 50, 100, 150, 200, 250, 300, 350, 400 }; Now, if you will print this array using a loop and new line, then the arrays will be visible vertically. To work it horizontally, use the Join() method and set spaces to separate array elements. string.Join(" ", array) Let us see the compl...
[ { "code": null, "e": 1076, "s": 1062, "text": "Set an array." }, { "code": null, "e": 1143, "s": 1076, "text": "int[] array = new int[] { 50, 100, 150, 200, 250, 300, 350, 400 };" }, { "code": null, "e": 1248, "s": 1143, "text": "Now, if you will print this ar...
JavaMail API - Fetching Emails
In the previous chapter we learnt how to check emails. Now let us see how to fetch each email and read its content. Let us write a Java class FetchingEmail which will read following types of emails: Simple email Simple email Email with attachment Email with attachment Email with inline image Email with inline image Bas...
[ { "code": null, "e": 2270, "s": 2071, "text": "In the previous chapter we learnt how to check emails. Now let us see how to fetch each email and read its content. Let us write a Java class FetchingEmail which will read following types of emails:" }, { "code": null, "e": 2283, "s": 22...
Real-time Age, Gender and Emotion Prediction from Webcam with Keras and OpenCV | by Sun Weiran | Towards Data Science
In the era of Covid-19, we become more reliant on virtual interactions such as Zoom meetings / Teams chat. These livestream webcam videos have become a rich data source to explore. This article will explore the use case of age, gender and emotion prediction which could facilitate sales person to understand their custom...
[ { "code": null, "e": 392, "s": 47, "text": "In the era of Covid-19, we become more reliant on virtual interactions such as Zoom meetings / Teams chat. These livestream webcam videos have become a rich data source to explore. This article will explore the use case of age, gender and emotion predictio...
Watir - Quick Guide
Watir (Web Application Testing in Ruby), pronounced as "Water" is an open source tool developed using Ruby which helps in automating web application that suits applications developed in any programming language. The browsers supported for Watir installation Internet Explorer, Firefox, Chrome, Safari, and Edge. Watir is...
[ { "code": null, "e": 2381, "s": 2020, "text": "Watir (Web Application Testing in Ruby), pronounced as \"Water\" is an open source tool developed using Ruby which helps in automating web application that suits applications developed in any programming language. The browsers supported for Watir instal...
ReactJS UNSAFE_componentWillReceiveProps() Method - GeeksforGeeks
31 Mar, 2021 The componentWillReceiveProps() is invoked before our mounted React component receives new props. It is called during the updating phase of the React Life-cycle. It is used to update the state in response to some changes in our props. We can’t call this with initial props during mounting because React call...
[ { "code": null, "e": 24397, "s": 24369, "text": "\n31 Mar, 2021" }, { "code": null, "e": 24764, "s": 24397, "text": "The componentWillReceiveProps() is invoked before our mounted React component receives new props. It is called during the updating phase of the React Life-cycle. I...
How to create RadioMenuItem in JavaFX?
A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items and a menu bar holds multiple menus. JavaFx supports three kinds of menu items namely − check menu item, custom menu item, and, radio menu item. A RadioMe...
[ { "code": null, "e": 1265, "s": 1062, "text": "A menu is a list of options or commands presented to the user, typically menus contain items that perform some action. The contents of a menu are known as menu items and a menu bar holds multiple menus." }, { "code": null, "e": 1373, "s"...
How to read all HTTP headers in Python CGI script?
It is possible to get a custom request header's value in an apache CGI script with python. The solution is similar to this. Apache's mod_cgi will set environment variables for each HTTP request header received, the variables set in this manner will all have an HTTP_ prefix, so for example x-client-version: 1.2.3 will b...
[ { "code": null, "e": 1186, "s": 1062, "text": "It is possible to get a custom request header's value in an apache CGI script with python. The solution is similar to this." }, { "code": null, "e": 1429, "s": 1186, "text": "Apache's mod_cgi will set environment variables for each H...
Python | Face recognition using GUI - GeeksforGeeks
01 Sep, 2021 In this article, a fairly simple way is mentioned to implement facial recognition system using Python and OpenCV module along with the explanation of the code step by step in the comments.Before starting we need to install some libraries in order to implement the code. Below you will see the usage of the l...
[ { "code": null, "e": 24153, "s": 24125, "text": "\n01 Sep, 2021" }, { "code": null, "e": 24503, "s": 24153, "text": "In this article, a fairly simple way is mentioned to implement facial recognition system using Python and OpenCV module along with the explanation of the code step...
Understanding TF-IDF (Term Frequency-Inverse Document Frequency) - GeeksforGeeks
22 Jan, 2021 TF-IDF stands for Term Frequency Inverse Document Frequency of records. It can be defined as the calculation of how relevant a word in a series or corpus is to a text. The meaning increases proportionally to the number of times in the text a word appears but is compensated by the word frequency in the corp...
[ { "code": null, "e": 23979, "s": 23951, "text": "\n22 Jan, 2021" }, { "code": null, "e": 24301, "s": 23979, "text": "TF-IDF stands for Term Frequency Inverse Document Frequency of records. It can be defined as the calculation of how relevant a word in a series or corpus is to a t...
Python - Extract domain name from Email address - GeeksforGeeks
02 Sep, 2020 Given a String Email address, extract the domain name. Input : test_str = ‘manjeet@geeks.com’Output : geeks.comExplanation : Domain name, geeks.com extracted. Input : test_str = ‘manjeet@gfg.com’Output : gfg.comExplanation : Domain name, gfg.com extracted. Method #1 : Using index() + slicing In this, we ha...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n02 Sep, 2020" }, { "code": null, "e": 23956, "s": 23901, "text": "Given a String Email address, extract the domain name." }, { "code": null, "e": 24060, "s": 23956, "text": "Input : test_str = ‘manjeet@geeks.c...
Encode N-ary Tree to Binary Tree in C++
Suppose we have a N-ary tree. We have to encode that tree into one binary. We also have to make deserializer to deserialize the binary tree to N-ary tree. So, if the input is like then the output will be To solve this, we will follow these steps − Define a function encode(), this will take root, Define a function encod...
[ { "code": null, "e": 1217, "s": 1062, "text": "Suppose we have a N-ary tree. We have to encode that tree into one binary. We also have to make deserializer to deserialize the binary tree to N-ary tree." }, { "code": null, "e": 1242, "s": 1217, "text": "So, if the input is like" ...
Find maximum in a stack in O(1) time and O(1) extra space - GeeksforGeeks
24 Feb, 2022 Given a stack of integers. The task is to design a special stack such that maximum element can be found in O(1) time and O(1) extra space.Examples: Given Stack : 2 5 1 64 --> Maximum So Output must be 64 when getMax() is called. Below are the different functions designed to push and pop elements from ...
[ { "code": null, "e": 24055, "s": 24027, "text": "\n24 Feb, 2022" }, { "code": null, "e": 24205, "s": 24055, "text": "Given a stack of integers. The task is to design a special stack such that maximum element can be found in O(1) time and O(1) extra space.Examples: " }, { ...
numpy.char.strip()
This function returns a copy of array with elements stripped of the specified characters leading and/or trailing in it. import numpy as np print np.char.strip('ashok arora','a') print np.char.strip(['arora','admin','java'],'a') Here is its output − shok aror ['ror' 'dmin' 'jav'] 63 Lectures 6 hours Abh...
[ { "code": null, "e": 2363, "s": 2243, "text": "This function returns a copy of array with elements stripped of the specified characters leading and/or trailing in it." }, { "code": null, "e": 2473, "s": 2363, "text": "import numpy as np \nprint np.char.strip('ashok arora','a') \n...
Keep your code secure by using environment variables and env files | by Mike Huls | Towards Data Science
Your code needs to connect to a database. For this it needs a password to that database. How can you use this password in your app in such a way that you can both connect to the database and keep the password private? This article shows you how to use an env file in your code. This file stores all of our confidential i...
[ { "code": null, "e": 389, "s": 171, "text": "Your code needs to connect to a database. For this it needs a password to that database. How can you use this password in your app in such a way that you can both connect to the database and keep the password private?" }, { "code": null, "e": ...
NLP in Finance: Question Answering | Towards Data Science
Part 1 — Learn how to use the neural search framework, Jina, to build a Financial Question Answering (QA) search application with the FiQA dataset, PyTorch, and Hugging Face transformers. Part 2 — Learn how evaluate and improve your Financial QA search results with Jina For my master’s thesis, I built a Financial QA sy...
[ { "code": null, "e": 359, "s": 171, "text": "Part 1 — Learn how to use the neural search framework, Jina, to build a Financial Question Answering (QA) search application with the FiQA dataset, PyTorch, and Hugging Face transformers." }, { "code": null, "e": 442, "s": 359, "text":...
Connect SD Card with Arduino and get Card Info
In this tutorial, we will connect our Arduino Uno to an SD Card and extract the card info. The circuit diagram is shown below − As you can see, you need to make the following connections − Only for the Vcc, make sure that your SD Card Holder takes 5V as input. If it takes in 3.3V, connect it to the 3.3V pin on Arduino ...
[ { "code": null, "e": 1153, "s": 1062, "text": "In this tutorial, we will connect our Arduino Uno to an SD Card and extract the card info." }, { "code": null, "e": 1190, "s": 1153, "text": "The circuit diagram is shown below −" }, { "code": null, "e": 1251, "s": 11...
How to add new array elements at the beginning of an array in JavaScript?
JavaScript array unshift() method adds one or more elements to the beginning of an array and returns the new length of the array. You can try to run the following code to learn how to add new array elements at the beginning of an array: Live Demo <html> <head> <title>JavaScript Array unshift Method</...
[ { "code": null, "e": 1192, "s": 1062, "text": "JavaScript array unshift() method adds one or more elements to the beginning of an array and returns the new length of the array." }, { "code": null, "e": 1299, "s": 1192, "text": "You can try to run the following code to learn how t...
How to deploy your website to a custom domain using Heroku | by Sanket Gupta | Towards Data Science
This blog documents the steps needed to deploy a website written in Python with Flask framework to a custom domain using Heroku and NameCheap. Flask is a micro-framework that allows us to use Python in the back-end to interact with our front-end code in HTML/CSS or Javascript to build web sites. People also use other f...
[ { "code": null, "e": 592, "s": 172, "text": "This blog documents the steps needed to deploy a website written in Python with Flask framework to a custom domain using Heroku and NameCheap. Flask is a micro-framework that allows us to use Python in the back-end to interact with our front-end code in H...
Semantic Segmentation with GANs for Self-Driving Cars | by Victor Sim | Towards Data Science
Semantic Segmentation is one of the key concepts within computer vision. Semantic segmentation allows computers by color-coding objects in an image by type. How are GANs suited to perform semantic segmentation? GANs are built upon the concept of replicating and generating original content, based on real-world content. ...
[ { "code": null, "e": 328, "s": 171, "text": "Semantic Segmentation is one of the key concepts within computer vision. Semantic segmentation allows computers by color-coding objects in an image by type." }, { "code": null, "e": 382, "s": 328, "text": "How are GANs suited to perfor...
What are global variables in C++?
Global variables are defined outside of all the functions, usually on top of the program. The global variables will hold their value throughout the lifetime of your program. A global variable can be accessed by any function. That is, a global variable is available for use throughout your entire program after its declar...
[ { "code": null, "e": 1236, "s": 1062, "text": "Global variables are defined outside of all the functions, usually on top of the program. The global variables will hold their value throughout the lifetime of your program." }, { "code": null, "e": 1390, "s": 1236, "text": "A global...
Sort a stream of integers - GeeksforGeeks
08 Mar, 2021 Given an array, arr[] of size N whose elements from left to right, must be read as an incoming stream of integers, the task is to sort the stream of integers and print accordingly. Examples: Input: arr[] = {2, 4, 1, 7, 3}Output: 1 2 3 4 7Explanation: First element in the stream: 2 → Sorted list: {2}Second ...
[ { "code": null, "e": 24405, "s": 24377, "text": "\n08 Mar, 2021" }, { "code": null, "e": 24586, "s": 24405, "text": "Given an array, arr[] of size N whose elements from left to right, must be read as an incoming stream of integers, the task is to sort the stream of integers and p...
DOM (Document Object Model) - GeeksforGeeks
13 Dec, 2021 In this article, we will discuss Document Object Model(DOM) along with its properties and methods used to manipulate Document, & understand their implementation through the examples. The Document Object Model (DOM) is a programming interface for HTML and XML(Extensible markup language) documents. It define...
[ { "code": null, "e": 30009, "s": 29981, "text": "\n13 Dec, 2021" }, { "code": null, "e": 30192, "s": 30009, "text": "In this article, we will discuss Document Object Model(DOM) along with its properties and methods used to manipulate Document, & understand their implementation th...
How Parallel and Sequence execution works in PowerShell Workflow?
PowerShell workflows are the best way to design the script to execute on more than one node parallel which saves extensive time for the output to produce but we always don’t want to run all the commands parallel but also need some of them to run sequentially and we can design both Parallel and Sequence commands using P...
[ { "code": null, "e": 1402, "s": 1062, "text": "PowerShell workflows are the best way to design the script to execute on more than one node parallel which saves extensive time for the output to produce but we always don’t want to run all the commands parallel but also need some of them to run sequent...
How to get a list of all sub-directories in the current directory using Python?
To get a list of all subdirectories in a directory, recursively, you can use the os.walk function. It returns a three tuple with first entry being all the subdirectories. You can use it as follows: import os subdirs = [x[0] for x in os.walk('.')] print(subdirs) You can also list the directories(immediate only) using th...
[ { "code": null, "e": 1233, "s": 1062, "text": "To get a list of all subdirectories in a directory, recursively, you can use the os.walk function. It returns a three tuple with first entry being all the subdirectories." }, { "code": null, "e": 1260, "s": 1233, "text": "You can use...
C++ Program to Inplace rotate square matrix by 90 degrees | Set 1 - GeeksforGeeks
30 Dec, 2021 Given a square matrix, turn it by 90 degrees in anti-clockwise direction without using any extra space.Examples : Input: Matrix: 1 2 3 4 5 6 7 8 9 Output: 3 6 9 2 5 8 1 4 7 The given matrix is rotated by 90 degree in anti-clockwise direction. Input: 1 2 3 4 5 6 7 8 9 10 ...
[ { "code": null, "e": 24796, "s": 24768, "text": "\n30 Dec, 2021" }, { "code": null, "e": 24912, "s": 24796, "text": "Given a square matrix, turn it by 90 degrees in anti-clockwise direction without using any extra space.Examples : " }, { "code": null, "e": 25253, ...
A Complete Guide to Learn Kotlin For Android App Development - GeeksforGeeks
07 Jul, 2021 Kotlin is a statically typed, cross-platform, general-purpose programming language for JVM developed by JetBrains. This is a language with type inference and fully interoperable with Java. Kotlin is concise and expressive programming as it reduces the boilerplate code. Since Google I/O 2019, Android develo...
[ { "code": null, "e": 24750, "s": 24722, "text": "\n07 Jul, 2021" }, { "code": null, "e": 25384, "s": 24750, "text": "Kotlin is a statically typed, cross-platform, general-purpose programming language for JVM developed by JetBrains. This is a language with type inference and fully...
Nth Fibonacci Number | Practice | GeeksforGeeks
Given a positive integer n, find the nth fibonacci number. Since the answer can be very large, return the answer modulo 1000000007. Example 1: Input: n = 2 Output: 1 Explanation: 1 is the 2nd number of fibonacci series. Example 2: Input: n = 5 Output: 5 Explanation: 5 is the 5th number of fibonacci series. Your Ta...
[ { "code": null, "e": 382, "s": 238, "text": "Given a positive integer n, find the nth fibonacci number. Since the answer can be very large, return the answer modulo 1000000007.\n\nExample 1:" }, { "code": null, "e": 461, "s": 382, "text": "Input: n = 2\nOutput: 1 \nExplanation: 1...
Math.Sqrt() Method in C#
The Math.Sqrt() method in C# is used to compute the square root of the specified number. Following is the syntax − public static double Sqrt (double val); Above, Val is the number for which we want the square root. Let us now see an example to implement Math.Sqrt() method − using System; public class Demo { public s...
[ { "code": null, "e": 1151, "s": 1062, "text": "The Math.Sqrt() method in C# is used to compute the square root of the specified number." }, { "code": null, "e": 1177, "s": 1151, "text": "Following is the syntax −" }, { "code": null, "e": 1217, "s": 1177, "text...
Build an app to generate photorealistic faces using TensorFlow and Streamlit | by Adrien Treuille | Towards Data Science
Machine learning models are black boxes. Yes, you can run them on test sets and plot fancy performance curves, but it’s still often hard to answer basic questions about how they perform. A surprisingly powerful source of insight is simply to play with your models! Tweak inputs. Watch outputs. Let your coworkers and man...
[ { "code": null, "e": 650, "s": 172, "text": "Machine learning models are black boxes. Yes, you can run them on test sets and plot fancy performance curves, but it’s still often hard to answer basic questions about how they perform. A surprisingly powerful source of insight is simply to play with you...
Spring Boot - Logging
Spring Boot uses Apache Commons logging for all internal logging. Spring Boot’s default configurations provides a support for the use of Java Util Logging, Log4j2, and Logback. Using these, we can configure the console logging as well as file logging. If you are using Spring Boot Starters, Logback will provide a good s...
[ { "code": null, "e": 3277, "s": 3025, "text": "Spring Boot uses Apache Commons logging for all internal logging. Spring Boot’s default configurations provides a support for the use of Java Util Logging, Log4j2, and Logback. Using these, we can configure the console logging as well as file logging." ...
Find Selling Price from given Profit Percentage and Cost - GeeksforGeeks
15 Apr, 2021 Given the Cost price *** QuickLaTeX cannot compile formula: *** Error message: Error: Nothing to show, formula is empty and Profit Percentage *** QuickLaTeX cannot compile formula: *** Error message: Error: Nothing to show, formula is empty of an item, the task is to calculate the Selling Price.E...
[ { "code": null, "e": 25132, "s": 25104, "text": "\n15 Apr, 2021" }, { "code": null, "e": 25154, "s": 25132, "text": "Given the Cost price " }, { "code": null, "e": 25257, "s": 25154, "text": "*** QuickLaTeX cannot compile formula:\n \n\n*** Error message:\nErr...
Add all greater values to every node in a given BST - GeeksforGeeks
21 Jul, 2021 Given a Binary Search Tree (BST), modify it so that all greater values in the given BST are added to every node. For example, consider the following BST. 50 / \ 30 70 / \ / \ 20 40 60 80 The above tree should be modified to follo...
[ { "code": null, "e": 25124, "s": 25096, "text": "\n21 Jul, 2021" }, { "code": null, "e": 25278, "s": 25124, "text": "Given a Binary Search Tree (BST), modify it so that all greater values in the given BST are added to every node. For example, consider the following BST." }, {...
SAS - Repeated Measure Analysis
Repeated measure analysis is used when all members of a random sample are measured under a number of different conditions. As the sample is exposed to each condition in turn, the measurement of the dependent variable is repeated. Using a standard ANOVA in this case is not appropriate because it fails to model the corre...
[ { "code": null, "e": 2941, "s": 2583, "text": "Repeated measure analysis is used when all members of a random sample are measured under a number of different conditions. As the sample is exposed to each condition in turn, the measurement of the dependent variable is repeated. Using a standard ANOVA ...
Duplicate subtree in Binary Tree | SET 2 - GeeksforGeeks
23 Jun, 2021 Given a binary tree, the task is to check whether the binary tree contains a duplicate sub-tree of size two or more. Input: A / \ B C / \ \ D E B / \ D E Output: Yes...
[ { "code": null, "e": 24730, "s": 24702, "text": "\n23 Jun, 2021" }, { "code": null, "e": 24848, "s": 24730, "text": "Given a binary tree, the task is to check whether the binary tree contains a duplicate sub-tree of size two or more. " }, { "code": null, "e": 25205, ...