HNHacker News
TopNewBestAskShowJobs

pzmarzly

1,667 karma · joined March 30, 2019

meet.hn/city/ie-Dublin

Socials: - github.com/pzmarzly

---

submissionscomments
pzmarzly··on Defragging my old Dell's UEFI NVRAM
A safer alternative could be to reset BIOS settings to factory defaults - that should reset NVRAM as well.
pzmarzly··on Docker limits unauthenticated pulls to 10/HR/IP from Docker Hub, from March 1
Does anyone recommend some pull-through registry to use? Docker Docs has some recommendations [0], but I wonder how feature complete it is.

I'd like to find something that:

- Can pull and serve private images

- Has UI to show a list of downloaded images, and some statistics on how much storage and bandwidth they use

- Can run periodic GC to delete unused images

- (maybe) Can be set up to pre-download new tags

IIRC Artifactory has some support for Docker images, but that seems like a big hammer for this problem. [1]

[0] https://docs.docker.com/docker-hub/image-library/mirror/

[1] https://jfrog.com/artifactory/

pzmarzly··on Fly To Podman: a script that will help you to migrate from Docker
Runs on demand, doesn't require root, can be nested, usually uses newer and simpler primitives (e.g. a few nftables rules in Podman vs iptables spaghetti in Docker). In my experience it is ~90% compatible with Docker. The author explains the practical differences in the blog post https://www.edu4rdshl.dev/posts/from-docker-to-podman-full-m...

It is usually easier to install - most distros ship relatively recent version of Podman, while Docker is split between docker.io (ancient), docker-ce (free but non in repos) and docker-ee.

Not everything is rosy, some tools expect to be talking to real Docker and don't get fooled by `ln -s docker podman`. But it is almost there.

Regarding Debian, just `sudo apt install podman && podman run -it debian` - see https://wiki.debian.org/Podman

pzmarzly··on Matrix Foundation to shut down bridges if it doesn't raise $100K
Only for mobile, no? Element X for desktop is still in development, last time I checked, and the old client is as bad as ever.

