Sidebar

Programming

programming
Programming starshipwinepineapple 1 week ago 98%
Programming.dev instance: Sponsors needed https://legal.programming.dev/docs/donation-policy/

Hi all, I'm relatively new to this instance but reading through the [instance docs](https://legal.programming.dev/docs/donation-policy/) I found: >Donations are currently made using [snowe’s github sponsors page](https://github.com/sponsors/snowe2010/). If you get another place to donate that is not this it is fake and should be reported to us. Going to the sponsor page we see the following goal: > @snowe2010's goal is to earn $200 per month > > pay for our 📫 SendGrid Account: $20 a month 💻 Vultr VPS for prod and beta sites: Prod is $115-130 a month, beta is $6-10 a month 👩🏼 Paying our admins and devops any amount ◀️ Upgrade tailscale membership: $6-? dollars a month (depends on number of users) Add in better server infrastructure including paid account for Pulsetic and Graphana. Add in better server backups, and be able to expand the team so that it's not so small. **Currently only 30% of the goal to break-even is being met. Please consider setting up a sponsorship, even if it just $1. Decentralized platforms are great but they still have real costs behind the scenes.** *Note: I'm not affiliated with the admin team, just sharing something I noticed.*

124
16
programming
Programming pcouy 15 hours ago 100%
Mitosis in the Gray-Scott model : an introduction to writing shader-based chemical simulations pierre-couy.dev

Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback. It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer. Thanks for reading

29
4
programming
Programming gregor 2 days ago 78%
A question regarding this script I wrote not working

cross-posted from: https://gregtech.eu/post/1188873 > I made [grebuntu](https://github.com/gragorther/grebuntu) to merge all of the separate scripts into one script for all distros, but it doesn't work. The individual scripts do, I tested in VMs. What could have caused the issue? the script in question is tsubuntu.sh btw, can be found in the repo The original scripts are available at https://github.com/Tsu-gu/tsubuntu

11
1
programming
Programming FizzyOrange 2 days ago 100%
How to see a graph of open/closed issues & PRs on GitHub?

Does anyone know of a website that will show you a graph of open/closed issues and PRs for a GitHub repo? This seems like such an obvious basic feature but GitHub only has a useless "insights" page which doesn't really show you anything.

14
8
programming
Programming pnutzh4x0r 5 days ago 77%
Why Copilot is Making Programmers Worse at Programming https://www.darrenhorrocks.co.uk/why-copilot-making-programmers-worse-at-programming/

> Over the past few years, the evolution of AI-driven tools like GitHub’s Copilot and other large language models (LLMs) has promised to revolutionise programming. By leveraging deep learning, these tools can generate code, suggest solutions, and even troubleshoot issues in real-time, saving developers hours of work. While these tools have obvious benefits in terms of productivity, there’s a growing concern that they may also have unintended consequences on the quality and skillset of programmers.

66
49
programming
Programming Habahnow 3 days ago 100%
Resources for RESTful API Integration practice?

I'm doing interviews for companies that would involve API integrations. I've done a couple now where I was given some general API information (some intentionally unclear, some more clear) and I felt I didn't do well. Mainly I was nervous, and felt very pressured just to understand how the different parts of the APIs interact with each other and should be interacted with. This is despite doing this for work and myself not feeling as nervous doing more common coding tests which I don't do as much at work(thanks to doing examples on hackerrank, Leetcode helping me feel more comfortable). So what are the resources I should leverage to practice API integrations? How should I go about practicing? Especially considering that I do need to perform in a certain way during interviews.

19
3
programming
Programming friendly_ghost 3 days ago 100%
Database of company names + websites?

I realize this is an absolutely unhinged thing to ask for: Can anyone direct me to a large database of company names with websites (just those two columns), ideally 100K rows or more, that I can access for free? Basically this database if it had another column with the company name: https://github.com/cygenta/top10million (but doesn't need to be anywhere near 10 million)

13
7
programming
Programming lemmee_in 1 week ago 95%
Google says replacing C/C++ in firmware with Rust is easy www.theregister.com

