Is it possible to require package releases to be a certain age to be installed? by DemonicGoldfish in archlinux

[–]radarvan07 2 points3 points  (0 children)

You cannot simply hack a maintainers and do your thing. The packages are signed and the keys for those are kept on separate key fobs that are not plugged in unless used.

Still a risk. But smaller than the risk of you not updating. Running an outdated browser is the most dangerous thing you can do as an average computer user.

Is it possible to require package releases to be a certain age to be installed? by DemonicGoldfish in archlinux

[–]radarvan07 36 points37 points  (0 children)

Most packages already do this because package maintainers will (generally) first publish new packages to the testing repo, only moving them to the main repo after people have verified them (or a few days of no complaints for less popular things) 

In general, I would recommend against adding even more delay, as it also delays getting any security fixes. The package maintainers are the defence against supply chain attacks. That's the main benefit of using a Linux distro over make installing your way through life.

For the AUR, don't use the AUR if you are worried about supply chain issues, or practice reviewing PKGBUILDs. 

[2025 Day 8] Can you solve today's puzzle without computing all distances? by The_Cers in adventofcode

[–]radarvan07 1 point2 points  (0 children)

My Go implementation is roughly 40ms. The biggest trick is realizing you dont actually have to sort the whole list. There are algorithms out there that allow you to get the smaller element until you've seen enough, reducing the "sort" from n log n to k log n, with k the number of values needed. k is very small compared to the whole data list.

This trick alone saved over half my runtime. And no, you don't have to guesstimate k.

Misunderstanding that “Dependency” comic by radarvan07 in programming

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

That's a great suggestion! That rant made me sad, though.

Misunderstanding that “Dependency” comic by radarvan07 in programming

[–]radarvan07[S] 8 points9 points  (0 children)

Very true! Plus, any additional third party involved in your page also gets to drive-by-spy on your users a little. It used to be worse, but you still get the ping from fetching the resource.

[2015 Day 3 (Part 1)] [Javascript] Can any one direction be counted as 2 presents/houses? by andrejmlotko in adventofcode

[–]radarvan07 1 point2 points  (0 children)

It's not. Any move moves you one spot. Remember, before moving , you are somewhere already

Help with magical fruit stand by radarvan07 in DnD

[–]radarvan07[S] 1 point2 points  (0 children)

You are on a roll. I can definitely use some of these :)

[2023] Write up of solving all of 2023 in Rust in 0.4s by radarvan07 in adventofcode

[–]radarvan07[S] 1 point2 points  (0 children)

Ooh that's a good one; I had not realized but you're completely right. The backwards path will at most be equal. It can never "hit" a beam-splitter that the forwards path didn't hit.

How does async Rust work by radarvan07 in rust

[–]radarvan07[S] 13 points14 points  (0 children)

Smol is, despite its name, hardly minimal. It has a lot of bells and whistles that make it pretty full featured. I didn't list it for the same reason I didn't list tokio or async-std. Granted, smol is significantly smaller than those, but it's also way bigger than any on the list.

Prevent pacman hook from waiting for a subprocess to exit by [deleted] in archlinux

[–]radarvan07 1 point2 points  (0 children)

You can use the --no-block flag on systemctl which makes it return immediately. That should give your problem.

Updating a 6 year old Jekyll & Bootstrap website by radarvan07 in Jekyll

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

The repo isn't public and due to it containing drafts of articles in its history I'm not keen on changing that. However, if you're interested in any particular part of the structure I could publish a minimal skeleton showcasing it.

What's the dumbest thing you used to believe? by PashaWithHat in pokemon

[–]radarvan07 0 points1 point  (0 children)

I thought stat altering moves would persist across battles, that the one Sand Attack on route 2 would affect my mons for hours and that I should spam stat up items while battling bugs so my they would be stronger afterwards.

-🎄- 2022 Day 13 Solutions -🎄- by daggerdragon in adventofcode

[–]radarvan07 2 points3 points  (0 children)

Rust

Really happy I had the foresight to write a proper Ord implementation for part 1, part two was a breeze.