title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Adding Images to a Word Document using Java - GeeksforGeeks
16 Sep, 2021 Java makes it possible to add images to Word documents using the addPicture() method of XWPFRun class provided by Apache POI package. Apache POI is a popular API developed and maintained by the Apache Software Foundation. It provides several classes and methods to perform different file operations on Micro...
[ { "code": null, "e": 26123, "s": 26095, "text": "\n16 Sep, 2021" }, { "code": null, "e": 26574, "s": 26123, "text": "Java makes it possible to add images to Word documents using the addPicture() method of XWPFRun class provided by Apache POI package. Apache POI is a popular API d...
A Quick Guide to GeoJSONs in Power BI | by Lance McDiffett | Towards Data Science
Many cities have a wealth of safety data — crime, moving violations, crashes, etc.— but having data in and of itself does not always equate to having information. If it did, the world wouldn’t need analysts! After repeatedly receiving requests to perform traffic safety analytics for our clients, I undertook the task of...
[ { "code": null, "e": 380, "s": 172, "text": "Many cities have a wealth of safety data — crime, moving violations, crashes, etc.— but having data in and of itself does not always equate to having information. If it did, the world wouldn’t need analysts!" }, { "code": null, "e": 681, "...
What are pointers in C#?
Pointer is a variable whose value is the address of another variable i.e., the direct address of the memory location. The syntax of a pointer is − type *var-name; The following is how you can declare a pointer type − double *z; /* pointer to a double */ C# allows using pointer variables in a function of code block when...
[ { "code": null, "e": 1180, "s": 1062, "text": "Pointer is a variable whose value is the address of another variable i.e., the direct address of the memory location." }, { "code": null, "e": 1209, "s": 1180, "text": "The syntax of a pointer is −" }, { "code": null, "e"...
PyQt5 QDockWidget – Setting Layout - GeeksforGeeks
31 Jan, 2022 In this article we will see how we can set the layout to the QDockWidget. QDockWidget provides the concept of dock widgets, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area around the central widget in a QMainWindow(original window). Layout sp...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n31 Jan, 2022" }, { "code": null, "e": 24653, "s": 24292, "text": "In this article we will see how we can set the layout to the QDockWidget. QDockWidget provides the concept of dock widgets, also know as tool palettes or utility w...
What is the difference between re.match(), re.search() and re.findall() methods in Python?
re.match(), re.search() and re.findall() are methods of the Python module re. The re.match() method finds match if it occurs at start of the string. For example, calling match() on the string ‘TP Tutorials Point TP’ and looking for a pattern ‘TP’ will match. import re result = re.match(r'TP', 'TP Tutorials Point TP')...
[ { "code": null, "e": 1140, "s": 1062, "text": "re.match(), re.search() and re.findall() are methods of the Python module re." }, { "code": null, "e": 1323, "s": 1140, "text": "The re.match() method finds match if it occurs at start of the string. For example, calling match() on t...
How to create an Autocomplete with JavaScript?
To create autocompletion in a form, the code is as follows − Live Demo <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style> * { box-sizing: border-box; } body { margin: 10px; padding: 0px; font-family: "Segoe UI", Tahoma, Geneva...
[ { "code": null, "e": 1123, "s": 1062, "text": "To create autocompletion in a form, the code is as follows −" }, { "code": null, "e": 1134, "s": 1123, "text": " Live Demo" }, { "code": null, "e": 5796, "s": 1134, "text": "<!DOCTYPE html>\n<html>\n<head>\n<meta ...
How to show the index of the selected option in a dropdown list with JavaScript?
To show the index of the selected option in a drop-down list, use the selectedIndex property in JavaScript. You can try to run the following code to display the index of the selected option − Live Demo <!DOCTYPE html> <html> <body> <form id="myForm"> <select id="selectNow"> <option>One</op...
[ { "code": null, "e": 1170, "s": 1062, "text": "To show the index of the selected option in a drop-down list, use the selectedIndex property in JavaScript." }, { "code": null, "e": 1254, "s": 1170, "text": "You can try to run the following code to display the index of the selected...
Role of CSS Grid Container
Grid Container in CSS has grid items. These items are placed inside rows and columns. Let us create a CSS Grid container and set the number of columns in a Grid: Live Demo <!DOCTYPE html> <html> <head> <style> .container { display: grid; background-color: blue; grid...
[ { "code": null, "e": 1164, "s": 1062, "text": "Grid Container in CSS has grid items. These items are placed inside rows and columns. Let us create a" }, { "code": null, "e": 1224, "s": 1164, "text": "CSS Grid container and set the number of columns in a Grid:" }, { "code"...
How to determine the version of the C++ standard used by the compiler?
Sometimes we need to know that, what is the current C++ standard. To get this kind of information, we can use the macro called __cplusplus. For different standards, the value of this will be like below. #include<iostream> int main() { if (__cplusplus == 201703L) std::cout << "C++17" << endl; else if (__cplu...
[ { "code": null, "e": 1265, "s": 1062, "text": "Sometimes we need to know that, what is the current C++ standard. To get this kind of information, we can use the macro called __cplusplus. For different standards, the value of this will be like below." }, { "code": null, "e": 1637, "s"...
How To Use Modules In Julia. A quick lesson on how modules and... | by Emmett Boudreau | Towards Data Science
Video for this article: Github: github.com While the things we have gone over in the past Julia tutorials; functions, constructors, and types are certainly valuable, there is no possible way that one programmer could build an entire ecosystem from scratch. That being said, programmers often use packages to perform arit...
[ { "code": null, "e": 196, "s": 172, "text": "Video for this article:" }, { "code": null, "e": 204, "s": 196, "text": "Github:" }, { "code": null, "e": 215, "s": 204, "text": "github.com" }, { "code": null, "e": 683, "s": 215, "text": "While...
Generate a graph using Dictionary in Python
The graphs can be implemented using Dictionary in Python. In the dictionary, each key will be the vertices, and as value, it holds a list of connected vertices. So the entire structure will look like Adjacency list of a graph G(V, E). We can use the basic dictionary object, but we are using default dict. It has some a...
[ { "code": null, "e": 1297, "s": 1062, "text": "The graphs can be implemented using Dictionary in Python. In the dictionary, each key will be the vertices, and as value, it holds a list of connected vertices. So the entire structure will look like Adjacency list of a graph G(V, E)." }, { "cod...
Fade In Down Animation Effect with CSS
To implement Fade In Down Big Animation Effect on an image with CSS, you can try to run the following code − Live Demo <html> <head> <style> .animated { background-image: url(/css/images/logo.png); background-repeat: no-repeat; background-position: left top; ...
[ { "code": null, "e": 1171, "s": 1062, "text": "To implement Fade In Down Big Animation Effect on an image with CSS, you can try to run the following code −" }, { "code": null, "e": 1181, "s": 1171, "text": "Live Demo" }, { "code": null, "e": 2551, "s": 1181, "...
Tryit Editor v3.7
Tryit: Using the animation-iteration-count property
[]
Sort an Array of Version Numbers
12 Aug, 2020 Given an array of strings arr[], consisting of N strings each representing dot separated numbers in the form of software versions. Input: arr[] = {“1.1.2”, “0.9.1”, “1.1.0”}Output: “0.9.1” “1.1.0” “1.1.2” Input: arr[] = {“1.2”, “0.8.1”, “1.0”}Output: “0.8.1” “1.0” “1.2” Approach: Follow the steps below to ...
[ { "code": null, "e": 54, "s": 26, "text": "\n12 Aug, 2020" }, { "code": null, "e": 185, "s": 54, "text": "Given an array of strings arr[], consisting of N strings each representing dot separated numbers in the form of software versions." }, { "code": null, "e": 259, ...
Converting a List to Vector in R Language – unlist() Function
26 May, 2020 unlist() function in R Language is used to convert a list to vector. It simplifies to produce a vector by preserving all components. Syntax: unlist(list) Parameters:list: It is a list or Vectoruse.name: Boolean value to prserve or not the position names Example 1: Converting list numeric vector into a sing...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2020" }, { "code": null, "e": 161, "s": 28, "text": "unlist() function in R Language is used to convert a list to vector. It simplifies to produce a vector by preserving all components." }, { "code": null, "e": 182, ...
How to check if a directory or a file exists in system or not using Shell Scripting?
30 Jun, 2019 Shell scripting is really a powerful and dynamic way to automate your tasks. To test if a directory or file already exists in the system or not we can use shell scripting for the same along with test command. To proceed with the test script lets first check the test manual. To open a manual use the man com...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2019" }, { "code": null, "e": 352, "s": 28, "text": "Shell scripting is really a powerful and dynamic way to automate your tasks. To test if a directory or file already exists in the system or not we can use shell scripting for ...
Merge two sorted linked lists
24 Jun, 2022 Write a SortedMerge() function that takes two lists, each of which is sorted in increasing order, and merges the two together into one list which is in increasing order. SortedMerge() should return the new list. The new list should be made by splicing together the nodes of the first two lists. For example ...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Jun, 2022" }, { "code": null, "e": 349, "s": 54, "text": "Write a SortedMerge() function that takes two lists, each of which is sorted in increasing order, and merges the two together into one list which is in increasing order. Sort...
Matplotlib.axis.Axis.set_label_coords() function in Python
05 Jun, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. The Axis.set_label_coords() function in axis module of matplotlib library is used to s...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 249, "s": 28, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and u...
Handwritten Equation Solver in Python
26 Jun, 2019 Acquiring Training Data Downloading DatasetDownload the dataset from this link. Extract the zip file. There will be different folders containing images for different maths symbol. For simplicity, use 0–9 digits, +, ?-?and, times images in our equation solver. On observing the dataset, we can see that it is...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Jun, 2019" }, { "code": null, "e": 78, "s": 54, "text": "Acquiring Training Data" }, { "code": null, "e": 554, "s": 78, "text": "Downloading DatasetDownload the dataset from this link. Extract the zip file. There...
Loop Optimization Techniques | Set 2
02 Jun, 2020 Prerequisite – Loop Optimization | Set 1 1. Loop Fission: improves locality of reference –In this, a loop is broken into multiple loops over the same index range, but each new loop contains only a specific part of the original loop’s body. This can improve locality of reference. Before optimization: for(i=...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jun, 2020" }, { "code": null, "e": 95, "s": 54, "text": "Prerequisite – Loop Optimization | Set 1" }, { "code": null, "e": 334, "s": 95, "text": "1. Loop Fission: improves locality of reference –In this, a loop i...
How to redirect to a particular section of a page using HTML or jQuery? - GeeksforGeeks
03 Aug, 2021 Method 1: Using HTML: One can use the anchor tag to redirect to a particular section on the same page. You need to add ” id attribute” to the section you want to show and use the same id in href attribute with “#” in the anchor tag. So that On click a particular link, you will be redirected to the section ...
[ { "code": null, "e": 25220, "s": 25192, "text": "\n03 Aug, 2021" }, { "code": null, "e": 25242, "s": 25220, "text": "Method 1: Using HTML:" }, { "code": null, "e": 25567, "s": 25242, "text": "One can use the anchor tag to redirect to a particular section on th...
Identifying Outliers in Linear Regression — Cook’s Distance | by Christian Thieme | Towards Data Science
There are many techniques to remove outliers from a dataset. One method that is often used in regression settings is Cook’s Distance. Cook’s Distance is an estimate of the influence of a data point. It takes into account both the leverage and residual of each observation. Cook’s Distance is a summary of how much a regr...
[ { "code": null, "e": 550, "s": 172, "text": "There are many techniques to remove outliers from a dataset. One method that is often used in regression settings is Cook’s Distance. Cook’s Distance is an estimate of the influence of a data point. It takes into account both the leverage and residual of ...
Python Program For Converting Roman Numerals To Decimal Lying Between 1 to 3999 - GeeksforGeeks
29 Mar, 2022 Given a Roman numeral, the task is to find its corresponding decimal value. Example : Input: IX Output: 9 IX is a Roman symbol which represents 9 Input: XL Output: 40 XL is a Roman symbol which represents 40 Input: MCMIV Output: 1904 M is a thousand, CM is nine hundred and IV is four Roman numerals a...
[ { "code": null, "e": 24073, "s": 24045, "text": "\n29 Mar, 2022" }, { "code": null, "e": 24149, "s": 24073, "text": "Given a Roman numeral, the task is to find its corresponding decimal value." }, { "code": null, "e": 24160, "s": 24149, "text": "Example : " ...
Comparator nullsLast() method in Java with examples - GeeksforGeeks
29 Apr, 2019 The nullsLast (java.util.Comparator) method returns comparator that is a null-friendly comparator and considers null values greater than non-null. The null first operates by the following logic: The null element is considered to be greater than non-null.When both elements are null, then they are considered...
[ { "code": null, "e": 24107, "s": 24079, "text": "\n29 Apr, 2019" }, { "code": null, "e": 24302, "s": 24107, "text": "The nullsLast (java.util.Comparator) method returns comparator that is a null-friendly comparator and considers null values greater than non-null. The null first o...
I have a problem with socks. Let’s learn how to answer the famous... | by Justin | Towards Data Science
There’s a famous interview question I’ve seen on the internet. It goes something like this: I have 'x' blue socks and 'y' red socks in a drawer. I take 2 socks from the drawer without looking. What is the probability that I have drawn a pair of matching coloured socks? This sort of question might seem mind-bending for ...
[ { "code": null, "e": 264, "s": 172, "text": "There’s a famous interview question I’ve seen on the internet. It goes something like this:" }, { "code": null, "e": 442, "s": 264, "text": "I have 'x' blue socks and 'y' red socks in a drawer. I take 2 socks from the drawer without lo...
How to Add Element in Java ArrayList? - GeeksforGeeks
09 Jul, 2021 Java ArrayList class uses a dynamic array for storing the elements. It is like an array, but there is no size limit. We can add or remove elements anytime. So, it is much more flexible than the traditional array. Element can be added in Java ArrayList using add() method of java.util.ArrayList class. 1. boo...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n09 Jul, 2021" }, { "code": null, "e": 24161, "s": 23948, "text": "Java ArrayList class uses a dynamic array for storing the elements. It is like an array, but there is no size limit. We can add or remove elements anytime. So, it ...
Python program to print all Prime numbers in an Interval
In this article, we will learn about the solution to the problem statement given below. Problem statement − We are given an interval we need to compute all the prime numbers in a given range Here we will be discussing a brute-force approach to get the solution i.e. the basic definition of a prime number. Prime numbers ...
[ { "code": null, "e": 1150, "s": 1062, "text": "In this article, we will learn about the solution to the problem statement given below." }, { "code": null, "e": 1253, "s": 1150, "text": "Problem statement − We are given an interval we need to compute all the prime numbers in a giv...
Can a class in Java be both final and abstract?
An abstract cannot be instantiated. Therefore to use an abstract class you need to create another class and extend the abstract class and use it. If a class is final you can’t extend it further. So, you cannot declare a class both final and abstract. Still if you try to do so you will get a compile time error saying “i...
[ { "code": null, "e": 1208, "s": 1062, "text": "An abstract cannot be instantiated. Therefore to use an abstract class you need to create another class and extend the abstract class and use it." }, { "code": null, "e": 1257, "s": 1208, "text": "If a class is final you can’t extend...
How to add a new element in the XML using PowerShell?
Suppose we have a XML file as shown below. <?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth loo...
[ { "code": null, "e": 1105, "s": 1062, "text": "Suppose we have a XML file as shown below." }, { "code": null, "e": 1455, "s": 1105, "text": "<?xml version=\"1.0\"?>\n<catalog>\n <book id=\"bk101\">\n <author>Gambardella, Matthew</author>\n <title>XML Developer's Guide...
ASP.NET MVC - Security
In this chapter, we will discuss how to implement security features in the application. We will also look at the new membership features included with ASP.NET and available for use from ASP.NET MVC. In the latest release of ASP.NET, we can manage user identities with the following − Cloud SQL database Local Windows act...
[ { "code": null, "e": 2553, "s": 2269, "text": "In this chapter, we will discuss how to implement security features in the application. We will also look at the new membership features included with ASP.NET and available for use from ASP.NET MVC. In the latest release of ASP.NET, we can manage user i...
How to set the shadow effect of a text with JavaScript?
To set the shadow effect, use the textShadow property in JavaScript. You can try to run the following code to return the shadow effect of a text with JavaScript − <!DOCTYPE html> <html> <body> <button onclick = "display()">Set Text Shadow</button> <div id = "myID"> This is Demo Text! This is De...
[ { "code": null, "e": 1131, "s": 1062, "text": "To set the shadow effect, use the textShadow property in JavaScript." }, { "code": null, "e": 1225, "s": 1131, "text": "You can try to run the following code to return the shadow effect of a text with JavaScript −" }, { "code...
MySQL update multiple rows in one query
Theory of Computation In this exercise, we will learn to update multiple rows with different values in one query. Suppose we have the following employee records and we want to update the phone number of some employees - CREATE TABLE IF NOT EXISTS `empdata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(25) NOT...
[ { "code": null, "e": 112, "s": 90, "text": "Theory of Computation" }, { "code": null, "e": 310, "s": 112, "text": "In this exercise, we will learn to update multiple rows with different values in one query. Suppose we have the following employee records and we want to update the ...
C# Program to Get the Count of Total Created Objects - GeeksforGeeks
30 Sep, 2021 C# is a general-purpose programming language it is used to create mobile apps, desktop apps, websites, and games. In C#, an object is a real-world entity. Or in other words, an object is a runtime entity that is created at runtime. It is an instance of a class. In this article, we will create multiple ins...
[ { "code": null, "e": 23911, "s": 23883, "text": "\n30 Sep, 2021" }, { "code": null, "e": 24294, "s": 23911, "text": "C# is a general-purpose programming language it is used to create mobile apps, desktop apps, websites, and games. In C#, an object is a real-world entity. Or in o...
C Program to check if an array is palindrome or not using Recursion
Given an array arr[n] where n is some size of an array, the task is to find out that the array is palindrome or not using recursion. Palindrome is a sequence which can be read backwards and forward as same, like: MADAM, NAMAN, etc. So to check an array is palindrome or not so we can traverse an array from back and forw...
[ { "code": null, "e": 1294, "s": 1062, "text": "Given an array arr[n] where n is some size of an array, the task is to find out that the array is palindrome or not using recursion. Palindrome is a sequence which can be read backwards and forward as same, like: MADAM, NAMAN, etc." }, { "code":...
What is the purpose of using Optional.ifPresentOrElse() method in Java 9?
The improvement of ifPresentOrElse() method in Optional class is that accepts two parameters, Consumer and Runnable. The purpose of of using ifPresentOrElse() method is that if an Optional contains a value, the function action is called on the contained value, i.e. action.accept (value), which is consistent with ifPres...
[ { "code": null, "e": 1606, "s": 1062, "text": "The improvement of ifPresentOrElse() method in Optional class is that accepts two parameters, Consumer and Runnable. The purpose of of using ifPresentOrElse() method is that if an Optional contains a value, the function action is called on the contained...
Restart instructions (RSTn) in 8085 Microprocessor
In 8085 Instruction set, RSTn is actually standing for “Restart n”. And in this case, n has a value from 0 to 7 only. Thus the eight possible RST instructions are there, e.g. RST 0, RST 1, ..., RST 7. They are 1-Byte call instructions. Functionally RST n instruction is similar with: RST n = CALL n*8 For example, let us...
[ { "code": null, "e": 1346, "s": 1062, "text": "In 8085 Instruction set, RSTn is actually standing for “Restart n”. And in this case, n has a value from 0 to 7 only. Thus the eight possible RST instructions are there, e.g. RST 0, RST 1, ..., RST 7. They are 1-Byte call instructions. Functionally RST ...
How do I create dynamic variable names inside a JavaScript loop?
To achieve this, you need to add properties to the current scope. Achieve this using this, which is for the current scope in the program − for (var i = 0; i < coords.length; ++i) { this["marker"+i] = "add here"; } The above will get what you want and retrieve it like the following − var a = this.marker0; alert(a); I...
[ { "code": null, "e": 1201, "s": 1062, "text": "To achieve this, you need to add properties to the current scope. Achieve this using this, which is for the current scope in the program −" }, { "code": null, "e": 1279, "s": 1201, "text": "for (var i = 0; i < coords.length; ++i) {\n...
Java program to calculate Body Mass Index (BMI)
The Body Mass Index is the body mass in kilogram divided by the square of body height in meters. This is expressed as kg/m^2. A program that calculates the Body Mass Index (BMI) is given as follows. import java.util.Scanner; public class Example { public static void main(String args[]) { Scanner sc = new Scann...
[ { "code": null, "e": 1188, "s": 1062, "text": "The Body Mass Index is the body mass in kilogram divided by the square of body height in meters. This is expressed as kg/m^2." }, { "code": null, "e": 1261, "s": 1188, "text": "A program that calculates the Body Mass Index (BMI) is g...
BabylonJS - ShaderMaterial
Shader material gives you a material as an output. You can apply this material to any mesh. It basically passes the data from your scene to the vertex and fragment shaders. To get the shader material, the following class is called − var myShaderMaterial = new BABYLON.ShaderMaterial(name, scene, route, options); Consid...
[ { "code": null, "e": 2356, "s": 2183, "text": "Shader material gives you a material as an output. You can apply this material to any mesh. It basically passes the data from your scene to the vertex and fragment shaders." }, { "code": null, "e": 2416, "s": 2356, "text": "To get th...
Find all elements count in list in Python
Many times we need to count the elements present in a list for some data processing. But there may be cases of nested lists and counting may not be straight forward. In this article we will see how to handle these complexities of counting number of elements in a list. In this approach we use two for loops to go through...
[ { "code": null, "e": 1331, "s": 1062, "text": "Many times we need to count the elements present in a list for some data processing. But there may be cases of nested lists and counting may not be straight forward. In this article we will see how to handle these complexities of counting number of elem...
Lua - Coroutines
Coroutines are collaborative in nature, which allows two or more methods to execute in a controlled manner. With coroutines, at any given time, only one coroutine runs and this running coroutine only suspends its execution when it explicitly requests to be suspended. The above definition may look vague. Let us assume w...
[ { "code": null, "e": 2371, "s": 2103, "text": "Coroutines are collaborative in nature, which allows two or more methods to execute in a controlled manner. With coroutines, at any given time, only one coroutine runs and this running coroutine only suspends its execution when it explicitly requests to...
ENDOFQUARTER function
Returns the last date of the quarter in the current context for the specified column of dates. ENDOFQUARTER (<dates>) dates A column that contains dates. A table containing a single column and single row with a date value. The dates parameter can be any of the following − A reference to a date/time column. A referenc...
[ { "code": null, "e": 2096, "s": 2001, "text": "Returns the last date of the quarter in the current context for the specified column of dates." }, { "code": null, "e": 2121, "s": 2096, "text": "ENDOFQUARTER (<dates>) \n" }, { "code": null, "e": 2127, "s": 2121, ...
ftell() in C
In C language, ftell() returns the current file position of the specified stream with respect to the starting of the file. This function is used to get the total size of file after moving the file pointer at the end of the file. It returns the current position in long type and file can have more than 32767 bytes of dat...
[ { "code": null, "e": 1385, "s": 1062, "text": "In C language, ftell() returns the current file position of the specified stream with respect to the starting of the file. This function is used to get the total size of file after moving the file pointer at the end of the file. It returns the current p...
jQuery Examples - keyup( )
The keyup() method triggers the keyup event of each matched element. Here is the simple syntax to use this method − selector.keyup() None Following is a simple example showing the usage of this method. Here it triggers the keyup event of each matched element − <html> <head> <title>The jQuery Example</title> ...
[ { "code": null, "e": 1757, "s": 1688, "text": "The keyup() method triggers the keyup event of each matched element." }, { "code": null, "e": 1804, "s": 1757, "text": "Here is the simple syntax to use this method −" }, { "code": null, "e": 1822, "s": 1804, "tex...
How to create a Tkinter toggle button?
Python has a rich set of libraries and modules that can be used to build various components of an application. Tkinter is another well-known Python library for creating and developing GUI-based applications. Tkinter offers many widgets, functions, and modules that are used to bring life to the application visuals. We c...
[ { "code": null, "e": 1451, "s": 1062, "text": "Python has a rich set of libraries and modules that can be used to build various components of an application. Tkinter is another well-known Python library for creating and developing GUI-based applications. Tkinter offers many widgets, functions, and m...
Bootstrap - Breadcrumb
Breadcrumbs are a great way to show hierarchy-based information for a site. In the case of blogs, breadcrumbs can show the dates of publishing, categories, or tags. They indicate the current page's location within a navigational hierarchy. A breadcrumb in Bootstrap is simply an unordered list with a class of .breadcrum...
[ { "code": null, "e": 3571, "s": 3331, "text": "Breadcrumbs are a great way to show hierarchy-based information for a site. In the case of blogs, breadcrumbs can show the dates of publishing, categories, or tags. They indicate the current page's location within a navigational hierarchy." }, { ...
Jinja + SQL = ❤️. Macros for maintainable, testable data... | by Naim Kabir | Towards Data Science
SQL is an analyst’s bread and butter. It’s powerful, expressive, and flexible — but the more power a language gives you, the more ways you have of shooting yourself in the foot. Better abstractions can help us with this. If we can abstract away bits of code that we use all the time, then we only have to write and check...
[ { "code": null, "e": 350, "s": 172, "text": "SQL is an analyst’s bread and butter. It’s powerful, expressive, and flexible — but the more power a language gives you, the more ways you have of shooting yourself in the foot." }, { "code": null, "e": 673, "s": 350, "text": "Better a...
How to create a nested RecyclerView in Android - GeeksforGeeks
22 Aug, 2021 A nested RecyclerView is an implementation of a RecyclerView within a RecyclerView. An example of such a layout can be seen in a variety of apps such as the Play store where the outer (parent) RecyclerView is of Vertical orientation whereas the inner (child) RecyclerViews are of horizontal orientations. A ...
[ { "code": null, "e": 25605, "s": 25577, "text": "\n22 Aug, 2021" }, { "code": null, "e": 26363, "s": 25605, "text": "A nested RecyclerView is an implementation of a RecyclerView within a RecyclerView. An example of such a layout can be seen in a variety of apps such as the Play s...
Calculate Similarity — the most relevant Metrics in a Nutshell | by Marvin Lüthe | Towards Data Science
Many data science techniques are based on measuring similarity and dissimilarity between objects. For example, K-Nearest-Neighbors uses similarity to classify new data objects. In Unsupervised Learning, K-Means is a clustering method which uses Euclidean distance to compute the distance between the cluster centroids an...
[ { "code": null, "e": 697, "s": 172, "text": "Many data science techniques are based on measuring similarity and dissimilarity between objects. For example, K-Nearest-Neighbors uses similarity to classify new data objects. In Unsupervised Learning, K-Means is a clustering method which uses Euclidean ...
Sentiment Analysis of COVID-19 Vaccine Tweets | by Sejal Dua | Towards Data Science
It’s been a long year of sickness, devastation, grief, and hopelessness, but the global rollout of COVID-19 vaccines has sparked feelings of relief and newfound optimism for so many. The discussion of vaccination progress, accessibility, efficacy, and side effects is ongoing, and it is permeating through news stories a...
[ { "code": null, "e": 751, "s": 172, "text": "It’s been a long year of sickness, devastation, grief, and hopelessness, but the global rollout of COVID-19 vaccines has sparked feelings of relief and newfound optimism for so many. The discussion of vaccination progress, accessibility, efficacy, and sid...
Different ways to convert a Python dictionary to a NumPy array - GeeksforGeeks
02 Sep, 2020 In this article, we will see Different ways to convert a python dictionary into a Numpy array using NumPy library. It’s sometimes required to convert a dictionary in Python into a NumPy array and Python provides an efficient method to perform this operation. Converting a dictionary to NumPy array results i...
[ { "code": null, "e": 24318, "s": 24290, "text": "\n02 Sep, 2020" }, { "code": null, "e": 24684, "s": 24318, "text": "In this article, we will see Different ways to convert a python dictionary into a Numpy array using NumPy library. It’s sometimes required to convert a dictionary ...
klist - Unix, Linux Command
klist allows the user to view entries in the local credentials cache and key table. klist -k -t -K FILE:/temp/mykrb5cc List entries in the credentials cache specified including credentials flag and address list: klist -c -f FILE:/temp/mykrb5cc Advertisements 129 Lectures 23 hours Edu...
[ { "code": null, "e": 10663, "s": 10577, "text": "\nklist allows the user to view entries in the local credentials cache and\nkey table.\n" }, { "code": null, "e": 10701, "s": 10665, "text": "klist -k -t -K FILE:/temp/mykrb5cc\n" }, { "code": null, "e": 10796, "s":...
NLP Text Preprocessing: A Practical Guide and Template | by Jiahao Weng | Towards Data Science
Text preprocessing is traditionally an important step for natural language processing (NLP) tasks. It transforms text into a more digestible form so that machine learning algorithms can perform better. To illustrate the importance of text preprocessing, let’s consider a task on sentiment analysis for customer reviews. ...
[ { "code": null, "e": 249, "s": 47, "text": "Text preprocessing is traditionally an important step for natural language processing (NLP) tasks. It transforms text into a more digestible form so that machine learning algorithms can perform better." }, { "code": null, "e": 367, "s": 249...
Groovy - Strings
A String literal is constructed in Groovy by enclosing the string text in quotations. Groovy offers a variety of ways to denote a String literal. Strings in Groovy can be enclosed in single quotes (’), double quotes (“), or triple quotes (“””). Further, a Groovy String enclosed by triple quotes may span multiple lines....
[ { "code": null, "e": 2324, "s": 2238, "text": "A String literal is constructed in Groovy by enclosing the string text in quotations." }, { "code": null, "e": 2559, "s": 2324, "text": "Groovy offers a variety of ways to denote a String literal. Strings in Groovy can be enclosed in...
How to put the title at the bottom of a figure in Matplotlib?
To put the line title at the bottom of a figure in Matplotlib, we can take the following steps − 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. Initialize a variable, N, to get the number of sample data. Initialize ...
[ { "code": null, "e": 1159, "s": 1062, "text": "To put the line title at the bottom of a figure in Matplotlib, we can take the following steps −" }, { "code": null, "e": 1235, "s": 1159, "text": "Set the figure size and adjust the padding between and around the subplots." }, {...
Word embeddings in 2020. Review with code examples | by Rostyslav Neskorozhenyi | Towards Data Science
In this article we will study word embeddings — digital representation of words suitable for processing by machine learning algorithms. Originally I created this article as a general overview and compilation of current approaches to word embedding in 2020, which our AI Labs team could use from time to time as a quick r...
[ { "code": null, "e": 183, "s": 47, "text": "In this article we will study word embeddings — digital representation of words suitable for processing by machine learning algorithms." }, { "code": null, "e": 657, "s": 183, "text": "Originally I created this article as a general over...
What are the differences between a JTextPane and a JEditorPane in Java?
A JTextPane is an extension of JEditorPane which provides word processing features like fonts, text styles, colors and etc. If we need to do heavy-duty text processing we can use this class whereas a JEditorPane supports display/editing of HTML and RTF content and can be extended by creating our own EditorKit. A JTextP...
[ { "code": null, "e": 1374, "s": 1062, "text": "A JTextPane is an extension of JEditorPane which provides word processing features like fonts, text styles, colors and etc. If we need to do heavy-duty text processing we can use this class whereas a JEditorPane supports display/editing of HTML and RTF ...
Find n-th lexicographically permutation of a string | Set 2 - GeeksforGeeks
03 Sep, 2021 Given a string of length m containing lowercase alphabets only. We need to find the n-th permutation of string lexicographically.Examples: Input: str[] = "abc", n = 3 Output: Result = "bac" All possible permutation in sorted order: abc, acb, bac, bca, cab, cba Input: str[] = "aba", n = 2 Output: Result...
[ { "code": null, "e": 25084, "s": 25056, "text": "\n03 Sep, 2021" }, { "code": null, "e": 25225, "s": 25084, "text": "Given a string of length m containing lowercase alphabets only. We need to find the n-th permutation of string lexicographically.Examples: " }, { "code": ...
Convert String to Date in Java - GeeksforGeeks
29 Oct, 2021 Given a string in date format, the task is to convert this String into an actual date. Here the main concept is the parse() method which helps in the conversion. Illustration: Input : string = "2018-10-28T15:23:01Z" Output: 2018-10-28T15:23:01Z Input : string = "28 October, 2018" Output: 2018-10-28 Method...
[ { "code": null, "e": 23557, "s": 23529, "text": "\n29 Oct, 2021" }, { "code": null, "e": 23719, "s": 23557, "text": "Given a string in date format, the task is to convert this String into an actual date. Here the main concept is the parse() method which helps in the conversion." ...
Golang program that uses fallthrough keyword - GeeksforGeeks
04 May, 2020 With the help of fallthrough statement, we can use to transfer the program control just after the statement is executed in the switch cases even if the expression does not match. Normally, control will come out of the statement of switch just after the execution of first line after match. Don’t put the fal...
[ { "code": null, "e": 24280, "s": 24252, "text": "\n04 May, 2020" }, { "code": null, "e": 24634, "s": 24280, "text": "With the help of fallthrough statement, we can use to transfer the program control just after the statement is executed in the switch cases even if the expression ...
How to display the first element in a JComboBox in Java
To display the first element in a JComboBox, use the getSelectedIndex(): comboBox.setSelectedIndex(0); The following is an example to display the first element in a JComboBox in Java: import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; impor...
[ { "code": null, "e": 1135, "s": 1062, "text": "To display the first element in a JComboBox, use the getSelectedIndex():" }, { "code": null, "e": 1165, "s": 1135, "text": "comboBox.setSelectedIndex(0);" }, { "code": null, "e": 1246, "s": 1165, "text": "The foll...
How to change the size of plots arranged using grid.arrange in R?
To change the size of plots arranged using grid.arrange, we can use heights argument. The heights argument will have a vector equal to the number of plots that we want to arrange inside grid.arrange. The size of the plots will vary depending on the values in this vector. Consider the below data frame − Live Demo x<-rn...
[ { "code": null, "e": 1334, "s": 1062, "text": "To change the size of plots arranged using grid.arrange, we can use heights argument. The heights argument will have a vector equal to the number of plots that we want to arrange inside grid.arrange. The size of the plots will vary depending on the valu...
Adding bootstrap to React.js project
There are multiple ways to add bootstrap in react project. Using bootstrap CDN Installing bootstrap dependency Using react bootstrap packages This is the simplest way to add bootstrap. Like other CDN, we can add bootstrap CDN in index.html of the react project. Below is one of the react CDN url <link rel="stylesheet" h...
[ { "code": null, "e": 1121, "s": 1062, "text": "There are multiple ways to add bootstrap in react project." }, { "code": null, "e": 1141, "s": 1121, "text": "Using bootstrap CDN" }, { "code": null, "e": 1173, "s": 1141, "text": "Installing bootstrap dependency"...
SAS - Numeric Formats
SAS can handle a wide variety of numeric data formats. It uses these formats at the end of the variable names to apply a specific numeric format to the data. SAS use two kinds of numeric formats. One for reading specific formats of the numeric data which is called informat and another for displaying the numeric data in...
[ { "code": null, "e": 2945, "s": 2583, "text": "SAS can handle a wide variety of numeric data formats. It uses these formats at the end of the variable names to apply a specific numeric format to the data. SAS use two kinds of numeric formats. One for reading specific formats of the numeric data whic...
Solidity - Error Handling
Solidity provides various functions for error handling. Generally when an error occurs, the state is reverted back to its original state. Other checks are to prevent unauthorized code access. Following are some of the important methods used in error handling − assert(bool condition) − In case condition is not met, this...
[ { "code": null, "e": 2816, "s": 2555, "text": "Solidity provides various functions for error handling. Generally when an error occurs, the state is reverted back to its original state. Other checks are to prevent unauthorized code access. Following are some of the important methods used in error han...
Android - Testing
The Android framework includes an integrated testing framework that helps you test all aspects of your application and the SDK tools include tools for setting up and running test applications. Whether you are working in Eclipse with ADT or working from the command line, the SDK tools help you set up and run your tests ...
[ { "code": null, "e": 3979, "s": 3607, "text": "The Android framework includes an integrated testing framework that helps you test all aspects of your application and the SDK tools include tools for setting up and running test applications. Whether you are working in Eclipse with ADT or working from ...
Difference between forEach and for loop in Javascript - GeeksforGeeks
04 Mar, 2021 This article describes the difference between a forEach and for loop in detail. The basic differences between the two are given below. For Loop: The JavaScript for loop is used to iterate through the array or the elements for a specified number of times. If a certain amount of iteration is known, it should...
[ { "code": null, "e": 24327, "s": 24299, "text": "\n04 Mar, 2021" }, { "code": null, "e": 24462, "s": 24327, "text": "This article describes the difference between a forEach and for loop in detail. The basic differences between the two are given below." }, { "code": null, ...
How to copy files from one server to another using Python?
The easiest way to copy files from one server to another over ssh is to use the scp command. For calling scp you'd need the subprocess module. import subprocess p = subprocess.Popen(["scp", "my_file.txt", "username@server:path"]) sts = os.waitpid(p.pid, 0) You need the waitpid call to wait for the copying to complete. ...
[ { "code": null, "e": 1205, "s": 1062, "text": "The easiest way to copy files from one server to another over ssh is to use the scp command. For calling scp you'd need the subprocess module." }, { "code": null, "e": 1319, "s": 1205, "text": "import subprocess\np = subprocess.Popen...
isalnum() function in C Language - GeeksforGeeks
07 Dec, 2017 isalnum() function in C programming language checks whether the given character is alphanumeric or not. isalnum() function defined in ctype.h header file. Alphanumeric: A character that is either a letter or a number.Syntax: int isalnum(int x); Examples: Input : 1 Output : Entered character is alphanumeric...
[ { "code": null, "e": 23841, "s": 23813, "text": "\n07 Dec, 2017" }, { "code": null, "e": 23996, "s": 23841, "text": "isalnum() function in C programming language checks whether the given character is alphanumeric or not. isalnum() function defined in ctype.h header file." }, ...
Sklearn | Feature Extraction with TF-IDF - GeeksforGeeks
15 Oct, 2019 Now, you are searching for tf-idf, then you may familiar with feature extraction and what it is. TF-IDF which stands for Term Frequency – Inverse Document Frequency. It is one of the most important techniques used for information retrieval to represent how important a specific word or phrase is to a given ...
[ { "code": null, "e": 24440, "s": 24412, "text": "\n15 Oct, 2019" }, { "code": null, "e": 24894, "s": 24440, "text": "Now, you are searching for tf-idf, then you may familiar with feature extraction and what it is. TF-IDF which stands for Term Frequency – Inverse Document Frequenc...
Ext.js - Form
In most of the web applications, forms are the most important widget to get the information from the user such as login form/feedback form so that the value can be saved in the database for future reference. Form widget is used for this purpose. Before creating a form, we should know about xTypes. xType defines the typ...
[ { "code": null, "e": 2269, "s": 2023, "text": "In most of the web applications, forms are the most important widget to get the information from the user such as login form/feedback form so that the value can be saved in the database for future reference. Form widget is used for this purpose." }, ...
What is delayed branching?
When branches are processed by a pipeline simply, after each taken branch, at least one cycle remains unutilized. This is because of the assembly line-like apathy of pipelining. Instruction slots following branches are known as branch delay slots. Delay slots can also appear following load instructions; these are defin...
[ { "code": null, "e": 1310, "s": 1062, "text": "When branches are processed by a pipeline simply, after each taken branch, at least one cycle remains unutilized. This is because of the assembly line-like apathy of pipelining. Instruction slots following branches are known as branch delay slots." },...
Python | Group strings at particular element in list - GeeksforGeeks
05 Sep, 2019 Sometimes, while working with Python list, we can have a problem in which we have to group strings in a way that at occurrence of particular element, the string list is grouped. This can be a potential problem of day-day programming. Let’s discuss certain way in which this problem can be performed. Method ...
[ { "code": null, "e": 24598, "s": 24570, "text": "\n05 Sep, 2019" }, { "code": null, "e": 24898, "s": 24598, "text": "Sometimes, while working with Python list, we can have a problem in which we have to group strings in a way that at occurrence of particular element, the string li...
Calculating Internal Rate of Return (IRR) in BigQuery | by Bilal Mahmood Khan | Towards Data Science
Internal Rate of Return (IRR) is a common calculation that often comes up in finance. In this blogpost, I will show how to build a query in BigQuery that carries out the calculation equivalent to Excel’s IRR function. This is helpful if the cashflows are stored in a BigQuery table and you want to calculate IRR without ...
[ { "code": null, "e": 593, "s": 172, "text": "Internal Rate of Return (IRR) is a common calculation that often comes up in finance. In this blogpost, I will show how to build a query in BigQuery that carries out the calculation equivalent to Excel’s IRR function. This is helpful if the cashflows are ...
CSS Box Model
All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design and layout. The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content. The image below illustrates the box model: Explanation...
[ { "code": null, "e": 46, "s": 0, "text": "All HTML elements can be considered as boxes." }, { "code": null, "e": 121, "s": 46, "text": "In CSS, the term \"box model\" is used when talking about design and layout." }, { "code": null, "e": 309, "s": 121, "text":...
C# | Check if the specified string is in the StringCollection - GeeksforGeeks
01 Feb, 2019 StringCollection class is a new addition to the .NET Framework class library that represents a collection of strings. StringCollection class is defined in the System.Collections.Specialized namespace. StringCollection.Contains(String) method is used to check whether the specified string is in the StringCol...
[ { "code": null, "e": 25657, "s": 25629, "text": "\n01 Feb, 2019" }, { "code": null, "e": 25858, "s": 25657, "text": "StringCollection class is a new addition to the .NET Framework class library that represents a collection of strings. StringCollection class is defined in the Syst...
Stop Using Semicolons in Python. They are seldom useful and don’t look... | by Chaitanya Baweja | Towards Data Science
Coming from a C/C++ background, I am used to seeing a lot of semi-colons ; in code. They are used to represent statement termination. But, Python does not mandate the use of semi-colons for delimiting statements. Yet, I often come across Python code littered with semi-colons. Most recently, I was going through a Data S...
[ { "code": null, "e": 306, "s": 172, "text": "Coming from a C/C++ background, I am used to seeing a lot of semi-colons ; in code. They are used to represent statement termination." }, { "code": null, "e": 449, "s": 306, "text": "But, Python does not mandate the use of semi-colons ...
How to Create a Duplicate Image Detection System | by Matt Podolak | Towards Data Science
MotivationImplementation DetailsBuilding the SystemTestingFuture ImprovementsReferences Motivation Implementation Details Building the System Testing Future Improvements References You might be wondering, “what’s the point of making a duplicate image detection system?”, well there are a few reasons why you might want t...
[ { "code": null, "e": 260, "s": 172, "text": "MotivationImplementation DetailsBuilding the SystemTestingFuture ImprovementsReferences" }, { "code": null, "e": 271, "s": 260, "text": "Motivation" }, { "code": null, "e": 294, "s": 271, "text": "Implementation Det...
BigData/ETL: 4 Easy steps to setting up an ETL Data pipeline from scratch | by Burhanuddin Bhopalwala | Towards Data Science
What not to expect from this Blog? Managed ETL solutions like AWS Glue, AWS Data Migration Service or Apache Airflow. Cloud-based techniques are managed but not free. And are not covered in this article. What is an ETL pipeline?What are the various use cases of an ETL pipeline?ETL prerequisites — Docker + Debezium + Ka...
[ { "code": null, "e": 376, "s": 172, "text": "What not to expect from this Blog? Managed ETL solutions like AWS Glue, AWS Data Migration Service or Apache Airflow. Cloud-based techniques are managed but not free. And are not covered in this article." }, { "code": null, "e": 558, "s": ...
How to make curved active tab in navigation menu using HTML CSS & JavaScript ?
11 Sep, 2021 In this article, we will learn about the curved outside in the active tab used in the navigation menu using HTML, CSS & Javascript. One of the most beautiful and good-looking designs of a navigation menu is the ‘Curve outside in Active Tab’ design. With the help of the CSS border-radius property, it is ver...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Sep, 2021" }, { "code": null, "e": 596, "s": 54, "text": "In this article, we will learn about the curved outside in the active tab used in the navigation menu using HTML, CSS & Javascript. One of the most beautiful and good-looking...
Efficient program to print the number of factors of n numbers
24 Feb, 2022 Given an array of integers. We are required to write a program to print the number of factors of every element of the given array.Examples: Input: 10 12 14 Output: 4 6 4 Explanation: There are 4 factors of 10 (1, 2, 5, 10) and 6 of 12 and 4 of 14. Input: 100 1000 10000 Output: 9 16 25 Explanation: T...
[ { "code": null, "e": 54, "s": 26, "text": "\n24 Feb, 2022" }, { "code": null, "e": 196, "s": 54, "text": "Given an array of integers. We are required to write a program to print the number of factors of every element of the given array.Examples: " }, { "code": null, ...
React Native ScrollView Component
30 Jun, 2021 The ScrollView Component is an inbuilt react-native component that serves as a generic scrollable container, with the ability to scroll child components and views inside it. It provides the scroll functionality in both directions- vertical and horizontal (Default: vertical). It is essential to provide the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 449, "s": 28, "text": "The ScrollView Component is an inbuilt react-native component that serves as a generic scrollable container, with the ability to scroll child components and views inside it. I...
How to Run Python Flask App Online using Ngrok?
04 Jan, 2021 Python Flask is a popular web framework for developing web applications, APIs, etc. Running flask apps on the local machine is very simple, but when it comes to sharing the app link to other users, you need to setup the whole app on another laptop. This article provides an interesting way to setup your web...
[ { "code": null, "e": 52, "s": 24, "text": "\n04 Jan, 2021" }, { "code": null, "e": 701, "s": 52, "text": "Python Flask is a popular web framework for developing web applications, APIs, etc. Running flask apps on the local machine is very simple, but when it comes to sharing the a...
Data Structures | Linked List | Question 5
28 Jun, 2021 The following function reverse() is supposed to reverse a singly linked list. There is one line missing at the end of the function. /* Link list node */struct node{ int data; struct node* next;}; /* head_ref is a double pointer which points to head (or start) pointer of linked list */static void r...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 184, "s": 52, "text": "The following function reverse() is supposed to reverse a singly linked list. There is one line missing at the end of the function." }, { "code": "/* Link list node *...
Python Program to Multiply Two Binary Numbers
23 Aug, 2021 Given two binary numbers, and the task is to write a Python program to multiply both numbers. Example: firstnumber = 110 secondnumber = 10 Multiplication Result = 1100 We can multiply two binary numbers in two ways using python, and these are: Using bin() functions andWithout using pre-defined functions Us...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Aug, 2021" }, { "code": null, "e": 122, "s": 28, "text": "Given two binary numbers, and the task is to write a Python program to multiply both numbers." }, { "code": null, "e": 131, "s": 122, "text": "Example:" ...
Explain the steps for creating basic or vertical forms using Bootstrap
21 Sep, 2021 Bootstrap is an open-source CSS framework that is used for building responsive websites. It has HTML, CSS, JS framework for developing user friendly and responsive websites. As of August 2021, Bootstrap is the tenth most starred project on Github. The website has ready-made templates given along with their...
[ { "code": null, "e": 54, "s": 26, "text": "\n21 Sep, 2021" }, { "code": null, "e": 667, "s": 54, "text": "Bootstrap is an open-source CSS framework that is used for building responsive websites. It has HTML, CSS, JS framework for developing user friendly and responsive websites. ...
Instagram Bot using Python and InstaPy
24 Jan, 2021 In this article, we will design a simple fun project “Instagram Bot” using Python and InstaPy. As beginners want to do some extra and learning small projects so that it will help in building big future projects. Now, this is the time to learn some new projects and a better future. This python project gives...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 Jan, 2021" }, { "code": null, "e": 334, "s": 52, "text": "In this article, we will design a simple fun project “Instagram Bot” using Python and InstaPy. As beginners want to do some extra and learning small projects so that it will ...
XGBoost: Order Does Matter. | by Bitya Neuhof | Aug, 2021 | Medium | Towards Data Science
You probably ask yourself — why would I use feature importance to find related features in my data? It is much simpler, for example, to look at the Pearson correlation between pairs of variables. That’s right. Take a look at the (Pearson) correlation matrix: There is no question about x1 and x4 having a high correlatio...
[ { "code": null, "e": 368, "s": 172, "text": "You probably ask yourself — why would I use feature importance to find related features in my data? It is much simpler, for example, to look at the Pearson correlation between pairs of variables." }, { "code": null, "e": 382, "s": 368, ...
Program to find minimum largest sum of k sublists in C++
Suppose we have a list of numbers called nums and another value k. We can split the list into k non-empty sublists. We have to find the minimum largest sum of the k sublists. So, if the input is like nums = [2, 4, 3, 5, 12] k = 2, then the output will be 14, as we can split the list like: [2, 4, 3, 5] and [12]. To solv...
[ { "code": null, "e": 1237, "s": 1062, "text": "Suppose we have a list of numbers called nums and another value k. We can split the list into k non-empty sublists. We have to find the minimum largest sum of the k sublists." }, { "code": null, "e": 1375, "s": 1237, "text": "So, if ...
Automate Budget Planning Using Linear Programming | by Samir Saci | Towards Data Science
Automate the decision-making process for the yearly budget allocation of an International Logistics Company. In the Logistics industry, companies often need to invest in IT capabilities, modern handling equipment or additional warehouse space to improve the efficiency of their operations. Regional Operational Directors...
[ { "code": null, "e": 274, "s": 165, "text": "Automate the decision-making process for the yearly budget allocation of an International Logistics Company." }, { "code": null, "e": 455, "s": 274, "text": "In the Logistics industry, companies often need to invest in IT capabilities,...
Time Series - Data Processing and Visualization
Time Series is a sequence of observations indexed in equi-spaced time intervals. Hence, the order and continuity should be maintained in any time series. The dataset we will be using is a multi-variate time series having hourly data for approximately one year, for air quality in a significantly polluted Italian city. T...
[ { "code": null, "e": 2295, "s": 2141, "text": "Time Series is a sequence of observations indexed in equi-spaced time intervals. Hence, the order and continuity should be maintained in any time series." }, { "code": null, "e": 2571, "s": 2295, "text": "The dataset we will be using...
How to draw tick mark with circle background shape in android?
This example demonstrates How to draw tick mark with circle background shape in android. 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"?...
[ { "code": null, "e": 1151, "s": 1062, "text": "This example demonstrates How to draw tick mark with circle background shape in android." }, { "code": null, "e": 1280, "s": 1151, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all requir...
Continuous Integration - Quick Guide
Continuous Integration was first introduced in the year 2000 with the software known as Cruise Control. Over the years, Continuous Integration has become a key practice in any software organization. This is a development practice that calls upon development teams to ensure that a build and subsequent testing is conduct...
[ { "code": null, "e": 2652, "s": 1986, "text": "Continuous Integration was first introduced in the year 2000 with the software known as Cruise Control. Over the years, Continuous Integration has become a key practice in any software organization. This is a development practice that calls upon develop...
RESTful Web Services - Environment Setup
This tutorial will guide you on how to prepare a development environment to start your work with Jersey Framework to create RESTful Web Services. Jersey framework implements JAX-RS 2.0 API, which is a standard specification to create RESTful Web Services. This tutorial will also teach you how to setup JDK, Tomcat and E...
[ { "code": null, "e": 2240, "s": 1855, "text": "This tutorial will guide you on how to prepare a development environment to start your work with Jersey Framework to create RESTful Web Services. Jersey framework implements JAX-RS 2.0 API, which is a standard specification to create RESTful Web Service...
Fill the area under a curve in Matplotlib python on log scale
To fill the area under a curve in Matplotlib python on log scale, we can take the following steps− Set the figure size and adjust the padding between and around the subplots. Create x, y1 and y2 data points using numpy. Plot x, y1 and y2 data points using plot() method. Fill the area between the two curves. Set the sca...
[ { "code": null, "e": 1161, "s": 1062, "text": "To fill the area under a curve in Matplotlib python on log scale, we can take the following steps−" }, { "code": null, "e": 1237, "s": 1161, "text": "Set the figure size and adjust the padding between and around the subplots." }, ...
A Python library to remove collinearity | by Gianluca Malato | Towards Data Science
Collinearity is a very common problem in machine learning projects. It is the correlation between the features of a dataset and it can reduce the performance of our models because it increases variance and the number of dimensions. It becomes worst when you have to work with unsupervised models. In order to solve this ...
[ { "code": null, "e": 469, "s": 172, "text": "Collinearity is a very common problem in machine learning projects. It is the correlation between the features of a dataset and it can reduce the performance of our models because it increases variance and the number of dimensions. It becomes worst when y...
MongoDB projection on specific nested properties?
For projection on specific nested properties, use aggregate() in MongoDB. Let us first create a collection with documents − > db.demo379.insertOne( ... { ... "details1" : { ... "details2" : { ... "details3" : { ... "10" : "John", ... "50" : "Chris", ... ...
[ { "code": null, "e": 1186, "s": 1062, "text": "For projection on specific nested properties, use aggregate() in MongoDB. Let us first create a collection with documents −" }, { "code": null, "e": 1584, "s": 1186, "text": "> db.demo379.insertOne(\n... {\n... \"details1\" ...
MATLAB - Data Types
MATLAB does not require any type declaration or dimension statements. Whenever MATLAB encounters a new variable name, it creates the variable and allocates appropriate memory space. If the variable already exists, then MATLAB replaces the original content with new content and allocates new storage space, where necessar...
[ { "code": null, "e": 2323, "s": 2141, "text": "MATLAB does not require any type declaration or dimension statements. Whenever MATLAB encounters a new variable name, it creates the variable and allocates appropriate memory space." }, { "code": null, "e": 2464, "s": 2323, "text": "...
p5.js | clear() function - GeeksforGeeks
17 Apr, 2019 The clear() function in p5.js is used to clear the pixels within a buffer. This function only clears the canvas. This function clears everything to make all of the pixels 100% transparent. It can be used to reset the drawing canvas. Syntax: clear() Parameters: This function does not accept any parameter. B...
[ { "code": null, "e": 43612, "s": 43584, "text": "\n17 Apr, 2019" }, { "code": null, "e": 43845, "s": 43612, "text": "The clear() function in p5.js is used to clear the pixels within a buffer. This function only clears the canvas. This function clears everything to make all of the...
Java Examples - Write to a file
How to write into a file ? This example shows how to write to a file using write method of BufferedWriter. import java.io.*; public class Main { public static void main(String[] args) { try { BufferedWriter out = new BufferedWriter(new FileWriter("outfilename")); out.write("aString"); ...
[ { "code": null, "e": 2095, "s": 2068, "text": "How to write into a file ?" }, { "code": null, "e": 2175, "s": 2095, "text": "This example shows how to write to a file using write method of BufferedWriter." }, { "code": null, "e": 2515, "s": 2175, "text": "impo...