title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Python | Assign ids to each unique value in a list - GeeksforGeeks
01 May, 2019 Sometimes, while working in web development domain or in competitive programming, we require to assign a unique id to each of the different value to track for it’s occurrence for count or any other required use case. Let’s discuss certain ways in which this task can be performed. Method #1 : Using defaultd...
[ { "code": null, "e": 25489, "s": 25461, "text": "\n01 May, 2019" }, { "code": null, "e": 25770, "s": 25489, "text": "Sometimes, while working in web development domain or in competitive programming, we require to assign a unique id to each of the different value to track for it’s...
Display ISO 8601 standard date in Java
Use the ‘F’ date conversion character to display ISO 8601 standard date. System.out.printf("ISO 8601 standard date = %tF\n", d); Above, d is a date object. Date d = new Date(); Live Demo import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; public class Demo { public static void mai...
[ { "code": null, "e": 1135, "s": 1062, "text": "Use the ‘F’ date conversion character to display ISO 8601 standard date." }, { "code": null, "e": 1191, "s": 1135, "text": "System.out.printf(\"ISO 8601 standard date = %tF\\n\", d);" }, { "code": null, "e": 1218, "s"...
A Complete Guide to an Interactive Geographical Map using Python | by Shivangi Patel | Towards Data Science
Ever wondered how these beautiful geographical maps are created? Our World in Data has an extensive collection of interactive data visualizations on aspects dedicated to the global changes in health, population growth, education, culture, violence, political power, technology and several things that we care about. Thes...
[ { "code": null, "e": 666, "s": 171, "text": "Ever wondered how these beautiful geographical maps are created? Our World in Data has an extensive collection of interactive data visualizations on aspects dedicated to the global changes in health, population growth, education, culture, violence, politi...
Java Examples - Matrix multiplication
How to multiply two matrices of different dimensions ? Following example shows multiplication of two rectangular matrices with the help of two user defined methods multiply( int [] [] ,int [] []) and mprint(int [] []). public class Matrix{ public static int[][] multiply(int[][] m1, int[][] m2){ int m1rows = m1...
[ { "code": null, "e": 2123, "s": 2068, "text": "How to multiply two matrices of different dimensions ?" }, { "code": null, "e": 2287, "s": 2123, "text": "Following example shows multiplication of two rectangular matrices with the help of two user defined methods multiply( int [] [...
What are the different types of pointers in C language?
The pointer is a variable that stores the address of another variable. The syntax for the pointer is as follows − pointer = &variable; There are eight different types of pointers which are as follows − Null pointer Null pointer Void pointer Void pointer Wild pointer Wild pointer Dangling pointer Dangling pointer Comple...
[ { "code": null, "e": 1133, "s": 1062, "text": "The pointer is a variable that stores the address of another variable." }, { "code": null, "e": 1176, "s": 1133, "text": "The syntax for the pointer is as follows −" }, { "code": null, "e": 1197, "s": 1176, "text"...
Data Visualization with Matplotlib in Python | by Anh T. Dang | Towards Data Science
Before you analyze data, one of the first things you have to perform is data visualization. In Python, there are a number of high-quality visualization libraries. The most popular general-purpose visualization library is Matplotlib1, which mainly focuses on generating static publication-quality 2D and 3D graphs. We can...
[ { "code": null, "e": 611, "s": 172, "text": "Before you analyze data, one of the first things you have to perform is data visualization. In Python, there are a number of high-quality visualization libraries. The most popular general-purpose visualization library is Matplotlib1, which mainly focuses ...
How to Double A/B Testing Speed with CUPED | by Michael Berk | Towards Data Science
Controlled-experiment Using Pre-Existing Data (CUPED) is a variance reduction technique created by Microsoft in 2013. Since then, it has been implemented at Netflix, Booking.com, BBC, and many others. In short, CUPED uses pre-experiment data to control for natural variation in an experiment’s north star metric. By remo...
[ { "code": null, "e": 373, "s": 172, "text": "Controlled-experiment Using Pre-Existing Data (CUPED) is a variance reduction technique created by Microsoft in 2013. Since then, it has been implemented at Netflix, Booking.com, BBC, and many others." }, { "code": null, "e": 707, "s": 373...
Pandas to PySpark in 6 Examples. What happens when you go to large-scale | by Soner Yıldırım | Towards Data Science
Pandas is one of the predominant tools for manipulating and analyzing structured data. It provides numerous functions and methods to play around with tabular data. However, Pandas may not be your best friend as the data size gets larger. When working with large-scale data, it becomes necessary to distribute both data a...
[ { "code": null, "e": 335, "s": 171, "text": "Pandas is one of the predominant tools for manipulating and analyzing structured data. It provides numerous functions and methods to play around with tabular data." }, { "code": null, "e": 545, "s": 335, "text": "However, Pandas may no...
C++ Library - <set>
A set is an Associative container which contains a sorted set of unique objects of type Key. Each element may occur only once, so duplicates are not allowed. There are four kind of Associative containers: set, multiset, map and multimap. The value of the elements in a set cannot be modified once in the container, i.e.,...
[ { "code": null, "e": 2761, "s": 2603, "text": "A set is an Associative container which contains a sorted set of unique objects of type Key. Each element may occur only once, so duplicates are not allowed." }, { "code": null, "e": 2841, "s": 2761, "text": "There are four kind of A...
What is the difference between list and dictionary in C#?
Dictionary is a collection of keys and values in C#. Dictionary<TKey, TValue> is included in the System.Collection.Generics namespace. Dictionary is a generic type and returns an error if you try to find a key which is not there. List collection is a generic class and can store any data types to create a list. A list i...
[ { "code": null, "e": 1292, "s": 1062, "text": "Dictionary is a collection of keys and values in C#. Dictionary<TKey, TValue> is included in the System.Collection.Generics namespace. Dictionary is a generic type and returns an error if you try to find a key which is not there." }, { "code": n...
How to Write Author Response/Rebuttal Letter | by Xu LIANG | Towards Data Science
In this post, I will give a brief summary of what I have learned to write a good author response/rebuttal letter. If you want more detailed, I highly recommend reading the articles listed in the reference section. No matter the comment is long or short, first we have to do is to find the main issue where the reviewer t...
[ { "code": null, "e": 386, "s": 172, "text": "In this post, I will give a brief summary of what I have learned to write a good author response/rebuttal letter. If you want more detailed, I highly recommend reading the articles listed in the reference section." }, { "code": null, "e": 631,...
Add buttons in Bootstrap Navbar
Add buttons using class .navbar-btn to <button> elements. You can try to run the following code to add a button to the navbar Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.m...
[ { "code": null, "e": 1188, "s": 1062, "text": "Add buttons using class .navbar-btn to <button> elements. You can try to run the following code to add a button to the navbar" }, { "code": null, "e": 1198, "s": 1188, "text": "Live Demo" }, { "code": null, "e": 2194, ...
Movie recommendation based on emotion in Python - GeeksforGeeks
06 Feb, 2018 Introduction One of the underlying targets of movies is to evoke emotions in their viewers. IMDb offers all the movies for all genre. Therefore the movie titles can be scraped from the IMDb list to recommend to the user.IMDb does not have an API, for accessing information on movies and TV Series. Therefore...
[ { "code": null, "e": 24155, "s": 24127, "text": "\n06 Feb, 2018" }, { "code": null, "e": 24595, "s": 24155, "text": "Introduction One of the underlying targets of movies is to evoke emotions in their viewers. IMDb offers all the movies for all genre. Therefore the movie titles ca...
How to format a date to String in Java?
The java.text package provides a class named SimpleDateFormat which is used to format and parse dates in required manner (local). Using the methods of this class you can parse String to Date or, format Date to String. You can format a given String to Date object using the parse() method of the SimpleDateFormat class. T...
[ { "code": null, "e": 1192, "s": 1062, "text": "The java.text package provides a class named SimpleDateFormat which is used to format and parse dates in required manner (local)." }, { "code": null, "e": 1280, "s": 1192, "text": "Using the methods of this class you can parse String...
Color cmd command - GeeksforGeeks
28 Dec, 2020 Color is an inbuilt command found inside the Windows Command Processor (cmd.exe), that is used for changing the colors for the console’s foreground and background. By default, the console has white foreground color and black background color (07 color code). The command is generally used either to personal...
[ { "code": null, "e": 24101, "s": 24073, "text": "\n28 Dec, 2020" }, { "code": null, "e": 24644, "s": 24101, "text": "Color is an inbuilt command found inside the Windows Command Processor (cmd.exe), that is used for changing the colors for the console’s foreground and background....
CompareTo() method in C#
To compare two values, use the CompareTo() method. The following are the return values − 0 = both the numbers are equal 1 = second number is smaller -1 = first number is smaller Here is the code to implement CompareTo() method in C# − Live Demo using System; public class Demo { public static void Main() { in...
[ { "code": null, "e": 1113, "s": 1062, "text": "To compare two values, use the CompareTo() method." }, { "code": null, "e": 1151, "s": 1113, "text": "The following are the return values −" }, { "code": null, "e": 1182, "s": 1151, "text": "0 = both the numbers a...
Next.js - Environment Setup
As Next.js is a react based framework, we are using Node environment. Now make sure you have Node.js and npm installed on your system. You can use the following command to install Next.js − npm install next react react-dom You can observe the following output once Next.js is successfully installed − + react@16.13.1 + r...
[ { "code": null, "e": 2297, "s": 2107, "text": "As Next.js is a react based framework, we are using Node environment. Now make sure you have Node.js and npm installed on your system. You can use the following command to install Next.js −" }, { "code": null, "e": 2330, "s": 2297, "...
Find mirror image of a point in 2-D plane - GeeksforGeeks
29 Nov, 2021 Given a point P in 2-D plane and equation of mirror, the task is to find the image of that point Q formed due to the mirror. Equation of mirror is in form ax + by + c = Examples: Input : P = (1, 0), a = -1, b = 1, c = 0 Output : Q = (0, 1) Input : P = (3, 3), a = 0, b = 1, c = -2 Output : Q = (3, 1) ...
[ { "code": null, "e": 26853, "s": 26825, "text": "\n29 Nov, 2021" }, { "code": null, "e": 27034, "s": 26853, "text": "Given a point P in 2-D plane and equation of mirror, the task is to find the image of that point Q formed due to the mirror. Equation of mirror is in form ax + by ...
Java Swing | ToolTip - GeeksforGeeks
05 Aug, 2021 We can add tooltip text to almost all the components of Java Swing by using the following method setToolTipText(String s). This method sets the tooltip of the component to the specified string s. When the cursor enters the boundary of that component a popup appears and text is displayed. Methods used: get...
[ { "code": null, "e": 25347, "s": 25319, "text": "\n05 Aug, 2021" }, { "code": null, "e": 25636, "s": 25347, "text": "We can add tooltip text to almost all the components of Java Swing by using the following method setToolTipText(String s). This method sets the tooltip of the comp...
Complicated declarations in C - GeeksforGeeks
05 Mar, 2021 Most of the times declarations are simple to read, but it is hard to read some declarations which involve pointer to functions. For example, consider the following declaration from “signal.h”. C void (*bsd_signal(int, void (*)(int)))(int); Let us see the steps to read complicated declarations.1) Convert C ...
[ { "code": null, "e": 24420, "s": 24392, "text": "\n05 Mar, 2021" }, { "code": null, "e": 24613, "s": 24420, "text": "Most of the times declarations are simple to read, but it is hard to read some declarations which involve pointer to functions. For example, consider the following...
Angular Material - Grids
The md-grid-list, an Angular directive, is a component for laying out content for varying screen sizes. A grid has 12 columns in the desktop size screen, 8 in the tablet size screen, and 4 in the phone size screen, where each size have predefined margins and gutters. Cells are laid out in sequential manner in a row, in...
[ { "code": null, "e": 2539, "s": 2190, "text": "The md-grid-list, an Angular directive, is a component for laying out content for varying screen sizes. A grid has 12 columns in the desktop size screen, 8 in the tablet size screen, and 4 in the phone size screen, where each size have predefined margin...
Delivering Real-time Streaming Data to Amazon S3 Using Amazon Kinesis Data Firehose | by Janitha Tennakoon | Towards Data Science
In this post let us explore what is streaming data and how to use Amazon Kinesis Firehose service to make an application which stores these streaming data to Amazon S3. As a hands-on experience, we will use AWS Management Console to ingest simulated stock ticker data from which we will create a delivery stream and save...
[ { "code": null, "e": 605, "s": 172, "text": "In this post let us explore what is streaming data and how to use Amazon Kinesis Firehose service to make an application which stores these streaming data to Amazon S3. As a hands-on experience, we will use AWS Management Console to ingest simulated stock...
Android | Implicit and Explicit Intents with Examples - GeeksforGeeks
06 May, 2019 Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio Android | Starting with first app/android project Android | Running your first Android app This article aims to tell about the Implicit and Explicit intents and how to use them in an android app. I...
[ { "code": null, "e": 24653, "s": 24625, "text": "\n06 May, 2019" }, { "code": null, "e": 24669, "s": 24653, "text": "Pre-requisites:" }, { "code": null, "e": 24720, "s": 24669, "text": "Android App Development Fundamentals for Beginners" }, { "code": n...
Extract hyperlinks from PDF in Python - GeeksforGeeks
16 Oct, 2021 Prerequisite: PyPDF2, Regex In this article, We are going to extract hyperlinks from PDF in Python. It can be done in different ways: Using PyPDF2 Using pdfx Method 1: Using PyPDF2. PyPDF2 is a python library built as a PDF toolkit. It is capable of Extracting document information and many more. Approach: ...
[ { "code": null, "e": 25555, "s": 25527, "text": "\n16 Oct, 2021" }, { "code": null, "e": 25583, "s": 25555, "text": "Prerequisite: PyPDF2, Regex" }, { "code": null, "e": 25689, "s": 25583, "text": "In this article, We are going to extract hyperlinks from PDF i...
How To Make Density Plots with ggplot2 in R?
05 Oct, 2021 In this article, we are going to see how to make Density plots with ggtplot2 in R Programming language. To create a density plot in R using ggplot2, we use the geom_density() function of the ggplot2 package. Syntax: ggplot( aes(x)) + geom_density( fill, color, alpha) Parameters: fill: background color belo...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Oct, 2021" }, { "code": null, "e": 132, "s": 28, "text": "In this article, we are going to see how to make Density plots with ggtplot2 in R Programming language." }, { "code": null, "e": 236, "s": 132, "text": "To...
SQLAlchemy ORM – Creating Session
04 Jan, 2022 In this article, we will see how to create a session for SQLAlchemy ORM queries. Before we begin, let us install the required dependencies using pip: pip install sqlalchemy Since we are going to use MySQL in this post, we will also install a SQL connector for MySQL in Python. However, none of the code impl...
[ { "code": null, "e": 28, "s": 0, "text": "\n04 Jan, 2022" }, { "code": null, "e": 109, "s": 28, "text": "In this article, we will see how to create a session for SQLAlchemy ORM queries." }, { "code": null, "e": 178, "s": 109, "text": "Before we begin, let us i...
Python | sympy.subs() method
18 Jun, 2019 With the help of sympy.subs() method, we can substitute all instances of a variable or expression in a mathematical expression with some other variable or expression or value. Syntax: math_expression.subs(variable, substitute) Parameters:variable – It is the variable or expression which will be substituted...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jun, 2019" }, { "code": null, "e": 204, "s": 28, "text": "With the help of sympy.subs() method, we can substitute all instances of a variable or expression in a mathematical expression with some other variable or expression or value....
Maximum number of trailing zeros in the product of the subsets of size k
09 Apr, 2021 Given an array of size n and a positive integer k, find the maximum number of trailing zeros in the product of the subsets of size k.Examples: Input : arr = {50, 4, 20} k = 2 Output : 3 Here, we have 3 subsets of size 2. [50, 4] has product 200, having 2 zeros at the end, [4, 20] — product 80, ...
[ { "code": null, "e": 54, "s": 26, "text": "\n09 Apr, 2021" }, { "code": null, "e": 199, "s": 54, "text": "Given an array of size n and a positive integer k, find the maximum number of trailing zeros in the product of the subsets of size k.Examples: " }, { "code": null, ...
Python PIL | Image.transform() method
02 Aug, 2019 PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Aug, 2019" }, { "code": null, "e": 355, "s": 28, "text": "PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to ...
Grey wolf optimization – Introduction
16 Mar, 2021 Optimization is essentially everywhere, from engineering design to economics and from holiday planning to Internet routing. As money, resources and time are always limited, the optimal utilization of these available resources is crucially important. In general, an optimization problem can be written as o...
[ { "code": null, "e": 54, "s": 26, "text": "\n16 Mar, 2021" }, { "code": null, "e": 304, "s": 54, "text": "Optimization is essentially everywhere, from engineering design to economics and from holiday planning to Internet routing. As money, resources and time are always limited, t...
How to Play Video on Mouse Hover and Pause on Mouseout using JavaScript ?
22 Nov, 2021 In this article, we learn how to play a video when the mouse hovers on it and how to stop it when the mouse is removed from the video element. Sometimes there is a need where we want that video on websites to automatically starts playing when the user keeps the mouse over it because it reduces the number o...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2021" }, { "code": null, "e": 574, "s": 28, "text": "In this article, we learn how to play a video when the mouse hovers on it and how to stop it when the mouse is removed from the video element. Sometimes there is a need where ...
JavaScript | Immediately Invoked Function Expressions (IIFE)
07 Jul, 2022 Functions are one of the building blocks of any programming language and JavaScript has taken the Functions to a whole new level. Functions are said to be a collection of statements to be executed in a proper sequence in a particular context. Now JavaScript provides a variety of methods to define and execu...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jul, 2022" }, { "code": null, "e": 621, "s": 52, "text": "Functions are one of the building blocks of any programming language and JavaScript has taken the Functions to a whole new level. Functions are said to be a collection of sta...
How to Make a Floating Window Application in Android?
15 Jan, 2021 Well, on our desktop computers we can easily restore down windows, do something in the background, and maximize the window whenever we want. But we don’t see this feature in android apps that much. Nowadays we can see android is offering Split Screen, but that’s a feature provided by OS, not the app’s indi...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Jan, 2021" }, { "code": null, "e": 875, "s": 54, "text": "Well, on our desktop computers we can easily restore down windows, do something in the background, and maximize the window whenever we want. But we don’t see this feature in ...
Plotting a Sawtooth Wave using Matplotlib
03 Jan, 2021 Prerequisites: Matplotlib Scipy A sawtooth waveform is a non-sinusoidal waveform because its teeth look like a saw. In an inverse (or reverse) sawtooth waveform the wave suddenly ramps downwards and then rises sharply. With Matplotlib we can draw different types of Graphical data. In this article, we will ...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jan, 2021" }, { "code": null, "e": 43, "s": 28, "text": "Prerequisites:" }, { "code": null, "e": 54, "s": 43, "text": "Matplotlib" }, { "code": null, "e": 60, "s": 54, "text": "Scipy" }, { ...
Using fork() to produce 1 parent and its 3 child processes
13 May, 2018 Program to create four processes (1 parent and 3 children) where they terminates in a sequence as follows :(a) Parent process terminates at last(b) First child terminates before parent and after second child.(c) Second child terminates after last and before first child.(d) Third child terminates first. Pre...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 May, 2018" }, { "code": null, "e": 356, "s": 52, "text": "Program to create four processes (1 parent and 3 children) where they terminates in a sequence as follows :(a) Parent process terminates at last(b) First child terminates bef...
Find distinct elements common to all rows of a matrix
02 Jun, 2022 Given a n x n matrix. The problem is to find all the distinct elements common to all rows of the matrix. The elements can be printed in any order. Examples: Input : mat[][] = { {2, 1, 4, 3}, {1, 2, 3, 2}, {3, 6, 2, 3}, {5, 2, 5, 3} } Out...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jun, 2022" }, { "code": null, "e": 201, "s": 54, "text": "Given a n x n matrix. The problem is to find all the distinct elements common to all rows of the matrix. The elements can be printed in any order." }, { "code": null,...
p5.js | imageMode() Function
27 Feb, 2020 The imageMode() function is used to set the image mode of an image. The image mode defines the position of the image in the canvas, by changing the way that the parameters given to the image() function are interpreted. Syntax: imageMode( mode ) Parameters: This function accepts a single parameter mode that...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Feb, 2020" }, { "code": null, "e": 247, "s": 28, "text": "The imageMode() function is used to set the image mode of an image. The image mode defines the position of the image in the canvas, by changing the way that the parameters giv...
Is Apache Airflow 2.0 good enough for current data engineering needs? | by Anna Geller | Towards Data Science
Several months ago I wrote an article discussing the pros and cons of Apache Airflow as a workflow management platform for ETL and data science. Due to the recent major upgrade, I want to give an update on what has changed since then in Airflow 2.0. To get a full picture, you may want to have a look at the previous art...
[ { "code": null, "e": 504, "s": 172, "text": "Several months ago I wrote an article discussing the pros and cons of Apache Airflow as a workflow management platform for ETL and data science. Due to the recent major upgrade, I want to give an update on what has changed since then in Airflow 2.0. To ge...
Python & MySQL - Select Database Example
Python MySQLdb provides MySQLdb.connect() function to select a database. This function takes multiple parameters and returns a connection object to do database operations. db = MySQLdb.connect(host, username, passwd, dbName, port, socket); host Optional − The host name running the database server. If not specified, th...
[ { "code": null, "e": 2391, "s": 2219, "text": "Python MySQLdb provides MySQLdb.connect() function to select a database. This function takes multiple parameters and returns a connection object to do database operations." }, { "code": null, "e": 2460, "s": 2391, "text": "db = MySQL...
8085 program to convert a hexadecimal number into ASCII code - GeeksforGeeks
26 May, 2019 Problem: Write an assembly level language program to convert HEX code to its respective ASCII code.Assume that starting address of program and input memory location are 2000 and 2050 respectively. Example: Input: 2050 E4 (Hex data) Output: 2051 34 (ASCII code for 4) 2052 45 (ASCII code for E) Algorithm: ...
[ { "code": null, "e": 24601, "s": 24573, "text": "\n26 May, 2019" }, { "code": null, "e": 24798, "s": 24601, "text": "Problem: Write an assembly level language program to convert HEX code to its respective ASCII code.Assume that starting address of program and input memory locatio...
Plotly Express Yourself. A quick stroll through basic... | by Werlindo Mangrobang | Towards Data Science
I’ve recently discovered Plotly Express, and I am very excited to add it to my toolbox, and for it’s potential. For those who are unfamiliar with Plotly (or even more confused why there would be a need for an express version), let’s get you up to speed. Plotly is a visualization library available on a number of platfor...
[ { "code": null, "e": 284, "s": 172, "text": "I’ve recently discovered Plotly Express, and I am very excited to add it to my toolbox, and for it’s potential." }, { "code": null, "e": 426, "s": 284, "text": "For those who are unfamiliar with Plotly (or even more confused why there ...
Video to Audio convert using Python - GeeksforGeeks
16 Jul, 2020 Prerequisites: Python Programming Language There are several libraries and techniques available in Python for the conversion of Video to Audio. One such library is Movie Editor. MoviePy can read and write all the most common audio and video formats, including GIF, and runs on Windows/Mac/Linux, with Python...
[ { "code": null, "e": 25931, "s": 25903, "text": "\n16 Jul, 2020" }, { "code": null, "e": 25974, "s": 25931, "text": "Prerequisites: Python Programming Language" }, { "code": null, "e": 26109, "s": 25974, "text": "There are several libraries and techniques avai...
Python - Horizontal Concatenation of Multiline Strings - GeeksforGeeks
05 Sep, 2020 Given pair of strings, which is multiline, perform concatenation horizontally. Examples: Input : test_str1 = ”’ geeks for geeks”’, test_str2 = ”’ is best”’ Output : geeks foris geeksbest Explanation : 1st line joined with 1st line of 2nd string, “geeks for” -> “is”. Input : test_str1 = ”’ geeks for ”’ test...
[ { "code": null, "e": 25507, "s": 25479, "text": "\n05 Sep, 2020" }, { "code": null, "e": 25586, "s": 25507, "text": "Given pair of strings, which is multiline, perform concatenation horizontally." }, { "code": null, "e": 25596, "s": 25586, "text": "Examples:" ...
Duration ofMillis(long) method in Java with Examples - GeeksforGeeks
26 Nov, 2018 The ofMillis(long) method of Duration Class in java.time package is used to get a duration in a 1 milliSecond format. Syntax: public static Duration ofMillis(long milliSeconds) Parameters: This method accepts a parameter milliSeconds which is the number of milliSeconds. It can be positive or negative. Ret...
[ { "code": null, "e": 25225, "s": 25197, "text": "\n26 Nov, 2018" }, { "code": null, "e": 25343, "s": 25225, "text": "The ofMillis(long) method of Duration Class in java.time package is used to get a duration in a 1 milliSecond format." }, { "code": null, "e": 25351, ...
K-Means Clustering in R Programming - GeeksforGeeks
02 Jul, 2020 K Means Clustering in R Programming is an Unsupervised Non-linear algorithm that cluster data based on similarity or similar groups. It seeks to partition the observations into a pre-specified number of clusters. Segmentation of data takes place to assign each training example to a segment called a cluster...
[ { "code": null, "e": 25643, "s": 25615, "text": "\n02 Jul, 2020" }, { "code": null, "e": 26172, "s": 25643, "text": "K Means Clustering in R Programming is an Unsupervised Non-linear algorithm that cluster data based on similarity or similar groups. It seeks to partition the obse...
Collections singletonList() method in Java with Examples - GeeksforGeeks
19 Feb, 2021 The singletonList() method of java.util.Collections class is used to return an immutable list containing only the specified object. The returned list is serializable. This list will always contain only one element thus the name singleton list. When we try to add/remove an element on the returned singleton ...
[ { "code": null, "e": 26193, "s": 26165, "text": "\n19 Feb, 2021" }, { "code": null, "e": 26551, "s": 26193, "text": "The singletonList() method of java.util.Collections class is used to return an immutable list containing only the specified object. The returned list is serializab...
How to automatically start a download in PHP ? - GeeksforGeeks
14 Sep, 2020 This post deals with creating a start downloading file using PHP. The idea is to make a download button which will redirect you to another page with the PHP script that will automatically start the download. Creating a download button: <!DOCTYPE html><html> <head> <meta name="viewport" content= ...
[ { "code": null, "e": 26193, "s": 26165, "text": "\n14 Sep, 2020" }, { "code": null, "e": 26401, "s": 26193, "text": "This post deals with creating a start downloading file using PHP. The idea is to make a download button which will redirect you to another page with the PHP script...
Find nth number that contains the digit k or divisible by k. - GeeksforGeeks
07 Apr, 2021 You have given two number n and k. You need to find the n-th number that contains the digit k or divisible by k (2 <= k <=9 ).Examples: Input : n = 15, k = 3 Output : 33 Explanation : ( 3, 6, 9, 12, 13, 15, 18, 21, 23, 24, 27, 30, 31, 33 ). These are those number who contain the digit k = 3 ...
[ { "code": null, "e": 24637, "s": 24609, "text": "\n07 Apr, 2021" }, { "code": null, "e": 24775, "s": 24637, "text": "You have given two number n and k. You need to find the n-th number that contains the digit k or divisible by k (2 <= k <=9 ).Examples: " }, { "code": nul...
MathML - Repeating Decimals
Decimal numbers having digit(s) that repeat(s) infinitely such as 1/3 (.3333...) are represented by putting a horizontal line over or below the digits that repeat. <mstack> , <msrow>, and <msline> elements can be used to create decimal numbers with repeated digits as shown below. <math xmlns = "http://www.w3.org/1998/M...
[ { "code": null, "e": 2538, "s": 2257, "text": "Decimal numbers having digit(s) that repeat(s) infinitely such as 1/3 (.3333...) are represented by putting a horizontal line over or below the digits that repeat. <mstack> , <msrow>, and <msline> elements can be used to create decimal numbers with repe...
LRU Cache in Python using OrderedDict - GeeksforGeeks
10 Sep, 2020 LRU (Least Recently Used) Cache discards the least recently used items first. This algorithm requires keeping track of what was used when, which is expensive if one wants to make sure the algorithm always discards the least recently used item. General implementations of this technique require keeping “age ...
[ { "code": null, "e": 24688, "s": 24660, "text": "\n10 Sep, 2020" }, { "code": null, "e": 25608, "s": 24688, "text": "LRU (Least Recently Used) Cache discards the least recently used items first. This algorithm requires keeping track of what was used when, which is expensive if on...
Data Preprocessing and Network Building in CNN | by Tanya Dayanand | Towards Data Science
In this article, we will go through the end-to-end pipeline of training convolution neural networks, i.e. organizing the data into directories, preprocessing, data augmentation, model building, etc. We will spend a good amount of time on data preprocessing techniques commonly used with image processing. This is because...
[ { "code": null, "e": 371, "s": 172, "text": "In this article, we will go through the end-to-end pipeline of training convolution neural networks, i.e. organizing the data into directories, preprocessing, data augmentation, model building, etc." }, { "code": null, "e": 890, "s": 371, ...
AngularJS | angular.isArray() Function - GeeksforGeeks
16 Apr, 2019 The angular.isArray() Function in AngularJS is used to return TRUE if the reference is an array and FALSE if it is not an array.Syntax: angular.isArray(value) Return value: Returns TRUE if the value is an array else it will return FALSE. Example 1: <html> <head> <title>angular.isArray()</title> ...
[ { "code": null, "e": 28191, "s": 28163, "text": "\n16 Apr, 2019" }, { "code": null, "e": 28327, "s": 28191, "text": "The angular.isArray() Function in AngularJS is used to return TRUE if the reference is an array and FALSE if it is not an array.Syntax:" }, { "code": null,...
How I built an AI Text-to-Art Generator | by Fathy Rashad | Towards Data Science
This article is a write-up on how I built Text2Art.com in a week. Text2Art is an AI-powered art generator based on VQGAN+CLIP that can generate all kinds of art such as pixel art, drawing, and painting from just text input. The article follows my thought process from experimenting with VQGAN+CLIP, building a simple UI ...
[ { "code": null, "e": 654, "s": 171, "text": "This article is a write-up on how I built Text2Art.com in a week. Text2Art is an AI-powered art generator based on VQGAN+CLIP that can generate all kinds of art such as pixel art, drawing, and painting from just text input. The article follows my thought ...
Find maximum (or minimum) in Binary Tree - GeeksforGeeks
14 Feb, 2022 Given a Binary Tree, find the maximum(or minimum) element in it. For example, maximum in the following Binary Tree is 9. In Binary Search Tree, we can find maximum by traversing right pointers until we reach the rightmost node. But in Binary Tree, we must visit every node to figure out maximum. So the i...
[ { "code": null, "e": 35846, "s": 35818, "text": "\n14 Feb, 2022" }, { "code": null, "e": 35968, "s": 35846, "text": "Given a Binary Tree, find the maximum(or minimum) element in it. For example, maximum in the following Binary Tree is 9. " }, { "code": null, "e": 3623...
The Power of Pickletools. The data is increasing. More the data... | by Amarpreet Singh | Towards Data Science
The volume of data is increasing. The more the data, the more we can use it for solving different problems. Suppose you train a machine learning model for some solution and want to save it for later predictions. Here come some serialization-deserialization methods: Pickling (Pickle, cPickle, Joblib, JsonPickle, Dill, M...
[ { "code": null, "e": 625, "s": 172, "text": "The volume of data is increasing. The more the data, the more we can use it for solving different problems. Suppose you train a machine learning model for some solution and want to save it for later predictions. Here come some serialization-deserializatio...
Count the Specials - Java | Practice | GeeksforGeeks
Given an arry A (may contain duplicates) of N elements and a positive integer K. The task is to count the number of elements which occurs exactly floor(N/K) times in the array. Example 1: Input: 5 2 1 4 1 2 4 Output: 2 Explanation: In the given array, 1 and 4 occurs floor(5/2) = 2 times. So count is 2. Example 2: I...
[ { "code": null, "e": 417, "s": 238, "text": "Given an arry A (may contain duplicates) of N elements and a positive integer K. The task is to count the number of elements which occurs exactly floor(N/K) times in the array.\n " }, { "code": null, "e": 428, "s": 417, "text": "Exampl...
Case-insensitive string comparison in Python - GeeksforGeeks
28 Mar, 2022 We generally use Python lists to store items. An online shopping application may contain a list of items in it so that the user can search the item from the list of items. For example, Our shopping application has a list of laptops it sells. List contains many brands and one of them is ‘Lenovo’. If we want...
[ { "code": null, "e": 26008, "s": 25980, "text": "\n28 Mar, 2022" }, { "code": null, "e": 26662, "s": 26008, "text": "We generally use Python lists to store items. An online shopping application may contain a list of items in it so that the user can search the item from the list o...
Semantic Models for Constructing Knowledge Graphs | by Giuseppe Futia | Towards Data Science
If you are completely new to Knowledge Graphs and related concepts, such as the mapping from data sources to ontologies, I invite you to read the following introductory articles. towardsdatascience.com towardsdatascience.com. Knowledge Graphs (KG) are effective tools for capturing and structuring a large amount of mult...
[ { "code": null, "e": 351, "s": 172, "text": "If you are completely new to Knowledge Graphs and related concepts, such as the mapping from data sources to ontologies, I invite you to read the following introductory articles." }, { "code": null, "e": 374, "s": 351, "text": "towards...
Apache Storm - Quick Guide
Apache Storm is a distributed real-time big data-processing system. Storm is designed to process vast amount of data in a fault-tolerant and horizontal scalable method. It is a streaming data framework that has the capability of highest ingestion rates. Though Storm is stateless, it manages distributed environment and ...
[ { "code": null, "e": 2374, "s": 1927, "text": "Apache Storm is a distributed real-time big data-processing system. Storm is designed to process vast amount of data in a fault-tolerant and horizontal scalable method. It is a streaming data framework that has the capability of highest ingestion rates....
Functional Programming - Tuple
A tuple is a compound data type having a fixed number of terms. Each term in a tuple is known as an element. The number of elements is the size of the tuple. The following program shows how to define a tuple of four terms and print them using C#, which is an object-oriented programming language. using System; public c...
[ { "code": null, "e": 1979, "s": 1821, "text": "A tuple is a compound data type having a fixed number of terms. Each term in a tuple is known as an element. The number of elements is the size of the tuple." }, { "code": null, "e": 2118, "s": 1979, "text": "The following program sh...
Angular PrimeNG Panel Component - GeeksforGeeks
07 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 Panel component in Angular PrimeNG. We will also learn about t...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n07 Oct, 2021" }, { "code": null, "e": 26751, "s": 26354, "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...
How to change the name of data frames stored in an R list?
To change the name of data frames stored in an R list, we can follow the below steps − First of all, create a list of data frames. First of all, create a list of data frames. Then, use names function to change the name of data frames. Then, use names function to change the name of data frames. Using data.frame function...
[ { "code": null, "e": 1149, "s": 1062, "text": "To change the name of data frames stored in an R list, we can follow the below steps −" }, { "code": null, "e": 1193, "s": 1149, "text": "First of all, create a list of data frames." }, { "code": null, "e": 1237, "s":...
MangaGAN. Teaching computers to draw new and... | by TD | Towards Data Science
Manga and anime are appreciated around the world for their intricate art styles and compelling stories. The fan base for this is so massive there are thousands of artists out there drawing original manga and anime characters, and also thousands who are tempted to create them. However drawing takes tremendous time, effo...
[ { "code": null, "e": 938, "s": 172, "text": "Manga and anime are appreciated around the world for their intricate art styles and compelling stories. The fan base for this is so massive there are thousands of artists out there drawing original manga and anime characters, and also thousands who are te...
Sort an Array alphabetically when each number is converted into words - GeeksforGeeks
31 Jan, 2022 Given an array arr[] containing N non-negative integers, the task is to sort these integers alphabetically when each number is converted into words. Examples: Input: arr[] = {12, 10, 102, 31, 15} Output: 15 102 10 31 12 Explanation: The above set of numbers are sorted alphabetically. That is: 15 -> Fifte...
[ { "code": null, "e": 24716, "s": 24688, "text": "\n31 Jan, 2022" }, { "code": null, "e": 24865, "s": 24716, "text": "Given an array arr[] containing N non-negative integers, the task is to sort these integers alphabetically when each number is converted into words." }, { ...
Python Program for Dijkstra's shortest path algorithm | Greedy Algo-7 - GeeksforGeeks
24 Feb, 2022 Given a graph and a source vertex in the graph, find the shortest paths from source to all vertices in the given graph.Dijkstra’s algorithm is very similar to Prim’s algorithm for minimum spanning tree. Like Prim’s MST, we generate an SPT (shortest path tree) with a given source as root. We maintain two s...
[ { "code": null, "e": 25115, "s": 25084, "text": " \n24 Feb, 2022\n" }, { "code": null, "e": 26309, "s": 25115, "text": "Given a graph and a source vertex in the graph, find the shortest paths from source to all vertices in the given graph.Dijkstra’s algorithm is very similar to P...
How to Optimize String Concatenation in Java? - GeeksforGeeks
02 Dec, 2020 Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character ‘\0’. Since arrays are immutable(cannot grow), Strings are immutable as well. Whenever a change to a String is made, an entirely new String is created. C...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n02 Dec, 2020" }, { "code": null, "e": 24174, "s": 23868, "text": "Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a special character ‘\\0’. Si...
Shortest String formed by concatenating string A x times and B y times such that n(A)*x = n(B)*y - GeeksforGeeks
21 Dec, 2021 Given two strings A and B, the task is to find the shortest string which is some multiple of both A and B. A string X is said to be a multiple of string Y if string X can be formed by the concatenation of multiple occurrences of string Y. Example: Input: A = “aaa”, B= “aa”Output: aaaaaaExplanation: Multip...
[ { "code": null, "e": 25214, "s": 25186, "text": "\n21 Dec, 2021" }, { "code": null, "e": 25454, "s": 25214, "text": "Given two strings A and B, the task is to find the shortest string which is some multiple of both A and B. A string X is said to be a multiple of string Y if stri...
Android Resources Organizing & Accessing
There are many more items which you use to build a good Android application. Apart from coding for the application, you take care of various other resources like static content that your code uses, such as bitmaps, colors, layout definitions, user interface strings, animation instructions, and more. These resources are...
[ { "code": null, "e": 4021, "s": 3607, "text": "There are many more items which you use to build a good Android application. Apart from coding for the application, you take care of various other resources like static content that your code uses, such as bitmaps, colors, layout definitions, user inter...
\newcommand - Tex Command
\newcommand - Used to create your own commands (control sequences, macros, definitions). { \newcommand\myCommandName [ <optional # of arguments, from 1 to 9> ] { <replacement text> } } \newcommand command is used for defining your own commands (control sequences, macros, definitions); \newcommand must appear (with...
[ { "code": null, "e": 8075, "s": 7986, "text": "\\newcommand - Used to create your own commands (control sequences, macros, definitions)." }, { "code": null, "e": 8175, "s": 8075, "text": "{ \\newcommand\\myCommandName\n [ <optional # of arguments, from 1 to 9> ]\n { <replacemen...
Convert MySQL Unix-Timestamp format to date format?
To achieve this, the following is the syntax select date_format(from_unixtime(yourColumnName),'%b %d, %Y %l:%i %p PDT') from yourTableName; To understand the above syntax, let us create a table. The query to create a table is as follows mysql> create table unixTimeStampFormatDemo -> ( -> Id int NOT NULL AUTO_INCR...
[ { "code": null, "e": 1107, "s": 1062, "text": "To achieve this, the following is the syntax" }, { "code": null, "e": 1202, "s": 1107, "text": "select date_format(from_unixtime(yourColumnName),'%b %d, %Y %l:%i %p PDT') from yourTableName;" }, { "code": null, "e": 1299,...
Python - Print different vowels present in a String - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Python program to find the different vowels p...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
How do I know if a MySQL table is using myISAM or InnoDB Engine?
To know a MySQL table is using MyISAM or InnoDB engine, you can use the command show status table. The syntax is as follows − SHOW TABLE STATUS from yourDatabaseName LIKE ‘yourTableName’. The above syntax tells about the specific table engine. Now you can apply the above syntax to know whether the MySQL table engine is...
[ { "code": null, "e": 1188, "s": 1062, "text": "To know a MySQL table is using MyISAM or InnoDB engine, you can use the command show status table. The syntax is as follows −" }, { "code": null, "e": 1250, "s": 1188, "text": "SHOW TABLE STATUS from yourDatabaseName LIKE ‘yourTableN...
Angular File Upload - GeeksforGeeks
29 Jul, 2021 The file upload is an essential component to make a form that store some image kind of data. It helps in applications using image upload or in the file sharing. This file-upload component uses file.io API for uploading file and in return it provides a shareable link. Furthermore, we can send get request to...
[ { "code": null, "e": 24360, "s": 24332, "text": "\n29 Jul, 2021" }, { "code": null, "e": 24780, "s": 24360, "text": "The file upload is an essential component to make a form that store some image kind of data. It helps in applications using image upload or in the file sharing. Th...
Apex - Debugging
Debugging is an important part in any programming development. In Apex, we have certain tools that can be used for debugging. One of them is the system.debug() method which prints the value and output of variable in the debug logs. We can use the following two tools for debugging − Developer Console Debug Logs You can ...
[ { "code": null, "e": 2284, "s": 2052, "text": "Debugging is an important part in any programming development. In Apex, we have certain tools that can be used for debugging. One of them is the system.debug() method which prints the value and output of variable in the debug logs." }, { "code":...
Elasticsearch - Painless is Really Painless - GeeksforGeeks
18 Jan, 2021 Elasticsearch has been a really cool kid in the town for quite a long time when it comes to full-text search. So many companies like Uber, Slack, Udemy, etc. uses it for the search. There are many more advantages of Elasticsearch other than just full-text search like powerful tools for analysis of data for...
[ { "code": null, "e": 23837, "s": 23809, "text": "\n18 Jan, 2021" }, { "code": null, "e": 24365, "s": 23837, "text": "Elasticsearch has been a really cool kid in the town for quite a long time when it comes to full-text search. So many companies like Uber, Slack, Udemy, etc. uses ...
C library function - printf()
The C library function int printf(const char *format, ...) sends formatted output to stdout. Following is the declaration for printf() function. int printf(const char *format, ...) format − This is the string that contains the text to be written to stdout. It can optionally contain embedded format tags that are replace...
[ { "code": null, "e": 2100, "s": 2007, "text": "The C library function int printf(const char *format, ...) sends formatted output to stdout." }, { "code": null, "e": 2152, "s": 2100, "text": "Following is the declaration for printf() function." }, { "code": null, "e": ...
Do-while loop in Arduino
The do-while loop’s syntax in Arduino is similar to the syntax in C. It is given below − do{ //Code } while (condition); Note the semicolon at the end. void setup() { // put your setup code here, to run once: Serial.begin(9600); Serial.println(); int i = 5; do{ Serial.println(i); i--; ...
[ { "code": null, "e": 1151, "s": 1062, "text": "The do-while loop’s syntax in Arduino is similar to the syntax in C. It is given below −" }, { "code": null, "e": 1186, "s": 1151, "text": "do{\n //Code\n} while (condition);" }, { "code": null, "e": 1217, "s": 1186...
How to get the value of PI in JavaScript?
To get the value of PI in JavaScript, use the Math.PI property. It returns the ratio of the circumference of a circle to its diameter, which is approximately 3.14159. You can try to run the following code to get the value of PI in JavaScript − <html> <head> <title>JavaScript Math PI Property</title> </head>...
[ { "code": null, "e": 1229, "s": 1062, "text": "To get the value of PI in JavaScript, use the Math.PI property. It returns the ratio of the circumference of a circle to its diameter, which is approximately 3.14159." }, { "code": null, "e": 1306, "s": 1229, "text": "You can try to ...
End-to-end Machine Learning with TFX on TensorFlow 2.x | by Andre Tan | Towards Data Science
I was pretty excited when Tensorflow 2.0 was released late last year. After all, it promised a more enjoyable developer experience over its 1.x counterpart (otherwise known as the deep learning equivalent of Java from hell). Keras layers with strong support for deploying models? Count me in! My excitement was short-liv...
[ { "code": null, "e": 464, "s": 171, "text": "I was pretty excited when Tensorflow 2.0 was released late last year. After all, it promised a more enjoyable developer experience over its 1.x counterpart (otherwise known as the deep learning equivalent of Java from hell). Keras layers with strong suppo...
jQuery | Syntax - GeeksforGeeks
12 Apr, 2019 It is used for selecting elements in HTML and performing the action on those elements. Syntax: $(selector).action() $ sign: It grants access to jQuery. (selector): It is used to find HTML elements. jQuery action(): It is used to perform actions on the elements.Used to hide the current element.$(this).hide(...
[ { "code": null, "e": 40747, "s": 40719, "text": "\n12 Apr, 2019" }, { "code": null, "e": 40834, "s": 40747, "text": "It is used for selecting elements in HTML and performing the action on those elements." }, { "code": null, "e": 40842, "s": 40834, "text": "Syn...
How to read files from assets on Android using Kotlin?
This example demonstrates how to read files from assets on Android using Kotlin. Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <Relati...
[ { "code": null, "e": 1143, "s": 1062, "text": "This example demonstrates how to read files from assets on Android using Kotlin." }, { "code": null, "e": 1271, "s": 1143, "text": "Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required detail...
DB2 - Indexes
This chapter covers introduction to indexes, their types, creation and dropping. Index is a set of pointers, which can refer to rows in a table, blocks in MDC or ITC tables, XML data in an XML storage object that are logically ordered by the values of one or more keys. It is created on DB2 table columns to speed up the...
[ { "code": null, "e": 2009, "s": 1928, "text": "This chapter covers introduction to indexes, their types, creation and dropping." }, { "code": null, "e": 2530, "s": 2009, "text": "Index is a set of pointers, which can refer to rows in a table, blocks in MDC or ITC tables, XML data...
Explain OpenCV Simple Threshold using Java Example
Thresholding is a simple technique for the segmentation of an image. it is often used to create binary images. In simple thresholding, the pixels greater than a given threshold value will be replaced with a standard value. The threshold() method performs the simple threshold operation on the given image. Following are ...
[ { "code": null, "e": 1285, "s": 1062, "text": "Thresholding is a simple technique for the segmentation of an image. it is often used to create binary images. In simple thresholding, the pixels greater than a given threshold value will be replaced with a standard value." }, { "code": null, ...
Java Program for array rotation
Following is the Java program for array rotation − Live Demo public class Demo{ void rotate_left(int my_arr[], int d, int len){ d = d % len; int i, j, k, temp; int divisor = greatest_Common_divisor(d, len); for (i = 0; i < divisor; i++){ temp = my_arr[i]; j = i; wh...
[ { "code": null, "e": 1113, "s": 1062, "text": "Following is the Java program for array rotation −" }, { "code": null, "e": 1124, "s": 1113, "text": " Live Demo" }, { "code": null, "e": 2247, "s": 1124, "text": "public class Demo{\n void rotate_left(int my_ar...
Why you should use Bayesian approaches in your Offline A/B tests | by Alain Tanguy | Towards Data Science
A first introduction to the importance of Bayesian approaches in classic statistics can be found here, and a more advanced application there! Hypothesis testing is a central topic in statistics with a wide range of applications which exceed the limits of mathematics and extend to most scientific domains, if not all. We...
[ { "code": null, "e": 314, "s": 172, "text": "A first introduction to the importance of Bayesian approaches in classic statistics can be found here, and a more advanced application there!" }, { "code": null, "e": 490, "s": 314, "text": "Hypothesis testing is a central topic in sta...
CSS | Centering Elements - GeeksforGeeks
07 Oct, 2021 Sometimes we face problems with centering an element in a web page. Is it really so hard? It is not too difficult to center an element. There so many different ways of doing it. One thing we need to know is that, which technique is for which purpose. Once you understand the problem, picking up the best tec...
[ { "code": null, "e": 22757, "s": 22729, "text": "\n07 Oct, 2021" }, { "code": null, "e": 23172, "s": 22757, "text": "Sometimes we face problems with centering an element in a web page. Is it really so hard? It is not too difficult to center an element. There so many different way...
Calculate mean of multiple columns of R DataFrame - GeeksforGeeks
09 May, 2021 Mean is a numerical representation of the central tendency of the sample in consideration. In this article, we are going to calculate the mean of multiple columns of a dataframe in R Programming Language. Formula: Mean= sum of observations/total number of observations. colMeans() this will return the colum...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n09 May, 2021" }, { "code": null, "e": 25056, "s": 24851, "text": "Mean is a numerical representation of the central tendency of the sample in consideration. In this article, we are going to calculate the mean of multiple columns ...
Android - Wi-Fi
Android allows applications to access to view the access the state of the wireless connections at very low level. Application can access almost all the information of a wifi connection. The information that an application can access includes connected network's link speed,IP address, negotiation state, other networks i...
[ { "code": null, "e": 3793, "s": 3607, "text": "Android allows applications to access to view the access the state of the wireless connections at very low level. Application can access almost all the information of a wifi connection." }, { "code": null, "e": 4021, "s": 3793, "text...
Detecting and Checking Rootkits with Chkrootkit and rkhunter Tool in Kali Linux - GeeksforGeeks
24 Jun, 2021 In this article, we are going to see how to Detect and Check Rootkits with Chkrootkit and rkhunter in Kali Linux. chkrootkit: It is a free and open-source antivirus tool available on GitHub. This tool checks locally in the binary system of your machine and scans your Linux server for a trojan. chkrootkit i...
[ { "code": null, "e": 25761, "s": 25733, "text": "\n24 Jun, 2021" }, { "code": null, "e": 25875, "s": 25761, "text": "In this article, we are going to see how to Detect and Check Rootkits with Chkrootkit and rkhunter in Kali Linux." }, { "code": null, "e": 26486, "...
Text Normalization with spaCy and NLTK | by Manfye Goh | Towards Data Science
Most NLP tasks require us to refer to a dictionary to teach the machine the word’s context or vocabulary, it is locally to think that, the smaller the vocabulary the better the performance of our NLP task. Every NLP pipeline needs to do text normalization. Text normalization is the process of transforming a text into a...
[ { "code": null, "e": 378, "s": 172, "text": "Most NLP tasks require us to refer to a dictionary to teach the machine the word’s context or vocabulary, it is locally to think that, the smaller the vocabulary the better the performance of our NLP task." }, { "code": null, "e": 812, "s"...
Technical Analysis of Stocks using TA-Lib | by Himanshu Sharma | Towards Data Science
Technical Performance Indicators are the mathematical calculations that are performed on different stock parameters like Volume, Price, etc. They help us in identifying different patterns that a stock follows or will follow in a certain given time. These performance indicators are generally visualized using charts and ...
[ { "code": null, "e": 499, "s": 171, "text": "Technical Performance Indicators are the mathematical calculations that are performed on different stock parameters like Volume, Price, etc. They help us in identifying different patterns that a stock follows or will follow in a certain given time. These ...
Perl qr Function
This function quotes its STRING as a regular expression. STRING is interpolated the same way as PATTERN in m/PATTERN/ Following is the simple syntax for this function − qr EXPR This function returns a Perl value which may be used instead of the corresponding /STRING/ expression. Following is the example code showing i...
[ { "code": null, "e": 2338, "s": 2220, "text": "This function quotes its STRING as a regular expression. STRING is interpolated the same way as PATTERN in m/PATTERN/" }, { "code": null, "e": 2389, "s": 2338, "text": "Following is the simple syntax for this function −" }, { ...
C++ Program to Implement Min Heap
A Binary Heap is a complete binary tree which is either Min Heap or Max Heap. In a Max Binary Heap, the key at root must be maximum among all keys present in Binary Heap. This property must be recursively true for all nodes in Binary Tree. Min Binary Heap is similar to Min Heap. For min_heap(): Begin Declare functio...
[ { "code": null, "e": 1342, "s": 1062, "text": "A Binary Heap is a complete binary tree which is either Min Heap or Max Heap. In a Max Binary Heap, the key at root must be maximum among all keys present in Binary Heap. This property must be recursively true for all nodes in Binary Tree. Min Binary He...
Python program to count upper and lower case characters in a given string.
For a given string input, we'd like to count the number of characters in lower case and those in the upper case using python. For example, for the given string, "Hello World" The counts should be − Upper case: 2 Lower case: 8 We can implement this using a simple for loop with 2 conditions to check for upper and lower c...
[ { "code": null, "e": 1223, "s": 1062, "text": "For a given string input, we'd like to count the number of characters in lower case and those in the upper case using python. For example, for the given string," }, { "code": null, "e": 1237, "s": 1223, "text": "\"Hello World\"" },...
How to delete file from the firebase using file url in node.js ? - GeeksforGeeks
17 Dec, 2020 To delete a file from the firebase storage we need a reference to store the file in storage. As we only have the file URL we need to create a reference object of the file in firebase storage and then delete that file. Deleting a file using the file URL can be done in two steps – Get the reference to the st...
[ { "code": null, "e": 24866, "s": 24838, "text": "\n17 Dec, 2020" }, { "code": null, "e": 25084, "s": 24866, "text": "To delete a file from the firebase storage we need a reference to store the file in storage. As we only have the file URL we need to create a reference object of t...
How to set the location of the Tabs in a JTabbedPane Container to the left in Java?
To set the location of the tabs in a JTabbedPane container, use the LEFT constant. Here, we will set the position to the left − JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.LEFT); The following is an example to set the location of the Tabs in a JTabbedPane Container to the left − package my; import javax.swing....
[ { "code": null, "e": 1190, "s": 1062, "text": "To set the location of the tabs in a JTabbedPane container, use the LEFT constant. Here, we will set the position to the left −" }, { "code": null, "e": 1250, "s": 1190, "text": "JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.L...
Removing a node in a Javascript Tree
Removing a Node from a tree is pretty complex if you look at it from a distance. There are 3 cases to consider when removing a node. These are mentioned in the comment of the following function. As we've been doing earlier, we'll create a method in the class and a helper to recursively call. deleteNode(key) { // If ...
[ { "code": null, "e": 1355, "s": 1062, "text": "Removing a Node from a tree is pretty complex if you look at it from a distance. There are 3 cases to consider when removing a node. These are mentioned in the comment of the following function. As we've been doing earlier, we'll create a method in the ...
How can we update values in a MySQL table?
With the help of UPDATE statement and WHERE clause, we can update the values in single or multiple rows of the table. MySQL updates the values on the basis of condition specified in WHERE clause. For example, suppose in the ‘employee’ table we want to change the ‘name’ and ‘doj’ of the employee whose id is 1 then it ca...
[ { "code": null, "e": 1419, "s": 1062, "text": "With the help of UPDATE statement and WHERE clause, we can update the values in single or multiple rows of the table. MySQL updates the values on the basis of condition specified in WHERE clause. For example, suppose in the ‘employee’ table we want to c...
How to create a boxplot using ggplot2 for single variable without X-axis labels in R?
The important part of a boxplot is Y−axis because it helps to understand the variability in the data and hence, we can remove X−axis labels if we know the data description. To create a boxplot using ggplot2 for single variable without X−axis labels, we can use theme function and set the X−axis labels to blank as shown ...
[ { "code": null, "e": 1404, "s": 1062, "text": "The important part of a boxplot is Y−axis because it helps to understand the variability in the data and hence, we can remove X−axis labels if we know the data description. To create a boxplot using ggplot2 for single variable without X−axis labels, we ...
CSS Loader in ReactJS
In this article, we will learn how to provide dynamic class names to our React application. Npm run eject This command will allow us to customize the configurations and the options that were predefined when we run the command of create-react-app. It is a one-sided operation that can’t be undone later on. We need to con...
[ { "code": null, "e": 1154, "s": 1062, "text": "In this article, we will learn how to provide dynamic class names to our React application." }, { "code": null, "e": 1168, "s": 1154, "text": "Npm run eject" }, { "code": null, "e": 1368, "s": 1168, "text": "This ...