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.

0
0
1
0
0
0
0
0
0

This year, Creative Commons became an official UNESCO NGO partner (consultative status) and launched its Open Heritage Statement, two huge steps forward in our work to make culture accessible to everyone and preserve it for future generations.

This momentum shows what’s possible when we work together. But we need you to keep it going. Join the effort with a gift today.

classy.org/give/313412/#!/dona

Image: “Museum” by Karen_O’D, CC BY 2.0, Flickr.

0
사람 이름이 브랜드가 된 것들 몇 가지.
엔초 페라리
페루치오 람보르기니
조 말론
마크 제이콥스
코코 샤넬
잔니 베르사체
루이 비통
마리오 프라다
이브 생 로랑
티에리 에르메스
샤를 달로와유
피에르 발망
마틴 (메종)마르지엘라
크리스토발 발렌시아가
----
보테가 베네타 = 이탈리아 베네토의 비첸자에서 미켈레 타데이, 렌조 젠지아로가 만듬
몽블랑 = 알프레드 네헤미아스, 아우구스트 에버스타인이 함부르그에서 만듬
포레 르 파쥬 = 루이스 피니가 전쟁 무기용 회사로 시작한 명품(???) 브랜드
0
0
0
0

the UNIX v4 tape reminded me of this story by Ali Akurgal about Turkish bureaucracy:

Do you know what the unit of software is? A meter! Do you know why? In 1992, we did our first software export at Netaş. We wrote the software, pressed a button, and via the satellite dish on the roof, at the incredible speed of 128 kb/s, we sent it to England. We sent the invoice by postal mail. $2M arrived at the bank. 3-4 months passed, and tax inspectors came. They said, “You sent an invoice for $2M?” “Yes,” we said. “This money has been paid?” they asked. “Yes,” we said. “But there is no goods export; this is fictitious export,” they said! So we took the tax inspectors to R&D and sat them in front of a computer. “Would you press this ‘Enter’ key?” we asked. One of them pressed it, then asked, “What happened?” “You just made a $300k export, and we’ll send its invoice too, and that will be paid as well,” we said. The man felt terrible because he had become an accomplice! Then we explained how software is written, what a satellite connection is, and how much this is worth. They said, “We understand, but there has to be a physical goods export; that’s what the regulations require.” So we said: “Let’s record this software onto tape (there were no CDs back then—nor cassettes; we used ½-inch tapes) and send that.” Happy to have found a solution, they said, “Okay, record it and send it.” The software filled two reels, which were handed to a customs broker, who took them to customs and started the export procedure. The customs officer processed things and at one point asked, “Where are the trucks?” The broker said, “There are no trucks—this is all there is,” and pointed to the tape reels on the desk. The customs officer said, “These two envelopes can’t be worth $2M; I can’t process this.” We went to court, an expert committee examined whether the two reels were worth $2M. Fortunately, they ruled that they were, and we were saved from the charge of fictitious export. The same broker took the same two reels to the same customs officer, with the court ruling, and restarted the procedure. However, during the process, the unit price, quantity, and total price of the exported goods had to be entered—as per the regulations. To avoid dragging things out further, they looked at the envelope, saw that it contained tape, estimated how many meters of tape there are on one reel, and concluded that we had exported 1k to 2k meters of software. So the unit of software became the meter.

@joomy

I once read a story about the people writing the software for the NASA Apollo missions. There was a functionary in charge of weight accounting, who came to them and asked how much the software would weigh.

They told him it weighted nothing, but the functionary had heard *that* one before and insisted—everything had to be accounted down to the last ounce. He demanded to see it.

They showed him a stack of punched cards, and he was triumphant. “You see,” he said smugly, “it doesn't weigh only ‘nothing’!”

“No, you misunderstand,” they replied. “The cards aren't going on the spacecraft. Only the holes.”

0
0
0

the UNIX v4 tape reminded me of this story by Ali Akurgal about Turkish bureaucracy:

