programming.dev

8,931 readers
299 users here now

Welcome Programmers!

programming.dev is a collection of programming communities and other topics relevant to software engineers, hackers, roboticists, hardware and software enthusiasts, and more.

The site is primarily english with some communities in other languages. We are connected to many other sites using the activitypub protocol that you can view posts from in the "all" tab while the "local" tab shows posts on our site.


🔗 Site with links to all relevant programming.dev sites

🟩 Not a fan of the default UI? We have alternate frontends we host that you can view the same content from

ℹ️ We have a wiki site that communities can host documents on


⚖️ All users are expected to follow our Code of Conduct and the other various documents on our legal site

❤️ The site is run by a team of volunteers. If youre interested in donating to help fund things such as server costs you can do so here

💬 We have a microblog site aimed towards programmers available at https://bytes.programming.dev

🛠️ We have a forgejo instance for hosting git repositories relating to our site and the fediverse. If you have a project that relates and follows our Code of Conduct feel free to host it there and if you have ideas for things to improve our sites feel free to create issues in the relevant repositories. To go along with the instance we also have a site for sharing small code snippets that might be too small for their own repository.

🌲 We have a discord server and a matrix space for chatting with other members of the community. These are bridged to each other (so you can interact with people using matrix from discord and vice versa.

Fediseer


founded 1 year ago
ADMINS

The site has updated to lemmy 0.19.5, you may have to log out and then log back in

1
 
 
2
3
4
5
 
 
6
7
 
 

I run Debian 12 with KDE on my laptop. It is set up, that it locks the screen after 10 mins of inactivity. And that is typically want I want. But some times I use it with an external screen like a TV over HDMI to watch some videos, and forget to overwrite the setting to not lock the screen.

Is there some way to not lock the screen when connected to an external screen (and preferably to AC) but resume the previous behavior if no HDMI connection is made?

8
 
 

I would like to share a bash script I made for when you want to simply run a rust script once and delete it. Instead of having compile the script with rustc, running the binary and then deleting the binary, you can achive all of this with this bash script below.

The first argument will be the rust script file name. The .rs file extension is optional. The rest of the arguments are passed into the executed binary.

Simply name the bash script to something like rust-run.sh.

#!/bin/bash

#Get file path from first parameter
path=$(dirname "$1")

#Get file name from first parameter
fileName=$(basename "$1")
fileName="${fileName%'.rs'}"

#Compile executable and save it in the same directory as the rust script
rustc "${path}/${fileName}.rs" -o "${path}/${fileName}"

#If rustc commands retuned any errors, unable to compile the rust script
if [ $? -ne 0 ]; then
    return
fi

#Execute compilled executable and pass the rest of the parameters into the executable
"${path}/${fileName}" ${*:2}

#Delete compillled executable
rm "${path}/${fileName}"

If someone wants to rewrite this in rust or add these features into the rustc, feel free to do so.

9
25
submitted 4 hours ago* (last edited 4 hours ago) by [email protected] to c/godot
 
 

3rd day working on my new project in Godot, what do you guys think?

It's a very early glimpse on my logistics tycoon style game, possibly mixed with some puzzle solving.

Work in progress name of the project: Freight Minds.

Here's an alternative TikTok link nobody asked for.

10
1
django-templated-email-md (django-templated-email-md.readthedocs.io)
submitted 2 hours ago by norambna to c/django
11
49
Announcing Determinate Nix (determinate.systems)
submitted 1 day ago by starman to c/nix
12
 
 

Our workflows and productivity metrics regularly ask knowledge workers for things that do not make good knowledge work.

Bloggers on reddit lament how much “meta-work” and “not-work” exists in tech. They kvetch about the conversations and the waiting. They consider the principal engineer’s calendar, packed with meetings, quod erat demonstratum that those roles are “easy” and “airware.” They insist that, if they could manage to not get caught, they could keep several such positions simultaneously and never under-deliver on any of them. None of these jobs, they claim, ask them for all that much code.

13
 
 

The Steam Deck 2 might be significantly faster than its predecessor.

14
2
Day 13 - Users and Groups (linuxupskillchallenge.org)
submitted 4 hours ago by livialima to c/linuxupskillchallenge
15
16
17
76
Self-documenting Code (lackofimagination.org)
submitted 1 day ago by Aijan to c/programming
18
 
 

They seem to be from 80', and somehow made their way into a french university. Has anyone here gotten a chance to read them? Some of the chapters seem interesting, lots about DOD stuff.

19
 
 
20
2
submitted 13 hours ago by CodiUnicorn to c/csharp
 
 
21
1
Chakra UI: Announcing v3 (www.chakra-ui.com)
submitted 4 hours ago by [email protected] to c/react
22
 
 

Alt text for image: A SteamDB graph of the Factorio player count since release, with a current and all-time peak of 47,557 players

23
 
 

I've been migrating to linux recently and next headache on the list are my starr apps (sonarr, radarr, etc). On windows I just had them installed as background services but I wanted to give (rootless) podman a try on linux since everyone kept recommending it and saying how much better the experience is than on windows.

Anyway, I've set everything up and some of the services work, but specifically sonarr and radarr can't write to the main media folder with the error: Folder '/data/media/tv/' is not writable by user 'abc'

So, first of all, I didn't make user 'abc', it is some internal docker/podman/starr user allegedly and it's supposed to be mapped to my real user, which I did by providing the PUID=1000, PGID=1000 env variables.

Second, I tried to give read and write permissions to everyone for the placeholder folders but it didn't change anything. I don't think this is the issue since other services like the one for sabnzbd or jellyfin had no problems using folders I created.

Googling for the issue brought up some topics about NFS shares but I don't know anything about this - this is not a NAS or even some external drive, it's just podman installed on fedora.

Any help is appreciated, here's a pastebin of my compose file if it's relevant https://pastebin.com/uX9Saqvj

24
 
 

Hi. I read somewhere that you need to tinker with bios / secure boot? In order to install NVIDIA drivers on Linux. Is this true?

25
 
 

A new concept from Hyundai's parts division, Hyundai Mobis, developed in partnership with optics specialists Zeiss, aims to transform your entire windshield into one massive display. Dubbed the "Holographic Windshield Display," it takes the modest head-up displays we've seen for decades and dramatically expands their scope.

view more: next ›