[-] hallettj@beehaw.org 13 points 11 months ago* (last edited 11 months ago)

I did some digging around in the manual, and I tested this option which seems to work:

security.pam.services.doas.fprintAuth = true;

On my machine that adds this line to /etc/pam.d/doas:

auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)

Edit: Note that the NixOS option puts in the full path to pam_fprintd.so. That's necessary because NixOS doesn't put so files in search paths.

Without doing more research I don't know how to add arbitrary options to pam files in case you run into something that isn't mapped to a NixOS option yet. The implementation for the pam options is here; there might be something in there that would work.

[-] hallettj@beehaw.org 28 points 11 months ago

Wayland replaces the older X protocol. It doesn't have to operate with older protocols. You might be thinking of XWayland which is a proxy that receives X API calls from apps written for X, and translates those to the Wayland API so that those apps can run under Wayland implementations. Window managers can optionally run XWayland, and many do. But as more apps are updated to work natively with Wayland, XWayland becomes less important, and might fade away someday.

PipeWire replaces PulseAudio (the most popular sound server before PipeWire). Systems running PipeWire often run pipewire-pulse which does basically the same thing that XWayland does - it translates from the PulseAudio API to the PipeWire API. It's a technically optional, but realistically necessary compatibility layer that may become less relevant over time if apps tend to update to work with PipeWire natively.

So no, both Wayland and PipeWire are capable of operating independently of other protocols.

[-] hallettj@beehaw.org 18 points 1 year ago

Debian unstable is not really unstable, but it's also not as stable as Ubuntu. I'm told that when bugs appear they are fixed fast.

I ran Debian testing for years. That is a rolling release where package updates are a few weeks behind unstable. The delay gives unstable users time to hit bugs before they get into testing.

When I wanted certain packages to be really up-to-date I would pin those select packages to unstable or to experimental. But I never tried running full unstable myself so I didn't get the experience to know whether that would be less trouble overall.

[-] hallettj@beehaw.org 13 points 1 year ago

This points to an interesting feature that appears in English: phrasal verbs. This is where a verb is made up of a verb word used in combination with one or more prepositions or "particles". For example in the phrase "put cheese on the pizza" the verb word "put" combines with the preposition "on". (There is no particle in this example.) Even though the words "put" and "on" are not consecutive, and even though "on" has its own function as a preposition, "put on" together form a verb that is lexically distinct (has different meaning and rules) from "put" used with a different preposition or particle.

IIUC you even get a different meaning if you use the same words with a different function. With "on" as a preposition you get, "put cheese on the pizza". But with the particle form of "on" you get a different verb with a different meaning: "put on a coat".

The use you posted, "put cheese", looks like a transitive form of "put" which would be distinct from both of the phrasal verbs I described. My guess is that this is dialect-specific: maybe some English speakers perceive transitive "put" as valid, while others only use "put" as part of a phrasal verb.

Language is messy, and there is no authoritative set of rules for English so you'll find lots of cases where people disagree about correct grammar. One of the classics is whether "where" substitutes for a prepositional or a noun phrase. Lots of people feel it is correct to say, "Where is that at?" while others think that sounds wrong, like saying, "It's at by the corner." (I think this might be the basis for the made-up rule, "don't end sentences with a preposition".)

[-] hallettj@beehaw.org 15 points 1 year ago

Maybe a better case study would be figs since people actually eat those. From what I'm seeing in search results there is some difference of opinion, but maybe the prevailing opinion is that figs are fine for vegans because they are not intentionally exploitative or cruel to animals.

[-] hallettj@beehaw.org 18 points 1 year ago

I think the takeaway from that episode is that many carbon offsets are scams, not necessarily all. So don't take corporate claims that they offset their emissions at face value, and consider carefully before you buy offsets.

Take a look at my other comment about Wren and Wendover Productions. (This John Oliver episode happens to include an excerpt from the Wendover piece I mentioned.)

[-] hallettj@beehaw.org 15 points 1 year ago

It looks like it's made by the same team that made Journey

[-] hallettj@beehaw.org 53 points 1 year ago* (last edited 1 year ago)

I'm finding this mess interesting: the MAGAs vote and debate like a third party, which kinda gives us a House with no majority party which is something we usually don't get to see in America. And we're getting the deadlocks that come from a chamber that isn't willing to form a coalition - or at least not a reliable one.

I just hope the next speaker candidate doesn't try for the same Republican-MAGA coalition. Although I'm prepared to be disappointed. Do you think there's any chance a Republican would offer to sideline the MAGAs to get support from Democrats?

