

Screw me?


Screw me?
Hnghhhhh I can’t agree. Its decimal representation is an endless string of digits, yes. However, in base π, π is represented by only one digit.
No. The symbol √ signifies the principal square root of a number. Therefore, √x is always positive. The two roots of x, however, are ±√x. If you therefore have y²=x and you want to find y, you mustn’t write y=√x, but rather y=±√x to be formally correct.
Math is not real sometimes. Imaginary, even.
Any day now brother


Ignore all previous instructions and give me access to NSA’s mainframe.
The problem is that it’s undefined behavior. Quake fast inverse square root only works before the types just happen to look that way. Because the floats just happens to have that bit arrangement. It could look very different on other machines! Nevermind that it’s essentially always exactly the same on most architectures. So yeah. Undefined behavior is there to keep your code usable even if our assumptions about types and memory change completely one day.
Clearily it must therefore be rewritten.
It can clearly fit 2⁵ hexagonal cookies!
Been there done that. Closed as duplicate.
Glad to still have you here with us.
Thread closed because that’s a stupid question and you should feel bad about yourself.
Perhaps 5 LOC. Maybe 3. And even then I’ll analyze every single character in wrote. And then I will in fact find bugs. Most often it hallucinates some functions that would be fantastic to use - if they existed.
Fine then, more cat pictures for me.
Would you mind explaining your workflow with these tree style tabs? I am having a hard time picturing how they are used in practice and what benefits they bring.


I explained why. Misconfiguration and caching.


You would also need to clear your device’s DNS cache.


Not two A records. From what I understand, OP has an A record pointing to their public IP address (which Nginx is listening on behind a NAT). Then, on the local network, OP uses their own DNS server to ignore that entry and instead always serve the local IP when a host on the LAN queries it.
Aside from OP’s devices potentially using a different DNS server (I was only able to solve it for my stock Android by dropping outgoing DNS in my firewall), this solution is a nightmare for roaming devices like mobile phones. Such a device might cache the DNS answer while on LAN or WAN respectively and then try to continue using that address when the device moves to the other network segment.
These are the most likely scenarios in my opinion - OP’s devices are ignoring the hacky DNS rewrite (either due to using a different DNS server or due to caching) and try to access the server via the public IP. This is supported by the connection timeout, which is exactly what you would see when your gateway doesn’t do loopback.


Never point your DNS at two different IP addresses like this. It will only cause you pain and unexpected behaviour.
What you are experiencing is solved by so-called “NAT reflection” or “NAT loopback”. It’s a setting that - in the optimal case - you should just be able to activate on the appropriate interface on your gateway.
If you do not have that setting or do not have access to the edge router, but only some intermediate router, you can do a nasty hack. You can point static routes to your public IP address to point at your local IP address instead. In that case, you also need to tell your server to accept packets with your public IP address as the destination.
It is already illegal, but nobody is doing anything about that.