48

Any way to compress game files on linux? I know that all games vary, content vary and so on, but is there any things i can look out for in like an average steam game which I can compress, and the game can still run fine, tools or programs or anything?

5

I just finished making a site, it has multiple ways emails are stored, I made a n8n workflow that gets the stored emails, checks if it has not been added onto a spreadsheet before, deduplicates it, then adds it to a spreadsheet. This workflow runs anytime a new email is submitted. This is my first time using n8n, is this dangerous? in the sense that having a n8n workflow that can be triggered directly by users, can it cause massive usage spikes in memory, etc very easily when its dependent on what a user can do? even if i ratelimit it, because I dont know the overhead n8n has, it takes a minute for the workload to finish also.

6

This is like a bunch of months late, but I am curious what people here thinks about steams new AI disclosure policy, which I think requires you to disclose or refrain from making AI content that is consumable, e.g the player sees and interacts with, whereas anything on the backend does not need to be disclosed, I know people are upset steam didn't push for a complete disclosure, but imo I agree with this approach, if anyone uses it for asset generate, i think thats prohibited given they previously took down a game for potential copyright violations, but for things you can interact with, those are like the first thing that can appear as bugs which could very quickly fill steam up with slop/buggy games, but for stuff less visible, I don't know, I guess wont matter as much? I worked on a few singleplayer games in the past (nothing on steam, also i did not use ai then). So I don't know is it an important distinction? I don't think i would be in favor with steam forcing people to disclose ALL uses of AI, like if its used appropriately like a tool, because too alot of people its all the same with no nuance, but thats just my opinion.

In other very late news, pre-generated content and live-generated content is an important distinction with steam, with live-generated having much more scrutiny and being banned for any 18+ content, this makes sense for me, I don't think anyone would disagree with this, but if anyone has any thoughts on this I am curious on what they are.

12

Is there any good courses that cover the more technical aspects of backend development? Here are some examples, not even limited to this, but I want to hear more than the basics and also some security things to look out for in like a yt video or something, potentially includes, CORS, Cookies, JWT, server side sessions, server side rendering, websockets, server side events, html patterns (e.g the backend returning html components to be place into the browser). Status Codes, GET and POST, GRPC, file transfers.

9

Is there any good courses that cover the more technical aspects of backend development? Here are some examples, not even limited to this, but I want to hear more than the basics and also some security things to look out for in like a yt video or something, potentially includes, CORS, Cookies, JWT, server side sessions, server side rendering, websockets, server side events, html patterns (e.g the backend returning html components to be place into the browser). Status Codes, GET and POST, GRPC, file transfers.

22
submitted 2 months ago by SpiderUnderUrBed@lemmy.zip to c/linux@lemmy.ml

Currently I have only one laptop, I use it for everything and it has an nvidia gpu and a 11th Gen Intel(R) Core(TM) i7-11800H. I have a mode which disables the GPU which i use when i am out and about. However I want to minimize battery use to a significant degree, so which out of the three should I have on? power-profiles-daemon or autocpu-freq or tlp, which is better for battery performance? I know ppd is configurable via desktop, so i have kde set to power saving mode, but I still want better if possible, is there something more i can be doing with ppd or would autocpu-freq or tlp work better?

29

I am using rust, but this applies to many other languages, I get warnings like, dead code, unused variables, and etc, and while I remove most of them, there are some im not sure of, I like running my program and there being 0 warnings, or 0 warnings as i scroll down my code, so for things im unsure of, i mark them so the compiler doesn't put warnings there. I also add comments, starting with TODO:, it has some information about what to think about when i revisit it, also the todo's gets highlighed in my IDE with my extension, but is this bad practice?

25
submitted 3 months ago* (last edited 1 month ago) by SpiderUnderUrBed@lemmy.zip to c/linux@lemmy.ml

I know this is application specific, but this relates to my overrall nix config i think, pipewire, wireplumber, all enabled. But I cannot record internal desktop audio, how do i fix this? is it a nix fix

I set the recording device to pipewire, I heard the host device needed to be set to pipewire or smthin, but only alsa shows up. If any logs are needed tell me.

EDIT: Not really solved but I found a script that worked for pw-record, now ideally I would like to fix it for audacity at some point, or just some other gui audio recorder

cat > ~/Music/record-desktop.sh << 'EOF'
#!/bin/bash
OUTPUT="${1:-$HOME/Music/Recordings/recording-$(date +%Y%m%d-%H%M%S).wav}"
pw-record --target 0 "$OUTPUT" &
PID=$!
sleep 0.5
pw-link bluez_output.30:50:75:16:40:A6:monitor_FL pw-record:input_FL
pw-link bluez_output.30:50:75:16:40:A6:monitor_FR pw-record:input_FR
echo "Recording to $OUTPUT (PID $PID) — press Enter to stop"
read
kill $PID
echo "Done! Saved to $OUTPUT"
EOF
chmod +x ~/Music/record-desktop.sh

EDIT (2): Found a better script which autodetects the monitor:

