HNHacker News
TopNewBestAskShowJobs

sudahtigabulan

236 karma · joined November 1, 2024

submissionscomments
sudahtigabulan··on Google Pixel's most dangerous bug: failing to call 911
I think touch screen itself limits the possibilities to create UIs usable with minimum attention. You have to look at it to find the right area to press. All those buttons, knobs, sliders, etc., imitate the real thing, but only in 2D. Can't rely on feeling to find the right control, unlike with physical designs.

It's not the only culprit, of course. There's still room to at least design a layout that is predictable, and with buttons that are easily reachable.

Some UIs make me think the designer was an alien invader in a human body. It thinks nobody can tell, but when it designs a UI that can only be called "intuitive" if you have 7 fingers, the 2-nd and 5-th longer than the others, and the 3-rd one a tentacle... I got you, motherfucker!

sudahtigabulan··on Date bug in Rust-based coreutils affects Ubuntu 25.10 automatic updates
The top comment is hilarious:

> The next Ubuntu release will be called Grateful Guinea-Pig

sudahtigabulan··on SourceFS: A 2h+ Android build becomes a 15m task with a virtual filesystem
This reminds me of ClearCase and its MVFS.

Builds were audited by somehow intercepting things like open(2) and getenv(3) invoked by a compiler or similar tool, and each produced object had an associated record listing the full path to the tool that produced it, its accurate dependencies (exact versions), and environment variables that were actually used. Anything that could affect the reproducibility was captured.

If an object was about to be built with the exact same circumstances as those in an existing record, the old object was reused, or "winked-in", as they called it.

It also provided versioning at filesystem level, so one could write something like file.c@@/trunk/branch/subbranch/3 and use it with any program without having to run a VCS client. The version part of the "filename" was seen as regular subdirectories, so you could autocomplete it even with ancient shells (I used it on Solaris).

sudahtigabulan··on Scripts I wrote that I use all the time
How? Readline macros?
sudahtigabulan··on The Programmer Identity Crisis
> If it happens a second time? A stern talk from their manager.

In my experience, the stern talk would probably go to you, for making the problem visible. The manager wouldn't want their manager to hear of any problems in the team. Makes them look bad, and probably lose on bonuses.

Happened to me often enough. What you described I would call a lucky exception.

sudahtigabulan··on Renaming the default branch of Rust-lang/rust
"Trunk" was the default in multiple VCSes before git arrived.
sudahtigabulan··on Functions Are Asymmetric
> SML [...] appears to idiomatically represent them as functions of a single tuple parameter

Tuple is not special, though. Functions accept a single argument of any type.

To use the argument in the function body you can name it, or you can use any valid pattern to destructure it and bind parts of it to local variables.

Tuple is just one of the valid patterns. Coincidentally, it looks like argument list with positional arguments in many other languages. You can also use a record, which makes it look like "keyword arguments". You can also use patterns of custom types.

All the above is still about the single "argument" case, the single value that is "physically" passed to the function. Pattern matching is what makes it possible to bind parts of that value to multiple local variables in the body of the function.

sudahtigabulan··on Show HN: Halloy – Modern IRC client
> that roadmap is also not accessible to screen readers

It also has terrible navigation on mobile, even for sighted users. I gave up after a few seconds of trying to use it.

sudahtigabulan··on Modern Linux tools

  alias grep='grep --exclude-dir .\* --exclude .\*'
  grep -r --include \*.foo bar
sudahtigabulan··on Tangled, a Git collaboration platform built on atproto
Maybe git-bug[1]?

[1]: https://github.com/git-bug/git-bug

sudahtigabulan··on No_color: Disabling ANSI color output by default
> Though most of the software do the right thing by checking if the standard output is an actual tty (isatty) to avoid colors when redirecting to something else (e.g. socket, fifo, etc).

NO_COLOR is orthogonal to the isatty suppression.

NO_COLOR ensures that colors are off even when stdout is not redirected.

For example, when you have poor vision, poor quality display, or sit near a window, (or worse – a combination of these) the colored parts of the output might have lower contrast, low enough to make them impossible to read.

sudahtigabulan··on Personal data storage is an idea whose time has come
I think by "Bluesky services" PP meant atproto services, like PDS. Not social networks.
sudahtigabulan··on Germany must stand firmly against client-side scanning in Chat Control [pdf]
Tinfoil Chat does that (and more).

https://github.com/maqp/tfc

sudahtigabulan··on Signal Protocol and Post-Quantum Ratchets
> not an amazing user experience to have to share a random string to your friends

It doesn't have to be that way, at least in theory.

They can nerf accounts without verified phone numbers to be unable to reach verified accounts. And delete idle unverified accounts sooner, to combat potential DOS.

People who believe their phone number will be used to deanonymize them, can just use an account they keep unverified, and exchange IDs via other channels. It's harder, but for these people it will be worth it.

The rest of us can verify our phone numbers, and enjoy the easy discovery. (The way it is now.)

Machine-created, unverified, spam accounts will have to brute-force address space way bigger than that of phone numbers, and still only be able to reach other spam accounts, or an occasional very privacy-sensitive user.

I have no idea whether the above is technically possible, though.

