Posted by admin on May 1, 2024 in Computers | 0 comments
Computer Peripherals
Computer peripherals are devices that connect to a computer and enable communication with the outside world. They are essential for inputting data, outputting information, storing data, and communicating with other devices.
Types of Peripherals
- Input devices: These devices allow users to input data into the computer, such as keyboards, mice, scanners, and microphones.
- Output devices: These devices display or present information from the computer, such as monitors, printers, and
Read More
Posted by admin on May 1, 2024 in Computers | 0 comments
Logging into Docker
Quick peek into any file | Creating a file in terminal | Clean up commands$ docker stop $(docker container ls -aq) $ docker rm $(docker container ls -aq) $ docker rmi $(docker images -q) |
|
Current directory (application artifacts) | Current file path | Listing images and containers |
Pulling an image | Building an image$ docker image build -t . |
| Inspecting images and containers |
Tagging an Image |
Read More
Posted by admin on May 1, 2024 in Computers | 0 comments



Network Protocols: Stop-and-Wait and Sliding Window
The Stop-and-Wait protocol ensures reliable data transmission by having the sender transmit a single frame and wait for an acknowledgment (ACK) from the receiver before sending the next frame. This process guarantees delivery but can be inefficient due to waiting times. The sliding window protocol improves efficiency by allowing the sender to transmit multiple frames before receiving acknowledgments. Two main types of sliding window protocols exist:
Read More
Posted by admin on Apr 30, 2024 in Computers | 0 comments
Lexical Analysis
The first phase of a compiler, lexical analysis or scanning, involves reading the source program’s character stream and grouping them into meaningful sequences called lexemes. For each lexeme, the lexical analyzer generates a token, which is then passed to the syntax analysis phase. The token consists of a token-name, an abstract symbol used during syntax analysis, and an attribute-value pointing to the token’s symbol table entry. The symbol table stores information like name and
Read More
Posted by admin on Apr 30, 2024 in Computers | 0 comments
HUBS, BRIDGES, SWITCHES
HUBS:
Active central element of star layout
- Physically star, logically bus
- If two stations transmit at the same time, collision occurs
- Transmission from any station received by all other stations
• Each station connected to hub by two lines
- Transmit and receive on two unshielded twisted pairs
• Hub acts as a repeater
- When a single station transmits, hub repeats the signal on the outgoing line to each station.
Backbone hub interconnects LAN segments
- Extends max distance between nodes
- But
Read More
Posted by admin on Apr 30, 2024 in Computers | 0 comments
Network Address Translation (NAT)
Function and Violation of Protocol Stack Layers
NAT serves to replace the source IP address and port number of outgoing datagrams with the NAT IP address and a new port number. This allows remote clients and servers to respond using the NAT IP address and new port number as the destination address. NAT maintains a translation table that stores the mapping between the original source IP address and port number and the corresponding NAT IP address and new port number.
Read More