#!/bin/bash
OUTPUT="${1:-$HOME/Music/Recordings/recording-$(date +%Y%m%d-%H%M%S).wav}"

# Find the RUNNING monitor source
MONITOR=$(pactl list short sources | awk '/monitor.*RUNNING/ {print $2}' | head -1)

if [ -z "$MONITOR" ]; then
    echo "Error: no active monitor source found" >&2
    exit 1
fi

# Try to find a matching input (e.g. bluez mic matching same MAC as monitor)
MAC=$(echo "$MONITOR" | grep -oP '[0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}' | head -1 | tr '_' ':')
MIC=$(pactl list short sources | grep -v monitor | awk -v mac="$MAC" '$0 ~ mac {print $2}' | head -1)

# Fall back to first non-monitor non-suspended source
if [ -z "$MIC" ]; then
    MIC=$(pactl list short sources | awk '!/monitor/ && /RUNNING|IDLE/ {print $2}' | head -1)
fi

echo "Recording desktop from: $MONITOR"
echo "Recording to: $OUTPUT"
echo "Press Ctrl+C to stop"

if [ -n "$MIC" ]; then
    echo "Recording mic from: $MIC"
    ffmpeg -f pulse -i "$MONITOR" -f pulse -i "$MIC" \
        -filter_complex amix=inputs=2:duration=longest \
        "$OUTPUT"
else
    echo "Warning: no mic found, recording desktop only"
    ffmpeg -f pulse -i "$MONITOR" "$OUTPUT"
fi

echo "Done! Saved to $OUTPUT"

EDIT (3): found something that includes my mic:

#
#!/bin/bash
OUTPUT="${1:-$HOME/Music/Recordings/recording-$(date +%Y%m%d-%H%M%S).wav}"

MONITOR=$(pactl list short sources | awk '/monitor.*RUNNING/ {print $2}' | head -1)

if [ -z "$MONITOR" ]; then
    echo "Error: no active monitor source found" >&2
    exit 1
fi

MAC=$(echo "$MONITOR" | grep -oP '[0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}[_:][0-9A-Fa-f]{2}' | head -1 | tr '_' ':')
MIC=$(pactl list short sources | grep -v monitor | awk -v mac="$MAC" '$0 ~ mac {print $2}' | head -1)

if [ -z "$MIC" ]; then
    MIC=$(pactl list short sources | awk '!/monitor/ && /RUNNING|IDLE/ {print $2}' | head -1)
fi

echo "Recording desktop from: $MONITOR"
echo "Recording to: $OUTPUT"
echo "Press Ctrl+C to stop"

if [ -n "$MIC" ]; then
    echo "Recording mic from: $MIC"
    ffmpeg -f pulse -i "$MONITOR" -f pulse -i "$MIC" \
        -filter_complex amix=inputs=2:duration=longest \
        "$OUTPUT"
else
    echo "Warning: no mic found, recording desktop only"
    ffmpeg -f pulse -i "$MONITOR" "$OUTPUT"
fi

echo "Done! Saved to $OUTPUT"
9
submitted 4 months ago* (last edited 4 months ago) by SpiderUnderUrBed@lemmy.zip to c/linux@lemmy.ml
flatpak run org.qbittorrent.qBittorrent
bwrap: Unable to open lock file /app/.ref: No such file or directory

I tried flatpak repair, with --user and --system, that did not fix it, and I did a system re-install, or rather reinstalled all the packages Nothing worked.

I am using nixos on unstable, recently I broke the nix part of my system, and was advised to do a re-install, I did a re-install which involved usb booting into nixos, and running a command to reinstall all the packages and rebuild in my nix directory, but afterwards, no flatpak is running. There is a possibility it broke beforehand and I didnt notice that, but i think it might have been after the re-install.

Flatpak version: 1.16.1

Distro: NixOS

Distro version: /nix/store/8hx8jwa24q6rkzhca9iqy5ckk9rbphi1-source

Architecture: x86_64

EDIT: Some flatpaks run but alot of them dont with the same error

EDIT (x2) SOLVED: I think the issue might have been the kde platform, as the apps that crashed were on kde platform 6.8 or 6.9, possibly some broken version, most likely the platform and bwrap didnt play well with nixos, these commands worked, I ran this for users (not system). Possible system might work, point is, I dont have the issue anymore.

flatpak uninstall org.inkscape.Inkscape org.qbittorrent.qBittorrent com.obsproject.Studio org.kde.kdenlive org.wireshark.Wireshark com.prusa3d.PrusaSlicer com.rafaelmardojai.Blanket io.github.seadve.Mousai net.codelogistics.clicker org.freefilesync.FreeFileSync

flatpak uninstall --runtime org.kde.Platform//6.8
flatpak uninstall --runtime org.kde.Platform//6.9
flatpak uninstall --runtime org.gnome.Platform//48

flatpak uninstall --unused -y

flatpak repair --system
flatpak repair --user

flatpak install flathub org.inkscape.Inkscape
flatpak install flathub org.qbittorrent.qBittorrent
flatpak install flathub com.obsproject.Studio
21
submitted 4 months ago by SpiderUnderUrBed@lemmy.zip to c/linux@lemmy.ml

