Programmer in NYC

  • 2 Posts
  • 43 Comments
Joined 1 year ago
cake
Cake day: May 7th, 2023

help-circle
  • I’ve been reading about increasing unionization and strike activity, leading to better deals for large groups of workers. The industry-level negotiations we’re already seeing are helpful in isolation; but that’s also the kind of energy that can lead to economic reforms that have a real impact on quality of life. Workers seem like the little guys, until a lot of them are pulling in the same direction, and then suddenly their demands become existentially important.

    About a century-ish ago Americans were worse off than they are now. That led to desire for change, which led to decades of trust-busting, unionization, and regulation. We got things like weekends off, and a livable minimum wage. And not entirely unrelated, we also got national parks, the EPA, and endangered species preservation. We’ve back-slid a lot since those advances. But we can get them back, and push the needle even further next time. We did it before, we can do it again.



  • 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.


  • PaperWM has columns - you can move multiple windows into a column (Super+I by default, or Super+O to move a window out of a column). When you move windows left or right or resize horizontally the column moves or resizes as a group. That’s the only feature that groups windows.

    I mention Niri because I’m interested to see more implementations of the same idea. The only other scrolling window manager I know of is CardboardWM which is long dead. A native implementation like Niri might be able to explore ideas that are difficult to implement in an extension.


  • I’ve been using this for maybe a couple of years, and I love it! I like that windows stay at the sizes I set them to, and at the same time I can put as many windows in a workspace as I want.

    PaperWM is not bug-free, but an active dev community has grown around it, and they do a lot of work to keep it running as smoothly as possible. That includes the essential task of working around breaking extension API changes when new Gnome releases are coming.

    I’ve also been keeping an eye on Niri which applies the same idea to a standalone window manager. I haven’t switched because Niri doesn’t currently implement XWayland. But it looks like Wine is getting closer to native Wayland support so XWayland might not be a requirement for me for much longer.


  • hallettj@beehaw.orgtoLinux@lemmy.mlArch or NixOS?
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    10 months ago

    I want to make a small correction - this is not true:

    iirc I had to reboot every time for it to be applied while with Arch you can just install something and run it immediately.

    nixos-rebuild behaves like most package managers: it makes new packages available immediately, and restarts relevant systemd services. Like other distros you have to reboot to run a new kernel.

    And cleaning up Steam games is as issue with most distros too. But I kinda see your point.

    Btw Nix (both NixOS and the Nix package manager running in other distros) has this feature where you can run packages without “installing” them if you just want to run them once:

    $ nix shell nixpkgs#package-name
    

    That puts you in a shell with one or more packages temporarily installed. The packages are downloaded to /nix/store/ as usual, but will get garbage-collected sometime after you close the shell.







  • I think NixOS is awesome, but it certainly doesn’t offer “access to (basically) all Linux-capable software, no matter from what repo.” - at least not natively.

    I don’t quite agree with this. In NixOS you can write custom expressions that fetch software from any source, and stitch them into your configuration as first-class packages. So you do get access to all Linux-capable software natively, but not necessarily easily. (There is a learning curve to packaging stuff yourself.)

    I use this process to bring nightly releases of neovim and nushell into my reproducible config. Ok, I do use flakes that other people published for building those projects, which is a bit like installing from a community PPA. But when I wanted to install Niri, a very new window manager I wrote the package and NixOS module expressions all by myself!



  • 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.orgtoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    11 months ago

    There are specs for that!

    For system-wide installation the Filesystem Hierarchy Standard essentially says:

    • put it in /usr/local/bin/ if you want to drop a script somewhere
    • or put it in /usr/bin/

    Both should be in the default $PATH for most systems.

    For single-user installs the XDG Base Directory Specification says,

    User-specific executable files may be stored in $HOME/.local/bin. Distributions should ensure this directory shows up in the UNIX $PATH environment variable, at an appropriate place.

    Those locations will work in 99% of cases.

    Nothing will work for every case because Linux systems are many and varied. For example I’m on NixOS which doesn’t adhere to that particular provision of XDG, and doesn’t adhere to any of FHS.


  • hallettj@beehaw.orgtoAsklemmy@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    There are a few history channels I enjoy:

    • History Buffs
    • History Matters
    • Extra History

    For the rise and fall of modern empires: AntsCanada

    If you’re interested in history, but specifically in relation to painted works of art, I very much enjoy: Art Deco

    For in-depth social justice analysis: ContraPoints

    For gamers: TierZoo


  • 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.)