HNHacker News
TopNewBestAskShowJobs

whelming_wave

182 karma · joined February 4, 2019

submissionscomments
whelming_wave··on All DuckDuckGo bang operators on one page
I use `!rust` all the time when I just want to pull up the rust docs quickly, since their search is much more effective when I just want to know about the API for a File or something, though I don't get much more value out of them than that.

And I've just learned I can use `!posix` to search the open group, which I'll probably use whenever I get upset with macOS's man pages again.

whelming_wave··on Org-mode 9.4 is out. Can you help?
I agree that Github is not the solution the open source community is looking for, and feel the pain of the lacking privacy controls. Still, I feel that development on Github is much more accessible than that on a mailing list, and there's probably a solution which would be more accessible but still encourage people who aren't part of the mailing list culture to contribute.

For example, mrsh has its development on sr.ht[1], but accepts pull requests on Github or the mailing list for the project[2]. This seems like (almost) the best of both worlds to me, where people who want to use a mailing list can, and people who want to use a GUI can, though there is overhead for the maintainers to fuse together the results at the end. An alternative like Gitea or GitLab might be better for your mentioned privacy concerns while still lowering the barrier to entry that a mailing list workflow presents.

Design is not my passion, so I'm drastically underqualified to comment on whether any of these websites is an effective implementation of their ideas.

[1]: https://git.sr.ht/~emersion/mrsh

[2]: https://git.sr.ht/~emersion/mrsh#contributing

whelming_wave··on Org-mode 9.4 is out. Can you help?
I can't speak for others, but I'm driven away from contributing to projects that use mailing lists because there's a high barrier to entry, and here's a source of other people having the same issue[1] to corroborate my anecdote a little.

[1]: https://www.theregister.com/2020/08/25/linux_kernel_email/

whelming_wave··on What is 5D chess?
There's a quantum chess game on Steam, titled Quantum Chess.
whelming_wave··on Editors (Vim)
If you’re on macOS, the screen blanking is a known issue that’s happening because of some unknown interaction between the OS rendering and Emacs double buffering. IIRC, the mailing list thread about it concluded saying that nobody who wanted to work on the Emacs source had the requisite macOS knowledge to fix it and it’s been stuck there for a while?
whelming_wave··on We redesigned and open sourced our landing page. Looking for feedback
Scrolling is not sufficient consent to tracking/a privacy policy. Even if it were, the cookie box triggering, shadowing the entire page, and then having the only option on the box be "Okay, got it" wasn't a great user experience.
whelming_wave··on Google no longer providing original URL in AMP for image search results
IIRC, this is happening because of the complete internal rewrite - the relevant APIs to expose to extensions simply don't exist yet, and they're implementing them to get the most-wanted extensions available first.
whelming_wave··on Defold game engine source now available and free to use for commercial games
Given the efforts of you and others in this thread, it’s apparent that it isn’t “almost everyone else”.
whelming_wave··on Tell HN: C Experts Panel – Ask us anything about C
It lets you check that a+b > a for unknown unsigned b or signed b known > 0, to make sure addition didn’t overflow. I’m rather certain all modern C compilers will optimize that check out.
whelming_wave··on Mental models around Ok-Wrapping
I've found this kind of pattern much nicer in an application context. Rust sort of has this going on with anyhow[1] for applications and thiserror[2] for libraries (or just writing your own Error type).

[1]: https://crates.io/crates/anyhow

[2]: https://crates.io/crates/thiserror

whelming_wave··on Why I’m Leaving Elm
Definitely. At that point, they need to weigh the cost of migrating their existing project to a new platform, or to maintain the patches that will allow the old platform to have the flexibility they need.

It's important to remember that they aren't being removed from the Elm community - they can still use the packages, the compiler will still get updates they could presumably rebase their patches on.

whelming_wave··on Why I’m Leaving Elm
I don't understand your argument about ecosystem being far more important. People ceasing use of any of the tools necessarily removes them from the ecosystem and community. They have no reason to care about those things.
whelming_wave··on Why I’m Leaving Elm
Your fork isn't a significant amount of work, unless they've really threaded in the must-be-in-Elm-Kernel check throughout the entire compiler. Versus trying to rewrite your dependency in Elm rather than enabling importing JS, enabling JS is likely to be simpler since the functionality already exists to let Kernel modules do it.
whelming_wave··on Why I’m Leaving Elm
What would they do? I'm not sure there's an actual threat to follow through on. They can't block a forked compiler from, for example, using official packages without close-sourcing their own compiler (to prevent it from bringing in whatever change makes it work again).

At that point, why bother respecting the threat? A forked compiler isn't going to get maintainers? A package depending on the forked compiler isn't going to be maintained? The social cost is possibly something to think about, but if one is set on leaving the community anyways then it's a choice between you choosing to not interact with the community and them (possibly!) choosing to not interact with you.

whelming_wave··on Airlines want to cancel rule requiring them to refund fares for canceled flights
I’m sure the company will be able to suffer through the losses - and if it can’t, was it a viable business in the first place?
whelming_wave··on U.S. retailers plan to stop paying rent to offset virus closures
Since we're seeing business in a rent strike, I wonder how well a rent strike would work for the average citizen.
whelming_wave··on 21-year-old student from Pune and the curious case of her changing hands
Anecdotally, I feel like my hands have changed to be slimmer after 3.5 years of estrogen, but I haven't taken any measurements and don't have detailed photos of my hands before/after.
whelming_wave··on The growth of command-line options, 1979-Present
Here you go: sort all files in the current directory by modification time, whitespace-in-filenames-safe.

The `printf (od -> sed)' construction converts back out of null-separated characters into newline-separated, though feel free to replace that with anything accepting null-separated input. Granted, `sort --zero-terminated' is a GNU extension and kinda cheating, but it's even available on macOS so it's probably fine.

  printf '%b' $(
    find . -maxdepth 1 -exec sh -c '
      printf '\''%s %s\0'\'' "$(stat -f '\''%m'\'' "$1")" "$1"
    ' sh {} \; | \
    sort --zero-terminated | \
    od -v -b | \
    sed 's/^[^ ]*//
  s/ *$//
  s/  */ \\/g
  s/\\000/\\012/g')
If you're running this under zsh, you'll need to prefix it with `command' to use the system executable: zsh's builtin printf doesn't support printing octal escape codes for normally printable characters, and you may have to assign the output to a variable and explicitly word-split it.

This is all POSIX as far as I know, except for the sort.

whelming_wave··on Tailwind UI
For plain old `text-gray-500`, they're pretty similar. One advantage that Tailwind has is screen sizes - you might write `flex items-center justify-between mobile:flex-col` for a row that turns into a column on smaller screens where the UI becomes awkward, for example.
whelming_wave··on The specification for native image lazy-loading is merged into HTML standard
I do this in production a few places by setting a div with no content or only absolutely position content to have padding-bottom of the aspect ratio in %. That gets calculated from the width, so if the image is 4:3 my ratio is 75%; 200px wide becomes 150px tall as well. Then, I set the image as a background to the div or absolutely position it inside to fill the space, and it's responsive to the layout while also reserving space for itself.
whelming_wave··on Show HN: HN Card, Hacker News Profile Overlay
You might consider changing overflow: scroll to overflow: auto so that on short bios it isn't forced to show scroll bars.
whelming_wave··on Why we Forked Firefox and Not Chromium
It’s more apparent on other things - I probably should have searched for flights or movies or something else more interactive. Firefox-as-itself doesn’t get any nice features like upcoming movie times without going into other websites, while Firefox-pretending-to-be-Chrome does.

Honestly at this point I’d like to give up on the user agent header and have everybody say they’re Chrome all the time.

whelming_wave··on Why we Forked Firefox and Not Chromium
I can’t speak to better, but the first is unmodified user agent and the second is spoofing mobile Chrome’s.
whelming_wave··on Why we Forked Firefox and Not Chromium
It is very different on mobile. I just took some screenshots of Google search on Firefox on Android before and after enabling an addon that sets my user agent to Chrome on Google sites: https://imgur.com/a/P9zDn7B
whelming_wave··on Asciinema – Record and share terminal sessions
You might be able to create something similar by combining expect with asciinema, like

  $ expect_command='
  log_user 0
  spawn bash
  interact timeout 1 return
  send "ps aux | rg asciinema\n"
  interact timeout 3 return
  exit
  '
  $ asciinema rec somefile -c 'expect -c '\'"$expect_command"\'
using interact timeout as a sort of checkpoint to show output, though if you want to send single quotes you'll have to make sure they get escaped in the inner command (or just have the script in a file for expect to read)
whelming_wave··on Flow Browser – A parallel, multithreaded HTML browser
I wonder how this compares to Servo[0] - on admittedly not very close inspection it seems like they have a lot of the same ideas.

[0]: https://servo.org/

whelming_wave··on Ask HN: What does your development stack look like in your favorite language?
https://github.com/lynlevenick/dotfiles

Here you go! As it says on the top, it only works on macOS right now unfortunately.

whelming_wave··on Ask HN: What do you have configured in your .emacs?
Pretty generic, though I've ended up configuring it to launch in ~0.5 seconds: https://github.com/lynlevenick/dotfiles/tree/master/emacs/.e...
whelming_wave··on Ask HN: What does your development stack look like in your favorite language?
I recently had to set my development environment up again, and I've gotten it to the point where on macOS I

1. Run `xcode-select --install`, accept prompts etc

2. `git clone` my dotfiles repo

3. `cd` into it and run `rake`, which automates the install of Homebrew, various packages my dotfiles use, Emacs, etc.

← PreviousPage 2 of 2