Power over Ethernet, PoE 的標準電壓

PoE 的標準電壓有以下幾種:

PoE (IEEE 802.3af):
標準電壓: 48 V DC
最大功率: 15.4 W

PoE+ (IEEE 802.3at):
標準電壓: 48 V DC
最大功率: 30 W

PoE++ (IEEE 802.3bt):
標準電壓:
Type 3: 48 V DC
Type 4: 54 V DC

最大功率:
Type 3: 60 W
Type 4: 100 W

所以對於標準的 PoE 設備而言,常見的標準電壓是 48 V DC,這是 IEEE 802.3af 和 802.3at 標準中指定的。後來的 802.3bt 標準則提供了更高功率的 PoE++ 選項。

Linux Find Command

ExamplesCreated by @dan_nanni on Instagram

find . -name “my.txt” find all files named “my.txt”

find .-type d-name “mydir” find all directories named “mydir”

find . -type f-name “*.jpg” find all “.jpg” files

find . -type f-size +100M find all files larger than 100MB

find . -type f-size +100M-size -500M find files with a specific size range

find . -type f-mtime-1 find all files modified in last 24 hours

find .-mtime-7-mtime +1 find files modified betn yesterday & a week ago

find . -type f-name “*.tmp” -delete find and remove all “.tmp” files

find . -type f-perm 0777 find all files with “777” permission

find . -type f-perm-u+x find all files executed by the user

find . -type f-name “*.txt” -exec cat {} \; find and cat all “*.txt” files

find . -type f-amin-60 find all files accessed within the last hour

find . -type f-user dan find all files owned by the user “dan”

find .-type f-ctime -2 find files created within last 2 days

find .-maxdepth 1 -name “my.txt” search only in current dir

find . -type f-name “*.txt” | xargs chmod 644 chmod all “.txt” to 644

find . -type f-name “*.jpg” | xargs tar -cf img.tgz archive all “.jpg” files

find . -type f-name “*.png” | xargs -I {} mv {} /tmp move all “.png” files

find . -type f-name “*.txt” | xargs grep “Hello” search for Hello in “.txt”

find .-xtypel-delete find and remove all broken symbolic links

find .-type d-empty-delete find and remove all empty directories

find .-newermt “2024-01-01”! -newermt “2024-03-15” use a time range

做人要學會保護自己

  1. 你不讓他佔便宜,就是你自私。
  2. 你不接受他們的價值觀,就是你固執。
  3. 你不肯接受他們的指揮,就是你強勢。
  4. 你一旦站在道理上不肯退讓了,就是你態度問題。
  5. 你差到他們的陰謀時,你太敏感了。
  6. 他們一旦發現你沒有那麼好騙,就是你們不懂事。
  7. 你一旦要勝利了,他們發現了就要輸,你就是世界第一大反派。

別因為一時的成功,而得以忘形

別因為一時的成功,而得以忘形 ,隨便發表自己的個人想法,從而導致身邊的人感受不良好,不舒服。這會直接為自己造成重大影響,損害個人形象。我們必須要記住,沒有人喜歡聽另一個人講大道理,特別是這些道理他們不接受,為了自己,讓自己成為一個謙虛的人謙卑的人,就是保護自己最好的方法。 別忘記,當你成功時,同時代表人家失敗。人家為什麼要高興呢? 不喜歡人家過得比自己好,是很多人的內心世界,沒必要讓這些人不高興,以為自己造成傷害。再溝,只不過是一些少許的成就,有必要炫耀嗎?就算要炫耀,都必須要對自己有幫助下,才有意義,傷害自己毫無意義也可言。

避免無目的地開玩笑

為了顯得幽默風趣,有些人經常刻意地逗人開心,但這種行為往往會因思考速度不夠快而不慎冒犯他人,這些無意義的言論不僅傷害了別人,也傷害了自己。

我們需要認真思考一下,開玩笑是否具有必要性和重要性?除了讓對話變得有趣外,其餘的效果往往是負面的。

有一位女士曾經說過,如果說的話不好聽,不如不說,只說些正面的話語。這種做法對於自己和他人都是有益的。

讓我們來分析一下,拿別人的缺點開玩笑有意義嗎?還是用他人的優點來逗人開心更好一些?

通過思考,看來已經找到答案。

nextCloud upgrade hints

Use command line for upgrade nextCloud was bester than using Web Upgrade. Some reason not work with Web upgrade.

Using the command line for upgrading NextCloud is more efficient than using the web upgrade interface. There are several reasons why the command line method is preferable:

Upgrade Duration: Upgrading NextCloud can take several hours, and when using the web upgrade, it’s difficult to gauge whether the process is progressing or if it has encountered issues and halted.

Error Handling: Upgrades can sometimes result in errors that require intervention. When using the command line, it provides more detailed information about any issues encountered, making it easier to take corrective actions. In contrast, the web upgrade may not provide sufficient information to diagnose and fix problems effectively.

PHP Configuration: To upgrade NextCloud, PHP often requires the apc.enable_cli=1 configuration. This configuration may not always be set correctly when using the web upgrade, causing upgrade issues.

In summary, utilizing the command line for NextCloud upgrades offers better control, error visibility, and ensures the necessary PHP configurations are in place for a smoother upgrade process compared to the web upgrade interface.

Make the nextCloud Folder work with same User and same permission

My Web Directory: /var/www/nextcloud
My Apache user: apache2

chown -R apache2: /var/www/nextcloud

nextCloud Upgrade

sudo -u apache2 php --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar

sudo -u apache2 php --define apc.enable_cli=1 /var/www/nextcloud/occ upgrade

sudo -u apache2  php --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:mode --off

The database is missing some indexes

sudo -u apache2  php --define apc.enable_cli=1 /var/www/nextcloud/occ db:add-missing-indices 


不要浪費時間在無關緊要的人身上

昨晚我做了一個奇怪的夢。在夢中,我感到自己即將離開這個世界,但不像一般的夢境,我不是躺在床上,而是自由自在地四處走動。我來到一個公共廁所,卻看到許多人毫無秩序,場面混亂。當時,我感到自己非常鎮定,就像在一場漫遊旅行中一樣,充滿輕鬆感。然後,突然間我停下來,思考了一下。我想,既然我即將離開這個世界,有什麼非常重要的事情我應該處理呢?

突然,我想起了我最愛的孫女、最愛的兒女、最愛的太太,以及我最愛的家人。那一刻,我心中只有一個念頭,那就是盡快見到我的家人,然後我才能夠安心離開這個世界。但是,當時我感到非常無奈,因為我無法立刻回到他們身邊。

突然,女兒打來電話,詢問我在哪裡,我才知道孫女和家人都在等著我。於是,我趕緊回到殯儀館,見到了他們最後一面。但在回去的途中,我又突然想去理髮,並與一名理髮師老闆聊了起來,情緒愉快。我竟然忘記了家人的重要性,即將面對最後一面,為什麼我會這樣呢?我真的在責備自己,覺得自己太過放縱,總是容易被無關緊要的事情吸引,最終卻後悔不已。

這個夢境讓我反思,在現實生活中,我經常因為過度放縱自己,忽略了重要的事情,最終感到後悔。我應該時刻提醒自己,最重要的是我的家人,我的至愛。我願意為了保護他們而奉獻一切,因此,無論何時,我都不應該再將時間浪費在無關緊要的事情上。即使死亡即將來臨,我也應該學會改變,珍惜每一刻,並注重真正重要的價值。