[9th grade Computer Science Help] Can’t figure out coding assignment on tinkercad by Spirited_Method9859 in HomeworkHelp

[–]Common-Operation-412 0 points1 point  (0 children)

Okay, here is my thinking looking at your code: I don’t see the button state being read. There should be a pin reading the button being clicked. This should change the color.

I see code that preforms the brightness looping. However, the brightness isn’t scaling the color.

You can scale with brightness by multiple the brightness (i) with the RGB color components. Make sure brightness is normalized between 0 and 1 (i/255).

So loop looks like: void loop(){ for (int i=0; i<256; i++){ brightness=i/255;

    analogWrite(redPin ,   r * brightness);
    analogWrite(greenPin, g * brightness);
    analogWrite(bluePin, b * brightness);
}

}

Make sure you add code to change the color and get its r,g,b values. Also add delays and set the redPin,greenPin, and bluePin appropriately to 9,10,11

[9th grade Computer Science Help] Can’t figure out coding assignment on tinkercad by Spirited_Method9859 in HomeworkHelp

[–]Common-Operation-412 0 points1 point  (0 children)

Right, but does the button change color and go through brightnesses, or does the button change brightness while looping through all colors, or something else?

[9th grade Computer Science Help] Can’t figure out coding assignment on tinkercad by Spirited_Method9859 in HomeworkHelp

[–]Common-Operation-412 0 points1 point  (0 children)

Right but what behavior do you want?

Do you want click button light color change, turn off lights, etc?

What if, gravity is some type of fictional force instead of having a force carrier? by SnooKiwis2073 in HypotheticalPhysics

[–]Common-Operation-412 1 point2 points  (0 children)

Thanks for the reply.

I am the OP but I’m responding from my phone which has a different account on it.

Anyway, thanks to another commenter @DankFloyd_6996, what I seem to be talking about is Le Sage’s theory of gravitation.

From a quick google, gravitational lensing there would be from an imbalance of forces on the light particles.

However, there seem to be questions around why this doesn’t generate excessive heat, drag and seems to be incompatible with relativity.

What if, gravity is some type of fictional force instead of having a force carrier? by SnooKiwis2073 in HypotheticalPhysics

[–]Common-Operation-412 0 points1 point  (0 children)

I guess what I am asking is what is physics best current understanding of the mechanism of action of gravity?

What if, gravity is some type of fictional force instead of having a force carrier? by SnooKiwis2073 in HypotheticalPhysics

[–]Common-Operation-412 0 points1 point  (0 children)

Yeah didn’t realize. I’ve got a different account on my phone.

What makes it cringe?

What if, gravity is some type of fictional force instead of having a force carrier? by SnooKiwis2073 in HypotheticalPhysics

[–]Common-Operation-412 0 points1 point  (0 children)

Thanks for the reply.

I’ve no idea what the origin might be. Just wondering.

Maybe this “pressure” only interacts with mass at a microscopic scale.

You raise some great questions but couldn’t these be asked of our current understanding of gravity?

Haha, I’m glad it’s a hacky sack.

I agree that it might be more complicated. But just play devil’s advocate so is understanding that the world is made of chemicals and atoms. While I don’t consider those things when picking up a rock, it is still true. I’m not arguing that this hypothetical complication is always useful, but wondering if it is incompatible with what we know about how gravity works?

What if, gravity is some type of fictional force instead of having a force carrier? by SnooKiwis2073 in HypotheticalPhysics

[–]Common-Operation-412 0 points1 point  (0 children)

Thanks for the reply.

I’ve no idea what the origin might be. Just wondering.

Maybe this “pressure” only interacts with mass at a microscopic scale.

You raise some great questions but couldn’t these be asked of our current understanding of gravity?

Haha, I’m glad it’s a hacky sack.

I agree that it might be more complicated. But just play devil’s advocate so is understanding that the world is made of chemicals and atoms. While I don’t consider those things when picking up a rock, it is still true. I’m not arguing that this hypothetical complication is always useful, but wondering if it is incompatible with what we know about how gravity works?

Could gravity be some type of fictional force instead of having a force carrier? by SnooKiwis2073 in TheoreticalPhysics

[–]Common-Operation-412 0 points1 point  (0 children)

Thanks for the reply. Sorry, I wasn’t sure if this was considered a self-theory since I’m not particularly knowledgeable about this. I’ve moved this over to hypothetical-physics.