Element is the only piece of software where logging in and out (I don't want to be permanently logged in) proved to be too much of a challenge - I was regularly losing encryption keys on different devices.

pzmarzly··on Apple Debuts iPhone 16e
Regarding your first statement: yes, sadly.

Regarding your second one, I have some good news though: ASUS Zenfone 10 is smaller than iPhone 16 by 1.1mm x 3.5mm, Samsung S24 (base model) is 0.6mm x 1.0mm smaller, and Sony Xperia 5 V is only slightly bigger.

pzmarzly··on Apple Debuts iPhone 16e
I was considering Samsung Z Flip 6 or Motorola Razr 50 Ultra (sold as Razr+ in the US), but both are almost twice as thick as iPhone 13 Mini. That doesn't spark joy.
pzmarzly··on YouTube asks channel owner to verify phone, permanently overwrites personal info
It's 2025, and the split-brain world of Google vs YouTube vs AdSense accounts has still not been solved, and is only getting worse. It seems you need to be an expert in how Google backend is structured to get anything done on YouTube. To my understanding:

Google account: everyone knows what it is, your personal account. Unless you have GSuite, then nobody knows what it's meant to be and let you do.

YouTube account (channel): there is now a many-to-many relation between Google accounts and YouTube accounts, but they otherwise function pretty much like pre-Google+ YouTube accounts. You can even change the primary Google account of a YouTube account, that requires clicking a button and waiting for a week. Then there is this brand vs non-brand distinction, where you can convert from non-brand to brand, but not the other way around, and some stuff used to work only with one of these types. And I think nowadays there is some way to make a Google account without a (named) YouTube channel, if you're just a viewer that doesn't even comment or create playlists, but there is not much reason to do that.

AdSense account: A billing account, once again with many-to-many mapping to Google accounts, and also many-to-many [0] mapping to AdSense projects ("sites"). Requires unique billing details, and apparently unique address as well [1], but otherwise shouldn't do much.

So in the linked situation, I think editing Google account login info changed the AdSense account details, which is definitely unexpected. YouTube account was probably not the problem here, I suspect the author would have had same issue if they were selling ads on a website instead of YouTube channel, though of course you have to use different AdSense UI if you sell ads on Youtube vs on the web, which probably further complicates things.

Anyway, since it hit the frontpage of ~~Google's only working support channel~~ HackerNews, it will soon be solved (for that single creator only, probably).

The only good solutions to this mess seem to be to either make YouTube account a standalone thing (cutting AdSense from the picture, and using Google accounts only for authentication), or to decouple all the accounts and make links between them more configurable / clear. Anything in-between, and we get (waves hands) this.

But both of these solutions would also make it too clear where to cut if/when the Google antitrust process comes, which doesn't make me think it will happen anytime soon.

[0] https://support.google.com/adsense/thread/11680365/how-we-ca...

[1] https://old.reddit.com/r/PartneredYoutube/comments/17vb8w8/c...

pzmarzly··on LibreOffice 400M Downloads, and Counting
Same. Do you know some public and maintained (kept up to date) docker container for that usecase? I tried using https://github.com/vladholubiev/docker-libreoffice-pdf-cli and while it was exactly what I wanted, it hasn't been updated in ages, and its ancient version of LibreOffice rendered my docx docs wrongly. So I ended building my one-off updated version, but didn't publish it as I wouldn't want to be keeping it up to date as well.
pzmarzly··on Wild – A fast linker for Linux
Ever since mold relicensed from AGPL to MIT (as part of mold 2.0 release), the worldwide need for making another fast linker has been greatly reduced, so I wasn't expecting a project like this to appear. And definitely wasn't expecting it to already be 2x faster than mold in some cases. Will keep an eye on this project to see how it evolves, best of luck to the author.
pzmarzly··on Nix – Death by a Thousand Cuts
I assume OP tried to set it up in NixOS config file, instead of using some GUI (such as GNOME's nm-connection-editor).
pzmarzly··on Nix – Death by a Thousand Cuts
eduroam is not your everyday WPA{2,3}-PSK, it's WPA2-EAP. There are official shell scripts to provision certificates, but they only seem to work on major distros, and for some reason the eduroam website made different scripts for every university. Also, for most people this is their first (and last) experience with 802.1X, especially setting it up themselves.

In my experience few years ago, it was a pain to set it up on everything except macOS and iOS (which come with eduroam certificates preinstalled in their trust stores).

pzmarzly··on Nix – Death by a Thousand Cuts
I'm using Universal Blue now (Aurora, i.e. KDE flavour) and I'm very happy with it. With its large amount of pre-installed packages and drivers (including proprietary ones), I still didn't need to install any custom package (rpm-ostree) or otherwise modify the OS config (except for turning off SELinux in /etc/sysconfig/selinux). It's the most pragmatic distro I've used so far.

SaveDesktop[0] (saves flatpak apps and DE configs) and mise-en-place[1] (declarative shell environment manager) are making my installation backupable and quite reproducible (not to NixOS standards though).

For software that's not in flatpak, docker or mise, toolbox[2] and distrobox[3] are available for the rescue. Both work really well (toolbox seems better for CLIs, distrobox for GUIs), but all atomicity/declarativity is lost.

[0] https://github.com/vikdevelop/SaveDesktop

[1] https://mise.jdx.dev/

[2] https://github.com/containers/toolbox

[3] https://github.com/89luca89/distrobox

pzmarzly··on Nix – Death by a Thousand Cuts
> they are significant because Nix can be used to create a fully featured OS instead of just a VM

Look up Bootable Containers project by RedHat [0]. Fully featured OS built from a Containerfile, bootable on bare metal.

I agree that Nix design is much better than Docker, and has a bunch of features that OCI ecosystem doesn't (e.g. remote builds[1], partial downloading of the build tree, non-linear build process[2], nix store import/export, overlays, I/O isolation, much better composability), but "creating OS instead of VM" [did you mean container?] is not one of them.

[0] https://github.com/containers/bootc

[1] You can use DOCKER_HOST, and I'm happy that this option is there, but Nix does it better.

[2] Perhaps with BuildKit it's no longer true, I haven't checked what happens if you have multi-staged build with one stage depending on multiple previous ones (which are otherwise unconnected). I think Earthly can parallelize this scenario https://earthly.dev/

pzmarzly··on Fish 4.0: The Fish of Theseus
Interesting, I went the other way about 7 years ago - switched from fish to zsh (initially with oh-my-zsh). The interactive experience was similar enough on both shells, and the performance was great on fish and okay-ish on zsh, but two things won me over:

1. With zsh, I can copy-paste some bash snippet and in 99% of cases it will just work. Aside of copy-pasting from StackExchange, I also know a lot of bash syntax by heart by now, and can write some clever one-liners. With zsh, I didn't need to learn everything from scratch. (I guess this matters less now that you can ask AI to convert a bash one-liner into fish one-liner?)

2. For standalone scripts... well, I think it's best to reach for a proper programming language (e.g. Python) instead of any shell language, but if I had to use one, I would pick bash. Sure, it has many footguns, but I know them pretty well. And fish language is also not ideal - e.g. IIRC it doesn't have an equivalent of `set -e`, you have to add `; or return 1` to each line.

pzmarzly··on Ghostty 1.0
Good point, I also want things to work offline. By "remote" here I was also thinking of scenarios like:

- Connecting from Windows/macOS host to a local VM

- Connecting to a build server over LAN (I have a beefy PC but prefer to work from my couch)

Both work offline just fine, but from tooling perspective you are connecting to remote host over the network

pzmarzly··on Ghostty 1.0
This. To add some words why this is important:

Given the remote-first container-based world we're heading towards, decoupling UI (terminal emulator) from its "backend" (tmux, code-server) is a great design decision, which I think will ultimately define what the "next generation" of terminal emulators is. Imagine being able to open tabs directly on remote host, reconnect without losing state, etc, all while using native UI (so Cmd+T to open new tab, Cmd+F to search, etc). Productivity game changer, which currently only the iTerm2 users can fully enjoy.

Ptyxis (putting its backend in running containers), WezTerm (native handling of ssh sessions) and VSCode's terminal (starting a proprietary code-server binary and connecting to its TCP port) have reached some of this functionality, but in their design they need some out-of-band mechanisms to handle the connections, ultimately limiting the scenarios they can handle.

Meanwhile tmux -CC [0] and ht [1] are sending both their control channel and data channel over the opened terminal itself (in-band), making them flexible enough to support any configuration. Something complex like `ssh jumpbox -- ssh prod -- podman exec -it prod /bin/bash -- tmux -CC` should just work, as if everything was running on your local machine.

[0] https://github.com/tmux/tmux/wiki/Control-Mode

[1] https://github.com/andyk/ht

pzmarzly··on When power cycling your (x86) server isn't enough to recover it
This is a trace from the BIOS, it is not uncommon to have them printed over the serial console. Potentially the BIOS is based on EDK2 source code, in which case you can take a look here for the implementation of the trace printing logic: https://github.com/tianocore/edk2/blob/9e6537469d4700d9d793e...
pzmarzly··on Vulkan Video Now Enabled by Default for Radeon VCN2/VCN3 Hardware on Linux
How does Vulkan Video differ from VA-API and VDPAU? Does it replace them, supplements them, or are these completely unrelated?
pzmarzly··on Dear friend, you have built a Kubernetes
To expand on this, the author is describing the so-called "Docker-out-of-Docker (DooD) pattern", i.e. exposing Docker's Unix socket into the container. Since Docker was designed to work remotely (CLI on another machine than DOCKER_HOST), this works fine, but essentially negates all isolation.

For many years now, all major container runtimes support nesting. Some make it easy (podman and runc just work), some hard (systemd-nspawn requires setting many flags to work nested). This is called "Docker-in-a-Docker (DinD)".

pzmarzly··on jQuery UI
The jQuery UI Datepicker widget[0] still remains my favourite date picker implementation, even though it sadly never supported mobile phones that well.

Non-confusing design, live-reacting to user typing the date with keyboard, accessible, configurable, and offering 0-effort localisation in 60+ languages[1].

Is there anything like this in React world?

[0] https://jqueryui.com/datepicker/#dropdown-month-year

[1] https://github.com/jquery/jquery-ui/tree/main/ui/i18n

pzmarzly··on Not Using Copilot
The author set a redirection based on Referer header. You need to copy-paste the link, or (in some browsers) use the Open in New Tab option.
pzmarzly··on The tragedy of running an old Node project
Good for you, my experience with Jekyll is closer to OP's experience with Node. I have a big website that I built in 2014, with tons of custom plugins, that is now stuck on Jekyll 2.x and Ruby 2.x, and has a ton of hidden C++ dependencies. The way I build it now is using a Dockerfile with Ubuntu 18.04. I probably could update it given enough effort, but I was rather thinking of rewriting it in Astro.js or Next.js.
pzmarzly··on Abusing Ubuntu 24.04 features for root privilege escalation
> new solution will have only 70% of cups' features 15 years

Which sounds fine? Most people don't want LPT printers support, they want AirPrint and WSD to just work.

pzmarzly··on Matrix 2.0 Is Here
TIL about Element X. Is this app ready to use or not? The website says:

> Element X is the mobile messaging app that almost all Element users should now be using.

But the commenters here disagree.

Also, the Element app and its App Store listing doesn't indicate there is another version I should switch to, so looks like they don't want people to switch after all?

Honestly, this is infuriating. I keep my Matrix account just for that one friend who prefers using that platform, so I grit my teeth and suffer from bugs (lost media attachments, missing notifications), and now it turns out all of that could have maybe been avoided with this new app that they aren't telling us anything about? I am not going to read developer blogs for an app that I use once a month...

They could have went the Google Hangouts route. Rename existing app to Element Classic, put up new one as Element.

pzmarzly··on 'I grew up with it': readers on the enduring appeal of Microsoft Excel
They seem much worse than Excel's though. Are structured references supported? Can the tables be moved without breaking references? It also seems to me that the filter views aren't implemented in the mobile apps yet, so you can end up with a PC-only document.
pzmarzly··on Linux on Apple Silicon with Alyssa Rosenzweig [audio]
Device Trees are becoming an old thing now. With ARM SystemReady, most devices need to have UEFI, SMBIOS and ACPI. Only the SystemReady IR (IoT) variant is defined as using Device Trees.

https://github.com/ArmDeveloperEcosystem/systemready-guides?...

pzmarzly··on ChatGPT Search
There already is an official Google Maps API, but it is already very expensive with prices rising from time to time. There is no other company (other than maybe Meta) that has this much POI data in the western world.

So that is a solid advantage that Google is going to have, but the maps business alone wouldn't be able to keep it in the S&P list for long.

pzmarzly··on Ask HN: Website with 6^16 subpages and 80k+ daily bots
There are some browser plugins that try to guess what technologies are used by the website you are visiting. I hope the better ones can guess it by just looking at HTML and HTTP headers, but wouldn't be surprised if others were querying some known endpoints.
pzmarzly··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
Probably not. Please suggest to extension authors to dual-publish their extensions to OpenVSX and VSMarketplace. So far all authors I engaged with were happy do to so (except for Microsoft of course, who are the only benefactor of this wallet garden situation).
pzmarzly··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot
Huh, I assumed that MS Live Share and GH Copilot extensions were already using some secret APIs in the past, since I never saw any open source extension being able to do what they do. I guess I was wrong before, and this only starts being the case now?
← PreviousPage 4 of 11Next →