HNHacker News
TopNewBestAskShowJobs

mshroyer

631 karma · joined July 18, 2019

https://markshroyer.com/ https://github.com/mshroyer/
submissionscomments
mshroyer··on Speeding up my ZSH shell
I don't know if this is somehow particular to my setup, but on both macOS and Linux I find that simply running full `compinit` fails to update mtime on `~/.zcompdump` when nothing's changed. That causes this optimization to fail, for me, if my completions haven't changed within the last day.

This is fixed by adding an explicit `touch ~/.zcompdump` in the branch that runs a full `compinit`.

mshroyer··on Experimental Tauri Verso Integration
It's a great, easily-approachable framework too. I'd just recently picked it up for a pet project, and taking advantage today's powerful system webviews as UI frameworks seems like the obvious choice.

Also check out Wails if you'd like something along these lines with Go substituted for Rust

mshroyer··on Kindle is removing download and transfer option on Feb 26th
Yes but in their US integration, it's actually a bit more glitchy than Kindle especially if you're juggling multiple library cards. You can still make it work, and I do bother with that because my Kobo is such a better device than my Kindle, but it's more of a headache than using Libby to send to Kindle.
mshroyer··on LibreOffice still kicking at 40, now with browser tricks and real-time collab
This is my main reason. Additionally, yes, some of the Excel features that would attract me to it over LibreOffice Calc—such as the aforementioned lambdas—aren't available in older, non-365 versions of Office.
mshroyer··on LibreOffice still kicking at 40, now with browser tricks and real-time collab
I've started switching back to LibreOffice because the situation with MS Office nagging me to save my files to the cloud, or to use "connected" AI experiences, keeps getting worse.

