• 2 Posts
  • 448 Comments
Joined 2 years ago
cake
Cake day: August 4th, 2023

help-circle




  • Yeah, I think “a slice of bread” is a lot more common than “a bread slice”. Not to say I haven’t ever heard “a bread slice” used. I’m sure I have at least a few times. It would be pretty rare, however.

    Though, I’m not sure “a pizza slice” is all that much more common. Maybe there are regions where it’s very common? Or maybe it’s more common in certain contexts? Like maybe sell-by-the-slice pizza places might tend to refer to “a pizza slice” rather than “a slice of pizza” when talking with coworkers? (That said, I’d imagine they’d just shorten it further to “a slice” since the “pizza” part would tend to be obvious in that case.)

    Also, @eager_eagle@lemmy.world mentioned “water bottle”. I think if I hear “a water bottle” rather than “a bottle of water”, I’m probably going to assume it may or may not be an empty bottle intended for water rather than a bottle filled with water as “a bottle of water” would imply.

    Way off the topic of programming, but linguistics is fascinating too!


  • The Go programming language documentation makes a big deal about how it “reads from left to right.” Like, if you were describing the program in English, the elements of the Go program go in the same order as they would in English.

    I say this as someone who likes Go as a language and writes more of it than any other language: I honestly don’t entirely follow. One example they give is how you specify a type that’s a “slice” (think “list” or “array” or whatever from other languages) of some other type. For instance a “slice of strings” would be written []string. The [] on the left means it’s a slice type. And string on the right specifies what it’s a slice of.

    But does it really make less sense to say “a string slice”?

    In Go, the type always comes after the variable name. A declaration might look like:

    var a string
    

    Similarly in function declarations:

    func bob(a string, b int, c float64) []string { ... }
    

    Anyway, I guess all that to say I don’t mind the Go style, but I don’t fully understand the point of it being the way it is, and wouldn’t mind if it was the other way around either.

    Edit: Oh, I might add that my brain will never use the term “a slice of bytes” for []byte. That will forever be “a byte slice” to me. I simply have no choice in the matter. Somehow my brain is much more ok with “a slice of strings”, though.


  • I’ll try to say this delicately enough to not get banned…

    The modlog (which also contains the full text of my post) cites as the reason for the removal of my post “rule 1” which according to the sidebar is “Be civil and nice.”

    I think they consider any criticism of the government of Iran to be “incivility” and/or “meanness”.

    (Hopefully I’m not misinterpreting the mods here. Mods, please feel free to step in and correct any such misrepresentation.)










  • I’m not sure I’ve ever worn a pair of pants that didn’t do that. That’s just something pants do. To the point that nobody is going to see that and think you’ve got a boner. (Unless you do, of course, but even then probably only if you’re in a position that wouldn’t ordinarily produce that wrinkle/bulge or your boner is visible in a different spot than that wrinkle/bulge or something.) I wouldn’t worry about it. Even if you do some fancy tailoring to address it, I think what you’ll end up with will look worse than it would if you did nothing.


  • I was GM’ing this game. The premise was that the goddesses created the world as this perfectly idyllic place – an absolute utopia that I frequently compared to Mayberry RFD – until the shit hit the fan. An ancient evil awakened and turned it into an absolute post-apocalyptic wasteland. Except for the single most populous city which the goddesses managed to shield from the corrupting influence of the ancient evil (before themselves succumbing to the corrupting influence). (A few fortunate pockets here and there also escaped the corruption.)

    The PCs were the most murder-hobo of murder hobos. There was a town of halflings who continued their happy lives from before the calamity by day but turned into demons by night, not remembering anything come morning. The party marched them all (children included) into the schoolhouse, barricaded them in, and set fire to it. When they ran across a few dwarves who had retained their sanity, they robbed them blind. In the one city which was fully shielded from the ancient evil, they fireballed a procession of a dozen or so devout monks to take out one cultist hiding among them. That all just to name a few of their heinous crimes.

    Of course, in response to all of this, the central city put out arrest warrants on the party. They were going to be dragged into court and hung out to dry whether they liked it or not. I had a whole court scene planned.

    But it never happened.

    They sneaked into town, publicly executed the mayor and the sheriff, and installed the local crime boss as the new mayor.


  • I haven’t watched the video yet, but just because it’s relevant to the topic…

    I used to stream to Twitch with just ffmpeg. No OBS or anything.

    I mostly did speedruns, and I needed a timer, so I wrote my own. I had ffmpeg read the current time to display from a file in /tmp/ and had a Go program that would write to that file at the same rate as the framerate at which I was streaming. Worked really well, actually.

    I also made some videos (mostly tutorials for pulling off certain glitches in The Legend Of Zelda: Breath Of The Wild) and put them on YouTube. I edited those entirely with ffmpeg and a pretty simple Bash script.

    I’m definitely not going to claim they were what you might generally recognize as “well-edited” videos, but they did the job. And I definitely wasn’t really looking to “make it big” on YouTube or anything, so I wasn’t looking to polish my videos.

    Here is one of my videos for reference. And here is a clip of a VOD from one of my streams that demonstrates the timer I mentioned.