Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

年份: 2022 年

Laravel 9 released

Posted on 2022 年 2 月 9 日2022 年 2 月 9 日 By 日落 在〈Laravel 9 released〉中尚無留言

Laravel 9 released,除了長期支援到 2024-02-08 以外,還有一些異動,像是 PHP 僅支援 8.x 或以上。

詳細內容請參考官方說明:https://laravel-news.com/laravel-9-released

Tags:Laravel, PHP

btop system monitor

Posted on 2022 年 2 月 3 日2022 年 2 月 3 日 By 日落 在〈btop system monitor〉中尚無留言

一樣是 top 系列的 system monitor,支援 theme 卻又不像 glances 那麼吃運算資源:

圖:用 btop 看被壓力測試的 Pi 4 狀況 (看大圖)

預設畫面就可以看到整台機器大致狀況,甚至連處理器溫度和時脈都抓出來了,操作複雜了一點,但應該可以一次頂替掉不少監視工具。

btop Github: https://github.com/aristocratos/btop

Tags:Linux

GIF 動畫轉 webp 的效果不差

Posted on 2022 年 2 月 3 日2022 年 2 月 3 日 By 日落 在〈GIF 動畫轉 webp 的效果不差〉中尚無留言

嘗試將網路上的長篇 GIF 動畫轉成 webp 效果還不錯,轉成 webp 以後大小剩下 10%,但是視覺上看不出明顯差異。縮短圖片載入時間,但在小螢幕上看不出差別,這應該就是 webp 的初衷吧。

由於 webp 程式一個還在發展當中的技術,所以前些時間使用 PHP 轉 webp 的作法,尚不支援 GIF 動畫,必須去下載 webp latest build 改用 exec() 呼叫原生程式轉檔才會有用。

以下把顯示 GIF 和 webp 並列比較,二張圖中間增加一些空間避免眼花。

More “GIF 動畫轉 webp 的效果不差” »

Tags:網路架站

PostgreSQL 繁體中文文件

Posted on 2022 年 1 月 26 日2022 年 1 月 26 日 By 日落 在〈PostgreSQL 繁體中文文件〉中尚無留言

以前找資料的時候都是英文文件,現在意外發現已經有社群建立繁體中文的文件,這樣查資料速度會快一些。

文件連結:簡介 – PostgreSQL 正體中文使用手冊

Tags:PostgreSQL

Ubuntu 20.04 Failed to Change Password while Using cloud-init

Posted on 2022 年 1 月 22 日2022 年 2 月 22 日 By 日落 在〈Ubuntu 20.04 Failed to Change Password while Using cloud-init〉中尚無留言

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.

Tags:Linux, Raspberry Pi, Ubuntu

文章分頁

上一頁 1 ... 19 20 21 22 下一頁

其他

關於我  (About me)

小額贊助

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.