This script allows you to continuously monitor the connection status of IPs within a 30-minute window and report any changes in status (from up to down or down to up). This function will now include periodic checks and keep track of the current status of each IP address, notifying changes accordingly.
Continue reading »If you're using the built-in VPN client in Windows and facing the issue where only traffic through the VPN can access the internet, while other traffic is blocked, you might need to check and modify the VPN connection's "Use default gateway" setting. Here's how to do it:
Continue reading »Source: MicroPython umqtt 連線/斷線的的注意事項
MicroPython 提供有 umqtt 模組可以使用 MQTT 協定, 不過在 umqtt 裡面有再分為 simple 和 robust 模組, 這兩種模組功能基本相同, 但如果設計純訂閱端 (只收資料不送資料) 這樣的程式, 在使用上就必須多加留意。
Continue reading »Source: 在 Fly.io 上面跑 PHP
在 Heroku 把 free tier 拔的差不多後 (「Heroku 公佈了廢止免費方案的時間表」、「Heroku 的替代方案」),大家手上的小專案都往其他的服務跑,目前看起來做的比較有規模的就是 Fly.io 了,一個人可以建很多個 organization,而每個 organization 都有 free quota 可以用...
Continue reading »This requires a change within Windows itself.
- Windows 10:
- Click "Start" > "Settings" > "Ease of Access" > "Mouse" > Enable "Use numeric keypad to move mouse around the screen".
- Windows 7:
- Open "Control Panel" > "Mouse" > Select the "Pointer Options" tab > Check or uncheck the box for "Display pointer trails" > Click "Apply".
source: 分散式系統的 clock
前幾天在 Hacker News 上看到「Clocks and Causality – Ordering Events in Distributed Systems (2022) (exhypothesi.com)」這篇,講分散式系統上 clock 的設計,作者也有跑出來在 Hacker News 上面跟大家聊一下 (帳號是 thoughtlede),原文在「Clocks and Causality - Ordering Events in Distributed Systems」這邊。
Continue reading »- https://docs.microsoft.com/zh-tw/azure/architecture/best-practices/api-design
- https://cloud.google.com/apis/design
- https://www.restapitutorial.com/httpstatuscodes.html
- https://restfulapi.net/resource-naming/
- https://ihower.tw/blog/archives/6483
- https://stackoverflow.com/questions/24241893/should-i-use-patch-or-put-in-my-rest-api
- https://blog.darkthread.net/blog/is-restful-required/
Source: 使用 K6 對網站作壓力負載測試
K6 是一套負載測試工具 Load Testing Tool,用 Go 語言寫的,但是測試設定是用 javascript
K6 最初是 Load Impact , Load Impact 之後變成了 K6 , 再來被 Grafana 買去了
而 K6 分 Open Source 及 Cloud 產品線, Cloud 是要錢的,不過有最多 50 人模擬不用錢
底下拿 Open Source 來作測試
(如果想知道各家負載測試工具比較評筆,可看 Open source load testing tool review 2020)
Continue reading »Source: 來看 Intel + Varnish 的單機 500Gbps 的 PR 新聞稿
在「Varnish Software Achieves 500Gbps Throughput Per Server for UHD Video Content」這邊看到 PR 稿,由 Intel 與 Varnish 合作,宣稱達到單機 500Gbps 的 throughput 了:
Continue reading »