programming.dev

8,946 readers
368 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
51
 
 

There are a couple I have in mind. Like many techies, I am a huge fan of RSS for content distribution and XMPP for federated communication.

The really niche one I like is S-expressions as a data format and configuration in place of json, yaml, toml, etc.

I am a big fan of Plaintext formats, although I wish markdown had a few more features like tables.

52
53
10
Day 5 - More or less… (linuxupskillchallenge.org)
submitted 2 days ago by livialima to c/linuxupskillchallenge
54
 
 

I understand that Exact Cover is a problem where you want to select a subset of rows from a binary matrix such that each column contains exactly one '1'. What specific constraints need to be included in the matrix to ensure that the solution adheres to the rules of Sudoku (e.g., unique numbers in rows, columns, and subgrids)? provide a simple example of a Sudoku puzzle and its corresponding Exact Cover representation may be 3x3 sudoku puzzle for example ? I tried reading the Wikipedia article and various links, but I couldn't understand Exact Cover, even though I am familiar with the DLX structure.

55
56
 
 

cross-posted from: https://programming.dev/post/19007507

For context:
I've encrypted the swap partition with:

cryptsetup -v luksFormat /dev/${DEVICE}
cryptsetup luksOpen /dev/${DEVICE} swap

And what I want is for the user to be able to enter their password only once to decrypt their root partition which would contain a keyfile to then decrypt their swap partition.

Does anyone know if this is possible?
Just thought I'd ask to see if anyone's done this already

Links:

57
 
 

Most modern JavaScript UI frameworks boast Reactivity, but have you ever wondered what that means exactly?

In my opinion, Reactivity is largely responsible for making modern frontend development unintuitive to outsiders.

This blog post explains what Reactivity is, and how it manifested in the frontend development world today.

You might find this interesting if you're: a frontend dev unfamiliar with the concept, a non-frontend dev interested in frontend, or just curious what Reactivity is!

58
 
 

I currently have an API that is gaining traction. I would like to market towards people that are able to use APIs, however there is a technical barrier when It comes to requesting an endpoint, saving data, building a script around that, etc.

Should I build a web application that allows non-technical users to access the data from the API? Or, Is that a waste of time for the effort put in?

59
60
61
 
 

Threat actors are utilizing an attack called "Revival Hijack," where they register new PyPi projects using the names of previously deleted packages to conduct supply chain attacks.

The technique "could be used to hijack 22K existing PyPI packages and subsequently lead to hundreds of thousands of malicious package downloads," the researchers say.

If you ever install python software or libraries using pip install then you need to be aware of this. Since PyPI is allowing re-use of project names when a project is deleted, any python project that isn't being actively maintained could potentially have fallen victim to this issue, if it happened to depend on a package that was later deleted by its author.

This means installing legacy python code is no longer safe. You will need to check every single dependency manually to verify that it is safe.

Hopefully, actively maintained projects will notice if this happens to them, but it still isn't guaranteed. This makes me feel very uneasy installing software from PyPI, and it's not the first time this repository has been used for distributing malicious packages.

It feels completely insane to me that a software repository would allow re-use of names of deleted projects - there is so much that can go wrong with this, and very little reason to justify allowing it.

62
30
submitted 4 days ago* (last edited 4 days ago) by [email protected] to c/opensource
 
 

Just setup a new de-Googled phone and figured I'd share some of the good FOSS apps I'm using. Please feel free to chime in with any you'd recommend (or better options than what I have listed)

  • Weather: Breezy Weather. Note that the version in F-Droid is the "freenet" version and only has one source (Open-Meteo I believe). The "standard" release is available on Github and has additional sources like AccuWeather, OpenWeather, etc. Absolutely gorgeous app as well as widgets.
  • Maps: Organic Maps What Google Maps should be. Absolutely gorgeous, functional, and works 100% offline.
  • Google Play Store: Aurora Store. Sometimes you need an app that's only available in the official Play store. Aurora store lets you download apps without having Play services installed or requiring a Google account. Even if you do have Play services and Play store available, Aurora is just so much more usable since it's not a flaming dumpster fire of "suggestions", "recommendations", and ads.
  • Email: K-9 Mail. Basically Thunderbird Mobile. Enough said.
  • Calendar: Etar Fast and efficient, syncs easily with my DAVx5 synced calendars from Nextcloud
  • Tasks: OpenTasks. Create, edit, update, and complete tasks. Can sync to a CalDAV server via DAVx5.
  • Contact/Calendar/Task Sync: DavX5 WebDAV sync utility that I use to sync my calendar, contacts, and tasks from Nextcloud to my phone.
  • Matrix: SchildiChat. So much better than Element for Android. Was having constant issues with encryption keys failing to sync in Element that hasn't (yet?) been a problem with SchildiChat.
  • Launcher: FastDraw: This is more of a preference, but I really like this launcher for its simplicity and ease of organization. Don't recommend this if you use a lot of widgets as it only supports one at a time (feature, not bug).
  • Authenticator: Aegis
  • SIP/VOIP: Linphone I really wish the desktop version of Linphone had this kind of polish.
  • MPD Client: M.A.L.P Absolutely gorgeous and intuitive MPD client. I pair it with Snapcast to control my whole-house audio.
  • Quick Share: Snapdrop/Pairdrop I don't use the app (rather, I have my self-hosted one pinned as a PWA), but this is great for sending one-off files or text between devices.
  • Music: Tie between Apollo and Mucke. The default LineageOS (AOSP?) music player is nice, but the phone I setup wasn't supported with LineageOS and didn't have a good music player included. Additionally, those two scale well on the small screen of the device I'm using where others would crop off the controls at varying points.
  • Web Apps: NativeAlpha. Uses the Android System WebView to wrap any website into a standalone "app". While most mobile browsers will let you do that with the "Add to home screen" button, only ones with a manifest.json will work as apps; the rest are just shortcuts. Also includes other niceties such as adding adblock, controlling cookies, defaulting to a desktop version, and modifying the user agent string (among other options).
63
64
 
 

Hi all, I have a blog and I wanted to start sharing it on lemmy, but I am wondering, should I post the entire content of the blog post when I post it?

For context, my blog is ad-free, so I'm not concerned about missing out on ad revenue.

But my blog posts are longer than average, so it may be quite long to post them here. Moreover, the blog post may have graphics or mermaid diagrams that are not easily copy able. Is it a good practice to share the full text in the lemmy post despite this, or should I only share the URL?

65
 
 

cross-posted from: https://lemmy.ndlug.org/post/1064425

And Linux isn't minimal effort. It's an operating system that demands more of you than does the commercial offerings from Microsoft and Apple. Thus, it serves as a dojo for understanding computers better. With a sensei who keeps demanding you figure problems out on your own in order to learn and level up.

...

That's why I'd love to see more developers take another look at Linux. Such that they may develop better proficiency in the basic katas of the internet. Such that they aren't scared to connect a computer to the internet without the cover of a cloud.

Related: Omakub

66
67
68
69
70
71
72
 
 

Linux only (I think), only between desktop clients, and it requires a server.

In the short time I've tested it, everything worked.

73
7
submitted 2 days ago* (last edited 2 days ago) by LadyLeeLoosh to c/programming
 
 

One recommended approach to improving an application’s performance is caching.

74
11
submitted 2 days ago by lysdexic to c/git
75
23
submitted 3 days ago* (last edited 3 days ago) by alexdeathway to c/python
 
 

I read some articles about using a virtual environment in Docker. Their argument are that the purpose of virtualization in Docker is to introduce isolation and limit conflicts with system packages etc.

However, aren't Docker and Python-based images (e.g., python:*) already doing the same thing?

Can someone eli5 this whole thing?

view more: ‹ prev next ›