SSH 為何是使用 22 Port 呢? SSH.com 把當初的由來故事說出來囉~ 有興趣可以去參考看看~
作者: Tsung
對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.
Termgraph:於 CLI 畫出柱狀圖的程式
Linux 在 CLI 想要將數據資料化成柱狀圖(Bar chart),可以使用 Termgraph 來達成。
Python3 遇到 UnicodeEncodeError: ascii codec 錯誤解法
Python3 遇到下述問題:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0–9: ordinal not in range(128)
此錯誤訊息,要怎麼解決呢?
一般這個都在 Python2 看到,沒想到在 Python3 也會遇到.. @.@a..
PHP 將 png 透明底圖改成白色
PHP 對一張透明底圖的 png 圖片,想要將透明底圖加上顏色(移除透明底圖),要怎麼做呢?
- 註:想要將兩張圖片合併在一起,遇到透明底圖的時候,合成起來透明底圖會變黑底
影片:北投 法鼓山 農禪寺・水月道場
Windows 95 釋出 App 可以在 Windows、MacOS、Linux 執行
Windows 3.1 之後,一次跳級到 Windows 95 的改變很大,從開機啟動到操作模式的改變。
開機模式:
- Boot → DOS → Windows 3.1
- Boot → Windows 95
影片:為什麼80%的跑步者會受傷?
為何跑步容易受傷,而且受傷比率高達80%,此影片有教導該怎麼跑步比較不會受傷的方法。
瀏覽器的 Cookie 容量限制
瀏覽器的 Cookie 是做登入、紀錄、追蹤等等,最常使用的工具。
不過現在 Cookie 要放的東西越來越多,Cookie 到底可以塞的容量是多少呢?
- 註1:照標準應該是 4096 bytes,不過瀏覽器實作時,都可能會有些落差~
- 註2:下述取自此篇:RFC-2965 HTTP State Management Mechanism
- Practical user agent implementations have limits on the number and size of cookies that they can store.
- at least 300 cookies
- at least 4096 bytes per cookie (as measured by the characters that comprise the cookie non-terminal in the syntax description of the Set-Cookie2 header, and as received in the Set-Cookie2 header)
- at least 20 cookies per unique host or domain name
- Practical user agent implementations have limits on the number and size of cookies that they can store.
HTTPS 的 CLI (telnet) OpenSSL Client
HTTP 於 CLI 的環境,想要連線測試,可以使用 telnet 來連線,例如下述:
- $ telnet example.com 80
GET / HTTP/1.1
Host: example.com - $ telnet www.example.com 80
GET / HTTP/1.1 Host: www.example.com
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
於 HTTPS 的話要怎麼做呢?
台灣的治安在外國人認為是否安全 - 2018
台灣的安全在世界的評選都是前段班,那實際住在台灣的外國人感受是如何呢?