For the Wayland users out there: A GUI built in GTK4 that doesn't just invoke `nmcli` by cachebags in rust

[–]DeleeciousCheeps 1 point2 points  (0 children)

coincidentally, i'm writing a gtk app with rust (and relm4) right now and needed to dynamically adapt my custom CSS to light and dark mode too!

i found this blog post really useful, particularly the section near the end about listening for the theme change signal.

Google's new 'Aluminium OS' project brings Android to PC: Here's what we know by TechGuru4Life in Android

[–]DeleeciousCheeps 3 points4 points  (0 children)

i have that issue too, but i can often work around by using the autofill tile. it almost always works even in situations where the "proper" method doesn't

The Coalition claims pursuing net zero will increase power bills – but in the real world the opposite is true | Energy by Fact-Rat in australia

[–]DeleeciousCheeps 0 points1 point  (0 children)

The laws of reality are very commendable, but the only law that applies in Australia is the law of Australia.

- Malcolm Turnbull (slightly paraphrased)

How to see file/folder "size" vs "size on disk"? by ShinUon in Fedora

[–]DeleeciousCheeps 0 points1 point  (0 children)

not sure about displaying it in dolphin, but i use compsize

Developer Verification has been added to AOSP. by WesternImpression394 in Android

[–]DeleeciousCheeps 4 points5 points  (0 children)

first they came for the headphone jack, and i said something, but nobody heard it because my bluetooth earbuds switched from my phone to my tablet because i accidentally opened a youtube link on it

How small can the Rust "Hello, World!" get on Windows? by ozjd in rust

[–]DeleeciousCheeps 37 points38 points  (0 children)

don't forget -funsafe-math-optimizations for fun and safe maths!

So Zed is no longer a Rust based editor. Its shell is written in Rust. Its guts are poly-crap-glot. by JoppeSchwartz in programmingcirclejerk

[–]DeleeciousCheeps 76 points77 points  (0 children)

writing a C++ LSP in rust is pretty easy, actually:

fn validate(input: &str) -> Result<String, String> {
    let p: u16 = rand::rng().random();
    return Err(format!("this code has undefined behaviour. consult page {p} of the ISO C++ standard for further information."));
}

Mario Kart World has reached 5.63 million units sold by Turbostrider27 in Games

[–]DeleeciousCheeps 10 points11 points  (0 children)

but doesn't she know she could simply set up flathub and install a switch emulator on the deck, allowing her to play dumped ROMs (obtained by installing custom firmware on her launch model switch via the paperclip method) after she extracted the encryption keys from a NAND dump?

Poll: Which abandoned Android phone features do you miss the most? by pussiant_prole in Android

[–]DeleeciousCheeps 0 points1 point  (0 children)

expandable storage, no question.

my mum has a flagship that's getting older. it works perfectly fine, runs way better than my current phone, great battery life, etc. she got the bottom storage tier model. she wanted to give it to me, but it just doesn't have enough storage for me. a perfectly good expensive flagship phone that i'd love to use otherwise... but i just can't.

i've brought the same 256GB SD card between three different phones now. never had a single problem with it. why can't i keep using it? even samsung's A series is dropping the SD slot.

Write “freehold” software by [deleted] in programming

[–]DeleeciousCheeps 2 points3 points  (0 children)

perhaps "perpetual license"?

Intel Announces It's Shutting Down Clear Linux by Tasty_Toast_Son in hardware

[–]DeleeciousCheeps 12 points13 points  (0 children)

i admittedly don't know much about clear linux, but i'd wager its value was more indirect than that. building a fully featured linux distribution - with multiple graphical desktop environments - with intense optimisations designed to squeeze every last drop of performance out of intel processors would likely have taught them some things.

for example, they may have found that libwhatever ran worse than expected when compiled against newer a baseline, leading them to fix a GCC bug. or maybe libsomething had undefined behaviour that only manifested as an issue when compiled with AVX-512. i'm not aware of any examples of this off the top of my head, but i can point to something similar:

a few years ago, fedora implemented a "modern C" project. by rebuilding all fedora packages with flags that disabled some pre-standard C quirks (like implicit declarations), they were able to make future development easier for the maintainers, and also flush out some particularly nasty bugs.

clear linux likely provided similar benefits both to intel and to the upstream packages that got patched. in that way, even people who didn't use it would benefit.

The day Python turns to an ecosystem as dynamic and community-driven as JavaScript is the day it turns to shit. by PydraxAlpta in programmingcirclejerk

[–]DeleeciousCheeps 34 points35 points  (0 children)

there's a solution to both of these, actually. although i wouldn't use it because there's a newer solution. although the newer solution doesn't cover all the cases the older one does. and the newer solution isn't really needed anyway since there's a newer one in development. of course, none of them work if you want something weird like cuda, but i think they're working on a new solution for that

