Better HN
topnewbestaskshowjobs
Log inSign up

johdo

33 karma · joined Mar 12, 2023 (3y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

It sounds like you don't have any understanding of sound engineering if you think modifying the default behavior of this kind of API with no fanfare is okay because "we are elaborately refactoring". Whether there was a specific intent or not.

This is absolutely horrifying.

comment 3y ago · link · parent

>Google was passing "w" to a call to parseMode(), when they should've been passing "wt" (the t stands for truncation). This is an easy mistake, since similar APIs (like POSIX fopen) will truncate by default when you simply pass "w". Not only that, but previous Android releases had parseMode("w") truncate by default too! This change wasn't even documented until some time after the aforementioned bug report was made.

Reading about this silent API change makes me feel like I'm losing braincells. What's going on with the processes behind Android's development?

comment 3y ago · link · parent

Not that I would truly recommend to use brew on linux as there are better alternatives - docker images, distrobox with a rolling distro for newer python, or LTS distro to keep an older version, pyenv etc, but.. If you've had a problem with brew, it was most certainly caused because you sourced it in your .profile, .bash_profile or .zprofile. Never do that. It's what brew's homepage recommends, but it can break a LOT of things and not just python. Brew should be in the $PATH only when you need it, from your current instance of interactive shell used for development, and not login-wide. The brew version of various pieces of software should not ever be able to take over what your system has or very unpredictable things will happen.

comment 3y ago · link · parent

They give you a secret, in the form of a QR code (for smartphone users) or a text string.

You put the secret string in a password manager that supports one time code generation, like Gopass or KeepassXC.

When you login with your user name and password, the 2FA adds a second step where it asks for a "one time code", which your password manager provides. That code is temporary and only works for a short time frame.

In my case I use Gopass ( https://github.com/gopasspw/gopass ) and it's as simple as adding a field like

---

totp: thesecretstringblahblah

at the end of my password entries and the app will treat that field as the source to generate one time codes. There's a browser addon and all I have to do is click the one time code and CTRL+V it into the field.