What is Internet of Things (IoT)?The Internet of Things (IoT) is a network of physical objects (sometimes known as "things") that are implanted with sensors, software, and other technologies in order to connect and exchange data with other devices and via the Internet.The convergence of many technologies, such as real-time analytics, machine learning, ubiquitous computing, commodity sensors, and embedded systems, has resulted in the evolution of things. The Internet of Things is enabled by traditional domains like embedded systems, wireless sensor networks, control systems, automation (including home and building automation), etc.IoT is most closely associated with goods that support one ... Read More
A network socket is a software component within a computer network node that acts as an endpoint for delivering and receiving data. An application programming interface (API) for the networking architecture defines the structure and properties of a socket. Sockets are only produced over the lifespan of a process in a node-based application.Because the TCP/IP protocols were standardized during the creation of the Internet, the word "network socket" is most often used in the context of the Internet Protocol suite, and it is hence referred to as an "Internet Socket". In this context, a socket's address, which is the triad ... Read More
Web Hosting is a service that helps web browser clients to easily access electronic information on the Internet by hosting/posting web-server programs (websites or web pages) on a computer system.A web server, often known as a web host, is a computer system that hosts websites. Internet users need to use the website URL or domain name in their browser to access a website. After that, the user's machine will connect to the web server, and the web pages will be provided to them through the browser.The following are the types of Web hosting services −Free HostingVirtual/Shared HostingDedicated HostingCo-location HostingFree HostingThis ... Read More
Generic Routing Encapsulation (GRE) is a routing protocol developed by Cisco Systems in 1994 that allows a wide range of network-layer protocols to be contained inside virtual point-to-point or point-tomultipoint links over an Internet Protocol network. Protocol encapsulation, not GRE specifically, breaks the layering sequence, according to the OSI principles of protocol layering.GRE can be thought of as a barrier between two protocol stacks, one of which serves as a carrier for the other. IP protocol type 47 is used for GRE packets enclosed within IP. It is a tunnelling protocol and is defined by RFC 2784. GRE provides both ... Read More
A computer system works upon bits. In the same way, a computer reads files into binary representation which is why we need to convert text characters into binary data. Most popular character encoding types types are: ASCII and Unicode. Unicode has two further types: utf8 and utf16.SyntaxdetectCharacterEncoding(filePath)Setting Up the Environment and Execution:Step I − Initialize the node project.npm initStep II − Install the required modules.npm install detect-character-encodingStep III − Pass the text file name whose encoding is required.Example 1Create a file "abc.txt" with the following text: "Welcome to Tutorials Point" and save it in the project directory.Create a file with the name ... Read More
The util.types.isGeneratorFunction() method checks whether the passed value is a generator function or not. If the above condition holds, it returns True, else False. The return value may differ from the original source code if a transpilation tool is used.Syntaxutil.types.isGeneratorFunction(value)Parametersvalue − This input value takes input for the required parameter and checks if it's a Generator function or not.It returns True or False based upon the input value passed.Example 1Create a file with the name "isGeneratorFunction.js" and copy the following code snippet. After creating the file, use the command "node isGeneratorFunction.js" to run this code.// util.types.isGeneratorFunction() Demo Example // Importing ... Read More
The util.types.isUint8ClampedArray() method checks whether the passed value is a built-in Uint8ClampedArray instance or not. If the above condition is satisfied, it returns True, else False.Syntaxutil.types.isUint8ClampedArray(value)Parametersvalue − This input value takes input for the required parameter and checks if it's a Uint8ClampedArray instance or not.It returns True or False based upon the input value passed.Example 1Create a file with the name "isUint8ClampedArray.js" and copy the following code snippet. After creating the file, use the command "node isUint8ClampedArray.js" to run this code.// util.types.isUint8ClampedArray() Demo Example // Importing the util module const util = require('util'); // Passing normal Int8-Array as input ... Read More
The util.formatWithOptions() method works in the same way as the util.format() method. The only difference between the two is that the formatWithOptions() method takes an inspectOptions argument that specifies options that are passed along the util.inspect() method.Syntaxutil.formatWithOptions(inspectOptions, format, [args])ParametersThe parameters are defined below:inspectOptions − These options will be used to inspect the object passed along this method.format − This parameter takes input for the format type of the input value passed.Example 1Create a file with the name "formatWithOptions.js" and copy the following code snippet. After creating the file, use the command "node formatWithOptions.js" to run this code.// Node.js util.formatWithOptions() method ... Read More
The util.types.isArgumentsObject() method checks whether the passed value is an arguments object or not. If the above condition is satisfied, it returns True, else False.Syntaxutil.types.isArgumentsObject( value )Parametersvalue − This input parameter takes input for the required parameter and checks if it's an arguments object or not.It returns True or False based upon the input value passed.Example 1Create a file with the name "isArgumentsObject.js" and copy the following code snippet. After creating the file, use the command "node isArgumentsObject.js" to run this code.// util.types.isArgumentsObject() Demo Example // Importing the util module const util = require('util'); // Passing the arguments object ... Read More
We can embed path variables into the URL and then use these path parameters to retrieve info from resources. These API endpoints have different values with respect to different values passed inside them.Example 1Create a file named "index.js" and copy the following code snippet. After creating the file, use the command "node index.js" to run this code.// Reading Path parameters in Node.js // Importing the below modules const express = require("express") const path = require('path') const app = express() var PORT = process.env.port || 3001 app.get('/p/:tagId', function(req, res) { console.log("TagId received is : " + req.params.tagId); ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP