Programming

26318 readers
415 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
801
802
 
 

I noticed a repository's .gitattributes entry for *.csv used text eol=crlf so I investigated and found this.

803
804
 
 

cross-posted from: https://jlai.lu/post/21901670

I trained a TruncatedSVC model on almost all Github stars to create embeddings for all repositories with more than 150 stars. I figured that could be useful so I fed the data to a Qdrant vector store and built an extension on top of it.

It can be downloaded on Firefox or Chrome. Hope you like it!

805
806
 
 

My computer is slow at compiling, esp. LLVM. If I were to buy a new computer, what components would I focus on to improve this?

807
808
809
 
 

~Update~

You can now encrypt plain text, so anything you want. With this, you can send sensitive information over insecure channels or share publicly with real plausible deniability. (below 2000 characters works without issue)

~Changes~

I rebuilt the system with a different encryption design, and address many of the flaws pointed out in V1.

I really wanted any password to always decrypt so you never know if you are right. I found the XOR algorithm that does this, but there is an entropy problem, where an incorrect password will almost always output non-common characters, I attempted to solve this at its core by diving into the math and some research papers but got nowhere, as it seemed to be almost impossible.

I tried finding an algorithm that would give me perfect plausible deniability, so if you shared a link X with a password you could use a different password and get Y, saying you never intended to share X. It doesn't exist 😢 I came up with a workaround by adding decoys which are mutable XOR ciphers joined, it allows you to set what other data is included, so you can tailor your alibi.

Here is the demo link. There are three memes you can find

Password: test1, test2, test3

~Safety~

It should be safe to share data encrypted with this method, I did some basic brute force tests and did not find any shortcuts, I have a rough estimate of a billion years on a server farm for a 12digit password.

~Considerations~

@calcopiritus@lemmy.world said:

"There’s 2 secrets here: the link and the password. And to share it with someone you need to share 2 secrets: the locked link and the password."

A strong password is almost impossible to crack, but you can use a popular text link tool like pastebin with expiry to mask the encrypted data. As for eliminating the password, I have considered using the site as the 'shared secret' so you share just the cipher, and if you know the URL you can paste it in, and it would be encrypted/decrypted with a derived key the site stored.

810
811
 
 

Are there communities, free software/open source or otherwise, using Lemmy as their forum software?

Nowadays, many use Discourse, some are on Zulip, and I just don't care about the Discord ones. Would Lenmy not fit the same purposes? It is federated and easier to participate in, like mailing lists - no need to sign up per forum. Matrix is too, but it doesn't seem to be made for long-form writing.

I believe Discourse was designed based on experience with community dynamics, and Zulip is well-designed too. Would something with federated participation like Lemmy not work as well?

812
 
 

I recently took up running and need a few good podcasts to listen to while doing so. I thought this would be a great opportunity to broaden my general programming knowledge and keep more in touch with new developments - can you recommend something?

Everything goes, from weekly stuff summarizing new tech to deep dives into certain topics.

813
814
815
265
PNG is back! (www.programmax.net)
 
 

After 20 years, PNG is back with renewed vigor! A new PNG spec was just released.

816
 
 

I made this tool so you can share 'locked' links safely & anonymously with a password. It gives you plausible deniability and crowd blending when sharing privates links.🔒

https://qrc.site/anon (open sauce) 🦑

817
 
 

Cross-posted from "How could I allow users to schedule sending emails at a specific interval?" by @lena@gregtech.eu in !learn_programming@programming.dev


Basically, I'm trying to figure out how I could allow a user to send a schedule in the cron syntax to some API, store it into the database and then send an email to them at that interval. The code is at gragorther/epigo. I'd use go-mail to send the mails.

I found stuff like River or Asynq to schedule tasks, but that is quite complex and I have absolutely no idea what the best way to implement it would be, so help with that is appreciated <3

818
819
820
821
822
823
 
 

About enshitification of web dev.

824
 
 

Perhaps the most powerful and widely used tool for literate programming ist Emacs org-mode with the babel extension. I have used it, and it is good!

However, org-mode puts a hurdle to novice users - to practice literate programming, they need to learn a bit of Emacs, which is a task in itself.

I linked the above project because it has two interesting properties:

  • One can write the literate document in Markdown. This is not as powerful as org-mode, which is tailored to larger documents, but very accessible.

  • One can modify the generated source files directly, and they are automatically read back into the literate document. This makes it much easier to work with existing tools that modify source code.

825
 
 

I had an interesting email come in about billing. GitHub thinks I owe them money...cents on the dollar but still $$. I am on the free tier on GitHub and have been the past 15+ years. image
Up til recently, ive had no bills and im not an admin on any org. It looks like all my GitHub actions on my repos are accruing billing now. None of these repos are private. So im not 100% why this is occurring.

Has this happened to anyone else? Is there something im missing here?

view more: ‹ prev next ›