Under this analysis the Democrats have a plurality. How does that tend to work out in governments with more than two parties?

[-] hallettj@beehaw.org 14 points 1 year ago

I've seen NixPak which I think would be just what you want, except that it's for Nix instead of Gentoo. But Nix has the same features that you say you like in Gentoo.

[-] hallettj@beehaw.org 25 points 1 year ago

I remember finding this Practical Engineering video on Roman concrete to be informative: https://youtu.be/qL0BB2PRY7k?si=5exDGyEK_LTfGNOy

Veritasium also has a chapter on ancient concrete in this video: https://youtu.be/rWVAzS5duAs?si=EJ8rPDTPHlq90kgW

My memory is fuzzy, but I think some of the details are:

  • We know how to make Roman concrete, but it's not necessarily the best choice, and it might be more expensive than is appropriate for a given project.
  • Ancient structures don't have rebar, so they don't degrade due to rust causing expansion. But rebar is so useful that it's often a worthwhile trade-off.

Definitely see the other comments here about survivorship bias, and higher demands on modern structures.

20
submitted 1 year ago by hallettj@beehaw.org to c/linux@lemmy.ml

I'm using a PaperWM which is a scrolling window manager extension for Gnome, and I love it! But it's an extensive extension which means it is sometimes brittle. I've thought it would be nice to find a window manager that is natively designed with a workflow that I like. There don't seem to be any actively-maintained scrolling window managers out there. But scrolling is kind of a special type of tiling - I was hoping that someone with tiling experience could give me some tips on how to configure Hyprland, Sway, or something else to customize it for my particular working style.

I've realized that generally what I want is to be able to look at 2 windows at a time. But often I want to keep one of those windows in view, while swapping out the second window. For example,

  • When programming I want to keep my editor in view while switching between a terminal or a browser as my second window.
  • When researching I have a browser window in view, and for my second window I'll switch between my notes app, my todo list, my password manager, a map, etc.

And there are some features I'd like,

  • When programming I'd like to be able to make my editor full screen sometimes, and be able to quickly switch back to editor-and-terminal side-by-side.
  • When there are more than 2 windows on my workspace I'd like the ones I'm not looking at to go away without having to think about moving them to a specific other workspace.
  • When I open a new window I'd like to automatically see that window next to the previous window I was looking at, ideally moving other windows out of the way instead of making my previous window smaller.

I know most of this could be done with two monitors. But I have one ultrawide instead. Besides, I'd like to be able to use a 3/4-1/4 or 2/3-1/3 split in some cases.

So what do you think? Do you have a workflow that you love that you'd like to share?

15

My family needs a second car. I'm thinking about a used Chevy Bolt or Nissan Leaf so I think the cost will be about $20,000.

What's a good source for financing? I was thinking about getting a loan from my bank, Chase. But I see there are also lenders that specialize in car loans, and there might be dealership options? My credit score is over 700.

10
submitted 1 year ago by hallettj@beehaw.org to c/chat@beehaw.org

It's a story as old as time. I moved into a new place with great fiber internet - but the modem is in the garage, my desktop PC is not, and the place is a rental so I have limited options for making modifications. The signal is not bad, but I'm getting dropouts.

Since the PC and router are fixed in place I thought maybe a directional antenna or two would help? 5GHz directional antennae are kinda scarce which makes me wonder if I'm on the wrong track. Does this new "beamforming" thing supersede directional antennae?

I have 802.11ax (a.k.a. Wi-Fi 6) on both sides of the connection. Maybe I could upgrade to Wi-Fi 6E and give 6GHz a go? Maybe that would be worse due to the intervening wall...

[-] hallettj@beehaw.org 52 points 1 year ago

That advice does not literally refer to interface the programming language feature. It means to test the observable behavior of a component, not internal implementation details.

In your example, write tests for both Rectangle and Triangle that call area, and assert the result is correct. But do not test, for example, the order of mathematical operations that were run to calculate the result. The details of the math are an internal detail, not part of the "interface".

[-] hallettj@beehaw.org 13 points 1 year ago

Yeah, I've had similar anxiety recently choosing a new place for my family to live. I think keep in mind that if both choices seem like good options you're likely to get some good outcomes either way. My wife put it like this,

What's nice is the way the human brain works, down the road we'll be thinking, "I'm glad we made this choice because then X happened."

view more: next ›

hallettj

joined 2 years ago