搜尋

搜尋結果

Swarm mode 上線 6 - 2| 升級陷阱
科技新知
MacauYeah・2025-04-14

上一期筆者就介紹寺過swarm的相容性,可以任意地刪除其中node、加入新的node,系統會自動同步各機狀態。今日,我們就來討論一下加減的流程吧。 實戰輪調流程 假設我們有5個 node,都為manager,各個 docker 版本都為28.0.4 ,我們將要關掉node 5 ubuntu 22,並加入node 6 ubuntu24,輪調流程如下 如果node5有vvip,login node 5,關掉vvip systemctl stop keepalived login node1, 把node5降為drain模式,變為worker,並從群集中刪除 docker node update availability drain node5 docker node demote node5 若然node5不是直接關機、刪除,只想好好地離開群集,可以 login node5, 在node5上預先執行 docker swarm leave docker node rm force node5 如果之前node5有好好地離開群集,而且狀態已經轉為down,那麼就不用quot;forcequot;了,用最保守的刪除指令就可以 docker node rm node5 login node1, 取得manager token docker swarm jointoken manager node5關機,新增node6,使用相容的ip段,或者使用node5的ip login node6, 加入群集,設定vvip docker swarm join token xxxx XX_IPXX_PORT systemctl stop keepalived 這陷阱這陷阱 偏我遇上 上述的操作,有一些可能的陷阱,筆者就剛好踩過,未來不知道會不會有官方保證 docker的版本需要相同,不同版本可能不能加入群集,例如 docker 28.0.4 不能加到 docker 27.5.1。 docker 27.2.x 不能加到 docker 27.5.1。 docker swarm,官方雖然宣稱支援不同版本共存,但這指的是已加入的node,在不解綁的情況下原機升級。 在swarm已有多版本共存的情況下,有一個node選擇完全脫離,它想再加入,也是會失敗的。可能這不是docker自身的限制,而是底層library的相容性問題。筆者在實測不同版本時,就得到這樣的error。docker credentials cannot check peer missing selected ALPN property

2025年澳門經濟預測
宗教玄學
熊神進・2025-01-07

Previsotilde;es Econoacute;micas de Macau em 2025 Macau is only a tiny spot on the world map. It is fortunate enough to be free from major natural disasters. When a typhoon is approaching, Taiwan protects it as a natural barrier. Typhoons first pass through Taiwan before reaching Macau, so the storm weakens. Regarding earthquakes, Macau is not located in the Plate tectonics active area. What worries Macau is the world economy. Today, Mickey Hung will analyze Macau's economic situation in 2025 from the perspective of quot;I Ching.quot; The Beginning of Spring on the Feng Shui calendar is the beginning of the year. It is 1111 pm on February 3, 2025. 天干地支are 乙巳、戊寅、癸卯、癸亥. , the star of water represents the Macau government in 2025, the star of the earth is the security star, the star of fire is the wealth star, Macau'sMacau's economic pillar is mainly based on turismo and entretenimento, as for Imobiliaacute;rio, comeacute;rcio, serviccedil;os, retalho, and restauraccedil;atilde;o, Because different quot;五行quot; will have a different emphasis, which fields the city will focus on developing depends on the government's decision. 2015's wealth star will be relatively prosperous, so the Festival da Primavera will record the highest number of inbound tourists, and the income from Imposto sobre entretenimento e jogos will be considerable. However, the wealth star will be crashed at the end of the year, resulting in a decrease in treasury income. In the quot;Five Elementsquot; no need to translate, water grows wood, and wood is the conqueror of Earth. The official star is Earth, and Earth is the security star. Fire engenders Earth. There are more cyber crimes in the Year of the Snake than last year, so be vigilant with telephone scam calls and financial frauds. There will be some scams in the name of metaphysics, including Feng Shui. Metal generates water, so the financial market and stock trade will be hot in 2025. public participation in the financial market will be very popular. Please be conscious of not being obsessed with it. From the quot;I Chingquot; perspective, many people don't have much critical thinking, and some take advantage of the herd mentality to make money. Everyone should be thoughtful and analyze their financial positions and risks before investing. Mainland investors have overheated Macau's property market in recent years, and property prices have skyrocketed. In 2025, the star of the Earth will not be substantial. In addition, the construction of new development areas has accelerated the construction of habitaccedil;atilde;o econoacute;mica. Mickey Hung predicts that the real estate growth rate will slow in 2025, and the secondhand property market will stagnate. Macao's economy will still face external uncertainties and be influenced by other uncontrollable factors in 2025. However, from a macro international perspective, Macao's relatively small economic scale has the advantage of being flexible. With the support of the PRC government, we can maintain a prudently optimistic attitude toward Macao's economy. The GDP forecast for 2025 is estimated to be approximately 400 billion patacas, an annual increase of roughly 5%. The new executive chef will have many reforms, such as opening a wider road network, technology, and medical facilities. The following year, the government will reduce unnecessary expenditures on celebrations and spend more on people's livelihood expenditures.

