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

Network Hardware and Cabling Standards Explained

Computer science2.5 KB

Network Hardware Hubs, Switches, and Routers

  • HUB: Functions like a power strip. It distributes network traffic to all connected devices without identifying specific recipients, which can limit individual performance.
  • SWITCH: Contains internal memory to identify connected devices, ensuring data is sent only to the intended recipient. It supports individual device speeds, though total throughput is limited by the cable capacity.
  • ROUTER: Acts as a gateway to external networks. It uses software to generate IP addresses and serves as a bridge between different networks. If data is intended for an external destination, the switch or hub forwards it to the router to find the recipient.

Network Cable Types

  • Shielded Twisted Pair (STP): Each pair is coated
...
Continue reading "Network Hardware and Cabling Standards Explained" »

Bootstrap Components: Navigation Tabs, Tables, and Forms

Computer science2.78 KB

Corrected Exam

<!DOCTYPE html>

Images and Table with Nav Tabs

Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus deserunt natus est et, incidunt id quasi ex veniam tenetur quibusdam optio dolor rem dicta officia voluptate nemo rerum quod amet.

Data Table

#NameAgeCountry
1Alice25USA
2Bob30UK
3Charlie28Canada

Alert Notification

Hello! This is an alert that can be closed by clicking on the "X" button.

<!DOCTYPE html>

Document

Form Section

Text Input
Select Option Choose... Option 1 Option 2 Option 3 Option 4
Accept Terms

Send

Grid

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Assumenda autem culpa dolorum dolorem voluptatum quisquam ipsam quia quae libero rerum aut pariatur saepe quaerat doloribus...

Continue reading "Bootstrap Components: Navigation Tabs, Tables, and Forms" »

Odoo Development: XML Views and Python Models

Computer science8.92 KB

Definición de Vistas y Acciones en XML

A continuación se detallan los registros XML para la configuración de vistas de lista, formulario, calendario y acciones de ventana en el sistema:

<!-- Vista de lista para Alumno -->
<record model="ir.ui.view" id="saez_alumno_tree">
  <field name="name">Alumno List</field>
  <field name="model">saez.alumno</field>
  <field name="arch" type="xml">
    <tree>
      <field name="name"/>
      <field name="apellido1"/>
      <field name="apellido2"/>
      <field name="fecha_nacimiento"/>
      <field name="sexo"/>
    </tree>
  </field>
</record>

<!-- Acción de ventana para Alumno -->
<record model=
...
Continue reading "Odoo Development: XML Views and Python Models" »

Web Design and Accessibility Services

Computer science1.25 KB

Web Design and Accessibility Services

Header

Nav

Content

Aside

This is the aside container or wrapper with a width of 30%. Inside, we place a div.

Inside aside, we place a <div>.

This div has margins of 20px and padding of 10px.

Main

This is the MAIN container or wrapper with a width of 70%:

Article Title 1

All articles are within main with a margin and padding. Place the content for class "article 1" here.

Article Title 2

Place the content for class "article 2" here.

Article Title 3

Place the content for class "article 3" here.

Click on the image

Tailored to Your Needs

You will find:

  • Custom Graphic Design
  • Web Design
  • Accessibility
  • Usability
  • Text Processing

Footer

Get in touch at the address:

[email protected]

Java File Infection Simulation and Implementation

Computer science2.8 KB

This document details the implementation of a Virus class in Java, focusing on binary file manipulation and stream handling.

Java Source Code for Virus Simulation

import java.io.*;
import java.util.*;