(The connected experiences, including Copilot, can be disabled with a dialog hidden deep in Office's Trust Center, but even that's confusingly worded. It's unclear from the wording and the structure of the dialog what the combination of checking "all connected experiences" but unchecking "experiences that analyze your content" should actually do, for example.)

MS Office is certainly the more polished product, especially Excel. There are some spreadsheets I can't feasibly convert to LibreOffice Calc without equivalents to Excel's lambdas and tables.

But LibreOffice does the job in most cases. I'm really excited to see this new work—especially CRDT-based sync between desktop app instances over a network file server, which would turn LibreOffice into a significantly better experience than MS Office for my purposes.

mshroyer··on LibreOffice still kicking at 40, now with browser tricks and real-time collab
I'm not experiencing that issue on my M4 Pro (Mini), fwiw
mshroyer··on EFF statement on U.S. Supreme Court's decision to uphold TikTok ban
It's because this isn't a content restriction. Anything that was speakable on TikTok remains speakable on platforms that aren't owned by U.S. adversaries.

The distinction between this and China's "great firewall" and speech restrictions should be obvious.

mshroyer··on ZFS 2.3 released with ZFS raidz expansion
I use it on a NAS for:

- Confidence in my long-term storage of some data I care about, as zpool scrub protects against bit rot

- Cheap snapshots that provide both easy checkpoints for work saved to my network share, and resilience against ransomware attacks against my other computers' backups to my NAS

- Easy and efficient (zfs send) replication to external hard drives for storage pool backup

- Built-in and ergonomic encryption

And it's really pretty easy to use. I started with FreeNAS (now TrueNAS), but eventually switched to just running FreeBSD + ZFS + Samba on my file server because it's not that complicated.

mshroyer··on MicroPython on Flipper Zero
> The whole microchip registry thing is a mess, though. There's no authoritative database and I'm certain that the database entry for my cat is at some shelter where he was briefly held.

Yeah it is a mess, but my vet told me they use this to search across the dozens of registries in the United States: https://www.aaha.org/for-veterinary-professionals/microchip-...

That form is able to find my cat's microchip information in both the registries I have her on, for example. But yes, I was surprised the pet microchip scene isn't more consolidated. Like bicycle registrations are, where the two major U.S. players are https://bikeindex.org and https://project529.com

EDIT: But I was unable to read my cat's microchip with my Flipper Zero, even though my vet confirmed it's still readable using their more appropriate tool for the job.

mshroyer··on Did you lose your AirPods?
Same here. They sounded "off" for a while, but returned to normal after a day of drying outside of the case. (I'm guessing that perhaps some water was blocking the microphones used for noise cancellation.)
mshroyer··on Why Discover is no American Express
Sorry for your loss re: your wife
mshroyer··on X debut 40 years ago (1984)
Ha, this brings back memories. Around 2003 I used either XDMCP or plain X11 forwarding over SSH to access my dorm room computer while at home visiting my parents, and later got a letter from school IT warning me about abusive network traffic.
mshroyer··on "My Bike Is Everything to Me"
Additionally, when you use a bike long enough you'll often end up making a number of tiny adjustments to it over time. The monetary value of these adjustments may be minimal—add a saddle and rack and bags that fit just right, adjust the handlebars, swap on either more supple or puncture-resistant tires depending on your needs, maybe tweak the gear ratios—but they add up to make the bike work perfectly for you.

When a bike is stolen, the difficulty of replicating this "perfect setup" can be wildly disproportionate to the cost of the bike.

mshroyer··on Automated integer hash function discovery
> Limiting itself to reversible operations gives some mathematical niceties

What are those niceties, why is a reversible operation desirable in this context?

mshroyer··on Czech republic sets IPv4 end date
That won't work if you need to access IPv6-only services (as the Czech government will make theirs). In other cases it may "work" but perform worse than IPv6.

Why the desire for a NAT? It's technically possible on IPv6 too (NAT66), but SLAAC dynamic addresses + a non-NAT firewall + possibly ULA are generally a better way to get the combination of privacy + security + local addressing I think most people associate with NAT in IPv4.

mshroyer··on Chrome now tracks users and shares a “topic” list with advertisers
Following this launch I've been test-driving both Firefox and Vivaldi. I'm surprised how few issues I've encountered browsing with Firefox, despite it not being part of the Chromium borg.

I dare say it's actually a nicer experience overall than Chrome, with the caveat that I haven't looked into battery life impact yet.

mshroyer··on Chrome now tracks users and shares a “topic” list with advertisers
Another key differentiator for Chrome, when it came out, was its process isolation model. Firefox has that too now.
mshroyer··on There have been several public library bomb threats this week
Simply calling attention to or criticizing people doesn't meet the standard for incitement to violence, and it only takes a moment's thought to understand why someone who isn't calling for violence cannot be held responsible for the actions of the violent fringe.

This is the same reason that people who criticized Brett Kavanaugh's appointment and jurisprudence are (rightly) not held responsible for the man who was arrested outside his home for attempting to assassinate him.

mshroyer··on Alphabet selling Google Domains assets to Squarespace
I've been paying a tiny amount to use Google Cloud because the handful of domains I control were registered with Google Domains, in turn because I trusted Google to run a good registrar.

Maybe there was no special reason to use Google Cloud DNS, or the other Google Cloud services I use, with Google Domains. It's been so long since I set this all up that I honestly can't remember. But I wouldn't be revisiting any of that but for this announcement that Google Domains is turning down. Now, in the process of finding a new registrar, I'm revisiting all of it.

I'm a tiny customer, less than a rounding error for Google. But this still seems like a strategic error to me. How much can it cost to run a domain registrar? How does this weigh against the goodwill and trust gained from maintaining an important service you've implicitly promised that you would maintain?

mshroyer··on Microsoft plugging more ads into Windows 11 Start Menu
Well on my work Mac I'm not signed into iCloud, and there's a permanent red notification dot, just as prominent as if I had an important system update waiting, begging me to create an account.
mshroyer··on NPR cancels 4 podcasts amid major layoffs
Heaven forbid that "Americans pick and choose which news sources they listen to".
mshroyer··on The dark defaults of Microsoft Edge
I use it because it does better than Chrome or Firefox for my laptop's battery life. It's an unwanted hassle to stay on top of these new privacy settings though, and I wouldn't recommend Edge to a non-technical family matter for that reason.
mshroyer··on A mistake that killed Japan’s software industry?
The abbreviation I know is "in-circuit emulator", but wouldn't know if that's what they were referring to
mshroyer··on Bike Frame Stiffness
My steel touring/commuter bike (not an e-bike) easily weighs more than that, at least if I count the lock and repair kit I keep attached to the frame.
mshroyer··on Laying myself off from Amazon
I can't comment on Amazon, but I find the engineering culture very similar at Meta and Google, having worked at both.

olladecarne's story lines up very well with my own experience working on a post-startup-acquisition org at Google.

mshroyer··on Apple Introduces Apple Watch Ultra
You can certainly download a GPX route from services like Alltrails to the Garmin Fenix 7 for purely offline routing—that's one of the watch's strongest features.

Additionally, you can do simple ad-hoc routing on the watch itself, while you're out on the trail, also totally offline.

For more complex ad-hoc routing, it can be easier to design a route on the Garmin Explore app on your phone and then sync it to your watch via Bluetooth. This works (also totally offline), but the problem is that Garmin Explore's UI and trail labeling kind of sucks, at least on iOS.

My preferred approach, if I'm out on a hike and want to set a new route to someplace, is to draw routes on Gaia GPS (which also has offline maps), then sync them to my Fenix 7 over Bluetooth for navigation. I wrote a Pythonista script to make this work well on iOS: https://github.com/mshroyer/pythonista-scripts/tree/master/G...

mshroyer··on Apple Watch Ultra
ClimbPro, ANT+ for my HRM/power meter/speed sensor, offline navigation, and battery life
mshroyer··on Technical reasons to choose FreeBSD over GNU/Linux (2020)
One application where FreeBSD especially shines is as a fileserver to Windows clients: Unlike on Linux, NFSv4 ACLs are supported natively!

The NT ACLs used in Windows and SMB are much more expressive than Linux's POSIX draft ACLs. When a Windows client writes a file to a Linux Samba server, it cannot necessarily express the file's ACL as a POSIX ACL losslessly. To work around this, Samba's vfs_acl_xattr saves the "real" ACL as an extended attribute: https://www.samba.org/samba/docs/current/man-html/vfs_acl_xa...

This means the ACLs set by clients won't be enforced for local users on the file server, and that you need special tools to view and edit those ACLs.

In contrast, FreeBSD supports NFSv4 ACLs on ZFS, and those are a superset of NT ACLs. Samba saves the NT ACL as an NFSv4 ACL, and this can be viewed or edited using getfacl and setfacl as with any other file on the server.

mshroyer··on Framework Laptop Mainboard
I haven't tried Fedora lately, but I had trouble with fractional scaling on Ubuntu, especially when combined with X11 apps. Ultimately this was part of what (but not the only thing that) drove me to switch to running Windows 10 on my Framework, which handles the laptop's screen resolution very well.
mshroyer··on USPS Service Standards Maps
I'd be happy to get my mail delivered, period. Just yesterday my neighbors dropped off two more items that were addressed to me but had been delivered to them by USPS.
← PreviousPage 2 of 6Next →