title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Table Design Best Practices for ETL | by Kovid Rathee | Towards Data Science
Not so far ago, the approach taken to table design in source systems (application databases) used to be — we don’t care about ETL. Figure it out, we’ll concentrate on building the application. The last couple of years have been great for the development of ETL methodologies with a lot of open-source tools coming in fro...
[ { "code": null, "e": 764, "s": 172, "text": "Not so far ago, the approach taken to table design in source systems (application databases) used to be — we don’t care about ETL. Figure it out, we’ll concentrate on building the application. The last couple of years have been great for the development o...
Traffic Sign Detection using Convolutional Neural Network | by Sanket Doshi | Towards Data Science
Convolutional neural networks or ConvNets or CNN’s are very important to learn if you want to pursue a career in the computer vision field. CNN help in running neural networks directly on images and are more efficient and accurate than many of the deep neural networks. ConvNet models are easy and faster to train on ima...
[ { "code": null, "e": 530, "s": 171, "text": "Convolutional neural networks or ConvNets or CNN’s are very important to learn if you want to pursue a career in the computer vision field. CNN help in running neural networks directly on images and are more efficient and accurate than many of the deep ne...
Randomly SELECT distinct rows in a MySQL table?
To randomly select rows, use ORDER BY RAND() with LIMIT. Use DISTINCT for distinct rows. Let us first see an example and create a table − mysql> create table DemoTable ( Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, Name varchar(40) ); Query OK, 0 rows affected (0.54 sec) Insert some records in the table using inse...
[ { "code": null, "e": 1200, "s": 1062, "text": "To randomly select rows, use ORDER BY RAND() with LIMIT. Use DISTINCT for distinct rows. Let us first see an example and create a table −" }, { "code": null, "e": 1339, "s": 1200, "text": "mysql> create table DemoTable\n(\n Id int ...
Introduction to Hydra.cc: A Powerful Framework to Configure your Data Science Projects | by Khuyen Tran | Towards Data Science
It is fun to play with different feature engineering methods and machine learning models, but you will most likely need to adjust your feature engineering methods and tuning your machine learning models before getting a good result. For example, in the speed dating data below, you might want to drop iid, id, idg, wave,...
[ { "code": null, "e": 405, "s": 172, "text": "It is fun to play with different feature engineering methods and machine learning models, but you will most likely need to adjust your feature engineering methods and tuning your machine learning models before getting a good result." }, { "code": ...
Adversarial Machine Learning Mitigation: Adversarial Learning | by Ferhat Ozgur Catak | Towards Data Science
There are several attacks against deep learning models in the literature, including fast-gradient sign method (FGSM), basic iterative method (BIM) or momentum iterative method (MIM) attacks. These attacks are the purest form of the gradient-based evading technique that is used by attackers to evade the classification m...
[ { "code": null, "e": 498, "s": 172, "text": "There are several attacks against deep learning models in the literature, including fast-gradient sign method (FGSM), basic iterative method (BIM) or momentum iterative method (MIM) attacks. These attacks are the purest form of the gradient-based evading ...
Data Structure & Algorithms - Tree Traversal
Traversal is a process to visit all the nodes of a tree and may print their values too. Because, all nodes are connected via edges (links) we always start from the root (head) node. That is, we cannot randomly access a node in a tree. There are three ways which we use to traverse a tree − In-order Traversal Pre-order T...
[ { "code": null, "e": 2870, "s": 2580, "text": "Traversal is a process to visit all the nodes of a tree and may print their values too. Because, all nodes are connected via edges (links) we always start from the root (head) node. That is, we cannot randomly access a node in a tree. There are three wa...
Deep Dive into Querying Elasticsearch. Filter vs Query. Full-text search | by Artem | Towards Data Science
If I had to describe Elasticsearch in one phrase I would say something like: When search meets analytics at scale (in near real time) Elasticsearch is in the top 10 most popular open-source technologies at the moment. Fair enough, it unites many crucial features that are not unique itself, however, it can make the best...
[ { "code": null, "e": 249, "s": 172, "text": "If I had to describe Elasticsearch in one phrase I would say something like:" }, { "code": null, "e": 306, "s": 249, "text": "When search meets analytics at scale (in near real time)" }, { "code": null, "e": 541, "s": 3...
\circ - Tex Command
\circ - Used to draw circle symbol. { \circ } \circ command draws circle symbol. (f\circ g)(x) = f(g(x)) (f∘g)(x)=f(g(x)) 45^\circ 45∘ (f\circ g)(x) = f(g(x)) (f∘g)(x)=f(g(x)) (f\circ g)(x) = f(g(x)) 45^\circ 45∘ 45^\circ 14 Lectures 52 mins Ashraf Said 11 Lectures 1 hours ...
[ { "code": null, "e": 8022, "s": 7986, "text": "\\circ - Used to draw circle symbol." }, { "code": null, "e": 8032, "s": 8022, "text": "{ \\circ }" }, { "code": null, "e": 8067, "s": 8032, "text": "\\circ command draws circle symbol." }, { "code": null,...
MATLAB - continue Statement
The continue statement is used for passing control to next iteration of for or while loop. The continue statement in MATLAB works somewhat like the break statement. Instead of forcing termination, however, 'continue' forces the next iteration of the loop to take place, skipping any code in between. Create a script file...
[ { "code": null, "e": 2232, "s": 2141, "text": "The continue statement is used for passing control to next iteration of for or while loop." }, { "code": null, "e": 2441, "s": 2232, "text": "The continue statement in MATLAB works somewhat like the break statement. Instead of forcin...
How to Create and Assign Lists in Python?
We can Create and Assign List by Insert, Append Length, Index, Remove and Extend, etc.. Lists are mutable and the changeble object is enclosed within the square brackets i.e [ ], Lists in python is easy. list =["Tutorials ","Point", "Pvt","Ltd"] list ['Tutorials ', 'Point', 'Pvt', 'Ltd'] Assign Values in Lists To ass...
[ { "code": null, "e": 1151, "s": 1062, "text": "We can Create and Assign List by Insert, Append Length, Index, Remove and Extend, etc.. " }, { "code": null, "e": 1267, "s": 1151, "text": "Lists are mutable and the changeble object is enclosed within the square brackets i.e [ ], Li...
How to add styles to autocomplete in ReactJS ? - GeeksforGeeks
02 Jul, 2021 Autocomplete Component is used for auto-completing the text value with the option value. It basically allows the user to type and select the item from a list of suggestions. It improves the user experience by giving suggestions while the user type. In this article, you will examine how to style an Autocomp...
[ { "code": null, "e": 24850, "s": 24822, "text": "\n02 Jul, 2021" }, { "code": null, "e": 25099, "s": 24850, "text": "Autocomplete Component is used for auto-completing the text value with the option value. It basically allows the user to type and select the item from a list of su...
HTML - Footer Tag
The HTML <footer> tag specifies a footer for a document or section. <!DOCTYPE html> <html> <head> <title>HTML Footer Tag</title> </head> <body> <header> <h1>Simply Easy Learning</h1> <p>You're visiting tutorialspoint.com - tutorial hub for simply easy learning.</p> </heade...
[ { "code": null, "e": 2442, "s": 2374, "text": "The HTML <footer> tag specifies a footer for a document or section." }, { "code": null, "e": 2805, "s": 2442, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML Footer Tag</title>\n </head>\n\n <body>\n <header...
Hive - Alter Table
This chapter explains how to alter the attributes of a table such as changing its table name, changing column names, adding columns, and deleting or replacing columns. It is used to alter a table in Hive. The statement takes any of the following syntaxes based on what attributes we wish to modify in a table. ALTER TABL...
[ { "code": null, "e": 2118, "s": 1950, "text": "This chapter explains how to alter the attributes of a table such as changing its table name, changing column names, adding columns, and deleting or replacing columns." }, { "code": null, "e": 2155, "s": 2118, "text": "It is used to ...
Exterior angle of a cyclic quadrilateral when the opposite interior angle is given - GeeksforGeeks
22 Mar, 2021 Given cyclic quadrilateral inside a circle, the task is to find the exterior angle of the cyclic quadrilateral when the opposite interior angle is given.Examples: Input: 48 Output: 48 degrees Input: 83 Output: 83 degrees Approach: Let, the exterior angle, angle CDE = x and, it’s opposite interior a...
[ { "code": null, "e": 25352, "s": 25324, "text": "\n22 Mar, 2021" }, { "code": null, "e": 25517, "s": 25352, "text": "Given cyclic quadrilateral inside a circle, the task is to find the exterior angle of the cyclic quadrilateral when the opposite interior angle is given.Examples: ...
Version control Big Query with Terraform (with CI/CD too) | by Jonathan Law | Towards Data Science
Working with teams using Big Query and creating views can get messy when people start changing views without informing other members of the team. Some teams are accustomed to using comments on the top of the view, or even a spreadsheet to record changes. Obviously, this leads to a problem in the long run as people may ...
[ { "code": null, "e": 317, "s": 171, "text": "Working with teams using Big Query and creating views can get messy when people start changing views without informing other members of the team." }, { "code": null, "e": 535, "s": 317, "text": "Some teams are accustomed to using comme...
Telco Customer Churn Prediction. Customer churn, also known as customer... | by Ifeoma Ojialor | Towards Data Science
Customer churn, also known as customer attrition, occurs when customers stop doing business with a company or stop using a company’s services. By being aware of and monitoring churn rate, companies are equipped to determine their customer retention success rates and identify strategies for improvement. We will use a ma...
[ { "code": null, "e": 625, "s": 172, "text": "Customer churn, also known as customer attrition, occurs when customers stop doing business with a company or stop using a company’s services. By being aware of and monitoring churn rate, companies are equipped to determine their customer retention succes...
Koa.js - Templating
Pug is a templating engine. Templating engines are used to remove the cluttering of our server code with HTML, concatenating strings wildly to existing HTML templates. Pug is a very powerful templating engine, which has a variety of features such as filters, includes, inheritance, interpolation, etc. There is a lot of ...
[ { "code": null, "e": 2451, "s": 2106, "text": "Pug is a templating engine. Templating engines are used to remove the cluttering of our server code with HTML, concatenating strings wildly to existing HTML templates. Pug is a very powerful templating engine, which has a variety of features such as fil...
10 Examples to Master Pandas Styler | by Soner Yıldırım | Towards Data Science
Pandas is highly efficient at data analysis and manipulation tasks. It provides numerous functions and methods to operate on tabular data seamlessly. However, all we see is plain numbers in tabular form. What if we integrate a few visual components into Pandas dataframes? I think it makes them look more appealing and i...
[ { "code": null, "e": 376, "s": 172, "text": "Pandas is highly efficient at data analysis and manipulation tasks. It provides numerous functions and methods to operate on tabular data seamlessly. However, all we see is plain numbers in tabular form." }, { "code": null, "e": 518, "s": ...
Swing Examples - Using radiobuttons
Following example showcase how to use standard radio buttons in a Java Swing application. We are using the following APIs. JRadioButton − To create a standard Radio Button. JRadioButton − To create a standard Radio Button. JRadioButton.setEnabled(false); − To disable a Radio Button. JRadioButton.setEnabled(false); − To...
[ { "code": null, "e": 2129, "s": 2039, "text": "Following example showcase how to use standard radio buttons in a Java Swing application." }, { "code": null, "e": 2162, "s": 2129, "text": "We are using the following APIs." }, { "code": null, "e": 2212, "s": 2162, ...
Java program to print a Fibonacci series
Fibonacci Series generates subsequent number by adding two previous numbers. Fibonacci series starts from two numbers − F0 &amp; F1. The initial values of F0 &amp; F1 can be taken 0, 1 or 1, 1 respectively. Fn = Fn-1 + Fn-2 1. Take integer variable A, B, C 2. Set A = 1, B = 1 3. DISPLAY A, B 4. C = A + B 5. DISPLAY C 6...
[ { "code": null, "e": 1269, "s": 1062, "text": "Fibonacci Series generates subsequent number by adding two previous numbers. Fibonacci series starts from two numbers − F0 &amp; F1. The initial values of F0 &amp; F1 can be taken 0, 1 or 1, 1 respectively." }, { "code": null, "e": 1286, ...
Increment and Decrement Operators in C#
Increment operator increases integer value by one i.e. int a = 10; a++; ++a; Decrement operator decreases integer value by one i.e. int a = 20; a--; --a; The following is an example demonstrating increment operator − Live Demo using System; class Program { static void Main() { int a, b; a = 10; ...
[ { "code": null, "e": 1117, "s": 1062, "text": "Increment operator increases integer value by one i.e." }, { "code": null, "e": 1139, "s": 1117, "text": "int a = 10;\na++;\n++a;" }, { "code": null, "e": 1194, "s": 1139, "text": "Decrement operator decreases int...
Create a Radar Chart using Recharts in ReactJS - GeeksforGeeks
28 Jul, 2021 Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help of React and D3 (Data-Driven Documents). Approach: To create Radar chart using Recharts, we create a dataset with label and polar co...
[ { "code": null, "e": 25312, "s": 25284, "text": "\n28 Jul, 2021" }, { "code": null, "e": 25528, "s": 25312, "text": "Introduction: Rechart JS is a library that is used for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, wi...
Angular PrimeNG Messages Component - GeeksforGeeks
03 Oct, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Messages Component in Angular PrimeNG. We will also learn abou...
[ { "code": null, "e": 25031, "s": 25003, "text": "\n03 Oct, 2021" }, { "code": null, "e": 25422, "s": 25031, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp...
Using the Pandas “Resample” Function | by Jeremy Chow | Towards Data Science
This article is an introductory dive into the technical aspects of the pandas resample function for datetime manipulation. I hope it serves as a readable source of pseudo-documentation for those less inclined to digging through the pandas source code! If you’d like to check out the code used to generate the examples an...
[ { "code": null, "e": 424, "s": 172, "text": "This article is an introductory dive into the technical aspects of the pandas resample function for datetime manipulation. I hope it serves as a readable source of pseudo-documentation for those less inclined to digging through the pandas source code!" ...
How to Change Typeface of TextView in Android? - GeeksforGeeks
27 Sep, 2021 A typeface is a particular design for alphabets that separates it from other typefaces in terms of style, size, and weight variations. In general, there are a lot of local typefaces available on your device or software for use. However, many more typefaces are available on the Internet that can be download...
[ { "code": null, "e": 25116, "s": 25088, "text": "\n27 Sep, 2021" }, { "code": null, "e": 25457, "s": 25116, "text": "A typeface is a particular design for alphabets that separates it from other typefaces in terms of style, size, and weight variations. In general, there are a lot ...
Method Overriding with Access Modifier - GeeksforGeeks
14 Dec, 2018 Prerequisites: Method Overriding in java and Access Modifier in Java Method OverridingIn any object-oriented programming language, Overriding is a feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by its super-class or parent class. When...
[ { "code": null, "e": 23974, "s": 23946, "text": "\n14 Dec, 2018" }, { "code": null, "e": 24043, "s": 23974, "text": "Prerequisites: Method Overriding in java and Access Modifier in Java" }, { "code": null, "e": 25093, "s": 24043, "text": "Method OverridingIn a...
EJB - Stateful Bean
A stateful session bean is a type of enterprise bean, which preserve the conversational state with client. A stateful session bean as per its name keeps associated client state in its instance variables. EJB Container creates a separate stateful session bean to process client's each request. As soon as request scope is...
[ { "code": null, "e": 2411, "s": 2047, "text": "A stateful session bean is a type of enterprise bean, which preserve the conversational state with client. A stateful session bean as per its name keeps associated client state in its instance variables. EJB Container creates a separate stateful session...
How to create JFrame with no border and title bar in Java?
To create a JFrame with no border and title bar, use setUndecorated() − JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setPreferredSize(new Dimension(400, 300)); frame.setUndecorated(true); The following is an example to create JFrame with no border and title bar − import java....
[ { "code": null, "e": 1134, "s": 1062, "text": "To create a JFrame with no border and title bar, use setUndecorated() −" }, { "code": null, "e": 1294, "s": 1134, "text": "JFrame frame = new JFrame();\nframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\nframe.setPreferredSize(ne...
Introduction to Classes and Inheritance in Python
Object-oriented programming creates reusable patterns of code to prevent code redundancy in projects. One way that recyclable code is created is through inheritance, when one subclass leverages code from another base class. Inheritance is when a class uses code written within another class. Classes called child classes...
[ { "code": null, "e": 1286, "s": 1062, "text": "Object-oriented programming creates reusable patterns of code to prevent code redundancy in projects. One way that recyclable code is created is through inheritance, when one subclass leverages code from another base class." }, { "code": null, ...
How to plot a dataframe using Pandas? - GeeksforGeeks
22 Jul, 2021 Pandas is one of the most popular Python packages used in data science. Pandas offer a powerful, and flexible data structure ( Dataframe & Series ) to manipulate, and analyze the data. Visualization is the best way to interpret the data. Python has many popular plotting libraries that make visualization e...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n22 Jul, 2021" }, { "code": null, "e": 24531, "s": 24292, "text": "Pandas is one of the most popular Python packages used in data science. Pandas offer a powerful, and flexible data structure ( Dataframe & Series ) to manipulate, ...
How to create an infinite loop in C#?
An infinite loop is a loop that never terminates and repeats indefinitely. Let us see an example to create an infinite loop in C#. using System; namespace Demo { class Program { static void Main(string[] args) { for (int a = 0; a < 50; a--) { Console.WriteLine("value : {0}", a); }...
[ { "code": null, "e": 1137, "s": 1062, "text": "An infinite loop is a loop that never terminates and repeats indefinitely." }, { "code": null, "e": 1193, "s": 1137, "text": "Let us see an example to create an infinite loop in C#." }, { "code": null, "e": 1427, "s":...
Artificial Intelligence in Mechanical Engineering | by Sunny K. Tuladhar | Towards Data Science
Artificial Intelligence and Machine Learning seems to be the current buzzword as everyone seems to be getting into this subject. Artificial Intelligence seems to have a role in all fields of science. According to Britannica , “Artificial intelligence (AI), is broadly defined as the ability of a digital computer or comp...
[ { "code": null, "e": 725, "s": 171, "text": "Artificial Intelligence and Machine Learning seems to be the current buzzword as everyone seems to be getting into this subject. Artificial Intelligence seems to have a role in all fields of science. According to Britannica , “Artificial intelligence (AI)...
Angular 4 - Data Binding
Data Binding is available right from AngularJS, Angular 2 and is now available in Angular 4 as well. We use curly braces for data binding - {{}}; this process is called interpolation. We have already seen in our previous examples how we declared the value to the variable title and the same is printed in the browser. Th...
[ { "code": null, "e": 2310, "s": 1992, "text": "Data Binding is available right from AngularJS, Angular 2 and is now available in Angular 4 as well. We use curly braces for data binding - {{}}; this process is called interpolation. We have already seen in our previous examples how we declared the val...
How to remove an element from ArrayList or, LinkedList in Java?
The ArrayList and, LinkedList classes implements the List interface of the java.util package. This interface provided two variants of the remove() method to remove particular elements as shown below − E remove(int index) E remove(int index) boolean remove(Object o) − boolean remove(Object o) − Using one of these method...
[ { "code": null, "e": 1263, "s": 1062, "text": "The ArrayList and, LinkedList classes implements the List interface of the java.util package. This interface provided two variants of the remove() method to remove particular elements as shown below −" }, { "code": null, "e": 1283, "s": ...
What is a static storage class in C language?
There are four storage classes in C programming language, which are as follows − auto extern static register The keyword is static. Scope of a static variable is that it retains its value throughout the program and in between function calls. Scope of a static variable is that it retains its value throughout the program...
[ { "code": null, "e": 1143, "s": 1062, "text": "There are four storage classes in C programming language, which are as follows −" }, { "code": null, "e": 1148, "s": 1143, "text": "auto" }, { "code": null, "e": 1155, "s": 1148, "text": "extern" }, { "cod...
How to move (translate) a JavaFX node from one position to another?
If you move an object on the XY plane from one position to another it is known as translation. You can translate an object along either X-Axis to Y-Axis. In JavaFX using the object of the javafx.scene.transform.Translate class you can translate a node from one position to another. This class contains three properties (...
[ { "code": null, "e": 1216, "s": 1062, "text": "If you move an object on the XY plane from one position to another it is known as translation. You can translate an object along either X-Axis to Y-Axis." }, { "code": null, "e": 1501, "s": 1216, "text": "In JavaFX using the object o...
Height of Binary Tree | Practice | GeeksforGeeks
Given a binary tree, find its height. Example 1: Input: 1 / \ 2 3 Output: 2 Example 2: Input: 2 \ 1 / 3 Output: 3 Your Task: You don't need to read input or print anything. Your task is to complete the function height() which takes root node of the tree as input parameter and returns ...
[ { "code": null, "e": 276, "s": 238, "text": "Given a binary tree, find its height." }, { "code": null, "e": 288, "s": 276, "text": "\nExample 1:" }, { "code": null, "e": 332, "s": 288, "text": "Input:\n 1\n / \\\n 2 3\nOutput: 2\n" }, { "c...
Number to word conversion
This algorithm will convert a given number into English words. Like 564 will be Five Hundred and Sixty-Four. For this algorithm, some predefined strings are given, from that list, it will get the proper words to make into words. The lists are like Units: it will hold all words for (0 to 9) like Zero, One...Nine twoD...
[ { "code": null, "e": 1172, "s": 1062, "text": "This algorithm will convert a given number into English words. Like 564 will be Five Hundred and Sixty-Four. " }, { "code": null, "e": 1292, "s": 1172, "text": "For this algorithm, some predefined strings are given, from that list, i...
Why array index starts from zero in C/C++ ?
An array arr[i] is interpreted as *(arr+i). Here, arr denotes the address of the first array element or the 0 index element. So *(arr+i) means the element at i distance from the first element of the array. So array index starts from 0 as initially i is 0 which means the first element of the array. A program that demons...
[ { "code": null, "e": 1361, "s": 1062, "text": "An array arr[i] is interpreted as *(arr+i). Here, arr denotes the address of the first array element or the 0 index element. So *(arr+i) means the element at i distance from the first element of the array. So array index starts from 0 as initially i is ...
C# program to find common values from two or more Lists
Create more than one list − // two lists var list1 = new List<int>{3, 4}; var list2 = new List<int>{1, 2, 3}; Now, use the Intersect() method to get the common values − var res = list1.Intersect(list2); The following is the complete code − Live Demo using System.Collections.Generic; using System.Linq; using System; p...
[ { "code": null, "e": 1090, "s": 1062, "text": "Create more than one list −" }, { "code": null, "e": 1172, "s": 1090, "text": "// two lists\nvar list1 = new List<int>{3, 4};\nvar list2 = new List<int>{1, 2, 3};" }, { "code": null, "e": 1231, "s": 1172, "text": ...
How to make a basic dialog using jQuery UI ? - GeeksforGeeks
18 Jan, 2021 In this article, we will be creating a Basic dialog using jQuery UI. Approach: First, add jQuery UI scripts needed for your project. <link href = “https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css” rel = “stylesheet”><script src = “https://code.jquery.com/jquery-1.10.2.js”></script><scrip...
[ { "code": null, "e": 25173, "s": 25145, "text": "\n18 Jan, 2021" }, { "code": null, "e": 25242, "s": 25173, "text": "In this article, we will be creating a Basic dialog using jQuery UI." }, { "code": null, "e": 25306, "s": 25242, "text": "Approach: First, add ...
MySQL - Modulus Operator(%, MOD)
This operator returns the reminder of the operation (right operator divided by the left operator). Following is an example of the "%" operator − mysql> SELECT 62555 MOD 59; +--------------+ | 62555 MOD 59 | +--------------+ | 15 | +--------------+ 1 row in set (0.00 sec) Let us see another example − mysql> SE...
[ { "code": null, "e": 2432, "s": 2333, "text": "This operator returns the reminder of the operation (right operator divided by the left operator)." }, { "code": null, "e": 2478, "s": 2432, "text": "Following is an example of the \"%\" operator −" }, { "code": null, "e"...
Object Pool Design Pattern
23 Dec, 2020 Object pool pattern is a software creational design pattern which is used in situations where the cost of initializing a class instance is very high. Basically, an Object pool is a container which contains some amount of objects. So, when an object is taken from the pool, it is not available in the pool u...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Dec, 2020" }, { "code": null, "e": 203, "s": 52, "text": "Object pool pattern is a software creational design pattern which is used in situations where the cost of initializing a class instance is very high. " }, { "code": n...
Python – Mapping Matrix with Dictionary
14 Oct, 2020 Given a Matrix, map its values with dictionary values. Input : test_list = [[4, 2, 1], [1, 2, 3]], sub_dict = {1 : “gfg”, 2: “best”, 3 : “CS”, 4 : “Geeks”}Output : [[‘Geeks’, ‘best’, ‘gfg’], [‘gfg’, ‘best’, ‘CS’]]Explanation : Matrix elements are substituted using dictionary. Input : test_list = [[4, 2, 1]...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Oct, 2020" }, { "code": null, "e": 83, "s": 28, "text": "Given a Matrix, map its values with dictionary values." }, { "code": null, "e": 305, "s": 83, "text": "Input : test_list = [[4, 2, 1], [1, 2, 3]], sub_dict ...
How to toggle play/pause in ReactJS with audio ?
10 Jul, 2021 In this article, we will learn to create a play/pause button for an audio file using ReactJS Approach: We are going to use the following steps: Take the reference of the audio file in ReactJS Using Audio Class Set the default state of the song as not playing. Make a function to handle the Play/Pause of th...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 Jul, 2021" }, { "code": null, "e": 146, "s": 53, "text": "In this article, we will learn to create a play/pause button for an audio file using ReactJS" }, { "code": null, "e": 197, "s": 146, "text": "Approach: We...
Python – Remove Non-English characters Strings from List
02 Sep, 2020 Given a List of Strings, perform removal of all Strings with non-english characters. Input : test_list = [‘Good| ????’, ‘??Geeks???’]Output : []Explanation : Both contain non-English characters Input : test_list = [“Gfg”, “Best”]Output : [“Gfg”, “Best”]Explanation : Both are valid English words. Method #1 ...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Sep, 2020" }, { "code": null, "e": 113, "s": 28, "text": "Given a List of Strings, perform removal of all Strings with non-english characters." }, { "code": null, "e": 222, "s": 113, "text": "Input : test_list = [...
Python – Extract Key’s value from Mixed Dictionaries List
30 Sep, 2021 Given a list of dictionaries, with each dictionary having different keys, extract value of key K. Input : test_list = [{“Gfg” : 3, “b” : 7}, {“is” : 5, ‘a’ : 10}, {“Best” : 9, ‘c’ : 11}], K = ‘b’ Output : 7 Explanation : Value of b is 7. Input : test_list = [{“Gfg” : 3, “b” : 7}, {“is” : 5, ‘a’ : 10}, {“Be...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Sep, 2021" }, { "code": null, "e": 126, "s": 28, "text": "Given a list of dictionaries, with each dictionary having different keys, extract value of key K." }, { "code": null, "e": 266, "s": 126, "text": "Input : ...
Output of Java program | Set 26
11 Nov, 2021 Ques1: What is the output of this program? class A { public int i; private int j;} class B extends A { void display() { super.j = super.i + 1; System.out.println(super.i + " " + super.j); }} class inheritance { public static void main(String args[]) { B obj = new...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Nov, 2021" }, { "code": null, "e": 95, "s": 52, "text": "Ques1: What is the output of this program?" }, { "code": "class A { public int i; private int j;} class B extends A { void display() { super.j = su...
Context based Access Control (CBAC)
22 Sep, 2021 In recent times, Access-list (ACL) were used for packet filtering and protection. ACL works on the sequence of rules provided by the administrator. The rules consist of various permit and deny conditions. But disadvantage of ACL is that it filters the traffic upto transport layer only. Therefore, for a lo...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Sep, 2021" }, { "code": null, "e": 316, "s": 28, "text": "In recent times, Access-list (ACL) were used for packet filtering and protection. ACL works on the sequence of rules provided by the administrator. The rules consist of variou...
String Manipulation in R
22 Apr, 2020 String manipulation basically refers to the process of handling and analyzing strings. It involves various operations concerned with modification and parsing of strings to use and change its data. R offers a series of in-built functions to manipulate the contents of a string. In this article, we will study...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Apr, 2020" }, { "code": null, "e": 405, "s": 28, "text": "String manipulation basically refers to the process of handling and analyzing strings. It involves various operations concerned with modification and parsing of strings to use...
Python | Get first and last elements of a list
02 Jan, 2019 Sometimes, there might be a need to get the range between which a number lies in the list, for such applications we require to get the first and last element of the list. Let’s discuss certain ways to get the first and last element of the list. Method #1 : Using list indexUsing the list indices inside the ...
[ { "code": null, "e": 53, "s": 25, "text": "\n02 Jan, 2019" }, { "code": null, "e": 298, "s": 53, "text": "Sometimes, there might be a need to get the range between which a number lies in the list, for such applications we require to get the first and last element of the list. Let...
How to Zip a directory in PHP?
10 Aug, 2021 ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed. The PHP ZipArchive class can be used to zipping and unzipping. It might be need to install the class if it is not present. Installation for Linux use...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Aug, 2021" }, { "code": null, "e": 309, "s": 28, "text": "ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed. The PHP ZipArchiv...
How to compile & run a Java program using Command Prompt?
While many programming environments allow us to compile and run a program within the environment, we can also compile and run java programs using Command Prompt. After successful installation of JDK in our system and set the path, we can able to compile and execute Java programs using the command prompt. Step 1 - Ne...
[ { "code": null, "e": 1224, "s": 1062, "text": "While many programming environments allow us to compile and run a program within the environment, we can also compile and run java programs using Command Prompt." }, { "code": null, "e": 1368, "s": 1224, "text": "After successful ins...
Gradient Boosted Trees for Classification — One of the Best Machine Learning Algorithms | by Saul Dobilas | Towards Data Science
Gradient Boosted Trees is one of my favorite algorithms, and it’s been widely used by many Data Scientists. Whether you are building a model for your own project or trying to win a Kaggle competition, it is always worth considering Gradient Boosting. In this story, I will take you through the details of how the algorit...
[ { "code": null, "e": 422, "s": 171, "text": "Gradient Boosted Trees is one of my favorite algorithms, and it’s been widely used by many Data Scientists. Whether you are building a model for your own project or trying to win a Kaggle competition, it is always worth considering Gradient Boosting." }...
Fibonacci Cube Graph - GeeksforGeeks
24 Nov, 2021 You are given input as order of graph n (highest number of edges connected to a node), you have to find the number of vertices in a Fibonacci cube graph of order n.Examples : Input : n = 3 Output : 5 Explanation : Fib(n + 2) = Fib(5) = 5 Input : n = 2 Output : 3 A Fibonacci Cube Graph is similar to h...
[ { "code": null, "e": 25090, "s": 25062, "text": "\n24 Nov, 2021" }, { "code": null, "e": 25267, "s": 25090, "text": "You are given input as order of graph n (highest number of edges connected to a node), you have to find the number of vertices in a Fibonacci cube graph of order n...
protected access modifier in Java
Variables, methods, and constructors, which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, ...
[ { "code": null, "e": 1266, "s": 1062, "text": "Variables, methods, and constructors, which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class." }, { "code": null, "e": 1454, "s...
A Free Data Science Portfolio Template to Showcase Your Projects: Use It to Create Your Own | by Zach Alexander | Towards Data Science
Building a portfolio to showcase your data science work can seem like a daunting task. And, after spending countless hours fine-tuning your models, how best do you share your results with the world? Well, before you go running to a website builder, why not try building it yourself! It actually won’t take you too much t...
[ { "code": null, "e": 546, "s": 171, "text": "Building a portfolio to showcase your data science work can seem like a daunting task. And, after spending countless hours fine-tuning your models, how best do you share your results with the world? Well, before you go running to a website builder, why no...
Spectral graph clustering and optimal number of clusters estimation | by Madalina Ciortan | Towards Data Science
This post explains the functioning of the spectral graph clustering algorithm, then it looks at a variant named self tuned graph clustering. This adaptation has the advantage of providing an estimation for the optimal number of clusters and also for the similarity measure between data points. Next, we will provide an i...
[ { "code": null, "e": 683, "s": 171, "text": "This post explains the functioning of the spectral graph clustering algorithm, then it looks at a variant named self tuned graph clustering. This adaptation has the advantage of providing an estimation for the optimal number of clusters and also for the s...
NLP | Training a tokenizer and filtering stopwords in a sentence - GeeksforGeeks
28 Jan, 2019 Why do we need to train a sentence tokenizer?In NLTK, default sentence tokenizer works for the general purpose and it works very well. But there are chances that it won’t work best for some kind of text as that text may use nonstandard punctuation or maybe it is having a unique format. So, to handle such c...
[ { "code": null, "e": 24438, "s": 24410, "text": "\n28 Jan, 2019" }, { "code": null, "e": 24835, "s": 24438, "text": "Why do we need to train a sentence tokenizer?In NLTK, default sentence tokenizer works for the general purpose and it works very well. But there are chances that i...
How to deal with 'Boolean' values in PHP & MySQL?
We are using MySQL version 8.0.12. Let us first check the MySQL version: mysql> select version(); +-----------+ | version() | +-----------+ | 8.0.12 | +-----------+ 1 row in set (0.00 sec) To deal with Boolean in MySQL, you can use BOOL or BOOLEAN or TINYINT(1). If you use BOOL or BOOLEAN, then MySQL internally conv...
[ { "code": null, "e": 1135, "s": 1062, "text": "We are using MySQL version 8.0.12. Let us first check the MySQL version:" }, { "code": null, "e": 1254, "s": 1135, "text": "mysql> select version();\n+-----------+\n| version() |\n+-----------+\n| 8.0.12 |\n+-----------+\n1 row in...
How to Detect Objects in Real-Time Using OpenCV and Python | by Vipul Kumar | Towards Data Science
For the uninitiated, Real-Time Object Detection might sound quite a mouthful. However, with a few awesome libraries at hand, the job becomes much easier than it sounds. In this article, we will be using one such library in python, namely OpenCV, to create a generalized program that can be used to detect any object in a...
[ { "code": null, "e": 505, "s": 172, "text": "For the uninitiated, Real-Time Object Detection might sound quite a mouthful. However, with a few awesome libraries at hand, the job becomes much easier than it sounds. In this article, we will be using one such library in python, namely OpenCV, to create...
Bootstrap Collapsible panel
To create a collapsible panel in Bootstrap, use the panel-collapse class. You can try to run the following code to create a collapsible panel Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/...
[ { "code": null, "e": 1136, "s": 1062, "text": "To create a collapsible panel in Bootstrap, use the panel-collapse class." }, { "code": null, "e": 1204, "s": 1136, "text": "You can try to run the following code to create a collapsible panel" }, { "code": null, "e": 121...
Convolutional Neural Networks from the ground up | by Alejandro Escontrela | Towards Data Science
When Yann LeCun published his work on the development of a new kind of neural network architecture [1], the Convolutional Neural Network (CNN), his work went largely unnoticed. It took 14 years and a team of researchers from The University of Toronto to bring CNN’s into the public’s view during the 2012 ImageNet Comput...
[ { "code": null, "e": 851, "s": 172, "text": "When Yann LeCun published his work on the development of a new kind of neural network architecture [1], the Convolutional Neural Network (CNN), his work went largely unnoticed. It took 14 years and a team of researchers from The University of Toronto to b...
Get reverse order using Comparator in Java
The objects of a user defined class can be ordered using the Comparator interface in Java. The java.util.Collections.reverseOrder() method reverses the order of an element collection using a Comparator. A program that demonstrates this is given as follows − import java.util.Arrays; import java.util.Collections; import ...
[ { "code": null, "e": 1265, "s": 1062, "text": "The objects of a user defined class can be ordered using the Comparator interface in Java. The java.util.Collections.reverseOrder() method reverses the order of an element collection using a Comparator." }, { "code": null, "e": 1320, "s"...
Tcl - Nested Switch Statement
It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise. The syntax for a nested switch statement is as follows − switch switchingString { matchString1 { body1 switch swit...
[ { "code": null, "e": 2392, "s": 2201, "text": "It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise." }, { "code": null, "e": 2449, "s": 2392, ...
How can I set the 'backend' in matplotlib in Python?
We can use matplotlib.rcParams['backend'] to override the backend value. Using get_backend() method, return the name of the current backend, i.e., default name. Using get_backend() method, return the name of the current backend, i.e., default name. Now override the backend name. Now override the backend name. Using get...
[ { "code": null, "e": 1135, "s": 1062, "text": "We can use matplotlib.rcParams['backend'] to override the backend value." }, { "code": null, "e": 1223, "s": 1135, "text": "Using get_backend() method, return the name of the current backend, i.e., default name." }, { "code":...
Changing the primary key on a MongoDB collection?
To change the primary key, you need to first delete it. Use forEach() along with delete to remove and then get a new primary key. Let us create a collection with documents − > db.demo41.insertOne({"StudentName":"Carol"}); { "acknowledged" : true, "insertedId" : ObjectId("5e25ce4acfb11e5c34d898e3") } Display all d...
[ { "code": null, "e": 1236, "s": 1062, "text": "To change the primary key, you need to first delete it. Use forEach() along with delete to remove and then get a new primary key. Let us create a collection with documents −" }, { "code": null, "e": 1369, "s": 1236, "text": "> db.dem...
Introducing Label Studio, a swiss army knife of data labeling | by Nikolai Liubimov | Towards Data Science
I’ve experienced the lack of tools myself while working at one of the enterprises on a personal virtual assistant project, which was used by around 20 million people. Our team was continually looking for ways to improve quality, handle edge cases, and test hypotheses. That usually required working with unstructured dat...
[ { "code": null, "e": 793, "s": 172, "text": "I’ve experienced the lack of tools myself while working at one of the enterprises on a personal virtual assistant project, which was used by around 20 million people. Our team was continually looking for ways to improve quality, handle edge cases, and tes...
SQL Tryit Editor v1.6
SELECT * FROM Customers WHERE City IN ('Paris','London'); ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-vers...
[ { "code": null, "e": 24, "s": 0, "text": "SELECT * FROM Customers" }, { "code": null, "e": 58, "s": 24, "text": "WHERE City IN ('Paris','London');" }, { "code": null, "e": 60, "s": 58, "text": "​" }, { "code": null, "e": 123, "s": 60, "text...
How to get ArrayList<String> to ArrayList<Object> and vice versa in java?
Instead of the typed parameter in generics (T) you can also use “?”, representing an unknown type. These are known as wild cards you can use a wild card as − Type of parameter or, a Field or, a Local field. Using wild cards, you can convert ArrayList<String> to ArrayList<Object> as − ArrayList<String> stringList = (Arr...
[ { "code": null, "e": 1347, "s": 1062, "text": "Instead of the typed parameter in generics (T) you can also use “?”, representing an unknown type. These are known as wild cards you can use a wild card as − Type of parameter or, a Field or, a Local field. Using wild cards, you can convert ArrayList<St...
Java Examples - Summation of Numbers
How to print summation of numbers ? Following example demonstrates how to add first n natural numbers by using the concept of stack. import java.io.IOException; public class AdditionStack { static int num; static int ans; static Stack theStack; public static void main(String[] args) throws IOExcepti...
[ { "code": null, "e": 2104, "s": 2068, "text": "How to print summation of numbers ?" }, { "code": null, "e": 2201, "s": 2104, "text": "Following example demonstrates how to add first n natural numbers by using the concept of stack." }, { "code": null, "e": 3165, "s...
Firebase - Facebook Authentication
In this chapter, we will authenticate users with Firebase Facebook authentication. We need to open Firebase dashboard and click Auth in side menu. Next, we need to choose SIGN-IN-METHOD in tab bar. We will enable Facebook auth and leave this open since we need to add App ID and App Secret when we finish step 2. To enab...
[ { "code": null, "e": 2249, "s": 2166, "text": "In this chapter, we will authenticate users with Firebase Facebook authentication." }, { "code": null, "e": 2479, "s": 2249, "text": "We need to open Firebase dashboard and click Auth in side menu. Next, we need to choose SIGN-IN-MET...
Traversing Diagonally in a matrix in JavaScript
We are required to write a JavaScript function that takes in a square matrix (an array of arrays having the same number of rows and columns). The function should traverse diagonally through that array of array and prepare a new array of elements placed in that order it encountered while traversing. For example, if the ...
[ { "code": null, "e": 1362, "s": 1062, "text": "We are required to write a JavaScript function that takes in a square matrix (an array of arrays having the same number of rows and columns). The function should traverse diagonally through that array of array and prepare a new array of elements placed ...
Python - tensorflow.executing_eagerly() - GeeksforGeeks
10 Jul, 2020 TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks. executing_eagerly() is used check if eager execution is enabled or disabled in current thread. By default eager execution is enabled so in most cases it will return true. This...
[ { "code": null, "e": 24145, "s": 24117, "text": "\n10 Jul, 2020" }, { "code": null, "e": 24277, "s": 24145, "text": "TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks. " }, { "code": null, ...
C library function - rename()
The C library function int rename(const char *old_filename, const char *new_filename) causes the filename referred to by old_filename to be changed to new_filename. Following is the declaration for rename() function. int rename(const char *old_filename, const char *new_filename) old_filename − This is the C string cont...
[ { "code": null, "e": 2172, "s": 2007, "text": "The C library function int rename(const char *old_filename, const char *new_filename) causes the filename referred to by old_filename to be changed to new_filename." }, { "code": null, "e": 2224, "s": 2172, "text": "Following is the ...
C++ Algorithm Library - find() Function
The C++ function std::algorithm::find() finds the first occurrence of the element. It uses operator = for comparison. Following is the declaration for std::algorithm::find() function form std::algorithm header. template <class InputIterator, class T> InputIterator find (InputIterator first, InputIterator last, const T&...
[ { "code": null, "e": 2721, "s": 2603, "text": "The C++ function std::algorithm::find() finds the first occurrence of the element. It uses operator = for comparison." }, { "code": null, "e": 2814, "s": 2721, "text": "Following is the declaration for std::algorithm::find() function...
OpenCV - Box Filter
The Box Filter operation is similar to the averaging blur operation; it applies a bilateral image to a filter. Here, you can choose whether the box should be normalized or not. You can perform this operation on an image using the boxFilter() method of the imgproc class. Following is the syntax of this method − boxFilte...
[ { "code": null, "e": 3181, "s": 3004, "text": "The Box Filter operation is similar to the averaging blur operation; it applies a bilateral image to a filter. Here, you can choose whether the box should be normalized or not." }, { "code": null, "e": 3316, "s": 3181, "text": "You c...
Laravel - Encryption
Encryption is a process of converting a plain text to a message using some algorithms such that any third user cannot read the information. This is helpful for transmitting sensitive information because there are fewer chances for an intruder to target the information transferred. Encryption is performed using a proces...
[ { "code": null, "e": 2754, "s": 2472, "text": "Encryption is a process of converting a plain text to a message using some algorithms such that any third user cannot read the information. This is helpful for transmitting sensitive information because there are fewer chances for an intruder to target ...
MLflow Part 3: Logging Models to a Tracking Server! | by David Hundley | Towards Data Science
Hey there, friends, and welcome back to another post in our series on MLflow. If this is the first post you’ve seen and would like to catch up, be sure to check out the previous posts here: Part 1: Getting Started with MLflow! Part 2: Deploying a Tracking Server to Minikube! As always, if you would like to see the code...
[ { "code": null, "e": 362, "s": 172, "text": "Hey there, friends, and welcome back to another post in our series on MLflow. If this is the first post you’ve seen and would like to catch up, be sure to check out the previous posts here:" }, { "code": null, "e": 399, "s": 362, "text...
Flask – WTF
One of the essential aspects of a web application is to present a user interface for the user. HTML provides a <form> tag, which is used to design an interface. A Form’s elements such as text input, radio, select etc. can be used appropriately. Data entered by a user is submitted in the form of Http request message to ...
[ { "code": null, "e": 2278, "s": 2033, "text": "One of the essential aspects of a web application is to present a user interface for the user. HTML provides a <form> tag, which is used to design an interface. A Form’s elements such as text input, radio, select etc. can be used appropriately." }, ...
CSS | background-clip Property - GeeksforGeeks
17 Dec, 2021 The background-clip property in CSS is used to define how to extend background (color or image) within an element. Default Value: border-box Syntax: background-clip: border-box|padding-box|content-box|initial|inherit; Property value: border-box: The border-box property is used to set the background color ...
[ { "code": null, "e": 23684, "s": 23656, "text": "\n17 Dec, 2021" }, { "code": null, "e": 23799, "s": 23684, "text": "The background-clip property in CSS is used to define how to extend background (color or image) within an element." }, { "code": null, "e": 23814, ...
Windows Taskbar Operations in ElectronJS - GeeksforGeeks
29 Jul, 2020 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. Accordi...
[ { "code": null, "e": 25156, "s": 25128, "text": "\n29 Jul, 2020" }, { "code": null, "e": 25456, "s": 25156, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which ...
Customer Segmentation: K-Means Clustering & A/B Testing | by Andrew Nguyen | Towards Data Science
I have been working in Advertising, specifically Digital Media and Performance, for nearly 3 years and customer behaviour analysis is one of the core concentrations in my day-to-day job. With the help of different analytics platforms (e.g. Google Analytics, Adobe Analytics), my life has been made easier than before sin...
[ { "code": null, "e": 620, "s": 172, "text": "I have been working in Advertising, specifically Digital Media and Performance, for nearly 3 years and customer behaviour analysis is one of the core concentrations in my day-to-day job. With the help of different analytics platforms (e.g. Google Analytic...
Apache Pig - PigStorage()
The PigStorage() function loads and stores data as structured text files. It takes a delimiter using which each entity of a tuple is separated as a parameter. By default, it takes ‘\t’ as a parameter. Given below is the syntax of the PigStorage() function. grunt> PigStorage(field_delimiter) Let us suppose we have a fi...
[ { "code": null, "e": 2885, "s": 2684, "text": "The PigStorage() function loads and stores data as structured text files. It takes a delimiter using which each entity of a tuple is separated as a parameter. By default, it takes ‘\\t’ as a parameter." }, { "code": null, "e": 2941, "s":...
Porosity-Permeability Relationships Using Linear Regression in Python | by Andy McDonald | Towards Data Science
Core data analysis is a key component in the evaluation of a field or discovery, as it provides direct samples of the geological formations in the subsurface over the interval of interest. It is often considered the ‘ground truth’ by many and is used as a reference for calibrating well log measurements and petrophysica...
[ { "code": null, "e": 597, "s": 47, "text": "Core data analysis is a key component in the evaluation of a field or discovery, as it provides direct samples of the geological formations in the subsurface over the interval of interest. It is often considered the ‘ground truth’ by many and is used as a ...
HTML /XHTML Standard Fonts
Fonts are specific to platform. If you are using different OS then you will have different look and feel of any web page. Here we are giving a list of fonts which are available to various operating systems. HTML <FONT> tag is deprecated in version 4.0 onwards and now all fonts are set by using CSS. Here is the simple s...
[ { "code": null, "e": 2581, "s": 2374, "text": "Fonts are specific to platform. If you are using different OS then you will have different look and feel of any web page. Here we are giving a list of fonts which are available to various operating systems." }, { "code": null, "e": 2739, ...
5 Ways to Keep Your Ubuntu System Clean - GeeksforGeeks
19 Feb, 2020 Linux has it’s own data management system that cleans your computer under the belt but still, sometimes we need to know how to manually initiate disk cleaning and control processes to enhance your computer’s performance. Below are 5 ways to keep the ubuntu system clean. 1. Uninstalling and Removing Unneces...
[ { "code": null, "e": 25845, "s": 25817, "text": "\n19 Feb, 2020" }, { "code": null, "e": 26116, "s": 25845, "text": "Linux has it’s own data management system that cleans your computer under the belt but still, sometimes we need to know how to manually initiate disk cleaning and ...
Sum of prime numbers between a range - JavaScript
We are required to write a JavaScript function that takes in two numbers, say a and b and returns the sum of all the prime numbers that fall between a and b. We should include a and b if they are prime as well. Following is the code − const num1 = 45; const num2 = 345; const isPrime = n => { if (n===1){ return...
[ { "code": null, "e": 1273, "s": 1062, "text": "We are required to write a JavaScript function that takes in two numbers, say a and b and returns the sum of all the prime numbers that fall between a and b. We should include a and b if they are prime as well." }, { "code": null, "e": 1297,...
JavaScript example to filter an array depending on multiple checkbox conditions.
Following is the code to filter an array depending on multiple checkbox condition using JavaScript − Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> body { font-family: "Segoe UI...
[ { "code": null, "e": 1163, "s": 1062, "text": "Following is the code to filter an array depending on multiple checkbox condition using\nJavaScript −" }, { "code": null, "e": 1174, "s": 1163, "text": " Live Demo" }, { "code": null, "e": 2862, "s": 1174, "text":...
isalpha() and isdigit() in C/C++
The function isalpha() is used to check that a character is an alphabet or not. This function is declared in “ctype.h” header file. It returns an integer value, if the argument is an alphabet otherwise, it returns zero. Here is the syntax of isalpha() in C language, int isalpha(int value); Here, value − This is a singl...
[ { "code": null, "e": 1282, "s": 1062, "text": "The function isalpha() is used to check that a character is an alphabet or not. This function is declared in “ctype.h” header file. It returns an integer value, if the argument is an alphabet otherwise, it returns zero." }, { "code": null, "...
A Quicker Way to Download Kaggle Datasets in Google Colab | by Nabanita Roy | Towards Data Science
Kaggle is one of the best practice fields for Data Scientists and many of us like to use Google Colab to play around with datasets due availability of better data processing infrastructure. In this article, I have walked through three simple steps to download any dataset seamlessly from Kaggle with a simple configurati...
[ { "code": null, "e": 506, "s": 172, "text": "Kaggle is one of the best practice fields for Data Scientists and many of us like to use Google Colab to play around with datasets due availability of better data processing infrastructure. In this article, I have walked through three simple steps to down...
Understand Kaiming Initialization and Implementation Detail in PyTorch | by Xu LIANG | Towards Data Science
If you create weight implicitly by creating a linear layer, you should set modle='fan_in'. linear = torch.nn.Linear(node_in, node_out)init.kaiming_normal_(linear.weight, mode=’fan_in’)t = relu(linear(x_valid)) If you create weight explicitly by creating a random matrix, you should set modle='fan_out'. w1 = torch.randn(...
[ { "code": null, "e": 262, "s": 171, "text": "If you create weight implicitly by creating a linear layer, you should set modle='fan_in'." }, { "code": null, "e": 381, "s": 262, "text": "linear = torch.nn.Linear(node_in, node_out)init.kaiming_normal_(linear.weight, mode=’fan_in’)t ...
java variable declaration
A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. You must declare...
[ { "code": null, "e": 1366, "s": 1062, "text": "A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set ...
Monitoring Stock Performance made easy with R and Shiny | by Peer Christensen | Towards Data Science
Comparing the performance of many stocks in a single visualization can be time consuming. It is particularly tedious if you want to do this over and over again. With the help of R and Shiny, you can easily create and track a stock portfolio to see how individual stocks perform over time — all in one interactive visuali...
[ { "code": null, "e": 500, "s": 172, "text": "Comparing the performance of many stocks in a single visualization can be time consuming. It is particularly tedious if you want to do this over and over again. With the help of R and Shiny, you can easily create and track a stock portfolio to see how ind...
Downloading Files from Web using Perl - GeeksforGeeks
02 Feb, 2022 Perl is a multi-purpose interpreted language that is often implemented using Perl scripts that can be saved using the .pl extension and run directly using the terminal or command prompt. It is a stable, cross-platform language that was developed primarily with strong capabilities in terms of text manipulat...
[ { "code": null, "e": 25425, "s": 25397, "text": "\n02 Feb, 2022" }, { "code": null, "e": 26126, "s": 25425, "text": "Perl is a multi-purpose interpreted language that is often implemented using Perl scripts that can be saved using the .pl extension and run directly using the term...
HTML | aria-label attribute
27 Sep, 2019 The aria-label helps define a string and provides additional information about the structure of the document for users using assistive technology. In most cases, arial-label is used to replace an existing label with more precise information. However, we should be careful while using aria-label as it does n...
[ { "code": null, "e": 54, "s": 26, "text": "\n27 Sep, 2019" }, { "code": null, "e": 393, "s": 54, "text": "The aria-label helps define a string and provides additional information about the structure of the document for users using assistive technology. In most cases, arial-label ...
Compiler Design | Syntax Directed Definition
04 Jan, 2022 Prerequisite – Introduction to Syntax Analysis, Syntax Directed Translation Syntax Directed Definition (SDD) is a kind of abstract specification. It is generalization of context free grammar in which each grammar production X –> a is associated with it a set of production rules of the form s = f(b1, b2, .....
[ { "code": null, "e": 54, "s": 26, "text": "\n04 Jan, 2022" }, { "code": null, "e": 612, "s": 54, "text": "Prerequisite – Introduction to Syntax Analysis, Syntax Directed Translation Syntax Directed Definition (SDD) is a kind of abstract specification. It is generalization of cont...
PHP | Sending mails using mail() function
08 Mar, 2018 PHP is a server side scripting language that is enriched with various utilities required. Mailing is one of the server side utilities that is required in most of the web servers today. Mailing is used for advertisement, account recovery, subscription etc. In order to send mails in PHP, one can use the mail...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Mar, 2018" }, { "code": null, "e": 284, "s": 28, "text": "PHP is a server side scripting language that is enriched with various utilities required. Mailing is one of the server side utilities that is required in most of the web serve...
Image Processing in Java – Creating a Random Pixel Image
14 Nov, 2021 Prerequisites: Image Processing in Java – Read and Write Image Processing In Java – Get and Set Pixels Image Processing in Java – Colored Image to Grayscale Image Conversion Image Processing in Java – Colored Image to Negative Image Conversion Image Processing in Java – Colored to Red Green Blue Image Conv...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Nov, 2021" }, { "code": null, "e": 69, "s": 54, "text": "Prerequisites:" }, { "code": null, "e": 111, "s": 69, "text": "Image Processing in Java – Read and Write" }, { "code": null, "e": 157, "s":...
Lodash _.compact() Function
10 Nov, 2021 Lodash proves to be much useful when working with arrays, strings, objects etc. It makes math operations and function paradigm much easier, concise. The _.compact() function is used to creates an array with all falsey values removed in JavaScript. Syntax: _.compact(array) Parameters: This function accepts ...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Nov, 2021" }, { "code": null, "e": 276, "s": 28, "text": "Lodash proves to be much useful when working with arrays, strings, objects etc. It makes math operations and function paradigm much easier, concise. The _.compact() function i...