Notes, summaries, assignments, exams, and exercises for Computer science for Vocational training

OSI Model and TCP/IP: Understanding Network Layers

Computer science3.85 KB

The Open Systems Interconnection Model

The Open Systems Interconnection (OSI) model is an abstract, layered representation created as a reference for network protocol design. The OSI model divides the process of networking into different logical layers, each of which has unique functionality and to which specific services and protocols are assigned.

Application Layer

The application layer, the seventh layer, is the top layer of both the OSI and TCP/IP models.

Presentation Layer

The presentation layer has three main functions:

  • Coding and data conversion of the application layer to ensure that data from the source device can be interpreted by the appropriate application on the target device.
  • Compression of the data in a way that can be decompressed
...
Continue reading "OSI Model and TCP/IP: Understanding Network Layers" »

SPC Control Systems: Centralized vs. Distributed

Computer science2.3 KB

SPC Control System

SPC Control System refers to the method of controlling a switching system.

  • Centralized SPC Control: If a given processor has direct access to all resources of the node and performs all system functions. This usually means the node has a single central computer (doubled for security).
  • Distributed SPC Control: If a processor is in a given state but does not have access to some of the resources and/or is not able to run only some of the functions of the system. In practice, this leads to an existing digital system with a high number of microprocessors that perform the control node as a whole.

Functions of Switching Systems

Switching systems provide power and signaling with user terminals. The user, via the wire pair of the switching...

Continue reading "SPC Control Systems: Centralized vs. Distributed" »

Essential Networking Concepts: IPv6, DHCP, Sockets, and FQDN Explained

Computer science4.01 KB

IPv6: The Next Generation of IP Addressing

IPv6 utilizes 128 bits for addressing, a significant expansion from IPv4's 32 bits. It is represented in three primary forms:

  • Standard Form: Eight groups of four hexadecimal digits, separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
  • Compressed Form: Consecutive groups of zeros can be replaced by a double colon (::). This compression can only be used once per address (e.g., 2001:0db8:85a3::8a2e:0370:7334).
  • Mixed Form: A combination of IPv6 and IPv4 notation, where the last 32 bits are represented in standard IPv4 dotted-decimal format (e.g., ::ffff:192.0.2.128).

IPv6 enables automatic configuration of network devices. The method for establishing IP addresses with this version is more complex...

Continue reading "Essential Networking Concepts: IPv6, DHCP, Sockets, and FQDN Explained" »

Understanding Bleed, Slug, Trim, and Gutter in Print Design

Computer science3.33 KB

What is bleed? When any image or element on a page touches the edge of the page, extending beyond the trim edge leaving no margin it is said to bleed. It may bleed or extend off one or more sides.

What is slug? Non-printing information (such as a title and date) used to identify a document outside bleed area.

What is Trim - The final size of a printed page after excess edges of paper have been cut off What is Gutter - The area between columns on a page or the blank space between two facing pages in print

Match each file format with the kind of information it would likely be used to save?
o TIFF = A loss-less bit-mapped file format for high-resolution photographic images, typically in print
a EPS = A vector-based file format for high-resolution...

Continue reading "Understanding Bleed, Slug, Trim, and Gutter in Print Design" »

Operating Systems: Types, Processes, and Architectures

Computer science2.77 KB

Batch Processing Systems

5) For + d l sistma oprativo exploit. Two types are distinguished:

  • Processes by Lots: The following processes are followed:
  1. Load the data in a device (e.g., punched cards).
  2. Receive the magnetic tape CPU and processes, leaving the results on another magnetic tape.
  3. Other devices manage the processed data, leaving it for printing or visualization.

In this way, the CPU processes data only in intervals. This system is very slow because it takes time to load and remove the data. This is the oldest system used and the first structure supposed to be of the IT department, according to these functions. The operators entered and exited the CPU managers.

  • Real-Time:

The process is very different from the processes by lots, more prone to...

Continue reading "Operating Systems: Types, Processes, and Architectures" »

Tensors and Variables in PyTorch and TensorFlow

Computer science2.4 KB

Tensors and Variables in PyTorch and TensorFlow

