Programming

24607 readers
156 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
1026
 
 

The EFF is urging people to contact their legislators now, before the vote.

https://act.eff.org/action/tell-congress-we-can-t-afford-more-bad-patents

1027
 
 
1028
1029
1030
 
 

I'm wondering how hard it would be to write a firefox extension that blocked individual Lemmy posts based on the presence of words in a block list.

I'm pretty famiiar with Python, but have only done a little bit of hacking of JS, so was hoping the brains trust could provide some insight.

1031
1032
 
 

I'm working my way to a CS degree and am currently slogging my way through an 8-week Trig course. I barely passed College Algebra and have another Algebra and two Calculus classes ahead of me.

How much of this will I need in a programming job? And, more importantly, if I suck at Math, should I just find another career path?

1033
1034
 
 

The fourth iteration of a game jam all about accessibility is now open for registration, a month long jam about creating blind accessible games that starts in February!

Sign up here!

https://itch.io/jam/games-for-blind-gamers-4

Over the last 3 iterations we as a community have created over 70 blind accessible video games, and we would love if you all signed up and helped make this the most successful jam yet!

https://itch.io/jam/games-for-blind-gamers-3/entries https://itch.io/jam/games-for-blind-gamers-2/entries https://itch.io/jam/games-for-blind-gamers/entries

Also I will say programming accessibility for a game is an interesting challenge for anyone thinking about it. I had to learn a lot about API and screen readers to make my games usable for my entries!

1035
 
 

So I'm no expert, but I have been a hobbyist C and Rust dev for a while now, and I've installed tons of programs from GitHub and whatnot that required manual compilation or other hoops to jump through, but I am constantly befuddled installing python apps. They seem to always need a very specific (often outdated) version of python, require a bunch of venv nonsense, googling gives tons of outdated info that no longer works, and generally seem incredibly not portable. As someone who doesn't work in python, it seems more obtuse than any other language's ecosystem. Why is it like this?

1036
4
submitted 1 year ago* (last edited 1 year ago) by xoron@programming.dev to c/programming@programming.dev
 
 

im working on a javascript UI framework for personal projects and im trying to create something like a React-hook that handles "encrypted at rest".

the react-hook is described in more detail here. id like to extend its functionality to have encrypted persistant data. my approach is the following and it would be great if you could follow along and let me know if im doing something wrong. all advice is apprciated.

im using indexedDB to store the data. i created some basic functionality to automatically persist and rehydrate data. im now investigating password-encrypting the data with javascript using the browser cryptography api.

i have a PR here you can test out on codespaces or clone, but tldr: i encrypt before saving and decrypt when loading. this seems to be working as expected. i will also encrypt/decrypt the event listeners im using and this should keep it safe from anything like browser extensions from listening to events.

the password is something the user will have to put in themselves at part of some init() process. i havent created an input for this yet, so its hardcoded. this is then used to encrypt/decrypt the data.

i would persist the unencrypted salt to indexedDB because this is then used to generate the key.

i think i am almost done with this functionality, but id like advice on anything ive overlooked or things too keep-in-mind. id like to make the storage as secure as possible.

1037
 
 

Hello, I am building a dashboard where users can add their own user scripts. I at least want to keep the last 100 log lines stored somewhere so that the user can check them later.

I thought of using the backend's sqlite database but that would slow down the performance of other querys that are much more high priority.

1038
 
 

Discovering your application by usecase validation. Make test writing fast, understandable by any human understanding English or French. Open source under MIT license.

[Cross-posted from https://programming.dev/post/21401242]

1039
1040
1041
1042
1043
1044
1045
1046
 
 

cross-posted from: https://lemm.ee/post/46066494

I followed the recommended processes for adding images to my app, and it is being displayed correctly on the layout preview, but not at all on the app. I have vector assets, webp, png images, but none are being displayed.

The project is too big to put here in its entirety, but please ask for any snippets that could help you solve the issue. I've tried searching the web and asking LLMs and neither could help, so please help me, fellow humans.

1047
1048
1049
 
 

๐Ÿš€ NextCloudTalkAutomationBot: The power of a SIEMโ€ฆ without the SIEM! ๐Ÿ˜† - A powerful and flexible bot for sending system notifications and Event Logs through messages via Nextcloud Talk. ๐Ÿ’ฌ โœจ Key features: run Bash scripts/commands, using #Nextcloud Talk as your output screen ๐Ÿ“บ; receive real-time CPU, storage, #Docker #Container status, and Nextcloud/Wireguard authentication logs ๐Ÿ” #ServerMonitoring #SelfHosting #RaspberryPi#EventLogging

1050
104
submitted 1 year ago* (last edited 1 year ago) by mesamunefire@lemmy.world to c/programming@programming.dev
 
 

Its come full circle, AI job applicants sending resumes to bots.

view more: โ€น prev next โ€บ