title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Hands-on Guide to Docker for Data Science | by Sanket Gupta | Towards Data Science
Docker is a critical piece for software development these days. Docker lets you separate and isolate applications as you develop them. As a data scientist, it is common to rely on virtual environment libraries like pyenvor virtualenv — but using Docker can unlock you to not just prototype but build production-grade app...
[ { "code": null, "e": 800, "s": 172, "text": "Docker is a critical piece for software development these days. Docker lets you separate and isolate applications as you develop them. As a data scientist, it is common to rely on virtual environment libraries like pyenvor virtualenv — but using Docker ca...
Speed Up Your Algorithms Part 3 — Parallel-ization | by Puneet Grover | Towards Data Science
This is the third post in a series I am writing. All posts are here: Speed Up your Algorithms Part 1 — PyTorchSpeed Up your Algorithms Part 2 — NumbaSpeed Up your Algorithms Part 3 — ParallelizationSpeed Up your Algorithms Part 4 — Dask Speed Up your Algorithms Part 1 — PyTorch Speed Up your Algorithms Part 2 — Numba S...
[ { "code": null, "e": 241, "s": 172, "text": "This is the third post in a series I am writing. All posts are here:" }, { "code": null, "e": 409, "s": 241, "text": "Speed Up your Algorithms Part 1 — PyTorchSpeed Up your Algorithms Part 2 — NumbaSpeed Up your Algorithms Part 3 — Par...
Getting last 5 character of a string with MySQL query?
To get the first n characters of string with MySQL, use LEFT(). To get the last n char of string, the RIGHT() method is used in MySQL. The syntax for RIGHT() method is as follows − SELECT RIGHT(yourColumnName, valueOfN) as anyVariableName from yourTableName; To understand the above concept, let us create a table. The q...
[ { "code": null, "e": 1197, "s": 1062, "text": "To get the first n characters of string with MySQL, use LEFT(). To get the last n char of string, the RIGHT() method is used in MySQL." }, { "code": null, "e": 1243, "s": 1197, "text": "The syntax for RIGHT() method is as follows −" ...
C program to delete a file
21 Nov, 2017 The remove function in C/C++ can be used to delete a file. The function returns 0 if files is deleted successfully, other returns a non-zero value. #include<stdio.h> int main(){ if (remove("abc.txt") == 0) printf("Deleted successfully"); else printf("Unable to delete the file"); return 0...
[ { "code": null, "e": 52, "s": 24, "text": "\n21 Nov, 2017" }, { "code": null, "e": 200, "s": 52, "text": "The remove function in C/C++ can be used to delete a file. The function returns 0 if files is deleted successfully, other returns a non-zero value." }, { "code": "#in...
Java - The Stack Class
Stack is a subclass of Vector that implements a standard last-in, first-out stack. Stack only defines the default constructor, which creates an empty stack. Stack includes all the methods defined by Vector, and adds several of its own. Stack( ) Apart from the methods inherited from its parent class Vector, Stack defin...
[ { "code": null, "e": 2594, "s": 2511, "text": "Stack is a subclass of Vector that implements a standard last-in, first-out stack." }, { "code": null, "e": 2747, "s": 2594, "text": "Stack only defines the default constructor, which creates an empty stack. Stack includes all the me...
Element with left side smaller and right side greater | Practice | GeeksforGeeks
Given an unsorted array of size N. Find the first element in array such that all of its left elements are smaller and all right elements to it are greater than it. Note: Left and right side elements can be equal to required element. And extreme elements cannot be required element. Example 1: Input: N = 4 A[] = {4, 2,...
[ { "code": null, "e": 402, "s": 238, "text": "Given an unsorted array of size N. Find the first element in array such that all of its left elements are smaller and all right elements to it are greater than it." }, { "code": null, "e": 520, "s": 402, "text": "Note: Left and right s...
TypeScript Number valueOf() Method
13 Aug, 2020 The valueOf() method in TypeScript is used to return the primitive value of the specified number object.Syntax: number.valueOf() Parameter values: This method does not accept any parameter. Return Value: The valueOf() method in TypeScript returns the primitive value of the specified number object. Below e...
[ { "code": null, "e": 28, "s": 0, "text": "\n13 Aug, 2020" }, { "code": null, "e": 140, "s": 28, "text": "The valueOf() method in TypeScript is used to return the primitive value of the specified number object.Syntax:" }, { "code": null, "e": 158, "s": 140, "te...
Python – Check if a list is empty or not
23 Jun, 2022 In this article, we will learn How to check if the given list is empty or not. Example: Input: ['Geeks', 'Geeks', 'Geeks', 'Geeks', ] Output: Yes Input: ['Geeks', 'Is', 'all', 'Same', ] Output: No Let’s see how we can check whether a list is empty or not, in a less pythonic way. We should avoid this way ...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Jun, 2022" }, { "code": null, "e": 108, "s": 28, "text": "In this article, we will learn How to check if the given list is empty or not. " }, { "code": null, "e": 117, "s": 108, "text": "Example:" }, { "co...
Logstash - Supported Outputs
Logstash provides multiple Plugins to support various data stores or search engines. The output events of logs can be sent to an output file, standard output or a search engine like Elasticsearch. There are three types of supported outputs in Logstash, which are − Standard Output File Output Null Output Let us now dis...
[ { "code": null, "e": 2454, "s": 2189, "text": "Logstash provides multiple Plugins to support various data stores or search engines. The output events of logs can be sent to an output file, standard output or a search engine like Elasticsearch. There are three types of supported outputs in Logstash, ...
User defined Data Types in C++
28 Jun, 2021 Data types are means to identify the type of data and associated operations of handling it. There are three types of data types: Pre-defined DataTypesDerived Data TypesUser-defined DataTypes Pre-defined DataTypes Derived Data Types User-defined DataTypes In this article, the User-Defined DataType is explai...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2021" }, { "code": null, "e": 181, "s": 52, "text": "Data types are means to identify the type of data and associated operations of handling it. There are three types of data types:" }, { "code": null, "e": 243, ...
C library function - clock()
The C library function clock_t clock(void) returns the number of clock ticks elapsed since the program was launched. To get the number of seconds used by the CPU, you will need to divide by CLOCKS_PER_SEC. On a 32 bit system where CLOCKS_PER_SEC equals 1000000 this function will return the same value approximately ever...
[ { "code": null, "e": 2347, "s": 2141, "text": "The C library function clock_t clock(void) returns the number of clock ticks elapsed since the program was launched. To get the number of seconds used by the CPU, you will need to divide by CLOCKS_PER_SEC." }, { "code": null, "e": 2475, ...
Extract Data from Database using MySQL-Connector and XAMPP in Python
01 Nov, 2020 Prerequisites: MySQL-Connector, XAMPP Installation A connector is employed when we have to use MySQL with other programming languages. The work of mysql-connector is to provide access to MySQL Driver to the required language. Thus, it generates a connection between the programming language and the MySQL Se...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Nov, 2020" }, { "code": null, "e": 79, "s": 28, "text": "Prerequisites: MySQL-Connector, XAMPP Installation" }, { "code": null, "e": 341, "s": 79, "text": "A connector is employed when we have to use MySQL with ot...
C Language | Set 9
30 Jun, 2021 Following questions have been asked in GATE 2012 exam.1. What will be the output of the following C program segment? C char inchar = 'A';switch (inchar){case 'A' : printf ("choice A \n") ;case 'B' : printf ("choice B ") ;case 'C' :case 'D' :case 'E' :default: printf ("No Choice") ;} (A) No choic...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Jun, 2021" }, { "code": null, "e": 171, "s": 52, "text": "Following questions have been asked in GATE 2012 exam.1. What will be the output of the following C program segment? " }, { "code": null, "e": 173, "s": 171,...
char keyword in C#
22 Jun, 2020 Keywords are the words in a language that are used for some internal process or represent some predefined actions. char is a keyword that is used to declare a variable which store a character value from the range of +U0000 to U+FFFF. It is an alias of System.Char. Syntax: char variable_name = value; char k...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2020" }, { "code": null, "e": 293, "s": 28, "text": "Keywords are the words in a language that are used for some internal process or represent some predefined actions. char is a keyword that is used to declare a variable which s...
Virtualization In Cloud Computing and Types
28 Jun, 2022 Virtualization is a technique of how to separate a service from the underlying physical delivery of that service. It is the process of creating a virtual version of something like computer hardware. It was initially developed during the mainframe era. It involves using specialized software to create a virt...
[ { "code": null, "e": 52, "s": 24, "text": "\n28 Jun, 2022" }, { "code": null, "e": 666, "s": 52, "text": "Virtualization is a technique of how to separate a service from the underlying physical delivery of that service. It is the process of creating a virtual version of something...
JCL - Procedures
The JCL Procedures are set of statements inside a JCL grouped together to perform a particular function. Usually, the fixed part of the JCL is coded in a procedure. The varying part of the Job is coded within the JCL. You can use a procedure to achieve parallel execution of a program using multiple input files. A JCL c...
[ { "code": null, "e": 2216, "s": 1998, "text": "The JCL Procedures are set of statements inside a JCL grouped together to perform a particular function. Usually, the fixed part of the JCL is coded in a procedure. The varying part of the Job is coded within the JCL." }, { "code": null, "e"...
Kali Linux - Quick Guide
Kali Linux is one of the best security packages of an ethical hacker, containing a set of tools divided by the categories. It is an open source and its official webpage is https://www.kali.org. Generally, Kali Linux can be installed in a machine as an Operating System, as a virtual machine which we will discuss in the ...
[ { "code": null, "e": 2357, "s": 2163, "text": "Kali Linux is one of the best security packages of an ethical hacker, containing a set of tools divided by the categories. It is an open source and its official webpage is https://www.kali.org." }, { "code": null, "e": 2725, "s": 2357, ...
HTML | autoplay Attribute
31 May, 2022 The HTML autoplay Attribute is used to specify that the audio/video should automatically start playing when web page is loaded. It is a Boolean attribute. Syntax: <element autoplay> Uses It can be used with <audio> and <video> element. Example 1: Here the autoplay attribute is used with the <video> tag....
[ { "code": null, "e": 28, "s": 0, "text": "\n31 May, 2022" }, { "code": null, "e": 193, "s": 28, "text": "The HTML autoplay Attribute is used to specify that the audio/video should automatically start playing when web page is loaded. It is a Boolean attribute. Syntax: " }, { ...
Displaying the coordinates of the points clicked on the image using Python-OpenCV
08 Oct, 2021 OpenCV helps us to control and manage different types of mouse events and gives us the flexibility to operate them. There are many types of mouse events. These events can be displayed by running the following code segment : import cv2 [print(i) for i in dir(cv2) if 'EVENT' in i] Output : EVENT_FLAG_ALTKEY...
[ { "code": null, "e": 54, "s": 26, "text": "\n08 Oct, 2021" }, { "code": null, "e": 278, "s": 54, "text": "OpenCV helps us to control and manage different types of mouse events and gives us the flexibility to operate them. There are many types of mouse events. These events can be ...
How to calculate time difference with previous row of a dataframe by group in R
16 Dec, 2021 A dataframe may consist of different values belonging to groups. The columns may have values belonging to different data types or time frames as POSIXct objects. These objects allow the application of mathematical operations easily, which can be performed in the following ways : The group_by method is use...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Dec, 2021" }, { "code": null, "e": 309, "s": 28, "text": "A dataframe may consist of different values belonging to groups. The columns may have values belonging to different data types or time frames as POSIXct objects. These objects...
The painter’s partition problem | Set 2
11 Nov, 2021 We have to paint n boards of length {A1, A2, .. An}. There are k painters available and each takes 1 unit time to paint 1 unit of board. The problem is to find the minimum time to get this job done under the constraints that any painter will only paint continuous sections of boards, say board {2, 3, 4} or ...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Nov, 2021" }, { "code": null, "e": 410, "s": 52, "text": "We have to paint n boards of length {A1, A2, .. An}. There are k painters available and each takes 1 unit time to paint 1 unit of board. The problem is to find the minimum ti...
How to list all the files from firebase storage using ReactJS ?
30 Jun, 2021 The following approach covers how to list all the files from firebase storage using react. We have used the firebase module to achieve so. Creating React Application And Installing Module: Step 1: Create a React-app using the following command: npx create-react-app myapp Step 2: After creating your project...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 167, "s": 28, "text": "The following approach covers how to list all the files from firebase storage using react. We have used the firebase module to achieve so." }, { "code": null, "e":...
Convert a column to row name/index in Pandas
16 Jul, 2021 Pandas provide a convenient way to handle data and its transformation. Let’s see how can we convert a column to row name/index in Pandas. Create a dataframe first with dict of lists. Python3 # importing pandas as pdimport pandas as pd # Creating a dict of listsdata = {'Name':["Akash", "Geeku", "Pankaj", ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jul, 2021" }, { "code": null, "e": 167, "s": 28, "text": "Pandas provide a convenient way to handle data and its transformation. Let’s see how can we convert a column to row name/index in Pandas. " }, { "code": null, "e":...
Find the Nth highest value of a vector in R
27 Jan, 2022 In this article, we will see how to find the Nth largest value of a vector in the R Programming Language. Steps for finding nth largest element in vector R: Step 1: Create a vector and take input from the user. Syntax : variable name = readline() Where Variable is the valid identifier. readline() will tak...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Jan, 2022" }, { "code": null, "e": 134, "s": 28, "text": "In this article, we will see how to find the Nth largest value of a vector in the R Programming Language." }, { "code": null, "e": 185, "s": 134, "text": "...
PHP programs for printing pyramid patterns
23 Dec, 2021 This article is aimed at giving a PHP implementation for pattern printing. Simple Pyramid Pattern <?php// Php code to demonstrate// star pattern // Function to demonstrate// printing patternfunction pypart($n){ // Outer loop to handle number // of rowsn in this case for ($i = 0; $i < $n; $i...
[ { "code": null, "e": 52, "s": 24, "text": "\n23 Dec, 2021" }, { "code": null, "e": 127, "s": 52, "text": "This article is aimed at giving a PHP implementation for pattern printing." }, { "code": null, "e": 150, "s": 127, "text": "Simple Pyramid Pattern" }, ...
Python – API.retweet() in Tweepy
05 Jun, 2020 Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitte...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2020" }, { "code": null, "e": 428, "s": 28, "text": "Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be twee...
p5.js | textStyle() Function
16 Apr, 2019 The textStyle() function in p5.js is used to set or return the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC. This may be be overridden by CSS styling. Syntax: textStyle(style) or textStyle() Parameters: This function accepts single parameter style which stores the styling Consta...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Apr, 2019" }, { "code": null, "e": 207, "s": 28, "text": "The textStyle() function in p5.js is used to set or return the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC. This may be be overridden by CSS styli...
Saving Operated Video from a webcam using OpenCV
11 Jul, 2022 OpenCV is a vast library that helps in providing various functions for image and video operations. With OpenCV, we can perform operations on the input video. OpenCV also allows us to save that operated video for further usage. For saving images, we use cv2.imwrite() which saves the image to a specified fil...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Jul, 2022" }, { "code": null, "e": 438, "s": 52, "text": "OpenCV is a vast library that helps in providing various functions for image and video operations. With OpenCV, we can perform operations on the input video. OpenCV also allo...
ReactJS Evergreen Dialog Component
05 Jun, 2021 React Evergreen is a popular front-end library with a set of React components for building beautiful products as this library is flexible, sensible defaults, and User friendly. Dialog Component allows the user to show content on top of an overlay which requires user interaction. We can use the following ap...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2021" }, { "code": null, "e": 392, "s": 28, "text": "React Evergreen is a popular front-end library with a set of React components for building beautiful products as this library is flexible, sensible defaults, and User friendly...
How to get selected value from listbox in tkinter?
10 Jun, 2021 Prerequisites: Tkinter, Listbox ListBox is one of the many useful widgets provided by Tkinter for GUI development. The Listbox widget is used to display a list of items from which a user can select one or more items according to the constraints. In this article, we’ll see how we can get the selected value(...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Jun, 2021" }, { "code": null, "e": 60, "s": 28, "text": "Prerequisites: Tkinter, Listbox" }, { "code": null, "e": 361, "s": 60, "text": "ListBox is one of the many useful widgets provided by Tkinter for GUI develo...
Find the size of Largest Subset with positive Bitwise AND
02 Jun, 2022 Given an array arr[] consisting of N positive integers, the task is to find the largest size of the subset of the array arr[] with positive Bitwise AND. Note : If there exist more than one such subsets then return size of only one subset. Examples: Input: arr[] = [7, 13, 8, 2, 3]Output: 3Explanation:The su...
[ { "code": null, "e": 54, "s": 26, "text": "\n02 Jun, 2022" }, { "code": null, "e": 207, "s": 54, "text": "Given an array arr[] consisting of N positive integers, the task is to find the largest size of the subset of the array arr[] with positive Bitwise AND." }, { "code":...
How to detect when user scrolls to the bottom of a div ?
03 Aug, 2021 The task is to detect the bottom of the <div> element when user scrolls to the bottom using JQuery. Here are few methods discussed. jQuery on() Method:This method adds one or more event handlers for the selected elements and child elements.Syntax:$(selector).on(event, childSelector, data, function, map) Pa...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Aug, 2021" }, { "code": null, "e": 186, "s": 54, "text": "The task is to detect the bottom of the <div> element when user scrolls to the bottom using JQuery. Here are few methods discussed." }, { "code": null, "e": 1064,...
HTML DOM getAttribute() Method
22 Nov, 2021 In this article, we will learn about the HTML DOM getAttribute() method, along with understanding their implementation through the example. HTML DOM getAttribute() method is used to get the value of the attribute of the element. By specifying the name of the attribute, it can get the value of that element....
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Nov, 2021" }, { "code": null, "e": 168, "s": 28, "text": "In this article, we will learn about the HTML DOM getAttribute() method, along with understanding their implementation through the example." }, { "code": null, "e"...
Node.js substr() function
14 Oct, 2021 The substr() function is a string function of Node.js which is used to extract sub-string from the given string. Syntax: string.substr(index, length) Parameters: This function accepts two parameters as mentioned above and described below: index: This parameter holds the starting index of the specified sub...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Oct, 2021" }, { "code": null, "e": 141, "s": 28, "text": "The substr() function is a string function of Node.js which is used to extract sub-string from the given string." }, { "code": null, "e": 149, "s": 141, "t...
How to Automatic Refresh a web page in fixed time ?
21 Dec, 2020 Suppose we have given an HTML document and the task is to automatically refresh the webpage after a certain period of time in the web browser. We will predefine a time period and the browser automatically refreshes the webpage. Example: You are creating an auto refreshing website that needs to be refreshed...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Dec, 2020" }, { "code": null, "e": 256, "s": 28, "text": "Suppose we have given an HTML document and the task is to automatically refresh the webpage after a certain period of time in the web browser. We will predefine a time period ...
Python | Interleaving two strings
07 Jun, 2019 Sometimes, while working with strings, we have the task of combining two strings, i.e interleaving them according to utility. This type of utility is mostly useful while writing codes for games. Let’s discuss certain ways in which this can be performed. Method #1 : Using join() + zip()This task can be perf...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jun, 2019" }, { "code": null, "e": 282, "s": 28, "text": "Sometimes, while working with strings, we have the task of combining two strings, i.e interleaving them according to utility. This type of utility is mostly useful while writi...
Kali Linux - Password Cracking Tools
In this chapter, we will learn about the important password cracking tools used in Kali Linux. Hydra is a login cracker that supports many protocols to attack ( Cisco AAA, Cisco auth, Cisco enable, CVS, FTP, HTTP(S)-FORM-GET, HTTP(S)-FORM-POST, HTTP(S)-GET, HTTP(S)-HEAD, HTTP-Proxy, ICQ, IMAP, IRC, LDAP, MS-SQL, MySQL,...
[ { "code": null, "e": 2258, "s": 2163, "text": "In this chapter, we will learn about the important password cracking tools used in Kali Linux." }, { "code": null, "e": 2727, "s": 2258, "text": "Hydra is a login cracker that supports many protocols to attack ( Cisco AAA, Cisco auth...
JqueryUI - Selectable
jQueryUI provides selectable() method to select DOM element individually or in a group. With this method elements can be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Also, elements can be selected by clicking or dragging while holding the Ctrl/Meta key, allowing for multiple (...
[ { "code": null, "e": 2612, "s": 2264, "text": "jQueryUI provides selectable() method to select DOM element individually or in a group. With this method elements can be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Also, elements can be selected by clicking o...
How to initialize an array in C#?
All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element. Firstly, declare an array. int[] rank; But declaring an array does not initialize the array in the memory. When the array variable is initialized, you can assign values to...
[ { "code": null, "e": 1210, "s": 1062, "text": "All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element." }, { "code": null, "e": 1237, "s": 1210, "text": "Firstly, declare an array." }, ...
How to declare variables in different ways in JavaScript? - GeeksforGeeks
23 Dec, 2021 In JavaScript, we can declare a variable in different ways by using different keywords. Each keyword holds some specific reason or feature in JavaScript. Basically we can declare variables in three different ways by using var, let and const keyword. Each keyword is used in some specific conditions.var: Thi...
[ { "code": null, "e": 37605, "s": 37577, "text": "\n23 Dec, 2021" }, { "code": null, "e": 38160, "s": 37605, "text": "In JavaScript, we can declare a variable in different ways by using different keywords. Each keyword holds some specific reason or feature in JavaScript. Basically...
How to create a TableView in JavaFX?
TableView is a component that is used to create a table populate it, and remove items from it. You can create a table view by instantiating the javafx.scene.control.TableView class. The following Example demonstrates the creation of a TableView. import javafx.application.Application; import javafx.collections.FXCollect...
[ { "code": null, "e": 1244, "s": 1062, "text": "TableView is a component that is used to create a table populate it, and remove items from it. You can create a table view by instantiating the javafx.scene.control.TableView class." }, { "code": null, "e": 1308, "s": 1244, "text": "...
Eager Execution vs. Graph Execution in TensorFlow: Which is Better? | by Orhan G. Yalçın | Towards Data Science
This is Part 4 of the Deep Learning with TensorFlow 2.x Series, and we will compare two execution options available in TensorFlow: Eager Execution vs. Graph Execution You may not have noticed that you can actually choose between one of these two. Well, the reason is that TensorFlow sets the eager execution as the defau...
[ { "code": null, "e": 303, "s": 172, "text": "This is Part 4 of the Deep Learning with TensorFlow 2.x Series, and we will compare two execution options available in TensorFlow:" }, { "code": null, "e": 339, "s": 303, "text": "Eager Execution vs. Graph Execution" }, { "code...
Escape characters in JavaScript
Escape characters are characters that can be interpreted in some alternate way then what we intended to. To print these characters as it is, include backslash ‘\’ in front of them. Following are the escape characters in JavaScript − Following is the code implement escape character Backslash in javaScript − Live Demo <...
[ { "code": null, "e": 1295, "s": 1062, "text": "Escape characters are characters that can be interpreted in some alternate way then what we intended to. To print these characters as it is, include backslash ‘\\’ in front of them. Following are the escape characters in JavaScript −" }, { "code...
Difference Between Character Array and String
In this post, we will understand the difference between character array and string. They are immutable. They are immutable. Once they are defined, they can’t be changed. Once they are defined, they can’t be changed. It refers to a sequence of characters, which is represented as a single data type. It refers to a sequen...
[ { "code": null, "e": 1146, "s": 1062, "text": "In this post, we will understand the difference between character array and string." }, { "code": null, "e": 1166, "s": 1146, "text": "They are immutable." }, { "code": null, "e": 1186, "s": 1166, "text": "They ar...
Python | Check if one list is subset of other - GeeksforGeeks
30 Dec, 2021 Sometimes we encounter the problem of checking if one list is just an extension of the list i.e just a superset of one list. These kinds of problems are quite popular in competitive programming. Having shorthands for it helps the cause. Let’s discuss various ways to achieve this particular task. all() is u...
[ { "code": null, "e": 24187, "s": 24159, "text": "\n30 Dec, 2021" }, { "code": null, "e": 24484, "s": 24187, "text": "Sometimes we encounter the problem of checking if one list is just an extension of the list i.e just a superset of one list. These kinds of problems are quite popu...
Java Examples - Searching Duplicate Words
How to match duplicate words in a regular expression? Following example shows how to search duplicate words in a regular expression by using p.matcher() method and m.group() method of regex.Matcher class. import java.util.Scanner; import java.io.*; import java.util.regex.*; import java.util.ArrayList; public class dup...
[ { "code": null, "e": 2122, "s": 2068, "text": "How to match duplicate words in a regular expression?" }, { "code": null, "e": 2273, "s": 2122, "text": "Following example shows how to search duplicate words in a regular expression by using p.matcher() method and m.group() method o...
User-User Collaborative Filtering For Jokes Recommendation | by Abhijeet Anand | Towards Data Science
Have you ever had ants in your home? If you’ve had, you might know that ants first spread out individually looking for food. But as soon as one of them finds the food, it makes its way back to the nest, leaving behind the scented trail that other ants soon follow. And then you have a stream of ants heading back and for...
[ { "code": null, "e": 799, "s": 172, "text": "Have you ever had ants in your home? If you’ve had, you might know that ants first spread out individually looking for food. But as soon as one of them finds the food, it makes its way back to the nest, leaving behind the scented trail that other ants soo...
How to save HTML Canvas as an Image with canvas.toDataURL()?
Use toDataURL() method to get the image data URL of the canvas. It converts the drawing (canvas) into a64 bit encoded PNG URL. You can try to run the following code to save the canvas as an image − <!DOCTYPE HTML> <html> <head> </head> <body> <canvasid = "newCanvas" width = "450" height = "300"></canvas>...
[ { "code": null, "e": 1189, "s": 1062, "text": "Use toDataURL() method to get the image data URL of the canvas. It converts the drawing (canvas) into a64 bit encoded PNG URL." }, { "code": null, "e": 1260, "s": 1189, "text": "You can try to run the following code to save the canva...
Mastering Linked Lists in Python. Understanding the Singly Linked List... | by Sadrach Pierre, Ph.D. | Towards Data Science
Linked lists are important data structures in computer science. A linked list is a linear collection of nodes, where each node contains a data value and a reference to the next node in the list. In this post, we will walk through an example of building a singly linked list corresponding to a music playlist. Let’s get s...
[ { "code": null, "e": 481, "s": 172, "text": "Linked lists are important data structures in computer science. A linked list is a linear collection of nodes, where each node contains a data value and a reference to the next node in the list. In this post, we will walk through an example of building a ...
Struts 2 - Data Tags
The Struts 2 data tags are primarily used to manipulate the data displayed on a page. Listed below are the important data tags: <Start here> This tag enables developers to call actions directly from a JSP page by specifying the action name and an optional namespace. The body content of the tag is used to render the res...
[ { "code": null, "e": 2387, "s": 2246, "text": "The Struts 2 data tags are primarily used to manipulate the data displayed on a page. Listed below are the important data tags: <Start here>" }, { "code": null, "e": 2713, "s": 2387, "text": "This tag enables developers to call actio...
How to Preprocess Character Level Text with Keras | by Xu LIANG | Towards Data Science
You can find the notebook here The goal of this introduction is to let you know how to use Keras to preprocess text in character level. The rest of the article is organized as follows. Load data Tokenizer Change vocabulary Character to index Padding Get Labels First, we use pandas to load the training data. Combining c...
[ { "code": null, "e": 202, "s": 171, "text": "You can find the notebook here" }, { "code": null, "e": 356, "s": 202, "text": "The goal of this introduction is to let you know how to use Keras to preprocess text in character level. The rest of the article is organized as follows." ...
Conditional Text Generation by Fine Tuning GPT-2 | by Ivan Lai | Towards Data Science
Although transformer-based models have achieved good results on a range of NLP tasks in recent years, but text-generation remains a curious case. Back in September 2020, the Guardian published an impressive article purportedly written by OpenAI’s GPT-3 from scratch to much acclaim in the mainstream media, but many AI e...
[ { "code": null, "e": 519, "s": 172, "text": "Although transformer-based models have achieved good results on a range of NLP tasks in recent years, but text-generation remains a curious case. Back in September 2020, the Guardian published an impressive article purportedly written by OpenAI’s GPT-3 fr...
Distributed data pipelines made easy with AWS EKS and Prefect | by Anna Geller | Towards Data Science
Building distributed systems for ETL & ML data pipelines is hard. If you tried implementing one yourself, you may have experienced that tying together a workflow orchestration solution with distributed multi-node compute clusters such as Spark or Dask may prove difficult to properly set up and manage. In this article, ...
[ { "code": null, "e": 790, "s": 172, "text": "Building distributed systems for ETL & ML data pipelines is hard. If you tried implementing one yourself, you may have experienced that tying together a workflow orchestration solution with distributed multi-node compute clusters such as Spark or Dask may...
Playit
#myDIV { background-color:lightblue; transform:rotateX(10deg);}
[]
numpy.square() in Python - GeeksforGeeks
29 Nov, 2018 numpy.square(arr, out = None, ufunc ‘square’) : This mathematical function helps user to calculate square value of each element in the array. Parameters : arr : [array_like] Input array or object whose elements, we need to square. Return : An array with square value of each array. Code #1 :...
[ { "code": null, "e": 23643, "s": 23615, "text": "\n29 Nov, 2018" }, { "code": null, "e": 23785, "s": 23643, "text": "numpy.square(arr, out = None, ufunc ‘square’) : This mathematical function helps user to calculate square value of each element in the array." }, { "code":...
Efficient Time-Series Analysis Using Python’s Pmdarima Library | by Muriel Kosaka | Towards Data Science
One of the key concepts in data science is time-series analysis which involves the process of using a statistical model to predict future values of a time series (i.e. financial prices, weather, COVID-19 positive cases/deaths) based on past results. Some components that might be seen in a time-series analysis are: Tren...
[ { "code": null, "e": 487, "s": 171, "text": "One of the key concepts in data science is time-series analysis which involves the process of using a statistical model to predict future values of a time series (i.e. financial prices, weather, COVID-19 positive cases/deaths) based on past results. Some ...
Device Drivers in Linux - GeeksforGeeks
25 Jan, 2021 Drivers are used to help the hardware devices interact with the operating system. In windows, all the devices and drivers are grouped together in a single console called device manager. In Linux, even the hardware devices are treated like ordinary files, which makes it easier for the software to interact w...
[ { "code": null, "e": 24352, "s": 24324, "text": "\n25 Jan, 2021" }, { "code": null, "e": 24770, "s": 24352, "text": "Drivers are used to help the hardware devices interact with the operating system. In windows, all the devices and drivers are grouped together in a single console ...
Create a light-blue alert box that indicates some information with Bootstrap
Use the .alert-info class to create a light-blue alert box indicating some information. You can try to run the following code to implement .alert-info class in Bootstrap − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn...
[ { "code": null, "e": 1150, "s": 1062, "text": "Use the .alert-info class to create a light-blue alert box indicating some information." }, { "code": null, "e": 1234, "s": 1150, "text": "You can try to run the following code to implement .alert-info class in Bootstrap −" }, { ...
Construct Binary Tree from Preorder and Postorder Traversal in Python
Suppose we have two traversal sequences Preorder and Postorder, we have to generate the binary tree from these two sequences. So if the sequences are [1,2,4,5,3,6,7], [4,5,2,6,7,3,1], then the output will be To solve this, we will follow these steps − ans := make a tree node by taking value pre[0], stack := empty stack...
[ { "code": null, "e": 1270, "s": 1062, "text": "Suppose we have two traversal sequences Preorder and Postorder, we have to generate the binary tree from these two sequences. So if the sequences are [1,2,4,5,3,6,7], [4,5,2,6,7,3,1], then the output will be" }, { "code": null, "e": 1314, ...
What is Image Blurring
14 Oct, 2018 What is convolution in 2D?Image is denoted as matrix inside computer. An image contains a lot of features like edge, contrast etc. In image processing features have to be extracted from the image for further study of image.Convolution is a fundamental operation on images in which a mathematical operation i...
[ { "code": null, "e": 54, "s": 26, "text": "\n14 Oct, 2018" }, { "code": null, "e": 859, "s": 54, "text": "What is convolution in 2D?Image is denoted as matrix inside computer. An image contains a lot of features like edge, contrast etc. In image processing features have to be ext...
Create a Music Player using JavaScript
18 May, 2022 As streaming is increasingly being adopted by users, online media players have become essential for consuming media on the internet. Music players allow one to enjoy music in any browser and supports a lot of the features of an offline music player.We will be creating a music player with a clean user inter...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 May, 2022" }, { "code": null, "e": 828, "s": 52, "text": "As streaming is increasingly being adopted by users, online media players have become essential for consuming media on the internet. Music players allow one to enjoy music in...
Python 3 - os.rename() Method
The method rename() renames the file or directory src to dst.If dst is a file or directory(already present), OSError will be raised. Following is the syntax for rename() method − os.rename(src, dst) src − This is the actual name of the file or directory. src − This is the actual name of the file or directory. dst − Th...
[ { "code": null, "e": 2607, "s": 2474, "text": "The method rename() renames the file or directory src to dst.If dst is a file or directory(already present), OSError will be raised." }, { "code": null, "e": 2653, "s": 2607, "text": "Following is the syntax for rename() method −" ...
Simplified Data Encryption Standard | Set 2
22 Oct, 2021 Prerequisite – Simplified Data Encryption Standard | Set 1 Simplified Data Encryption Standard is a simple version of Data Encryption Standard having a 10-bit key and 8-bit plain text. It is much smaller than the DES algorithm as it takes only 8-bit plain text whereas DES takes 64-bit plain text. It was de...
[ { "code": null, "e": 54, "s": 26, "text": "\n22 Oct, 2021" }, { "code": null, "e": 113, "s": 54, "text": "Prerequisite – Simplified Data Encryption Standard | Set 1" }, { "code": null, "e": 635, "s": 113, "text": "Simplified Data Encryption Standard is a simpl...
Remove all non-alphabetical characters of a String in Java
11 Dec, 2018 Given a string str, consisting of non-alphabetical characters. The task is to remove all those non-alphabetical characters of str and print the words on a new line. Examples: Input: str = “Hello, how are you ?”Output:Hellohowareyou comma(, ), white space and question mark (?) are removed and there are tota...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Dec, 2018" }, { "code": null, "e": 193, "s": 28, "text": "Given a string str, consisting of non-alphabetical characters. The task is to remove all those non-alphabetical characters of str and print the words on a new line." }, { ...
HTML Block and Inline Elements
08 Dec, 2021 In this article, we will know the HTML Block element & Inline element, along with understanding the implementation through the example. Every HTML documents that render the web content, will depend on the element type i.e, block or inline which are default display values. We will understand both these conc...
[ { "code": null, "e": 52, "s": 24, "text": "\n08 Dec, 2021" }, { "code": null, "e": 386, "s": 52, "text": "In this article, we will know the HTML Block element & Inline element, along with understanding the implementation through the example. Every HTML documents that render the w...
How to convert a JSON to Java Object using the Jackson library in Java?
The ObjectMapper class is the most important class in the Jackson library. We can convert a JSON to Java Object using the readValue() method of ObjectMapper class, this method deserializes a JSON content from given JSON content String. public <T> readValue(String content, JavaType valueType) throws IOException, JsonPar...
[ { "code": null, "e": 1423, "s": 1187, "text": "The ObjectMapper class is the most important class in the Jackson library. We can convert a JSON to Java Object using the readValue() method of ObjectMapper class, this method deserializes a JSON content from given JSON content String." }, { "co...
Length of the transverse common tangent between the two non intersecting circles
07 Jun, 2022 Given two circles of given radii, having there centres a given distance apart, such that the circles don’t touch each other. The task is to find the length of the transverse common tangent between the circles.Examples: Input: r1 = 4, r2 = 6, d = 12 Output: 6.63325 Input: r1 = 7, r2 = 9, d = 21 Output: 1...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jun, 2022" }, { "code": null, "e": 249, "s": 28, "text": "Given two circles of given radii, having there centres a given distance apart, such that the circles don’t touch each other. The task is to find the length of the transverse c...
Difference between Macro and Procedure
07 Jun, 2022 Assembly language is a common intermediate level programming language which is used for microprocessor programming. This macro and procedure are two concepts in assembly by which modular programming is implemented. So now let’s understand how macro and procedure are different from each other. 1. Macro : M...
[ { "code": null, "e": 54, "s": 26, "text": "\n07 Jun, 2022" }, { "code": null, "e": 349, "s": 54, "text": "Assembly language is a common intermediate level programming language which is used for microprocessor programming. This macro and procedure are two concepts in assembly by w...
How to get YouTube video data by using YouTube data API and PHP ?
15 Oct, 2020 Thumbnails are used for a preview of a single or group of media entities in a single explorer window. It saves time and gives a better focus to the user’s attention and help us grab attention and educate viewer enhancing web design project. The description is a few words more than the title. The more words...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Oct, 2020" }, { "code": null, "e": 269, "s": 28, "text": "Thumbnails are used for a preview of a single or group of media entities in a single explorer window. It saves time and gives a better focus to the user’s attention and help u...
Mid-Point Line Generation Algorithm
11 Aug, 2021 Given coordinate of two points A(x1, y1) and B(x2, y2) such that x1 < x2 and y1 < y2. The task to find all the intermediate points required for drawing line AB on the computer screen of pixels. Note that every pixel has integer coordinates.We have discussed below algorithms for this task. DDA algorithm fo...
[ { "code": null, "e": 52, "s": 24, "text": "\n11 Aug, 2021" }, { "code": null, "e": 343, "s": 52, "text": "Given coordinate of two points A(x1, y1) and B(x2, y2) such that x1 < x2 and y1 < y2. The task to find all the intermediate points required for drawing line AB on the compute...
How to set python environment variable PYTHONPATH on Mac?
To set the PYTHONPATH on Mac OS to point Python to look in other directories for the module and package imports, export the PYTHONPATH variable as follows: $ export PYTHONPATH=${PYTHONPATH}:${HOME}/foo In this case, are adding the foo directory to the PYTHONPATH. Note that we are appending it and not replacing the PYTH...
[ { "code": null, "e": 1218, "s": 1062, "text": "To set the PYTHONPATH on Mac OS to point Python to look in other directories for the module and package imports, export the PYTHONPATH variable as follows:" }, { "code": null, "e": 1264, "s": 1218, "text": "$ export PYTHONPATH=${PYTH...
Tailwind CSS Justify Content - GeeksforGeeks
23 Mar, 2022 This class accepts two values in tailwind CSS. It is the alternative to the CSS justify-content property. This class is used to describe the alignment of the flexible box container. It contains the space between and around content items along the main axis of a flex container. It is basically used for cont...
[ { "code": null, "e": 37495, "s": 37467, "text": "\n23 Mar, 2022" }, { "code": null, "e": 37880, "s": 37495, "text": "This class accepts two values in tailwind CSS. It is the alternative to the CSS justify-content property. This class is used to describe the alignment of the flexi...
C Program for Radix Sort - GeeksforGeeks
06 Aug, 2018 The Radix Sort Algorithm1) Do following for each digit i where i varies from least significant digit to the most significant digit..............a) Sort input array using counting sort (or any stable sort) according to the i\’th digit. // C++ implementation of Radix Sort#include<iostream>using namespace std...
[ { "code": null, "e": 23790, "s": 23762, "text": "\n06 Aug, 2018" }, { "code": null, "e": 24025, "s": 23790, "text": "The Radix Sort Algorithm1) Do following for each digit i where i varies from least significant digit to the most significant digit..............a) Sort input array...
How to Validate Data using express-validator Module in Node.js ? - GeeksforGeeks
05 May, 2021 Validation in node.js can be easily done by using the express-validator module. This module is popular for data validation. There are other modules available in market like hapi/joi, etc but express-validator is widely used and popular among them.Steps to install express-validator module: You can install...
[ { "code": null, "e": 26731, "s": 26703, "text": "\n05 May, 2021" }, { "code": null, "e": 27023, "s": 26731, "text": "Validation in node.js can be easily done by using the express-validator module. This module is popular for data validation. There are other modules available in ma...
Outlier identification using Interquartile Range | by Gianluca Malato | Towards Data Science
Identifying outliers is a very common task in data pre-processing. They can alter the perceived importance of a sample by a model and, if not handled properly, can alter the result of any analysis. A simple method for identifying them is using the Interquartile Range. IQR (Interquartile Range) is the difference between...
[ { "code": null, "e": 441, "s": 172, "text": "Identifying outliers is a very common task in data pre-processing. They can alter the perceived importance of a sample by a model and, if not handled properly, can alter the result of any analysis. A simple method for identifying them is using the Interqu...
How JVM Works - JVM Architecture? - GeeksforGeeks
15 May, 2021 JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a java code. JVM is a part of JRE(Java Runtime Environment). Java applications are called WORA (Write Once Run Anywhere). This means a programmer can develop Java code...
[ { "code": null, "e": 30197, "s": 30169, "text": "\n15 May, 2021" }, { "code": null, "e": 30398, "s": 30197, "text": "JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a java code. JVM is a p...
Adjoint and Inverse of a Matrix - GeeksforGeeks
11 Jun, 2021 Given a square matrix, find adjoint and inverse of the matrix. We strongly recommend you to refer below as a prerequisite of this. Determinant of a MatrixWhat is Adjoint? Adjoint (or Adjugate) of a matrix is the matrix obtained by taking transpose of the cofactor matrix of a given square matrix is called i...
[ { "code": null, "e": 26285, "s": 26257, "text": "\n11 Jun, 2021" }, { "code": null, "e": 26702, "s": 26285, "text": "Given a square matrix, find adjoint and inverse of the matrix. We strongly recommend you to refer below as a prerequisite of this. Determinant of a MatrixWhat is A...
Angular PrimeNG ListBox Component - GeeksforGeeks
22 Aug, 2021 Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the ListBox component in Angular PrimeNG. ListBox component: It is...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n22 Aug, 2021" }, { "code": null, "e": 26637, "s": 26354, "text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp...
Down-sampling in MATLAB - GeeksforGeeks
01 Oct, 2020 The two basic operations in a multi-rate system are decreasing/down-sampling (decimation) and increasing (interpolation) the sampling rate of a signal. In down-sampling we start with a constant time signal x(t) and convert it into a succession of tests x[n], in decimation we start with a discrete-time sign...
[ { "code": null, "e": 25583, "s": 25555, "text": "\n01 Oct, 2020" }, { "code": null, "e": 25735, "s": 25583, "text": "The two basic operations in a multi-rate system are decreasing/down-sampling (decimation) and increasing (interpolation) the sampling rate of a signal." }, { ...
How to use the Glyphicons icons in Bootstrap
To use the Glyphicons icon in Bootstrap, use the following code just about anywhere in your code. Leave a space between the icon and text for proper padding like − Live Demo <!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> ...
[ { "code": null, "e": 1226, "s": 1062, "text": "To use the Glyphicons icon in Bootstrap, use the following code just about anywhere in your code. Leave a space between the icon and text for proper padding like −" }, { "code": null, "e": 1236, "s": 1226, "text": "Live Demo" }, ...
\hline - Tex Command
\hline - Used to draw horizontal line. { \hline } \hline command draws horizontal line. \begin{matrix} x_{11} & x_{12} \\ x_{21} & x_{22} \\ x_{31} & x_{32} \\ \hline \end{matrix} x11x12x21x22x31x32 \begin{matrix} x_{11} & x_{12} \\ x_{21} & x_{22} \\ x_{31} & x_{32} \\ \hline \end{matrix} x11x12x21x22x31x32 \b...
[ { "code": null, "e": 8025, "s": 7986, "text": "\\hline - Used to draw horizontal line." }, { "code": null, "e": 8036, "s": 8025, "text": "{ \\hline }" }, { "code": null, "e": 8074, "s": 8036, "text": "\\hline command draws horizontal line." }, { "code"...
Bringing songs to life through music visualization | by Sejal Dua | Towards Data Science
This past fall, when I was studying abroad in Copenhagen, I met this designer who was working on a lot of cool visualization projects using Javascript. After a few conversations, I was completely sucked into his creative world. I was mesmerized by his Instagram posts sharing music visualizations in progress, and I ende...
[ { "code": null, "e": 734, "s": 172, "text": "This past fall, when I was studying abroad in Copenhagen, I met this designer who was working on a lot of cool visualization projects using Javascript. After a few conversations, I was completely sucked into his creative world. I was mesmerized by his Ins...
How to get Custom circle button in android?
This example demonstrates how to get Custom circle button 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/actiivity_main.xml. <?xml version = "1.0" encoding = "utf-8"?> <LinearLayou...
[ { "code": null, "e": 1132, "s": 1062, "text": "This example demonstrates how to get Custom circle button in android." }, { "code": null, "e": 1261, "s": 1132, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to creat...
Contextual Embeddings for NLP Sequence Labeling | by Edward Ma | Towards Data Science
Text representation (aka text embeddings) is a breakthrough of solving NLP tasks. At the beginning, single word vector represent a word even though carrying different meaning among context. For example, “Washington” can be a location, name or state. “University of Washington” Zalando released an amazing NLP library, fl...
[ { "code": null, "e": 448, "s": 171, "text": "Text representation (aka text embeddings) is a breakthrough of solving NLP tasks. At the beginning, single word vector represent a word even though carrying different meaning among context. For example, “Washington” can be a location, name or state. “Univ...
ed command in Linux with examples - GeeksforGeeks
15 May, 2019 ed command in Linux is used for launching the ed text editor which is a line-based text editor with a minimal interface which makes it less complex for working on text files i.e creating, editing, displaying and manipulating files. It is the oldest editor built in the Unix. It is succeeded by vi and emacs ...
[ { "code": null, "e": 24015, "s": 23987, "text": "\n15 May, 2019" }, { "code": null, "e": 24335, "s": 24015, "text": "ed command in Linux is used for launching the ed text editor which is a line-based text editor with a minimal interface which makes it less complex for working on ...
What are the transaction isolation levels supported by JDBC API?
JDBC provides support 5 transaction isolation levels through Connection interface. TRANSACTION_NONE: It is represented by integer value 0 does not support transactions. TRANSACTION_NONE: It is represented by integer value 0 does not support transactions. TRANSACTION_READ_COMMITTED: It is represented by integer value 2 ...
[ { "code": null, "e": 1145, "s": 1062, "text": "JDBC provides support 5 transaction isolation levels through Connection interface." }, { "code": null, "e": 1231, "s": 1145, "text": "TRANSACTION_NONE: It is represented by integer value 0 does not support transactions." }, { ...
Swap the objects | Practice | GeeksforGeeks
Classes and objects are one of the most important part of C++. Here we will learn to use classes and objects and we'll swap the values of two objects. We'll provide name, number, and height for two objects. Input Format: The first line of input contains T denoting the number of testcases. T testcases follow. Each tes...
[ { "code": null, "e": 435, "s": 226, "text": "Classes and objects are one of the most important part of C++. \nHere we will learn to use classes and objects and we'll swap the values of two objects. We'll provide name, number, and height for two objects. " }, { "code": null, "e": 670, ...
How to Print a Full NumPy Array Without Truncation | Towards Data Science
When printing out NumPy arrays, the output may be truncated by default due to the large number of elements. While in most of the cases this isn’t a problem, you may sometimes have to print out the array in full in order to be able to inspect the full content. In today’s short guide we will explore a couple of different...
[ { "code": null, "e": 431, "s": 171, "text": "When printing out NumPy arrays, the output may be truncated by default due to the large number of elements. While in most of the cases this isn’t a problem, you may sometimes have to print out the array in full in order to be able to inspect the full cont...
How to set the brightness and contrast of an image with JavaScript?
To set the brightness, use the brightness property and for contrast, use the contrast property. You can try to run the following code to use image filters with JavaScript − Live Demo <!DOCTYPE html> <html> <body> <p>Click below to change the brightness and contrast of the image.</p> <button onclick="disp...
[ { "code": null, "e": 1158, "s": 1062, "text": "To set the brightness, use the brightness property and for contrast, use the contrast property." }, { "code": null, "e": 1235, "s": 1158, "text": "You can try to run the following code to use image filters with JavaScript −" }, {...
Count ways to divide circle using N non-intersecting chord | Set-2 - GeeksforGeeks
07 Dec, 2021 Given a number N. The task is to find the number of ways you can draw N chords in a circle with 2*N points such that no two chords intersect. Two ways are different if there exists a chord that is present in one way and not in other. As the answer could be large print it modulo 10^9+7. Examples: Input : N...
[ { "code": null, "e": 24962, "s": 24934, "text": "\n07 Dec, 2021" }, { "code": null, "e": 25249, "s": 24962, "text": "Given a number N. The task is to find the number of ways you can draw N chords in a circle with 2*N points such that no two chords intersect. Two ways are differen...
Solidity - Restricted Access
Restricted Access to a Contract is a common practice. By Default, a contract state is read-only unless it is specified as public. We can restrict who can modify the contract's state or call a contract's functions using modifiers. We will create and use multiple modifiers as explained below − onlyBy − once used on a fun...
[ { "code": null, "e": 2685, "s": 2555, "text": "Restricted Access to a Contract is a common practice. By Default, a contract state is read-only unless it is specified as public." }, { "code": null, "e": 2848, "s": 2685, "text": "We can restrict who can modify the contract's state ...
How to retrieve the Operating system of the Azure VM using PowerShell?
To retrieve the OS details of the Azure VM, we need to use the Get-AzVM command. Get-AzVM -VMName TestMachine2k16 When you run the above command, it retrieves the VM TestMachine2k16 information and there is an OSType property which shows that if the VM’s OS is Linux or Windows, or any other type. But when you select th...
[ { "code": null, "e": 1143, "s": 1062, "text": "To retrieve the OS details of the Azure VM, we need to use the Get-AzVM command." }, { "code": null, "e": 1176, "s": 1143, "text": "Get-AzVM -VMName TestMachine2k16" }, { "code": null, "e": 1360, "s": 1176, "text"...
GUI-fying the Machine Learning Workflow: Towards Rapid Discovery of Viable Pipelines | by Sean McClure | Towards Data Science
A tenet of software development is to automate as much as possible. This is the DevOps mindset, where an effort towards automation helps teams push features continuously while ensuring best-practices are respected. When teams make automation a priority their developers focus on the least amount of code needed to bring ...
[ { "code": null, "e": 578, "s": 172, "text": "A tenet of software development is to automate as much as possible. This is the DevOps mindset, where an effort towards automation helps teams push features continuously while ensuring best-practices are respected. When teams make automation a priority th...
Get Indices of Specified Values of an Array in R Programming - arrayInd() Function - GeeksforGeeks
08 Jun, 2020 arrayInd() function in R Language is used to get the indices of the values passed to the function as argument. This function takes values and the array in which the values are to be searched and returns the indices for each match found. Syntax: arrayInd(values, dim(x)) Parameters:values: value or vector of...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n08 Jun, 2020" }, { "code": null, "e": 25088, "s": 24851, "text": "arrayInd() function in R Language is used to get the indices of the values passed to the function as argument. This function takes values and the array in which th...
Tryit Editor v3.7
HTML Input types Tryit: input type = month
[ { "code": null, "e": 27, "s": 10, "text": "HTML Input types" } ]
What does the explicit keyword mean in C++?
The explicit keyword in C++ is used to mark constructors to not implicitly convert types. For example, if you have a class Foo − class Foo { public: Foo(int n); // allocates n bytes to the Foo object Foo(const char *p); // initialize object with char *p }; Now if you try Foo mystring = 'x'; The char 'x' is impl...
[ { "code": null, "e": 1191, "s": 1062, "text": "The explicit keyword in C++ is used to mark constructors to not implicitly convert types. For example, if you have a class Foo −" }, { "code": null, "e": 1327, "s": 1191, "text": "class Foo {\npublic:\n Foo(int n); // allocates n ...
Python - Filter Range Length Tuples - GeeksforGeeks
14 Jan, 2020 Sometimes, while working with records, we might desire to filter records in such a way in which we need to discard records that do not contains exact number of elements required to constitute a record and lie in a range. Let’s discuss certain ways in which this task can be performed. Method #1 : Using list...
[ { "code": null, "e": 24270, "s": 24242, "text": "\n14 Jan, 2020" }, { "code": null, "e": 24555, "s": 24270, "text": "Sometimes, while working with records, we might desire to filter records in such a way in which we need to discard records that do not contains exact number of ele...
Multiclass Classification Using Logistic Regression from Scratch in Python: Step by Step Guide | by Rashida Nasrin Sucky | Towards Data Science
Logistic regression is a very popular machine learning technique. We use logistic regression when the dependent variable is categorical. This article will focus on the implementation of logistic regression for multiclass classification problems. I am assuming that you already know how to implement a binary classificati...
[ { "code": null, "e": 520, "s": 171, "text": "Logistic regression is a very popular machine learning technique. We use logistic regression when the dependent variable is categorical. This article will focus on the implementation of logistic regression for multiclass classification problems. I am assu...
Drawing Architecture: Building Deep Convolutional GAN’s In Pytorch | by Emily Elia | Towards Data Science
What I cannot create, I do not understand. Richard Feynman Feynman did not create GAN’s, unsupervised learning, or adversarial training, but with this quote he did demonstrate that intelligence and the ability to understand something is not merely a supervised, discriminative task. In order to understand something you ...
[ { "code": null, "e": 214, "s": 171, "text": "What I cannot create, I do not understand." }, { "code": null, "e": 230, "s": 214, "text": "Richard Feynman" }, { "code": null, "e": 1322, "s": 230, "text": "Feynman did not create GAN’s, unsupervised learning, or a...
Passing by pointer Vs Passing by Reference in C++
These are simple example of passing by pointer and passing by reference - Live Demo #include <iostream> using namespace std; void swap(int* a, int* b) { int c = *a; *a= *b; *b = c; } int main() { int m = 7, n = 6; cout << "Before Swap\n"; cout << "m = " << m << " n = " << n << "\n"; swap(&m, &n); ...
[ { "code": null, "e": 1136, "s": 1062, "text": "These are simple example of passing by pointer and passing by reference -" }, { "code": null, "e": 1147, "s": 1136, "text": " Live Demo" }, { "code": null, "e": 1478, "s": 1147, "text": "#include <iostream>\nusing...