發表文章

目前顯示的是 2017的文章

在 Lubuntu 上製作 bootable USB

圖片
由於最近入手新筆電,打算將筆電灌成雙系統,本篇是準備 Bootable USB 的過程的紀錄。 目前在舊機器上使用 lubuntu ,因此格式化 USB 將在此系統執行。 1. 格式化 USB 為 FAT32 參考文章: How to Format USB Drive in the Terminal 插入做為開機光碟的 USB ,查詢掛載點:  # df -h  找到插入的 USB 名稱的所在位置,通常是 /dev/sd[a-z][1-9],像我的是 /dev/sdb1 卸載欲格式化的 USB : # umount /dev/sdb1 #  df -h (確認是否卸載成功) 格式化 USB 為 FAT32 格式: # sudo mkfs.vfat -n 'Ubuntu_8G_USB' -I /dev/sdb1 mkfs mkfs 用來在裝置上建立 filesystem. vfat 將裝置格式化為 FAT32。 其他格式還有: mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs ...等。 -n 設定此裝置的名稱,像我的名稱為 Ubuntu_8G_USB ,是希望之後讀取到這支 USB 時可以清楚知道這是支 8G 的 Ubuntu 系統開機光碟。 -I It is typical for fixed disk devices to be partitioned so by default, you are not permitted to create a filesystem across the entire device. # df -h (確認是否格式化成功) 2. Create a bootable USB on ubuntu 參考文章: Create a bootable USB stick on Ubuntu 使用 UNetbootin 來製作 bootable USB: To install UNetbootin from the Ubuntu PPA, run the commands:

在 Lubuntu 下安裝圖片編輯器 Pinta

Pinta 是一款近似於 Windows 小畫家的圖片編輯器,本篇希望用 Pinta 編輯 scrot (螢幕快照)的圖片。 安裝方式參考 官網 說明: Install Pinta from Pinta maintainers PPA repository using terminal (for advanced users) 1. 加入 Pinta stable 的 PPA repository: $ sudo add-apt-repository ppa:pinta-maintainers/pinta-stable 註: 如果希望使用最新版本的使用者,可以選用 pinta-daily 取代 pinta-stable,但可能不夠穩定,會有些 bug 。 2. Update system package lists: $ sudo apt-get update 3. Install pinta: $ sudo apt-get install pinta

高等資料庫 ( 持續更新...)

 高等資料庫 2017 Fall Review:  DBMS: Evolution of DBMS: Punched-Card Record 1914 - 1918 WWI 1929 - 1933 Big Depression ( Bank ) 1939 - 1945 WWII 1950 magnetic tape 1955 Programmed Record Managers ( Batch Processing ) Con: Transaction error 無法即時被偵測 didn't know the current situation. 1965 - 1980 On-line Network Database   Indexed sequential records 建立索引 Data independence 資料獨立性 Physical Logical Concurrent Access 一致性 Con: Programming interface are too low level. 1970 E.F. Codd Outline the Relational Model 1976 Peter Chen E-R Model SQL ...( still adding ... ACID: Atomicity: happen or none happen 全有全無 IDEA : keep a log ( history ) for all actions Consistency Isolation:每一筆 transaction 都是獨立的 Durability:耐久性 Relational Model: Data Model - a language to description data 相關名詞: Relation = Table Attribute / Field = Column Record / Tuple = Row Constraint Type:關聯模型的限制 Domain constraints - for value of each attribute