What is Heroku? Heroku is a cloud-based app that developers use to manage, scale, and deploy different apps. The platform is easy to use and provides great opportunities for developers to launch their apps in the market. There is no need to maintain and manage any servers, hardware, or infrastructure. The app has many features which developers can use to enhance their productivity. Why Heroku Alternatives? Low network performance High inbound and outbound latency Servers cannot be easily controlled Complex apps cannot be developed The cost is high Switching from one platform to another is difficult How to ... Read More
Direct mapping is a procedure used to assign each memory block in the main memory to a particular line in the cache. If a line is already filled with a memory block and a new block needs to be loaded, then the old block is discarded from the cache.The figure shows how multiple blocks from the example are mapped to each line in the cache.Just like locating a word within a block, bits are taken from the main memory address to uniquely describe the line in the cache where a block can be stored.Example − Consider a cache with = ... Read More
Operating Principle of Single-phase Induction MotorA single-phase induction motor consists of a squirrel cage rotor and a stator carrying a single-phase winding. When a single-phase AC supply is fed to the stator winding, a pulsating magnetic field (not the rotating) is produced. Under these conditions, the rotor does not rotate due to inertia. Hence, a single-phase induction motor is inherently not self-starting, but requires some auxiliary starting means.If the stator winding of a single-phase induction motor is excited and the rotor is rotated by an auxiliary means and the starting device is then removed, the motor continues to rotate in ... Read More
Ethernet is a set of technologies and protocols that are used primarily in LANs. It was first standardized in 1980s by IEEE 802.3 standard. IEEE 802.3 defines the physical layer and the medium access control (MAC) sub-layer of the data link layer for wired Ethernet networks. Ethernet is classified into two categories: classic Ethernet and switched Ethernet.Classic Ethernet is the original form of Ethernet that provides data rates between 3 to 10 Mbps. The varieties are commonly referred as 10BASE-X. Here, 10 is the maximum throughput, i.e. 10 Mbps, BASE denoted use of baseband transmission, and X is the type ... Read More
Let's say the following is our JSON string −var details = [ { customerName: "Chris", customerAge: 32 }, { customerName: "David", customerAge: 26 }, { customerName: "Bob", customerAge: 29 }, { customerName: "Carol", customerAge: 25 } ]To remove JSON element, use the delete keyword in JavaScript.ExampleFollowing is the complete code to remove JSON element −var details = [ { customerName: "Chris", ... Read More
It is the number of vertices adjacent to a vertex V. Notation − deg(V). In a simple graph with n number of vertices, the degree of any vertices is − deg(v) = n – 1 ∀ v ∈ G A vertex can form an edge with all other vertices except by itself. So the degree of a vertex will be up to the number of vertices in the graph minus 1. This 1 is for the self-vertex as it cannot form a loop by itself. If there is a loop at any of the vertices, then it is not a ... Read More
Half Wave Rectifier is a diode circuit which is used to transform Alternating Voltage (AC Supply) to Direct Voltage (DC Supply). A single diode is used in the HWR circuit for the transformation of AC to DC. Half Wave Rectifier circuit allows the one – half cycle of the AC Supply waveform to pass and blocks the other half cycle. Half Wave Rectifier Circuit Diagram The circuit of HWR consists of following three main components − A Diode A Transformer A Load (may be a Resistance) Working of HWR Circuit Positive ... Read More
Digital as well as Analog Systems, both are used to transmit signals from one place to another like audio/video. Digital systems use binary format as 0 and 1, whereas analog systems use electronic pulses with varying magnitude to send data. Read through this article to find out more about digital and analog systems and how they are different from each other. What is a Digital System? A system of components like a computer which uses discrete time signals to operate is called a digital system. Digital systems uses such signals that have square shaped waveforms. Digital systems first accept the ... Read More
When multiple users need access to the same set of directories of files then we need to create shared folders to be used by the users. In Linux there is concept of users and groups which can be given certain level of permissions that will enable them to share the data. Below are the steps how to create the shared folders where users can and update the files individually.Step 1 − Create the folder to be sharedAssuming we are setting up the shared folder from scratch, lets create the folder. The -p will create the directory and would ignore any ... Read More
What is Diffie-Hellman Key Exchange (exponential key exchange)? The Diffie-Hellman key exchange (also known as exponential key exchange) is a method for securely exchanging cryptographic keys over an insecure channel. It is a fundamental building block of many secure communication protocols, including SSL/TLS and SSH. The Diffie-Hellman key exchange works by allowing two parties (Alice and Bob) to agree on a shared secret key over an insecure channel, without any other party being able to intercept the key or learn anything about it. The key exchange involves the following steps − Alice and Bob agree on two large prime ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP