What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

1
0
0
0
1
1

nogajun🍉 shared the below article:

How to Build a Simple ActivityPub Reminder Bot in Python

AmaseCocoa @cocoa@hackers.pub

This post guides you through building a simple ActivityPub bot in Python using the `apkit` library. The bot listens for mentions and schedules reminders for users. It covers setting up the project, generating cryptographic keys for secure communication, defining the bot's identity as an ActivityPub Actor, and initializing the `apkit` server. The tutorial walks through the core logic for parsing reminder commands, sending notifications, and defining necessary web endpoints like `/actor` and `/inbox`. It also details how to handle incoming activities, such as `Follow` and `Create` events, and how to run the application using `uvicorn`. While the example uses in-memory storage for simplicity, the post suggests improvements like persistent storage and robust task queuing for production environments. This tutorial provides a solid foundation for building more complex ActivityPub applications.

Read more →
15
1
0
0

今年我比較有跟親友的小朋友有頻繁的接觸,我發現⋯現在的科技雖然能更方便讓人取用,但一些科技後的默會知識,有心的家長以自己的身教影響到下一代,還是有明顯影響,階級就開始分化,沒有體會科技背後默會知識的家庭孩子,會被科技操控;反之,則會駕馭科技。

這個在接觸3C產品已經開始發生。

我覺得,花錢買個好一點的單機遊戲給孩子,好好「沉浸」,去受盡各種挫折,但經過奮鬥可以得到goal,這會是最重要的親子教養。

而不是放任他自己下載「免(ㄧㄚ)費(ㄆㄧㄢˋ)」手機遊戲,只是依靠運氣、新台幣刷寶(父母不給錢,在學校又被同學比下去),或者被抖音破壞寶貴的注意力培養。

0
1
0
0
0

今年我比較有跟親友的小朋友有頻繁的接觸,我發現⋯現在的科技雖然能更方便讓人取用,但一些科技後的默會知識,有心的家長以自己的身教影響到下一代,還是有明顯影響,階級就開始分化,沒有體會科技背後默會知識的家庭孩子,會被科技操控;反之,則會駕馭科技。

這個在接觸3C產品已經開始發生。

0
2

一部の報道では、当該の参政党の市議がトランスジェンダーの人数を質問することや、関連して「伝染する」といった表現に集中的に話題が集まっているようだが、あの市議の質問は、学校におけるLGBT教育がどのように・どれくらい・またどのような外部講師に委託されて行われているかを質問することとセットになっている。
だから私たちは、学校で「過激な/不適切な性教育」が行われているという、ありきたりな性教育バッシングの切り口の1つとして、トランスジェンダーやLGBTがここで使われているという可能性を理解しなければならない。
「避妊や性交について学校で教えるなんてとんでもない」という時代は、避妊や性交について教えることが「過激さ」の根拠とされ、性教育バッシングに使われた。そうした時代が変わり、それら避妊や性交について学校でも教えることの必要性が社会に浸透していけば、今度は「性自認」や「LGBT」について教えることが「過激さ」の根拠として新しくターゲットに選ばれる。起きていることは昔から変わっておらず、だからこの話題をトランスジェンダーへの差別という問題枠組みだけで議論すべきではない。

0

마음을 치유하는 자기긍정 습관들

1. 거울 보며 내 장점 3가지 말하기
2. 실수해도 너무 자책하지 않기
3. 작은 성취에도 스스로 박수치기
4. 매일 일기장에 감사한 일 적어보기
5. 내 감정을 존중하고 인정하기

0
0
1
1
1
0
0
1
0
0
0
1
0
0
0
1
1
0
1

洪 民憙 (Hong Minhee) shared the below article:

How to Build a Simple ActivityPub Reminder Bot in Python

AmaseCocoa @cocoa@hackers.pub

This post guides you through building a simple ActivityPub bot in Python using the `apkit` library. The bot listens for mentions and schedules reminders for users. It covers setting up the project, generating cryptographic keys for secure communication, defining the bot's identity as an ActivityPub Actor, and initializing the `apkit` server. The tutorial walks through the core logic for parsing reminder commands, sending notifications, and defining necessary web endpoints like `/actor` and `/inbox`. It also details how to handle incoming activities, such as `Follow` and `Create` events, and how to run the application using `uvicorn`. While the example uses in-memory storage for simplicity, the post suggests improvements like persistent storage and robust task queuing for production environments. This tutorial provides a solid foundation for building more complex ActivityPub applications.

Read more →
15
1
0
0

OM-5 Mark IIさん、あんまり考えないでもよしなにいい写真に仕上げてくれるなぁ(塗り絵はしない)って眺めてたらプログラムモードのとなりにオートモードってもっとお任せっぽいのを見つけて試したらパッケージのイラフトで顔を検出して、たぶんフォーカスと露出と合わせてくれたw

0
0
0
2

物品調達で規格合致してる品を買って表記の性能がでなければメーカのせいにできるけど、低グレード品のマージンを利用しようとした場合に万が一NGだったら物品選定の責任になるからなぁ、というアレ 個人事業レベルとかそういうのなら全然アリだと思う安いは正義

0
8
0
0

🌗 研究顯示:大麻使用與罹患第二型糖尿病風險升高近四倍有關,涵蓋逾四百萬名成人
➤ 警示:大麻使用者罹患第二型糖尿病風險顯著增加
medicalxpress.com/news/2025-09
一項針對超過四百萬名成人進行的分析,發現在歐洲糖尿病學會年會上發表的研究結果顯示,大麻使用者罹患第二型糖尿病的風險幾乎是未使用者的四倍。該研究利用了超過五十四個醫療機構的電子健康紀錄,並針對年齡、性別及潛在疾病進行了嚴格配對,後續追蹤五年。儘管研究承認尚需更多深入探究,但初步發現與胰島素阻抗及不良飲食習慣可能有關,並強調了將大麻使用的代謝風險納入公眾健康宣導與醫療諮詢的重要性。
+ 這項研究結果令人擔憂,尤其在大麻使用日益普及的情況下。醫療專業人員確實應該更主動與患者討論大麻使用對代謝健康的潛在影響。
+ 雖然研究顯示相關性,但仍需更多證據證明大麻是直接導致糖尿病的原因,而非其他未被測量到的因素。不過,作為預防措施,提高警覺是必要的。

0
0
0
1
0