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

かねひさ和哉 (@kane_hisa) on X
今のSNSは企業や著名人がマイノリティへの配慮を表明すると(残念ながら)相反する立場の方から半ば反射的な怒りの反応が殺到してしまうことが多く、「炎上」リスクや精神的な負荷を鑑みてほとんどの人々が萎縮してしまう状況なんだけど、そんな中でも声を上げる良心と勇気を持った方がいて嬉しい x.com/kane_hisa/status/1994785

0
0
0

Edit: what's below is wrong -- the workflow on @b0rk_rerunsJulia's Reruns Bot's "Oh Shit, Git" site is indeed symmetric for making a commit to the wrong branch. I'm considering a PR to clarify that.

For posterity, my erroneous question is below. I think I got confused because, in the second example, I wasn't switching branches the way I thought I was...

--------------------

Git folks: I'm looking at @b0rkJulia Evans's Oh Shit, Git thing for when you commit to the wrong branch and want to move the top commit elsewhere.

For a commit to main, you have:

# create a new branch from the current state of master
git branch some-new-branch-name

# remove the last commit from the master branch
git reset HEAD~ --hard

# move to the new branch
git checkout some-new-branch-name

That works. But if the original branch isn't main, it doesn't. I don't understand why: main is just another branch, right?

When I do the above while on the topic1 branch, the commit just goes away. (Well, it's in the reflog.) Why didn't it do that when I was on main?

0
1
0
0
0
0
1
1
0
1
1

はいお待たせ今日も歯ァ~ごしごし! 歯ァ~~~ごしごし! ああ上ですか奥歯ですか!! さあ下ですか前歯ですか!! 全歯ですか歯ァッ歯ァ抜きますか! 歯ァ~ごしごし! ごしごしごしごし! ゴリゴリ歯ァゴリ! ポロ!!!! 抜歯!!! バシバシ抜歯!!! 自宅で抜歯ひたすら抜歯!!! 抜けてもごしごし!! 抜けた歯ごしごしアァ~~ごしごし!! 歯単体ごしごし削れごしごし! 舌のうえゴシゴシ!!! 喉を突き突き!! 出血!!! 出血無視無視!! 痛みとごしごし!! 突き!! 嗚咽!!! 駆け抜けろごしごし!!! さあブクブクです出しますか! 泡だしますかブクブクペッポロッッ!! 抜歯! また抜歯! 勝手に抜歯しぬほど抜歯! バシバシ抜歯! まだ歯ァありますか! まだ歯ァありますな! じゃあ抜きますか! 歯ァオール抜きますか!! 抜きつつごしごし!! じゃあごしごし! じゃ~歯ァごしごし!! やれおらごしごし!! いまだ!!!!!

:siage_ha_okaaasaan_heart:

1
0
1
0
0
0
1
0
0
1
0

I picked up a Home Assistant Green to replace my broken RPi3 Home Assistant box last holiday season. After a year of using it, it's been stable and an excellent addition to my

We had to replace our washing machine this year, and it has Home Assistant integration, which is pretty cool. I haven't quite figured out what to do with this data, but I'm debating flashing something on our TV or changing one of the bulbs' colors so that I see it.

Screenshot of my Home Assistant setup featuring my Dryer with various options like run cycles and remaining time left.
0
1
1

OwnCast is a Fediverse alternative to Amazon's Twitch. It's a livestreaming platform with built-in chat. You can chat without an account, or use your Mastodon etc account to verify your chat identity. Lots more info here:

➡️ fedi.tips/owncast-live-streami

If you'd like to try it out, there's a good livestream right now at:

➡️ stream.labr.online

You can follow streams from Mastodon etc and they will post in your timeline when they go live. e.g. You can follow this stream at @video

0
0
0


日:局所変数,大域変数,有効範囲
韓:지역 변수(地域變數), 전역 변수(全域變數), 변수 영역 (變數領域)
英:local variable, global variable, scope
台華:局部變數、總體變數(資訊學會譯法,不是中國影響的「全局變數」)、範疇(後來受中國影響用「作用域」)

1

FreeBSD 15.0 (almost)-RELEASE, using pkgbase, on my Ryzen 9 MiniPC (and compared to openSUSE Tumbleweed):

- Full disk encryption works beautifully via GELI, as usual.

- Installing KDE is easy and it works perfectly on Wayland.

- All my main apps work. Others will run via the Linuxulator or Wine (Linux browsers, WinBox for MikroTik, etc).

- The fan seems more relaxed.

- The system generally feels snappier.

- Native ZFS. I can autosnapshot every 5 minutes. If I try to do this with btrfs - snapshots of the home directory included and quotas enabled - the system hangs while handling them (which is why Tumbleweed doesn’t snapshot home by default).

- The media keys on my keyboard work, but volume control uses huge steps and 30 percent is already extremely loud. This can be fixed. The monitor brightness setting is also a bit off, but I don't care.

- amdgpu works perfectly.

- The wifi card works. I haven’t tested the speed because I immediately installed the realtek-re-kmod driver to use the 2.5 Gbit ethernet connection.

- Suspend doesn’t work. This is a big problem for me. It’s probably more psychological than technical, but I can’t leave the computer powered for hours when I’m not using it. I already have servers running 24/7 here. I even considered putting my Qotom FreeBSD server in a VM. It would probably work, but next summer it might be an issue because temperatures here aren’t low and spinning disks don’t love heat (and I don’t love their noise).

- It’s stable and reliable. I’ve done almost everything and it just works, as expected.

- Some small glitches remain, mostly due to missing configuration or packages (I didn’t tune anything. I just installed it and started using it).

A much smoother experience than a year ago, when I bought it.

Will I keep using FreeBSD on this minipc?
I’m not sure yet, since Tumbleweed works great and the lack of suspend really influences my choice. I'll contact Aymeric and try to offer some help to improve this.

For now, I’ll keep it on an external SSD and switch from time to time, especially when I know I’ll be using the minipc for hours.

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