Do you know what the unit of software is? A meter! Do you know why? In 1992, we did our first software export at Netaş. We wrote the software, pressed a button, and via the satellite dish on the roof, at the incredible speed of 128 kb/s, we sent it to England. We sent the invoice by postal mail. $2M arrived at the bank. 3-4 months passed, and tax inspectors came. They said, “You sent an invoice for $2M?” “Yes,” we said. “This money has been paid?” they asked. “Yes,” we said. “But there is no goods export; this is fictitious export,” they said! So we took the tax inspectors to R&D and sat them in front of a computer. “Would you press this ‘Enter’ key?” we asked. One of them pressed it, then asked, “What happened?” “You just made a $300k export, and we’ll send its invoice too, and that will be paid as well,” we said. The man felt terrible because he had become an accomplice! Then we explained how software is written, what a satellite connection is, and how much this is worth. They said, “We understand, but there has to be a physical goods export; that’s what the regulations require.” So we said: “Let’s record this software onto tape (there were no CDs back then—nor cassettes; we used ½-inch tapes) and send that.” Happy to have found a solution, they said, “Okay, record it and send it.” The software filled two reels, which were handed to a customs broker, who took them to customs and started the export procedure. The customs officer processed things and at one point asked, “Where are the trucks?” The broker said, “There are no trucks—this is all there is,” and pointed to the tape reels on the desk. The customs officer said, “These two envelopes can’t be worth $2M; I can’t process this.” We went to court, an expert committee examined whether the two reels were worth $2M. Fortunately, they ruled that they were, and we were saved from the charge of fictitious export. The same broker took the same two reels to the same customs officer, with the court ruling, and restarted the procedure. However, during the process, the unit price, quantity, and total price of the exported goods had to be entered—as per the regulations. To avoid dragging things out further, they looked at the envelope, saw that it contained tape, estimated how many meters of tape there are on one reel, and concluded that we had exported 1k to 2k meters of software. So the unit of software became the meter.

0
0
0
0

Bikeshed color query

In Rust, I want to create a vector of length `size.x` and I want to initialize every member to a new object of type SmolBitmap. Is there a cleaner/more idiomatic/"better" way of doing it than

let mut visited:Vec<_> = (0..size.x).map(|_|SmolBitmap::new()).collect();

0
1
0
0

The other day I learnt that enabling syncookies in pf on OpenBSD lights up your server like a Christmas tree. Or in other words, it made the server respond to _every_ incoming tcp syn packet with syn/ack, making the bots scanning the internet think the port was open, even though the final ack would be dropped when rules were then evaluated. This increased scanning by a lot! Or so it seemed to me at least.

The reason for this experimentation was I got to experience what I think was a tiny syn-flood attack, and I was trying things to see what I could do to mitigate on my end.

I'll maybe write more about this after the holidays.

0
0

i wonder if anything wrote about that thing in the middle, like where it devolves into terrible abstract pseudosmart "thinking". what's that and why does it still recover into a good answer in the end

0
0
0

it's funny to read claude thinking mode output. when it works well, it's always - starts with a few paragraphs that directly make sense - starts writing down some concrete ideas and directions - ... - "the emerging framework centers on actionable insights..." - ... but somehow comes out good

0
0
0
0

Dare to be inconvenienced.

We have been trained to prioritize "seamless" experiences over ethical ones. But every convenience has a hidden cost, whether it is labor rights, environmental impact, or the erosion of privacy.

Efficiency is a metric for machines, not for a meaningful life. When we stop choosing products solely for their convenience, we reclaim our agency. We choose local over global, human over algorithm, and sustainable over instant.

What would happen if we stopped using services that do very little good for society, even if it means taking the long way around?

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
0
0
0
0
0

Friends, I feel like maybe :tootcat: should (nay, is meowally compelled to) toss a chunk into this:

.meow — Next Round gTLD Application

It sounds excellent. Any reason not to? (...aside from them using ... though at the moment, I can't even remember why Kickstarter has a red flag in my brain.)

(h/t to @FrozenTrout for drawing this to my attention, and to @HarenaHarena :ferret: :kfgreen: for drawing to my attention the fact that @FrozenTrout had drawn it to my attention ^.^)

0
0
0
0
0
0
0
0
0