Hacker News 上对聋人的关注/拥抱
Hacker News Hug of Deaf

原始链接: https://susam.net/hn-bell.html

2022年4月,Susam Pal在看到Hacker News (HN)上关于DIY报警系统的讨论帖后,做了一个有趣的实验。他在自己的Debian服务器(susam.net:8000)上设置了一个简单的netcat循环,用于接受连接,并在每次连接时发送“ok”消息,关闭连接,并触发四声终端蜂鸣。 他将命令分享在HN的讨论帖中,邀请社区连接。这段单行代码使用`nc`处理连接,并使用循环异步生成蜂鸣声。 在接下来的24小时内,该实验收到了HN社区超过4761个连接,产生了19044声蜂鸣声。虽然数量不算巨大,但Pal发现看到人们发现并与他的项目互动很有成就感。他强调,计算并不总是关于解决问题,也可以是关于探索古怪的想法和享受过程。

一篇 Hacker News 帖子标题为“Hacker News拥抱聋哑人 (susam.net)”,在一小时内获得了 31 分和 5 条评论。该帖子很可能链接到 susam.net。评论者表达了他们的娱乐和惊讶之情。一位评论者 TonyTrapp 对其不起眼的评论出现在文章中感到兴奋。另一位评论者 pwagland 指出链接的网站无响应,并预测服务器活动将会增加。“nom”报告收到了“ok!”的回复,而“notpushkin”分享了他关于 HTTP/0.9 响应仍然在现代浏览器中起作用的 TIL 时刻。“Sonnigeszeug”认为机器人可能导致了流量增加。页面还包含标准的 Hacker News 链接和 AI 初创公司学校的推广信息。

原文

By Susam Pal on 05 Apr 2025

"It's essentially the Hacker News Hug of Deaf." – @TonyTrapp

About three years ago, I set up a tiny netcat loop on one of my Debian servers to accept arbitrary connections from the Hacker News (HN) community. The loop ran for 24 hours and did exactly three things whenever a client connected:

  1. Send a simple ok message to the client.
  2. Close the connection immediately.
  3. Make my terminal beep four times.

That's it! It was a playful experiment in response to a thread about quirky, do-it-yourself alerting systems for friends and family. See this HN thread for the original discussion. Here is the exact command I ran on my server:

while true; do (echo ok | nc -q 1 -vlp 8000 2>&1; echo; date -u) | tee -a beeper.log; for i in 1 2 3 4; do printf '\a'; sleep 1; done & done

The nc command closes the connection immediately after sending the ok message and runs an inner for loop in a background shell that asynchronously prints the bell character to the terminal four times. Meanwhile, the outer while command loops back quickly to run a new nc process, thus making this one-liner script instantly ready to accept the next incoming connection.

Soon after I shared this, members of the HN community began connecting to the demo running on susam.net:8000. Anyone on the Internet could use any client of their choice to connect. Here's how I explained it in the HN thread:

Now anytime someone connects to port 8000 of my system by any means, I will hear 4 beeps! The other party can use whatever client they have to connect to port 8000 of my system, e.g., a web browser, nc HOST 8000, curl HOST:8000, or even, ssh HOST -p 8000, irssi -c HOST -p 8000, etc.

In the next 24 hours, I received over 4761 connections, each one triggering four beeps. That's a total of 19044 terminal beeps echoing throughout the day!

Graph
Number of beeper connections received every hour

The data for the above graph is available in beeper.log. Now, 4761 isn't a huge number in the grand scheme of things, but it was still pretty cool to see people notice an obscure comment buried in a regular HN thread, act on it, and make my terminal beep thousands of time.

At the end of the day, this was a fun experiment. Pointless, but fun! Computing isn't always about solving problems. Sometimes, it's also about exploring quirky ideas. The joy is in the exploration, and having others join in made it even more enjoyable. Activities like this keep computing fun for me!

联系我们 contact @ memedata.com