• 57 Posts
  • 1.02K Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle

  • Agreed on your points and usually I do 2. (name) and 3. (exit instead else) sometimes. For the [[ over [, it usually matters only for word splitting and globbing behavior, if you do not enclose the variables between quotes I believe. But looking into the shellcheck entry, looks like there is no disadvantage. I may start doing this by default in the future too.

    So thanks for the suggestions, I will update the script in a minute.

    Edit: I always forget that Beehaw will break if I use the “lower than” character like in , so I replaced it in the post with cat %%EOF which requires to change that line. And the example usage is gone for the moment.



  • Just a thumb of rule to make sense of it: A column in AWK is by default any space separated part. You can change the column separator to any other character too with -F ":" in example would be a double colon. There is also a way to print all columns, but with certain exceptions. In example print all, but the third and fourth columns: ls -l | awk '{$3=""; $4=""; print $0}' . Admittely I forget this syntax often and have to look for it again.



  • It depends, there are no hard rules. I have a preference for the native package manager with pacman and repository of my distribution. I also would like to use AUR more often, but it depends who is maintaining that package. It also depends if there is a Flatpak available. Some AppImages have an auto update for itself, so I download it only once and use the applications own update functionality manually.

    The good thing about AppImages are that they usually don’t require super user privileges to install (in other words use) them and I can also archive them very easily.












  • While I agree with you and while I am not the biggest generative Ai fan, we have to admit this is still in early phase and is just a proof of concept what the technology is capable of. The version of this game might not be as good as the original (and that’s only mildly said), that this is possible like this with artificial intelligence tools is impressive.

    Its like teaching an ape to program Quake 2. Even if its a shitty version of it, it would be ground breaking.




  • You have to think in terms of bottleneck. If you have a really heavy desktop environment or operating system, then it can (and will) slow down older and weak computers. For those, it makes sense to install some special prepared environments, so it does not slow them down. If you have a modern and fast computer with plenty of resources, then it won’t make a difference which you install.

    In example, you have 16gb RAM, but your system uses only 4gb. Switching to a system that uses only 2gb won’t get you any benefit, you have plenty of room that is unused. And for all other daily operations in the Window environment, lets say opening and closing windows with some effects and transparency, would lets say for fun require 1ghz of CPU to calculate without slowing the operation down. If you have a modern multicore CPU with 5ghz, then you don’t win anything by installing a desktop environment or operating system that makes use of only 0.5ghz.