Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)C
Posts
6
Comments
33
Joined
3 yr. ago

  • !lemmysilver

  • Vale do Rio Verde, two of their (mining waste) dams broke in Brazil, killing thousands and permanently damaging the ecosystem of a entire river

  • Disagree, I wouldn't instantly say that any gay bar is bad because "it states its political views". More like, any business that supports a facist, or is clearly religous.

  • "Panqueca" pretty much pancake but with a portuguese pronunciation.

  • What ate the minimum specs? I doubt my pentium server will run it, but still good to know.

  • Lol, I switched to kde plasma and because the windows logo bottom left was replaced with a K, neither my dad or my sister knew how to shut down the pc 🤦‍♀️

  • Just to chip in, cloudflare tunnels are a thing and also transverse CGNAT. Or you could use LocalXPosed, and other sevices like that.

  • Its the opposite for me, first time I actually got caught in one.

  • 2 fast 2 furious, not that forgotten at all. Seychelles guy is seeding the one in 1337x, 100+ in pirate bay :) (yts version)

  • As it turns out, there was a different torrent with 100+ seeders for the same movie in another tracker, it downloaded in 5 mins, instead of the estimated 1:30 hours from seychelles...

  • memes @lemmy.world

    thank you for your service.

  • Wait what was it called?

  • :3

  • Im sorry, I just have to ask, is this a real video? Whats the context?

  • I will try to guess how that works!

    keep in mind that I have no clue on how BASIC sintax works lol

    1 -> function declared2 -> variable x and y initiated to values 0 and 1.3 -> for loop created that goes from 1 to 26 (updating variable N)4 -> Variable R is created, its value is the square root of (x2 + y2). Xs and Ys values are set to be themselves divided by R.5 -> P variable created (it stores the value of PI), and set to (2 ^ N) * square root of (x - 1) ^ 2 + y ^ 2. Lastly X is increased by one6 -> Proceed only after for loop is done7 -> return the variable P

    (I do recognize I just transcribed the code, and I also made an implementation in python of it, lol)

    now for why that works ill figure another time, its 12:30 pm here and I am eepy :). But I have recognized that X tends to 2 and Y to 0.

    and I am pretty sure this implements the algorithm of creating higher and higher "resolution" circles so starting with a triangle and adding more and more vertices (vertex?). Ill edit in the full explanation late :)

    here is my implementation:

     from math import sqrt
        
    
    def CalcPi():
        X = 0
        Y = 1
        P = 0
    
        for i in range(1,26):
            R = sqrt(X**2 + Y**2)
            
            X = X/R
            Y = Y/R
    
            P = (2**i) * sqrt((X-1)**2 + Y**2)
            X += 1
        return P
    
      
  • Programming @programming.dev

    How to become a competent coder? - I was advised to cross post here.

  • I agree with you, but maybe my problem is that I cannot focus on something long enough? I have started probably ~100 projects that would all be "the one that is for real", and never ended any. What I said about having coded for many years but not having many qualifications is exactly that, I have coded in probably 10+ languages, all of them very badly and unfocused.

    Right now I am working in a project for my brother (he doesn't really need it, but it would be a nice plus), that is basically a flask web app where he can keep track of AV equipment. It is quite basic really, but not having the prior knowledge of how to structure divs and such (compositing / layouts), I really struggle to create a UI, so I just start copy pasting from the bootstrap documentation...

    Maybe I should just double down on what I have been doing tho.

    Thanks for the answer :)

  • Thank you for the response, I actually was with the opposite position as to being an art. I was literally just thinking "there is a correct way to do things, if you don't use it, your code sucks", and things like that. (Im watching a Linus Torvalds interview, and he was just talking about good vs bad code lol).

  • Ask Lemmy @lemmy.world

    How to become a competent coder?

  • Sorry to bring bad news, but corno in Brazil is slang to having been cheated on...

  • Ask Lemmy @lemmy.world

    How serious are you guys when you talk about punching nazis?

  • Technology @lemmy.world

    Proton launches LLM and crypto wallet

    proton.me /blog/proton-wallet-launch
  • Technology @lemmy.world

    New youtube layout?