Google recently rewrote the firmware for protected virtual machines in its Android Virtualization Framework using the Rust programming language and wants you to do the same, assuming you deal with firmware. In a write-up on Thursday, Android engineers Ivan Lozano and Dominik Maier dig into the technical details of replacing legacy C and C++ code with Rust. "You'll see how easy it is to boost security with drop-in Rust replacements, and we'll even demonstrate how the Rust toolchain can handle specialized bare-metal targets," said Lozano and Maier. Easy is not a term commonly heard with regard to a programming language known for its steep learning curve. Nor is it easy to get C and C++ developers to see the world with Rust-tinted lenses. Just last week, one of the maintainers of the Rust for Linux project - created to work Rust code into the C-based Linux kernel - stepped down, citing resistance from Linux kernel developers. "Here's the thing, you're not going to force all of us to learn Rust," said a Linux kernel contributor during a lively discussion earlier this year at a conference.

176
93
programming
Programming pnutzh4x0r 1 week ago 97%
Windows NT vs. Unix: A design comparison blogsystem5.substack.com

> NT is often touted as a "very advanced" operating system. Why is that? What made NT better than Unix, if anything? And is that still the case? ... > Which brings me to this article—a collection of thoughts comparing the design of NT (July 1993) against contemporary Unix systems such as 4.4BSD (June 1994) or Linux 1.0 (March 1994). Beware that, due to my background, the text is written from the point of view of a Unix “expert” and an NT “clueless”, so it focuses on describing the things that NT does differently. Long but interesting article that compares the Windows NT kernel to traditional Unix kernels such as that found in BSDs or Linux.

63
6
programming
Programming leisesprecher 1 week ago 94%
What languages/frameworks for small, very low usage apps on limited hardware?

I have a small homelab running a few services, some written by myself for small tasks - so the load is basically just me a few times a day. Now, I'm a Java developer during the day, so I'm relatively productive with it and used some of these apps as learning opportunities (balls to my own wall overengineering to try out a new framework or something). Problem is, each app uses something like 200mb of memory while doing next to nothing. That seems excessive. Native images dropped that to ~70mb, but that needs a bunch of resources to build. So my question is, what is you go-to for such cases? My current candidates are Python/FastAPI, Rust and Elixir, but I'm open for anything at this point - even if it's just for learning new languages.

35
33
programming
Programming ZILtoid1991 6 days ago 90%
How do I return a fullscreen window back to normal on X11?

It was quite difficult to look up for Windows, and X11 has its own more complicated way of doing things. On X11, I've managed to enter fullscreen, but exiting is even more difficult and less documented. I know Wayland exists, but as long as XWayland provides a good enough support, I'll use that instead for now, due to lack of time on my own side. EDIT: To clarify: I meant how do I do it via API calls, in programming, not by what key is the default (which is F11).

9
4
programming
Programming phpinjected 6 days ago 46%
issues with flask

Been trying to host my flask app but it keeps coming up with issues like this Note it's a facial recognition attendance web app

-1
3
programming
Programming j4k3 1 week ago 97%
Do you often write scripts to parse a codebase and get familiar with it?

Playing around with the FOSS game Cataclysm DDA, I felt compelled to parse and connect the CPP and JSON to see relationships and complexity. It's the first time I've really felt motivated to do so. I'm just trying to wrap my head around how some features are implemented like z-levels, mining tools and various actions; simple stuff really. I find it challenging to parse something quite this large, so I started scripting a way to track down objects across the code base to see what is defined in JSON and what is hard coded. Normal? Obvious? FOSS alternatives to do this? I'm basically chaining a bunch of grep commands to print pretty trees with bat.

35
13
programming
Programming jawa21 1 week ago 99%
I need help getting back into development

A little background: Through my teens in the 90's I did a lot of the things you may expect. I was a script kiddie on mIRC, made a tank game in Unreal Engine, and did some Quake modding. From 2002-2004 I landed a job doing Java web dev, SQL, and overall database administration because my father's friend needed someone that could do that. I was ok at the job, but not great. Being young, my hobby that turned into a 9-5 made me want to stab my eyes out and I quit. With that said, I can understand a lot of what's going on, but it doesn't "click" anymore. I spent 20 years as a career machinist, but I physically can't do that anymore. Here's the rub - my twin brother is a brittle diabetic and can't work (lots of other stuff going on as well), and our mother is getting old (father passed this year). The only reasonable way forward that I can see in order to be able to support my brother is trying to get back into development. When I stopped, subversion was what we used. I'm trying to understand Git, but it's a giant conceptual leap. I guess, what I'd like to hear from you all is a way to jump back in as quickly as possible in such a way that it may be a career. Thanks