Steam OS 3.5更新,內建 podman, distrobox
科技新知
MacauYeah・2024-12-10

之前筆者有介紹過如何在Steam OS上安裝podman,但都必需要自行折騰一番,特別是遇到一些依賴缺失時,還要逐個除錯。在Steam OS 3.5更新之後,官方已經有預安裝的 podman,筆者建議,如果有機重刷OS,就直接使用預安裝版本就好。更重要的是,不但有預設podman,連另一個神器distrobx,也在Steam OS 3.5之後引入。 podmancompose Steam OS 3.5,雖然已經有預安裝 podman ,但在實際環境下,多安裝一個 podmancompose 可以更方便地一體化操作。 我們可以經 python 安裝。 剛安裝 podmancompose ,會出現在自己的 home 目標的隱藏目錄。最後一步就是要加到自己的 PATH 環境變數裏面。 修改保存後,就重啟。之後 podmancompose 的指令就可以任意存取了。 要補充一點,就是官方預安裝的 podman 還是缺少了一些 DNS 的元件,大家會看到 warning 提示。不過在筆者單個 container 的使用情境下,並不受影響。之後要在其上二次引用的 distrobox 也可以順利執行。 神器 distrobox 在 Steam OS 3.5 中,除了 podman 外,還有預裝 distrobox 。 distrobox 其實是基於 container 技術的擴展應用,它目標是讓用經過 container 就可以輕鬆使用到不同 linux 的發佈版本。例如我想在 Steam OS 中使用 Ubuntu ,經過 distrobox 就可以用到。道理上, distrobox 基於 container podman 操作的,所以它能做到的,其實自己手動經 podman 也是可以做到。但若果大家想使用跨 Linux 版本的 GUI 程式,筆者還是建議優先使用 distrobox 。因為 distrobox 預設已為不同版本的 Linux 的 Image 來源影像檔 加入部份調整,在運行時亦有x11等互通,指令也較為簡單。 以下做來例子,示範在 Steam OS 中就執行 Ubuntu 版本的 vscode。 註 Distrobox 也不是萬能的,例如它的 Ubuntu 版本內沒有 snap ,所以不能執行 Ubuntu 版本的 Firefox。 snap will not works firefox not works

澳門路牌是澳門歷史的佐證
宗教玄學
熊神進・2024-10-04

