![Avatar](/_next/image?url=https%3A%2F%2Flemm.ee%2Fapi%2Fv3%2Fimage_proxy%3Furl%3Dhttps%253A%252F%252Fprogramming.dev%252Fpictrs%252Fimage%252Fbaf45e21-6e9a-432e-b80e-734fcbe6bc07.png&w=3840&q=75)
![Avatar](/_next/image?url=%2Flemmy-icon-96x96.webp&w=3840&q=75)
4wd
I’ve never understood why GNU/Linux actually needs swap. Okay, I created a 4G partition for it, having 32G of RAM. I never used all that RAM, but even so, stuff regularly ends up in swap. Why does the OS waste write cycles on my SSD if it doesn’t have to?
However, if I artificially fill up all 32G of RAM, the system almost completely freezes faster than switching to using swap as a “lifeline”. And it only comes back to life when OOM Killer finally remembers its existence and kills some f__ing important process.
by writing JavaScript
When I started learning programming, I was like “tf is a map function?” and I always forgot about it. Then I tried the functional programming language Erlang and understood all these functions very well. But there is a downside, now most for-loops in C++ look terrible to me :)
What about using enums? In this case you will have to specify them for all records, but this ensures that the field will always be present.
enum license_owner {
regular_citizen = 0,
embassy,
government,
...
}
You can use tools like spotdl and yt-dlp to download songs from YouTube music and Spotify
To get quality like this https://youtu.be/cX4KA-AFS9M ? Nah thanks.
It would be better for your nerves to just do a normal GNU/Linux installation. There are too many ways the installation can go wrong:
replace swap partition with ISO contents
For example, Ubuntu ISO has a size of 5.7G. But my swap, which you previously deactivated, was 4G. Either 2G, or it didn’t exist at all.
move user data from C:/ to other partition
The other partition may not exist or may have capacity smaller than C:/.
replace C:/ with linux
The installed Linux must also be stored somewhere. And there is also a copy partition for C. The same problem of lack of space.
move user data to /home/$username
From %APPDATA%? You would have to be a know-it-all to resolve the location paths and configuration names of literally every existing program.
reboot into linux
And it is at this moment that Windows will completely randomly decide to update and rewrite the bootloader :)