sudahtigabulan··on Managing dotfiles with Make
INSTALL is also a standard location, for the commands that are related to building and installing the software.
sudahtigabulan··on You want to meet me, don't make me work for it
"Miscommunication" is a very charitable interpretation.

For certain people, this behavior is a pattern. You give them an inch, they take a mile.

sudahtigabulan··on Thoughts on Mechanical Keyboards and the ZSA Moonlander
You can get pretty far with software-only tweaks to your existing keyboard instead.

I've settled on keyd[1], after using XKB and interception-tools for a while.

[1]: https://github.com/rvaiya/keyd

sudahtigabulan··on Denmark's Justice Minister calls encrypted messaging a false civil liberty
Governments are more scared of "online", because their shenanigans could be exposed instantly, and to many more people than with the "tech" available before (speaking in person, or paper letters).

Freedom to speak in person is like a fist; freedom to post online is like a gun. They don't want us to have guns, obviously.

sudahtigabulan··on Ghostty 1.2.0
> But Ghostty is competitive in all three categories

Being at the bottom is not what I call competitive.

sudahtigabulan··on A set of smooth, fzf-powered shell aliases&functions for systemctl
Do you mean that it should be invoked exactly as "systemctl ps", for convenience?

I think the functionality is already there:

  systemctl --type=service --state=running
sudahtigabulan··on Bank of Thailand freezes 3M accounts, sets daily transfer limits to curb fraud
> Also if your visa allows back-to-back entries that's exactly what I'll do. Nowhere does it say that there's a limit, therefore it's not "abuse".

Also if the law says you should pay taxes, that's exactly what you should do. Nowhere does it say that there's an exemption for people paying their food and rent ("injecting" $500), therefore you should pay (taxes).

sudahtigabulan··on Ex-WhatsApp cybersecurity head says Meta endangered billions of users
Nothing, but there's something in your comment that was not in the article:

> he will be happy to negotiate a payment instead.

This, indeed, sounds way more normal than wanting to keep working for the evil company, and in a toxic environment.

It hasn't occurred to me that one can change their mind and choose a different compensation after the court decision like that.

sudahtigabulan··on Ex-WhatsApp cybersecurity head says Meta endangered billions of users
The point I tried to make was not that he should be resentful about being kicked out, but that he doesn't really care that Meta is unethical and endangers billions.

Even if nothing changes (the regulatory action is optional), he's happy to contribute (he insists, in fact). Even among people who don't want him there.

sudahtigabulan··on Ex-WhatsApp cybersecurity head says Meta endangered billions of users
> In his whistleblower complaint, Baig is requesting reinstatement, back pay and compensatory damages, along with potential regulatory enforcement action against the company.

If the company is so bad (it is), why does he want back?!

'Just pay me the salaries I "missed", and keep them coming.' The regulatory action is just "potential".

I have no sympathy for Meta, but this guy...

sudahtigabulan··on Signal Secure Backups
The contact list on a linked desktop client will show all groups you're in, even though your main device doesn't.

On Android, if you know the group's name, you can search in the contact list, and the group will "magically" show up, even though it wasn't in the list.

Not the greatest UX.

sudahtigabulan··on Stop writing CLI validation. Parse it right the first time
I think I've seen it done like that

  --option flag1,flag2
(Maybe with another separator, as long as it doesn't need to be escaped.)

Another possibility is to make the main option an argument, like the subcommands in git, systemctl, and others:

  command option --flag1 --flag2
This depends on the specifics, though.
sudahtigabulan··on Stop writing CLI validation. Parse it right the first time
Is there no getopt implementation for Typescript? The input this library tries to handle better looks to me like bad design.

"options that depend on options" should not be a thing. Every option should be optional. Even if you have working code that can handle some complex situation, this doesn't make the situation any less unintuitive for the users.

If you need more complex relationships, consider using arguments as well. Top level, or under an option. Yes, they are not named, but since they are mandatory anyway, you are likely to remember their meaning (spaced repetition and all that). They can still be optional (if they come last). Sometimes an argument may need to have multiple parts, like user@host:port You can still parse it instead of validating, if you want.

> mutually exclusive --json, --xml, --yaml.

Use something like -t TYPE instead, where TYPE can be one of json, xml, or yaml. (Make illegal states unrepresentable.)

> debug: optional(option("--debug")),

Again, I believe it's called "option" because it's meant to be optional already.

  optional(optional(option("--common-sense")))
EOR
sudahtigabulan··on Intuitive find and replace CLI (sed alternative)
The newline replacement stopped me in my tracks:

  sed ':a;N;$!ba;s/\n/,/g'
Nobody does that with sed, when there are way simpler alternatives, like paste and tr.
sudahtigabulan··on What's New with Firefox 142
I used to appreciate it (on Wikipedia), but too often it gets triggered by accident and prevents me from reading what I actually want to read. So much so that I had to find some way to disable it (probably by blocking JS via uBO).

Similar story with GitHub "hovercards". They were helpful, but someone recently decided they have to work in the Issues/PR lists too and, again, it just prevents me from reading the very thing I want to read. Had to disable them (everywhere, unfortunately).

sudahtigabulan··on Ask HN: The government of my country blocked VPN access. What should I use?
Use a less-known DoH or DoT provider.

They just "blocked" Reddit today, I selected another DoH provider from the menu in my browser settings, and continued.

← PreviousPage 2 of 5Next →