Notes, summaries, assignments, exams, and problems for Computers

Sort by
Subject
Level

Java Socket Programming for Client-Server Communication

Classified in Computers

Written on in English with a size of 2.62 KB

Java Socket Implementation

Client-Server Socket Class (`Misocket`)

Constructor for Server (`Misocket(int port)`):

  • Initializes a `ServerSocket` with the specified port.
  • Waits for and accepts a client connection using `serverSocket.accept()`.
  • Obtains input and output streams from the accepted client socket.

Constructor for Client (`Misocket(String ip, int port)`):

  • Creates a `Socket` to connect to the specified IP address and port.
  • Obtains input and output streams for communication.

Core Functionality

Sending and Receiving Strings:

  • `dos.writeUTF(cadena); dos.flush();` to send a string.
  • `cadena = dis.readUTF(); return cadena;` to receive a string.

Sending and Receiving Integers:

  • `dos.writeInt(tam);` to send an integer.
  • `tam = dis.readInt(); return tam;` to receive
... Continue reading "Java Socket Programming for Client-Server Communication" »

Database Management System: Key Concepts and Features

Classified in Computers

Written on in English with a size of 3.9 KB

Why do you have a primary key?

A primary key ensures UNIQUE DATA.

Form Design Views

In Form View, you cannot make any design changes to a form.

Checking Field Lengths

Martha is concerned that her form data may be longer in length than the size of the field control. To check this, she should use Print View.

Handling Primary Key Changes

If you choose the Cascade Update Related Fields Option, Access permits the change in value to the primary key and changes the appropriate foreign key values in the related table, thereby eliminating the possibility of inconsistent data in Yuka's database.

Resizing Columns

You can resize columns easily in Layout View.

Activating the Find Command

You can activate the Find command from the button on the Home tab.

Saving Database

... Continue reading "Database Management System: Key Concepts and Features" »

Essential Concepts in Programming and Networking: Pointers, LAN/WAN, Data

Classified in Computers

Written on in English with a size of 2.96 KB

Understanding Pointers in Programming

A pointer is a variable whose value is the memory address of another variable. Like any variable or constant, you must declare a pointer before you can work with it.

C++ Pointer Example

#include <iostream>
using namespace std;

