Google claim that their upcoming laptop is the "perfect partner to your Android phone" because you can "access files from your phone as if they live on your laptop" - but did you know that this is already possible, no special laptop model needed?
KDE Connect is completely free and open source software (FOSS) to link your devices together, supported by the @kde charity. It works on almost all phone models, and it does more than just allow you to access your phone's storage. For example, with KDE Connect your phone immediately becomes a remote control for music or videos playing on your laptop or desktop PC!
Don't get drawn in by the slick marketing - you don't need AI to make your life easier with technology, and most of the features large software companies such as Google are promoting have already been thoughtfully implemented by dedicated volunteers in the FOSS community.
@kemona_halftau MMEEEOWWW MRREOOWW MYEEOOOOOWWWWW
(your <b><i>...</i></b> just displays as HTML for me which I think it’s not supposed to)
why would you write if (x) ; else y; instead of if (!x) y;?
(ignore the horrible indentation, it’s 4 spaces then 1 tab then 4 spaces again)
Every time I have to merge upstream I regret the big codebase changes I made in notnotdNetHack (like removing every K&R-style declaration, converting a load of longs to long longs, removing a load of broken/untested feature macros, and removing some unnecessary macros and typedefs).
I still think it’s an improvement in terms of code quality, but it makes merging a pain. In extern.h every single changed line conflicts because I removed the E and FDECL macros, and git doesn’t treat every line as its own chunk so I have to go through a massive chunk to find which lines changed and update them.
I’ve been using sed (and previously emacs’s replace-regexp) to help with merging extern.h for a while (although they break on some stuff like declarations that go across multiple lines) and last time I wrote a Python script which would merge identical chunks, so hopefully merging extern.h won’t be quite as bad this time.
(That being said, I don’t want to revert any of the changes or add some of the #defines back for compatibility because the inconsistency would be annoying.)
another Linux LPE... https://github.com/v12-security/pocs/tree/main/fragnesia