pelya
- 0 Posts
- 32 Comments
Because it does work, you need
grep -E
for ‘+’ to work without escaping. Also, your quotes are wrong, ‘ should be ’ .
pelya@lemmy.worldto Selfhosted@lemmy.world•What are the benefits of a server having multiple public IP addresses?English7·1 month agoBecause you won’t determine the type of NAT during hole punching. This requires the client sending two UDP packets to two different IP addresses, then comparing their source addresses on the server.
Normally yes, you can just assume that two clients you are trying to connect both have port restricted cone NAT, and run the hole punching algorithm, and if the connection fails after ten seconds, show message to the users ‘Error 418: your router is a teapot’.
pelya@lemmy.worldto Selfhosted@lemmy.world•What are the benefits of a server having multiple public IP addresses?English41·1 month agoThe one use case is running STUN/TURN server for NAT hole punching, that requires two separate servers, or one server with two IP addresses. You will only need that to run masterserver for games that support hole punching, or to run VoIP telephony / teleconference server.
Another use case is reliability, when your server is connected to several network providers, it will keep working if one of them has an outage, and will naturally have a different IP address for each network link. But your VPS does not have several network links, otherwise they would advertize that in bold red letters.
It flies, so I don’t get the joke. I’m an embedded developer BTW.
Gone are the days when I could set up a Wallhaven wallpaper updated each minute, because the plugin no longer works.
pelya@lemmy.worldto Linux@programming.dev•cat /proc/sys/kernel/random/uuid [I ❤️ Linux]4·2 months agoWorks in Termux on Android
std::vector<bool>
fits eight booleans into one byte.
pelya@lemmy.worldto Linux@programming.dev•Malicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attack4·2 months agoAin’t no way mah C++ modules deliver any of them malware.
because
C++ got no fancy-shmancy modules, got ya!
pelya@lemmy.worldto Linux@programming.dev•Bytedance Proposes Faster Linux Inter-Process Communication With "Run Process As Library"51·2 months agoWhat length would people go to work around Python’s GIL.
pelya@lemmy.worldto Linux@programming.dev•Linus Torvalds Expresses His Hatred For Case-Insensitive File-Systems571·3 months agoYour grandma will never type file names in shell, she’ll use Open File dialog, where case sensitivity does not matter.
#3 is my script that converts one particular RSS feed to .ical format, and pushes it to a repo, because setting up a website for one silly script was overkill.
pelya@lemmy.worldto Programmer Humor@programming.dev•js is in the "pure embodiment of hell" category along with vb.net and php1·3 months agoI was forced to code in Perl one time, there’s no way it could be good.
pelya@lemmy.worldto Linux@programming.dev•ParticleOS: Systemd's Very Own Linux Distro in Making71·3 months agoThey had finally added a package manager to systemd, your apt and dnf and emerge are deprecated now.
Password strength is usually checked inside your browser, not on the server.
pelya@lemmy.worldto Programmer Humor@programming.dev•Does this exist anywhere outside of C++?4·3 months agoAh don’t worry, if you do
fopen(file, "w")
on Windows and forget to use"wb"
flag, it will automatically replace all your\n
with\r\n
when you dofwrite
, then you will try to debug for half a day your corrupted jpeg file, which totally never happened to me because I’m an experienced C++ developer who can never make such a novice mistake.
pelya@lemmy.worldto Programmer Humor@programming.dev•Does this exist anywhere outside of C++?3·3 months agoIt depends on whether you are printing to a terminal or to a file (and yes the terminal is also a file), and even then you can control the flushing behaviour using something like
unbuffer
Creating a kernel is hard, Linux itself is not going anywhere.
If all current maintainers suddenly disappear, several corporations, who heavily depend on Linux, will maintain their own forks, so we will get Google kernel for phones, Amazon kernel for datacenters, Valve kernel for gaming, and probably some European initiative kernel for PCs and laptops to do document editing.