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

Sort by
Subject
Level

Assembly Instruction Set Categories and Functions

Posted by Anonymous and classified in Computers

Written on in English with a size of 5.73 KB

🧾 Data Transfer Instructions

These instructions are used to move data between registers, memory, and I/O ports.

InstructionUse
MOVTransfer data between registers or memory locations
PUSH / POPPerform stack operations (store/retrieve data)
XCHGExchange contents of two operands
IN / OUTInput from or output to a port
LEALoad Effective Address
LDS / LESLoad Pointer and Segment Register
XLATTranslate byte using a lookup table

➕ Arithmetic Instructions

These instructions perform basic mathematical operations.

InstructionUse
ADD / SUBAddition / Subtraction
ADC / SBBAdd/Subtract with Carry/Borrow
INC / DECIncrement / Decrement a value
MUL / IMULUnsigned / Signed Multiplication
DIV / IDIVUnsigned / Signed Division
NEGTwo's Complement (Negation)
CMPCompare operands
... Continue reading "Assembly Instruction Set Categories and Functions" »

Effective Diarrhea Relief: Medications and Management

Posted by Anonymous and classified in Medicine & Health

Written on in English with a size of 4.25 KB

Anti-Motility Medications (Pharmacy Only)

These medications work by relaxing the smooth muscles in the intestinal wall, reducing bowel movements.

Loperamide + Co-phenotrope (Dhamotil)

Loperamide

  • Indication: Symptomatic relief of acute or chronic diarrhea.
  • Dose: Maximum 16mg daily. Limit use to less than 48 hours.
  • Side Effects: Constipation, nausea, vomiting, bloating.
  • Special Precautions (SPC):
    • Stop taking once diarrhea resolves (constipation may occur).
    • Take with food.

Co-phenotrope

  • Indication: Acute diarrhea in adults.
  • Dose: Maximum 8 tablets daily.
  • Contraindications: Not for children under 12 years old.
  • Special Precautions (SPC): May cause dizziness and drowsiness; do not drive or operate machinery.

Adsorbent Medications (General Sales List)

Adsorbents... Continue reading "Effective Diarrhea Relief: Medications and Management" »

Cultural Differences: Dimensions and Examples

Classified in Social sciences

Written on in English with a size of 5.34 KB

Cultural Dimensions and Their Impact

High and Low Power Distance Index (PDI) Examples

  • German Discussion & Beer: Germans tend to have strong opinions.
  • Boss in Malaysia: The boss is apparently always right.
  • Information is power: Characteristic of High PDI.
  • The communication flow: Characteristic of Low PDI.
  • Respect, power: Characteristic of Low PDI.
  • People may: Characteristic of Low PDI.
  • Avoid anything: Characteristic of Low PDI.
  • Promotion may: Characteristic of High PDI.
  • Managers: Characteristic of High PDI.
  • Seeing: Characteristic of Low PDI.
  • Your work: Characteristic of High PDI.

Individualism vs. Collectivism (IDV) Examples

  • Praise and reward: Characteristic of High IDV.
  • Focus on relationship: Characteristic of High IDV.
  • People will: Characteristic of High
... Continue reading "Cultural Differences: Dimensions and Examples" »

Key Features of Early Islamic Architecture: Mosques and Palaces

Classified in Geology

Written on in English with a size of 3.95 KB

Islamic Architecture: Mosques and Sacred Spaces

Mosque Elements and Orientation

  • Praying Room: A sacred space, even if not considered the physical "House of Allah."
  • Orientation (Qibla): East orientation towards Mecca for prayer.
  • Minbar: The pulpit, the seat of the Imam.
  • Minaret: A tower used to call the Muslim community to prayer.
  • Mihrab: A semicircular niche indicating the Qibla wall facing Mecca.
  • Maqsura: A safe space located in front of the Mihrab, historically reserved for Caliphs and Emirs.
  • Ablutions Area: Space designated for ritual cleansing before prayer.

Parts of a Mosque Complex

  • Ziyada: The enclosure space.
  • Sahn: The central courtyard or patio.
  • Sapil: A public fountain.
  • Haram: The roofed prayer space.

Early Examples

