PTT 是台大BBS站,現在也有 Web 界面(批踢踢實業坊)可以瀏覽,不過想要討論、快速瀏覽等等,還是直接使用 telnet 比較快。
月份: 2017 年 3 月
使用 Percona innobackupex 備份 與 還原 MySQL
MySQL 的 InnoDB 只能用 mysqldump,而沒辦法使用 cp 來備份,這點可以使用 Percona 出的 innobackupex 來解決~
Percona 出很多 MySQL 的工具,可以做同步、快速備份 等等 ..
Linux Bash 出現 bind: warning: line editing not enabled 的問題修復
於 Linux 的 Bash shell 依照此篇文章「Bash 使用 Tab 自動完成 檔案或目錄的輸入」的做法,使用 bind 來做些設定,但是在 scp 到這台 server 時,就會出現下述警告訊息:
bind: warning: line editing not enabled
要如何避免這個訊息呢?
閱讀全文〈Linux Bash 出現 bind: warning: line editing not enabled 的問題修復〉
田.滿:宜蘭五個小學生拍出來的紀錄影片
宜蘭自從雪隧開通後,交通便利、觀光人口也變多,帶動一些很神奇的現象,農田不種稻米,變成種房子了...
這部紀錄片除了紀錄外,更特別的地方是,這是由五位小學生拍出來的,相信老師帶領的也是很辛苦,有空花半個小時來看看這部影片吧!準備拍第二部了~
Golang get 抓取的套件如何移除
Golang 使用 go get 可以抓取套件,而且有 binary 可以直接執行,但是 go get 到底把程式裝在哪邊?要怎麼移除乾淨呢?
MySQL 出現 InnoDB STORAGE ENGINE failed 修復
MySQL 要從備份還原啟動,但是發生啟動失敗,在 mysql 的 error log 裡面看到下述訊息。
Unable to start MySQL service: Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
InnoDB: Using Linux native AIO
InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
170122 12:01:00 InnoDB: Warning: table 'mysql/innodb_index_stats' InnoDB: in InnoDB data dictionary has unknown flags 50.
170122 12:01:00 InnoDB: Warning: table 'test/collect' InnoDB: in InnoDB data dictionary has unknown flags 50.
170122 12:01:00 [ERROR] /usr/sbin/mysqld: Table './mysql/user' is marked as crashed and should be repaired
170122 12:01:00 [Warning] Checking table: './mysql/user'
170122 12:01:00 [ERROR] 1 client is using or hasn't closed the table properly
170122 12:01:00 InnoDB: Warning: table 'test/users'
InnoDB: in InnoDB data dictionary has unknown flags 50.
要怎麼修復呢?
Linux 使用 ffmpeg 將 rmvb 轉成 mp4
rmvb 於 Linux 使用 VLC 可以正常播放,但是用小米盒子這類的,一樣會有很不順暢和很多馬賽克出現,所以乾脆把 rmvb 轉成 mp4,一次解決。
Linux 影片播放程式 VLC 的快速鍵
於 Ubuntu / Debian Linux 要播放 rmvb 的檔案,一般只要 decoder 裝好,就可以使用 mplayer 播放,但是現在 rmvb 的檔案播放,都會有很嚴重的馬賽克,所以改用 VLC 來播放。
註:現在都用 mp4 或 mkv,很少用 rmvb 了。
新聞:剪輯 A片內容 與 MV 結合的影片製作
Bash 使用 Tab 自動完成 檔案或目錄的輸入
Bash shell 要選取 資料夾 / 檔案,可以使用 Tab 來輔助
- Tab 一次會自動補期 (若目錄只有一個,Tab 一直按,會一直往下補下去)
- Tab 二次會秀出此資料夾的所有檔案內容
在 Zsh 使用到按 Tab,若有多個資料夾,就會自動選取(自動補齊 / 自動完成)資料夾,按 Tab 則繼續其他資料夾挑選,於 Bash 要怎麼達成呢?