HN user

pjz

88 karma
Posts1
Comments51
View on HN
Show HN: 18 Words 13 days ago

I'd appreciate a 'shuffle' button that just re-mixed-up the letters into a different order. I find this keeps me from obsessing on adjacent letter pairs that my eyes/brain lock onto.

Mise: Monorepo Tasks 10 months ago

having to eff around with the crap show of Ruby/Python/Node envs and how every person likes to use different tools for setting those up

This was the problem I wanted to solve, and I ended up on nix+direnv (and am considering devenv) because nix, due to the existence of nixos, packages all the tools already! Does Mise support zig? or nim? or crystal? Nix does! And Nix will continue to keep up to date with all the tools, whereas things like asdf and mise - since they're specialized and not the basis of a full distro - are less likely to do so.

The practical problem with logging by time is that it's not resource constrained: holding N seconds of logs, even when each line is a bounded size, takes potentially unlimited memory. Logging 'by count' used a bounded amount of memory, and is easy to implement with a fixed size array in memory.

The problem with the 'characters are just numbers' approach is that they're not _just_ numbers.. with the advent of unicode, they're _sequences of numbers_... so bytes thus can mean different things when part of a a sequence than when standalone.

That said, since they're numbers, we should use the most efficient checks for them... which are likely vectorized SIMD assembly instructions particular to your hardware. And which I've seen no one mention.

Stay Gold, America 2 years ago

The logical endgame of that approach is to have a big tug-of-war between two big coalitions

...why just two? He specifically mentioned advocating for ranked choice voting, which would make it a tug-of-war between N coalitions, and would lead to better outcomes that our current broken two-party system.

Ghostty 1.0 2 years ago

Crashing due to lack of a sufficient terminfo is indeed more of a lazydocker problem than a ghostty problem. See the issue above for a workaround.

And why 32 entries? I ran this benchmark with a bunch of different bucket sizes and 32 worked well. I have no idea why that worked out to be the best.

If you were using 2-byte ints, this is likely because cache lines are 64 bytes, so 32 entries would be exactly one cache line, letting each cache line hold an entire bucket, thus reducing those expensive main memory transfers.

Besides the obvious attention play, he might be going for an acquisition play... "Why bother writing our own iMessage for Android when we can just buy this little company that's already done it?" There's obvious issues with that plan, but that doesn't keep delusional founders from being delusional.

re: presentation remote controls:

  Look into remote controls for, say, Kodi.  You're sure to find the wiki listing a bunch of ways to control Kodi from your couch, which includes bluetooth remotes of various flavors that should meet your needs.
re: zigbee being underused:
  ...they're expensive.  I don't know if it's licensing or what, but zigbee SoCs are 5-10x the cost of, say, an ESP32 wifi SoC. $10ish each vs $1.25 ea at a quick glance.

Yup. I've used Linux for a couple decades of writing python and Java. I've gone from dwm to wmii to i3. Latest gig gave me an M1 macbook, and I tried to use it... 6mo later I ask for and received a replacement linux box. Reasons?

* keybinds - why is it impossible to remap anything with their special meta key? * task switching - alt-tab/cmd-tab/whatever treats full-screen apps different than non-fs apps, unless you find and install an app to fix just this one thing * WM - I'm a tiling wm fan, and nothing came close to the usability of i3 * docker - x86 docker hosts are defacto standard and it's a pain to double/multi build every container for M1 as well as x86

I'd complain about the keyboard but I mostly use an external one so no big deal.

Linux support on the latest Dell hasn't been all roses; the wifi is still only about 80-90% stable after long (12+) hours of inactivity, and the touchpad driver spammed interrupts or something enough to crash the kernel (but the touchscreen driver is pretty stable, so I just disabled the touchpad).

Still, I can get a lot more done when I'm in control.

Does IMAP search not give you most of this functionality? I wrote a little mh-like cli for IMAP awhile back (https://github.com/pjz/mhi) that lets me search just fine, though it's admittedly single-folder-at-a-time search. I did make it composable though (eg. `pick` returns a valid message-list`, so I can `scan $(pick from somesender)` or `rmm $(pick from knownspammer)`

I use thunderbird for most of my email reading, and MHI for searching and scripting. I set up a cron job on an always-up machine that does periodic auto-refiling for me; it's not quite 'on receipt' actions, but it's still handy.

My understanding is that while it used to be true that manual transmissions were more efficient due to humans keeping the engine in the torque sweet spot, it's no longer true since automatics can have so many more gears than manuals. And that's not even considering something like a CVT, which I understand can be even more efficient.

I worked at a place where we had an open dev/support slot for multiple months to cope with increased load due to our success. In the meantime we all just did more support and less dev. My suggestion to management that the existing team split the salary of the open rec until it was filled (since we were doing the work anyway) was met with just short of outright laughter.

I've been doing this for a few years now and definitely agree! I use .home.git as my .git-aside name and also named the access alias 'homegit'.

I didn't know about `git config --local status.showUntrackedFiles no` so I just put '/*' into .home.git/info/exclude, and then of course tracked that in itself by adding '!/.home.git/info/exclude' in there too.

It's been amazingly useful when acquiring a new laptop, or wanting to quickly set up a comfortable environment on remote machines.

Interestingly, I got it from a Stackoverflow answer (https://stackoverflow.com/a/27336975/8002) and not the atlassian tutorial you listed.

Other things (besides time & current inside temp) that a thermostat could (should?) use: sunrise/sunset time, hourly weather forecast, current & projected house power usage, current & projected grid power usage

Note that almost all of those inputs are going to be identical for people in the same area, so as others mentioned building in some jitter is necessary.