• 2 Posts
  • 90 Comments
Joined 1 year ago
cake
Cake day: July 9th, 2023

help-circle

  • ezchili@iusearchlinux.fyitoComics@lemmy.mlXXX
    link
    fedilink
    arrow-up
    8
    arrow-down
    2
    ·
    edit-2
    6 months ago

    No I strongly disagree on giving psychoanalysis that much consideration

    Besides the fact that psychoanalysis, new wave or not ; jung, freud, lacan, has only been demonstrated to work better than leaving the patient alone on a handful of illnesses and it’s still unclear whether simply letting patients talk and air out their problems could be the main driver of that.

    It is fundamentally a discipline that is impermeable to science

    I’ve never heard a student tell me they’ve read Watson or Rayner or any of the founders of CBT because scientific disciplines are centered around historical results and not authors. They know about Rayner’s results and it is enough, and if something better comes along later they’ll switch. No one is a Raynerist.

    Psychoanalysis has gurus, and the beliefs themselves are built to be unverifiable

    I’m tired of lecturers who tell you that if you treat someone with it, it’s proof that it works. And if the patient doesn’t respond to treatment it’s either the patient’s fault or they just need more time, and nothing is ever proof that it doesn’t work. And who are you to question <authority figure> anyway?

    If they suddenly start publishing reproduced results in reputable journals that do anything other than being less effective than the current state of the art, then sure, let’s have them beyond history classes. Right now though? It’s a load of bullshit


  • ezchili@iusearchlinux.fyitoComics@lemmy.mlXXX
    link
    fedilink
    arrow-up
    26
    arrow-down
    4
    ·
    edit-2
    6 months ago

    Not fun fact: 8 out of 10 shrinks in France use psychoanalysis

    Only 1 university in the country excludes it from their care curriculum (history modules non-withstanding)

    Only country in the world that hasn’t booted that practice off along with argentina















  • That’s a big one, generating thumbnails client-side rather than running an imagemagick instance on the server to re-size pictures on upload

    I used it to generate hashes of the pictures as well, once.

    Adding watermarks too. There are virtuous watermarks as well, I remember having to code up a transparents watermark over people’s IDs to make sure that when they submitted their renters dossier (it was a real estate renting service), it couldn’t be used to commit identity theft by the homeowner later down the line or re-used for something else.


  • Ah nah Canvas is used for so much stuff and it’s sometimes way under your radar in stuff you wouldn’t at all expect

    For instance

    • one-loop.github.io, opensource reddit front-end that allows you to look at reddit, but it looks like you’re reading outlook from a distance
    • For people’s avatars, it sources images from thispersondoesnotexist.com
    • You can’t just “download” a picture from another website, because that violates “CORS”: If it were allowed, you could just download their face from facebook.com, scan if they have something hosted on localhost, …
    • You can use an <img> tag which fetches the image, but your javascript cannot access the image’s data. It doesn’t belong to your page

    I’ll let you look at the comments to see how they circumvented this

    async function generateFacePic(commentData: SnooComment, ppBuffer: HTMLImageElement[], displaySize: number = 50): Promise<HTMLCanvasElement> {
        const imageSeed = /* a random number */
        const imageElement: HTMLImageElement = /* someone's avatar */
    
        // Purpose of copying: A single <img> tag cannot be in multiple spots at the same time
        // I did not find a way to duplicate the reference to an img tag 
        // If you use Element.appendChild with the same reference multiple times, the method will move the element around
        // Creating a new <img> tag and copying the attributes would work, but it would fetch the src again
        // The image at thispersondoesnotexist changes every second so the src points to a new picture now
        // Since the URL has a parameter and hasn't changed, then most likely, querying the URL again would
        //     hit the browser's cache. but we can't know that.
        // Solution: make a canvas and give it the single <img> reference. It makes a new one every time. It doesn't query the src.
        const canv = copyImage2Canvas(imageElement, displaySize);
    
        canv.classList.add(`human-${imageSeed}`);
        return canv;
    }
    

    I’ve seen canvas being used for github-like random avatars, graphs, logos, to create dynamic previews of images on the page in online shops, …