title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Memcached - CAS Command
CAS stands for Check-And-Set or Compare-And-Swap. Memcached CAS command is used to set the data if it is not updated since last fetch. If the key does not exist in Memcached, then it returns NOT_FOUND. The basic syntax of Memcached CAS command is as shown below βˆ’ set key flags exptime bytes unique_cas_key [noreply] val...
[ { "code": null, "e": 2307, "s": 2105, "text": "CAS stands for Check-And-Set or Compare-And-Swap. Memcached CAS command is used to set the data if it is not updated since last fetch. If the key does not exist in Memcached, then it returns NOT_FOUND." }, { "code": null, "e": 2369, "s":...
C# program to generate secure random numbers
For secure random numbers, use the RNGCryptoServiceProvider Class. It implements a cryptographic Random Number Generator. Using the same class, we have found some random values using the following βˆ’ using (RNGCryptoServiceProvider crypto = new RNGCryptoServiceProvider()) { byte[] val = new byte[6]; crypto.GetByte...
[ { "code": null, "e": 1184, "s": 1062, "text": "For secure random numbers, use the RNGCryptoServiceProvider Class. It implements a cryptographic Random Number Generator." }, { "code": null, "e": 1261, "s": 1184, "text": "Using the same class, we have found some random values using...
Bootstrap 4 | Nav-pills - GeeksforGeeks
24 Dec, 2019 Nav-pills is used for menu purpose in Bootstrap 4 to nav tag-based navigation. To Justify Nav-pills with Bootstrap 4 is possible by following approach.Approach 1:To Justify Nav-pills with Bootstrap 3, nav-justify class is available but in Bootstrap 4 nav-fill or nav-justified classes available in defaultAd...
[ { "code": null, "e": 28440, "s": 28412, "text": "\n24 Dec, 2019" }, { "code": null, "e": 28519, "s": 28440, "text": "Nav-pills is used for menu purpose in Bootstrap 4 to nav tag-based navigation." }, { "code": null, "e": 33376, "s": 28519, "text": "To Justify ...
times() - Unix, Linux System Call
Unix - Home Unix - Getting Started Unix - File Management Unix - Directories Unix - File Permission Unix - Environment Unix - Basic Utilities Unix - Pipes & Filters Unix - Processes Unix - Communication Unix - The vi Editor Unix - What is Shell? Unix - Using Variables Unix - Special Variables Unix - Using Arrays Unix -...
[ { "code": null, "e": 1466, "s": 1454, "text": "Unix - Home" }, { "code": null, "e": 1489, "s": 1466, "text": "Unix - Getting Started" }, { "code": null, "e": 1512, "s": 1489, "text": "Unix - File Management" }, { "code": null, "e": 1531, "s": 1...
Select Columns that Satisfy a Condition in PySpark
29 Jun, 2021 In this article, we are going to select columns in the dataframe based on the condition using the where() function in Pyspark. Let’s create a sample dataframe with employee data. Python3 # importing moduleimport pyspark # importing sparksession from pyspark.sql modulefrom pyspark.sql import SparkSession ...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Jun, 2021" }, { "code": null, "e": 156, "s": 28, "text": "In this article, we are going to select columns in the dataframe based on the condition using the where() function in Pyspark. " }, { "code": null, "e": 208, "...
p5.js | isPlaying() Function
18 Nov, 2021 The isPlaying() function is an inbuilt function of p5.sound library that verifies that the play() function performed successfully, if that play was successful then this function will return true else false. That means it returns a Boolean value.Syntax: isPlaying() Note: All the sound-related functions onl...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Nov, 2021" }, { "code": null, "e": 282, "s": 28, "text": "The isPlaying() function is an inbuilt function of p5.sound library that verifies that the play() function performed successfully, if that play was successful then this functi...
Explainable AI for Multi-Output Regression | by Cory Randolph | Feb, 2021 | Towards Data Science | Towards Data Science
Opening the β€œblack box” of machine learning models is not only critical in understanding the models we create, but also in communicating to others the information brought to light by the machine learning model. I have seen several projects fail because they could not be explained well to others, which is why understand...
[ { "code": null, "e": 610, "s": 172, "text": "Opening the β€œblack box” of machine learning models is not only critical in understanding the models we create, but also in communicating to others the information brought to light by the machine learning model. I have seen several projects fail because th...
How to change the owner of a directory using Python?
You can change the owner of a file or a directory using the pwd, grp and os modules. The uid module is used to get the uid from user name, grp to get gid group name string and os to change the owner: import pwd import grp import os uid = pwd.getpwnam("nobody").pw_uid gid = grp.getgrnam("nogroup").gr_gid path = 'my_fold...
[ { "code": null, "e": 1262, "s": 1062, "text": "You can change the owner of a file or a directory using the pwd, grp and os modules. The uid module is used to get the uid from user name, grp to get gid group name string and os to change the owner:" }, { "code": null, "e": 1411, "s": 1...
How to display the count over the bar in Matplotlib histogram?
To display the count over the bar in matplotlib histogram, we can iterate each patch and use text() method to place the values over the patches. Set the figure size and adjust the padding between and around the subplots. Make a list of numbers to make a histogram plot. Use hist() method to make histograms. Iterate the ...
[ { "code": null, "e": 1207, "s": 1062, "text": "To display the count over the bar in matplotlib histogram, we can iterate each patch and use text() method to place the values over the patches." }, { "code": null, "e": 1283, "s": 1207, "text": "Set the figure size and adjust the pa...
How to create advanced Loading Screen using CSS ? - GeeksforGeeks
23 Nov, 2021 In this article, we are going to build an advanced version of a wave-like structure for loading screens using HTML and CSS. The loading screen is useful when a certain page took a few seconds to load the content of the webpage. If a certain webpage doesn’t contain the loading screen then at the time of loa...
[ { "code": null, "e": 24985, "s": 24957, "text": "\n23 Nov, 2021" }, { "code": null, "e": 25580, "s": 24985, "text": "In this article, we are going to build an advanced version of a wave-like structure for loading screens using HTML and CSS. The loading screen is useful when a cer...
Laravel - Ajax
Ajax (Asynchronous JavaScript and XML) is a set of web development techniques utilizing many web technologies used on the client-side to create asynchronous Web applications. Import jquery library in your view file to use ajax functions of jquery which will be used to send and receive data using ajax from the server. O...
[ { "code": null, "e": 2967, "s": 2472, "text": "Ajax (Asynchronous JavaScript and XML) is a set of web development techniques utilizing many web technologies used on the client-side to create asynchronous Web applications. Import jquery library in your view file to use ajax functions of jquery which ...
Get count of array elements from a specific field in MongoDB documents?
To count array elements from a specific field, use $size in MongoDB. Let us create a collection with documents βˆ’ > db.demo723.insertOne({"Subject":["MySQL","MongoDB"]}); { "acknowledged" : true, "insertedId" : ObjectId("5eab094d43417811278f588a") } > db.demo723.insertOne({"Subject":["C"]}); { "acknowledged" : ...
[ { "code": null, "e": 1175, "s": 1062, "text": "To count array elements from a specific field, use $size in MongoDB. Let us create a collection with documents βˆ’" }, { "code": null, "e": 1591, "s": 1175, "text": "> db.demo723.insertOne({\"Subject\":[\"MySQL\",\"MongoDB\"]});\n{\n ...
How To Delete A Column In Pandas | Towards Data Science
Deleting columns from pandas DataFrames is a fairly common task. In today’s short guide we are going to explore how you can delete specific column(s) by name. More specifically, we are going to discuss how to delete columns using: del command drop() method pop() method Additionally, we will discuss how to delete column...
[ { "code": null, "e": 403, "s": 172, "text": "Deleting columns from pandas DataFrames is a fairly common task. In today’s short guide we are going to explore how you can delete specific column(s) by name. More specifically, we are going to discuss how to delete columns using:" }, { "code": nu...
Here’s how you can access your entire iMessage history on your Mac | by Yorgos Askalidis | Towards Data Science
A guide on how to create a data-science-friendly file with your iMessage history. If you use the Messages app on your Apple computer then you probably have connected your Apple-Id to that computer in order to send and receive iMessages across all your Apple devices (iPhone, iPad, computer). When using the Messages app,...
[ { "code": null, "e": 253, "s": 171, "text": "A guide on how to create a data-science-friendly file with your iMessage history." }, { "code": null, "e": 818, "s": 253, "text": "If you use the Messages app on your Apple computer then you probably have connected your Apple-Id to tha...
Elixir - Strings
Strings in Elixir are inserted between double quotes, and they are encoded in UTF-8. Unlike C and C++ where the default strings are ASCII encoded and only 256 different characters are possible, UTF-8 consists of 1,112,064 code points. This means that UTF-8 encoding consists of those many different possible characters. ...
[ { "code": null, "e": 2573, "s": 2182, "text": "Strings in Elixir are inserted between double quotes, and they are encoded in UTF-8. Unlike C and C++ where the default strings are ASCII encoded and only 256 different characters are possible, UTF-8 consists of 1,112,064 code points. This means that UT...
Evaluate a boolean expression represented as string - GeeksforGeeks
15 Mar, 2022 Given a string consisting of only 0, 1, A, B, C where A = AND B = OR C = XOR Calculate the value of the string assuming no order of precedence and evaluation is done from left to right.Constraints – The length of string will be odd. It will always be a valid string. Example, 1AA0 will not be given as an in...
[ { "code": null, "e": 24808, "s": 24780, "text": "\n15 Mar, 2022" }, { "code": null, "e": 25120, "s": 24808, "text": "Given a string consisting of only 0, 1, A, B, C where A = AND B = OR C = XOR Calculate the value of the string assuming no order of precedence and evaluation is do...
How to add table row in jQuery?
To add table row in jQuery, use the append() method to add table tags. You can try to run the following code to learn how to add table row in jQuery: Live Demo <!DOCTYPE html> <html> <head> <title>jQuery Add Table Rows</title> <style> table{ width: 100%; margin: 25px 0; ...
[ { "code": null, "e": 1133, "s": 1062, "text": "To add table row in jQuery, use the append() method to add table tags." }, { "code": null, "e": 1212, "s": 1133, "text": "You can try to run the following code to learn how to add table row in jQuery:" }, { "code": null, ...
Dynamic Programming | Building Bridges - GeeksforGeeks
12 May, 2022 Consider a 2-D map with a horizontal river passing through its center. There are n cities on the southern bank with x-coordinates a(1) ... a(n) and n cities on the northern bank with x-coordinates b(1) ... b(n). You want to connect as many north-south pairs of cities as possible with bridges such that no t...
[ { "code": null, "e": 25943, "s": 25915, "text": "\n12 May, 2022" }, { "code": null, "e": 26491, "s": 25943, "text": "Consider a 2-D map with a horizontal river passing through its center. There are n cities on the southern bank with x-coordinates a(1) ... a(n) and n cities on the...
Merge two unsorted linked lists to get a sorted list - GeeksforGeeks
27 Dec, 2021 Given two unsorted Linked List, the task is to merge them to get a sorted singly linked list.Examples: Input: List 1 = 3 -> 1 -> 5, List 2 = 6-> 2 -> 4 Output: 1 -> 2 -> 3 -> 4 -> 5 -> 6 Input: List 1 = 4 -> 7 -> 5, List 2 = 2-> 1 -> 8 -> 1 Output: 1 -> 1 -> 2 -> 4 -> 5 -> 7 -> 8 Naive Approach: The nai...
[ { "code": null, "e": 24690, "s": 24662, "text": "\n27 Dec, 2021" }, { "code": null, "e": 24794, "s": 24690, "text": "Given two unsorted Linked List, the task is to merge them to get a sorted singly linked list.Examples: " }, { "code": null, "e": 24878, "s": 24794,...
XML DOM - Set Node
In this chapter, we will study about how to change the values of nodes in an XML DOM object. Node value can be changed as follows βˆ’ var value = node.nodeValue; If node is an Attribute then the value variable will be the value of the attribute; if node is a Text node it will be the text content; if node is an Element i...
[ { "code": null, "e": 2420, "s": 2288, "text": "In this chapter, we will study about how to change the values of nodes in an XML DOM object. Node value can be changed as follows βˆ’" }, { "code": null, "e": 2449, "s": 2420, "text": "var value = node.nodeValue;\n" }, { "code"...
Numpy | Array Creation - GeeksforGeeks
15 Nov, 2018 Array creation using List : Arrays are used to store multiple values in one single variable.Python does not have built-in support for Arrays, but Python lists can be used instead.Example : arr = [1, 2, 3, 4, 5] arr1 = ["geeks", "for", "geeks"] Output: 1 2 3 4 5 Array creation using array functions :arra...
[ { "code": null, "e": 41448, "s": 41420, "text": "\n15 Nov, 2018" }, { "code": null, "e": 41637, "s": 41448, "text": "Array creation using List : Arrays are used to store multiple values in one single variable.Python does not have built-in support for Arrays, but Python lists can ...
How to change the Azure tag value using PowerShell?
To change the azure value using PowerShell we need to use the Update-AZTag command with the merge property. For example, we have the Azure VM TestMachine2k16 and we have its tags as shown below. PS C:\> $vm = Get-AzVM -VMName TestMachine2k16 PS C:\> $vm | Select -ExpandProperty Tags Key Value --- ----...
[ { "code": null, "e": 1170, "s": 1062, "text": "To change the azure value using PowerShell we need to use the Update-AZTag command with the merge property." }, { "code": null, "e": 1257, "s": 1170, "text": "For example, we have the Azure VM TestMachine2k16 and we have its tags as ...
C++ Program for Gnome Sort?
Here we will see how the gnome sort works. This is another sorting algorithm. In this approach if the list is already sorted it will take O(n) time. So best case time complexity is O(n). But average case and worst case complexity is O(n^2). Now let us see the algorithm to get the idea about this sorting technique. begi...
[ { "code": null, "e": 1378, "s": 1062, "text": "Here we will see how the gnome sort works. This is another sorting algorithm. In this approach if the list is already sorted it will take O(n) time. So best case time complexity is O(n). But average case and worst case complexity is O(n^2). Now let us s...
How can we convert a map to the JSON object in Java?
The JSON is a lightweight, text-based and language-independent data exchange format. The JSON can represent two structured types like objects and arrays. An object is an unordered collection of key/value pairs and an array is an ordered sequence of values. We can convert a Map to JSON object using the toJSONString() m...
[ { "code": null, "e": 1320, "s": 1062, "text": "The JSON is a lightweight, text-based and language-independent data exchange format. The JSON can represent two structured types like objects and arrays. An object is an unordered collection of key/value pairs and an array is an ordered sequence of valu...
Image Processing with Python β€” Alternative Histogram Equalization Methods | by Tonichi Edeza | Towards Data Science
In a previous article, we discussed how to manually equalize each channel’s histogram. However, direct manipulation of the RGB channels is only one method to enhance and image. In this article we shall go over these methods and see their effects. Let’s get started! As always, let us first import the required Python Lib...
[ { "code": null, "e": 419, "s": 172, "text": "In a previous article, we discussed how to manually equalize each channel’s histogram. However, direct manipulation of the RGB channels is only one method to enhance and image. In this article we shall go over these methods and see their effects." }, ...
Print Single and Multiple variable in Python?
In this section, we are going to check printing single and multiple variable output in two different python version. >>> #Python 2.7 >>> #Print single variable >>> print 27 27 >>> print "Rahul" Rahul >>> #Print single variable, single brackets >>> print(27) 27 >>> print("Rahul") Rahul >>> #Python 3.6 >>> #Print single ...
[ { "code": null, "e": 1179, "s": 1062, "text": "In this section, we are going to check printing single and multiple variable output in two different python version." }, { "code": null, "e": 1348, "s": 1179, "text": ">>> #Python 2.7\n>>> #Print single variable\n>>> print 27\n27\n>>...
How to create a Hyperlink using JavaFX?
A Hyperlink is a UI component that responds to clicks and rollovers. You can create a hyperlink by instantiating the javafx.scene.control.Hiperlink class. The following Example demonstrates the creation of a Hyperlink. import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Group; impo...
[ { "code": null, "e": 1217, "s": 1062, "text": "A Hyperlink is a UI component that responds to clicks and rollovers. You can create a hyperlink by instantiating the javafx.scene.control.Hiperlink class." }, { "code": null, "e": 1281, "s": 1217, "text": "The following Example demon...
Data Wrangling Basics β€” Why is Regex In Python Preceded By The Letter r? | by Ujjwal Dalmia | Towards Data Science
When writing regular expressions (regex) in Python language, we always start with the letter r. In this tutorial, we will understand the reason behind using it by answering the following questions: What are the escape sequences?How Python interpreter interprets escape sequences with or without the letter r?How regular ...
[ { "code": null, "e": 370, "s": 172, "text": "When writing regular expressions (regex) in Python language, we always start with the letter r. In this tutorial, we will understand the reason behind using it by answering the following questions:" }, { "code": null, "e": 592, "s": 370, ...
Suffix Array
From a given string, we can get all possible suffixes. After sorting the suffixes in lexicographical order, we can get the suffix array. Suffix arrays can also be formed using suffix trees. By using the DFS traversal of suffix trees, we can get suffix arrays. Suffix arrays are helpful to find suffixes in linear time. W...
[ { "code": null, "e": 1467, "s": 1062, "text": "From a given string, we can get all possible suffixes. After sorting the suffixes in lexicographical order, we can get the suffix array. Suffix arrays can also be formed using suffix trees. By using the DFS traversal of suffix trees, we can get suffix a...
Corona Virus | TCS Codevita 2020 - GeeksforGeeks
24 Jan, 2022 Problem Description: A city is represented as a two-dimensional rectangular matrix. The outer wall of the given matrix denotes the boundaries of the city. Citizens are dispersed in the city at different locations. They are either depicted by {a, c}. Coronavirus has already infected the city. The Coronaviru...
[ { "code": null, "e": 24675, "s": 24647, "text": "\n24 Jan, 2022" }, { "code": null, "e": 24696, "s": 24675, "text": "Problem Description:" }, { "code": null, "e": 24968, "s": 24696, "text": "A city is represented as a two-dimensional rectangular matrix. The ou...
Handling missing keys in Python dictionaries
In Python there is one container called the Dictionary. In the dictionaries, we can map keys to its value. Using dictionary the values can be accessed in constant time. But when the given keys are not present, it may occur some errors. In this section we will see how to handle these kind of errors. If we are trying to ...
[ { "code": null, "e": 1298, "s": 1062, "text": "In Python there is one container called the Dictionary. In the dictionaries, we can map keys to its value. Using dictionary the values can be accessed in constant time. But when the given keys are not present, it may occur some errors." }, { "co...
Convert string to lowercase or uppercase in Arduino
In order to convert a string to lower/upper case, the in-built .toLowerCase() and .toUpperCase() functions can be used. Note: These functions change the original string itself, and don't return a new string with the changes. The implementation is shown below βˆ’ void setup() { Serial.begin(9600); Serial.println(); ...
[ { "code": null, "e": 1182, "s": 1062, "text": "In order to convert a string to lower/upper case, the in-built .toLowerCase() and .toUpperCase() functions can be used." }, { "code": null, "e": 1287, "s": 1182, "text": "Note: These functions change the original string itself, and d...
Vertical Width of a Binary Tree | Practice | GeeksforGeeks
Given a Binary Tree of N nodes. Find the vertical width of the tree. Example 1: Input: 1 / \ 2 3 / \ / \ 4 5 6 7 \ \ 8 9 Output: 6 Explanation: The width of a binary tree is the number of vertical paths in that tree. The above tree contain...
[ { "code": null, "e": 307, "s": 226, "text": "Given a Binary Tree of N nodes. Find the vertical width of the tree.\n\nExample 1:" }, { "code": null, "e": 566, "s": 307, "text": "Input:\n 1\n / \\\n 2 3\n / \\ / \\\n 4 5 6 7\n \...
C# | Math.Ceiling() Method - GeeksforGeeks
16 Sep, 2021 In C#, Math.Ceiling() is a Math class method. This method is used to find the smallest integer , which is greater than or equal to the passed argument. The Ceiling method operates both functionalities in decimal and double. This method can be overload by passing different arguments to it. Math.Ceiling(Dec...
[ { "code": null, "e": 24532, "s": 24504, "text": "\n16 Sep, 2021" }, { "code": null, "e": 24823, "s": 24532, "text": "In C#, Math.Ceiling() is a Math class method. This method is used to find the smallest integer , which is greater than or equal to the passed argument. The Ceiling...
Must we implement all the methods in a class that implements an interface in Java?
Yes, it is mandatory to implement all the methods in a class that implements an interface until and unless that class is declared as an abstract class. There are only two choices βˆ’ Implement every method defined by the interface. Declare the class as an abstract class, as a result, forces you to subclass the class (and...
[ { "code": null, "e": 1214, "s": 1062, "text": "Yes, it is mandatory to implement all the methods in a class that implements an interface until and unless that class is declared as an abstract class." }, { "code": null, "e": 1243, "s": 1214, "text": "There are only two choices βˆ’" ...
How to define a Regular Expression in JavaScript?
A regular expression is an object that describes a pattern of characters. The JavaScript RegExp class represents regular expressions, and both String and RegExp define methods that use regular expressions to perform powerful pattern-matching and search-and-replace functions on the text. A regular expression could be de...
[ { "code": null, "e": 1136, "s": 1062, "text": "A regular expression is an object that describes a pattern of characters." }, { "code": null, "e": 1433, "s": 1136, "text": "The JavaScript RegExp class represents regular expressions, and both String and RegExp define methods that u...
How to write a JDBC application which connects to multiple databases simultaneously?
To connect with a database, you need to Register the Driver: Select the required database, register the Driver class of the particular database using the registerDriver() method of the DriverManager class or, the forName() method of the class named Class. Register the Driver: Select the required database, register the ...
[ { "code": null, "e": 1102, "s": 1062, "text": "To connect with a database, you need to" }, { "code": null, "e": 1318, "s": 1102, "text": "Register the Driver: Select the required database, register the Driver class of the particular database using the registerDriver() method of t...
How to hide/show an image on button click using jQuery ? - GeeksforGeeks
01 Aug, 2021 In this article, we will see how we can hide or show any particular image in jQuery when a button gets clicked. This is quite easy to do with some lines of jQuery code. Before we jump to the topic, let’s know which methods of jQuery will be used for this. So there is a method called show() and another one ...
[ { "code": null, "e": 25388, "s": 25360, "text": "\n01 Aug, 2021" }, { "code": null, "e": 25766, "s": 25388, "text": "In this article, we will see how we can hide or show any particular image in jQuery when a button gets clicked. This is quite easy to do with some lines of jQuery ...
How to create notes taking site using HTML, Bootstrap and JavaScript ? - GeeksforGeeks
12 Mar, 2021 We are going to make a website that will take our notes and saves them for our future use using HTML, CSS and JavaScript . Prerequisite: Basic understanding of HTML, Bootstrap, and JavaScript. Approach: HTML: We will create the basic framework of the website using HTML. Bootstrap: makes our work easier as ...
[ { "code": null, "e": 25564, "s": 25536, "text": "\n12 Mar, 2021" }, { "code": null, "e": 25687, "s": 25564, "text": "We are going to make a website that will take our notes and saves them for our future use using HTML, CSS and JavaScript ." }, { "code": null, "e": 257...
C# | Replace() Method - GeeksforGeeks
10 May, 2019 In C#, Replace() method is a string method. This method is used to replace all the specified Unicode characters or specified string from the current string object and returns a new modified string. This method can be overloaded by passing arguments to it. Syntax: public string Replace(char Oldchar, char Ne...
[ { "code": null, "e": 24356, "s": 24328, "text": "\n10 May, 2019" }, { "code": null, "e": 24612, "s": 24356, "text": "In C#, Replace() method is a string method. This method is used to replace all the specified Unicode characters or specified string from the current string object ...
Confusing Number II in C++
Suppose we have a digit, now if we rotate that digit by 180 degrees to form new digits. When 0, 1, 6, 8, 9 are rotated 180 degrees, they become 0, 1, 9, 8, 6 respectively. But when 2, 3, 4, 5 and 7 are rotated 180 degrees, they become invalid. A confusing number is a number that when rotated 180 degrees becomes a new n...
[ { "code": null, "e": 1306, "s": 1062, "text": "Suppose we have a digit, now if we rotate that digit by 180 degrees to form new digits. When 0, 1, 6, 8, 9 are rotated 180 degrees, they become 0, 1, 9, 8, 6 respectively. But when 2, 3, 4, 5 and 7 are rotated 180 degrees, they become invalid." }, {...
How to display a Listbox with columns using Tkinter?
To deal with lots of data in any application, Tkinter provides a Treeview widget. It has various features such as displaying data in the form of tables consisting of Rows and Columns. Treeview widget enables the user to add tables, insert data into it, and manipulate the data from the table. The Treeview widget can be ...
[ { "code": null, "e": 1246, "s": 1062, "text": "To deal with lots of data in any application, Tkinter provides a Treeview widget. It has various features such as displaying data in the form of tables consisting of Rows and Columns." }, { "code": null, "e": 1459, "s": 1246, "text":...
Get specific row from PySpark dataframe - GeeksforGeeks
18 Jul, 2021 In this article, we will discuss how to get the specific row from the PySpark dataframe. Creating Dataframe for demonstration: Python3 # importing moduleimport pyspark # importing sparksession# from pyspark.sql modulefrom pyspark.sql import SparkSession # creating sparksession# and giving an app namespar...
[ { "code": null, "e": 24317, "s": 24289, "text": "\n18 Jul, 2021" }, { "code": null, "e": 24406, "s": 24317, "text": "In this article, we will discuss how to get the specific row from the PySpark dataframe." }, { "code": null, "e": 24444, "s": 24406, "text": "C...
COBOL - Environment Setup
We have set up the COBOL Programming environment online, so that you can compile and execute all the available examples online. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to modify any example and execute it online. IDENTIFICATION DIVISION. P...
[ { "code": null, "e": 2316, "s": 2022, "text": "We have set up the COBOL Programming environment online, so that you can compile and execute all the available examples online. It gives you confidence in what you are reading and enables you to verify the programs with different options. Feel free to m...
Python | Peak Signal-to-Noise Ratio (PSNR)
06 Feb, 2020 Peak signal-to-noise ratio (PSNR) is the ratio between the maximum possible power of an image and the power of corrupting noise that affects the quality of its representation. To estimate the PSNR of an image, it is necessary to compare that image to an ideal clean image with the maximum possible power. PS...
[ { "code": null, "e": 52, "s": 24, "text": "\n06 Feb, 2020" }, { "code": null, "e": 357, "s": 52, "text": "Peak signal-to-noise ratio (PSNR) is the ratio between the maximum possible power of an image and the power of corrupting noise that affects the quality of its representation...
Libuv in Node.js
03 Sep, 2021 Node.js relies on various dependencies under the hood for providing various features. V8 libuv llhttp c-ares OpenSSL Libuv is one of them, let’s discuss libuv in detail. libuv: libuv is a C library originally written for Node.js to abstract non-blocking I/O operations. Event-driven asynchronous I/O model ...
[ { "code": null, "e": 28, "s": 0, "text": "\n03 Sep, 2021" }, { "code": null, "e": 114, "s": 28, "text": "Node.js relies on various dependencies under the hood for providing various features." }, { "code": null, "e": 117, "s": 114, "text": "V8" }, { "co...
Python program to find Last date of Month
11 Jun, 2021 Given a datetime object, the task is to write a Python Program to compute the last date of datetime object Month. Examples: Input : test_date = datetime.datetime(2018, 6, 4) Output : 30 Explanation : April has 30 days, each year Input : test_date = datetime.datetime(2020, 2, 4) Output : 29 Explanation : Fe...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Jun, 2021" }, { "code": null, "e": 167, "s": 53, "text": "Given a datetime object, the task is to write a Python Program to compute the last date of datetime object Month." }, { "code": null, "e": 177, "s": 167, ...
Python | Search Key from Value
11 Jun, 2021 The problem of finding a value from a given key is quite common. But we may have a problem in which we wish to get the back key from the input key we feed. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using Naive Method In this method, we just run a loop for each of the value...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jun, 2021" }, { "code": null, "e": 459, "s": 28, "text": "The problem of finding a value from a given key is quite common. But we may have a problem in which we wish to get the back key from the input key we feed. Let’s discuss certa...
How to Create Your Own Custom View in Android with Kotlin?
05 May, 2021 In this article, we’re going to talk about how we can create our own custom view in Android step by step. We all know that in the beginning android platform provides us some basic views for example – TextView, ImageView, EditText, Button, ImageButton, RadioButton, etc. But, sometimes we need a whole new ty...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 May, 2021" }, { "code": null, "e": 437, "s": 28, "text": "In this article, we’re going to talk about how we can create our own custom view in Android step by step. We all know that in the beginning android platform provides us some b...
Java Program for Identity Matrix
13 Jan, 2022 Introduction to Identity Matrix : The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or main diagonal are 1’s and all other elements are zeros. In the below image, every matrix is an Identity Matrix. In linear algebra, this is sometimes called a...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Jan, 2022" }, { "code": null, "e": 62, "s": 28, "text": "Introduction to Identity Matrix :" }, { "code": null, "e": 290, "s": 62, "text": " The dictionary definition of an Identity Matrix is a square matrix in whi...
Smart Pointers in C++ and How to Use Them
01 Dec, 2021 In this article, we will be discussing smart pointers in C++. What are Smart Pointers, why, and how to use them properly? Pointers are used for accessing the resources which are external to the program – like heap memory. So, for accessing the heap memory (if anything is created inside heap memory), pointe...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Dec, 2021" }, { "code": null, "e": 176, "s": 54, "text": "In this article, we will be discussing smart pointers in C++. What are Smart Pointers, why, and how to use them properly?" }, { "code": null, "e": 606, "s": 1...
How to drop a level from a multi-level column index in Pandas Dataframe ?
21 Apr, 2021 In this article, we will learn about how to drop a level from a multi-level column index. But before that, we need to know what is a multi-level index. A multi-level index dataframe is a type of dataframe that contains multiple level or hierarchical indexing.In this article, we will be creating a dataframe...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Apr, 2021" }, { "code": null, "e": 457, "s": 28, "text": "In this article, we will learn about how to drop a level from a multi-level column index. But before that, we need to know what is a multi-level index. A multi-level index dat...
Bootstrap 4 | Introduction
28 Apr, 2022 Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. It is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites. It solves many problems which we had once, one of which is the cross-browser compatibility ...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Apr, 2022" }, { "code": null, "e": 655, "s": 52, "text": "Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. It is the most popular HTML, CSS, and JavaScript framework for deve...
Java Program to Rotate Matrix Elements
21 Feb, 2022 Matrix is simply a two-dimensional array. So the goal is to deal with fixed indices at which elements are present and to perform operations on indexes such that elements on the addressed should be swapped in such a manner it should lookout as the matrix is rotated. Here we will be discussing two methods in...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Feb, 2022" }, { "code": null, "e": 357, "s": 28, "text": "Matrix is simply a two-dimensional array. So the goal is to deal with fixed indices at which elements are present and to perform operations on indexes such that elements on th...
Subtract two numbers without using arithmetic operators
01 Nov, 2021 Write a function subtract(x, y) that returns x-y where x and y are integers. The function should not use any of the arithmetic operators (+, ++, –, -, .. etc). The idea is to use bitwise operators. Addition of two numbers has been discussed using Bitwise operators. Like addition, the idea is to use subtrac...
[ { "code": null, "e": 52, "s": 24, "text": "\n01 Nov, 2021" }, { "code": null, "e": 371, "s": 52, "text": "Write a function subtract(x, y) that returns x-y where x and y are integers. The function should not use any of the arithmetic operators (+, ++, –, -, .. etc). The idea is to...
Sort the array of strings according to alphabetical order defined by another string
28 Feb, 2022 Given a string str and an array of strings strArr[], the task is to sort the array according to the alphabetical order defined by str. Note: str and every string in strArr[] consists of only lower case alphabets.Examples: Input: str = β€œfguecbdavwyxzhijklmnopqrst”, strArr[] = {β€œgeeksforgeeks”, β€œis”, β€œthe”,...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Feb, 2022" }, { "code": null, "e": 275, "s": 52, "text": "Given a string str and an array of strings strArr[], the task is to sort the array according to the alphabetical order defined by str. Note: str and every string in strArr[] ...
PHP | count() Function
23 May, 2022 This inbuilt function of PHP is used to count the current elements in the array. The function might return 0 for the variable that has been set to an empty array. Also for the variable which is not set the function returns 0. Syntax: count($array, mode) Parameters: The function generally takes one paramet...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 May, 2022" }, { "code": null, "e": 255, "s": 28, "text": "This inbuilt function of PHP is used to count the current elements in the array. The function might return 0 for the variable that has been set to an empty array. Also for the...
Minimize Cost to reduce the Array to a single element by given operations
19 Jan, 2022 Given an array a[] consisting of N integers and an integer K, the task is to find the minimum cost to reduce the given array to a single element by choosing any pair of consecutive array elements and replace them by (a[i] + a[i+1]) for a cost K * (a[i] + a[i+1]). Examples: Input: a[] = {1, 2, 3}, K = 2 Out...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Jan, 2022" }, { "code": null, "e": 318, "s": 54, "text": "Given an array a[] consisting of N integers and an integer K, the task is to find the minimum cost to reduce the given array to a single element by choosing any pair of conse...
Minimize the maximum distance between adjacent points after adding K points anywhere in between
26 May, 2022 Given an array arr[] of N integers representing the position of N points along a straight line and an integer K, the task is to find the minimum value of the maximum distance between adjacent points after adding K points anywhere in between, not necessarily on an integer position. Examples: Input: arr[] = ...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 May, 2022" }, { "code": null, "e": 310, "s": 28, "text": "Given an array arr[] of N integers representing the position of N points along a straight line and an integer K, the task is to find the minimum value of the maximum distance ...
Calculate standard deviation of a dictionary in Python
31 Aug, 2021 Python dictionary is a versatile data structure that allows a lot of operations to be done without any hassle. Calculating the standard deviation is shown below. Example #1: Using numpy.std() First, we create a dictionary. Then we store all the values in a list by iterating over it. After this using the Nu...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Aug, 2021" }, { "code": null, "e": 190, "s": 28, "text": "Python dictionary is a versatile data structure that allows a lot of operations to be done without any hassle. Calculating the standard deviation is shown below." }, { ...
JavaScript | History object
09 Jul, 2018 The window.history object contains the browsers history. First of all, window part can be removed from window.history just using history object alone works fine. The JS history object contains an array of URLs visited by the user. By using history object, you can load previous, forward or any particular pa...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Jul, 2018" }, { "code": null, "e": 424, "s": 52, "text": "The window.history object contains the browsers history. First of all, window part can be removed from window.history just using history object alone works fine. The JS histo...
Sort array after converting elements to their squares
08 Jul, 2022 Given an array of both positive and negative integers β€˜arr[]’ which are sorted. The task is to sort the square of the numbers of the Array. Examples: Input : arr[] = {-6, -3, -1, 2, 4, 5} Output : 1, 4, 9, 16, 25, 36 Input : arr[] = {-5, -4, -2, 0, 1} Output : 0, 1, 4, 16, 25 Simple solution is to f...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Jul, 2022" }, { "code": null, "e": 195, "s": 54, "text": "Given an array of both positive and negative integers β€˜arr[]’ which are sorted. The task is to sort the square of the numbers of the Array. " }, { "code": null, "...
Python Program to Print Lines Containing Given String in File
31 Aug, 2021 In this article, we are going to see how to fetch and display lines containing a given string from a given text file. Assume that you have a text file named geeks.txt saved on the location where you are going to create your python file. Here is the content of the geeks.txt file: Approach: Load the text fil...
[ { "code": null, "e": 28, "s": 0, "text": "\n31 Aug, 2021" }, { "code": null, "e": 265, "s": 28, "text": "In this article, we are going to see how to fetch and display lines containing a given string from a given text file. Assume that you have a text file named geeks.txt saved on...
Find the missing value from the given equation a + b = c
20 May, 2021 Given an equation of the form: a + b = c Out of which any one of the terms , or is missing. The task is to find the missing term. Examples: Input: 2 + 6 = ? Output: 8 Input: ? + 3 =6 Output: 3 Approach: Missing numbers can be found simply using the equation . First, we will find two known numbers fro...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 May, 2021" }, { "code": null, "e": 86, "s": 54, "text": "Given an equation of the form: " }, { "code": null, "e": 98, "s": 86, "text": "a + b = c " }, { "code": null, "e": 187, "s": 98, "text...
Expand the string according to the given conditions
18 Aug, 2021 Given string str of the type β€œ3(ab)4(cd)”, the task is to expand it to β€œabababcdcdcdcd” where integers are from the range [1, 9].This problem was asked in ThoughtWorks interview held in October 2018. Examples: Input: str = β€œ3(ab)4(cd)” Output: abababcdcdcdcdInput: str = β€œ2(kl)3(ap)” Output: klklapapap Ap...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Aug, 2021" }, { "code": null, "e": 254, "s": 54, "text": "Given string str of the type β€œ3(ab)4(cd)”, the task is to expand it to β€œabababcdcdcdcd” where integers are from the range [1, 9].This problem was asked in ThoughtWorks interv...
Find the dimensions of Right angled triangle
21 Jun, 2022 Given H (Hypotenuse) and A (area) of a right angled triangle, find the dimensions of right angled triangle such that the hypotenuse is of length H and its area is A. If no such triangle exists, print β€œNot Possible”. Examples: Input : H = 10, A = 24 Output : P = 6.00, B = 8.00 Input : H = 13, A = 36 Outpu...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Jun, 2022" }, { "code": null, "e": 268, "s": 52, "text": "Given H (Hypotenuse) and A (area) of a right angled triangle, find the dimensions of right angled triangle such that the hypotenuse is of length H and its area is A. If no su...
URLField – Django Models
12 Feb, 2020 URLField is a CharField, for a URL. It is generally used for storing webpage links or particularly called as URLs. It is validated by URLValidator. To store larger text TextField is used. The default form widget for this field is TextInput. Syntax field_name = models.URLField(max_length=200, **options) URL...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Feb, 2020" }, { "code": null, "e": 269, "s": 28, "text": "URLField is a CharField, for a URL. It is generally used for storing webpage links or particularly called as URLs. It is validated by URLValidator. To store larger text TextFi...
High performance Computing
25 Jun, 2020 It is the use of parallel processing for running advanced application programs efficiently, relatives, and quickly. The term applies especially is a system that function above a teraflop (1012) (floating opm per second). The term High-performance computing is occasionally used as a synonym for supercomputi...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Jun, 2020" }, { "code": null, "e": 249, "s": 28, "text": "It is the use of parallel processing for running advanced application programs efficiently, relatives, and quickly. The term applies especially is a system that function above...
Python | Extract numbers from string
27 Mar, 2019 Many times, while working with strings we come across this issue in which we need to get all the numeric occurrences. This type of problem generally occurs in competitive programming and also in web development. Let’s discuss certain ways in which this problem can be solved. Method #1 : Using List comprehe...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Mar, 2019" }, { "code": null, "e": 328, "s": 52, "text": "Many times, while working with strings we come across this issue in which we need to get all the numeric occurrences. This type of problem generally occurs in competitive pro...
readelf command in Linux with Examples
12 May, 2022 When we compile source code, an object file is generated of the program and with the help of linker, this object files gets converted to a binary file which, only the machine can understand. This kind of file follows some structures one of which is ELF(Executable and Linkable Format). And to get the inform...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 May, 2022" }, { "code": null, "e": 385, "s": 28, "text": "When we compile source code, an object file is generated of the program and with the help of linker, this object files gets converted to a binary file which, only the machine ...
Food Ordering System in C
15 Jun, 2022 Prerequisite: Modular Approach in Programming Problem Statement: Write C program to implement Food ordering with the following functionalities: Login & Signup Search by Food Search by hotels Cart & Order Confirmation Approach and Functionality: This is the main function for signup, From here we are calling...
[ { "code": null, "e": 52, "s": 24, "text": "\n15 Jun, 2022" }, { "code": null, "e": 196, "s": 52, "text": "Prerequisite: Modular Approach in Programming Problem Statement: Write C program to implement Food ordering with the following functionalities:" }, { "code": null, ...
C program to create copy of a singly Linked List using Recursion
20 Oct, 2020 Given a pointer to the head node of a Linked List, the task is to create a copy of the linked list using recursion. Examples:: Input: Head of following linked list1->2->3->4->NULLOutput: Original list: 1 -> 2 -> 3 -> 4 -> NULLDuplicate list: 1 -> 2 -> 3 -> 4 -> NULL Input: Head of following linked list1->2...
[ { "code": null, "e": 28, "s": 0, "text": "\n20 Oct, 2020" }, { "code": null, "e": 144, "s": 28, "text": "Given a pointer to the head node of a Linked List, the task is to create a copy of the linked list using recursion." }, { "code": null, "e": 155, "s": 144, ...
R – Data Frames
02 Dec, 2021 R Programming Language is an open-source programming language that is widely used as a statistical software and data analysis tool. Data Frames in R Language are generic data objects of R which are used to store the tabular data. Data frames can also be interpreted as matrices where each column of a matrix...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Dec, 2021" }, { "code": null, "e": 478, "s": 52, "text": "R Programming Language is an open-source programming language that is widely used as a statistical software and data analysis tool. Data Frames in R Language are generic data...
Hive – Alter Database
24 Nov, 2020 Apache Hive comes with an already created database with the name default. The default database can not be altered in the Hive because it is restricted. For every successfully created database, the Alteration can be done as per the user requirement. Alteration on the database is made to change its existing ...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Nov, 2020" }, { "code": null, "e": 277, "s": 28, "text": "Apache Hive comes with an already created database with the name default. The default database can not be altered in the Hive because it is restricted. For every successfully ...
Implementation of LinkedList in Javascript
02 Dec, 2021 In this article, we will be implementing the LinkedList data structure in Javascript. LinkedList is the dynamic data structure, as we can add or remove elements at ease, and it can even grow as needed. Just like arrays, linked lists store elements sequentially, but don’t store the elements contiguously lik...
[ { "code": null, "e": 53, "s": 25, "text": "\n02 Dec, 2021" }, { "code": null, "e": 423, "s": 53, "text": "In this article, we will be implementing the LinkedList data structure in Javascript. LinkedList is the dynamic data structure, as we can add or remove elements at ease, and ...
PHP array_values() Function
30 Nov, 2021 In this article, we will see how to get an array value using the array_values() function in PHP, along with understanding their implementation through the example. The array_values() is an inbuilt PHP function is used to get an array of values from another array that may contain key-value pairs or just va...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Nov, 2021" }, { "code": null, "e": 192, "s": 28, "text": "In this article, we will see how to get an array value using the array_values() function in PHP, along with understanding their implementation through the example." }, { ...
Smallest K digit number divisible by X
22 Jun, 2022 Integers X and K are given. The task is to find the smallest K-digit number divisible by X. Examples : Input : X = 83, K = 5 Output : 10043 10040 is the smallest 5 digit number that is multiple of 83. Input : X = 5, K = 2 Output : 10 A simple solution is to try all numbers starting from the smallest K d...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2022" }, { "code": null, "e": 145, "s": 52, "text": "Integers X and K are given. The task is to find the smallest K-digit number divisible by X. " }, { "code": null, "e": 157, "s": 145, "text": "Examples : "...
How to pass integer by reference in Java
09 May, 2019 Java is pass by value and it is not possible to pass integer by reference in Java directly. Objects created in Java are references which are passed by value. Thus it can be achieved by some methods which are as follows: By creating Wrapper Class: As we know that Integer is an immutable class, so we wrap an...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 May, 2019" }, { "code": null, "e": 272, "s": 52, "text": "Java is pass by value and it is not possible to pass integer by reference in Java directly. Objects created in Java are references which are passed by value. Thus it can be a...
Tensorflow.js tf.Tensor .toString() Method
17 May, 2021 Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.tensor.toString() method is used to log the tensor in the human-readable form if you console.log() just tf.tensor then it will log the...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 May, 2021" }, { "code": null, "e": 194, "s": 28, "text": "Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment." }, {...
Sum of minimum value of x and y satisfying the equation ax + by = c
10 Jun, 2022 Time ComGiven three integers a, b, and c representing a linear equation of the form ax + by = c, the task is to find the solution (x, y) of the given equation such that (x + y) is minimized. If no solution exists for the above equation then print β€œ-1”. Note: x and y are non negative integers. Examples: In...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Jun, 2022" }, { "code": null, "e": 346, "s": 52, "text": "Time ComGiven three integers a, b, and c representing a linear equation of the form ax + by = c, the task is to find the solution (x, y) of the given equation such that (x + ...
OpenCV C++ Program for Face Detection
17 Jun, 2017 This program uses the OpenCV library to detect faces in a live stream from webcam or in a video file stored in the local machine. This program detects faces in real time and tracks it. It uses pre-trained XML classifiers for the same. The classifiers used in this program have facial features trained in the...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 Jun, 2017" }, { "code": null, "e": 840, "s": 54, "text": "This program uses the OpenCV library to detect faces in a live stream from webcam or in a video file stored in the local machine. This program detects faces in real time and ...
How to spin text on mouse hover using HTML and CSS?
27 Sep, 2021 The spinning of text on mouse hover is known as the Spin Effect or the Rotation Effect. In this effect, each alphabet of the word is rotated along with any one of the axes (preferably Y-axis). Each word is wrapped inside in <li> tag and then using CSS:hover Selector selector we will rotate each alphabet on...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2021" }, { "code": null, "e": 573, "s": 28, "text": "The spinning of text on mouse hover is known as the Spin Effect or the Rotation Effect. In this effect, each alphabet of the word is rotated along with any one of the axes (pr...
Zero Initialization in C++
10 Feb, 2022 Setting the initial value of an object to zero is called the zero initialization.Syntax: static T object; Tt = {} ; T {} ; char array [n] = " "; Zero initialization is performed in the following situations:- Zero is initialized for every named variable with static or thread-local storage duration tha...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Feb, 2022" }, { "code": null, "e": 145, "s": 54, "text": "Setting the initial value of an object to zero is called the zero initialization.Syntax: " }, { "code": null, "e": 204, "s": 145, "text": "static T objec...
Read Lines from a File in R Programming - readLines() Function - GeeksforGeeks
01 Jul, 2020 readLines() function in R Language reads text lines from an input file. The readLines() function is perfect for text files since it reads the text line by line and creates character objects for each of the lines. Syntax: readLines(path) Parameter:path: path of the file Example 1: # R program to illustrate#...
[ { "code": null, "e": 24419, "s": 24391, "text": "\n01 Jul, 2020" }, { "code": null, "e": 24632, "s": 24419, "text": "readLines() function in R Language reads text lines from an input file. The readLines() function is perfect for text files since it reads the text line by line and...
How to create a file upload button with HTML?
To how to create a file upload button with HTML, the code is as follows βˆ’ Live Demo <!DOCTYPE html> <html> <head> <h1>File upload button example</h1> <p>Click on the "Choose File" button to upload a file:</p> <form> <input type="file" id="FILE" name="filename"> </form> </body> </html> The above code will produce the f...
[ { "code": null, "e": 1136, "s": 1062, "text": "To how to create a file upload button with HTML, the code is as follows βˆ’" }, { "code": null, "e": 1147, "s": 1136, "text": " Live Demo" }, { "code": null, "e": 1349, "s": 1147, "text": "<!DOCTYPE html>\n<html>\n<...
Automate and Supercharge Google Colab with JavaScript | by M Khorasani | Towards Data Science
Cloud computing is quickly becoming the weapon of choice for data scientists and firms alike, for all the right reasons too. With the resources that you are afforded and the granularly small fees associated with them, it’s really just a matter of basic arithmetic to discern between cloud and local computing. Over the y...
[ { "code": null, "e": 1007, "s": 172, "text": "Cloud computing is quickly becoming the weapon of choice for data scientists and firms alike, for all the right reasons too. With the resources that you are afforded and the granularly small fees associated with them, it’s really just a matter of basic a...
Print reverse of a string using recursion - GeeksforGeeks
19 Jul, 2021 Write a recursive function to print reverse of a given string. Program: C++ C Java Python C# PHP Javascript // C++ program to reverse a string using recursion#include <bits/stdc++.h>using namespace std; /* Function to print reverse of the passed string */void reverse(string str){ if(str.size() == 0) ...
[ { "code": null, "e": 24808, "s": 24780, "text": "\n19 Jul, 2021" }, { "code": null, "e": 24882, "s": 24808, "text": "Write a recursive function to print reverse of a given string. Program: " }, { "code": null, "e": 24886, "s": 24882, "text": "C++" }, { ...
How to resolve "Could not find or load main class package" in Java?
Once you write a Java program you need to compile it using the javac command, this shows you the compile time errors occurred (if any). Once you resolve them and compile your program success fully, an executable file with the same name as your class name is generated in your current folder, with the .class extension. T...
[ { "code": null, "e": 1198, "s": 1062, "text": "Once you write a Java program you need to compile it using the javac command, this shows you the compile time errors occurred (if any)." }, { "code": null, "e": 1381, "s": 1198, "text": "Once you resolve them and compile your program...
How to display the date and time of a document when it is last modified in JavaScript?
A document in its lifetime will undergo many changes. Javascript has provided a command called document.lastModified to get the instance when the document is last modified. This command will provide the exact date and time of modification. Time = document.lastModified; In the following example, using the document.las...
[ { "code": null, "e": 1304, "s": 1062, "text": "A document in its lifetime will undergo many changes. Javascript has provided a command called document.lastModified to get the instance when the document is last modified. This command will provide the exact date and time of modification. " }, { ...
Cleaning Missing Values in a Pandas Dataframe | by Andrei Teleron | Towards Data Science
Ways to visualize missing data and what to do with them using Python. When working on analyzing data, you’ll likely come across data that is missing (also called null values or NaNs). Data cleaning is an important part of the data analysis pipeline and making sure that it’s all tidy up will make your analysis much stro...
[ { "code": null, "e": 241, "s": 171, "text": "Ways to visualize missing data and what to do with them using Python." }, { "code": null, "e": 497, "s": 241, "text": "When working on analyzing data, you’ll likely come across data that is missing (also called null values or NaNs). Da...
How to save an Image in OpenCV using C++?
Here, we will understand how to save the OpenCV image to any location on your computer. OpenCV provides imwrite() function to save an image to a specified file. The file extension represents the image format. The actual format of the function is βˆ’ imwrite("Destination/Name of the image with extension", Source Matrix)...
[ { "code": null, "e": 1273, "s": 1062, "text": "Here, we will understand how to save the OpenCV image to any location on your computer. OpenCV provides imwrite() function to save an image to a specified file. The file extension represents the image format. " }, { "code": null, "e": 1312,...
How to simulate discrete uniform random variable in R?
There is no function in base R to simulate discrete uniform random variable like we have for other random variables such as Normal, Poisson, Exponential etc. but we can simulate it using rdunif function of purrr package. The rdunif function has the following syntax βˆ’ > rdunif(n, b , a) Here, n = Number of random values...
[ { "code": null, "e": 1283, "s": 1062, "text": "There is no function in base R to simulate discrete uniform random variable like we have for other random variables such as Normal, Poisson, Exponential etc. but we can simulate it using rdunif function of purrr package." }, { "code": null, ...
DAX Math & Trigonometric - MOD function
Returns the remainder after a number is divided by a divisor. The result always has the same sign as the divisor. MOD (<number>, <divisor>) number The number for which you want to find the remainder after the division is performed. divisor The number by which you want to divide. A whole number. If the divisor is 0 (ze...
[ { "code": null, "e": 2115, "s": 2001, "text": "Returns the remainder after a number is divided by a divisor. The result always has the same sign as the divisor." }, { "code": null, "e": 2142, "s": 2115, "text": "MOD (<number>, <divisor>)\n" }, { "code": null, "e": 214...
Difference between ArrayList.clear() and ArrayList.removeAll() in java?
The ArrayList class in Java is a Resizable-array implementation of the List interface. It allows null values. The clear() method this class removes all the elements from the current List object. Live Demo import java.util.ArrayList; public class ClearExample { public static void main(String[] args){ //Instant...
[ { "code": null, "e": 1172, "s": 1062, "text": "The ArrayList class in Java is a Resizable-array implementation of the List interface. It allows null values." }, { "code": null, "e": 1257, "s": 1172, "text": "The clear() method this class removes all the elements from the current ...
Time Functions in C#
The DateTime has methods and properties for Date and Time as well like how to get the number of hours or minutes of a day, etc. Let us only focus on the time functions βˆ’ Refer MSDN (Microsoft Developer Network) for all the functions βˆ’ Let us learn about a Time function i.e. AddMilliseconds(Double) to add the specified ...
[ { "code": null, "e": 1190, "s": 1062, "text": "The DateTime has methods and properties for Date and Time as well like how to get the number of hours or minutes of a day, etc." }, { "code": null, "e": 1232, "s": 1190, "text": "Let us only focus on the time functions βˆ’" }, { ...
PyTorch Ignite Tutorialβ€” Classifying Tiny ImageNet with EfficientNet | by Kenneth Leung | Towards Data Science
PyTorch is a powerful deep learning framework that has been adopted by tech giants like Tesla, OpenAI, and Microsoft for key research and production workloads. Its open-source nature means that PyTorch’s capabilities can be readily leveraged by the public as well. A problem with deep learning implementation is that the...
[ { "code": null, "e": 332, "s": 172, "text": "PyTorch is a powerful deep learning framework that has been adopted by tech giants like Tesla, OpenAI, and Microsoft for key research and production workloads." }, { "code": null, "e": 437, "s": 332, "text": "Its open-source nature mea...
Design an IIR Highpass Butterworth Filter using Bilinear Transformation Method in Scipy - Python - GeeksforGeeks
07 Jan, 2022 IIR stands for Infinite Impulse Response, It is one of the striking features of many linear-time invariant systems that are distinguished by having an impulse response h(t)/h(n) which does not become zero after some point but instead continues infinitely. It basically behaves just like an ordinary digital ...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n07 Jan, 2022" }, { "code": null, "e": 24548, "s": 24292, "text": "IIR stands for Infinite Impulse Response, It is one of the striking features of many linear-time invariant systems that are distinguished by having an impulse resp...
Hotel Review NLP Classifier for The Hilton | by Ahilan Srivishnumohan | Towards Data Science
In this blog I will go over how I improved my classifier by implementing a neural network model for my NLP project on Hilton Hotel reviews. My model aimed to use sentiment analytics that can classify a review with a score between 1 and 5. Here is a link to the Github link for my project: www.github.com/awesomeahi95/Hot...
[ { "code": null, "e": 286, "s": 47, "text": "In this blog I will go over how I improved my classifier by implementing a neural network model for my NLP project on Hilton Hotel reviews. My model aimed to use sentiment analytics that can classify a review with a score between 1 and 5." }, { "co...
Difference Between Where and Having Clause in SQL
In this post, we will understand the difference between WHERE clause and HAVING clause in SQL. It is used to filter the records from the table based on a specific condition. It is used to filter the records from the table based on a specific condition. It can be used without the β€˜GROUP BY’ clause. It can be used withou...
[ { "code": null, "e": 1157, "s": 1062, "text": "In this post, we will understand the difference between WHERE clause and HAVING clause in SQL." }, { "code": null, "e": 1236, "s": 1157, "text": "It is used to filter the records from the table based on a specific condition." }, ...
Project Idea | Collaborative Editor Framework in Real Time - GeeksforGeeks
07 Feb, 2018 NOTE: Most of the contents are taken from Project Report.So you can also download it from drop box links are given down in (Following additional topics may also be provided) Block . Simply you can read it out . Collaborative Editor Framework in Real Time Introduction: A collaborative editor is a form of co...
[ { "code": null, "e": 24476, "s": 24448, "text": "\n07 Feb, 2018" }, { "code": null, "e": 24687, "s": 24476, "text": "NOTE: Most of the contents are taken from Project Report.So you can also download it from drop box links are given down in (Following additional topics may also be...