Programmer in NYC

  • 2 Posts
  • 60 Comments
Joined 3 years ago
cake
Cake day: May 7th, 2023

help-circle

  • 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.orgtoLinux@lemmy.mlArch or NixOS?
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 years 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!


  • Power tells you how large of a gap in grid capacity-vs-demand storage can cover while renewables are below peak production. That’s the important number, as long as the energy stored is sufficient to last until renewable output goes back up.

    Giving an energy storage number by itself could be misleading because it seems the batteries that have been built take longer than an hour to discharge. So for example 26 GWh storage does not equal 26 GW grid capacity.

    But this article, like many others does seem to be loose with the power-vs-energy metrics:

    If 6,600 MW doesn’t sound like that much, consider it is enough to supply electricity to about 6.6 million homes in California for 4 hours

    Maybe the implication is that the total energy storage is 26,400 MWh?



  • 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
    6
    ·
    edit-2
    2 years 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
    ·
    2 years 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.)