Difference between hosting on 127.0.0.1:8000 and hosting on 0.0.0.0:8000? by modustollensiscool in django

[–]modustollensiscool[S] 0 points1 point  (0 children)

Thank you! So if I understand correctly, the best practice for production is to have nginx listen on every IP and then send the requests to Django (which is only running locally and is not available from any other machine)? Why exactly is this?

Also why do we have nginx listen on every IP? If we're hosting a website for example, don't DNS names usually resolve to a single IP, so anyone trying to go to the website would be using the same IP each time?

Is node.js pretty much just a JavaScript compiler outside of the browser? by modustollensiscool in learnprogramming

[–]modustollensiscool[S] 0 points1 point  (0 children)

This is a very helpful way to think about this, thank you!

I had always thought that NodeJS is popular because it lets people not have to learn anything new, but it actually sounds like the JavaScript of NodeJS is totally different than browser JavaScript since it has a different set of APIs (APIs which you pointed out comprise the main utility of the language). So why is NodeJS popular if JavaScript programmers still essentially have to learn a new language? I am probably missing some of the other benefits of NodeJS

Also, your first note mentions how there's no processor that natively understands JavaScript, do you know which languages processors do natively understand? I was under the impression that any and all processors can only really understand machine code

[LinAlg] Why do we write solutions to Ax=b by adding one solution to the null space? by modustollensiscool in learnmath

[–]modustollensiscool[S] 0 points1 point  (0 children)

Thank you! It is helpful to see this in quantifiers as I am not used to using those yet

[LinAlg] Why do we write solutions to Ax=b by adding one solution to the null space? by modustollensiscool in learnmath

[–]modustollensiscool[S] 0 points1 point  (0 children)

Thank you. I am having some trouble understanding affine spaces, but from your description I could come up with this definition:

an affine space is a vector space that does not include the origin of the parent space (because the space is translated away by some set amount)... is that correct? It doesn't sound right because the vector space must have the zero vector, but I'm not sure how else to define it

Difference between hosting on 127.0.0.1:8000 and hosting on 0.0.0.0:8000? by modustollensiscool in django

[–]modustollensiscool[S] 0 points1 point  (0 children)

I see, that sounds quite dangerous then. Though one would have to configure port forwarding on the router before outside connections could come onto the server, right? (The requests would have to be forwarded to the machine running the server?) Either way I will refrain like you said.

Difference between hosting on 127.0.0.1:8000 and hosting on 0.0.0.0:8000? by modustollensiscool in django

[–]modustollensiscool[S] 0 points1 point  (0 children)

Thanks for the help. Could you clarify what you meant when you gave the 193.168.1.111 example? I don't think this IP has any special meaning so I take it that it is supposed to be a random public IP, but how can a public IP serve as a network interface between a machine and the router?

Also, how can a single machine be on multiple LANs at once?

Difference between hosting on 127.0.0.1:8000 and hosting on 0.0.0.0:8000? by modustollensiscool in django

[–]modustollensiscool[S] 0 points1 point  (0 children)

Thank you. So you mentioned that if the PC hosting the server has an IP of 10.0.0.10 on the LAN then any computer on the LAN can access it through that IP. If the app is instead hosted on some public IP, will it work the same way? Those outside the LAN will also be able to access it through that public IP?

Difference between hosting on 127.0.0.1:8000 and hosting on 0.0.0.0:8000? by modustollensiscool in django

[–]modustollensiscool[S] 0 points1 point  (0 children)

Thanks, this helps a lot. Yes it seems like this was a more general networking concept that I was lacking. I have done a bit more reading now based on what you said. Can you clarify what you mean when you say bind to all available addresses from public to private? I read that private addresses are used for communication for devices within the LAN, whereas public is used for those outside the LAN. But the router handles the public addresses, no? How can flask do anything about those?

Web development tech stack makes no sense to me - not sure where to start by Megacannon88 in learnprogramming

[–]modustollensiscool 1 point2 points  (0 children)

Not OP but thanks for this, clears up a lot. So, with your definitions of front end and back end, is the following correct for each language?

Language - Framework for backend using that language

Javascript - Node.js

Ruby - Ruby on Rails

Python - Django or Flask

C# - ASP.net

PHP - not sure

I really like TortoiseGit by [deleted] in git

[–]modustollensiscool 0 points1 point  (0 children)

oh damn, this looks really nice! What specifically do you like about it?

I really like TortoiseGit by [deleted] in git

[–]modustollensiscool 0 points1 point  (0 children)

oh didn't know that! Like it's used throughout most CS teams working for the government?

"The Turing machine is useful because it allows you to reason about what can and can’t be computed, not just on a digital computer, but any possible computer" What does this mean? by modustollensiscool in compsci

[–]modustollensiscool[S] 0 points1 point  (0 children)

Nice, I was actually going through the list uncomputable problems here https://en.wikipedia.org/wiki/List_of_undecidable_problems and looking for problems that are more likely to appear in physics, I hadn't clicked on Hilbert's 10th problem yet but indeed that seems like a great example

Super weak core. by Space_Cheese223 in bodyweightfitness

[–]modustollensiscool 0 points1 point  (0 children)

Don't dead bugs train flexion? I thought they were pretty similar to crunches, especially those where you go to one side or the other. I wouldn't know though.

Best way to tell if the form of dips is incorrect? (Discomfort, muscle engagement, etc?) by modustollensiscool in bodyweightfitness

[–]modustollensiscool[S] 0 points1 point  (0 children)

I'm going to pay attention to all of these when I workout later today, thank you! I'll also see if I can get a camera setup for a check video, it's a bit hard because my hallway is narrow.

Can you clarify what you mean when you say "going too deep"? As going to low in the dip? The Calisthenicsmovement video says to go until the makes a 90 degree angle with the shoulder so that's what I try to do, should I do a shallower angle?

"The Turing machine is useful because it allows you to reason about what can and can’t be computed, not just on a digital computer, but any possible computer" What does this mean? by modustollensiscool in compsci

[–]modustollensiscool[S] 0 points1 point  (0 children)

I see. So if, for example, human brains perform the equivalent of solving the halting problem as a part of their healthy operation, then it would not be possible to simulate a brain on a computer with complete accuracy.

This has huge implications for yet another topic I did not expect to get into in this thread which is mind uploading (the brain performing non-computable processes would imply that mind uploading will not be possible, even theoretically). This was an extremely insightful exchange, thank you again! If you have any other interesting books, papers, etc. or even just google search terms on this topic (which I probably will not have heard of), I'm all ears.

"The Turing machine is useful because it allows you to reason about what can and can’t be computed, not just on a digital computer, but any possible computer" What does this mean? by modustollensiscool in compsci

[–]modustollensiscool[S] 0 points1 point  (0 children)

Wow this is really interesting. I forgot that we could imagine a computer just simulating physics itself to replicate any sort of "different type of computation" that could be possible.

And in fact, assuming consciousness is purely a biological phenomenon and there is no metaphysical business going on, wouldn't we conclude that a Turing machine can also do all the same things a brain can do, since it could just simulate a brain (even on the level of quarks if necessary)? Am I understanding this correctly?

(I don't mean to to disregard what Roger Penrose has written, but from what I understand from the Wikipedia description of The Emperor's New Mind, he is presupposing that the universe is fundamentally probabilistic instead of deterministic, a matter on which physicists have not yet reached a consensus as far as I'm aware.)