• 0 Posts
  • 115 Comments
Joined 7 months ago
cake
Cake day: June 10th, 2024

help-circle
  • balsofttoNix / NixOS@programming.devNotes on Nix
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 hour ago

    This is a pretty good list of tutorials for Nix (as the package manager thingy) (not NixOS): https://nix.dev/tutorials/#tutorials

    Here’s a tutorial for the Nix language: https://nix.dev/tutorials/nix-language

    As for the configuration.nix file, TBH, once you understand the Nix language you can just go around and look at what other people have written to get the inspiration. There’s a list of NixOS configs here: https://wiki.nixos.org/wiki/Configuration_Collection. Some of them are quite complex (as is mine), but you can start with something simple, maybe like this: https://bitbucket.org/bzz/nixos/src/master/configuration.nix . It will give you an idea of how to set config options and how the imports system works. To then see which config options are out there, look at https://search.nixos.org/options , you can search for anything you like (e.g. services, programs, networking, random system configuration stuff). You should never ever edit anything in /etc other than configuration.nix manually, always look for config options to do it.

    There’s technically documentation about it here: https://nixos.org/manual/nixos/stable/#sec-configuration-file , which can be helpful, but it’s also kinda long for what it tries to explain.

    Once you get the basics, you can look into flakes to replace stateful channels, making your configuration more modular to reuse it across multiple machines (now it’d be time to look at those more complicated configs), using home-manager to also manage your $HOME (so that you don’t have to touch ~/.config manually either), and maybe even impermanence to make your system reset to whatever is in your NixOS config on every reboot, erasing any accidental edits to configs, to make sure that your configuration reflects what exactly you want from your machines.



  • balsofttoAsklemmyWhat's your favorite unbelievable fact?
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    2 hours ago

    But instead, the device turns on (nearly) instantly. Because the wire isn’t actually what causes the device to turn on

    That’s not exactly true. In this case, the energy transmission would go like this: (change of electric field in the little bit of wire next to the power source) -> (change of magnetic field in the air between the wires) -> (change of electric field in the wire next to the load). This limits the amount of energy transmitted significantly and incurs a lot of losses, meaning if you had something like a lamp plugged in it would start glowing extremely dimly at first (think about how some cheap LED lights keep glowing even with the switch off - it’s similar, albeit it happens due to inter-wire capacitance and not induction). It would then slowly ramp up to full power over a course of a year.

    Here’s a video from the same person about it: https://www.youtube.com/watch?v=2Vrhk5OjBP8 (although I haven’t watched this yet)

    Edit: after watching the video, I think I was actually wrong in a couple of my assumptions. First of all, it looks like the reason for the initial energy transmission is wire capacitance and not induction, so (electric field in wire) -> (electric field in air) -> (electric field in wire, in the “opposite direction”, but because the wire goes back and forth it’s the same current direction). This means that my LED example is even more potent. And the second one is that because it’s capacitance and not induction, this means that there’s no slow ramp-up, it just makes the light glow very dimly all the way until the electric field makes it through the wire, and then it ramps up very quickly.


  • The Fed Board, apparently: https://www.federalreserve.gov/monetarypolicy/reservereq.htm

    After reading through that page and the FAQ, I think it’s because the banks should now be compelled to held reserves because Fed pays them a reasonable interest (close to what they would get if they give a very low-risk loan) on them, rather than it being a strict requirement. I don’t know enough about economics to have an opinion on whether it’s a good idea, but I feel like it’s not too horrible? Like, maybe it makes some shitty banks even more susceptible to bank runs, but that’s the reality of fractional reserve banking in general.



  • balsofttoAsklemmyWhat's your favorite unbelievable fact?
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    15 hours ago

    It’s actually 0.06 microseconds (0.00000006 seconds) per day, or ~22 μs (0.000021915 s) per year.

    Also, technically, anything moving up or down in Earth’s gravitational field while physically connected to it is having an effect, however it’s usually to small to be reasonably measurable.

    (I wonder what would happen if the rotation speed was changed by 0.06 seconds per day - that feels like a lot, adding up to 22 seconds per year, but would anyone except timekeeping nerds actually notice? I don’t even know how to begin figuring something like that out.)


  • balsofttoAsklemmyWhat's your favorite unbelievable fact?
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    15 hours ago

    Therefore a graduated cylinder that is 10m tall needs to resist the same amount of force as a dam 10m tall regardless of how much water is behind the dam. Even a thin sliver of water 1mm thick and 5m tall has the same force as a 5m lake behind the dam.

    Technically only the pressures are equal, and the actual force will be linearly dependent on the area of the dam (or the surface area of the cylinder). That’s why you can make a tall water tank with relatively thin walls, but an actual dam will have to be quite thicc to handle the tensile/compressive stress (depending on the shape of the dam).







  • balsofttoMemesinstance wars
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    8 days ago

    Engagement is just “emotional involvement or commitment”, it’s not necessarily “corporate media framing”. Capitalist platforms abuse this for profit (as they do with everything good), hopefully we can use it to create stronger communities.





  • balsofttoMemesThe feast
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    edit-2
    26 days ago

    Thinking that the current Russian government is communist/socialist is peak brain rot. It is a nepotist police state with conservative/neoconservative social policy (religion, nationalism, anti-LGBT) and a neoliberal economic policy (capitalism). It’s almost an exact opposite of the ideas behind the hammer and sickle.


  • balsofttoMemesThe feast
    link
    fedilink
    arrow-up
    7
    ·
    26 days ago

    Don’t get “rest of world” mixed in there; I mean sure, all governments suck in one way or another, but most of them at least aren’t imperialist.



  • balsofttoMemesThe feast
    link
    fedilink
    arrow-up
    1
    arrow-down
    10
    ·
    edit-2
    26 days ago

    An @lemmygrad user not knowing what USSR/СССР stands for is so funny to me for some reason (it’s the Union of Soviet Socialist Republics/Союз Советских Социалистических Республик). The difference between a united republic and a union of republics is kind of the reason it was so easy to tear apart in the end, any constituent republic could quit the union at any time.