/**
 * Write a description of class Virus here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Virus
{
    // Campos  
    private File virusFile;  // Fichero con el código binario del virus
    public static final int SIZE = 100;

    /**
     * Constructor for objects of class Virus
     */
    public Virus( String nombre )
    {
        this.virusFile = new File(nombre);
    }

    /**
     * Método get para el campo this.virusFile
     * 
     * @return     this.virusFile
     */
    public File getFile(
...
Continue reading "Java File Infection Simulation and Implementation" »

Customer Feedback and Catalog Request Form

Computer science1.22 KB

Customer Feedback and Catalog Request

Please fill out this form to provide feedback on the event and indicate your preferences for receiving our catalog.

Personal Information

Name:

[Name Field]

Surname:

[Surname Field]

Password:

[Password Field]

Event Feedback

Did you enjoy the event?

Please write your comments here.

Yes, I would like to receive the catalog.

Payment Method

Preferred Payment Method:

  • Credit Card
  • Postal Order
  • Cash on Delivery (Unavailable)

Catalog Language

In which language would you like to receive the catalog?

  • Spanish
  • English
  • German (Unavailable)

Address Details

Type of street:

Street Avenue Square Other

Preferred Means of Transport

Preferred Means of Transport:

Plane Train Ship Bus Van

Destination

Destination:

Athens Dublin Istanbul Lisbon London Oslo Paris...

Continue reading "Customer Feedback and Catalog Request Form" »

Microprocessor and Microcontroller Architecture Fundamentals

Computer science2.78 KB

Microprogrammable Systems

A microprogrammable system reads, interprets, and executes sequential instructions contained within a program. These systems are essential for computer applications, mathematical calculations, industrial processes, and electrical apparatus.

Core Components

  • Clock: Generates periodic square waves for synchronization.
  • Microprocessors: Include the CPU and are used in applications requiring large memory and high-speed processing.
  • Microcontrollers: Feature a CPU embedded on a single chip, designed for specific tasks and smaller footprints.
  • PLDs (Programmable Logic Devices): Chips that integrate a matrix of logic gates whose functionality can be configured via programming.

Processing Units

The Processing Unit handles arithmetic and...

Continue reading "Microprocessor and Microcontroller Architecture Fundamentals" »

Database Fundamentals: Comparing Relational, Hierarchical, and Network Models

Computer science3.35 KB

1. Data Models and Conceptual Schemes

The conceptual scheme within the ANSI/X3/SPARC framework aims to define the data and the relationships between them that will be computerized in a particular organization, subsequently translating this into a canonical schema. The primary challenge is defining the set of entities to be stored in the database (DB), a task dependent solely on the Database Administrator (DBA).

Recall the three conceptual models, often called semantic models:

  • MER (Entity-Relationship Model)
  • Binary Model
  • RMT (Semantic Model)

Once the conceptual design is complete, the process moves to the logical design or definition of the canonical schema. This translation process is performed using logic models, also known as data models. The most...

Continue reading "Database Fundamentals: Comparing Relational, Hierarchical, and Network Models" »

Firebase Google Login and Notes App in JavaScript

Computer science4.45 KB

Firebase Google Login and Realtime Notes Implementation

import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.2/firebase-app.js";
import { getAuth, signInWithRedirect, getRedirectResult, GoogleAuthProvider } from "https://www.gstatic.com/firebasejs/10.7.2/firebase-auth.js";
import { getDatabase, ref, set, onChildAdded, onChildChanged } from 'https://www.gstatic.com/firebasejs/10.7.2/firebase-database.js';

Firebase Configuration and Initialization

const firebaseConfig = {
    apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, appId
};
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const db = getDatabase(app);
let user = null;
let note_ref = null;
document.addEventListener('deviceready'...

Continue reading "Firebase Google Login and Notes App in JavaScript" »

Implementing and Publishing a JAX-WS SOAP Web Service

Computer science2.4 KB

CEP Request Wrapper (Cep.java)

package control.jaxws;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name = "cep", namespace = "http://control/")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cep", namespace = "http://control/")
public class Cep {

    @XmlElement(name = "leituraCep", namespace = "")
    private int leituraCep;

    public int getLeituraCep() {
        return this.leituraCep;
    }

    public void setLeituraCep(int leituraCep) {
        this.leituraCep = leituraCep;
    }
}

CEP Response Wrapper (CepResponse.java)

package
...
Continue reading "Implementing and Publishing a JAX-WS SOAP Web Service" »