102
51
programming
Programming kSPvhmTOlwvMd7Y7E 1 week ago 81%
Anyone having acceptable performance with SQL Server + odbc?

Omg it's sooo daammmn slooow it takes around 30 seconds to bulk - insert 15000 rows Disabling indices doesn't help. Database log is at SIMPLE. My table is 50 columns wide, and from what i understand the main reason is the stupid limit of 2100 parameters in query in ODBC driver. I am using the . NET SqlBulkCopy. I only open the connection + transaction once per ~15000 inserts I have 50 millions rows to insert, it takes literally days, please send help, i can fucking write with a pen and paper faster than damned Microsoft driver inserts rows

14
23
programming
Programming cosmicbytes 2 weeks ago 96%
Reactivity and Reactive Programming [Blog Post] cosmicbyt.es

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!

24
5
programming
Programming unknown_user 2 weeks ago 100%
How Sudoku like problems can be represented in Exact Cover Problems ?

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.

14
1
programming
Programming drspod 2 weeks ago 100%
[python] Revival Hijack supply-chain attack threatens 22,000 PyPI packages https://www.bleepingcomputer.com/news/security/revival-hijack-supply-chain-attack-threatens-22-000-pypi-packages/

> 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.

34
1
programming
Programming otter 2 weeks ago 86%
[PDF] All I Need to Know About Pair Programming I Learned in Kindergarten (Fulghum 1988) https://collaboration.csc.ncsu.edu/laurie/Papers/Kindergarten.PDF

Warning that the link goes directly to the PDF, hosted on `collaboration.csc.ncsu.edu`

11
0
programming
Programming MrOzwaldMan 2 weeks ago 92%
Does your brain ever do this?

When you're on a website or an app, you look at something (a post, or a part of a UI), and your brain just starts calculating how this was made in your own language. Like brain, stop, I'm tired, I don't need the calculations right now.

46
11
programming
Programming Carighan 2 weeks ago 95%
Policy: Generative AI (e.g., ChatGPT) is banned (on Stack Overflow) meta.stackoverflow.com

Obviously, given the subject matter, I had to let ChatGPT generate a summary for this: > The Meta Stack Overflow post discusses a policy decision regarding the use of generative AI tools, such as ChatGPT, on the platform. The key points include: > 1. **Ban on Generative AI**: The community has decided to prohibit the use of generative AI for answering questions on Stack Overflow. This is due to concerns about the quality and reliability of AI-generated content. > 2. **Quality Control**: The decision aims to maintain high standards for answers, as AI-generated responses may lack accuracy and context, potentially leading to misinformation. > 3. **Community Feedback**: The policy was influenced by feedback from the community, emphasizing the importance of human expertise in providing reliable answers. > 4. **Future Considerations**: The post suggests that while the current stance is a ban, the situation may be revisited in the future as the technology evolves. > Overall, the policy reflects a commitment to ensuring that the content on Stack Overflow remains trustworthy and valuable to its users.

87
22
programming
Programming GravitySpoiled 2 weeks ago 100%
parquet vs csv

What's your take on parquet? I'm still reading into it. Why is it closely related to apache? Does inly apache push it? Meaning, if apache drops it, there'd be no interest from others to push it further? It's published under apache hadoop license. It is a permissive license. Is there a drawback to the license? Do you use it? When? I assume for sharing small data, csv is sufficient. Also, I assume csv is more accessible than parquet.

24
18
programming
Programming pnutzh4x0r 2 weeks ago 77%
Why don't more people use Linux? - DHH world.hey.com

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](https://omakub.org/)

52
65
programming
Programming cyclohexane 2 weeks ago 98%
Which protocol or open standard do you like or wish was more popular?

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.

215
269
programming
Programming SuperFola 2 weeks ago 100%
Comparing ArkScript and Python async/await https://lexp.lt/posts/python_and_arkscript_async/

This past few weeks, Python 3.13 and the possibility to disable the GIL has seen a lot of coverage and that pushed me to dig into my own language, to see how different our approaches are. So if you’re curious about the rambling of a pldev, that might be for you!

9
0
programming
Programming unknowing8343 2 weeks ago 72%
Any AI tool to analyse a git repo for malicious code?

I'm trying to feel more comfortable using random GitHub projects, basically.

28
32