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
1
0

I want to join the call for justice for Renee Nicole Good, the woman who was murdered today by ICE thugs in Minneapolis...

But true justice would mean not being shot and killed by fascists for no reason in the first place. There's nothing just about this situation and there never will be.

I don't ask for justice.

I want accountability for every crime committed by ICE and for the corrupt politicians who directed them.

0
0
0
1
0
1
0
0

I dunno, opposing fascism is dangerous. Anyone who tells you otherwise doesn't understand what fascism is. The line between what is legal, and illegal, shifts considerably under any fascist regime over time, and their justice systems (funny word there) are both punitive and retroactive. They are probably already going to beat the shit out of you and throw you in prison on a long enough timeline for shit you've already done.

Opposing fascism is dangerous. It's also necessary. Just how it be.

0
0
0
0

“윤석열, ‘사형’ 훈장으로 여길 것”…서울대 로스쿨 교수 경고 n.news.naver.com/mnews/articl... 한 교수는 12·3 내란사태와 윤 전 대통령을 강하게 비판해 온 형사법 전문가로, 대표적인 사형제 폐지론자다. 사형이 윤 전 대통령에게 ‘순교자 서사’를 부여하는 부작용을 낳을 수 있다는 점도 문제점으로 꼽힌다. “다만 법정-실질 최종형이 무기징역 미만으로 내려갈 때는 분노 경악할 이유가 충분하다고 생각한다"

“윤석열, ‘사형’ 훈장으로 여길 것”…서울대 로스쿨 ...

0
0
1
0
0
0

Today I pushed a small fix for mtw: the MediaTek MT7601U USB WiFi driver in FreeBSD.

The issue: driver worked perfectly on first boot. Connect the adapter, it initializes, you're online. Great. Then you reboot your machine and... nothing. "timeout waiting for MCU to initialize." The only fix was to physically unplug the adapter and plug it back in, or do a full cold boot (power off completely).

The root cause was a state machine transition problem. When you do a warm reboot, USB devices don't lose power - they just sit there, happily retaining whatever state they were in. The MT7601U's microcontroller still had its "ready" flag set from the previous session. So when the driver came back up and checked "is firmware already running?", the device said "yep!" and the driver said "cool, nothing to do" and returned early.

Except the device wasn't actually ready. It was in a Schrödinger state - simultaneously "ready" and "not ready" until you observe it by trying to actually probe it, at which point the wavefunction collapses into "definitely broken." Technically powered, firmware loaded, flags set, but not actually functional.

The fix was straightforward: if we detect the MCU is already marked ready at attach time, assume it's stale state from a previous session, reset the MCU, clear the ready flag, and do a proper initialization from scratch. Force the cat to be alive.

Also added USB re-enumeration on attach and bumped some timeouts because these devices can be slow after a reset.

What's funny about driver development is that progress isn't linear. You find and fix a bug in hardware revision 1 and 2. Revision 3 ships and works perfectly - they must have fixed it in silicon, you think. Then revision 6 manufactured a year later shows up with the exact same bug. Different fab? Cost reduction? Recycled design from a different product line? Who knows.

You end up maintaining a mental map of "this chip from this date range has this quirk, but the same chip from that date range doesn't, except if it's from this OEM who used a different reference design."

And the datasheets - when they exist - are always for the "ideal" version of the hardware that exists only in the minds of the engineers who wrote them.

Anyway, if you're running FreeBSD with an MT7601U adapter and wondered why you had to unplug it after every reboot, this one's for you.

0
1
1
0

Good news:
My Zaurus blog post got on OSNews! Cool!
Bad news:
The RSS on my site is broken!

For some reason, Zola (the site gen I use) doesn't seem to build the RSS feed when I'm on OpenBSD. It works fine on Linux. I don't have time to figure that out right now, but I will ASAP.

Here's a short blog post about my move: goldfishdev.net/posts/movingth

Special thanks to @OpenBSDAmsOpenBSD Amsterdam and httpd(8)!