Some toponiacute;micas ao papel pictures and texts are peeling off, and citizens are worried that this will affect Macau's feng shui. After the handover, Macau retained Portuguese characteristics, such as Calccedil;ada Portuguesa, cesto de lixo, cabin telefoacute;nica, candeeiro de rua, Farol da Guia, placas toponiacute;micas a azulejo, etc. These are the focus of attracting tourists from all over the world to visit Macau. Having inspected some places recently, I.A.M. personnel discovered that a batch of newly replaced placas toponiacute;micas a azulejo had quality problems. The personnel spotted the noncompliance with the required manufacturing process and suspected fraud, and the case was reported for investigation. As for placas toponiacute;micas a azulejo suspected of cutting corners, law enforcement agencies have launched relevant investigations and taken temporary remedial measures for placas toponiacute;micas a azulejo that have peeled off to ensure the function of placas toponiacute;micas a azulejo as directional signages. The problematic placas toponiacute;micas a azulejo will be replaced as soon as possible and the work will be completed within the fourth quarter of this year. The placas toponiacute;micas a azulejo in Macau, rooted in the art of azulejos, reflect the city's cultural diversity. Their distinctive blue and white color scheme, adorned with placas toponiacute;micas in both Chinese and Portuguese, has become an integral part of Macau's identity. During the Portuguese reign, the placas toponiacute;micas a azulejo was a testament to the city's multicultural fabric, with the Portuguese language dominating threequarters of the plate surface area and the Chinese language occupying the remaining quarter. Mickey Hung went to Rua dos Eucaliptos, Parque Industrial Luen San, Coloane last week and saw o placas toponiacute;micas a azulejo. The placas toponiacute;micas were initially supposed to be made of fired ceramics. Now, they are suspected of having papels on the surface of the white tiles, and they are surrounded by an edge pattern that is yellowing and falling off. According to the provisions of the projectrelated documents, placas toponiacute;micas a azulejo must be manufactured using the quot;sob esmaltequot; technique, and the procedure specifications to be followed by the quot;sob esmaltequot; method are clearly stated. However, during the inspection, I.A.M. personnel discovered that the placas toponiacute;micas were not fired with quot;sob esmaltequot; according to the procedure specifications, and there was a suspicion of cutting corners. O placas toponiacute;micas a azulejo is the quintessence of Portugal and a mirror of Feng Shui, which can reflect the core values of a city. The people's culture of a city is reflected in the mirror, and the Road name sign is a history textbook that prints Macao citizens' past living habits and Macao's historical origin. It's like the early Paacute;tio da Indigecirc;ncia and the people here lived relatively poor lives in the past. Later, the street name was changed to Travessa de S. Paulo on August 19, 1969. There are many ways to name streets in Macau. One common practice is naming them after street landmarks and buildings. However, as time passes, the buildings have been moved away from the streets or disappeared entirely, making the street names somewhat inconsistent. The Chinese street names may change to a new one based on the reality. Like Calccedil;ada de Tronco Velho, the place used to be a prison. After the prison was moved, the original Portuguese street name remained unchanged. This shows that placas toponiacute;micas a azulejo is a witness to the history and civilization of Macau. O placas toponiacute;micas a azulejo must not only have appealing outlook, but also have connotation. If it is just a placas toponiacute;micas a azulejo, it will not play a role in feng shui. When O placas toponiacute;micas a azulejo records a piece of history, it is alive and spiritual. There is a story; this is what Feng Shui experts call quot;spirituality,quot; which is Feng Shui.

澳門斷捨離學會,一個由澳門師生和澳門市民義工共同建立的群組,現有約28000位澳門市民
文化創意
陳康妮・2024-05-13

澳門斷捨離學會,一個由澳門師生和澳門市民義工共同建立的群組,現有約28000位澳門市民。這個群組致力於每週三舉辦共享經濟實踐活動,體現了一種新的生活方式和價值觀念。 斷捨離是一種消除多餘物品、簡化生活的方式。通過選擇性保留和捨棄不必要的物品,人們可以擁有更簡潔、整潔、舒適和自由的生活。這種方式還有助於減少浪費和資源消耗,從而減少對環境的負面影響。 2024年4月分每週三共享經濟活動則是一種通過分享資源和合作實現共贏的方式。透過共享平台,人們可以分享自己的物品和資源,例如衣服、小電器、玩具,手袋,生活用品等等。這不僅可以減少浪費和消費,同時還可以減少對環境的污染和資源消耗。共享經濟還有助於促進社區互助和合作,增加社會凝聚力和和諧性。 在當前全球節能減排和可持續發展的背景下,這種生活方式和價值觀念具有重要的意義。澳門斷捨離學會的實踐不僅對個人可以帶來節省和簡化,同時也對澳門社會和環境產生積極的影響。我們應該進一步推廣和發展這種生活方式和價值觀念,努力實現可持續發展的目標,為澳門社區的未來帶來更美好的希望。 如果市民斷捨離物品,可以聯絡66995600陳小姐

