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.

"JARO=日本広告審査機構によりますと、去年4月からの半年間に寄せられたインターネット広告への苦情件数は4224件で、前年と比べて2倍余りに増え、上半期で最も多くなりました。"

インターネット広告 苦情が過去最多 性的な広告の苦情 大幅増 | NHKニュース | IT・ネット news.web.nhk/newsweb/na/na-k10

0
0
0
1
1
1

파나소닉은 지금도 갖고 있고, L마운트도 써 보고 싶은 카메라지만 한국에서 쓰기엔 사후지원이 좀 걱정되긴 함... 여러 대 쓰는 프로라면 괜찮은데 한 대만 운영한다면 좀 그렇지.

0
1
1
0
0
1

Looking for a new laptop. Has to run FreeBSD, all I need is PIM+email, terminal, browser. However, I’ve been spoiled by my MacBook Air’s battery and suspend/resume. Anything with 6+ battery life is okay. Doesn’t have to be x86.

Any suggestion is welcome.

0
0
0
0
0
0
0
1
0

我跟我朋友說我在伊斯坦堡的時候看到幾個當地人不知道開車去哪裡接雪,整個車子都是雪然後開到空曠的馬路開始玩丟雪球。我朋友就說在德國這種事情不太會發生,因為讓車子全是雪會被罰款,畢竟德國人開車很快,這樣有視線障礙的時候會很危險😵

0
1
1
0
0
1
0
0
0
1

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

캐논 R8을 한 2년 썼는데, 왜 캐논이 많이 쓰이는지, 그만큼 싫어하는 사람들도 많은지 조금은 알 거 같다. 무난하다는 말도 맞고, 초보자와 숙련자 모두에게 잘 대응하고, 편리하고 잘 조율되어 있지만, 유저/외부 솔루션을 지독하게 믿지 않는 메이커. 우리가 마련한 안전한 작업장에서 설정해드린 범위 내에서만 쓰세요, 같은 느낌. 급나누기 심하다는 평가도, 이 정도 유저에게는 이 정도 기능이면 된다는 메이커의 판단을 우선한 것. 답답한 면이 있지만, 시간과 노력을 (돈은 들지만ㅋㅋ) 많이 아낄 수 있기도 하다.

0
1
1
0
0
0
0
1
0
1