int main ()
{
    int var = 20; // Actual variable declaration.
    int *ip;      // Pointer variable declaration.

    ip = &var;    // Store address of var in pointer variable.

    cout << "Value of var variable: " << var << endl;

    // Print the address stored in ip pointer variable
    cout << "Address stored in ip variable: " << ip << endl;

    // Access the value at the address available in pointer
    cout << "Value of *
... Continue reading "Essential Concepts in Programming and Networking: Pointers, LAN/WAN, Data" »

DMZ Server Configuration and Security Best Practices

Classified in Computers

Written on in English with a size of 2.6 KB

Four Servers Reside in the DMZ

  • Mail
  • WWW
  • DNS
  • Log Servers

DMZ Mail Server (a Separate Machine)

When an Email Message is Received from the Internet:

  1. Reassembles the message.
  2. Checks for malicious content.
  3. Changes the addresses of the outer firewall (which is how the mail server is known to the outside world) to that of the internal mail server and forwards the mail to the internal mail server.

To Send a Message from the Internal Network to the Internet:

  1. Reassembles the message.
  2. Checks for malicious content (and maybe for proprietary information).
  3. All internal addresses are replaced with "drib.org" (the name of the outside firewall).

DMZ WWW Server (a Separate Machine)

  • Does not contact any servers or information sources on the internal network and it contains
... Continue reading "DMZ Server Configuration and Security Best Practices" »

Microsoft Access Forms and Reports Mastery: Key Concepts

Classified in Computers

Written on in English with a size of 3.01 KB

In Form view, you can go to the last record in the table by pressing the ____ keys. CTRL+END
____ levels are useful for reports with multiple levels. GROUPING
A form can be used to display fields from multiple records at one time by specifying the ____ layout. TABULAR
The second Form Wizard dialog box asks you to select a ___ for the form. LAYOUT
To change a form's style you must switch to ____. LAYOUT VIEW
To move from record to record in a form you can use the ___. NAVIGATION BUTTONS
You can move from field to field within a form by using the ___. TAB KEY
You can activate the Find command from the button on the ___ tab. HOME
When printing a form, you can choose to print ____. ALL PAGES
When a pencil symbol appears in the top-left portion of the form,
... Continue reading "Microsoft Access Forms and Reports Mastery: Key Concepts" »

Understanding Operating Systems, Software, and Computer Hardware

Classified in Computers

Written on in English with a size of 2.97 KB

Operating System Scheduling

1. The OS enables running multiple programs simultaneously. Several programs can reside in RAM concurrently, yet the CPU processes only one at a time. Only one process can be active at any given moment. CPUs are incredibly fast; even brief processing periods yield significant results. The OS determines the optimal method for switching between running, runnable, and waiting processes. It manages which process the CPU executes and distributes CPU access among processes. The task of determining when to switch processes is termed scheduling.

Disk Defragmentation

2. A disk defragmenter reorganizes files on a disk, ensuring they are stored contiguously. It arranges files on the disk into adjacent locations. This enhances... Continue reading "Understanding Operating Systems, Software, and Computer Hardware" »

Essential Tech Insights: Devices, Digital Security, and Data Trends

Classified in Computers

Written on in English with a size of 4.97 KB

Printer Types: A Comparative Analysis

Understanding the differences between various printer types is crucial for making informed decisions. Here's a comparison of common printer technologies:

  • Laser Printers: Generally faster than plotters.
  • Color Laser Printers: Offer significant advantages over standard monochrome laser printers, especially for vibrant outputs.
  • Inkjet Printers: Typically slower than laser printers but often excel in photo quality.
  • Dot Matrix Printers: Surprisingly, these can be more expensive than plotters, especially for specialized industrial models.
  • Sublimation Printers: Often considered to have lower print quality compared to inkjet printers for general use, but excel in specific applications like photo printing or fabric.
  • Plotters:
... Continue reading "Essential Tech Insights: Devices, Digital Security, and Data Trends" »

Microsoft Access Core Concepts and Functions

Classified in Computers

Written on in English with a size of 3.87 KB

Fundamental Database Concepts

What is a datasheet?

When you first open a datasheet, Microsoft Access selects the first field value in the first record.

What is a table?

All fields for a specific individual or place can be grouped together as a table.

How can a field be described?

A field can be described as an attribute.

What is a primary key?

A field, or a combination of fields, that has a unique value is a primary key.

What is a requirement for a primary key?

A primary key must contain a unique value for each record within the table.

What is a foreign key?

A field that is defined in one table and is also a primary key in a different table is a foreign key.

What is a requirement for a foreign key?

Every foreign key must match the field value of a primary

... Continue reading "Microsoft Access Core Concepts and Functions" »

Database Design: Mastering Data Types, Keys, and Queries

Classified in Computers

Written on in English with a size of 4.07 KB

Database Design Fundamentals

Key Concepts and Definitions

Data Type

The data type determines what field values are allowed and what other properties the field will have.

Saving a Table

You can specify a name for a table after you click the Save button on the Table Design toolbar.

Table Structure

The final step in the creation of a table is to save the table structure to disk.

Primary Key

A primary key uniquely identifies each record in a table.

Identifying Fields

When designing a database, you need to identify the fields that will be required.

Data Redundancy

Storing the same data field in multiple tables is called data redundancy.

Composite Key

A primary key that consists of more than one field is called a composite key.

Avoiding Data Redundancy

When designing... Continue reading "Database Design: Mastering Data Types, Keys, and Queries" »

Essential Revit Terminology and Interface Concepts

Classified in Computers

Written on in English with a size of 3.67 KB

Building Information Modeling (BIM)

BIM is a complete representation or depiction of a building that aids in its design, construction, and continuous management. This is an evolving concept that changes as technological capabilities improve.

Revit Elements

An element in Revit is a discrete building block or piece of data, such as an object or drawing sheet. The four basic types of elements are:

  • Model Elements: Walls, doors, roofs.
  • Datum Elements: Levels, grids, reference planes.
  • Annotation Elements: Tags, text, dimensions.
  • View Elements: Plans, sections, schedules.

Views and Drafting

  • Detail Line: Designed to appear only in the view in which it is placed. It is treated as an embellishment to that particular view and is not added physically to the building
... Continue reading "Essential Revit Terminology and Interface Concepts" »