冬至,我們會想起什麽?
宗教玄學
熊神進・2023-12-21

#冬至##好運2024# 冬至,又稱冬節、亞歲,二十四節氣之第二十二個節氣、八大天象類節氣之一,與夏至相反。冬至日是北半球一年中白晝最短之日,冬至一般都在陽曆12月21日或12月22日,農曆用冬至所在月來定義十一月。冬至日亦是北半球(北回歸綫以北)一年之中白晝最短,黑夜最長之一日,北極圈呈永夜狀態,南極圈呈極晝狀態。冬至之後陽光直射位置開始向北移動,北半球白晝時數日漸增長,正午太陽高度也日漸升高,日影逐漸縮短。冬至雖然是北半球理論上吸收太陽熱量最少的一段時間,但因爲地球土壤跟海洋釋放熱量會有時間延遲,大部分情况下最冷的時期不是冬至前後,而是發生在冬至之後,比如說大寒。 氣象臺發布了寒冷預警信號,夜晚的街道,寒風凜冽,人迹稀少,路上偶有行人也是脚步匆匆,大家都急著想要回到溫暖的家,天橋下面流浪人士蜷縮著身體用紙皮蓋在身上禦寒。老人拿著幾個ldquo;塔香rdquo;,像往常一樣,來到樹下點燃,注視著ldquo;塔香rdquo;燃燒時升起的烟,老人口中念著ldquo;嗡阿吽hellip;hellip;嗡阿吽hellip;hellip;rdquo;如此簡單的ldquo;烟供rdquo;,却能在寒冷的冬天爲一切有情衆生輸出溫暖,送上飯食。 寒冬來臨,古時農民都會藏糧過冬,現代人也會在冬天選擇進食高熱量的食物,以便身體有足够能量抵禦風寒。但是,在另一個世界的六道衆生,却依然飽受饑餓,如同在世界很多地方,依舊有很多人吃不飽穿不暖。我們在勝似新年的冬至之日,我們在享受溫暖和飽腹的時候,爲另一個世界的六道衆生做一次ldquo;晚間烟供rdquo;:帶上塔香、米、水、餅乾(麵包)、藥材等,在陽臺、在樹下、在河邊等地,用小碟子把乾糧裝起來,把乾糧點燃,把塔香點燃,默念ldquo;嗡阿吽hellip;hellip;嗡阿吽hellip;hellip;rdquo;,冥想撒出去的米水、燃燒的乾糧轉變成米飯食物,六道衆生爭相搶食hellip;hellip;形式不重要,發心是關鍵,古有冬至之日祭祀祖先,今有冬至之日晚間烟供,感恩我們目前擁有的一切,爲六道衆生送上一份慈悲心,讓它們獲得飽腹的糧食,讓自己遠離一切顛倒是非,用大愛讓衆生脫離小愛的痛苦。

秋分,又是佈施好時節
宗教玄學
熊神進・2023-09-23

