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

[郝龍斌提網軍介選 羅智強籲追究、張亞中指應退選⸺中央社](cna.com.tw/news/aipl/202510110)

"郝龍斌日前指出,鋪天蓋地的網軍散布不實謠言攻擊他,他受到的攻擊,超過所謂民進黨「1450」的戰力。中廣前董事長趙少康今天表示,黨主席選舉是國民黨家務事,卻引起中國排山倒海的介入,希望中國官方制止,如果中國官方縱容就是介入,這已是國安問題,國安單位應調查。"

//郝龍斌已經夠親中了吧,結果共產黨還看不上眼。

0
1

看到網路上有人分享「旺旺ジャパン」生產的鳳梨酥產品,看了心情很複雜。
官方網頁使用著台灣的名字、台灣的意象、在日本賣著台灣的名,而在台灣當地卻使用著媒體資源攻擊著台灣政府、編造著虛假不實的報導唱雖台灣、宣揚台灣的爛。
是有多精神分裂?
wantwant.co.jp/pineapplecake/

0
1
0

@silverpill it looks like my mitra instance cannot follow the relay using AodeRelay. I see some error messages in the logs.

Oct 12 05:03:03 grassland mitra[1880146]: 2025-10-12T05:03:03 mitra_activitypub::queues [INFO] delivering activity to 1 inboxes: {"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1",{"Emoji":"toot:Emoji","EmojiReact":"litepub:EmojiReact","Hashtag":"as:Hashtag","litepub":"http://litepub.social/ns#","sensitive":"as:sensitive","toot":"http://joinmastodon.org/ns#"}],"actor":"https://moon.lonewolf.zone/users/followbot","id":"https://moon.lonewolf.zone/activities/follow/0199d655-f659-3d21-bd61-1fd771736447","object":"https://relay.synth.download/actor","proof":{"created":"2025-10-12T02:53:01.917253640Z","cryptosuite":"eddsa-jcs-2022","proofPurpose":"assertionMethod","proofValue":"z2xPPCkL8WiCDZu7BcFMJpMZVFtgDMZk8V5ysvDYyxNdnx3N8e4VCA8eYPAa6X8HKWaPNEkiPBAWWk4jGaQimErVa","type":"DataIntegrityProof","verificationMethod":"https://moon.lonewolf.zone/users/followbot#ed25519-key"},"to":["https://relay.synth.download/actor"],"type":"Follow"}
Oct 12 05:03:13 grassland mitra[1880146]: 2025-10-12T05:03:13 mitra_activitypub::deliverer [WARN] failed to deliver activity to https://relay.synth.download/inbox: error sending request for url (https://relay.synth.download/inbox): operation timed out

sometimes it returns 400 error.

Oct 12 05:02:35 v2202502232422317350 mitra[1880146]: 2025-10-12T05:02:35 mitra_activitypub::deliverer [WARN] failed to deliver activity to https://relay.synth.download/inbox: HTTP error 400: [400]
0
0
1
2

수학자는 기억력 좋아야하는데 나는 그냥 추상감각만 높이서... 특정 상황들 기억하고 공식이나 상세풀이 기억못하니까 너무 괴롭다.
감각이 좋아서 풀이를 찾아도 하아아아아안참 다시 자료 뒤져야해

0
0
1

Lavandula - C로 웹 프레임워크를 만들었어요
------------------------------
-
Lavandula 는 *C 언어 기반의 경량 웹 프레임워크* 로서, 현대적인 웹 애플리케이션 개발을 위해 설계됨
- *직관적이고 빠른 개발 환경* 을 제공하며, 불필요한 기능 없이 *생산성과 성능* 에 중점을 둠
- *컨트롤러/라우팅 시스템, 미들웨어 파이프라인, 테스트 프레임워크, SQLite/JSON 라이브러리* 등 …
------------------------------
https://news.hada.io/topic?id=23564&utm_source=googlechat&utm_medium=bot&utm_campaign=1834

0

Fedibird赤字ゼロチャレンジ2025ですが、2025年10月19日で終了です。

さて現状ですが、

Fedibird Infrastructure
444,390円

Fedibird Project
469,438円

合計
913,828円

となっています。

インフラもプロジェクトも目標が100万円になっていますが、合計で100万円を目指しております……あと……あと少しです!

