Skip Navigation
Jump
Python has a library for everything but..
  • bonus points if you're using a statically typed language but the library uses extensive metaprogramming seemingly for the sole purpose of hiding what types you actually need

    38
  • Jump
    Yup...i can confirm that
  • I think the problems there are exacerbated a lot by over-eager type coercion and other crappy design decisions inherited from almost 30 years ago

    9
  • Jump
    Piracy advice
  • importantly it's (hopefully) an ISP that operates from a less copyright-happy country and isn't tied down to tons of expensive infrastructure and long-term contracts

    13
  • Jump
    “Communism bad”
  • libertarians: "the increase in global quality of life is all because of capitalism!"

    communists: "the increase in global quality of life is all because of communism!"

    1
  • Jump
    What is your preferred API error response and why?
  • to be even more pedantic, if we follow the relevant official RFCs for http (formerly 2616, but now 7230-7235 which have relevant changes), a 403 can substitute for a 401, but a 401 has specific requirements:

    The server generating a 401 response MUST send a WWW-Authenticate header field (Section 4.1) containing at least one challenge applicable to the target resource.

    (the old 2616 said 403 must not respond with a request for authentication but the new versions don't seem to mention that)

    2
  • Jump
    that's not-
  • A key part of visual design is knowing that the users don't know what's best for themselves. They usually stop complaining after 3 months which is proof that you are correct and they are wrong!

    (sarcasm rate: 1 - ε)

    6
  • Jump
    Forgejo is now copyleft, just like Git
  • I'd opine that the MIT license has no requirements about avoiding ambiguity. That's kind of its thing, it's as unobtrusive as possible and minimizes the amount of having to think about license compliance minefields.

    And incidentally they have done quite a bit to avoid ambiguity, in readme.md:

    License

    Forgejo is distributed under the terms of the GPL version 3.0 or any later version.

    The agreement for this license was documented in June 2023 and implemented during the development of Forgejo v9.0. All Forgejo versions before v9.0 are distributed under the MIT license.

    though they also distribute binary-only copies.. the main website even recommends downloading the binary. not even a tarball, just the plain binary. which even in old versions don't contain an MIT license at all. Even a hexdump of the binary does not contain any representation of the MIT text. I think that's actually an MIT license violation?

    1
  • Jump
    Nix in 100 Seconds - YouTube
  • with another OS nix is not going to be "in control" so it's probably more limited. I'm not sure how common using nix is outside of nixos.

    also I'll point out that many other linux distros I think recommend doing a full system backup even immediately after installation, the "grep history" thing is not very stable as eg. apt installing a package today will default to the newest version, which didn't exist 1 year ago when you last executed that same command.

    1
  • Jump
    Nix in 100 Seconds - YouTube
  • with nixos, the states of all the config files are collected into the nix configuration which you can modify manually. And if there's something that can't be handled through that, I think the common solution is to isolate the "dirty" environment into a vm or some other sort of container that I think comes with nixos

    (and there's always going to be "data" which isn't part of the "configuration" .. which can just be used as a configuration for individual applications)

    8
  • Jump
    Nix in 100 Seconds - YouTube
  • assuming you have never used anything except apt commands to change the state of your system. (and are fine with doings superfluous changes eg. apt install foo && apt remove foo)

    9
  • Jump
    Nix in 100 Seconds - YouTube
  • it's replicable and "atomic", which for a well-designed modern package manager shouldn't be that noticable of a difference, but when it's applied to an operating system a la nixos, you can (at least in theory) copy your centralized exact configuration to another computer and get an OS that behaves exactly the same and has all the same packages. And backup the system state with only a few dozen kilobytes of config files instead of having to backup the entire hard drive (well, assuming the online infrastructure needed to build it in the first place continues to work as expected), and probably rollback a bad change much easier

    10
  • Jump
    It must be a silent R
  • many words should run into the same issue, since LLMs generally use less tokens per word than there are letters in the word. So they don't have direct access to the letters composing the word, and have to go off indirect associations between "strawberry" and the letter "R"

    duckassist seems to get most right but it claimed "ouroboros" contains 3 o's and "phrasebook" contains one c.

    8
  • Jump
    TIL Only about 9% of plastic ever produced has been recycled.
  • Most microplastics come from car tires and washing of clothing with plastic in them. (both abrade the plastic causing uncountable tiny pieces of microplastics to enter the water or the air)

    Then there are a lot of places that dump plastic into rivers or the ocean instead of into landfills.

    6