0
0
2
1
0
0
2
1
0
1
0
0
0
2
0
0
0
0
0
0
1
從Gemini的分析看起來,台灣沒有變成另一個「香蕉共和國」是被許多因素影響,而不單單只是美援。當然也有可能只是運氣好
https://zh.wikipedia.org/zh-tw/%E9%A6%99%E8%95%89%E5%85%B1%E5%92%8C%E5%9C%8B
台灣之所以沒有演變成「香蕉共和國」,最關鍵的轉捩點在於 1950 年代成功的土地改革。與多數拉美國家由大地主與外國企業壟斷資源的結構不同,台灣透過「耕者有其田」等政策拆解了地主階級,並迫使地主資本轉向工業投資,這從根本上避免了少數特權階級把持國家經濟命脈。此外,當時的美援性質並非單純的物資給予,而是建立在冷戰前哨站的戰略考量下,透過「農復會」等專業機構,將資金精確投入基層建設與農業技術改良,為後來的工業化奠定了穩固基礎。
在經濟轉型策略上,台灣政府並未長期依賴單一農產品出口,而是靈活地執行「以農業培養工業」的方針,迅速從初級加工轉向出口導向的工業化。加上日本殖民時期留下的基礎設施與普及教育,使得台灣擁有一批具備技術素養的勞動力與充滿活力的中小企業群。這種分散且具韌性的經濟結構,配合當時政府因面臨生存威脅而產生的改革壓力,讓台灣成功跳脫了受外國資本高度操控的單一農業經濟,最終走上科技密集與民主化的道路。
上述論述的根據主要源於「發展型國家」理論與多項權威性的歷史經濟研究。首先,關於土地改革如何轉化社會結構,主要依據經濟學家安斯登(Alice Amsden)的研究,她指出台灣透過拆解地主階級,成功將資本導入工業領域,避免了拉美國家常見的資源壟斷;而尼爾·傑考比(Neil H. Jacoby)在《對華援助的評價》中則詳盡論證了美援的特殊性,指出當時的援助並非盲目撒幣,而是透過「農復會」等專業機構,將資源精確地轉化為台灣的電力、交通與農業基層組織,這與美國在拉丁美洲與獨裁企業勾結的模式有本質上的差異。
其次,政治學家艾文斯(Peter Evans)提出的「國家自主性」理論,解釋了當時政府因其外來政權的特殊背景,得以不受在地既得利益團體制約,展現出極強的政策執行力來推動產業轉型。結合經濟史學家劉進慶對日治時期基礎設施與普及教育遺產的分析,以及薩繆爾·杭廷頓對制度化穩定社會的觀察,這些學術基礎共同勾勒出台灣如何藉由制度改革與戰略轉向,跳脫單一農業經濟的陷阱,並在國際地緣政治的夾縫中,成功由傳統農業社會蛻變為現代化工業國。
0
1
0

I haven’t seen this discussed and it confuses me: companies tend to avoid tricky licenses like (A)GPLv3 for legal reasons. Why is there no hesitation to using LLMs to generate code, when we still don’t know whether that is fine under copyright law?

Training an LLM has been ruled fair use in the US. I am not aware of a ruling whether that applies to using it. And if the output of the model isn’t a copyright infringement of the input, then the output cannot be copyrighted because it was not created by a person. So AI-generated software cannot be copyrighted.

en.wikipedia.org/wiki/Monkey_s

0

Hawaiian Telecomがハワイ州はアメリカで最初の「fully fiber-enabled」な州だってコマーシャルしてて「fully」ってどういう尺度?って検索してみたら「Hawai‘i’s households and businesses」って全員ぽい。舗装路から遠く離れた丘の上とかに商用電源の通じてない家とかあった気がするんだけどそういう場所まで光ファイバーを敷設しますよってことなのかな?だとしたらすんごいことだなあ…(僕は何か見落としてそう)

Hawai‘i to Become the First Fully Fiber-Enabled State by 2026 (2025年1月づけ)
https://blog.hawaiiantel.com/connections/hawaii-to-become-the-first-fully-fiber-enabled-st

0
0
0