Readit News logoReadit News
GTP commented on Rootless Pings in Rust   bou.ke/blog/rust-ping/... · Posted by u/bouk
messe · 13 days ago
> It turns out you can create a UDP socket with a protocol flag, which allows you to send the ping rootless

This is wrong, despite the Rust library in question's naming convention. You're not creating a UDP socket. You're creating an IP (AF_INET), datagram socket (SOCK_DGRAM), using protocol ICMP (IPPROTO_ICMP). The issue is that the rust library apparently conflates datagram and UDP, when they're not the same thing.

You can do the same in C, by calling socket(2) with the above arguments. It hinges on Linux allowing rootless pings from the GIDs in

  $ sysctl net.ipv4.ping_group_range
  net.ipv4.ping_group_range = 999 59999
EDIT: s/ICMP4/ICMP/g

EDIT2: more spelling mistakes

GTP · 13 days ago
Could you please explain me the difference? As UDP is the "User Datagram Protocol" when I read about datagrams I always think about UDP and though it was just a different way of saying the same thing. Maybe "datagram" is supposed to be the packet itself, but you're still sending it via UDP, right?
GTP commented on DeepSeek-v3.2: Pushing the frontier of open large language models [pdf]   huggingface.co/deepseek-a... · Posted by u/pretext
Muromec · 14 days ago
>That's just one factor though. Another is what hardware you can actually run things on. DeepSeek and Qwen will function on cheap GPUs that other models will simply choke on.

What's cheap nowdays? I'm out of the loop. Does anything ever run on integrated AMD that is Ryzen AI that comes in framework motherboards? Is under 1k americans cheap?

GTP · 13 days ago
Not really in the loop either, but when Deepseek R1 was released, I sumbled upon this YouTube channel [1] that made local AI PC builds in the 1000-2000$ range. But he doesn't always use GPUs, maybe the cheaper builds were CPU plus a lot of RAM, I don't remember.

[1] https://youtube.com/@digitalspaceport?si=NrZL7MNu80vvAshx

GTP commented on Search tool that only returns content created before ChatGPT's public release   tegabrain.com/Slop-Evader... · Posted by u/dmitrygr
trinix912 · 14 days ago
But it's not necessarily trustworthy content, we had autogenerated listicles and keyword list sites before ChatGPT.
GTP · 14 days ago
Sure, but I think that the underlying assumption is that, after the public release of ChatGPT, the amount of autogenerated content on the web became significantly bigger. Plus, the auto-generated content was easier to spot before.
GTP commented on How to repurpose your old phone into a web server   far.computer/how-to/... · Posted by u/louismerlin
jjice · 20 days ago
The thing that holds me back from this is always the battery. I want to have my battery removed so that it doesn't eventually become a time bomb, but it's a pain on modern phones and I'm not even sure if they boot without. The mobile hardware reuse space can suck for hobbyists.
GTP · 19 days ago
They don't boot without it, but you can make it think that there's a battery by connecting power directly to the battery pins [1].

[1] https://www.youtube.com/watch?v=7f8SliNGeDM&pp=ygUYZ3JlYXRzY...

GTP commented on Canonical's plan to make 2026 the year of Linux on the desktop   zdnet.com/article/inside-... · Posted by u/GTP
ux266478 · 20 days ago
I keep hearing about this "year of the Linux desktop" but I have no idea what that means. It's been a comfortable OS since ext3 support was added. Does it mean majority market share or something?
GTP · 19 days ago
It means when it will gain a significant market share of the desktop segment, but it is mostly used as a meme.
GTP commented on Why use OpenBSD?   tumfatig.net/2025/why-are... · Posted by u/akagusu
pjmlp · a month ago
Which is what makes Linux kernel stand out, as we can see by Sony and Apple contributions upstream.

Had BSD not been busy with AT&T lawsuit, all major UNIXes would probably still be around, consuming whatever was produced out of BSD like the networking code and OS IPC improvements over AT&T UNIX.

Instead sponsoring Linux kernel became the plan B, as means to reduce their UNIX development costs.

> Commercial use began when Dell and IBM, followed by Hewlett-Packard, started offering Linux support to escape Microsoft's monopoly in the desktop operating system market