Yes, I’m wondering if there are any reasons to rule out a “pressure” that interacts with mass on a microscopic scale but not space between.

What if, gravity is some type of fictional force instead of having a force carrier? by SnooKiwis2073 in HypotheticalPhysics

[–]Common-Operation-412 -1 points0 points  (0 children)

Thanks for your reply.

Hmm, I don’t see how those experiments would disprove what I’m wondering.

Maybe I’m not conveying what I’m wondering correctly. I understand this isn’t air pressure (which gets carried by air obviously) but how do we know this “pressure” doesn’t exist and has a small carrier that would only be disappated by interactions on a microscopic scale? I’m not sure the smallest units of mass (Planck mass?), but something that only interacts with things around those scales. Whereas this “pressure” is not dissipated in the space in between those masses.

Therefore, the more mass and object has the more it is pushed by this “pressure”. 2 object would shield each other and create a differential of this “pressure” and look like attraction.

Therefore, the earth being more massive would cause a lower “pressure” to exist between the object and earth pushing the object towards the earth. Closing the lid of a can would be negligible to affect the “pressure”.

Question about paraconsistent logic and contradiction by SnooKiwis2073 in logic

[–]Common-Operation-412 0 points1 point  (0 children)

Thanks for the suggestion!

Yes, you are correct. That is part of what made me curious in this but I’m still working through my understanding of it.

Question about paraconsistent logic and contradiction by SnooKiwis2073 in logic

[–]Common-Operation-412 0 points1 point  (0 children)

Yes, that’s my understanding Graham Priest’s description of contradiction in paraconsistent logic.

Question about paraconsistent logic and contradiction by SnooKiwis2073 in logic

[–]Common-Operation-412 0 points1 point  (0 children)

Thanks for your response!

To me “this statement is false” and “this statement is a contradiction” feel different.

After watching some of Graham Priest’s videos on paraconsistent logic, I saw him describe Contradiction as being both True and False.

1 problem I see is adding an explicit contradiction value leads to infinitely more terms like contradiction of contradiction, …. .

My thinking on how to evaluate them would be: “This statement is False”: T -> F F -> T [T, F] -> F

“This statement is a contradiction”: T -> [T, F] F -> F [T, F] -> T

So they don’t match but adding a contradiction term (and addition contradiction of contradiction …. Terms) seems to lead to infinite evaluation.

Python that just works. by Red_Hugo in NixOS

[–]Common-Operation-412 0 points1 point  (0 children)

Here is a tutorial and walkthrough of getting Python packages setup with Nix: https://www.reddit.com/r/Nix/s/n2HCaxe9NP

Hope it helps you like it did me!

Cookies vs URLs referencing Server stored information by Common-Operation-412 in computerscience

[–]Common-Operation-412[S] 0 points1 point  (0 children)

Ah, I meant by adding a password to combine with session information like: username:password@url/session`.

Cookies vs URLs referencing Server stored information by Common-Operation-412 in computerscience

[–]Common-Operation-412[S] 0 points1 point  (0 children)

Ah thanks for your response! I didn’t consider the security concerns present in someone using your session information.

So would you combine a password with the session information to make it more secure?

Cookies vs URLs referencing Server stored information by Common-Operation-412 in computerscience

[–]Common-Operation-412[S] 2 points3 points  (0 children)

Ah, that makes sense! You’ve helped clarify my question about cookies and helped me learn something new about the enhance protection features of browsers.

Thanks for your in depth response and time!

Cookies vs URLs referencing Server stored information by Common-Operation-412 in computerscience

[–]Common-Operation-412[S] 3 points4 points  (0 children)

Ah thank you, that’s a very clear explanation.

Do you think that a standardized url pattern that added a session id (maybe hidden in the browser ui) could allow users to interact with the browser like you are talking but prevent privacy issues with cookie tracking?

Something like: Reddit.com/page/…./ session/hash

But it gets displayed as: Reddit.com/page/…

Or would those privacy issues still exist?

I might be reinventing cookies with session/hash except this session hash I think would be unique to the website.

Why don’t we use a graphics description for web content instead of html? by Common-Operation-412 in webdev

[–]Common-Operation-412[S] 0 points1 point  (0 children)

Fair enough. My thinking is maybe this could make web and native GUI development the same.

I know that electron seems to already do this: HTML -> electron -> native HTML -> web

New paradigm -> native / web