title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Log functions in Python Program
In this tutorial, we are going to learn about the logarithmic functions from math module. We have four variants of logarithmic functions. Pythons' provides all of them in the math module. Let's learn about them one by one. The math.log(number, [Base]) method is used to compute the logarithm of any Base. If we didn't sp...
[ { "code": null, "e": 1285, "s": 1062, "text": "In this tutorial, we are going to learn about the logarithmic functions from math module. We have four variants of logarithmic functions. Pythons' provides all of them in the math module. Let's learn about them one by one." }, { "code": null, ...
Java Math min() method with Examples - GeeksforGeeks
13 Jul, 2021 The Java.lang.math.min() function is an inbuilt function in java that returns the minimum of two numbers. The arguments are taken in int, double, float and long. If a negative and a positive number is passed as an argument then the negative result is generated. And if both parameters passed are negative th...
[ { "code": null, "e": 24499, "s": 24471, "text": "\n13 Jul, 2021" }, { "code": null, "e": 24879, "s": 24499, "text": "The Java.lang.math.min() function is an inbuilt function in java that returns the minimum of two numbers. The arguments are taken in int, double, float and long. I...
Convert your XGBoost model into if-else format | by Shiu-Tang Li | Towards Data Science
In this article, I’ll show the reader how to convert an XGBoost model to a .py file with some tricks with regular expressions, so that the only dependency of this .py file is the “numpy” package. Therefore, after you trained the XGB model, you can deploy the model in another environment where the XGBoost package is not...
[ { "code": null, "e": 503, "s": 172, "text": "In this article, I’ll show the reader how to convert an XGBoost model to a .py file with some tricks with regular expressions, so that the only dependency of this .py file is the “numpy” package. Therefore, after you trained the XGB model, you can deploy ...
EVM - Schedule Variance
Schedule Variance (SV) indicates how much ahead or behind the schedule a project is running. It can be calculated using the following formula: Schedule Variance (SV) = Earned Value (EV) − Planned Value (PV) OR Schedule Variance (SV) = BCWP − BCWS The formula mentioned above gives the variance in terms of cost which i...
[ { "code": null, "e": 1797, "s": 1704, "text": "Schedule Variance (SV) indicates how much ahead or behind the schedule a project is running." }, { "code": null, "e": 1847, "s": 1797, "text": "It can be calculated using the following formula:" }, { "code": null, "e": 19...
Perl | Multidimensional Hashes - GeeksforGeeks
27 Jun, 2019 Prerequisite: Hashes-Basics IntroductionBeyond the normal constraints of the hashes, we can also create complex structures made up of combinations of two. These are nested or complex structures and they can be used to model complex data in an easy-to-useformat.Among all of the Perl’s nested structures, a M...
[ { "code": null, "e": 25280, "s": 25252, "text": "\n27 Jun, 2019" }, { "code": null, "e": 25308, "s": 25280, "text": "Prerequisite: Hashes-Basics" }, { "code": null, "e": 31249, "s": 25308, "text": "IntroductionBeyond the normal constraints of the hashes, we ca...
How to set Dataframe Column value as X-axis labels in Python Pandas?
To set Dataframe column value as X-axis labels in Python Pandas, we can use xticks in the argument of plot() method. Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Make a dataframe using Pandas with column1 key. Mak...
[ { "code": null, "e": 1179, "s": 1062, "text": "To set Dataframe column value as X-axis labels in Python Pandas, we can use xticks in the argument of plot() method." }, { "code": null, "e": 1255, "s": 1179, "text": "Set the figure size and adjust the padding between and around the...
Generating Synthetic Seismogram in Python | by Ryan A. Mardani | Towards Data Science
One of the most fundamental concepts in geophysics is convolution. Seismic data that we record on geophysical operations are the reflected energy from the Earth’s internal surfaces that have different physical rock properties from adjacent layers. In fact, seismic signature results from the convolution of reflectivity ...
[ { "code": null, "e": 529, "s": 171, "text": "One of the most fundamental concepts in geophysics is convolution. Seismic data that we record on geophysical operations are the reflected energy from the Earth’s internal surfaces that have different physical rock properties from adjacent layers. In fact...
How to ignore an exception and proceed in Python?
We can run a try-except block without handling the exception the following ways: try: 1/0 except: pass and try: 1/0 except Exception: pass In the first case, using bare except: is like using except BaseException: which will also catch KeyboardInterrupt, SystemExit and errors like that, which are derived directly from ...
[ { "code": null, "e": 1143, "s": 1062, "text": "We can run a try-except block without handling the exception the following ways:" }, { "code": null, "e": 1165, "s": 1143, "text": "try:\n1/0\nexcept:\npass" }, { "code": null, "e": 1169, "s": 1165, "text": "and" ...
Building and Sharing a Shiny App. How to get started as fast as possible | by Alejandro Martinez | Towards Data Science
All the code supporting this article can be forklifted from this MatrixDS project An often ignored piece of the data science process is deploying a complete solution that can be consumed by the non-technical decision makers. RStudio Shiny is an excellent tool for building and deploying that solution. Shiny provides dat...
[ { "code": null, "e": 254, "s": 172, "text": "All the code supporting this article can be forklifted from this MatrixDS project" }, { "code": null, "e": 1243, "s": 254, "text": "An often ignored piece of the data science process is deploying a complete solution that can be consume...
How to Extract PDF data in Python | by James Asher | Towards Data Science
PDFs, for some reason, are still used all the time in industry, and they’re really annoying. Especially if you don’t pay for certain subscriptions to help you manage them. This article is for people in that situation, people who need to get text data from PDFs without paying for it. First of all, if you’re looking to a...
[ { "code": null, "e": 455, "s": 171, "text": "PDFs, for some reason, are still used all the time in industry, and they’re really annoying. Especially if you don’t pay for certain subscriptions to help you manage them. This article is for people in that situation, people who need to get text data from...
Here’s How to Use CuPy to Make Numpy Over 10X Faster | by George Seif | Towards Data Science
Want to be inspired? Come join my Super Quotes newsletter. 😎 Numpy has been a gift to the Python community. It’s allowed Data Scientists, Machine Learning Practitioners, and Statisticians to process huge amounts of data in matrix format in a way that’s easy and efficient. Even on its own, Numpy is already a significan...
[ { "code": null, "e": 108, "s": 47, "text": "Want to be inspired? Come join my Super Quotes newsletter. 😎" }, { "code": null, "e": 320, "s": 108, "text": "Numpy has been a gift to the Python community. It’s allowed Data Scientists, Machine Learning Practitioners, and Statistician...
Updating a MongoDB document and adding new keys only in the first document?
This can be easily achieved using MongoDB update(). Let us create a collection with documents − > db.demo162.insertOne({"StudentName":"Chris"}); { "acknowledged" : true, "insertedId" : ObjectId("5e3684359e4f06af551997c2") } > db.demo162.insertOne({"StudentName":"Bob"}); { "acknowledged" : true, "insertedId"...
[ { "code": null, "e": 1158, "s": 1062, "text": "This can be easily achieved using MongoDB update(). Let us create a collection with documents −" }, { "code": null, "e": 1558, "s": 1158, "text": "> db.demo162.insertOne({\"StudentName\":\"Chris\"});\n{\n \"acknowledged\" : true,\n...
Late Binding using Reflection in C# - GeeksforGeeks
19 Oct, 2021 The two main terms appearing in the above topic are Late Binding and reflection. So let us first define these two terms. The binding of methods and objects during run time is called Late Binding or Dynamic Binding. Reflection is the ability of an assembly to inspect its metadata. Metadata contains the info...
[ { "code": null, "e": 25577, "s": 25549, "text": "\n19 Oct, 2021" }, { "code": null, "e": 26103, "s": 25577, "text": "The two main terms appearing in the above topic are Late Binding and reflection. So let us first define these two terms. The binding of methods and objects during ...
Polynomial Addition | Practice | GeeksforGeeks
Given two polynomial numbers represented by a linked list. The task is to complete the function addPolynomial() that adds these lists meaning adds the coefficients who have the same variable powers. Note: Given polynomials are sorted in decreasing order of power. Example 1: Input: LinkedList1: (1,x2) LinkedList2: (...
[ { "code": null, "e": 503, "s": 238, "text": "Given two polynomial numbers represented by a linked list. The task is to complete the function addPolynomial() that adds these lists meaning adds the coefficients who have the same variable powers.\nNote: Given polynomials are sorted in decreasing order...
CSS | Multiple Columns - GeeksforGeeks
14 Oct, 2020 The multiple columns are used to create column layout in the web pages. There are many column property in CSS which are listed below: column-count column-gap column-rule-style column-rule-width column-rule-color column-rule column-span column-width The column-count property: This property is used to count...
[ { "code": null, "e": 24958, "s": 24930, "text": "\n14 Oct, 2020" }, { "code": null, "e": 25093, "s": 24958, "text": "The multiple columns are used to create column layout in the web pages. There are many column property in CSS which are listed below: " }, { "code": null, ...
C# | Remove all elements from the Collection<T> - GeeksforGeeks
01 Feb, 2019 Collection<T>.Clear method is used to remove all elements from the Collection<T>. Syntax: public void Clear (); Below given are some examples to understand the implementation in a better way: Example 1: // C# code to remove all// elements from the Collectionusing System;using System.Collections.Generic;us...
[ { "code": null, "e": 26061, "s": 26033, "text": "\n01 Feb, 2019" }, { "code": null, "e": 26143, "s": 26061, "text": "Collection<T>.Clear method is used to remove all elements from the Collection<T>." }, { "code": null, "e": 26151, "s": 26143, "text": "Syntax:"...
What is a generic List in C#?
Generic List<T> is a generic collection in C#. The size can be dynamically increased using List, unlike Arrays. Let us see an example − We have set the List first − List<string> myList = new List<string>() Now add elements in the list − List<string> myList = new List<string>() { "mammals", "reptiles", "amphibi...
[ { "code": null, "e": 1174, "s": 1062, "text": "Generic List<T> is a generic collection in C#. The size can be dynamically increased using List, unlike Arrays." }, { "code": null, "e": 1198, "s": 1174, "text": "Let us see an example −" }, { "code": null, "e": 1227, ...
Architecture of 8086 - GeeksforGeeks
16 Jul, 2021 A Microprocessor is an Integrated Circuit with all the functions of a CPU however, it cannot be used stand alone since unlike a microcontroller it has no memory or peripherals. 8086 does not have a RAM or ROM inside it. However, it has internal registers for storing intermediate and final results and inte...
[ { "code": null, "e": 25931, "s": 25903, "text": "\n16 Jul, 2021" }, { "code": null, "e": 26109, "s": 25931, "text": "A Microprocessor is an Integrated Circuit with all the functions of a CPU however, it cannot be used stand alone since unlike a microcontroller it has no memory or...
8 Things to Know to Master Value Sorting in Pandas | by Yong Cui | Towards Data Science
When we deal with data, sorting is an important preprocessing step to visually examine the quality of your data. With pandas, although sometimes we may use a related method — sort_index, we sort data using the sort_values method most of the time. In this article, I’d like to share 8 things that are essential for you to...
[ { "code": null, "e": 569, "s": 171, "text": "When we deal with data, sorting is an important preprocessing step to visually examine the quality of your data. With pandas, although sometimes we may use a related method — sort_index, we sort data using the sort_values method most of the time. In this ...
PHP Program to count Page Views
15 Jan, 2018 What is a session? A PHP session is used to store data on a server rather than the computer of the user.Session identifiers or SID is unique numbers which are used to identify every user in a session based environment.The SID is used to link the user with his information on the server like posts, emails et...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jan, 2018" }, { "code": null, "e": 71, "s": 52, "text": "What is a session?" }, { "code": null, "e": 432, "s": 71, "text": "A PHP session is used to store data on a server rather than the computer of the user.Ses...
Convert a NumPy array to Pandas dataframe with headers
01 Oct, 2020 To convert a numpy array to pandas dataframe, we use pandas.DataFrame() function of Python Pandas library. Syntax: pandas.DataFrame(data=None, index=None, columns=None) Parameters:data: numpy ndarray, dict or dataframeindex: index for resulting dataframecolumns: column labels for resulting dataframe import...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Oct, 2020" }, { "code": null, "e": 135, "s": 28, "text": "To convert a numpy array to pandas dataframe, we use pandas.DataFrame() function of Python Pandas library." }, { "code": null, "e": 197, "s": 135, "text": ...
TreeMap ceilingEntry() and ceilingKey() methods in Java
17 Sep, 2018 There are two variants of ceilingEntry() in Java.util.TreeMap, both are discussed in this article. 1. ceilingEntry(K Key) : It is used to return a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key. Syntax : public Map.Entry ceilingEntry...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 Sep, 2018" }, { "code": null, "e": 152, "s": 53, "text": "There are two variants of ceilingEntry() in Java.util.TreeMap, both are discussed in this article." }, { "code": null, "e": 321, "s": 152, "text": "1. cei...
Synchronization of ArrayList in Java
03 Dec, 2021 Implementation of ArrayList is not synchronized by default. It means if a thread modifies it structurally and multiple threads access it concurrently, it must be synchronized externally. Structural modification implies the addition or deletion of element(s) from the list or explicitly resizes the backing a...
[ { "code": null, "e": 52, "s": 24, "text": "\n03 Dec, 2021" }, { "code": null, "e": 441, "s": 52, "text": "Implementation of ArrayList is not synchronized by default. It means if a thread modifies it structurally and multiple threads access it concurrently, it must be synchronized...
moveto() function in C
25 Jan, 2018 The header file graphics.h contains moveto() function which changes the current position to (x, y) Syntax : void moveto(int x, int y); Examples : Input : x = 70, y = 40 Output : Input : x = 50, y = 80 Output : Below is the implementation of moveto() function: // C Implementation for moveto()#include ...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Jan, 2018" }, { "code": null, "e": 153, "s": 54, "text": "The header file graphics.h contains moveto() function which changes the current position to (x, y)" }, { "code": null, "e": 162, "s": 153, "text": "Syntax...
Longest arithmetic progression that can be formed with the given common difference d
25 Jan, 2022 Given an unsorted array a[] of size n and an integer d which is the common difference, the task is to find the length of the longest AP that can be formed for all j, greater than some i(<n), if a[j] = a[i] + (j-i) * d i.e. a[j] is in the AP of a[i] from index i to j.Examples: Input: n = 6, d = 2 arr[] =...
[ { "code": null, "e": 54, "s": 26, "text": "\n25 Jan, 2022" }, { "code": null, "e": 246, "s": 54, "text": "Given an unsorted array a[] of size n and an integer d which is the common difference, the task is to find the length of the longest AP that can be formed for all j, greater ...
Theming Floating Action Button with Bottom Navigation Bar in Android
19 Feb, 2021 In the previous article How to Add a Floating Action Button to Bottom Navigation Bar in Android?, it’s well discussed how to add the Floating Action Button to the Bottom Navigation Bar in Android. Now to increase the UI/UX experience theming also can be done for the Bottom Navigation Bar. So in this articl...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Feb, 2021" }, { "code": null, "e": 524, "s": 28, "text": "In the previous article How to Add a Floating Action Button to Bottom Navigation Bar in Android?, it’s well discussed how to add the Floating Action Button to the Bottom Navig...
How to Make a Custom Array of Hashes in Ruby?
03 Jul, 2020 Arrays and hashes are data structures that allow you to store multiple values at once. In this article, we will explore their syntax, how to combine functionalities of both to create an array of hashes, retrieve values, and loop through them.An array is a collection of different or similar items, stored at...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Jul, 2020" }, { "code": null, "e": 512, "s": 28, "text": "Arrays and hashes are data structures that allow you to store multiple values at once. In this article, we will explore their syntax, how to combine functionalities of both to...
turtle.setx() function in Python
07 Jul, 2021 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support. This method is used to set the turtle’s first coordinate to x, leave the second coordinate...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2021" }, { "code": null, "e": 245, "s": 28, "text": "The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a ver...
Thread UncaughtExceptionHandler in Java with Examples
10 Jun, 2020 An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions. In this article, we will understand how to implement Thread.UncaughtExceptionHandler. Before implementing the handler, let’s understa...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2020" }, { "code": null, "e": 202, "s": 28, "text": "An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions." ...
Types of hacking
16 Jul, 2021 Overview :Hacking is that the activity of characteristic weaknesses throughout a knowledge processing system and a network to require advantage of the security to comprehend access to private knowledge or business data. Computers became obligatory to run a palmy business. It is not enough to possess isolat...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2021" }, { "code": null, "e": 780, "s": 28, "text": "Overview :Hacking is that the activity of characteristic weaknesses throughout a knowledge processing system and a network to require advantage of the security to comprehend a...
HTTP | PUT
31 Oct, 2019 The HTTP PUT request method is used to create a new resource or overwrite a representation of the target resource that is known by the client. Calling this method once is similar to calling it multiple times successively as it has the same effect. Though it is idempotent, we cannot cache its response. Synt...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Oct, 2019" }, { "code": null, "e": 331, "s": 28, "text": "The HTTP PUT request method is used to create a new resource or overwrite a representation of the target resource that is known by the client. Calling this method once is simi...
p5.js | erase() Function
24 Apr, 2020 The erase() function in p5.js is used to subtract all the drawings that would be done after the use of this function. The subtracted drawing area would reveal the webpage below the canvas. The effect of this function can be canceled by using the noErase() function. It does not affect the drawings done by t...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Apr, 2020" }, { "code": null, "e": 294, "s": 28, "text": "The erase() function in p5.js is used to subtract all the drawings that would be done after the use of this function. The subtracted drawing area would reveal the webpage belo...
Product of all pairwise consecutive elements in an Arrays in C++
Given an array arr[n] of n number of integers, the task is to find the product of all pairwise consecutive elements. Consecutive elements in an array arr[] are, if we are at ith element, i.e. arr[i] then its consecutive element will be either arr[i+1] or arr[i-1], so the product will be arr[i] * arr[i+1] or arr[i] * ar...
[ { "code": null, "e": 1304, "s": 1187, "text": "Given an array arr[n] of n number of integers, the task is to find the product of all pairwise consecutive elements." }, { "code": null, "e": 1515, "s": 1304, "text": "Consecutive elements in an array arr[] are, if we are at ith elem...
Shell Script To Show Names of All Sub-Directories Present in Current Directory
09 Apr, 2021 In this given program, we are required to write a shell script to print the list of all the sub-directories present in the current directory. Currently, when we are running this program, the terminal is opened at the root directory location and hence, we are getting a list of sub-directories present at the...
[ { "code": null, "e": 28, "s": 0, "text": "\n09 Apr, 2021" }, { "code": null, "e": 495, "s": 28, "text": "In this given program, we are required to write a shell script to print the list of all the sub-directories present in the current directory. Currently, when we are running th...
Python | Functions | Question 1
28 Jun, 2021 What will be the output of the following code : print type(type(int)) (A) type ‘int’ (B) type ‘type’ (C) Error(D) 0Answer: (B)Explanation: The type() function returns the class of the argument the object belongs to. Thus, type(int) returns which is of the type ‘type’ object.Quiz of this Question Functions ...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 102, "s": 54, "text": "What will be the output of the following code :" }, { "code": "print type(type(int))", "e": 124, "s": 102, "text": null }, { "code": null, "e"...
Path getFileSystem() method in Java with Examples
16 Jul, 2019 The Path interface was added to Java NIO in Java 7. The Path interface is located in the java.nio.file package, so the fully qualified name of the Java Path interface is java.nio.file.Path. A Java Path instance represents a path in the file system. A path can use to locate either a file or a directory.path...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2019" }, { "code": null, "e": 581, "s": 28, "text": "The Path interface was added to Java NIO in Java 7. The Path interface is located in the java.nio.file package, so the fully qualified name of the Java Path interface is java....
Date drill-down/drill-up in Tableau | by Gauri Rajgopal | Towards Data Science
When we are working with date fields in Tableau, there is often a need to drill down into it and get a much higher level of granularity. For example, while looking at the data year-wise, we may see some trend and want to further explore it and look at monthly trends or even quaterly trends. Tableau has great hierarchy ...
[ { "code": null, "e": 566, "s": 172, "text": "When we are working with date fields in Tableau, there is often a need to drill down into it and get a much higher level of granularity. For example, while looking at the data year-wise, we may see some trend and want to further explore it and look at mon...
Reversing the order of a ggplot2 legend - GeeksforGeeks
02 Jul, 2021 In this article, we will see how to Reverse the order of Legend Items of ggplot2 plots in the R programming language. First, load the ggplot2 package by using the library() function. If you have not installed it yet, you can simply install it by writing the below command in R Console. install.packages("ggp...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n02 Jul, 2021" }, { "code": null, "e": 26605, "s": 26487, "text": "In this article, we will see how to Reverse the order of Legend Items of ggplot2 plots in the R programming language." }, { "code": null, "e": 26773, ...
PYGLET – Sprite Scale - GeeksforGeeks
21 Aug, 2021 In this article, we will see how we can access scale of the sprite in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia, etc. A window is a “heavyweight” object occupying operating system resources. Windows may appear as...
[ { "code": null, "e": 26121, "s": 26093, "text": "\n21 Aug, 2021" }, { "code": null, "e": 26958, "s": 26121, "text": "In this article, we will see how we can access scale of the sprite in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually r...
Remove Invalid Parentheses - GeeksforGeeks
07 Mar, 2022 An expression will be given which can contain open and close parentheses and optionally some characters, No other operator will be there in string. We need to remove minimum number of parentheses to make the input string valid. If more than one valid output are possible removing same number of parentheses ...
[ { "code": null, "e": 26279, "s": 26251, "text": "\n07 Mar, 2022" }, { "code": null, "e": 26626, "s": 26279, "text": "An expression will be given which can contain open and close parentheses and optionally some characters, No other operator will be there in string. We need to remo...
Informatica Coding Round Question - GeeksforGeeks
23 Jul, 2021 Given an array with n elements and an integer k. Divide the array into subarrays, each of them containing k elements.For example: Input: arr[]={1, 32, 5, 6, 9, 3} and k=2 The subarrays will have elements:{132}, {56}, {93}. Now sort these subarrays as {56}, {93}, {132}. Merge these subarrays together and di...
[ { "code": null, "e": 26113, "s": 26085, "text": "\n23 Jul, 2021" }, { "code": null, "e": 26284, "s": 26113, "text": "Given an array with n elements and an integer k. Divide the array into subarrays, each of them containing k elements.For example: Input: arr[]={1, 32, 5, 6, 9, 3} ...
Java if statement with Examples - GeeksforGeeks
31 Mar, 2022 Decision Making in Java helps to write decision driven statements and execute a particular set of code based on certain conditions.The Java if statement is the most simple decision-making statement. It is used to decide whether a certain statement or block of statements will be executed or not i.e if a cer...
[ { "code": null, "e": 30197, "s": 30169, "text": "\n31 Mar, 2022" }, { "code": null, "e": 30581, "s": 30197, "text": "Decision Making in Java helps to write decision driven statements and execute a particular set of code based on certain conditions.The Java if statement is the mos...
Area Chart with Altair in Python - GeeksforGeeks
29 Sep, 2021 Prerequisite: Introduction to Altair in Python An Area Graph shows the change in a quantitative quantity with respect to some other variable. It is simply a line chart where the area under the curve is colored/shaded. It is best used to visualize trends over a period of time, where you want to see how the ...
[ { "code": null, "e": 25673, "s": 25645, "text": "\n29 Sep, 2021" }, { "code": null, "e": 25720, "s": 25673, "text": "Prerequisite: Introduction to Altair in Python" }, { "code": null, "e": 26194, "s": 25720, "text": "An Area Graph shows the change in a quantit...
HTML Neumorphism Login Form - GeeksforGeeks
04 Dec, 2021 Neumorphism combines developments of flat design and skeuomorphism. Neumorphism, or soft UI, is a visual style that combines background colors, shapes, gradients, highlights, and shadows to ensure graphic intense buttons and switches. All that allows achieving a soft, extruded plastic look, and almost 3D s...
[ { "code": null, "e": 26647, "s": 26619, "text": "\n04 Dec, 2021" }, { "code": null, "e": 26962, "s": 26647, "text": "Neumorphism combines developments of flat design and skeuomorphism. Neumorphism, or soft UI, is a visual style that combines background colors, shapes, gradients, ...
NamedTuple in Julia - GeeksforGeeks
27 Feb, 2020 Tuples are a collection of heterogeneous and homogeneous datatypes written as an array, separated by commas. Tuples are basically immutable collections of distinct values. Tuples are different from arrays because arrays only take homogeneous datatypes as values. NamedTuple is a type of Tuple whose elements...
[ { "code": null, "e": 25403, "s": 25375, "text": "\n27 Feb, 2020" }, { "code": null, "e": 26032, "s": 25403, "text": "Tuples are a collection of heterogeneous and homogeneous datatypes written as an array, separated by commas. Tuples are basically immutable collections of distinct...
Flutter - Realtime Database in Firebase - GeeksforGeeks
23 Jun, 2021 Firebase helps developers to build and run their apps successfully, its backend developed by Google. Firebase is very easy to use for beginners, it provides many functionalities like Firebase Authentication, Cloud Firestore, Realtime Database, Firebase Storage, etc which help to build and optimize the appl...
[ { "code": null, "e": 25955, "s": 25927, "text": "\n23 Jun, 2021" }, { "code": null, "e": 26416, "s": 25955, "text": "Firebase helps developers to build and run their apps successfully, its backend developed by Google. Firebase is very easy to use for beginners, it provides many f...
How to open dialer in Android through Intent? - GeeksforGeeks
03 Nov, 2020 The phone dialer is an activity available with the Android operating system to call a number. Usually, such activity may or may not have an EditText, for taking the number as input, and a Call button. When the user presses the Call button, it invokes the dialer app activity. Use of ‘tel:’ prefix is recomme...
[ { "code": null, "e": 25861, "s": 25833, "text": "\n03 Nov, 2020" }, { "code": null, "e": 26336, "s": 25861, "text": "The phone dialer is an activity available with the Android operating system to call a number. Usually, such activity may or may not have an EditText, for taking th...
Minimum adjacent swaps required to Sort Binary array - GeeksforGeeks
16 Aug, 2021 Given a binary array, task is to sort this binary array using minimum swaps. We are allowed to swap only adjacent elements Examples: Input : [0, 0, 1, 0, 1, 0, 1, 1] Output : 3 1st swap : [0, 0, 1, 0, 0, 1, 1, 1] 2nd swap : [0, 0, 0, 1, 0, 1, 1, 1] 3rd swap : [0, 0, 0, 0, 1, 1, 1, 1] Input : Array = [0, ...
[ { "code": null, "e": 26193, "s": 26165, "text": "\n16 Aug, 2021" }, { "code": null, "e": 26316, "s": 26193, "text": "Given a binary array, task is to sort this binary array using minimum swaps. We are allowed to swap only adjacent elements" }, { "code": null, "e": 263...
ES6 - Array Method forEach()
forEach() method calls a function for each element in the array. array.forEach(callback[, thisObject]); callback − Function to test for each element. callback − Function to test for each element. thisObject − Object to use as this when executing callback. thisObject − Object to use as this when executing callback. R...
[ { "code": null, "e": 2342, "s": 2277, "text": "forEach() method calls a function for each element in the array." }, { "code": null, "e": 2384, "s": 2342, "text": "array.forEach(callback[, thisObject]); \n" }, { "code": null, "e": 2430, "s": 2384, "text": "cal...
jQuery - filter( selector ) Method
The filter( selector ) method filters all elements from the set of matched elements that do not match the specified selector(s). Here is the simple syntax to use this method − selector.filter( selector ) Here is the description of all the parameters used by this method − selector − It could be a comma-separated list o...
[ { "code": null, "e": 2451, "s": 2322, "text": "The filter( selector ) method filters all elements from the set of matched elements that do not match the specified selector(s)." }, { "code": null, "e": 2498, "s": 2451, "text": "Here is the simple syntax to use this method −" }, ...
How to know which Statistical Test to use for Hypothesis Testing? | by Satyam Kumar | Towards Data Science
Statistics is an integral part of Data Science and Machine Learning. Statistics is a subfield of mathematics that refers to the formalization of relationships between variables in the form of mathematical equations. It tries to find relationships between variables to predict the outcomes. Statistics is all about, invol...
[ { "code": null, "e": 454, "s": 47, "text": "Statistics is an integral part of Data Science and Machine Learning. Statistics is a subfield of mathematics that refers to the formalization of relationships between variables in the form of mathematical equations. It tries to find relationships between v...
The 9 must know functions to handle any pandas dataframe | by Alejandra Vlerick | Towards Data Science
Five functions to get to know your dataset Filter your dataframe by value Had datetime type Merge multiple datasets Handle columns Group by value Apply a function Use the lambda method If you’re not already a member, get your Medium Membership here! The first thing to do after loading a dataset is to take a good look a...
[ { "code": null, "e": 215, "s": 172, "text": "Five functions to get to know your dataset" }, { "code": null, "e": 246, "s": 215, "text": "Filter your dataframe by value" }, { "code": null, "e": 264, "s": 246, "text": "Had datetime type" }, { "code": nul...
C program to convert upper case to lower and vice versa by using string concepts
Converting upper to lower and lower to upper is generally termed as toggle. Toggle each character means, in a given string, the lower letter is print in upper form and upper case is print in lower letter respectively. The C program to convert upper case to lower and lower case to upper is given below − Live Demo #incl...
[ { "code": null, "e": 1138, "s": 1062, "text": "Converting upper to lower and lower to upper is generally termed as toggle." }, { "code": null, "e": 1280, "s": 1138, "text": "Toggle each character means, in a given string, the lower letter is print in upper form and upper case is ...
Spring @Qualifier Annotation
There may be a situation when you create more than one bean of the same type and want to wire only one of them with a property. In such cases, you can use the @Qualifier annotation along with @Autowired to remove the confusion by specifying which exact bean will be wired. Following is an example to show the use of @Qua...
[ { "code": null, "e": 2631, "s": 2292, "text": "There may be a situation when you create more than one bean of the same type and want to wire only one of them with a property. In such cases, you can use the @Qualifier annotation along with @Autowired to remove the confusion by specifying which exact ...
How to Insert custom date into MySQL timestamp field?
The problem with UNIX_TIMESTAMP() function is that it returns an integer while we want to insert custom date i.e. not any integer part to MySQL date. Do not use UNIX_TIMESTAMP() for your column defined as TIMESTAMP because UNIX_TIMESTAMP() returns an integer. Check the UNIX_TIMESTAMP. The query is as follows − mysql> s...
[ { "code": null, "e": 1212, "s": 1062, "text": "The problem with UNIX_TIMESTAMP() function is that it returns an integer while we want to insert custom date i.e. not any integer part to MySQL date." }, { "code": null, "e": 1322, "s": 1212, "text": "Do not use UNIX_TIMESTAMP() for ...
C++ Exception Handling
An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero. Exceptions provide a way to transfer control from one part of a program to another. C++ exception handling i...
[ { "code": null, "e": 2530, "s": 2318, "text": "An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero." }, { "code": null, "e": 2690...
Ethical Hacking - Cross-Site Scripting
Cross-site scripting (XSS) is a code injection attack that allows an attacker to execute malicious JavaScript in another user's browser. The attacker does not directly target his victim. Instead, he exploits a vulnerability in a website that the victim visits, in order to get the website to deliver the malicious JavaSc...
[ { "code": null, "e": 2616, "s": 2479, "text": "Cross-site scripting (XSS) is a code injection attack that allows an attacker to execute malicious JavaScript in another user's browser." }, { "code": null, "e": 3120, "s": 2616, "text": "The attacker does not directly target his vic...
How to Build a Memory-Based Recommendation System using Python Surprise | by Mate Pocs | Towards Data Science
Ahh, the excruciating pain of our comfortable modern life, the cupcakes all look enticing, but there is no way you can try them all, so which one(s) should you eat? Regardless of the platform, your choices are usually practically limitless, but your resources as consumers are sadly not. Do not worry, recommendation sys...
[ { "code": null, "e": 517, "s": 172, "text": "Ahh, the excruciating pain of our comfortable modern life, the cupcakes all look enticing, but there is no way you can try them all, so which one(s) should you eat? Regardless of the platform, your choices are usually practically limitless, but your resou...
Check if some elements of array are equal JavaScript
We have an array of numbers that have got some redundant entries, our job is to write a function that takes in the array and groups all the identical entries into one subarray and returns the new array thus formed. For example − //If the input array is: const arr = [1, 3, 3, 1]; //then the output should be: const outpu...
[ { "code": null, "e": 1277, "s": 1062, "text": "We have an array of numbers that have got some redundant entries, our job is to write a\nfunction that takes in the array and groups all the identical entries into one subarray and returns\nthe new array thus formed." }, { "code": null, "e":...
Cat or Dog — Image Classification with Convolutional Neural Network | by Andrej Baranovskij | Towards Data Science
The goal of this post is to show how convnet (CNN — Convolutional Neural Network) works. I will be using classical cat/dog classification example described in François Chollet book — Deep Learning with Python. Source code for this example is available on François Chollet GitHub. I’m using this source code to run my e...
[ { "code": null, "e": 502, "s": 171, "text": "The goal of this post is to show how convnet (CNN — Convolutional Neural Network) works. I will be using classical cat/dog classification example described in François Chollet book — Deep Learning with Python. Source code for this example is available on...
Histogram Plotting and stretching in Python (without using inbuilt function) - GeeksforGeeks
10 May, 2020 Prerequisites: OpenCV Python Program to analyze an image using Histogram Histogram of a digital image with intensity levels in the range of 0 to L-1 is a discrete function – h(rk) = nk where rk = kth intensity value and no = number of pixels in the image with rk intensity value. If the image has M rows and...
[ { "code": null, "e": 24236, "s": 24208, "text": "\n10 May, 2020" }, { "code": null, "e": 24309, "s": 24236, "text": "Prerequisites: OpenCV Python Program to analyze an image using Histogram" }, { "code": null, "e": 24410, "s": 24309, "text": "Histogram of a di...
Tryit Editor v3.7
Tryit: A description list
[]
C++ Program to Convert String to Integer - GeeksforGeeks
01 May, 2020 Given a string of digits, the task is to convert the string to an integer. Examples: Input : str = "12345" Output : 12345 Input : str = "876538"; Output : 876538 Input : str = "0028"; Output : 28 // C++ program to convert String into Integer#include <bits/stdc++.h>using namespace std; // function for c...
[ { "code": null, "e": 25907, "s": 25879, "text": "\n01 May, 2020" }, { "code": null, "e": 25982, "s": 25907, "text": "Given a string of digits, the task is to convert the string to an integer." }, { "code": null, "e": 25992, "s": 25982, "text": "Examples:" },...
Atomic Variables in Java with Examples - GeeksforGeeks
10 Jul, 2021 In multithreading, the shared entity mostly leads to a problem when concurrency is incorporated. A shared entity such as, mutable object or variable, might be changed, which may result in the inconsistency of the program or database. So, it becomes crucial to deal with the shared entity while accessed conc...
[ { "code": null, "e": 25517, "s": 25489, "text": "\n10 Jul, 2021" }, { "code": null, "e": 25905, "s": 25517, "text": "In multithreading, the shared entity mostly leads to a problem when concurrency is incorporated. A shared entity such as, mutable object or variable, might be chan...
CSS - Flip Effect
An Element can turn over or cause to turn over with a sudden quick movement. @keyframes flip { 0% { transform: perspective(400px) rotateY(0); animation-timing-function: ease-out; } 40% { transform: perspective(400px) translateZ(150px) rotateY(170deg); animation-timing-function: ease-out...
[ { "code": null, "e": 2703, "s": 2626, "text": "An Element can turn over or cause to turn over with a sudden quick movement." }, { "code": null, "e": 3315, "s": 2703, "text": "@keyframes flip {\n 0% {\n transform: perspective(400px) rotateY(0);\n animation-timing-funct...
Extract string from between quotations - Python - GeeksforGeeks
03 Jan, 2021 In this article, we will learn to extract strings in between the quotations using Python. Method 1: To extract strings in between the quotations we can use findall() method from re library. Python3 import reinputstring = ' some strings are present in between "geeks" "for" "geeks" ' print(re.findall('"([^"...
[ { "code": null, "e": 26061, "s": 26033, "text": "\n03 Jan, 2021" }, { "code": null, "e": 26151, "s": 26061, "text": "In this article, we will learn to extract strings in between the quotations using Python." }, { "code": null, "e": 26161, "s": 26151, "text": "...
How to convert given number to a character array - GeeksforGeeks
05 Jul, 2021 Given an integer number N, the task is to convert it into a character array. Example: Input: N = 2020 Output: {2, 0, 2, 0} Explanation: Here char array arr[] = {2, 0, 2, 0}Input: N = 12349 Output: {1, 2, 3, 4, 9} Explanation: Here char array arr[] = {1, 2, 3, 4, 9} Approach: The basic approach to do thi...
[ { "code": null, "e": 24854, "s": 24826, "text": "\n05 Jul, 2021" }, { "code": null, "e": 24931, "s": 24854, "text": "Given an integer number N, the task is to convert it into a character array." }, { "code": null, "e": 24942, "s": 24931, "text": "Example: " ...
C/C++ if else statement with Examples - GeeksforGeeks
22 Nov, 2019 Decision Making in C/C++ helps to write decision driven statements and execute a particular set of code based on certain conditions. The if statement alone tells us that if a condition is true it will execute a block of statements and if the condition is false it won’t. But what if we want to do something ...
[ { "code": null, "e": 24234, "s": 24206, "text": "\n22 Nov, 2019" }, { "code": null, "e": 24367, "s": 24234, "text": "Decision Making in C/C++ helps to write decision driven statements and execute a particular set of code based on certain conditions." }, { "code": null, ...
C# | this Keyword - GeeksforGeeks
15 Nov, 2021 this keyword is used to refer to the current instance of the class. It is used to access members from the constructors, instance methods, and instance accessors. this keyword is also used to track the instance which is invoked to perform some calculation or further processing related to that instance. Foll...
[ { "code": null, "e": 23936, "s": 23908, "text": "\n15 Nov, 2021" }, { "code": null, "e": 24374, "s": 23936, "text": "this keyword is used to refer to the current instance of the class. It is used to access members from the constructors, instance methods, and instance accessors. t...
How can Selenium select each div separately that have the same class?
We can select each div separately that have the same class with the help of the Selenium webdriver. Often in the html code, we find more than one div element having a class attribute with the same value. Let us see the html code of elements with div tag having the same value set for the class attribute (as highlighted ...
[ { "code": null, "e": 1266, "s": 1062, "text": "We can select each div separately that have the same class with the help of the Selenium webdriver. Often in the html code, we find more than one div element having a class attribute with the same value." }, { "code": null, "e": 1487, "s...
Python dictionary cmp() Method
Python dictionary method cmp() compares two dictionaries based on key and values. Following is the syntax for cmp() method − cmp(dict1, dict2) dict1 − This is the first dictionary to be compared with dict2. dict1 − This is the first dictionary to be compared with dict2. dict2 − This is the second dictionary to be com...
[ { "code": null, "e": 2327, "s": 2244, "text": "Python dictionary method cmp() compares two dictionaries based on key and values." }, { "code": null, "e": 2370, "s": 2327, "text": "Following is the syntax for cmp() method −" }, { "code": null, "e": 2389, "s": 2370...
Python – API.send_direct_message() in Tweepy
12 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Jun, 2020" }, { "code": null, "e": 428, "s": 28, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be twee...
PyInputPlus module in Python
22 Jun, 2020 PyInputPlus is a Python module used for taking inputs with additional validation features. PyInputPlus will keep asking the user for text until they enter valid input. Installation: Install the module via pip command : pip install PyInputPlus Here are the functions used to take various types of input : in...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2020" }, { "code": null, "e": 196, "s": 28, "text": "PyInputPlus is a Python module used for taking inputs with additional validation features. PyInputPlus will keep asking the user for text until they enter valid input." }, ...
Silhouette Index – Cluster Validity index | Set 2
22 May, 2019 Prerequisite: Dunn index and DB index – Cluster Validity indices Many interesting algorithms are applied to analyze very large datasets. Most algorithms don’t provide any means for its validation and evaluation. So it is very difficult to conclude which are the best clusters and should be taken for analysi...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 May, 2019" }, { "code": null, "e": 118, "s": 53, "text": "Prerequisite: Dunn index and DB index – Cluster Validity indices" }, { "code": null, "e": 363, "s": 118, "text": "Many interesting algorithms are applied ...
Python | Remove items from Set
27 Dec, 2017 In this article, we will try to a way in which the elements can be removed from the set in a sequential manner. Before going into that let’s learn various characteristic of a set. A Set is an unordered collection data type that is iterable, mutable and has no duplicate elements. Python’s set class represen...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2017" }, { "code": null, "e": 536, "s": 28, "text": "In this article, we will try to a way in which the elements can be removed from the set in a sequential manner. Before going into that let’s learn various characteristic of a ...
How to create a dialog box or window in HTML ?
05 Jun, 2020 In this article, we will create a dialog box or window using the <dialog> tag in the document. This tag is used to create popup dialog and models on a web page. This tag is new in HTML5. Syntax: <dialog open> Contents... </dialog> Example 1: <!DOCTYPE html><html> <head> <title> How to define a d...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 215, "s": 28, "text": "In this article, we will create a dialog box or window using the <dialog> tag in the document. This tag is used to create popup dialog and models on a web page. This tag is ne...
Mathematics | Predicates and Quantifiers | Set 2
13 Dec, 2019 Prerequisite : Predicates and Quantifiers Set 1, Propositional Equivalences Logical Equivalences involving QuantifiersTwo logical statements involving predicates and quantifiers are considered equivalent if and only if they have the same truth value no matter which predicates are substituted into these sta...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 Dec, 2019" }, { "code": null, "e": 128, "s": 52, "text": "Prerequisite : Predicates and Quantifiers Set 1, Propositional Equivalences" }, { "code": null, "e": 515, "s": 128, "text": "Logical Equivalences involvin...
p5.Color setAlpha() Method
28 Jul, 2020 The setAlpha() method in p5.js is used to set the alpha component of a p5.Color object. The range of the alpha value is dependent on the current color mode. In the default RGB color mode, the value can be between 0 and 255. Syntax: setAlpha( alpha ) Parameters: This method accepts a single parameter as me...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Jul, 2020" }, { "code": null, "e": 252, "s": 28, "text": "The setAlpha() method in p5.js is used to set the alpha component of a p5.Color object. The range of the alpha value is dependent on the current color mode. In the default RGB...
Given two strings, find if first string is a subsequence of second
01 Jul, 2022 Given two strings str1 and str2, find if str1 is a subsequence of str2. A subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements (source: wiki). The expected time complexity is linear. Examples : Input: str1 = "AXY...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Jul, 2022" }, { "code": null, "e": 329, "s": 52, "text": "Given two strings str1 and str2, find if str1 is a subsequence of str2. A subsequence is a sequence that can be derived from another sequence by deleting some elements withou...
Count number of elements between two given elements in array
15 Apr, 2021 Given an unsorted array of n elements and also given two points num1 and num2. The task is to count number of elements occurs between the given points (excluding num1 and num2). If there are multiple occurrences of num1 and num2, we need to consider leftmost occurrence of num1 and rightmost occurrence of n...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Apr, 2021" }, { "code": null, "e": 375, "s": 52, "text": "Given an unsorted array of n elements and also given two points num1 and num2. The task is to count number of elements occurs between the given points (excluding num1 and num...
Compute the mean, standard deviation, and variance of a given NumPy array
29 Aug, 2020 In NumPy, we can compute the mean, standard deviation, and variance of a given array along the second axis by two approaches first is by using inbuilt functions and second is by the formulas of the mean, standard deviation, and variance. Method 1: Using numpy.mean(), numpy.std(), numpy.var() Python import...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Aug, 2020" }, { "code": null, "e": 267, "s": 28, "text": " In NumPy, we can compute the mean, standard deviation, and variance of a given array along the second axis by two approaches first is by using inbuilt functions and second is...
Dassault Systemes Interview Experience for Software Developer
31 Mar, 2021 Round 1 (Online Assessment – 60 minutes): This test made up to 23 questions. The estimated test time is 30 minutes. However, you have up to 60 minutes to finish the test (after which the test will end automatically). The below are some questions, which were asked while I was giving the test. Expectation...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Mar, 2021" }, { "code": null, "e": 322, "s": 28, "text": "Round 1 (Online Assessment – 60 minutes): This test made up to 23 questions. The estimated test time is 30 minutes. However, you have up to 60 minutes to finish the test (afte...
Given a HUGE number check if it’s a power of two.
28 May, 2022 Find if a given number, num is the power of 2 or not. More specifically, find if the given number can be expressed as 2^k where k >= 1. Return 1 if the number is a power of 2 else return 0NOTE : A number of digits of the given number i.e (num) can be greater than 100. There are no leading zeros before a n...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 May, 2022" }, { "code": null, "e": 248, "s": 52, "text": "Find if a given number, num is the power of 2 or not. More specifically, find if the given number can be expressed as 2^k where k >= 1. Return 1 if the number is a power of 2...
Go Tutorial
Go is a popular programming language. Go is used to create computer programs. Our "Try it Yourself" editor makes it easy to learn Go. You can edit Go code and view the result in your browser. Click on the "Try it Yourself" button to see how it works. Insert the missing part of the code below to output "Hello World". pa...
[ { "code": null, "e": 38, "s": 0, "text": "Go is a popular programming language." }, { "code": null, "e": 78, "s": 38, "text": "Go is used to create computer programs." }, { "code": null, "e": 192, "s": 78, "text": "Our \"Try it Yourself\" editor makes it easy ...
Visualizing My LinkedIn Network. Seeing my entire network in one... | by Tavish Gobindram | Towards Data Science
That’s pretty much how I feel at networking events in real-life. However, using LinkedIn to build up my network has been a completely different experience — I even landed one of my internships by cold-messaging someone on the platform. So I really value this platform, a lot. But LinkedIn has failed me in one major aspe...
[ { "code": null, "e": 447, "s": 171, "text": "That’s pretty much how I feel at networking events in real-life. However, using LinkedIn to build up my network has been a completely different experience — I even landed one of my internships by cold-messaging someone on the platform. So I really value t...
Clojure - Sets
Sets in Clojure are a set of unique values. Sets are created in Clojure with the help of the set command. Following is an example of the creation of sets in Clojure. (ns clojure.examples.example (:gen-class)) (defn example [] (println (set '(1 1 2 2)))) (example) The above code produces the following output. #{1,...
[ { "code": null, "e": 2480, "s": 2374, "text": "Sets in Clojure are a set of unique values. Sets are created in Clojure with the help of the set command." }, { "code": null, "e": 2540, "s": 2480, "text": "Following is an example of the creation of sets in Clojure." }, { "c...
How do you find the number of dimensions of an array in C#?
To find the number of dimensions of an array, use the Rank property. arr.Rank Here, arr is our array − int[,] arr = new int[3,4]; If you also want to get the rows and columns it has, then use the GetLength property − arr.GetLength(0); arr.GetLength(1); The following is the complete code − Live Demo using System; clas...
[ { "code": null, "e": 1131, "s": 1062, "text": "To find the number of dimensions of an array, use the Rank property." }, { "code": null, "e": 1140, "s": 1131, "text": "arr.Rank" }, { "code": null, "e": 1165, "s": 1140, "text": "Here, arr is our array −" }, ...
Cryptography with Python - Caesar Cipher
In the last chapter, we have dealt with reverse cipher. This chapter talks about Caesar cipher in detail. The algorithm of Caesar cipher holds the following features − Caesar Cipher Technique is the simple and easy method of encryption technique. Caesar Cipher Technique is the simple and easy method of encryption techn...
[ { "code": null, "e": 2398, "s": 2292, "text": "In the last chapter, we have dealt with reverse cipher. This chapter talks about Caesar cipher in detail." }, { "code": null, "e": 2460, "s": 2398, "text": "The algorithm of Caesar cipher holds the following features −" }, { ...
Check if given string contains all the digits - GeeksforGeeks
04 Aug, 2021 Given a string str consisting of alphanumeric characters, the task is to check whether the string contains all the digits from 1 to 9. Examples: Input: str = “Geeks12345for69708” Output: Yes All the digits from 0 to 9 are present in the given string. Input: str = “Amazing1234” Output: No Approach: Creat...
[ { "code": null, "e": 24715, "s": 24687, "text": "\n04 Aug, 2021" }, { "code": null, "e": 24850, "s": 24715, "text": "Given a string str consisting of alphanumeric characters, the task is to check whether the string contains all the digits from 1 to 9." }, { "code": null, ...
HTML align Attribute - GeeksforGeeks
25 Feb, 2022 The align Attribute in HTML is used to is used to specify the alignment of text content of The Element. this attribute is is used in all elements. Supported Tags: <applet> <caption> <col> <colgroup> <hr> <iframe> <img> <legend> <table> <tbody> <td> <tfoot> <th> <thead> <tr> Syntax: <element_name align="le...
[ { "code": null, "e": 30320, "s": 30292, "text": "\n25 Feb, 2022" }, { "code": null, "e": 30467, "s": 30320, "text": "The align Attribute in HTML is used to is used to specify the alignment of text content of The Element. this attribute is is used in all elements." }, { "c...
How can I profile C++ code running in Linux?
There are many great profiling tools for profiling C++ programs on Linux. The most widely used tool is Valgrind. It is a programming tool for memory debugging, memory leak detection, and profiling. You can use valgrind by passing the binary to it and setting the tool to callgrind. First generate the binary by compiling...
[ { "code": null, "e": 1397, "s": 1062, "text": "There are many great profiling tools for profiling C++ programs on Linux. The most widely used tool is Valgrind. It is a programming tool for memory debugging, memory leak detection, and profiling. You can use valgrind by passing the binary to it and se...
How to Use Machine Learning for Drug Discovery | by Chanin Nantasenamat | Towards Data Science
We have probably seen the application of machine learning in one form or another. For instance, machine learning have been used together with computer vision in self-driving cars and self-checkout convenience stores, in retail for market basket analysis (i.e. finding products that are usually purchased together), in en...
[ { "code": null, "e": 552, "s": 171, "text": "We have probably seen the application of machine learning in one form or another. For instance, machine learning have been used together with computer vision in self-driving cars and self-checkout convenience stores, in retail for market basket analysis (...
Dyck path - GeeksforGeeks
07 Jul, 2021 Consider a n x n grid with indexes of top left corner as (0, 0). Dyck path is a staircase walk from bottom left, i.e., (n-1, 0) to top right, i.e., (0, n-1) that lies above the diagonal cells (or cells on line from bottom left to top right).The task is to count the number of Dyck Paths from (n-1, 0) to (0,...
[ { "code": null, "e": 24173, "s": 24145, "text": "\n07 Jul, 2021" }, { "code": null, "e": 24498, "s": 24173, "text": "Consider a n x n grid with indexes of top left corner as (0, 0). Dyck path is a staircase walk from bottom left, i.e., (n-1, 0) to top right, i.e., (0, n-1) that l...
unordered_map emplace() in C++ STL - GeeksforGeeks
09 Jan, 2019 The unordered_map::emplace() is a built-in function in C++ STL which inserts the key and its element in the unordered_map container. It effectively increases the container size by one. If the same key is emplaced more than once, the map stores the first element only as the map is a container which does not...
[ { "code": null, "e": 24042, "s": 24014, "text": "\n09 Jan, 2019" }, { "code": null, "e": 24389, "s": 24042, "text": "The unordered_map::emplace() is a built-in function in C++ STL which inserts the key and its element in the unordered_map container. It effectively increases the c...
Set border width with CSS
The border-width property allows you to set the width of element borders. The value of this property could be either a length in px, pt or cm or it should be set to thin, medium or thick. You can try to run the following code to set the border width with CSS: <html> <head> </head> <body> <p style = "bord...
[ { "code": null, "e": 1250, "s": 1062, "text": "The border-width property allows you to set the width of element borders. The value of this property could be either a length in px, pt or cm or it should be set to thin, medium or thick." }, { "code": null, "e": 1322, "s": 1250, "te...
(Part 1)Time Series: Predicting Hourly Energy consumption of San Diego (short & long term forecasts) | Towards Data Science
Part 1 of this post will deal with the basics of energy (electricity) consumption, how to import, resample, and merge datasets gathered from different sources, EDA, and draw some basic inferences from San Diego’s energy consumption data. If you are only interested in the modeling part then please feel free to jump dire...
[ { "code": null, "e": 521, "s": 172, "text": "Part 1 of this post will deal with the basics of energy (electricity) consumption, how to import, resample, and merge datasets gathered from different sources, EDA, and draw some basic inferences from San Diego’s energy consumption data. If you are only i...
Calculate Factorial in Python
Suppose we have a number n less than or equal to 10, we have to find its factorial. We know that the factorial of a number n is n! = n * (n - 1) * (n - 2) * ... * 1. So, if the input is like 6, then the output will be 720 To solve this, we will follow these steps − Define a function solve(). This will take nif n <= 1, ...
[ { "code": null, "e": 1228, "s": 1062, "text": "Suppose we have a number n less than or equal to 10, we have to find its factorial. We know\nthat the factorial of a number n is n! = n * (n - 1) * (n - 2) * ... * 1." }, { "code": null, "e": 1284, "s": 1228, "text": "So, if the inpu...
GitLab - Git Commands
Git commands are used for sharing and combining the code easily with other developers. Following are the some basic Git commands can be used to work with Git − The version of the Git can be checked by using the below command − $ git --version Add Git username and email address to identify the author while committing ...
[ { "code": null, "e": 2412, "s": 2324, "text": "Git commands are used for sharing and combining the code easily with other developers. " }, { "code": null, "e": 2485, "s": 2412, "text": "Following are the some basic Git commands can be used to work with Git −" }, { "code":...
multimap::erase() in C++ STL
In this article we will be discussing the working, syntax, and examples of multimap::erase() function in C++ STL. Multimaps are the associative containers, which are similar to map containers. It also facilitates storing the elements formed by a combination of key-value and mapped value in a specific order. In a multim...
[ { "code": null, "e": 1176, "s": 1062, "text": "In this article we will be discussing the working, syntax, and examples of multimap::erase() function in C++ STL." }, { "code": null, "e": 1532, "s": 1176, "text": "Multimaps are the associative containers, which are similar to map c...
Create your experimental design with a simple Python command | by Tirthajyoti Sarkar | Towards Data Science
UPDATE (July 2019): This set of codes are now available in the form of a standard Python library — doepy. All you have to do is to run pip install doepy in your terminal. Then use the library for generating design tables following the documentation here. Read the docs for Python library doepy. doepy.readthedocs.io Desi...
[ { "code": null, "e": 426, "s": 171, "text": "UPDATE (July 2019): This set of codes are now available in the form of a standard Python library — doepy. All you have to do is to run pip install doepy in your terminal. Then use the library for generating design tables following the documentation here."...