• 12 Posts
  • 328 Comments
Joined 2 years ago
cake
Cake day: July 16th, 2023

help-circle

  • sustoPolitical Memes@lemmy.worldanon realizes we’ve been played
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    8 days ago

    When you get to the informing policy stage, much “harder” sciences like pharmacology also get the same treatment of using completely disproven crap to inform drug policy. If you look hard enough, you can almost always find a study that agrees with your wildest biases and a PhD (often even in “good standing”) who stands behind it and agrees with you.

    That there are 500 papers that find the exact opposite of your conclusion is not much of an issue when you’re acting in bad faith and have a friendly media outlet to voice your views


  • sustoProgrammingC Programming: Pointer Analogy
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    10 days ago

    It’s a technicality about the pointer type. You can cast the type away which typically doesn’t change the actual value (but I’m pretty sure that causes undefined behavior)

    For your example, int x = 0xDEADBEEF; signifies the integer -559038737 (at least on x86.)

    char *p = (char*)0xDEADBEEF; on the other hand may or may not point to the real memory address 0xDEADBEEF, depending on factors like if the processor is using virtual or real addressing, etc


  • Lots of em-dash usage

    Service goes down after emitting an event but before persisting internal state—causing partial failures that are hard to roll back.
    Subscribe to an existing event and start processing—no changes to publishers.
    Helps track a request across multiple services—even through async events.
    We once had a refund service consume OrderCancelled events—but due to a config typo, it ignored 15% of messages.
    Takeaway: fire-and-forget works—until someone forgets to monitor.
    Use it when the domain fits—fan-out use cases, audit logs, or workflows where latency isn’t critical.

    combined with other chatgpt-isms like the heavy reliance on lists, yeah safe to say it’s mostly AI generated


  • sustoC++Safe array handling? Never heard of it
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    16 days ago

    what kind of psychopath even came up with int a[ROWS][COLS] = { 0, 1, 2, 3, 4, 5, 6, 7 };

    it’s even obviously caught by -Wall (-Wmissing-braces) for both clang and gcc

    (oh, actually, g++ fails to recognize it even though gcc and clang do recognize it)

    sometimes the latter part is also caught by -fsanitize=undefined, though that goes away if you wrap the array access like so:
    printf("%d\n", ((int*)a[0])[i]); (which I’m unsure if that’s still undefined behavior, not that it’s any more sane even if it isn’t)



  • My major version updates on 2 computers with linux mint in the past few years have been just one click, wait, reboot when prompted, everything works and you barely even notice that anything changed. Though maybe I’ve just been lucky

    though the rest of the video’s takes on the linux experience for new users seems pretty accurate to me (lol downloading an application and using it requires at least a manual chmod +x and that’s the best case scenario. Maybe there’s a distro that has a solution but I have doubts (and “have everything you could possibly need in the package manager” is obviously a nonstarter))

    But the community parts seem odd to me:

    Is “just disable secure boot” a bad take? Has someone been holding everyone out on a better solution?

    and

    The only way linux is going to change is when money and development power is given to major dekstop Linux projects. It’s time to stop wasting time on customization or packaging

    is just… sure, herd all the cats into one place, make them all work together in harmony, and summon 500 million dollars out of thin air to wrap it all together. Instead of writing bash scripts everyone should be praying to gabe newell to save us lol



  • sustoScience Memes@mander.xyzPolar bears
    link
    fedilink
    English
    arrow-up
    1
    ·
    18 days ago

    I haven’t heard of .500 blackout before, and google gives conflicting info on whether it’s “necked down .338 lapua magnum” or “like .510 whisper”

    polar bears have historically been felled with “panicked shooting with ar-15”, and the “standard recommendation” seems to be “magnum rifle round”


  • sustoScience Memes@mander.xyzPolar bears
    link
    fedilink
    English
    arrow-up
    2
    ·
    18 days ago

    .44 magnum is barely on par with an intermediate rifle round like 5.56 against large game. And that’s before considering the massively lower felt recoil or the fact that a rifle is much easier to aim




  • sustoFlippanarchy@lemmy.dbzer0.comGotta be my least favorite genre
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    29 days ago

    Capitalism isn’t that nebulous, we can start with the basic wikipedia definition:

    Capitalism is an economic system based on the private ownership of the means of production and their use for the purpose of obtaining profit.[a] This socioeconomic system has developed historically through several stages and is defined by a number of basic constituent elements: private property, profit motive, capital accumulation, competitive markets, commodification, wage labor, and an emphasis on innovation and economic growth. Capitalist economies tend to experience a business cycle of economic growth followed by recessions

    Now what’s the central problem here? I’d say it’s definitely capital accumulation. The problem is that capital is power, and it has a strong tendency to grow exponentially. Once capital becomes concentrated enough, it will subvert the government via bribery and any democracy via privatized propaganda. From an anarchist perspective it’s just another unjust power structure, but veiled behind layers of false meritocracy and false consent.

    If you make it impossible for private individuals or organizations to accrue large amounts of capital, you effectively no longer have capitalism but you may still have a market economy.


  • sustoPythonwhat does pip do to not suck?
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 month ago

    I think this is talking about basic functionality, eg. can you do basic stuff with a clean install without everything immediately breaking

    There’s a lot of programming tools that are primarily developed for and on linux, and “windows support” is an afterthought which will result in linux being a very frictionless experience but windows being a minefield of problems and requiring careful manual setup


  • susto196@lemmy.blahaj.zoneStay rule
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 month ago

    The earth is rotating, which is a non-inertial reference frame. Fido simply uses its own reference frame, which following the command is now inertial. The result is that Fido is no longer affected by gravity, and slowly floats away just as in the comic






  • sustoProgrammer HumorExcel logic
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    I actually kind of looked at (jpeg) compression artifacts, and it’s indeed true to the extent that if you compress the image bad enough, it eventually makes it impossible to determine if the color was originally flat or not.

    (eg. gif and dithering is a different matter, but it’s very rare these days and you can distinguish it from the “AI noise” by noticing that dithering forms “regular” patterns while “AI noise” is random)

    Though from a few tests I did, compression only adds noise to comic style images near “complex geometry”, while removing noise in flat areas. This tracks with my rudimentary understanding of the discrete cosine tranform jpeg uses*, so any comic with a significantly large flat area is detectable as AI based on this method, assuming the compression quality setting is not unreasonably low

    *(which should basically be a variant of the fourier transform)

    I recreated most of the comic image by hand (using basic line and circle drawing tools, ha) and applied heavy compression. The flat areas remain perfectly flat (as you’d expect as a flat color is easier to compress)

    But the AI image reveals a gradient that is invisible to the human eye (incidentally, the original comic does appear heavily jpeg’d, to the point I suspect it could actually be chatgpt adding artificial “fake compression artifacts” by mistake)

    there’s also weird “painting” behind the texts which serves no purpose (and why would a human paint almost indistinguishable white on white for no reason?)

    the new ai generated comic has less compression, so the noise is much more obvious. There’s still a lot of compression artifacts, but I think those artifacts are there because of the noise, as noise is almost by definition impossible to compress