筆者昨晚服了一些前列腺藥,起床時,打「脈七輪」,感到頭昏昏,錯過了享受二十四節氣的自然陽光。 很多人都知道秋分日是全球晝夜等長, 秋分之後,北半球各地白天漸短,夜間漸長,南半球各地相反,大自然很有意思。 有什麼意思? 筆者不是詩人,沒有詩人悲秋情懷;筆者也不是務農,沒有農民入秋後團在一起的優閑,筆者只是一位過客, 在人生中感恩大地的寬容, 跟眾生平行空間,遠離是非顛倒的煩惱, 更不想墮落小愛中受苦。 小城入夜,一切都淒淒,失落的男女在河堤呆坐,等待另一知心人出現;戀愛中的男女, 甜言蜜語, 把山河也變是愛河;遠遠看到車道上的高人, 有人為了簽好一份合約, 加速回家找妻子慶祝, 有人剛剛下班, 耳窩裡還留住領導的咒駡。在樹木陰涼的小橋下,我看到一個白髮滿頭的男人,他在做「煙供」。 什麼是煙供? 煙供, 簡單一句就是「上供下施」, 「下施」是晚間做的, 7pm11pm 做, 是「財佈施」, 11pm 後至淩晨7am 是「法佈施」, 老人做的, 是「法佈施」, 「財佈施」和「法佈施」有什麼不同, 日後我再另文說法。 煙供,就是我們晚上拿幾個「塔香」到樹下燒燒, 在燒的時候念「嗡阿嗡」, 其實是很簡單一件事, 問題是我們都沒有這正能量在秋分後給亡靈一口飯。 秋分夜長了, 夜愈長, 眾生就愈淒涼 , 一切有情眾生,六趣, 餓鬼 他她們在太陽下山後聚集在樹下,河邊, 有些力氣好的, 爬到屋脊, 在東南亞地區,尤其是馬來西亞, 中國臺灣的居民, 他們都有火供、煙供、水供、藥供等習俗,而在我們國家,煙供一直未能普及流行。 秋分,是做煙供的好日子,一起行大愛。少年積福, 中年修福, 老年享福。

家中為何要擺放壽星公?
宗教玄學
熊神進・2023-05-08

#沉香木壽星公#每個人都希望自己晚年健康長壽、幸福,而在中國人家裡最具代表長壽的風水擺件有幾款:1 松柏圖2 鹿、鶴圖3 仙桃圖4 壽星公一 壽星公 是誰?「壽星」最早期有天文記載的是天空南部的一顆很亮的恒星,叫「南極星」,「南極星」又叫「老人星」。現代天文學中的船底座alpha;星,是天空中亮度僅次於天狼星的恒星,也是南極最亮的星。秦始皇統一天下後,在長安附近杜縣建壽星祠,後壽星演變成仙人名稱。二 「壽星公」的形狀是怎樣?「壽星公」手捧壽桃,面露幸福祥和的笑容,象徵健康長壽。《西遊記》寫壽星公是ldquo;手捧靈芝rdquo;,長頭大耳短身軀。三 擺放時要注意什麼?1 在擺放時要高過宅主的頭頂,不可低於人的頭頂。2 向著自己屋內,不應向著屋外。3 不要靠近污穢的地方,如廁所附近,最好放置在南方。4 可以擺放客飯廳,如需要擺放睡房,請留言。5 壽星可以供奉在家中神位上。四 可以單獨擺放一尊「沉香木壽星公」?「壽星公」可以單獨擺放,亦可以「福祿壽」三星一起供奉,俗語說:ldquo;家供壽星公,一家長命中rdquo;。「壽星公」在氣場上能相互協調、相互提升,起到增福、增名、增壽的作用。五 為什麼我要請一尊「沉香木壽星公」?1 跟長輩一起住,很想一家人健康康康。2 自己年歲也不少,想自己長壽健康。3 家中供奉一尊仙家,這樣最能使老人吸收到壽星散發出的健康氣場。「壽星公」的材料可以用桃木、沉香、檀香、陶瓷等的材料,筆者今次介紹的材質是越南芽莊沉香木壽星公, 芽莊沉香是比較大眾化價格, 奇楠沉香的雕塑價格很貴, 動輒20萬一件。越南芽莊沉香木來自佛國, 工匠不犯貪,做一尊仙家, 2004年他收9美元, 之後筆者一直放在當地的廟裡供養, 吸取天地靈氣, 去年取了出來。「壽星」是天上南極壽星,「壽星公」是家庭供養的長壽仙,「沉香木壽星公」是開光的仙器,可以留給下一代, 福壽綿綿。