This was talked about before, but the settings location that was mentioned to enable thumbnails on remote files and stuff has changed. I have a mount of my android system over mtp, and I cannot see any of the thumbnails, making it impossible for me to sort my stuff, some into hard drives and etc. Image

How do i enable seeing mtp thumbnails in kde, is there issues with just mtp thumbnails in dolphin or what alternative file manager or image veiwer I can use so i can see the thumbnails and relocate the images.

[-] SpiderUnderUrBed@lemmy.zip 3 points 4 months ago

It just seems overkill to have a entire partition or drive encrypted for probably a few images, not like 2-5 but there are plenty I want encrypted, there is plenty I dont need encrypted.

19
submitted 4 months ago by SpiderUnderUrBed@lemmy.zip to c/foss@beehaw.org

Hi, I want a nice easy-to-use graphical program which can show image thumbnails atleast, and provide an easy way to encrypt images, and ideally other files too. I heard of a few programs but some dont show images and some look a bit dated ui wise. Seeing image thumbnails is pretty much a requirement as it would be alot of swapping back and forth otherwise.

I am using KDE (and nixos), I dont think that matters much for what I want.

35
submitted 8 months ago by SpiderUnderUrBed@lemmy.zip to c/linux@lemmy.ml

Ncdu takes ages to run on my system, its like 500GB+ of storage space, but it takes roughly an hour to finish scanning, probably a bit less, is there any alternative which either constantly monitors my files so it always knows the sizes for me to navigate or is significantly faster than Ncdu?

[-] SpiderUnderUrBed@lemmy.zip 4 points 11 months ago

Weird it's called clicker when you can do key presses too, but I'll check it out. It looks like it fulfills my use case

[-] SpiderUnderUrBed@lemmy.zip 2 points 11 months ago

If it works on wayland then yes

[-] SpiderUnderUrBed@lemmy.zip 3 points 11 months ago

What's the difference between this and ydotool

[-] SpiderUnderUrBed@lemmy.zip 3 points 11 months ago

Unfortunately it ain't a gui

[-] SpiderUnderUrBed@lemmy.zip 3 points 11 months ago* (last edited 11 months ago)

Ehh, libreoffice doesn't even come close to what I am going for, I doubt libreoffice can come anywhere close to being used in any wiki, world building or not, transitions between pages are not seamless, and the best thing it can do is just make a document look good, which is of course useful for like all other use cases, but not for a wiki, think along the line of fandom.com or wikipedia, it would be difficult to recreate something like that with libreoffice, it simply just addresses a different use case.

[-] SpiderUnderUrBed@lemmy.zip 6 points 11 months ago

Would signal also work?

[-] SpiderUnderUrBed@lemmy.zip 2 points 11 months ago

Whats unique about herbstluftwm? I am curious about what it has to offer to you verses other tilers.

[-] SpiderUnderUrBed@lemmy.zip 21 points 1 year ago

I feel like github should have verified repositories

[-] SpiderUnderUrBed@lemmy.zip 4 points 1 year ago

How did they get the rope around him lol

[-] SpiderUnderUrBed@lemmy.zip 2 points 1 year ago

Ok so, I think it was running on the wrong node and using thats resolv.conf which I did not update, but I am getting a new issue:

2025-05-02T21:42:30Z INF Starting tunnel tunnelID=72c14e86-612a-46a7-a80f-14cfac1f0764
2025-05-02T21:42:30Z INF Version 2025.4.2 (Checksum b1ac33cda3705e8bac2c627dfd95070cb6811024e7263d4a554060d3d8561b33)
2025-05-02T21:42:30Z INF GOOS: linux, GOVersion: go1.22.5-devel-cf, GoArch: arm64
2025-05-02T21:42:30Z INF Settings: map[no-autoupdate:true]
2025-05-02T21:42:30Z INF Environmental variables map[TUNNEL_TOKEN:*****]
2025-05-02T21:42:30Z INF Generated Connector ID: 7679bafd-f44f-41de-ab1e-96f90aa9cc34
2025-05-02T21:42:40Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on 10.90.0.10:53: dial udp 10.90.0.10:53: i/o timeout"
2025-05-02T21:43:30Z WRN Unable to lookup protocol percentage.
2025-05-02T21:43:30Z INF Initial protocol quic
2025-05-02T21:43:30Z INF ICMP proxy will use 10.60.0.194 as source for IPv4
2025-05-02T21:43:30Z INF ICMP proxy will use fe80::eca8:3eff:fef1:c964 in zone eth0 as source for IPv6

2025-05-02T21:42:40Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on 10.90.0.10:53: dial udp 10.90.0.10:53: i/o timeout"

kube-dns usually isnt supposed to give a i/o timeout when going to external domains, im pretty sure its supposed to forward it to another dns server, or do i have to configure that?

[-] SpiderUnderUrBed@lemmy.zip 10 points 1 year ago

??? He said he talked to the principal multiple times

view more: next ›

SpiderUnderUrBed

joined 1 year ago