ChilledPeppers

joined 1 year ago
[–] ChilledPeppers 4 points 2 days ago (1 children)

Wait what was it called?

[–] ChilledPeppers 52 points 1 week ago (1 children)
[–] ChilledPeppers 10 points 1 week ago (1 children)
[–] ChilledPeppers 9 points 1 week ago (1 children)

I would only if it wass FOSS and self hosted. NO FUCKING WAY IM INSTALLING A MICROAOFT CHIP IN MY HEAD.

[–] ChilledPeppers 8 points 1 week ago (1 children)

Yes, I and my brother invented a game that only we two know how to play.

[–] ChilledPeppers 3 points 1 week ago

I speak three languages (all of them badly), and I agree, I just have to long press space and select the language I'm typing in if I want correction or suggestions.

[–] ChilledPeppers 4 points 1 week ago (2 children)

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

[–] ChilledPeppers 2 points 3 weeks ago (3 children)

I will try to guess how that works!

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

1 -> function declared
2 -> 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 (x^2 + y^2). 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 one
6 -> Proceed only after for loop is done
7 -> 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:


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
 

cross-posted from: https://lemmy.world/post/24857168

I would like to code for a living and to contribute to open source projects and things, but my coding skills are absolute shit after taking online courses and watching video tutorials. How can I learn to code for real?

What I would like to learn is algorithms, web development ("full stack"), how layouts work (both in like kotlin compose and HTML) and how to read other peoples code. Maybe thats more than I can chew, but its probably good for me to try out many things before getting settled on one.

Now I have been coding for a while already (~ 4 years), but I kind of feel like I need more guidance to be able to actually create code that works as intended intentionally, and not through trial and error / stack overflow. As for what level i am at, CS50 is probably my only qualification, I have played around with APIs (I.E. making discord bots), and made some html "apps" (horribly made, but things like the "genius" game and a calculator) and "prototype" react websites (as in, really bare bones, barely working).

I do plan on taking CS or something similar, but i'm not yet in college, and I would like to have a good head start before getting there.

Sorry for my bad English, and any help is appreciated.

[–] ChilledPeppers 5 points 3 weeks ago (2 children)

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 :)

[–] ChilledPeppers 3 points 3 weeks ago

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).

 

I would like to code for a living and to contribute to open source projects and things, but my coding skills are absolute shit after taking online courses and watching video tutorials. How can I learn to code for real?

What I would like to learn is algorithms, web development ("full stack"), how layouts work (both in like kotlin compose and HTML) and how to read other peoples code. Maybe thats more than I can chew, but its probably good for me to try out many things before getting settled on one.

Now I have been coding for a while already (~ 4 years), but I kind of feel like I need more guidance to be able to actually create code that works as intended intentionally, and not through trial and error / stack overflow. As for what level i am at, CS50 is probably my only qualification, I have played around with APIs (I.E. making discord bots), and made some html "apps" (horribly made, but things like the "genius" game and a calculator) and "prototype" react websites (as in, really bare bones, barely working).

I do plan on taking CS or something similar, but i'm not yet in college, and I would like to have a good head start before getting there.

Sorry for my bad English, and any help is appreciated.

[–] ChilledPeppers 3 points 3 weeks ago (2 children)

Hey, i would like to be able tp see users pronoums and 'usernames' (i.e. their readable name, and not their tag). Great app!

[–] ChilledPeppers 2 points 3 weeks ago

Fun Fact: in portuguese Caspar is named Gasparzinho (ot little Gaspar). https://pt.m.wikipedia.org/wiki/Casper_the_Friendly_Ghost

140
submitted 1 month ago* (last edited 1 month ago) by ChilledPeppers to c/196
 

Got it from pearls discord

 

I've seen around 3 occasions of that this week, altho I have never seen anything like it before.

if I remember correctly they were:

  • smack talking a mod (FlyingSquid) for saying not to report the same comment twice, when they were different comments, and the report was spam
  • someone comparing .world with .ml in politics (as in there was a comment saying "this post will be overrun with .ml people, and then a comment going "but you are from .world") (Maybe Im part of the problem? I have been called out for being a fascist because I questioned the "puching nazis" theme)
  • one more which I can't remember.

Anyways, what is all that about? Are people really starting to hate on 50% of the lemmy population because of their instance?

 

I have been seeing plenty of guillhotine and mollotov jokes here, and as the title says, punching nazis.

I've been reading a book about nonviolence and anarchism, and he basically shows how we shouldn't use violence, even in extreme cases (like neo nazis).

The main argument is that the means dictates the ends, so if we want a non violent (and non opressing) society, punching people won't help.

And if it is just a joke, you should probably know that some people have been jailed for decades because of jokes like these (see: avoiding the fbi, second chapter of the book above).

Obviously im up for debate, or else I wouldn't make this post. And yes, I do stand for nonviolence.

(english is not my first language, im sorry if I made errors, or wansn't clear.)

(if this is not pertinent, I can remake this post in c/politics or something)

(the book is The Anarchist Cookbook by Keith McHenry, if you are downloading from the internet, make sure you download it from the correct author, there is another book with the same name.)

99
Music rule (lemmy.world)
 
208
submitted 7 months ago* (last edited 6 months ago) by ChilledPeppers to c/technology
132
New youtube layout? (lemmy.world)
submitted 7 months ago by ChilledPeppers to c/technology
 

Hey, I was browsing youtube in private mode, and out of nowhere it started looking like this, I really hope this doesn't go through lolol...

(the black square bottom right is probably an ad being blocked.

 

I read a lot of people saying that I should leave spotify for local files, or Apple music, só i Sant to go witb the Apple music route, but I havê to convincente my family members, what are tour best argumenta?

(They think the switch will ne to hard, and therefore it isnt worth it)

 

Eae galera? Basicamente, o canvas é a versão do lemmy do r/place, bora fazer algo ai. (tinha um bandeira br no canto esquerdo, mas ela foi removida pelos indianos (acho).

(post no lemmy.eco.br) https://lemmy.world/post/17568273

10
submitted 7 months ago* (last edited 7 months ago) by ChilledPeppers to c/[email protected]
 

Eae galera? Basicamente, o canvas é a versão do lemmy do r/place, bora fazer algo ai. (tinha um bandeira br no canto esquerdo, mas ela foi removida pelos indianos (acho).

Post no [email protected] https://lemmy.world/post/17568274

view more: next ›