House of Muhammad in Medina (7th

... Continue reading "Key Features of Early Islamic Architecture: Mosques and Palaces" »

Medieval Spanish Architecture: Asturian, Mozarabic and Romanesque

Classified in Religion

Written on in English with a size of 3.49 KB

Asturian Architecture (9th Century)

San Julian de los Prados

  • Structure: 3 naves inscribed in a rectangle with a basilica scheme.
  • Features: 3-parted head covered with barrel vaults, Visigothic precedents, Roman arches, and semicircular arches.
  • Design: Includes a narthex and interior mural decoration featuring fake arches without human figures.

Santa Maria de Naranco, Oviedo

  • Structure: Compact stone volume with an inclined roof and two independent floors.
  • Aesthetics: Rhythmical, vertical appearance with symmetrical floorplan.
  • Details: Upper room with barrel vaults and transversal arches, buttresses, blind arches for lightness, and Corinthian capitals.

Mozarabic Architecture (10th Century)

Refers to Spanish-Roman citizens living in Andalusia during the

... Continue reading "Medieval Spanish Architecture: Asturian, Mozarabic and Romanesque" »

Python Inheritance: Reusing Code with Parent and Child Classes

Posted by Anonymous and classified in Mathematics

Written on in English with a size of 3.34 KB

Understanding Inheritance in Python

Inheritance allows a class to use and extend the properties and methods of another class. It promotes code reusability and reduces duplication. Think of it as “child learns from parent.” 👨‍👦‍💻

Code Duplication: Program Without Inheritance

When classes share common attributes or methods (such as first_name, last_name, and get_age), implementing them separately leads to redundant code, as shown below:

import datetime

class TennisPlayer:
    def __init__(self, fname, lname, birth_year):
        self.first_name = fname
        self.last_name = lname
        self.birth_year = birth_year
        self.aces = []

    def get_age(self):
        now = datetime.datetime.now()
        return now.year -
... Continue reading "Python Inheritance: Reusing Code with Parent and Child Classes" »

Pharmacology Essentials: Drug Forms, Actions, and Therapeutic Classes

Posted by Anonymous and classified in Medicine & Health

Written on in English with a size of 30.36 KB

Pharmacology Fundamentals

Medical Prescription Components and Units

A medical prescription includes the date, patient identification (such as name, age, and weight if relevant), the Rx symbol (meaning "take"), the inscription (drug name, strength, dosage form, and quantity), the subscription (instructions to the pharmacist), the signatura or "Sig." (directions for the patient including route, frequency, and duration), the prescriber's information (name, signature, license number), and refill instructions. Units of measurement include micrograms (µg), milligrams (mg), grams (g), milliliters (mL), liters (L), concentrations such as percentage (%) and mg/mL, international units (IU), and sometimes weight per kilogram of body weight. Obsolete units... Continue reading "Pharmacology Essentials: Drug Forms, Actions, and Therapeutic Classes" »

Essential Indigenous Concepts and Historical Figures

Classified in Social sciences

Written on in English with a size of 6.12 KB

Key Indigenous Concepts and Terminology

  • Indigenous Historical Consciousness: The understanding of relationships between past, present, and future from an Indigenous perspective.
  • Historicity: The idea that history is actively made and revolves around Indigenous peoples.
  • Historical Recognition: Acknowledging the full and accurate historical narratives of Indigenous peoples.
  • Sites of Pedagogy: Specific locations or contexts that serve as places of learning.
  • Indigenousness: The holistic way of being, encompassing the deep connection between land and people as a whole.
  • Sovereignty: The inherent right to self-governance and full rights for Indigenous nations.
  • Métissage: The interweaving or separation of histories, often referring to cultural mixing or
... Continue reading "Essential Indigenous Concepts and Historical Figures" »

Defining Hybristophilia, Sharenting, and Health Concepts

Classified in Psychology and Sociology

Written on in English with a size of 5.57 KB

Understanding Hybristophilia: Attraction to Criminals

Key Terminology Related to Hybristophilia

  • Heinous: Horrible, extremely evil (atroz).
  • Assault: A violent physical attack (agresión).
  • Paraphilia: A condition characterized by abnormal sexual desire or activities (parafilia).
  • Notoriety: The state of being famous or well-known, especially for something bad (mala fama).
  • Hostage: A prisoner taken (rehén).
  • Oppressor: One who treats people cruelly.
  • Reciprocity: A mutual exchange of benefits, help, and support in a relationship.
  • Susceptible: Easily influenced.
  • Obscure: Not clear.
  • Deed: An act (acción o hecho).
  • Captor: One who takes a hostage.
  • Allure: Attraction, charm (atraer).

Defining Hybristophilia

The term Hybristophilia is derived from the Greek roots:... Continue reading "Defining Hybristophilia, Sharenting, and Health Concepts" »

NLTK Text Processing Examples: Tokenization to NER

Classified in Computers

Written on in English with a size of 4.53 KB

NLTK Text Processing Examples

Experiment 4: Basic Text Preprocessing

This section demonstrates fundamental text preprocessing steps using NLTK, including tokenization, stop word removal, filtering for alphabetic tokens, and stemming.

import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.stem import PorterStemmer
from nltk.corpus import words

text = "Random sampling is a method of choosing a sample of observations from a population to make assumptions about the population"

tokens = word_tokenize(text)
stop_words = set(stopwords.words('english'))
stemmer = PorterStemmer()

# 1. Lowercase and filter for alphabetic tokens
alpha_tokens = [token.lower() for token in tokens if token.isalpha()]

# 2. Filter
... Continue reading "NLTK Text Processing Examples: Tokenization to NER" »