Laravel 9 released,除了長期支援到 2024-02-08 以外,還有一些異動,像是 PHP 僅支援 8.x 或以上。
詳細內容請參考官方說明:https://laravel-news.com/laravel-9-released
軟體開發、伺服器和生活瑣事
Laravel 9 released,除了長期支援到 2024-02-08 以外,還有一些異動,像是 PHP 僅支援 8.x 或以上。
詳細內容請參考官方說明:https://laravel-news.com/laravel-9-released
一樣是 top 系列的 system monitor,支援 theme 卻又不像 glances 那麼吃運算資源:
預設畫面就可以看到整台機器大致狀況,甚至連處理器溫度和時脈都抓出來了,操作複雜了一點,但應該可以一次頂替掉不少監視工具。
嘗試將網路上的長篇 GIF 動畫轉成 webp 效果還不錯,轉成 webp 以後大小剩下 10%,但是視覺上看不出明顯差異。縮短圖片載入時間,但在小螢幕上看不出差別,這應該就是 webp 的初衷吧。
由於 webp 程式一個還在發展當中的技術,所以前些時間使用 PHP 轉 webp 的作法,尚不支援 GIF 動畫,必須去下載 webp latest build 改用 exec() 呼叫原生程式轉檔才會有用。
以下把顯示 GIF 和 webp 並列比較,二張圖中間增加一些空間避免眼花。
以前找資料的時候都是英文文件,現在意外發現已經有社群建立繁體中文的文件,這樣查資料速度會快一些。
Cloud-Init should allow you to modify password after first time login. But if SSH closed while changing password:
WARNING: Your password has expired. You must change your password now and login again! Changing password for ubuntu. Current password: passwd: Authentication token manipulation error passwd: password unchanged Connection to 192.168.0.102 closed.
There might be Cloud-Init issue in older version.
There is a workaround to by-pass force passwd. Find /boot/firmware/user-data
in the boot partition, then you will see options:
# On first boot, set the (default) ubuntu user's password to "ubuntu" and # expire user passwords chpasswd: expire: true list: - ubuntu:ubuntu
Update expire to false if you do not want to change password in first login. Or create your own username/password
in list
if expire
is not work.
Please notice that device is not safe using default user name and password. Change it after you connect to the device.