• 0 Posts
  • 42 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle
  • I know we’re joking… but just in case people don’t know, π, despite what we call it in English, is the letter “p”, which ought to be said “pee”, and was chosen for “periphery”. Though “perimeter” could be used as as well. Because even though we have the special word “circumference” for the perimeter of a circle, pi is the ratio of a circle’s perimeter to its diameter. As in, take diameter, multiply by magic constant p, get perimeter.



  • 😛

    I mean, pushing pennies up my nose is a transferable skill in that I could push pennies up anyone else’s nose, and I could even make a whole TV career out of a show where I push pennies up people’s noses on the street.

    So I’ll instead amend my statement to say that guile isn’t a common or often sought after skill. 😉


  • NixOS (and GuixSD) is a whole operating system. But base guix and Nix is a package manager that you can install into any existing distro and use for as many or as few packages as you want.

    So you can give it a shot in roughly no time, is what I’m saying.

    The main difference between the full system ones and the package manager ones is obviously that it manages system level packages and the kernel, but also that they have configuration systems setup to run daemons and manage system config. But other than that it’s just the same paradigm as the package manager version.


  • Yeah! I was just coming here to recommend GuixSD or NixOS! Not because they’re normal, but because they’re not, and you have an opportunity to screw around 😅

    Fedora and Debian are different but also pretty similar. Arch or Gentoo are more different. The atomics like bazzite and silverblue are even more different. And then there’s NixOS and GuixSD that are basically a completely different paradigm of how to setup a system. And that might be frustrating if it doesn’t work for you, but as a test computer go wild! Heck, try NixOS and GuixSD to experience their differences from each other!

    The only other thing I might recommend for a challenge is something like Linux From Scratch where you don’t have any distro and you just build everything yourself. Definitely not recommended for normal people! It’s a project rather than something you can just try out for a weekend. And it may be frustrating, who knows. But if you’re into that kind of thing it may be enlightening!


  • Listen, I use guix so I’m not against you, but claiming that Guile, or even any scheme / lisp, is a transferable skill is a stretch 😛

    As a software developer for 20 years, configuring guix is the only time I’ve encountered guile. And the only time I’ve used any kind of lisp is when I forced myself to during a coding challenge or advent of code thing, just for interest’s sake.

    So again, I know what you’re saying, but for me, deep in the industry, guile might as well be a bespoke language for configuring guix 😅


  • The “where I live” part is key. Because very likely this person is in SF, where they cannot buy a luxurious house cash with that money, and where cost of living eats surprisingly far into that stupid high number.

    But notably, this is why all the normal people who don’t make a half million dollars a year can’t live in SF! 😅




  • I’ve been using a printer called 4barcode for a while. It has an apt package with ppd cups drivers in it, and it works well.

    I don’t know the exact model, and I think the brand of the printer might not even be 4barcode and it’s just a different “brand” but really they’re all the same?

    That having been said, the one I have once failed to work with a brand of labels on a roll I bought in a pinch, but the fanfold ones I’ve been using from Amazon work well.


  • Yeah! It’s dope. With this new understanding I’ll circle back around. In an indirect sense the groove of a record represents how far our eardrum should be from its “silent resting position” over time. That’s it. The brain is what takes that complicated signal that varies over time and makes something it recognizes out of it.

    And then the information encoded on a CD, or magnetic tape, or in a compressed audio file is just the same thing: distance of eardrum from neutral over time.

    Oh, and stereo and surround sound and all that is just different audio tracks that play out of different speakers at a synchronized time. Again, it’s our brain that notices it hears a flute in the left ear very slightly before it hears it in the right ear and thus feels like that means there’s a flute to our left. But there’s nothing “flute left” about either individual signal, they’re just different audio that we detected a slight difference in from ear to ear.


  • Yeah! The “timbre” (which despite how it looks is said “tamber”) of an instrument is its audio “profile”. It’s what makes a piano different than a flute, or on a more subtle level makes one piano slightly different from another.

    But here’s the nuts part: what makes up the timbre of an instrument is a bunch of different resonating bits all resonating together. Essentially the reason a flute sounds like a flute is because it comes “pre-loaded” with a boatload of simple waveforms already added together. When you play a note on one, you get the main pitch you’re playing, but the instrument’s body and your breath all also produce a whack-ton of side tones all playing at the same time. And like a fingerprint, our ear/brain hears all these bits start and stop together and says “that’s a flute”.

    So it’s the same process, really: simple bits adding together. But “flute sound” isn’t the atom. It’s made up of a bunch of simple waves already added together, which then gets added to the other sounds that sound like pianos or guitars, which produces the final mix.

    I don’t know if you’ll get anything out of it, but you could look up videos of a “modular synth” setting up a trumpet sound or something. These devices have simple electronic tone generators, but by layering them and plugging them into each other, and using effects and the like, they can start to mimic the timbre of a trumpet or whatever. By essentially adding together the “key bits” of the harmonics (these other waves) they can start to approach the feeling of a trumpet sound, but just with simple, raw, parts.


  • psycotica0@lemmy.catoScience Memes@mander.xyzFeeling that groove
    link
    fedilink
    English
    arrow-up
    41
    arrow-down
    1
    ·
    2 months ago

    Highly basic answer, let’s say the strength of the vocals wave over time is:

    5, 4, 3, 2, 3, 4, 5, 4

    And drums is:

    4, 0, 2, 0, 4, 0, 2, 3

    Then you add them together for each time slice and get:

    9, 4, 5, 2, 7, 4, 7, 7

    And you put that on a record, or out to a speaker, and our ears are able to break that up into the two parts when it hears it. This is the same as when two things are in the room making sound, there may be two sources, but my ear only has one hole, and that hole has one eardrum behind it. The different sounds just add their powers together and hit my ear as one mixed wave.

    Alternative answer: magic


  • And for beginners, a flatpak is a particular way of bundling software so that:

    A) all of the dependencies come with the program so you can just download one thing and run it

    and

    B) it has some level of sandboxing, which means you have some level of control over what the software you downloaded has access to on your machine. In theory.

    So what they’re saying is that if some software you want isn’t already bundled as a flatpak, you’re going to have a hard time with bazzite, as it’s geared around making flatpaks easy, and requires more work to install things using other methods. Still works, just not as easy.




  • I think the slightly more charitable division is “nerds who want to work on the tool” vs “nerds who want to use the tool to work on something else”

    Some people want their discord chat to work with little effort or errors because what they’re actually interested in is some video editor, or something. And if the chat is broken, it prevents then from getting to what they really want.

    I personally use XMPP, so this isn’t just to clear my own name, or anything.



  • git log will only show you commits in your history. If you’re only ever working forwards, this will contain all the stuff you’ll ever need.

    But if you’re rewriting history, like with a rebase or squash or something, or you’re deleting branches without merging them, then you can run into a situation where the official history of your branch doesn’t contain some of the commits that used to exist, and in fact still exist but are unlinked from anywhere. So reflog is the log of where you’ve been, even if where you’ve been isn’t in the official history anymore, so you can find your way back to previous states even if there isn’t otherwise a name for them.

    If all you care about is your current history, git can use the dates of commits just fine to see where you were on Thursday without needing the reflog.


  • Maybe I’m just a wizard, or I don’t know what y’all are talking about, but rebases aren’t special. If you use git reflog it just tells you where you used to be before the rebase. You don’t have to fix anything, git is append only. See where the rebase started in reflog, it’ll say rebase in the log line, then git reset --hard THAT_HASH

    Pushing without fetching should be an error. So either they got the error, didn’t think about it, and then force pushed, or someone taught them to just always force push. In either case the problem is the force part, the tool is built to prevent this by default.

    Continuing after merge should be pretty easy? I’d assume rebase just does it? Unless the merge was a squash merge or rebase merge. Then yeah, slightly annoying, but still mostly git rebase -i and then delete lines look like they were already merged?