XpandNotes

exploring the intersection of technology and creativity

計組筆記主頁

使用課本: Computer Organization And Design 5th Edition Ch1 Abstractions and Technology

計組 Chapter 1

Abstractions and Technology

Moore’s Law 每經過 18 至 24 個月,同等體積的晶片可以容納兩倍數數量的電晶體 (指數成長)。 8 個重要的想法 Design for Moore’s Law 由於晶片設計可能需要數年時間,每顆晶片的可用資源很容易在研發完成時翻倍,架構師必須預測當設計完成時,最先進的技術將在落哪裡,而不是固守剛開始設計時的技術程度。但近幾年摩爾定律遇到瓶頸,可能不那麼適用...

線代筆記主頁

使用課本: Linear Algebra with Applications 9th edition 1 Matrices and Systems of Equations 1.1 Systems of Linear Equations 1.2 Row Echelon Form

線代 Chapter 1.2

Row Echelon Form

若矩陣無法符合 strict triangular form,而是呈現倒梯形,並且每一列的首個非 0 項為 1,則稱 row echelon form (階梯形矩陣),如以下矩陣: \[\left[ \begin{array}{ccccc|c} 1 & 1 & 1 & 1 & 1 & 1 \\ 0 & 0 & 1 & 1 &a...

線代 Chapter 1.1

Systems of Linear Equations

linear system 擁有 $n$ 個未知數的 linear equation (線性方程式) 表示為 \[a_1x_1+a_2x_2+ \cdots +a_nx_n=b\] 一個 $m \times n$ 的 linear system (線性系統),即擁有 $m$ 個方程式與 $n$ 個未知數的聯立方程組表示為 \[\begin{align*} & a_{11}x_...

DDOS 工具 TFN2K 教學

請使用自己的電腦測試,不要攻擊其他人或做犯罪行為 DDOS 簡介 「阻斷服務攻擊」(denial-of-service attack, DoS)亦稱洪水攻擊,是一種網路攻擊手法,主要的目的是讓目標電腦的網路或者系統資源耗盡,使其服務中斷且無法正常存取 使用兩個或以上的電腦為攻擊端作為「Zombies 殭屍」向特定「Victims 目標」發動阻斷式服務攻擊時,便稱為「分散式阻斷服務攻擊」...

在 Ubuntu 20.04 安裝 LibreNMS

此安裝流程是參考官網教學 https://docs.librenms.org/Installation/Install-LibreNMS/ 但是官網有兩處小細節沒有特別提到,在本篇文章會點出 Step 1: 下載所有相依套件 下載所有相依套件及 nginx 伺服器 $ sudo apt install software-properties-common $ sudo add-apt...

LDAP 安裝和設定

此為計算機網路管理課程的 lab11 安裝 參考這篇文章 https://magiclen.org/ubuntu-server-ldap/ 安裝時,照著 ldap 的類 GUI 提示設定 admin 密碼、將 nasa.imslab.org 設為 root dn $ sudo apt install slapd $ sudo dpkg-reconfigure slapd $ sudo...

使用 nginx 與 flask 架設 key-value storage 服務運行於 docker 容器

此為 2021 網路管理課程的 lab14,花了一整晚搞不定 php-fpm 在 docker 寫檔的問題 (已經調整過權限、目錄也 mount 了還是不行) 耗費五到六個小時,後來砍掉重練,改成用 python + redis 的記憶體儲存,兩個小時就幹完了,真是累死人。 以下只有 code,沒力氣打詳細解釋了…,共五個檔案 app.py 1 2 3 4 5 6 7 8 9 10 1...

從 0 開始學習 Docker、Dockerfile、Docker-Compose

1. 安裝 首先使用指令安裝 Docker $ curl -fsSL https://get.docker.com | sudo bash 安裝 Docker Compose $ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(...