Hacker News new | past | comments | ask | show | jobs | submit | esamatti's comments login

I've actually found the animations helpful even thought was initially skeptical: Because it visualises the vim motions it makes it much clearer what is happening. Especially if you make a mistake you'll see it much more clearly what it actually did. Also when making longer cursor jumps it is easier to see where it went.

I'm sure they will help a lot also when learning Vim for the first time.

But the be fair, the default animations are bit much but they can be toned down.


This is awesome! Thanks for sharing.


TIL, Pretty cool!

But I suppose there isn't away to run these transient services as boot because they are definition gone after they have stopped?


It's actually very easy!

You can abuse the fact that systemctl has the edit subcommand. It meant to modify the existing service file, but nothing means you can't just save it out elsewhere and then modify it.

Additionally, if it's a long running service it should be located where other systemd unit files are located (`$HOME/.config/systemd/user/` for user units, `/etc/systemd/system/` for service units) and just copy them while the unit is still running.

  systemd-run --user -u test -t bash
  cp $HOME/systemd/user/test.service /new/path/for/test.service
Of course this requires it to live long enough.


Theoretically one-shot service that launches a shell script with systemd run on boot could do the trick. OTOH it's probably easier to just write a tiny service at that point.

Generally results of -run services can be captured through journalctl, so it's possible to run systemctl show on them and get the config.


Anyone using Podman on a macOS? How's the experience compared to Docker Desktop?


I tried using Podman for about 4 or 5 months on my M1 Mac, but eventually just gave up in frustration. I'm not doing anything too crazy, just running Minikube for some local development, but it just isn't stable enough and requires a lot of digging into threads to find the workarounds or the proper config.

I was wasting more and more time on it. It was constantly crashing/hanging so one day I just said fuck it and switched back to Docker Desktop, which not only worked better than when I switched but seems to have improved quite a lot in the intervening time as well.


I've been using orbstack on macos and its been wonderful. Much faster than docker for. Mac.


May not be a concern of yours, but eventually it will have the same licensing concerns as Docker Desktop. (Free now, but only during beta; business use will require licensing)


It works well, but I found I had to configure several items inside the VM to get it to work within our corporate environment. Timezones, ntpd, proxy, and arm64/amd64 cross platform all needed me to tweak some stuff. But that was quite a while ago and may be fixed now.

Colima on the other hand works pretty much seamlessly, but really works best on macOS Ventura because you can enable vz virtualization.

Edited to add: colima works seamlessly on the command line. So if you're command-line-averse, you'll need to learn some new commands and things won't be as convenient. I haven't tried rancher desktop yet.


> Anyone using Podman on a macOS? How's the experience compared to Docker Desktop?

Don't forget there is also Rancher Desktop[1]

[1] https://rancherdesktop.io


Why would one use Docker for Desktop when Rancher Desktop exists?


I wonder if Rancher Desktop, et al, works with testcontainers.org?


> I wonder if Rancher Desktop, et al, works with testcontainers.org?

I don't use testcontainers myself, but it looks like as long as you are using Rancher Desktop >= 1.0.1 you should be just fine.[1]

[1] https://github.com/testcontainers/testcontainers-java/issues...


I wanted to try a while ago so I downloaded Podman Desktop, but I couldn't get past the initial setup due to issues in the desktop app. I was able to reproduce this on two or three Macs, can't recall exactly.

It has been a long-standing issue but seems as though it is on its way to resolution: https://github.com/containers/podman-desktop/issues/1633.

I am waiting for a few months to make sure it is all sorted and will try again to see if it works then.


There are some problems especially with the QEMU integration. E.g. two bugs that irritated me immensely:

* podman with --network host won't expose the ports.

* If you suspend the laptop the time on the VM goes haywire.

I always found docker to be unreasonably buggy too so am not sure how I feel about this.


Not podman but using rancher desktop and it has either nerdctl + containerd or docker and dockerd options and I have been using it a month without issue replacing docker desktop. The kubernetes options work well too


Just joined a team and received an M1 Pro laptop but licensed docker isn't in the budget... tl;dr a bit early to tell, but I think it works.

podman-desktop is pretty rough, but it gave me enough confidence to start using podman generally. podman-mac-helper solved a few docker compatibility problems I had in previous attempts in 2021 and 2022.

It seems like my problems getting started with podman just last week wete mainly due to the abundance of already outdated tutorials. Maybe those who are more active in this space can weigh-in, but fixes and common work arounds documented as recently as 6 months ago aren't necessary an longer? For me, podman works without nearly as much fuss as I remember.


They say they plan to support Vue and Svelte via plugins so I guess it is a thing or will be.

"In future versions, we'll be supporting Vue and Svelte via plugins."

https://turbo.build/pack/docs/features/frameworks#vue-and-sv...


Also checkout yj[1] which can convert between various formats among toml->json

[1]: https://github.com/sclevine/yj



> `request.formData()`

Yes.

> FormData

Yes, but not in that PR since `FormData` needs to behave differently as part of the platform but there is intent to support it before moving from experimental.


Graderjs seems to be pretty nice idea. If you are already using Chrome, Graderjs apps weight around the same as a Chrome tab compared to Electron where each app will get its own Chromium instance.


Seems like it

-------

Podman is a tool for running Linux containers. You can do this from a MacOS desktop as long as you have access to a linux box either running inside of a VM on the host, or available via the network. Podman includes a command, podman machine that automatically manages VM’s.

To start the Podman-managed VM:

podman machine init podman machine start

-------

from: https://podman.io/getting-started/installation


Seems to have some issues creating the temp directories for the VM in an automated fashion (at least with the Homebrew package). But it will work with some tinkering.


Hash the phone number in the browser before sending it to your server. That way it is at least possible to verify via devtools what is being send.

Heck. Allow even prehashed phone number to be entered.


I understand the frustration but they have the data and hence, a rainbow table, sending a pre-hashed phone number is the same as sending an unhashed one, unless the worry is man in the middle, who is just as likely to get the data.

The only way to check without giving up personal info is to get the data and look locally, or perhaps search for so many phone numbers that yours is buried in the haystack.


That only holds for numbers already part of the dump. If you submit an unknown phone number that is not contained in the leak, hashing it before sending it will increase data privacy.


So a rainbow table of just 2.9 billion numbers covers the USA phone set. So I think searching for a specific number clear or hashed are roughly similar exposures. Maybe the right way to search without disclosure is really to filter. Meaning instead of putting in your full 10 digits. You just put in 7/8 and it returns a list of the rest for you to see. Then you visually scan to find your number out of the returned 9999 results.

(Assuming seeing hacked numbers are public already - but I don’t love this either)

What’s a secure way of searching without disclosure by either party? (Non troll question)


I think HIBP implements it like this: you hash your email/phone number and send only a prefix of the hash to the server. The server responds with a list of hashes matching the prefix. Now you can check if your hash is in the list. If so, you have been pwned. This way the server never knows which email you are requesting since it only ever sees a part of the hash.


> What’s a secure way of searching without disclosure by either party?

Download the original data set. US records are around a GB file.


That's what we're planning to do. Thank you


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: