HNHacker News
TopNewBestAskShowJobs

hpfr

238 karma · joined February 11, 2020

submissionscomments
hpfr··on What Is RPN? Why Did/Does HP Use RPN? Learning RPN (1999)
That’s the point. This precedence processing should be intuitive if you’ve learned to do calculations by hand, and it helps you understand the expression as you enter it which makes for easier error detection. It’s also nicer for building up an expression on the fly as opposed to the Answer key on standard calculators.

If you’re just copying existing expressions, you might as well use one of those OCR calculators.

hpfr··on Valve's Proton Has Enabled 7000 Windows Games on Linux
Valve recently updated Remote Play so that hosts can send anyone a link to install the Steam Link app (available on every major platform but macOS at the moment) and join local multiplayer games remotely. Guests don’t even need a Steam account. Great quarantine feature for games that don’t require very low latency! And it’s fully functional on Linux.
hpfr··on A Vim Guide for Advanced Users
The author does mention this in an in-depth article on search: https://thevaluable.dev/vim-search-find-replace/

It's pretty comprehensive. Personally I'd just install Doom Emacs though :)

hpfr··on Alex Cabal: Standard Ebooks
> I have never seen something similar to it in any language I understand.

That changed today when you visited this post!

https://standardebooks.org

https://github.com/standardebooks

hpfr··on UUCP must stay; Fetchmail sucks (2001)
For posterity, Expunge Both fixed my issues. I also had issues with accounts other than Gmail auto-expunging messages marked with the Trash flag, so I had to tweak mu4e a bit to only move deleted messages to the Trash folder without also flagging them.
hpfr··on Downpour: DRM Free Audiobooks
Related: LibriVox offers free public domain audiobooks. Obviously, for the audiobook to be public domain the book has to be public domain.

https://librivox.org

hpfr··on Jwz: I told you so, 2021 edition
Yes, they fixed the bug, which is good, but if you read jwz’s post, the issue is that these bugs don’t fail safe. A screen locker shouldn’t crash to an unlocked session. The design of a screen locker should take into account that bugs and crashes will exist and strongly prioritize failing safely.
hpfr··on UUCP must stay; Fetchmail sucks (2001)
I just got started with mbsync and am having several issues with Gmail and Outlook.com. These are old accounts and I do have well-behaved IMAP emails from smaller hosts, but it would be nice to manage everything with mbsync. Trashing emails in mu4e and then syncing results in them being deleted from my local [Gmail]/Trash while they somehow remain in the remote. I thought Outlook.com would be fine considering they use more standard folders rather than the tagging system which seems to result in duplicates, but I have the same issues there. This is with Expunge None, which I expect would leave emails alone until the server empties them from the Trash.

The bizarre thing is that no one online seems to have these issues? The mbsync configs for Gmail just seem to work for people, or something. I do have auto-expunge turned off in Gmail, so I’m kind of at my wit’s end with it. It’s a shame because it is an amazing program. It synced 10,000 emails without a hitch. I only started getting issues when I tried to sync from my maildir to the IMAP store.

hpfr··on Fujifilm Created a Magnetic Tape That Can Store 580 Terabytes
Why would the file system affect bit rot rate?
hpfr··on GitHub Releases Dark Mode
It appears the default is light mode, rather than system preference. For those of us who use websites logged out most of the time, this is a bit annoying. Hopefully the default is changed to system preference in future.
hpfr··on EXWM (Emacs X Window Manager)
For long output and ncurses, libvterm may suffice https://github.com/akermu/emacs-libvterm. The rest of the time, eshell is very comfortable for me.
hpfr··on Free and liberated e-books, carefully produced for the true book lover
I guess that makes sense. They’re pretty rigorous about conforming to style and it’d be hard for the (presumably English-speaking) editors to uphold the same standards for a language they don’t share. Not to mention each language would probably require its own style guide. I know French literature often uses guillemets or a leading em dash where English uses quotes.
hpfr··on Firefox 83 introduces HTTPS-Only Mode
WebExtensions have permissions and I doubt the EFF requests passwords and history for this extension. It’s also open-source, and although installing it from addons.mozilla.org could introduce some sort of MITM opportunity, as a recommended extension Mozilla puts it through a review process, so it’s about as tame as an extension this capable can get. But yes, it is always nice to reduce extensions installed.
hpfr··on Bypassing Firewalls in macOS Big Sur
> OmniFocus, Things3, iA Writer, Ulysses, Alfred App to Emacs+Org, and some more

All of these were replaced with org-mode and Emacs (and likely some other Linux features for Alfred). Doom Emacs is a good framework to explore Emacs as it supports both vim and Emacs bindings (there’s also cua-mode).

https://orgmode.org https://github.com/hlissner/doom-emacs

hpfr··on Advanced System-on-Chip Design Lecture Notes
Computer Organization and Design: The Hardware/Software Interface by David A. Patterson and John L. Hennessy, ISBN 978-0124077263.
hpfr··on Getting a biometric security key right
Hmm, usernameless with resident keys doesn’t seem all that great to me then. Thanks for the info!
hpfr··on Getting a biometric security key right
If possible can you point out resident keys in the spec? This is confusing.

> For each account on a given site, you'll have an independent RK.

Is this only for usernameless sites? Sites with usernames can just use normal keys, right?

> (But the only sites where you can use RKs are basically Microsoft or demos.)

How do sites request to use RK’s? Why would Microsoft request RK’s when they can use the associated email address as a unique username?

Also, I can’t find anything about hardware security keys on my Microsoft account page, much less usernameless authentication.

If there’s multiple usernameless accounts per site how does the user select which RK to use? This seems impossible. If it is in fact impossible, then only one RK per authenticator would be necessary and only one usernameless account per site per authenticator could be used.

hpfr··on Getting a biometric security key right
If you have two, say, Microsoft accounts, can you use the same FIDO2-capable authenticator for both, and can Microsoft correlate the accounts by authenticator? I know keys are unique per-site, but are they per-account?

edit: The spec[1] is vague on this, but it looked like a Relying Party can't correlate accounts directly via some kind of identifier for the authenticator. It looks like individual key pairs are generated on the authenticator for each account and linked to the unique userEntity.ID given by the Relying Party. However, Mozilla warns you [2] when sites ask for additional information about your authenticator. I tested this with Yubico's demo [3]. Unfortunately, it looks like the field attestationObject.attStmt.x5c identifies the authenticator. Firefox prompts you when sites ask for the extended information and removes this field if you check a box. That's nice, I guess, but it still seems not so great. If you were to forget and use a user agent that didn't prompt you to anonymize this, the Relying Party would get the attStmt in the response and theoretically could store and correlate accounts. Interested to hear more about the reasoning behind this.

edit 2: It looks like this field is necessary as a second factor when using passwordless login? On Yubico's playground [4], checking "Enable passwordless login with this key" and then checking Firefox's "Anonymize anyway" box results in no request made to the key. Without enabling passwordless login, the request still works after anonymizing.

To be honest, it seems like sites should allow passwordless login without the x5c field. I don't see how an attacker couldn't come up with the x5c field if they could crack the key pair. Is my reasoning right here?

1: https://www.w3.org/TR/webauthn-1

2: https://support.mozilla.org/en-US/kb/privacy-web-authenticat...

3: https://demo.yubico.com/webauthn-technical

4: https://demo.yubico.com/playground

hpfr··on Valve put their 'Pressure Vessel' container source for Linux games up on Gitlab
Fellow Steam Controller die-hard here. Nothing else really compares. One big issue was that the best features (like mouse-like joystick and gyro-assisted aim for FPS) took time to configure when most controller users want a controller to just work. But Valve’s community configs solved this extremely well. I can jump into just about any game and have an excellent controller config running out of the box.

The touchpads, gyro, and back paddles make it so much better than any other controller. It’s a shame they discontinued it. The more mainstream reviews of the controller by tech news sites and Linus Tech Tips didn’t quite grasp its potential, which is understandable. But there are some solid niche YouTubers like RambleTan and Critical Input that have made entire channels out of exploring its potential, and the subreddit is pretty good too.

hpfr··on Valve put their 'Pressure Vessel' container source for Linux games up on Gitlab
Sadly, some of Valve’s more interesting Steam features don’t really work on Wayland. For example, you can control your desktop with a connected controller on X11, while controllers only work in-game and in Big Picture Mode on Wayland. Xbox One controllers also didn’t work on Wayland last time I checked. I wouldn’t be surprised if features like Remote Play didn’t work yet either because of Wayland protocols’ security model. Controller hotplugging is also a mess. Hopefully Valve gets to these issues in the future, but since Xwayland doesn’t even work with Nvidia GPU’s (more Nvidia’s fault than Wayland’s as I understand it), it could be a while. In any case, I’m quite thankful to Valve for making Linux viable for gaming, and the occasional game I buy now is always purchased through Steam to support their work.
hpfr··on AMD Reveals the Radeon RX 6000 Series, Coming November 18th
A good number of people seem to prefer the HD650 sound even if they’re less neutral, and they can be had for $200 via the HD6XX rather than $300 for the HD600, so I wouldn’t count them out immediately.
hpfr··on Anki as Learning Superpower: Computer Science Edition
As a desktop and iOS user (and a member of a younger generation), this doesn’t bother me too much, to be honest. Free software projects might as well take advantage of closed distribution platforms as a revenue source when they’re the only option for distribution, in my opinion. That said, $25 is on the high side, but is that really prohibitive, even for students, or has the history of ingrained low price expectations in the mobile app ecosystem made us more shocked than we should be at a $25 one-time fee? People certainly frequently pay more for subscriptions now.

Regardless of the reason behind it, you’re right, it is admittedly hard to convince a large portion of iOS users that $25 for an app is worth it, which is unfortunate for Anki. But I don’t know if a free version would be worth the trade-offs.

hpfr··on Ask HN: What RSS Reader do you use?
What’s prompting the switch?
hpfr··on Emacs is special regarding UIs
Yeah, I was aware of that but the way I wrote it was ambiguous, sorry. I meant “even some people who have the chops to maintain complex custom configs are switching to Doom”.
hpfr··on Emacs is special regarding UIs
I have the same language issue. Emacs has a native version of this feature[0] that works great in Doom. TeX mode, where you enter a backslash before the accent (c \ , => ç) is most like C-k in that it requires an explicit keypress. I usually just use one of the language-specific modes because you can then fluidly type diacritics (with modes for prefix or postfix entry) and manually rewrite c, or e’ on the rare occasions such conflicts come up.

0: https://masteringemacs.org/article/diacritics-in-emacs

hpfr··on What's so hard about PDF text extraction?
This looks quite useful but it appears it hasn’t been updated since 2010, and I’d imagine there’s been some advancements in this domain in the last decade. If anyone knows of similar tools for aligning and improving book scans, I’d love to hear of them. Thanks for this in any case!
hpfr··on Emacs is special regarding UIs
> Plus the death of all non-mainstream window managers, it seems.

Thanks to wlroots, many new window manager projects are starting, often inspired directly by particular X window managers:

https://github.com/swaywm/wlroots/wiki/Projects-which-use-wl...

hpfr··on Emacs is special regarding UIs
I don't know if I'd call it reimplementation when the original Emacs is older than DOS and GNU Emacs, still maintained today, is older than Windows (1985). Emacs's keybindings, font rendering, and scrolling were just as valid then as any other approach. Let's at least avoid comparisons to Swing :).

You can bind copy-and-paste as well as any other text wrangling functionality to whatever you want and there are ways to make it behave like other platforms without too much difficulty. But why hamstring Emacs' copy and paste by limiting it to the simplistic version we're used to when you can copy to multiple registers and have a searchable history of copied text?

Font rendering uses Harfbuzz in the latest version and is quite good in my opinion, there's even color emojis. Scrolling is certainly better than any terminal emulator I've used, although there's no smooth scrolling. I guess everything is off if you're comparing it to a browser, but modern browsers aren't exactly paragons of UX either. But if you're comparing prettiness options like these, yeah, Emacs loses to VS Code. All Microsoft had to do was build a text editor on top of a browser engine to get those features :). I'd say Emacs is more extensible, though. Lisp machines and all

hpfr··on Emacs is special regarding UIs
I would say the Emacs user mindshare has shifted somewhat to Doom. There are a lot of Doom fans on r/emacs now, and the Discord is huge compared to what it was. Many new contributors are cropping up. Even some developers of well-known packages, like org-roam, have switched to Doom. Take it from him, not me! https://blog.jethro.dev/posts/migrating_to_doom_emacs/

Compared to Spacemacs, which has complex abstraction layers over Emacs, Doom seems to be much lighter. It's easy to get into Emacs browsing Doom's modules. Plus, the BDFL model is serving Doom quite well since Henrik is a god-tier BDFL. He's constantly active and keeps Doom very focused on performance with sensible defaults and consistent programming style. Docs are a focus and are growing, and they're extremely comfortable to browse in Doom Emacs itself, as well as the Doom and Emacs source code of course.

None of this is meant to attack Spacemacs, it did and does much for Emacs, and many swear by it. But I would say Doom is better these days.

hpfr··on Emacs is special regarding UIs
Honestly, I think people's reliance on X forwarding is just due to the fact that it happens to exist, not because they really need it. There's nothing like X forwarding on Windows to my knowledge. If X forwarding didn't exist people would have figured out how to do what they needed over SSH with text or when GUI's are irreplaceable sysadmins would have set up an actual remote desktop solution like on other modern operating systems.
← PreviousPage 2 of 3Next →