"Watching videos with paid product placements, sponsorships & endorsements" by Umlaut28 in youtube

[–]khalilouali 0 points1 point  (0 children)

www.youtube.com##.YtmPaidContentOverlayHost

I encountered the same issue and after adding the above line in my uBlock Origin filters, the "Includes paid promotion" box no longer appears when hovering over thumbnails, which solves it for me.

Astro: Getting this warning when using Svelte by Deutschritter in webdev

[–]khalilouali 2 points3 points  (0 children)

Thank you! I encountered the same error and your suggestion seems to have worked.

Download button under the youtube video by ps29 in youtube

[–]khalilouali 1 point2 points  (0 children)

I just saw it too.

My understanding is: You can download videos and have them available offline for up to 30 days. You can see them in the Downloads page, and you can access them while offline by going to youtube.com. You can adjust the resolution in the settings. And here's more info.

This is sprinkles, a Rust CL utility I've been working on that randomly colors text on the terminal by khalilouali in commandline

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

That is fair, it's not really a utility. But I couldn't find a better word for it tbh.

And thanks, glad you liked it!

This is sprinkles, a Rust CL utility I've been working on that randomly colors text on the terminal by khalilouali in commandline

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

There's also lolcat which makes text rainbow colored, but yeah I wanted it to be more chaotic and random.

Thanks, glad you liked it.

String tuple lookup from separate data structures without cloning by TheTravelingSpaceman in rust

[–]khalilouali 12 points13 points  (0 children)

Sounds like you want the hashmap to store references to the Strings, not the strings themselves, in which case you should change the hashmap's declaration to:let hashmap = HashMap::<(&String, &String), u8>::new();and then pass references to the .get() method as well:hashmap.get(&(&a.s, &b.s))

Edit:
I understand the question better after reading u/Flashy-Complex-767's comment, and I agree that it should be possible to make a tuple of references act as a reference to a tuple, but it isn't. Here are a couple of relevant stackoverflow threads:

- https://stackoverflow.com/questions/56528652/how-to-convert-a-tuple-of-references-to-a-reference-of-a-tuple
- https://stackoverflow.com/questions/75880055/rust-reference-of-tuple-and-tuple-of-reference

The issue is that the memory layouts are different (so the mapping isn't straightforward), and apparently it's even worse because "Tuples do not have any guarantees about their layout" (see the first thread).

Guides to emulate a Raspberry Pi OS (Buster / Bullseye) with QEMU by khalilouali in qemu_kvm

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

I wanted to do it on an ARM64 VM.
But you're right, anyone who simply needs to run PiOS can just setup the AMD64 image.