7 月 032023
 

Source: MicroPython umqtt 連線/斷線的的注意事項

MicroPython 提供有 umqtt 模組可以使用 MQTT 協定, 不過在 umqtt 裡面有再分為 simple 和 robust 模組, 這兩種模組功能基本相同, 但如果設計純訂閱端 (只收資料不送資料) 這樣的程式, 在使用上就必須多加留意。

Continue reading »
5 月 262023
 

Source: 在 Fly.io 上面跑 PHP

在 Heroku 把 free tier 拔的差不多後 (「Heroku 公佈了廢止免費方案的時間表」、「Heroku 的替代方案」),大家手上的小專案都往其他的服務跑,目前看起來做的比較有規模的就是 Fly.io 了,一個人可以建很多個 organization,而每個 organization 都有 free quota 可以用...

Continue reading »
5 月 062023
 

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".
4 月 172023
 

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 »
2 月 162023
 
11 月 152022
 

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 »