• 0 Posts
  • 20 Comments
Joined 6 months ago
cake
Cake day: July 1st, 2025

help-circle
  • I like zram! It has pretty low overhead and usually compresses data quite well (~2/3x). I have it set to the size of my total ram and I can’t notice when it starts to kick in.

    Some small amount of swap is also nice to have, but it gets rarely used for me, because zram gets used first.

    One trick that might be useful is that you can create a normal swap file and enable swap to it in cases where you want more. For example recently I needed to load 64GB of data on a 32GB laptop, so I created a 64GB swap file on the filesystem and used swapon to enable it. (just disable it before hybernation if you use it!)

    It just takes a bit longer to run, but if you don’t need all the data loaded at once it’s much faster than moving the code on a more powerful pc (or fixing it)…


  • I use a raspberry pi 3b for running home assistant. even though it’s not officially supported it runs quite well for my uses.

    In the past when I had a public ip I had it run a small personal website and a wireguard vpn server to allow me to always ssh into my desktop at home (it was joining the vpn-connected device into the LAN, to the point where it was even getting the IP from my router’s DHCP server…).


  • The solutions in the other comments (lutris, heroic, … ) are better, but if you get stuck a bad but easy solution is to install the epic launcher as a “non-steam game” in steam…

    Download the epic launcher installer, add it to steam, force it to use proton as compatibility layer (in the game properties) and install it. After the install is complete you have to find where on your filesystem the launcher exe got installed (it’s in a special wine prefix managed by steam). Change the path in steam to point to it instead of the launcher. Now you can launch the epic launcher in steam and play all of the games you have there using the steam-managed proton. You can use this trick to also install and run windows software that are not games.

    Note that the name you give to the “game” in steam will be broadcasted to your friends, so they will see you playing “epic game launcher”





  • If you have some malicious code running on your computer, you have already lost. Nothing stops it from impersonating another app and asking the permissions to see your screen, accessing local secrets from the files or doing who knows what.

    You can still download a tar file with an static executable inside, and double clicking that exe will happily run it unsandboxed, and it’ll be able to do whatever with your secrets or files of other apps, unlike firefox, which is not able to share your screen easily. If you get a really malicious app, it could probably also exploit debugging tools to inject itself into the memory of processes that do have the permission to access the screen without asking…

    Preventing apps from accessing what you see on screen or sending keypresses, or stealing your focus, is not going to protect you against anything, but it’s just going to make it impossible to use legacy tools, autohotkey-equivalents (look up how to send a key programmatically to a wayland app… wayland provides no interface for that. You have to create virtual evdev devices and run your app with root permissions…) or making it clunky to have a calendar appointment notification pop up right in front of the screen (grand theft focus luckily fixes that on gnome…).

    Performance on 3d games is also much better on X for me.



  • Interestingly enough, in Denmark most of the MEPs came out against chat control. The only party in favour of it is the socialdemocrats (generally the biggest party). Given that 1% of danish voters signed the petition against chat control, it’s not looking great for them.

    Also many other politicians of other countries did not express an opinion at all, which makes informed voting difficult to do. When voting do read the political manifestos (most parties publish one) and do look into what you are voting for! Don’t just blindly go with gut feeling!


  • SupercrunchytoLinuxUnderstanding GNOME Shell’s focus stealing prevention
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    5 months ago

    I really don’t get all this attention to focus prevention. I personally can’t remember the last time I had a window popping up without it being something I want and expect. IMHO It looks like a theorethical attack vector (steal focus right when typing a password), but in practice I’ve never heard of it happening, not even on windows were focus stealing is fully allowed and expected.

    If I had any app stealing focus randomly, the app would be nuked out of existance in no time.

    I did experience though focus stealing prevention breaking apps (for example the open folder dialog in vscode not appearing in the front). It also breaks some interruptions that I really really want, like the evolution calendar notification window popping up on top of everything telling me I really should be in a meeting right now (and no, a slowly fading notification on the corner of the second screen I’m not looking at right now won’t work)

    A big thank you to the authot of grand theft focus for bringing a bit of sanity back.


  • It might be something that is pretty different than what you are looking for, but for interactivity it might be funnier and less repetitive if you demonstrate some sort of bucket/radix sort to not have comparisons at all “choose which buket this number should go into”

    Maybe also mergesort would be fun to simulate. You can split the array as usual and then ask the user to pick which number should go next from the two lists.


  • SupercrunchytoProgrammer Humorhow the rocks turn
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    The problem with the “it’ll go away at some point” is that the “at some point” might be much longer than what a few years.

    This period feels to me like some “calm before the storm” or a “slow motion car crash”. We have AI possibly disrupting a lot of the service economy, while automation is slowly eating away the manual workers jobs, possibly resulting in mass unemployment. People are really fed up with politics and electing more and more nationalistic/extremist politicians because they don’t feel represented. The economical crysis and this dissatisfaction is an environment very similar to when hitler got elected. Last time we had millions of people dying and europe being destroyed, what will it take today to remove a dictatorship in the biggest military spender of the world? Who is going to save the US if it slides into dictatorship?



  • Pyanodon changes factorio so much. The byproducts are a big issue, and you need to get in the mentality that often it’s fine to burn up items just to avoid the logistical nightmare. The biggest change for me is how expensive infrastructure is. You often need buildings that eat up 10 minutes of production just in materials. Scaling up is a challenge also because of how huge he buildings are (both a blessing and a curse) and how expensive everything is. Even conveyor belts are expensive at the beginning.

    I played py hard mode until py science 1, then later on I started what was supposed to be an easier playthrough in pyblock, but i still stopped with a few parts missing for logistical science.

    I still consider it one of the best mods out there (it’s really well balanced), but you should start playing it only with a “I will not finish it” mentality, since it’s thousands of hours long.


  • There are some surviving national circuits like PagoBancomat (as the sibling comment from Scrollone) and Dankort (Denmark) and girocard (Germany). My personal impression is that they are slowly going out of fashion in favor of visa/mastercard only (probably because they can’t offer better prices than them).

    I don’t see a solution to the duopoly, apart from lobbying politicians to support this national payment infrastructure. Especially in recent times I can also see how some governments might not want to rely entirely on two US companies for running their entire economy, so something might move on that side, so there’s hope on that side.

    The EU has already been moving on this front in the last years by forcing the banks to provide programming interfaces to initiate bank payments, and that’s why you can now see more and more options to “pay by bank” online in EU. These online payments generally skip card circuits and run over normal SEPA bank transfers.

    More info here on the last part: https://en.m.wikipedia.org/wiki/Payment_Services_Directive


  • Depending on how much customization you have done, it might be easier and safer to just install the OS from scratch to the new disk. You’ll also end up in a much more “clean” state afterwards.

    • Your program settings, browser favorites, etc should all be stored in /home/<user>
    • Your system settings are generally stored in /etc

    I would take a backup of the whole system (important!), then take a second copy of only these two folders (save all the permissions and ownership info, and also use sudo to access all the files in /etc !). After you have saved everything, wipe both disks, set them up like you want and reinstall all the software you need. Finally you can restore from these two folders.

    You will not want to restore everything in /etc, just the files you have manually/indirectly edited, and also you will need to preserve the correct file permissions, so be careful on what you do there. Some files like /etc/fstab hold the information on how your disks are mounted, so you really don’t want to restore those (same for /etc/passwd, systemd units, and many others). Basically restore selectively only what you need, or reconfigure the software again and just restore your /home

    It shouldn’t take as much time as it sounds, because most of the settings should be in your home folder, and you can reinstall all the software pretty quickly when you need them. You also won’t have to fight all the problems if you end up with a weird/incomplete setup when moving the root.


  • SupercrunchytoProgrammingEverything web based
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    For splitting the app in the taskbar I found it useful to “install” the PWA (you got to find the hidden option in chrome for that…), if it’s supported by the website… It still uses the same cookies and addons, but at least it doesn’t easily get merged with the main browser window and behaves like a proper desktop application. I mainly use firefox though and it doesn’t support PWAs (easily, at least). It’s a shame it’s not more common, because it’s a much better way to run software than the many electron apps, each having their own chromium installation (no download, no long installation process, full sandboxing, and you can have addons & adblockers affect the pwa!)



  • It’s a bit hard to debug without the laptop in the front, but i think the issue is that your laptop supports some sort of “connected standby” and it enters that instead of fully powering off, or debian fails to properly remove power to some of the hardware.

    If you want to search on the internet more on this, the terms you are looking for is for “system power state” or “s5”. As a sanity check, first to see if running systemctl poweroff in a terminal actually powers off the system fully.

    If that works, it’s a problem of your desktop environment not telling the linux kernel to shutdown properly, but instead go into standby/connected hybernation.

    If that doesn’t work: Debian usually ships only older packages (including the kernel) and probably the kernel debian ships lacks the compatibility with some of your hardware. You can look up how to upgrade it, but it’s not a procedure for the faint of heart. The easiest option is probably to understand why you want to use debian, and find a similar distribution with more up-to-date packages. There’s also ways to customize your kernel and building your own, but I would keep it only as a last resort (in the case you really really want to use debian)