-- https://en.wikipedia.org/wiki/Linux

> 1998: Many major companies such as IBM, Compaq and Oracle announce their support for Linux.

-- https://en.wikipedia.org/wiki/History_of_Linux

Ironically the major contributor to many GNU/Linux critical components, Red-Hat, is now an IBM subsiduary, recouping that investment beyond doing only Aix.

It is no accident that all FOSS OSes that came after Linux, none of them has adopted GPL, as big corporations would rather not be obliged by it.

GTP · a month ago
Of course big corporations would rather not be obliged by the GPL. But my feeling is that, if we give them the option to grab the code without contributing back their improvements, they would just do that. In the long run, this risks harming the OSS community, as developers would feel like big corps are being leeches and profiting out of their work without giving anything back.

After all, the GPL forces to contribute back only if you modify and distribute a modified version of the software (the AGPL modified this point, to account for cloud services). A corporation that isn't modifying GPL'd code or isn't redistributing the modified binaries, doesn't incur any additional burden for using a software distributed under the GPL.

GTP commented on 'No One Lives Forever' turns 25 and you still can't buy it legitimately   techdirt.com/2025/11/13/n... · Posted by u/speckx
phendrenad2 · a month ago
There should be some kind of "challenge" process where people can demand that rightsholders "put up or shut up", or lose their work to the public domain. Right now, we have a perverse incentive where publishers are incentivized to say they DO NOT own a work, in hopes that someone will do all the work of making some derivative work and then they can swoop in and demand rent. There should be a way to say "we asked for proof, they didn't respond, so our ass is covered here, go pound rocks, Warner Brothers, Activision, and/or 20th Century Fox".

Obviously this would only apply to things that sold above a certain number of units, making it something of cultural relevance. We also don't want this law abused to steal things if someone gets a copy of your dropbox files and you can't afford a lawyer to respond to legal demands.

GTP · a month ago
I would instead reduce the duration of copyright protection. Not an expert by any means, but my gut feeling is that in the case of art like books, movies, songs, videgames etc. the right-holders make most of the money in the first 10 years after release. If you're interested in a book, movie, or videogame, you will not wait 10 years to get it for free; you would still pay for it. So I think the duration of copyright should be reduced to circa 10 years, maybe 20 if we want to be generous to the right-holders, but no more than that.
GTP commented on Ask HN: How would you set up a child’s first Linux computer?    · Posted by u/evolve2k
austin-cheney · a month ago
You not wanting to teach your kids is not me trolling. This thread is only about what Linux setup to use to help teach your kids about computers. Teaching kids takes time.

I know this is complicated (it isn't), but parenting requires a dedicated investment of time. Or, just get them an iphone like most other parents and ignore them all day. Or maybe you can hire a surrogate parent to teach them since you have more important things to do.

GTP · a month ago
Let me try one last time to put this in terms that might be easier to understand for you. If we apply the same reasoning to e.g. Mathematics, it would be something like "Either you teach Calculus to your child from day one or you don't teach them any Math at all. Not willing to teach Calculus from day one means not willing to put the effort in parenting your child".
GTP commented on Reminder to passengers ahead of move to 100% digital boarding passes   corporate.ryanair.com/new... · Posted by u/teekert
jandrese · a month ago
It depends on the details. Last time I flew I used the airline's app to get the ticket which were then immediately loaded into wallet and read via NFC at the gate.

But this is Ryanair so it's probably going to do some stupid QR thing that will be super touchy and be a struggle to work on at least half of the devices. Bonus points if the app refuses to start if it can't make a live internet connection back to some cursed cloud service so the people waiting in line who accidentally let their phone go to sleep find they can't get it to show the ticket in the dead zone at the gate.

GTP · a month ago
For what it's worth, I flew multiple times using the boarding pass from their app without any problem.

u/GTP

KarmaCake day2161June 19, 2015
About
AV software is crap, and fire never made good walls

meet.hn/city/nl-Delft

Socials: - github.com/GTP95

Interests: Books, Cybersecurity, Hardware, Programming, Privacy, Science, Technology

---

View Original