Here's a brief explanation of tensors and variables in the context of deep learning frameworks like PyTorch and TensorFlow:

Tensors

  • Definition: A tensor is a multi-dimensional array used to represent data (such as scalars, vectors, matrices, or higher-dimensional data).
  • Common Operations: Tensors can be manipulated with mathematical operations (addition, multiplication, etc.), reshaped, sliced, etc.

In PyTorch, tensors are the core data structure:

import torch
# Create a tensor
a = torch.tensor([[1, 2], [3, 4]])
# Basic operations
b = a + 2         # Adds 2 to each element
c = a * a         # Element-wise multiplication
d = a @ a         # Matrix multiplication

Output:

Tensor `b`: [[3, 4], [5, 6]]
Tensor
...
Continue reading "Tensors and Variables in PyTorch and TensorFlow" »

Client-Server Model, Peer-to-Peer, NFS, Samba, and SSL

Computer science3.39 KB

Client-Server Model

  • The client-server model defines the structure of communicating applications and their synchronization.
  • It consists of two interacting processes:
    • Server Process
    • Client Process
  • Client and server are inseparable; one cannot exist without the other.

Server

  • This process awaits hearing on a given server port. It continuously waits for remote client processes to connect.
  • Authentication
  • Security and information privacy in the system where they reside.
  • Must be able to handle requests from multiple clients simultaneously.
  • Important: All clients will be connected to the same server port.

In general, we say that a computer is a server when its operating system runs one or more server processes (FTP, HTTP, DNS, etc.).

Client

  • It is a process that sends
...
Continue reading "Client-Server Model, Peer-to-Peer, NFS, Samba, and SSL" »

Computer Hardware Essentials: Ports, Storage & Interfaces

Computer science4.92 KB

FireWire: High-Speed Serial Bus Interface

FireWire is an interface designed to connect up to 63 devices. The bandwidth of this bus is either 400 Mbps or 800 Mbps, depending on the version. IEEE 1394a supports up to 400 Mbps, while IEEE 1394b supports up to 800 Mbps.

Computer Peripherals: Input, Output & Storage

Peripherals are a set of elements, often referred to as information media or mass storage units, that are necessary to store data and information and are available to the central processor. There are two main types:

Input Devices

An input device is any device through which information is introduced to the central processing unit (CPU).

Output Devices

An output device is any device through which information is drawn from the central processing...

Continue reading "Computer Hardware Essentials: Ports, Storage & Interfaces" »

Essential Network Command-Line Utilities Explained

Computer science3.24 KB

Ping Command Options

  • -t: Sends echo requests to the host until interrupted.
  • -a: Resolves IP addresses to host names.
  • -n number: Specifies the number of echo requests to send.
  • -l size: Sets the send buffer size in bytes.
  • -f: Prevents fragmentation of the packet.
  • -i TTL: Sets the Time To Live (TTL) value.
  • -v TOS: Specifies the Type of Service (TOS).
  • -r amount: Records the route for this number of hops.
  • -s number: Records timestamps for this number of hops.
  • -j lista_de_host: Specifies a loose source route along the host list.
  • -k lista_de_host: Specifies a strict source route along the host list.

ARP Command Parameters

  • -a: Displays current ARP entries. If Dir_IP is specified, it shows the IP and physical addresses only for that specific computer.
  • -g: Same as
...
Continue reading "Essential Network Command-Line Utilities Explained" »

Database Field Properties and Data Types

Computer science3.5 KB

Essential Database Field Properties

  • Validation Rule and Validation Text: This is a standard that all data in a field must meet. If data is entered that does not meet this standard, the tables will not be updated correctly. The Validation Text is the message that appears on the screen when you enter a figure that does not meet the validation rule; this message reports the specific error being committed.
  • Required: This option lets you choose whether the field will be mandatory. If you select "Yes," you cannot leave this field blank, and the table is blocked until it is filled.
  • Input Mask: This sets the default format that the data will take automatically. We use 0 for numbers and L for letters. Example: 91 881 14 000 00 00 79/00
  • Indexed: This lets
...
Continue reading "Database Field Properties and Data Types" »