tar 出現「從成員名稱中移除前端的 /」的警告訊息解法

於 Linux 使用 tar 備份資料,出現下述的警告訊息:(中英文)

  • tar: Removing leading `/' from member names
  • tar: 從成員名稱中移除前端的 /

閱讀全文〈tar 出現「從成員名稱中移除前端的 /」的警告訊息解法〉

Linux SSH 想避免 setlocale: LC_ALL: cannot change locale 的訊息

Linux SSH 到其它機器的時候,若自己的環境有設定 locales 是 zh_TW.UTF-8,但是連到的環境是沒有設定此語系的(通常是 en_US.UTF-8),就會出現下述的警告訊息:

  • -bash: warning: setlocale: LC_ALL: cannot change locale (zh_TW.UTF-8)

要如何避免此問題呢?

閱讀全文〈Linux SSH 想避免 setlocale: LC_ALL: cannot change locale 的訊息〉

瀏覽器的 console log 幾種不同呈現方式

瀏覽器在 Debug 常常使用 console.log(),除了 console.log 外,還有沒有更多的參數可以使用呢?

  • console.log():標準的文字
  • console.error():出現紅字錯誤文字 和 錯誤的 X
  • console.warn():出現黃色警告文字 和 警告的 !
  • console.table():可於 console 出現表格
  • 客製化 console.log:(前景綠字、背景黃色、24px 字體大小)
    (() => {
        console.log('%c%s', 'color: green; background: yellow; font-size: 24px;','Success!')
    })();

詳見此篇:Better console.logs

關掉 Pylint 一些特定 Warning 的檢查

依照此篇Syntastic:Vim 存檔自動做「語法檢查」的外掛套件設定完成 Python 的存檔自動檢查(使用 Pylint)。

但是 pylint 預設的檢查很多,在只有打算寫個三行的測試程式來說,會出現很多 warning(ex: 沒有 main().. 等等),這種檢查反而會造成麻煩,要如何將這些檢查關掉呢?

閱讀全文〈關掉 Pylint 一些特定 Warning 的檢查〉

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 的問題修復〉

Percona 5.6 警告訊息 command line interface can be insecure 修復

Percona MySQL 升級到 5.6 後, 於 CLI 命令列若有輸入密碼, 都會出現下述警告訊息:

Warning: Using a password on the command line interface can be insecure.

註: mysql -u root -pPASSWORD 或 mysqldump -u root -pPASSWORD 都會出現此訊息.

閱讀全文〈Percona 5.6 警告訊息 command line interface can be insecure 修復〉