今回の取り組みはいわば、Fedibirdぐらいのサーバなら、みんなで支援すれば支えられる、というチャレンジです。ご支援よろしくお願いします。 [参照]

0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
2
0
1

@mcc it looks like it's because you're left joining the users table, which makes those columns nullable and not necessarily present on the output table. there are diagnostics in your unmodified code for e.g. "cannot select `avatar` from `fedivote_common::db::sessions::table`", "Note: `avatar` is no valid selection for `fedivote_common::db::sessions::table`", etc.

it doesn't seem like there's a way to very easily select an `Option<User>` either, not sure why it can't helpfully cascade nullability to each of the selected fields from that table... but it doesn't seem to do that. you can write this by specifically selecting all the fields you care about and then just use those at least

@mcc
```patch
<+>UTF-8
===================================================================
diff --git a/server/src/session.rs b/server/src/session.rs
--- a/server/src/session.rs (revision d8ee9d53c2fd7a01e6e2fbdddc971b7200480386)
+++ b/server/src/session.rs (date 1760236973979)
@@ -53,32 +53,38 @@
}

// Can impact db
-pub async fn get_session(cookies: &CookieJar<'_>, mut conn: Connection<Db>) -> Option<CurrentLogin> {
- if let Some(token) = get_session_token(cookies) {
- use rocket_db_pools::diesel::prelude::*;
- let filter = db::sessions::table
- .left_join(db::users::table)
- .filter(db::sessions::id.eq(token as i64));
+pub async fn get_session(
+ cookies: &CookieJar<'_>,
+ mut conn: Connection<Db>,
+) -> Option<CurrentLogin> {
+ let token = get_session_token(cookies)?;
+ use rocket_db_pools::diesel::prelude::*;
+ let filter = db::sessions::table
+ .left_join(db::users::table)
+ .filter(db::sessions::id.eq(token as i64));

- let user_row = filter.select(db::User::as_select())
- .load(&mut conn)
- .await;
+ let user_row = filter
+ .select(
+ (
+ db::users::dsl::username,
+ db::users::dsl::server,
+ db::users::dsl::avatar,
+ )
+ .nullable(),
+ )
+ .load(&mut conn)
+ .await;

- match user_row {
- Ok(v) => {
- let v = v[0];
- let () = v;
- Some(CurrentLogin {
- username: v.username,
- server: v.server,
- avatar: v.avatar
- })
- }
- e => None // TODO: Report? Clear cookie? Do anything?
- }
- } else {
- None
- }
+ // TODO: handle error here instead?
+ for row in user_row.ok()? {
+ let (username, server, avatar) = row?;
+ return Some(CurrentLogin {
+ username,
+ server,
+ avatar,
+ });
+ }
+ None
}

// Impacts db
```

0

I do not envy the translators who had to deal with expressing the part of this story where the characters are struggling to read documents originally in English that were machine translated to Japanese

0
1
0
1
0
1

『This Is for Everyone』ようやく聞き終えた。Steve Jobs 氏とは、Tim Berners-Lee 卿は会えてなかったんだな……なんかそこが妙に切なかった。あと結構 SNS とか Mastodon に言及してたので、Web の歴史ひっくるめてそっちに興味がある人は読んだり聞いたりしたらいいと思う。

Order This Is For Everyone by Sir Tim Berners-Lee thisisforeveryone.timbl.com/

0

US lawmaker urges accountability for war crimes committed

Democratic Congresswoman Summer Lee has hailed the Gaza ceasefire as “a critical step to ending the genocide, surging aid, and reuniting Palestinian and Israeli families”.

“We owe it to every Palestinian killed, every home and hospital destroyed, to demand accountability for the war crimes committed, and we must keep pushing for an end to the occupation,” she wrote on X.




0

Deadly 2023 Israel attack on journalists in Lebanon a war crime

A United Nations rapporteur says an Israeli attack on southern Lebanon on October 13, 2023 that killed a journalist and wounded others was a war crime.

The attack killed Reuters journalist Issam Abdallah and wounded six others including AFP news agency’s Dylan Collins and Christina Assi, who had to have her right leg amputated.

The Israeli military has denied that it targets reporters.



0
0
0
0
0
0
0
0
0
0
0