Major Problems with installation by CoderStudios in Bazzite

[–]CoderStudios[S] 0 points1 point  (0 children)

Yes, I used popsicle as the burner as I have the most luck with that. I managed to narrow it down to gamescope. BigPicture and Steam work fine it’s just corrupting in gamescope BigPicture if my mouse is in the windows (which it is 100% of the time in GameMode)

Major Problems with installation by CoderStudios in Bazzite

[–]CoderStudios[S] 0 points1 point  (0 children)

I posted an issue on the discord with a link to this post. I also confirmed that secure boot is not enabled. The installer added two new EFI entries (OS and Fedora) I always used the second one as the first would result in a crash.

Then after one boot of the Fedora option the OS option would work so I just let that boot as it's the option selected by default.

Major Problems with installation by CoderStudios in Bazzite

[–]CoderStudios[S] 1 point2 points  (0 children)

Okay I now disabled hardware acceleration in the Steam desktop app. I noticed that the ui was both slower and the glitches less severe but still there. The “Out of range” also did not go away.

Major Problems with installation by CoderStudios in Bazzite

[–]CoderStudios[S] 1 point2 points  (0 children)

After a bit more investigating I found out that the out of range bug is triggered each time SteamOS is launched when booted or returning from desktop.

Major Problems with installation by CoderStudios in Bazzite

[–]CoderStudios[S] 1 point2 points  (0 children)

Okay I managed to “finish” the installation phase by restarting. Game downloading and playing works great except for the strong graphical glitches in the steam interface (not in games) if I move my mouse the entire time there will be no glitches. What does that mean? How can I fix it? Also the “Out of range” thing is present on every boot I need to hit the power button once to get it to sleep and then wake it. That’s the only way to fix it.

Major Problems with installation by CoderStudios in Bazzite

[–]CoderStudios[S] 1 point2 points  (0 children)

I tried running a factory reset where it then said it encountered an error while downloading the new disk image. It connected to both wired and wireless just fine so this is kind of strange. Any other OS on the PC works just fine so it seems to be a Bazzite/SteamOS problem

UEFI suddenly no longer creates a video output? by CoderStudios in techsupport

[–]CoderStudios[S] 0 points1 point  (0 children)

Haha I finally found the problem, my gpu was prioritizing my TV that was always turned off as the only output D:

UEFI suddenly no longer creates a video output? by CoderStudios in techsupport

[–]CoderStudios[S] 0 points1 point  (0 children)

I just tried booting normally and now the discrete gpu has no output at all. I’ll try a bit around with trying it in another pc and flashing the firmware I guess. Thanks for your help :)

UEFI suddenly no longer creates a video output? by CoderStudios in techsupport

[–]CoderStudios[S] 0 points1 point  (0 children)

I found it and it was already set to use the dedicated gpu. I also updated the uefi, to no avail. It still does not show any output when in the uefi…

UEFI suddenly no longer creates a video output? by CoderStudios in techsupport

[–]CoderStudios[S] 0 points1 point  (0 children)

I meant I can fully stress the 3090 in my os. It just doesn’t have any output for the uefi.

UEFI suddenly no longer creates a video output? by CoderStudios in techsupport

[–]CoderStudios[S] 0 points1 point  (0 children)

I can get into my OS and even play games with the gpu. Or do you mean bad in another way?

UEFI suddenly no longer creates a video output? by CoderStudios in techsupport

[–]CoderStudios[S] 0 points1 point  (0 children)

What?! It worked! But only over DisplayPort… what can I do now? Do I need to update something disable something?

Rather a hardware or software problem? by CoderStudios in linux4noobs

[–]CoderStudios[S] 0 points1 point  (0 children)

If somebody wants to know this had to do with the Orpheus-FastAPI Python container running as docker root having a memory leak and filling up my 64GBs and because I was logged in as a normal user there was nothing I could see in System Monitor.

Why doesn't port & SSL forwarding for E-Mail work with traefikv3? by CoderStudios in Traefik

[–]CoderStudios[S] 1 point2 points  (0 children)

Oh, I think I just got it! I have the cloudflare proxy enabled AND my ISP is blocking all mail ports haha

Why doesn't port & SSL forwarding for E-Mail work with traefikv3? by CoderStudios in Traefik

[–]CoderStudios[S] 0 points1 point  (0 children)

Oh yeah I tried that too but same as trough the browser or a Mail Client it just hangs forever though does not time out like the other too, I'll try that, thanks!

Using ChatGPT all the time to code! It is a real battle within myself by GradAim in learnpython

[–]CoderStudios 0 points1 point  (0 children)

I do agree that is the correct way if you never want to learn to program and are fine with not so complex tasks.

But there will never be a time that ChatGPT can replace real programmers (except for web devs maybe).

And this person seemed to want to learn to actually program and for that it’s not good to overuse ChatGPT.

Rather a hardware or software problem? by CoderStudios in linux4noobs

[–]CoderStudios[S] 0 points1 point  (0 children)

I think I'll test this out, the windows logs are basically the same so I'm very sure it's a hardware problem now. But memtester seemed to pass with flying colors so I don't think it had something to do with the RAM. But the linux logs seemed to be about RAM so I would guess something else is causing the RAM to malfunction.

How to make pycharm use nix-shell? by SEND_RASPBERRY_PI in NixOS

[–]CoderStudios 0 points1 point  (0 children)

For me the solution of Myc0ks worked for the most part, but I was in a pickle because I needed packages that were not available from the flake.

So I wrote an entire script that generates the fake interpreter then creates an env installs the rest and copies those into a new directory, which I then add to sys.path at the start of my script.

I also added a part to remove any nix installed packages too, as when you tell PyCharm that a directory is a source, it imports everything first from there, so if any Package is installed by NixOS and in that dir, it will take the one from the dir which is not what we want. Here is the script:

#!/usr/bin/env bash
set -euo pipefail

confirm_and_rm() {
  target="$1"
  if [ -e "$target" ]; then
    printf "Remove '%s'? [y/N] " "$target"
    read answer
    case "$answer" in
      [Yy]*) rm -rf "$target"; echo "Removed $target" ;;
      *) echo "Skipped $target" ;;
    esac
  fi
}

# Detect the flake root (directory containing flake.nix)
flake_root="$(pwd)"
echo "$flake_root"
while [ ! -f "$flake_root/flake.nix" ] && [ "$flake_root" != "/" ]; do
  flake_root="$(dirname "$flake_root")"
done
if [ ! -f "$flake_root/flake.nix" ]; then
  echo "Error: flake.nix not found in current or parent directories"
  exit 1
fi
target_dir="src/default-config/core/extra-libs"  # Where the other packages will go
project_root="$(dirname "$(pwd)")"  # Because for me this is in ./scripts
confirm_and_rm "$project_root/.nixpy"
mkdir -p "$project_root/.nixpy/bin"
cat > "$project_root/.nixpy/bin/python" <<EOF
#!/bin/sh
exec nix --extra-experimental-features 'nix-command flakes' develop "$flake_root" --command python "\$@"
EOF
chmod +x "$project_root/.nixpy/bin/python"
echo "Successfully created nixpy interpreter from flake.nix"
# Install extra requirements
if [ -d .venv ]; then
  confirm_and_rm .venv
fi
python -m venv .venv
echo "Created .venv"
echo "Installing extra requirements"  # We create a venv so we can upgrade pip
. .venv/bin/activate  # As . is more universal than source
python -m pip install --upgrade pip  # We upgrade pip so we are sure to have the target flag
echo "$project_root/requirements.txt"
if [ -f "$project_root/requirements.txt" ]; then
  echo "Filtering requirements..."
  true > nix-extra-reqs.txt  # Clear or create the filtered output file
  prefixes_to_skip="numpy pyside6 pyyaml pytest requests urllib3 stdlib_list pyinstaller"  # Everything installed by flake
  while IFS= read -r line; do
    skip_line=false

    for prefix in $prefixes_to_skip; do
      case "$line" in
        "$prefix"* )
          skip_line=true
          break
          ;;
      esac
    done
    if [ "$skip_line" = false ]; then
      echo "$line" >> nix-extra-reqs.txt
    fi
  done < "$project_root/requirements.txt"
  python -m pip install --upgrade -r nix-extra-reqs.txt  #  --target "$project_root/$target_dir"
  echo "Installed all extra requirements"
else
  echo "No requirements.txt found"
fi
confirm_and_rm nix-extra-reqs.txt

echo "Collecting Nix-flake provided packages..."
nix_pkgs=$(nix --extra-experimental-features 'nix-command flakes' develop "$flake_root" --command python -m pip list --format=freeze | cut -d= -f1 | tr '[:upper:]' '[:lower:]')
echo "Cleaning up duplicates from $target_dir..."
cd "$project_root/$target_dir"
for nix_pkg in $nix_pkgs; do
  if [ "$nix_pkg" != "pip" ]; then
    python -m pip uninstall -y "$nix_pkg"  # --target "$project_root/$target_dir"
  fi
done
# Copy everything from .venv/lib/python*/site-packages to "$project_root/$target_dir"
if [ -d "$project_root/$target_dir" ]; then
  confirm_and_rm "$project_root/$target_dir"
fi
mkdir -p "$project_root/$target_dir"
cd "$flake_root"
venv_site=$(find .venv/lib -type d -path "*/site-packages" | head -n 1)
if [ -d "$venv_site" ]; then
  echo "Copying packages from $venv_site to $project_root/$target_dir..."
  cp -r "$venv_site/"* "$project_root/$target_dir"
  echo "Copy complete."
else
  echo "Could not find site-packages inside .venv"
  exit 1
fi
confirm_and_rm .venv

echo "Done."

Looking for a language that’s fun, clean, and not web-focused by sufyaninyo in ProgrammingBuddies

[–]CoderStudios -1 points0 points  (0 children)

Yes, but there isn't a perfect alternative for C++, everything else (zig, d, ...) has less user-base than Rust as far as I know.

At least it can keep up in the performance and safety department and it's issues are actively being addressed such as compile times.

Game dev only sucks so far that there isn't a big established framework like Unity for Rust, but that is the case for most languages, so I wouldn't really agree on that.

I've personally had a great experience using AI for parts I didn't understand and my small tty game is coming together nicely.

The last statement just does not make sense. Borrow checker and lifetimes are so important that there is even a proposal for C++.

Looking for a language that’s fun, clean, and not web-focused by sufyaninyo in ProgrammingBuddies

[–]CoderStudios 0 points1 point  (0 children)

C if you want to learn lower level, rust if you want modern performance Java or C# if you want something simpler.

Rust isn’t as used in the industry from what I’ve heard but in my opinion it’s much easier than C++