Advantages and Disadvantages of Internet

Pranavnath
Updated on 02-Sep-2023 10:57:33

116K+ Views

When many computers are connected, connecting means that they can share data such as text, information, photos, audio, videos and many other services together making a "Network". When this network happens worldwide, that becomes the Internet. Take a real-life simple example, when you are seeing photos on Instagram, tweets on Twitter, or talk through Facebook, that is when you are connected to the internet. Things are happening worldwide. The Internet is used on a vast level, and it is impossible to imagine our world without the Internet. Not only for personal use, organizations and government sectors are also connected to ... Read More

Error Detection and Correction in Data Link Layer

Ankith Reddy
Updated on 02-Sep-2023 10:55:46

104K+ Views

Data-link layer uses error control techniques to ensure that frames, i.e. bit streams of data, are transmitted from the source to the destination with a certain extent of accuracy.ErrorsWhen bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. The corrupted bits leads to spurious data being received by the destination and are called errors.Types of ErrorsErrors can be of three types, namely single bit errors, multiple bit errors, and burst errors.Single bit error − In the received frame, only one bit has been corrupted, i.e. either changed from 0 to ... Read More

Limit Characters in Form Input Text Field

Lokesh Badavath
Updated on 02-Sep-2023 10:53:26

69K+ Views

In this article, we will learn how to limit the number of characters allowed in form input text field. We use tag to get user input in HTML. To give a limit (or range) to the input field, we use the min and max attributes, which is to specify a maximum and minimum value for an input field respectively. To set the maximum character limit in input field, we use maxlength attribute. This attribute is used to specify the maximum number of characters enters the field. To set the minimum character limit in input field, we ... Read More

Find Duplicate Values in a JavaScript Array

Abhishek
Updated on 02-Sep-2023 10:47:49

72K+ Views

In this tutorial, we will discuss how we can find duplicate or repeating values in a JavaScript array using different methods or approaches to reach the solution to this problem. Below is the list of the approaches or methods we can use to solve the problem of finding duplicates − By simply Traversing the Array Using the filter() and indexOf() Methods Using the Set object and has() Method Let us discuss all of the above approaches to find duplicates in the JavaScript array − By Simply Traversing the Array Traversing the array using a nested for loop to ... Read More

Starting and Stopping MySQL Server

AmitDiwan
Updated on 02-Sep-2023 10:40:03

84K+ Views

Let us understand how MySQL server can be started and stopped on Linux and Windows −Linux – Start and Stop ServerOn Linux, the start and stop can be done from the command line as shown below −/etc/init.d/mysqld start /etc/init.d/mysqld stop/etc/init.d/mysqld restartLinux – Service CommandsSome Linux types offer service command as well −service mysqld startservice mysqld stop service mysqld restart(or)service mysql startservice mysql stopservice mysql restart Windows – Start and Stop ServerLet us understand how it can be done on Windows −Open 'Run' Window by using Win key + RType 'services.msc'Now search for MySQL service based on the version that ... Read More

Change Range of X-Axis and Y-Axis in Matplotlib

Rishikesh Kumar Rishi
Updated on 02-Sep-2023 10:31:28

79K+ Views

To change the range of X and Y axes, we can use xlim() and ylim() methods.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot x and y data points using plot() method.Set the X and Y axes limit.To display the figure, use show() method.Exampleimport numpy as np import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True x = np.linspace(-15, 15, 100) y = np.sin(x) plt.plot(x, y) plt.xlim(-10, 10) plt.ylim(-1, 1) plt.show()Output

What is Interprocess Communication

Alex Onsman
Updated on 02-Sep-2023 10:23:25

98K+ Views

Interprocess communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or the transferring of data from one process to another.A diagram that illustrates interprocess communication is as follows −Synchronization in Interprocess CommunicationSynchronization is a necessary part of interprocess communication. It is either provided by the interprocess control mechanism or handled by the communicating processes. Some of the methods to provide synchronization are as follows −SemaphoreA semaphore is a variable that controls the access to a common resource ... Read More

Multiple Inheritance by Interface in Java

Arushi
Updated on 02-Sep-2023 10:19:21

84K+ Views

An interface contains variables and methods like a class but the methods in an interface are abstract by default unlike a class. Multiple inheritance by interface occurs if a class implements multiple interfaces or also if an interface itself extends multiple interfaces.A program that demonstrates multiple inheritance by interface in Java is given as follows:Example Live Demointerface AnimalEat {    void eat(); } interface AnimalTravel {    void travel(); } class Animal implements AnimalEat, AnimalTravel {    public void eat() {       System.out.println("Animal is eating");    }    public void travel() {       System.out.println("Animal is travelling");   ... Read More

Computer System Architecture

David Meador
Updated on 02-Sep-2023 10:11:29

118K+ Views

A computer system is basically a machine that simplifies complicated tasks. It should maximize performance and reduce costs as well as power consumption. The different components in the Computer System Architecture are Input Unit, Output Unit, Storage Unit, Arithmetic Logic Unit, Control Unit etc.A diagram that shows the flow of data between these units is as follows −The input data travels from input unit to ALU. Similarly, the computed data travels from ALU to output unit. The data constantly moves from storage unit to ALU and back again. This is because stored data is computed on before being stored again. ... Read More

Underline Text in HTML

Lokesh Badavath
Updated on 02-Sep-2023 10:06:31

77K+ Views

Underlined text is used to help draw attention to the text. We use the tag, to underline a text in HTML. It represents a text in a different style from another text in the content of the web page. We can also use the style attribute, to underline a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML tag, with the CSS property text-decoration property. Syntax Following is the syntax to underline a text in HTML. The content to be underlined Example Following is the ... Read More

Advertisements