title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Node.js - Net Module
Node.js net module is used to create both servers and clients. This module provides an asynchronous network wrapper and it can be imported using the following syntax. var net = require("net") net.createServer([options][, connectionListener]) Creates a new TCP server. The connectionListener argument is automatically se...
[ { "code": null, "e": 2185, "s": 2018, "text": "Node.js net module is used to create both servers and clients. This module provides an asynchronous network wrapper and it can be imported using the following syntax." }, { "code": null, "e": 2211, "s": 2185, "text": "var net = requi...
Explain the variable declaration, initialization and assignment in C language
The main purpose of variables is to store data in memory. Unlike constants, it will not change during the program execution. However, its value may be changed during execution. The variable declaration indicates that the operating system is going to reserve a piece of memory with that variable name. The syntax for vari...
[ { "code": null, "e": 1239, "s": 1062, "text": "The main purpose of variables is to store data in memory. Unlike constants, it will not change during the program execution. However, its value may be changed during execution." }, { "code": null, "e": 1363, "s": 1239, "text": "The v...
Collections min() method in Java with Examples - GeeksforGeeks
10 Oct, 2018 The min() method of java.util.Collections class is used to return the minimum element of the given collection, according to the natural ordering of its elements. All elements in the collection must implement the Comparable interface. Furthermore, all elements in the collection must be mutually comparable (...
[ { "code": null, "e": 24630, "s": 24602, "text": "\n10 Oct, 2018" }, { "code": null, "e": 25046, "s": 24630, "text": "The min() method of java.util.Collections class is used to return the minimum element of the given collection, according to the natural ordering of its elements. A...
Servlets - Debugging
It is always difficult to testing/debugging a servlets. Servlets tend to involve a large amount of client/server interaction, making errors likely but hard to reproduce. Here are a few hints and suggestions that may aid you in your debugging. System.out.println() is easy to use as a marker to test whether a certain pie...
[ { "code": null, "e": 2355, "s": 2185, "text": "It is always difficult to testing/debugging a servlets. Servlets tend to involve a large amount of client/server interaction, making errors likely but hard to reproduce." }, { "code": null, "e": 2428, "s": 2355, "text": "Here are a f...
C# - While Loop
A while loop statement in C# repeatedly executes a target statement as long as a given condition is true. The syntax of a while loop in C# is βˆ’ while(condition) { statement(s); } Here, statement(s) may be a single statement or a block of statements. The condition may be any expression, and true is any non-zero valu...
[ { "code": null, "e": 2376, "s": 2270, "text": "A while loop statement in C# repeatedly executes a target statement as long as a given condition is true." }, { "code": null, "e": 2414, "s": 2376, "text": "The syntax of a while loop in C# is βˆ’" }, { "code": null, "e": 2...
GATE | GATE-CS-2006 | Question 49
28 Jun, 2021 An implementation of a queue Q, using two stacks S1 and S2, is given below: void insert(Q, x) { push (S1, x);} void delete(Q){ if(stack-empty(S2)) then if(stack-empty(S1)) then { print(β€œQ is empty”); return; } else while (!(stack-empty(S1))){ x=pop(S1); ...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 Jun, 2021" }, { "code": null, "e": 130, "s": 54, "text": "An implementation of a queue Q, using two stacks S1 and S2, is given below:" }, { "code": "void insert(Q, x) { push (S1, x);} void delete(Q){ if(stack-empty(S2)...
Highest power of a number that divides other number
16 Nov, 2021 Given two numbers N and M, the task is to find the highest power of M that divides N. Note: M > 1 Examples: Input: N = 48, M = 4 Output: 2 48 % (4^2) = 0 Input: N = 32, M = 20 Output: 0 32 % (20^0) = 0 Approach: Initially prime factorize both the numbers N and M and store the count of prime factors in f...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Nov, 2021" }, { "code": null, "e": 138, "s": 28, "text": "Given two numbers N and M, the task is to find the highest power of M that divides N. Note: M > 1 Examples: " }, { "code": null, "e": 233, "s": 138, "text...
Python program to compute arithmetic operation from String
01 Oct, 2020 Given a String with the multiplication of elements, convert to the summation of these multiplications. Input : test_str = β€˜5Γ—10, 9Γ—10, 7Γ—8’ Output : 196 Explanation : 50 + 90 + 56 = 196. Input : test_str = β€˜5Γ—10, 9Γ—10’ Output : 140 Explanation : 50 + 90 = 140. Method 1 : Using map() + mul + sum() + spli...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Oct, 2020" }, { "code": null, "e": 132, "s": 28, "text": "Given a String with the multiplication of elements, convert to the summation of these multiplications. " }, { "code": null, "e": 216, "s": 132, "text": "In...
Reverse a String in JavaScript
16 Apr, 2019 Given an input string and the task is to reverse the input string. Examples: Input: str = "Geeks for Geeks" Output: "skeeG rof skeeG" Input: str = "Hello" Output: "olleH" There are many methods to reverse a string in JavaScript some of them are discussed below: Method 1: Check the input string that if g...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Apr, 2019" }, { "code": null, "e": 119, "s": 52, "text": "Given an input string and the task is to reverse the input string." }, { "code": null, "e": 129, "s": 119, "text": "Examples:" }, { "code": null, ...
Set up virtual environment for Python using Anaconda
18 Apr, 2022 If you are dealing with the problem of setting up an environment in anaconda and don’t have any idea why do we have to deal with the pain of setting up the environment then this is the right place for you. Anaconda is an open source software that contains Jupyter, spyder, etc that are used for large data p...
[ { "code": null, "e": 53, "s": 25, "text": "\n18 Apr, 2022" }, { "code": null, "e": 259, "s": 53, "text": "If you are dealing with the problem of setting up an environment in anaconda and don’t have any idea why do we have to deal with the pain of setting up the environment then t...
StringBuilder charAt() in Java with Examples
15 Oct, 2018 The charAt(int index) method of StringBuilder Class is used to return the character at the specified index of String contained by StringBuilder Object. The index value should lie between 0 and length()-1. Syntax: public char charAt(int index) Parameters: This method accepts one int type parameter index whi...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Oct, 2018" }, { "code": null, "e": 233, "s": 28, "text": "The charAt(int index) method of StringBuilder Class is used to return the character at the specified index of String contained by StringBuilder Object. The index value should ...
DynamoDB - Global Secondary Indexes
Applications requiring various query types with different attributes can use a single or multiple global secondary indexes in performing these detailed queries. For example βˆ’ A system keeping a track of users, their login status, and their time logged in. The growth of the previous example slows queries on its data. Gl...
[ { "code": null, "e": 2686, "s": 2525, "text": "Applications requiring various query types with different attributes can use a single or multiple global secondary indexes in performing these detailed queries." }, { "code": null, "e": 2843, "s": 2686, "text": "For example βˆ’ A syste...
Python program to check a sentence is a pangrams or not.
Given a sentence. Our task is to check whether this sentence is pan grams or not. The logic of Pan grams checking is that words or sentences containing every letter of the alphabet at least once. To solve this problem we use set () method and list comprehension technique. Input: string = 'abc def ghi jkl mno pqr stu vw...
[ { "code": null, "e": 1460, "s": 1187, "text": "Given a sentence. Our task is to check whether this sentence is pan grams or not. The logic of Pan grams checking is that words or sentences containing every letter of the alphabet at least once. To solve this problem we use set () method and list compr...
Tryit Editor v3.7
Tryit: Create a full-width input field
[]
Python 3 - String center() Method
The method center() returns centered in a string of length width. Padding is done using the specified fillchar. Default filler is a space. Following is the syntax for center() method βˆ’ str.center(width[, fillchar]) width βˆ’ This is the total width of the string. width βˆ’ This is the total width of the string. fillchar βˆ’...
[ { "code": null, "e": 2479, "s": 2340, "text": "The method center() returns centered in a string of length width. Padding is done using the specified fillchar. Default filler is a space." }, { "code": null, "e": 2525, "s": 2479, "text": "Following is the syntax for center() method...
Maximum equlibrium sum in an array in C++
Given an array arr[]. Find maximum value of prefix sum which is also suffix sum for index i in arr[]. If input array is βˆ’ Arr[] = {1, 2, 3, 5, 3, 2, 1} then output is 11 as βˆ’ Prefix sum = arr[0..3] = 1 + 2 + 3 + 5 = 11 and Suffix sum = arr[3..6] = 5 + 3 + 2 + 1 = 11 Traverse the array and store prefix sum for each inde...
[ { "code": null, "e": 1164, "s": 1062, "text": "Given an array arr[]. Find maximum value of prefix sum which is also suffix sum for index i in arr[]." }, { "code": null, "e": 1184, "s": 1164, "text": "If input array is βˆ’" }, { "code": null, "e": 1237, "s": 1184, ...
JavaScript - Math random Method
This method returns a random number between 0 (inclusive) and 1 (exclusive). Its syntax is as follows βˆ’ Math.random() ; Returns a random number between 0 (inclusive) and 1 (exclusive). Try the following example program. <html> <head> <title>JavaScript Math random() Method</title> </head> <body> ...
[ { "code": null, "e": 2543, "s": 2466, "text": "This method returns a random number between 0 (inclusive) and 1 (exclusive)." }, { "code": null, "e": 2570, "s": 2543, "text": "Its syntax is as follows βˆ’" }, { "code": null, "e": 2587, "s": 2570, "text": "Math.ra...
SAP Testing - Quick Guide
Many organizations implement SAP ERP (Enterprise Resource Planning) to manage their business operations and adapt according to new market challenges. SAP R/3 is an integrated ERP software that allows organizations to manage their business efficiently. Organizations can reduce the cost to run their operations by using S...
[ { "code": null, "e": 2587, "s": 2246, "text": "Many organizations implement SAP ERP (Enterprise Resource Planning) to manage their business operations and adapt according to new market challenges. SAP R/3 is an integrated ERP software that allows organizations to manage their business efficiently. O...
C++ Program to Implement Euler Theorem
This is a C++ Program which demonstrates the implementation of Euler Theorem. The number and modular must be coprime for the modular multiplicative inverse to exist. Begin Take input to find modular multiplicative inverse Take input as modular value Perform inverse array function: modInverse(x + 1, 0); m...
[ { "code": null, "e": 1228, "s": 1062, "text": "This is a C++ Program which demonstrates the implementation of Euler Theorem. The number and modular must be coprime for the modular multiplicative inverse to exist." }, { "code": null, "e": 1508, "s": 1228, "text": "Begin\n Take i...
EJB - Timer Service
Timer Service is a mechanism by which scheduled application can be build. For example, salary slip generation on the 1st of every month. EJB 3.0 specification has specified @Timeout annotation, which helps in programming the EJB service in a stateless or message driven bean. EJB Container calls the method, which is ann...
[ { "code": null, "e": 2387, "s": 2047, "text": "Timer Service is a mechanism by which scheduled application can be build. For example, salary slip generation on the 1st of every month. EJB 3.0 specification has specified @Timeout annotation, which helps in programming the EJB service in a stateless o...
Subtracting a day in MySQL
To subtract a day in MySQL, use the DATE_SUB() method. Let us first create a table βˆ’ mysql> create table DemoTable -> ( -> AdmissionDate timestamp -> ); Query OK, 0 rows affected (1.05 sec) Insert some records in the table using insert command βˆ’ mysql> insert into DemoTable values('2019-01-01'); Query OK, 1 ro...
[ { "code": null, "e": 1147, "s": 1062, "text": "To subtract a day in MySQL, use the DATE_SUB() method. Let us first create a table βˆ’" }, { "code": null, "e": 1261, "s": 1147, "text": "mysql> create table DemoTable\n -> (\n -> AdmissionDate timestamp\n -> );\nQuery OK, 0 rows...
Powershell - Quick Guide
Windows PowerShell is a command-line shell and scripting language designed especially for system administration. It's analogue in Linux is called as Bash Scripting. Built on the .NET Framework, Windows PowerShell helps IT professionals to control and automate the administration of the Windows operating system and appli...
[ { "code": null, "e": 2402, "s": 2034, "text": "Windows PowerShell is a command-line shell and scripting language designed especially for system administration. It's analogue in Linux is called as Bash Scripting. Built on the .NET Framework, Windows PowerShell helps IT professionals to control and au...
HTML - <input> Tag
The HTML <input>tag is used within a form to declare an input element βˆ’ a control that allows the user to input data. <!DOCTYPE html> <html> <head> <title>HTML input Tag</title> </head> <body> <form action = "/cgi-bin/hello_get.cgi" method = "get"> First name: <input type =...
[ { "code": null, "e": 2492, "s": 2374, "text": "The HTML <input>tag is used within a form to declare an input element βˆ’ a control that allows the user to input data." }, { "code": null, "e": 2978, "s": 2492, "text": "<!DOCTYPE html>\n<html>\n\n <head>\n <title>HTML input Ta...
Adding OrbitControls in React using reactthree-fiber
In this article, we will see how to add OrbitControls in React using react-three-fiber. It is like making a camera; we can move on screen and view each side of any 3D object. We can use OrbitControl to provide zoom and sliding effects too. So, let's get started. Install the react-three/fiber library βˆ’ npm i --save @rea...
[ { "code": null, "e": 1325, "s": 1062, "text": "In this article, we will see how to add OrbitControls in React using react-three-fiber. It is like making a camera; we can move on screen and view each side of any 3D object. We can use OrbitControl to provide zoom and sliding effects too. So, let's get...
5 Python Best Practices That Every Programmer Should Follow | by Pranjal Saxena | Towards Data Science
Python, one of the most popular languages of recent times, has a huge community of developers and programmers across the globe. Many beginners, as well as experienced programmers, are taking up Python as their preferred programming language. Also, as it is an open-source language, sharing knowledge within the community...
[ { "code": null, "e": 174, "s": 46, "text": "Python, one of the most popular languages of recent times, has a huge community of developers and programmers across the globe." }, { "code": null, "e": 386, "s": 174, "text": "Many beginners, as well as experienced programmers, are tak...
Python Selenium Automate the Login Form - onlinetutorialspoint
PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC EXCEPTIONS COLLECTIONS SWING JDBC JAVA 8 SPRING SPRING BOOT HIBERNATE PYTHON PHP JQUERY PROGRAMMINGJava ExamplesC Examples Java Examples C Examples C Tutorials aws Here we will see how to automate the login fo...
[ { "code": null, "e": 158, "s": 123, "text": "PROGRAMMINGJava ExamplesC Examples" }, { "code": null, "e": 172, "s": 158, "text": "Java Examples" }, { "code": null, "e": 183, "s": 172, "text": "C Examples" }, { "code": null, "e": 195, "s": 183, ...
Instead of using a semicolon (;) terminator symbol, is there any other built-in-commands which execute the MySQL query?
With the help of the following built-in commands, MySQL can execute a query even if semicolon (;) terminator symbol is not used. We can use this command by using \G option. It means to send the current statement to the server to be executed and display the result in vertical format. When we use \G and omitting semicolo...
[ { "code": null, "e": 1191, "s": 1062, "text": "With the help of the following built-in commands, MySQL can execute a query even if semicolon (;) terminator symbol is not used." }, { "code": null, "e": 1531, "s": 1191, "text": "We can use this command by using \\G option. It means...
multiset insert() function in C++ STL - GeeksforGeeks
17 Nov, 2020 The multiset::insert() is a built-in function in C++ STL which insert elements in the multiset container or inserts the elements from a position to another position from one multiset to a different multiset. Syntax: iterator multiset_name.insert(element) Parameters: The function accepts a mandatory par...
[ { "code": null, "e": 24644, "s": 24616, "text": "\n17 Nov, 2020" }, { "code": null, "e": 24853, "s": 24644, "text": "The multiset::insert() is a built-in function in C++ STL which insert elements in the multiset container or inserts the elements from a position to another positio...
Computing Mass Properties of Ansys Dynamic Models | by Steve Kiefer | Towards Data Science
Ansys is a commercial Finite Element Analysis (FEA) package. While Ansys has acquired and integrated many different analysis tools, its implicit structures package is robust and well-supported. One unique feature of Ansys for its implicit structural solver is the ability to script commands using simple comma-delimited ...
[ { "code": null, "e": 832, "s": 172, "text": "Ansys is a commercial Finite Element Analysis (FEA) package. While Ansys has acquired and integrated many different analysis tools, its implicit structures package is robust and well-supported. One unique feature of Ansys for its implicit structural solve...
Adding a new NOT NULL column to an existing table with records
To add a new NOT NULL column to an already created table, use ALTER command. Let us first create a table βˆ’ mysql> create table DemoTable -> ( -> StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> StudentName varchar(20) -> ); Query OK, 0 rows affected (0.60 sec) Following is the query to add a new NOT NU...
[ { "code": null, "e": 1169, "s": 1062, "text": "To add a new NOT NULL column to an already created table, use ALTER command. Let us first create a table βˆ’" }, { "code": null, "e": 1340, "s": 1169, "text": "mysql> create table DemoTable\n -> (\n -> StudentId int NOT NULL AUTO_I...
Format function in Python. Python’s str.format() technique of the... | by sunil kumar | Towards Data Science
Python’s str.format() technique of the string category permits you to try and do variable substitutions and data formatting. This enables you to concatenate parts of a string at desired intervals through point data format. This article can guide you through a number of the common uses of formatters in Python, which may...
[ { "code": null, "e": 394, "s": 171, "text": "Python’s str.format() technique of the string category permits you to try and do variable substitutions and data formatting. This enables you to concatenate parts of a string at desired intervals through point data format." }, { "code": null, ...
A Review of Named Entity Recognition (NER) Using Automatic Summarization of Resumes | by Mohan Gupta | Towards Data Science
Understand what NER is and how it is used in the industry, various libraries for NER, code walk through of using NER for resume summarization. This blog speaks about a field in Natural language Processing (NLP) and Information Retrieval (IR) called Named Entity Recognition and how we can apply it for automatically gene...
[ { "code": null, "e": 314, "s": 171, "text": "Understand what NER is and how it is used in the industry, various libraries for NER, code walk through of using NER for resume summarization." }, { "code": null, "e": 599, "s": 314, "text": "This blog speaks about a field in Natural l...
Difference Between Process, Parent Process, and Child Process - GeeksforGeeks
19 May, 2021 Running program is a process. From this process, another process can be created. There is a parent-child relationship between the two processes. This can be achieved using a library function called fork(). fork() function splits the running process into two processes, the existing one is known as parent an...
[ { "code": null, "e": 24492, "s": 24464, "text": "\n19 May, 2021" }, { "code": null, "e": 24880, "s": 24492, "text": "Running program is a process. From this process, another process can be created. There is a parent-child relationship between the two processes. This can be achiev...
EJB - JNDI Bindings
JNDI stands for Java Naming and Directory Interface. It is a set of API and service interfaces. Java based applications use JNDI for naming and directory services. In context of EJB, there are two terms. Binding βˆ’ This refers to assigning a name to an EJB object, which can be used later. Binding βˆ’ This refers to assign...
[ { "code": null, "e": 2251, "s": 2047, "text": "JNDI stands for Java Naming and Directory Interface. It is a set of API and service interfaces. Java based applications use JNDI for naming and directory services. In context of EJB, there are two terms." }, { "code": null, "e": 2336, "s...
Creating a Queue in Javascript
Though Arrays in JavaScript provide all the functionality of a Queue, let us implement our own Queue class. Our class will have the following functions βˆ’ enqueue(element): Function to add an element in the queue. dequeue(): Function that removes an element from the queue. peek(): Returns the element from the front o...
[ { "code": null, "e": 1216, "s": 1062, "text": "Though Arrays in JavaScript provide all the functionality of a Queue, let us implement our own Queue class. Our class will have the following functions βˆ’" }, { "code": null, "e": 1276, "s": 1216, "text": " enqueue(element): Function ...
How to set the font size of Matplotlib axis Legend?
To set the font size of matplotlib axis legend, we can take the following steps βˆ’ Create the points for x and y using numpy. Create the points for x and y using numpy. Plot x and y using the plot() method with label y=sin(x). Plot x and y using the plot() method with label y=sin(x). Title the plot using the title() met...
[ { "code": null, "e": 1144, "s": 1062, "text": "To set the font size of matplotlib axis legend, we can take the following steps βˆ’" }, { "code": null, "e": 1187, "s": 1144, "text": "Create the points for x and y using numpy." }, { "code": null, "e": 1230, "s": 1187,...
Write a Python program to export a dataframe to an html file
Assume, we have already saved pandas.csv file and export the file to Html format To solve this, we will follow the steps given below βˆ’ Read the csv file using the read_csv method as follows βˆ’ Read the csv file using the read_csv method as follows βˆ’ df = pd.read_csv('pandas.csv') Create new file pandas.html in write mod...
[ { "code": null, "e": 1143, "s": 1062, "text": "Assume, we have already saved pandas.csv file and export the file to Html format" }, { "code": null, "e": 1197, "s": 1143, "text": "To solve this, we will follow the steps given below βˆ’" }, { "code": null, "e": 1254, ...
Ionic - Cordova Icon and Splash Screen
Every mobile app needs an icon and splash screen. Ionic provides excellent solution for adding it and requires minimum work for the developers. Cropping and resizing is automated on the Ionic server. In the earlier chapters, we have discussed how to add different platforms for the Ionic app. By adding a platform, Ionic...
[ { "code": null, "e": 2663, "s": 2463, "text": "Every mobile app needs an icon and splash screen. Ionic provides excellent solution for adding it and requires minimum work for the developers. Cropping and resizing is automated on the Ionic server." }, { "code": null, "e": 2935, "s": 2...
How to Augmentate Data Using Keras | by Ravindu Senaratne | Towards Data Science
Data Augmentation is very useful if you would like to augment your data or increase the amount of training or validation data. For example, If you have 2000 images and you would like to get 5000 or 10000 of those then this can be very useful. But if you have 5 or 10 images, don’t expect to get 2000 or 10000 images from...
[ { "code": null, "e": 415, "s": 172, "text": "Data Augmentation is very useful if you would like to augment your data or increase the amount of training or validation data. For example, If you have 2000 images and you would like to get 5000 or 10000 of those then this can be very useful." }, { ...
How to perform element-wise subtraction on tensors in PyTorch?
To perform element-wise subtraction on tensors, we can use the torch.sub() method of PyTorch. The corresponding elements of the tensors are subtracted. We can subtract a scalar or tensor from another tensor. We can subtract a tensor from a tensor with same or different dimension. The dimension of the final tensor will ...
[ { "code": null, "e": 1441, "s": 1062, "text": "To perform element-wise subtraction on tensors, we can use the torch.sub() method of PyTorch. The corresponding elements of the tensors are subtracted. We can subtract a scalar or tensor from another tensor. We can subtract a tensor from a tensor with s...
What does built-in class attribute __bases__ do in Python?
This built-in class attribute when called prints the tuple of base classes of a class object. The following code shows how the __bases__ works. B is a child class of the parent/base class A. class A(object): pass class B(A): pass b = B() print B.__bases__ This gives the output (<class '__main__.A'>,)
[ { "code": null, "e": 1156, "s": 1062, "text": "This built-in class attribute when called prints the tuple of base classes of a class object." }, { "code": null, "e": 1253, "s": 1156, "text": "The following code shows how the __bases__ works. B is a child class of the parent/base ...
How to Build And Publish Command-Line Applications With Python | by Oyetoke Tobi Emmanuel | Towards Data Science
Command-line applications are basically programs you run in your terminal and chances are that you have tried or thought of building one. Building a Command-Line Application is one thing, publishing it to an open public code repository like PyPI is another thing and shouldn’t be seen as a difficult task or process. I h...
[ { "code": null, "e": 184, "s": 46, "text": "Command-line applications are basically programs you run in your terminal and chances are that you have tried or thought of building one." }, { "code": null, "e": 363, "s": 184, "text": "Building a Command-Line Application is one thing,...
Rearrange Array Alternately | Practice | GeeksforGeeks
Given a sorted array of positive integers. Your task is to rearrange the array elements alternatively i.e first element should be max value, second should be min value, third should be second max, fourth should be second min and so on. Example 1: Input: N = 6 arr[] = {1,2,3,4,5,6} Output: 6 1 5 2 4 3 Explanation: Max ...
[ { "code": null, "e": 475, "s": 238, "text": "Given a sorted array of positive integers. Your task is to rearrange the array elements alternatively i.e first element should be max value, second should be min value, third should be second max, fourth should be second min and so on." }, { "cod...
JDBC - Stored Procedure
We have learnt how to use Stored Procedures in JDBC while discussing the JDBC - Statements chapter. This chapter is similar to that section, but it would give you additional information about JDBC SQL escape syntax. Just as a Connection object creates the Statement and PreparedStatement objects, it also creates the Cal...
[ { "code": null, "e": 2378, "s": 2162, "text": "We have learnt how to use Stored Procedures in JDBC while discussing the JDBC - Statements chapter. This chapter is similar to that section, but it would give you additional information about JDBC SQL escape syntax." }, { "code": null, "e": ...
Format date with DateFormat.MEDIUM in Java
DateFormat.MEDIUM is a constant for medium style pattern. Firstly, we will create date object βˆ’ Date dt = new Date(); DateFormat dateFormat; Let us format date for different locale with DateFormat.MEDIUM βˆ’ // CHINESE dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.CHINESE); // CANADA dateFormat = Date...
[ { "code": null, "e": 1120, "s": 1062, "text": "DateFormat.MEDIUM is a constant for medium style pattern." }, { "code": null, "e": 1158, "s": 1120, "text": "Firstly, we will create date object βˆ’" }, { "code": null, "e": 1203, "s": 1158, "text": "Date dt = new D...
Replace a specific duplicate record with a new value in MySQL
Let us first create a table βˆ’ mysql> create table DemoTable ( Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, Name varchar(50) ); Query OK, 0 rows affected (0.62 sec) Insert some records in the table using insert command βˆ’ mysql> insert into DemoTable(Name) values('Chris'); Query OK, 1 row affected (0.17 sec) mysql> ...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table βˆ’" }, { "code": null, "e": 1231, "s": 1092, "text": "mysql> create table DemoTable\n(\n Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,\n Name varchar(50)\n);\nQuery OK, 0 rows affected (0.62 sec)" }, ...
ReactJS - Nested Components
As we learned earlier, React component is the building block of a React application. A React component is made up of the multiple individual components. React allows multiple components to be combined to create larger components. Also, React components can be nested to any arbitrary level. Let us see how React componen...
[ { "code": null, "e": 2389, "s": 2033, "text": "As we learned earlier, React component is the building block of a React application. A React component is made up of the multiple individual components. React allows multiple components to be combined to create larger components. Also, React components ...
Ruby on Rails - File Uploading
You may have a requirement in which you want your site visitors to upload a file on your server. Rails makes it very easy to handle this requirement. Now we will proceed with a simple and small Rails project. As usual, let's start off with a new Rails application called testfile. Let's create the basic structure of the...
[ { "code": null, "e": 2312, "s": 2103, "text": "You may have a requirement in which you want your site visitors to upload a file on your server. Rails makes it very easy to handle this requirement. Now we will proceed with a simple and small Rails project." }, { "code": null, "e": 2467, ...
Count the number of visible nodes in Binary Tree - GeeksforGeeks
23 Jun, 2021 Given a Binary tree, the task is to find the number of visible nodes in the given binary tree. A node is a visible node if, in the path from the root to the node N, there is no node with greater value than N’s, Examples: Input: 5 / \ 3 10 / \ / 20 21 1 Output: 4 Explanation: Th...
[ { "code": null, "e": 24938, "s": 24910, "text": "\n23 Jun, 2021" }, { "code": null, "e": 25160, "s": 24938, "text": "Given a Binary tree, the task is to find the number of visible nodes in the given binary tree. A node is a visible node if, in the path from the root to the node N...
Societe Generale (SocGen) Virtual Interview Experience
28 Aug, 2020 Round 1: Written test (Platform: Hirepro, No negative marks for MCQ) The test had Aptitude, Verbal, Technical MCQ questions, and Coding. Every section had individual timings and you cannot use the remaining time of the previous section in the next section. You have to finish it in the allotted time. You ha...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Aug, 2020" }, { "code": null, "e": 97, "s": 28, "text": "Round 1: Written test (Platform: Hirepro, No negative marks for MCQ)" }, { "code": null, "e": 834, "s": 97, "text": "The test had Aptitude, Verbal, Technica...
Horner’s Method for Polynomial Evaluation
02 Nov, 2021 Given a polynomial of the form cnxn + cn-1xn-1 + cn-2xn-2 + ... + c1x + c0 and a value of x, find the value of polynomial for a given value of x. Here cn, cn-1, .. are integers (may be negative) and n is a positive integer.Input is in the form of an array say poly[] where poly[0] represents coefficient for...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Nov, 2021" }, { "code": null, "e": 428, "s": 52, "text": "Given a polynomial of the form cnxn + cn-1xn-1 + cn-2xn-2 + ... + c1x + c0 and a value of x, find the value of polynomial for a given value of x. Here cn, cn-1, .. are intege...
Like instagram pictures using Selenium | Python
30 Oct, 2020 In this article, we will learn how can we like all the pictures of a profile on Instagram without scrolling and manually clicking the buttons. We will be using Selenium to do this task. Packages/Software needed: 1. Python 3 2. Chromedriver compatible with the existing chrome version (download chromedriv...
[ { "code": null, "e": 52, "s": 24, "text": "\n30 Oct, 2020" }, { "code": null, "e": 240, "s": 52, "text": "In this article, we will learn how can we like all the pictures of a profile on Instagram without scrolling and manually clicking the buttons. We will be using Selenium to do...
C# | Command Line Arguments
26 Feb, 2019 The arguments which are passed by the user or programmer to the Main() method is termed as Command-Line Arguments. Main() method is the entry point of execution of a program. Main() method accepts array of strings. But it never accepts parameters from any other method in the program. In C# the command line...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Feb, 2019" }, { "code": null, "e": 427, "s": 53, "text": "The arguments which are passed by the user or programmer to the Main() method is termed as Command-Line Arguments. Main() method is the entry point of execution of a program....
Precision of floating point numbers in C++ (floor(), ceil(), trunc(), round() and setprecision())
Precision of floating point numbers is the accuracy upto which a floating point number can hold the values after decimal. For example 10/6 = 1.6666666... these have recurring decimals which can take infinite memory spaces to be stored. So to avoid memory overflow in such cases the compiler set a precision limit to the ...
[ { "code": null, "e": 1309, "s": 1187, "text": "Precision of floating point numbers is the accuracy upto which a floating point number can hold the values after decimal." }, { "code": null, "e": 1423, "s": 1309, "text": "For example 10/6 = 1.6666666... these have recurring decimal...
LocalDateTime compareTo() method in Java with Examples
30 Nov, 2018 The compareTo() method of LocalDateTime class in Java is used to compare this date-time to the date-time passed as the parameter. Syntax: public int compareTo(ChronoLocalDateTime anotherDate) Parameter: This method accepts a parameter anotherDate which specifies the other date-time to be compare to. It sh...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Nov, 2018" }, { "code": null, "e": 158, "s": 28, "text": "The compareTo() method of LocalDateTime class in Java is used to compare this date-time to the date-time passed as the parameter." }, { "code": null, "e": 166, ...
JavaScript Intl Methods
27 Dec, 2021 Below is an example of the Intl method. Example : Javascript <script>function func(){ // Original Array var arr = ['z', 's', 'l', 'm', 'c', 'a', 'b']; // Sorting Array var arr_sort = arr.sort(new Intl.Collator('en').compare) console.log(arr_sort);}func();</script> Output: ['a', 'b', 'c', 'l', 'm',...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Dec, 2021" }, { "code": null, "e": 68, "s": 28, "text": "Below is an example of the Intl method." }, { "code": null, "e": 79, "s": 68, "text": "Example : " }, { "code": null, "e": 90, "s": 79, ...
How to style social media buttons with CSS?
Following is the code to style social media buttons with CSS βˆ’ Live Demo <!DOCTYPE html> <html> <head> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"...
[ { "code": null, "e": 1250, "s": 1187, "text": "Following is the code to style social media buttons with CSS βˆ’" }, { "code": null, "e": 1261, "s": 1250, "text": " Live Demo" }, { "code": null, "e": 2221, "s": 1261, "text": "<!DOCTYPE html>\n<html>\n<head>\n<lin...
Majority Element | Practice | GeeksforGeeks
Given an array A of N elements. Find the majority element in the array. A majority element in an array A of size N is an element that appears more than N/2 times in the array. Example 1: Input: N = 3 A[] = {1,2,3} Output: -1 Explanation: Since, each element in {1,2,3} appears only once so there is no majority ele...
[ { "code": null, "e": 416, "s": 238, "text": "Given an array A of N elements. Find the majority element in the array. A majority element in an array A of size N is an element that appears more than N/2 times in the array.\n " }, { "code": null, "e": 427, "s": 416, "text": "Example...
How to Sort a Set of Values in Python?
16 Jun, 2021 Sorting means arranging the set of values in either an increasing or decreasing manner. There are various methods to sort values in Python. We can store a set or group of values using various data structures such as list, tuples, dictionaries which depends on the data we are storing. So, in this article, w...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Jun, 2021" }, { "code": null, "e": 404, "s": 28, "text": "Sorting means arranging the set of values in either an increasing or decreasing manner. There are various methods to sort values in Python. We can store a set or group of valu...
Python | Converting list string to dictionary
28 Apr, 2019 Yet another problem regarding the interconversion between data types is conversion of string of list to a dictionary of keys and values. This particular problem can occur at the places where we need huge amount of string data to be converted to dictionary for preprocessing in Machine Learning domain. Let’s...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Apr, 2019" }, { "code": null, "e": 389, "s": 28, "text": "Yet another problem regarding the interconversion between data types is conversion of string of list to a dictionary of keys and values. This particular problem can occur at t...
How to Create a Histogram in Excel?
19 Apr, 2021 A histogram is one of the most common data analysis tools in the business world. It is a graphical representation of data that clubs all the data that fall under specific regions. The numbers on the X-axis represent bins Note: We’re using Microsoft Excel 2010 for this article, but the steps shown further w...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Apr, 2021" }, { "code": null, "e": 208, "s": 28, "text": "A histogram is one of the most common data analysis tools in the business world. It is a graphical representation of data that clubs all the data that fall under specific regi...
Stream filter() in Java with examples
03 May, 2022 Stream filter(Predicate predicate) returns a stream consisting of the elements of this stream that match the given predicate. This is an intermediate operation. These operations are always lazy i.e, executing an intermediate operation such as filter() does not actually perform any filtering, but instead cr...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 May, 2022" }, { "code": null, "e": 479, "s": 54, "text": "Stream filter(Predicate predicate) returns a stream consisting of the elements of this stream that match the given predicate. This is an intermediate operation. These operati...
Working with Strings in Python 3
05 Sep, 2020 In Python, sequences of characters are referred to as Strings. It used in Python to record text information, such as names. Python strings are β€œimmutable” which means they cannot be changed after they are created. Strings can be created using single quotes, double quotes, or even triple quotes. Python trea...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Sep, 2020" }, { "code": null, "e": 242, "s": 28, "text": "In Python, sequences of characters are referred to as Strings. It used in Python to record text information, such as names. Python strings are β€œimmutable” which means they can...
Implement Phone Directory using Hashing
26 Jun, 2020 Hashing is a technique that uses fewer key comparisons and searches the element in O(n) time in the worst case and in O(1) time in the average case. The task is to implement all functions of phone directory:create_recorddisplay_recorddelete_recordsearch_recordupdate_record create_record display_record dele...
[ { "code": null, "e": 52, "s": 24, "text": "\n26 Jun, 2020" }, { "code": null, "e": 201, "s": 52, "text": "Hashing is a technique that uses fewer key comparisons and searches the element in O(n) time in the worst case and in O(1) time in the average case." }, { "code": nul...
HTML | DOM Style display Property
05 Jun, 2022 The Style display property in HTML DOM is used to set or return the display type of an element. It is similar to the visibility property, which display or hide the element. With a slight difference of display: none, hiding the entire element, while visibility: hidden meaning only the contents of the elemen...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jun, 2022" }, { "code": null, "e": 420, "s": 28, "text": "The Style display property in HTML DOM is used to set or return the display type of an element. It is similar to the visibility property, which display or hide the element. Wi...
Types of Locks in Concurrency Control
11 Jan, 2022 Commercial demands for ensuring smooth functionality and highly efficient run-time servers, make it highly prime for Database Designers to work out systems and code which cleverly avoid any kinds of inconsistencies in multi-user transactions, if not doubt the standard of memory management in read-heavy, wr...
[ { "code": null, "e": 28, "s": 0, "text": "\n11 Jan, 2022" }, { "code": null, "e": 538, "s": 28, "text": "Commercial demands for ensuring smooth functionality and highly efficient run-time servers, make it highly prime for Database Designers to work out systems and code which clev...
Iterating over each index of array in Julia – eachindex() Method
26 Mar, 2020 The eachindex() is an inbuilt function in julia which is used to create an iterable object for visiting each index of the specified array. Syntax:eachindex(A...) Parameters: A: Specified array. Returns: It returns an iterable object for visiting each index of the specified array. Example 1: # Julia program...
[ { "code": null, "e": 28, "s": 0, "text": "\n26 Mar, 2020" }, { "code": null, "e": 167, "s": 28, "text": "The eachindex() is an inbuilt function in julia which is used to create an iterable object for visiting each index of the specified array." }, { "code": null, "e":...
Python | Splitting list on empty string
01 Jul, 2020 Sometimes, we may face an issue in which we require to split a list to list of list on the blank character sent as deliminator. This kind of problem can be used to send messages or can be used in cases where it is desired to have list of list of native list. Let’s discuss certain ways in which this can be ...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Jul, 2020" }, { "code": null, "e": 341, "s": 28, "text": "Sometimes, we may face an issue in which we require to split a list to list of list on the blank character sent as deliminator. This kind of problem can be used to send messag...
PyQt5 – QDoubleSpinBox
14 Jul, 2020 QDoubleSpinBox allows the user to choose a value by clicking the up and down buttons or by pressing Up or Down on the keyboard to increase or decrease the value currently displayed. The user can also type the value in manually. The spin box supports double values but can be extended to use different string...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Jul, 2020" }, { "code": null, "e": 382, "s": 28, "text": "QDoubleSpinBox allows the user to choose a value by clicking the up and down buttons or by pressing Up or Down on the keyboard to increase or decrease the value currently disp...
LSTM – Derivation of Back propagation through time
27 Dec, 2021 LSTM (Long short term Memory ) is a type of RNN(Recurrent neural network), which is a famous deep learning algorithm that is well suited for making predictions and classification with a flavour of the time. In this article, we will derive the algorithm backpropagation through time and find the gradient val...
[ { "code": null, "e": 52, "s": 24, "text": "\n27 Dec, 2021" }, { "code": null, "e": 628, "s": 52, "text": "LSTM (Long short term Memory ) is a type of RNN(Recurrent neural network), which is a famous deep learning algorithm that is well suited for making predictions and classifica...
Perl | Array Slices
26 Nov, 2019 In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list is termed as an element. Elements can either be a number, string, or any type of scalar data including another variable.Arrays can store any type of data and that data can be accessed in ...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Nov, 2019" }, { "code": null, "e": 538, "s": 53, "text": "In Perl, array is a special type of variable. The array is used to store the list of values and each object of the list is termed as an element. Elements can either be a numb...
std::fstream::close() in C++
24 Feb, 2022 Files play an important role in programming. It allows storage of data permanently. The C++ language provides a mechanism to store the output of a program in a file and browse from a file on the disk. This mechanism is termed file handling. In order to perform file handling, some general functions which ar...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Feb, 2022" }, { "code": null, "e": 358, "s": 28, "text": "Files play an important role in programming. It allows storage of data permanently. The C++ language provides a mechanism to store the output of a program in a file and browse...
Best Coding Practices For Rest API Design
19 Apr, 2022 JSON, Endpoints, Postman, CRUD, Curl, HTTP, Status Code, Request, Response, Authentication, All these words are familiar to you if you are in backend development and you have worked on API (Application Programming Interface). Being a developer you might have worked on some kind of APIs (especially those w...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Apr, 2022" }, { "code": null, "e": 145, "s": 52, "text": "JSON, Endpoints, Postman, CRUD, Curl, HTTP, Status Code, Request, Response, Authentication, " }, { "code": null, "e": 543, "s": 145, "text": "All these wo...
HTTP headers | Cookie
30 Oct, 2019 HTTP headers are used to pass additional information with HTTP response or HTTP requests. A cookie is an HTTP request header i.e. used in the requests sent by the user to the server. It contains the cookies previously sent by the server using set-cookies. It is an optional header. Syntax: Cookie: <cookie-l...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Oct, 2019" }, { "code": null, "e": 310, "s": 28, "text": "HTTP headers are used to pass additional information with HTTP response or HTTP requests. A cookie is an HTTP request header i.e. used in the requests sent by the user to the ...
LocalDate toEpochSecond() method in Java with Examples
17 Dec, 2018 The toEpochSecond() method of a LocalDate class is used to convert this LocalDate to the number of seconds since the epoch of 1970-01-01T00:00:00Z. The method combines this local date with the specified time and offsets passed as parameters to calculate the epoch-second value, which is the number of elapse...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2018" }, { "code": null, "e": 449, "s": 28, "text": "The toEpochSecond() method of a LocalDate class is used to convert this LocalDate to the number of seconds since the epoch of 1970-01-01T00:00:00Z. The method combines this lo...
Maximum value of unsigned int in C++
18 Jan, 2021 In this article, we will discuss the maximum value of unsigned int in C++. Unsigned int data type in C++ is used to store 32-bit integers. The keyword unsigned is a data type specifier, which only represents non-negative integers i.e. positive numbers and zero. Some properties of the unsigned int data typ...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Jan, 2021" }, { "code": null, "e": 129, "s": 54, "text": "In this article, we will discuss the maximum value of unsigned int in C++." }, { "code": null, "e": 193, "s": 129, "text": "Unsigned int data type in C++ ...
How to get the IIS Application Pool names using PowerShell?
To get the IIS application pool names using PowerShell, you need to use the IIS PSDrive but for that, we need the IIS PowerShell module WebAdministration or IISAdministration on the server we are running the command. If the WebAdministration module is already installed, use the below command to import the module. Impor...
[ { "code": null, "e": 1404, "s": 1187, "text": "To get the IIS application pool names using PowerShell, you need to use the IIS PSDrive but for that, we need the IIS PowerShell module WebAdministration or IISAdministration on the server we are running the command." }, { "code": null, "e":...
NPDA for accepting the language L = {wwR | w ∈ (a,b)*}
20 Jan, 2022 Prerequisite – Pushdown Automata, Pushdown Automata Acceptance by Final State Design a non deterministic PDA for accepting the language L = {wwR w ∈ (a, b)*}, i.e., L = {aa, bb, abba, aabbaa, abaaba, ......} In this type of input string, one input has more than one transition states, hence it is called ...
[ { "code": null, "e": 54, "s": 26, "text": "\n20 Jan, 2022" }, { "code": null, "e": 133, "s": 54, "text": "Prerequisite – Pushdown Automata, Pushdown Automata Acceptance by Final State " }, { "code": null, "e": 221, "s": 133, "text": "Design a non deterministic...
HTML <section> Tag
17 Mar, 2022 Section tag defines the section of documents such as chapters, headers, footers or any other sections. The section tag divides the content into section and subsections. The section tag is used when requirements of two headers or footers or any other section of documents needed. Section tag grouped the gene...
[ { "code": null, "e": 53, "s": 25, "text": "\n17 Mar, 2022" }, { "code": null, "e": 527, "s": 53, "text": "Section tag defines the section of documents such as chapters, headers, footers or any other sections. The section tag divides the content into section and subsections. The s...
Python | Min/Max value in float string list
22 Jan, 2021 Sometimes, while working with a Python list, we can have a problem in which we need to find min/max value in the list. But sometimes, we don’t have a natural number but a floating-point number in string format. This problem can occur while working with data, both in web development and Data Science domain....
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jan, 2021" }, { "code": null, "e": 607, "s": 28, "text": "Sometimes, while working with a Python list, we can have a problem in which we need to find min/max value in the list. But sometimes, we don’t have a natural number but a floa...
The new age of Jupyter widgets. What if you could use your NPM goodies... | by Dimitris Poulopoulos | Towards Data Science
Notebooks have always been a tool for the incremental development of software ideas. Data scientists use Jupyter to journal their work, explore and experiment with novel algorithms, quickly sketch new approaches and immediately observe the outcomes. This interactivity is what makes Jupyter so appealing. To take it one ...
[ { "code": null, "e": 422, "s": 172, "text": "Notebooks have always been a tool for the incremental development of software ideas. Data scientists use Jupyter to journal their work, explore and experiment with novel algorithms, quickly sketch new approaches and immediately observe the outcomes." },...
Fortran - Dynamic Arrays
A dynamic array is an array, the size of which is not known at compile time, but will be known at execution time. Dynamic arrays are declared with the attribute allocatable. For example, real, dimension (:,:), allocatable :: darray The rank of the array, i.e., the dimensions has to be mentioned however, to allocate...
[ { "code": null, "e": 2260, "s": 2146, "text": "A dynamic array is an array, the size of which is not known at compile time, but will be known at execution time." }, { "code": null, "e": 2320, "s": 2260, "text": "Dynamic arrays are declared with the attribute allocatable." }, ...
How to stop training a neural-network using callback? | by Supratim Haldar | Towards Data Science
Often, when training a very deep neural network, we want to stop training once the training accuracy reaches a certain desired threshold. Thus, we can achieve what we want (optimal model weights) and avoid wastage of resources (time and computation power). In this brief tutorial, let’s learn how to achieve this in Tens...
[ { "code": null, "e": 429, "s": 172, "text": "Often, when training a very deep neural network, we want to stop training once the training accuracy reaches a certain desired threshold. Thus, we can achieve what we want (optimal model weights) and avoid wastage of resources (time and computation power)...
Installing a Python Based Machine Learning Environment in Windows 10 | by Frank Ceballos | Towards Data Science
Purpose: To install a Python based environment for machine learning. The following set of instructions were compiled from across the web and written for a Windows 10 OS. Last tested on 02/09/2019. When I first got into machine learning it took me a few hours to figure how to properly set my Python environment. Out of f...
[ { "code": null, "e": 241, "s": 172, "text": "Purpose: To install a Python based environment for machine learning." }, { "code": null, "e": 369, "s": 241, "text": "The following set of instructions were compiled from across the web and written for a Windows 10 OS. Last tested on 0...
How to read all the coming notifications in android?
This example demonstrate about How to read all the coming notifications 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 src/MyListener.java public interface MyListener { void setValue (Strin...
[ { "code": null, "e": 1145, "s": 1062, "text": "This example demonstrate about How to read all the coming notifications in android" }, { "code": null, "e": 1274, "s": 1145, "text": "Step 1 βˆ’ Create a new project in Android Studio, go to File β‡’ New Project and fill all required det...
CSS | Combine background image with gradient overlay - GeeksforGeeks
19 Feb, 2020 CSS gradients allow us to display smooth transitions between two or more colors. They can be added on top of the background image by simply combining background-image url and gradient properties.Syntax: For linear-gradient on top of the Background Image:element { background-image: linear-gradient(direc...
[ { "code": null, "e": 25011, "s": 24983, "text": "\n19 Feb, 2020" }, { "code": null, "e": 25214, "s": 25011, "text": "CSS gradients allow us to display smooth transitions between two or more colors. They can be added on top of the background image by simply combining background-im...
11 Practical Tips You Need to Know to Personalize Jupyter Notebook | by Rizky Maulana N | Towards Data Science
Are you a python programmer who is using Jupyter Notebook as your compiler? If you want to try a new taste in running your python code in Jupyter Notebook (hereafter; Jupyter), you can change and personalize it by your favorite color, font family. You can apply 11 practical tips I recommend to build your Jupyter user i...
[ { "code": null, "e": 501, "s": 171, "text": "Are you a python programmer who is using Jupyter Notebook as your compiler? If you want to try a new taste in running your python code in Jupyter Notebook (hereafter; Jupyter), you can change and personalize it by your favorite color, font family. You can...
Materialize - Dropdowns
Materialize provides dropdown CSS class to make a ul element as a dropdown and add the id of the ul element to the data-activates attribute of the button or anchor element. The following table mentions the available classes and their effects. dropdown-content Identifies ul as a materialize dropdown component. Required ...
[ { "code": null, "e": 2430, "s": 2187, "text": "Materialize provides dropdown CSS class to make a ul element as a dropdown and add the id of the ul element to the data-activates attribute of the button or anchor element. The following table mentions the available classes and their effects." }, { ...
MySQL Tryit Editor v1.0
SELECT * FROM Customers LIMIT 3; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of the Try-S...
[ { "code": null, "e": 33, "s": 0, "text": "SELECT * FROM Customers LIMIT 3;" }, { "code": null, "e": 35, "s": 33, "text": "​" }, { "code": null, "e": 107, "s": 44, "text": "Edit the SQL Statement, and click \"Run SQL\" to see the result." }, { "code": n...
Create global variable in jQuery outside document.ready function?
To create a global variable, you need to place variable inside the <script> </script> tag. Following is the code βˆ’ Live Demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initialscale=1.0"> <title>Document</title> <link rel="stylesheet" href="//code.j...
[ { "code": null, "e": 1177, "s": 1062, "text": "To create a global variable, you need to place variable inside the <script> </script> tag.\nFollowing is the code βˆ’" }, { "code": null, "e": 1188, "s": 1177, "text": " Live Demo" }, { "code": null, "e": 2150, "s": 118...
How to format Java LocalDateTime as ISO_DATE_TIME format
At first, set the date: LocalDateTime dateTime = LocalDateTime.of(2019, Month.JULY, 9, 10, 20); Now, format the datetime as ISO_DATE_TIME format: String str = dateTime.format(DateTimeFormatter.ISO_DATE_TIME); import java.time.LocalDateTime; import java.time.Month; import java.time.format.DateTimeFormatter; public class...
[ { "code": null, "e": 1086, "s": 1062, "text": "At first, set the date:" }, { "code": null, "e": 1158, "s": 1086, "text": "LocalDateTime dateTime = LocalDateTime.of(2019, Month.JULY, 9, 10, 20);" }, { "code": null, "e": 1208, "s": 1158, "text": "Now, format the...
Machine Learning in Tableau with PyCaret | by Andrew Cowan-Nagora | Towards Data Science
PyCaret is a recently released open source machine learning library in Python that trains and deploys machine learning models in a low-code environment. To learn more about PyCaret, read this announcement. This article will demonstrate how PyCaret can be integrated with Tableau Desktop and Tableau Prep which opens new ...
[ { "code": null, "e": 378, "s": 172, "text": "PyCaret is a recently released open source machine learning library in Python that trains and deploys machine learning models in a low-code environment. To learn more about PyCaret, read this announcement." }, { "code": null, "e": 839, "s"...
How to add a unique id for an element in HTML?
Use the id attribute in HTML to add the unique id of an element. You can try to run the following code to implement id attribute βˆ’ <html> <body> <h1>Tutorialspoint</h1> <p id = "myid">We provide Tutorials!</p> <button onclick = "display()">More...</button> <script> function display(...
[ { "code": null, "e": 1127, "s": 1062, "text": "Use the id attribute in HTML to add the unique id of an element." }, { "code": null, "e": 1193, "s": 1127, "text": "You can try to run the following code to implement id attribute βˆ’" }, { "code": null, "e": 1526, "s":...
Minimum circular rotations to obtain a given numeric string by avoiding a set of given strings - GeeksforGeeks
15 Feb, 2021 Given a numeric string target of length N and a set of numeric strings blocked, each of length N, the task is to find the minimum number of circular rotations required to convert an initial string consisting of only 0β€˜s to target by avoiding any of the strings present in blocked at any step. If not possibl...
[ { "code": null, "e": 25602, "s": 25574, "text": "\n15 Feb, 2021" }, { "code": null, "e": 26110, "s": 25602, "text": "Given a numeric string target of length N and a set of numeric strings blocked, each of length N, the task is to find the minimum number of circular rotations requ...
Checkbox in Android using Jetpack Compose - GeeksforGeeks
25 Feb, 2021 The checkbox is a composable function that is used to represent two states of any item in Android. It is used to differentiate an item from the list of items. In this article, we will take a look at the implementation of Simple Checkbox in Android using Jetpack Compose. Attributes Uses Step 1: Create a Ne...
[ { "code": null, "e": 24725, "s": 24697, "text": "\n25 Feb, 2021" }, { "code": null, "e": 24997, "s": 24725, "text": "The checkbox is a composable function that is used to represent two states of any item in Android. It is used to differentiate an item from the list of items. In t...
How to verify color of a web element in Selenium Webdriver?
We can verify the color of a webelement in Selenium webdriver using the getCssValue method and then pass color as a parameter to it. This returnsthe color in rgba() format. Next, we have to use the class Color to convert the rgba() format to Hex. Let us obtain the color an element highlighted in the below image. The co...
[ { "code": null, "e": 1235, "s": 1062, "text": "We can verify the color of a webelement in Selenium webdriver using the getCssValue method and then pass color as a parameter to it. This returnsthe color in rgba() format." }, { "code": null, "e": 1469, "s": 1235, "text": "Next, we ...
Difference between the largest and the smallest primes in an array - GeeksforGeeks
06 May, 2021 Given an array of integers where all the elements are less than 10^6. The task is to find the difference between the largest and the smallest prime numbers in the array.Examples: Input : Array = 1, 2, 3, 5 Output : Difference is 3 Explanation : The largest prime number in the array is 5 and the smallest ...
[ { "code": null, "e": 24821, "s": 24793, "text": "\n06 May, 2021" }, { "code": null, "e": 25002, "s": 24821, "text": "Given an array of integers where all the elements are less than 10^6. The task is to find the difference between the largest and the smallest prime numbers in the ...
Convert a list of multiple integers into a single integer in Python
Sometimes we may have a list whose elements are integers. There may be a need to combine all these elements and create a single integer out of it. In this article we will explore the ways to do that. The join method can Join all items in a tuple into a string. So we will use it to join each element of the list by itera...
[ { "code": null, "e": 1262, "s": 1062, "text": "Sometimes we may have a list whose elements are integers. There may be a need to combine all these elements and create a single integer out of it. In this article we will explore the ways to do that." }, { "code": null, "e": 1420, "s": 1...
Plot multiple columns of Pandas DataFrame using Seaborn
To plot multiple columns of Pandas DataFrame using Seaborn, we can take the following steps βˆ’ Make a dataframe using Pandas. Make a dataframe using Pandas. Plot a bar using Seaborn's barplot() method. Plot a bar using Seaborn's barplot() method. Rotate the xticks label by 45 angle. Rotate the xticks label by 45 angle. ...
[ { "code": null, "e": 1156, "s": 1062, "text": "To plot multiple columns of Pandas DataFrame using Seaborn, we can take the following steps βˆ’" }, { "code": null, "e": 1187, "s": 1156, "text": "Make a dataframe using Pandas." }, { "code": null, "e": 1218, "s": 1187,...
How do I import all the submodules of a Python namespace package?
The "from module import *" statement is used to import all submodules from a Python package/module. For example, if you want to import all modules from your module(say nyModule) and do not want to prefix "myModule." while calling them, you can do it as follows: >>> from myModule import * Note that for any reasonable la...
[ { "code": null, "e": 1324, "s": 1062, "text": "The \"from module import *\" statement is used to import all submodules from a Python package/module. For example, if you want to import all modules from your module(say nyModule) and do not want to prefix \"myModule.\" while calling them, you can do it...