• 0 Posts
  • 7 Comments
Joined 8 months ago
cake
Cake day: February 6th, 2026

help-circle
  • Holy overengineering, Batman. IP addresses of all things are trivially parseable into fixed-length byte sequences. Just do that and use a search tree. Or, IDK; this is an extremely solved problem, there are probably even better solutions out there – but I promise you text regex is involved in none of the good ones.

    Even for actual string matching, any decent regex engine will compile and optimise an alternation a|b|c|... better than this text wrangling will. Unless you have actual benchmarks showing this gives you an advantage with the engine you’re using, you’re just introducing complexity for no gain.


  • I’m no expert but I believe ffmpeg will be using the rawvideo decoder to read that file. If it appears to work I guess the stream output by v4l2-ctl happens to match up closely enough with the default parameters listed in that doc, you may want to work out what it is and double check compatibility though.

    The difference from a regular container is that it’s uncompressed (hence the size) and can’t include any metadata (hence the need to specify parameters manually). v4l2-ctl writing in this format means it doesn’t need to worry about compressing and encoding the video on-the-fly, which would complicate the implementation and might not always be feasible in real-time.

    If you wanted to avoid the intermediate file you should be able to pipe v4l2-ctl directly into ffmpeg.


  • apparia@discuss.tchncs.detomemes@lemmy.worldChinese models
    link
    fedilink
    English
    arrow-up
    57
    arrow-down
    2
    ·
    1 month ago

    OC is apparently a Reddit post explicitly stated by the author as being AI-generated.

    Before finding that, the lack of an artist mark, tacked-on caption, missing colouring on the left woman’s skirt, and general face vibes were flags for me, but we’re at the point where even a pretty low-effort affair like this is good enough to make it ambiguous.



  • I’m surprised how many people seem offended by this comic. I found it pretty relatable. That doesn’t mean I “don’t understand context”, or think the writers were bad people, or that the shows aren’t worth watching. It just means I find it personally unpleasant to find these jokes in a work I’m otherwise enjoying.

    When kids study older literature and media in school, generally when there’s a slur or racist reference or joke, the teacher will stop and explain the context and get the kids to reflect on it and why it’s probably not acceptable today. Even though I understand this and know it going in, I’m still kind of doing an abridged version of that in my head when something like this comes up in a show – I’ve been following along, laughing with the writers, and then suddenly I’m backing up and distancing myself from one joke or idea. It’s jarring, it pulls me out of the show, and it’s just not fun.

    In some cases it also comes across as incredibly lazy and unoriginal. So many sitcoms from that era have “the trans episode”, “the gay episode”, “the lecherous character” – and they all make the same unfunny jokes, and it’s a reminder than a lot of these shows, even in their time, were just not that creative. Plenty of modern shows have the same problem, but they don’t draw attention to it by having large classes of “stock jokes” that simply do not land today.