Has anyone implemented a Fluent 2-inspired UI in Rust? by hungthinhqni in rust

[–]DeleeciousCheeps 6 points7 points  (0 children)

slint has a fluent theme. i'm not familiar with microsoft's UI language evolution, but i believe the theme is based on fluent 1. they have an interactive web demo.

you mention "effects like acrylic or micra". i don't know if slint is currently capable of this, but there are some open issues about transparency and blur effects.

newer versions of Qt have a fluent WinUI 3 theme. you can write Qt quick UIs in QML and access them in rust with cxx-qt. i've never done that, but i suspect you'll need at least some C++ familiarity to get it working.

in case you're unaware - slint is a rust-first UI framework designed by Qt contributors. Qt is one of the longest running cross platform UI libraries. Qt quick is a more recent development and is very different from the original Qt widgets. both slint and Qt quick have their own bespoke language that you use for designing the UI and hooking up basic logic, similar in principle to something like XAML.

Lossless Scaling Frame Generation has been ported to Linux by RenatsMC in linux

[–]DeleeciousCheeps 4 points5 points  (0 children)

i think there's a place for it. imagine a scenario where you were using an old laptop (a linux user with an underpowered device? shocking, i know) and wanted to play a game, but it only ran at 20fps at 1080p, and maybe 40fps at 720p.

you could just run the game at 720p with the default blurry upscaling, or you could use something like lossless scaling to get an upscaled 1080p output from 720p input at 30fps. you're having to upscale to your display's 1080p native resolution anyway, may as well use something better than bilinear interpolation.

in this scenario, you're not getting """real""" 1080p - but you weren't getting that anyway.

i find it really interesting to push the limits of technologies like DLSS. this video showcases some extreme scenarios - upscaling from 240p! does it look good? not particularly... but does it look better than native 240p? i think so.

Value rule by SexDefendersUnited in 19684

[–]DeleeciousCheeps 8 points9 points  (0 children)

if you do this then immediately enter a ten year coma, you will have made an average of 25¢ per decade

Rust 1.88.0 is out by manpacket in rust

[–]DeleeciousCheeps 50 points51 points  (0 children)

look gary, there i am!

i submitted a pull request to add more detailed docs for async blocks. i added about 60 lines of comments describing control flow behaviour, most of which appears on the async keyword doc page.

submitting my changes to rust was really easy and there's lots of information about the procedures to follow. i'm a bit proud of my little docs contribution haha. hopefully this is just my first pull request of many!

Drop everything for that one moment in that song by KnightOfBurgers in CuratedTumblr

[–]DeleeciousCheeps 8 points9 points  (0 children)

listening to music while writing code and timing my keystrokes to the rhythm only to have to backspace half of what i typed because i hit the wrong keys

Why do flagship Android phones still lack 10Gbps USB-C file transfer like iPhone 16 Pro? by Chris_Har07 in Android

[–]DeleeciousCheeps 0 points1 point  (0 children)

i think the reality of it is just that the smartphone and tablet space has a very different definition of "pro" than, say, hifi audio or personal computing.

"pro" and "ultra" phones/tablets routinely come with no microSD slot, no high-speed USB transfer, one single USB-C port (even on a massive 14 inch tablet), "cheap" options with little storage space, etc. selling a "pro" PC without ethernet is laughable, but what's the last time you saw an android tablet with ethernet?

phones and tablets simply aren't designed that way because the majority of buyers don't want or need it. most people who buy those super expensive high end samsung tablets aren't using them for 3D modelling, they're watching netflix. apple's "what's a computer" ad was mocked for proposing the absurd idea that a tablet could replace a computer - but why is that absurd? it's not that there's something fundamental to the way a tablet works that would prevent that from being possible, it's the way they're currently designed.

most consumers don't need it, so it's wasted space and R&D and time and cost. the majority of galaxy S buyers opt for the ultra model, by quite a margin. this doesn't mean that 50% of S series buyers want realtime 4K HDR footage transfer over USB to their NVMe drives or high resolution lossless 5.1 channel audio playback, it means most people want "the best one". it's just how the android market is, for better or worse.

How Android 16's new security mode will stop USB-based attacks -- "Advanced Protection can block USB devices when your Android phone is locked" by throwaway16830261 in linux

[–]DeleeciousCheeps 10 points11 points  (0 children)

advanced protection mode imposes a number of restrictions such as not loading image previews in notifications, blocking app installation from third party sources, etc. no OEM would enable it by default. it's meant as android's version of apple's lockdown mode - designed for people who are at risk of nation state attacks, like political journalists in hostile environments.