Sidebar

Programming

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

cross-posted from: https://lemmy.pierre-couy.fr/post/678825 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

12
1
programming
Programming FlashMobOfOne 2 months ago 100%
The Useless Web - A Site That Directs You To Fun Random Websites theuselessweb.com

I wanted to share this because it's just a fun departure away from all the doomscrolling. Enjoy!

68
8
programming
Programming Zuberi 3 months ago 100%
Best Recruitment Agency for Dev Work w/ Chronic Pain?

cross-posted from: https://lemmy.dbzer0.com/post/22970715 Looking for a change in work and would love suggestions on how to find jobs with understanding bosses and/or odd hours. I can always get my work done, but I tend to put in bizarre hours for my own projects due to the ebb/flow of chronic pain. For me personally, I would prefer to work 16 hours on my good days and 0 hours on the days I can barely see straight because of migraine-level pain in my neck and back. I'm currently working in San Francisco and have major issues getting to/from work without my entire day being focused on work-related travel (not to mention spending all of my time at home recuperating for the next work day) I would take a massive pay cut to have a job from home with an understanding boss. Country is entirely irrelevant to me if they speak English and accept foreigners; otherwise, I know 2nd-grade-level Spanish, German, and French. - Is going through a recruiter a good idea? - Would there be any agencies that work specifically with disabled workers? - If not, what are good websites for actually getting call-backs on dev jobs? I have all of the requirements for a home gig (desk, monitors, multiple computers, home server, webcam, etc), is there a way to subtly express that to a potential hiring manger?

23
3
programming
Programming Lysergid 3 months ago 100%
How to find truth in Agile?

Hello my fellow, lemons? I have this problem in my current project I’m out of clue how to approach it. Maybe someone had similar experience and can give an advice. Our requirements captured in JIRA. Throughout years we accumulated thousands of user stories. Say suppose following naive requirements *team* knows about: - Day 1: create home page - Day 20: create profile page - Day 50: add green footer to all pages - Day 100: create admin page Day 150: change footer color to blue Now I’m doing refactoring (yes, I know, this is the actual problem) on day 400 and noticed that footer on profile page having green footer. Because requirements are just set of individual statements not consolidated with all history of system no one on the team knows why is that, is it bug or requirement did change on day 300 but we cant find it now. When I worked in Waterfall we had BRD and FRD stating current actual desired state of system which was “reduced” from individual requirements which were coming in throughout project life. When in doubt devs can check FRD and not only know how system expected to behave but also which are other parts of the system that will be affected. How is it in Agile? To my understanding FRD is not a thing in Agile. Do I need to scan through hundreds of tickets and hope I didn’t miss anything every time i’m doing any non-trivial change to system?

9
6
programming
Programming smolgumball 3 months ago 100%
collaboration

dedicated to broken product management pipelines everywhere

5
0
programming
Programming vga 4 months ago 100%
AI layoffs
163
7
programming
Programming Templa 4 months ago 100%
Is there a federated/non-profit alternative to Stack Overflow?

Considering how SO is killing itself rather quickly, it would be interesting to have a platform with similar structure but taking users interests instead of profit of executives. I am not saying their system is perfect, I have made a post in the past on their meta community regarding how hard it is for new contributors to start. I remember hearing about an alternative but after searching for it, I couldn't find anything. Does anyone know such platform? Edit: After I posted I came across [Codidact](https://codidact.com/). I will try using it! Feel free to post other alternatives though!

44
9
programming
Programming friendly_ghost 4 months ago 100%
Why is predictive text so hard to disable?

Does anyone know, or can anyone guess, the business case for predictive text? On phone apps, it is often incredibly difficult to turn off. Why is that, do you think? (The examples I have recent experience with are Facebook and Outlook mobile apps.) I would have thought that, for AI training purposes, they would want humans typing things and not just regurgitating canned responses. But apparently not?

10
14
programming
Programming pe1uca 4 months ago 94%
How to conduct a software audit?

cross-posted from: https://lemmy.pe1uca.dev/post/1137911 > I need to help auditing a project from another team. > I got the pointers on what's expected to be checked, but I don't have like templates for documents for what's expected from an audit report which also means I'm not sure what's the usual process to conduct an internal audit. > I mean I might as well read the whole repo, but maybe that's too much? > > Any help or pointers on what I need to investigate to get started would be great!

17
2
programming
Programming Vitaly 5 months ago 100%
A map app for mobile phones with fog of war

Hello everyone, I have an idea to make a map with fog of war, when you walk you explore new areas and points of interest but you can't see unexplored areas. I'm not sure if it's a good idea, what is your opinion?

1
0
programming
Programming interolivary 5 months ago 100%
Flow state: Why fragmented thinking is worse than any interruption blog.stackblitz.com

One thing that pretty consistently drops me out of the flow state is having to dig through documentation for whatever I'm trying to use, or even worse having to dig through its source code because the documentation is either nonexistent or eg. plain wrong

15
0
programming
Programming lautan 5 months ago 100%
OpenOrb - a curated RSS and Atom feed search engine - Raphael Kabo https://raphael.computer/blog/openorb-curated-search-engine/

> Raphael Kabo's personal website and writing on programming, poetry, and academia.

13
2
programming
Programming JRepin 6 months ago 100%
Qt 6.7 released https://www.qt.io/blog/qt-6.7-released

Qt 6.7 is out with lots of large and small improvements for all of us who like to have fun when building modern applications and user experiences. Several additions are released as technology previews, and we are looking forward to your feedback so that we can get everything ready for the next LTS release!

14
2
programming
Programming BobTheDestroyer 6 months ago 75%
Powershell: How do I update my code to use a different file type?

I have a script that duplicates a Word doc template and renames each using a csv file with a list of names. What would be the equivalent code if instead of a csv file I use a text file? ``` Import-csv ‘.\individuals2.csv’ | foreach-object { $newname = ‘2 ‘ + $_.name + '.docx’ Copy-item '.\template.docx' $newname } ```

2
10
programming
Programming myxi 6 months ago 100%
I Made a English Dictionary Front-End for Terminals

cross-posted from: https://feddit.nl/post/12252747 > This project was interesting. Recently, I've been digging into the functional programming paradigm. This is one of my first tries at it. I've been doing OOP until recently, but this project really was impressive to me. The whole implementation took about nine hours. Functional programming is much less convoluted. I spent more time programming than deciding on a good name for a certain identifier. > > Not only is functional programming more efficient, but I can also see that it's much less tedious to write automated tests for. I only have to take care of the local scope of the function I am writing a test for; there is no need to deal with the parent's inherited mess or even any parent's mere state. I just have to write the test for the function. > > I have scraped the Cambridge Dictionary to collect the data. > > The project is licensed under MIT at: > > https://github.com/eeriemyxi/novi > > https://git.envs.net/myxi/novi

19
0
programming
Programming hydroptic 7 months ago 100%
Velato: A programming language where source code must be a valid MIDI music file http://www.velato.net/

cross-posted from: https://sopuli.xyz/post/10010650 > Ran into this [on HN](https://news.ycombinator.com/item?id=39578796) and had to share it. I love esolangs with "surprising" source representations

30
1
programming
Programming tubbadu 7 months ago 92%
I'm looking for a way to create webpages without HTML, any tips?

Hello! I'll try to explain what I'm looking for: I sometimes have to write simple web pages (not just text, also buttons and video players and so on), but I really *really* hate writing html code. What I'm used to is QML, which I like a lot, because of the ease of placing objects exactly where I need using the anchors and the Layout objects. What I'm looking for is a language or something with a similar syntax, that can then be "built" to plain HTML/CSS/JS. Is there something like this? I know I can compile Qt/QML for webassembly, but I'm having huge amounts of problems, and also I'd like to have the possibility to have a plain HTML result, not necessary bind to the server side. thanks in advance!!

11
15
programming
Programming hellfire103 7 months ago 100%
Error in GStreamer under PyGTK

cross-posted from: https://lemmy.ca/post/15730457 > I've written a basic media player using Python, PyGTK, and GStreamer. However, I've found a bug that I'm having trouble finding a fix to. > > In this program, opening a video launches a second window, in which the video is played back. If I close said window, however, the control window freezes and I get the following error: > > ```plain > gst-resource-error-quark: Output window was closed (3) ../sys/xvimage/xvimagesink.c(586): gst_xv_image_sink_handle_xevents (): /GstPlayBin:player/GstPlaySink:playsink/GstBin:vbin/GstXvImageSink:xvimagesink0 > ``` > > The source code can be found [here](https://codeberg.org/X-Industries/Mary). > > Does anybody have any idea how to fix this? Or is this perhaps a bug in one of the libraries?

4
0
programming
Programming hydroptic 7 months ago 100%
Reverse Engineering TikTok's VM Obfuscation | Ibiyemi Abiodun https://ibiyemiabiodun.com/projects/reversing-tiktok-pt2/

Not mine. "Part 1" is [this](https://www.nullpt.rs/reverse-engineering-tiktok-vm-1), it's also linked to in the body. I _really_ wonder what happened: > Update (21 August 2023): I did continue my investigation, but I have decided not to publish the results. Please do not continue to email me about this.

23
3
programming
Programming friendly_ghost 8 months ago 100%
Finding projects that need user testing?

I'm digging into the world of #FOSS #opensource and would like to help with existing projects. My programming chops are not sharp yet, but I'm a detail-oriented communicator who knows a bit about user testing. How do I find projects on GitHub, GitLab, or other sites that need this kind of help? The machines I would be testing on are a potato desktop running Pop_OS Linux and an Android phone. Thanks in advance!

6
1
programming
Programming brie 8 months ago 100%
scriptscrub (`script` output pruner / watcher) gitlab.com

Edit 2024-01-26: I ended up feature creeping it a bit. It can now be used as a `less` input filter, and asciinema-esque recording playback. Original post: A less bad name TBD. This is a little program I made to convert `script` captures into properly laid out text. A lot of the behaviour still isn't quite right, but I'm pretty happy with it as a proof-of-concept.

7
0
programming
Programming mozz 8 months ago 100%
So yesterday a very weird thing happened to me.

So. I was working with this code: ``` public function front(?string $sortBy, ?string $time, ?string $type, ?string $filter, string $federation, Request $request): Response { $user = $this->getUser(); if (!$user) { $filter = 'all'; } $criteria = new EntryPageView($this->getPageNb($request)); $criteria->showSortOption($criteria->resolveSort($sortBy)) ``` ... and so on; the function continues. VSCode told me there was a syntax error on the close brace on the if statement. I stared at it for a while, then pasted the code into GPT (not Copilot). Here's the conversation we had about it: --- **Me** What's the syntax error here? (and I pasted the code) **GPT** The syntax error in your PHP function public function front seems to be due to the incorrect placement of the closing curly brace for the if statement. It appears that the if statement is not properly closed before the $criteria initialization begins. The corrected code should look like this: ``` public function front(?string $sortBy, ?string $time, ?string $type, ?string $filter, string $federation, Request $request): Response { $user = $this->getUser(); if (!$user) { $filter = 'all'; } // Closing brace for the if statement $criteria = new EntryPageView($this->getPageNb($request)); $criteria->showSortOption($criteria->resolveSort($sortBy)); // ... rest of your function code ... } ``` Ensure that each statement and block is properly closed and followed correctly by the next statement. This corrected structure should resolve the syntax error you are encountering. **Me** I don't get it. I put a closing curly brace right after the statement in mine... what am I missing? **GPT** I apologize for the confusion. Upon re-examining your code, it seems the placement of the curly brace is correct. If you're still encountering a syntax error, it may not be related to the if statement structure. Let's look at other possible issues: --- ... and so on. Pasting GPT's recommended if-statement block, including the curly brace that was already there, fixed the error. I have since re-pasted the same thing I initially gave to GPT to VSCode, and it all works now, and asking the exact same question of GPT again now leads to random guesses which have nothing to do with the cursed curly brace that was previously causing problems for both VSCode and GPT. I have given up and moved on at this point, content to say vaguely that maybe the unusual brace style, or pasting the incomplete function without semicolon or final close brace, managed to coincidentally confuse GPT on exactly the same line where VSCode had gotten confused for unexplained reasons. But the whole thing still has this Twilight-Zone oddness to me.

15
21
programming
Programming JustARegularNerd 8 months ago 96%
I thought I would teach myself Rust, apparently can't get Python out of me

Text description (for those with screenreaders): A portion of a prime number checker written in the Rust programming language, where the first few lines are written correctly including the first if statement in the program. However, the following if statements are written using Python syntax instead of Rust, as the author slipped back into his native tongue.

29
12
programming
Programming friendly_ghost 9 months ago 93%
Can I email or text myself through Python or bash?

EDIT: Thanks y'all! I got this working by installing [mutt](https://www.tecmint.com/send-mail-from-command-line-using-mutt-command/) and configuring it with my Gmail info. Please note the warning from [u/jherazob](https://beehaw.org/u/jherazob@beehaw.org) below--if this were something mission critical I would not want to rely on this solution. ================ Noob question incoming, thanks in advance for any help with this! I have a specific use case in which I want to send an automated email or text to myself once a day (the message is different each time--otherwise I would just set an alarm, lol!). I'm running Pop_OS on an old desktop computer. Where I'm stuck is getting an email to successfully send from the command line. I'm looking for easy-to-follow instructions that would help me do that, and none of the articles or videos I've come across thus far have helped. I'm aware of Twilio and other services that send SMS messages, but I'm looking for something free. Especially since I only need to text one person (myself), and infrequently at that. Below is my attempt to send an email with the telnet command. Nothing ever came through... ``` XXXXXXXX@pop-os:~$ telnet localhost smtp Trying ::1... Connected to localhost. Escape character is '^]'. 220 pop-os ESMTP Exim 4.95 Ubuntu Sun, 07 Jan 2024 15:12:28 -0500 HELO gmail.com 250 pop-os Hello localhost [::1] mail from: XXXXXXXX@gmail.com 250 OK rcpt to: XXXXXXXX@gmail.com 250 Accepted data 354 Enter message, ending with "." on a line by itself Subject: Test Body: Is this working? . 250 OK id=1rMZW4-0002dj-Uy quit ```

14
27
programming
Programming ericjmorey 9 months ago 100%
Do Users Write More Insecure Code with AI Assistants? https://chaos.social/@nblr/111698366167829445

cross-posted from: https://programming.dev/post/8121843 > [~n (@nblr@chaos.social) writes](https://chaos.social/@nblr/111698366167829445): > > >This is fine... > >>"We observed that participants who had access to the AI assistant were more likely to introduce security vulnerabilities for the majority of programming tasks, yet were also more likely to rate their insecure answers as secure compared to those in our control group." > > > >[Do Users Write More Insecure Code with AI Assistants?](https://arxiv.org/abs/2211.03622? > >

22
17
programming
Programming Penguincoder 9 months ago 100%
Gokrazy – Golang programs as a Raspberry PI Appliance https://gokrazy.org/

Deploy Golang applications to a Raspberry PI

7
2
programming
Programming ericjmorey 10 months ago 100%
AoC Input fetch tool (Rust) github.com

cross-posted from: https://lemmy.world/post/9117180 > If you're writing Advent of Code solutions in Rust, then I've [written a crate](https://github.com/ooterness/AdventOfCode/tree/main/aocfetch) that can fetch the user input data directly from the main website. > > Long story short, you provide it a login token copied from your browser cookies, and it can fetch the input data by year and day. Inputs are cached locally, so it'll only download it once for a given problem. This was heavily inspired by the PyPi [advent-of-code-data](https://pypi.org/project/advent-of-code-data/) package. > > Unlike other AoC-centric Rust crates, that's all it does. The other crates I've seen all want the code structured in a specific way to add timing benchmarks, unit testing, and other features. I wanted something lightweight where you just call a function to get the input; no more and no less. > > To use the crate: > * Follow the [AoCD instructions](https://pypi.org/project/advent-of-code-data/) to set the AOC_SESSION environment variable.\ > This key is used for authentication and should not be shared with anyone. > * Add the `aocfetch` crate to your Cargo.toml `[dependencies]` section:\ > `aocfetch = { git = "https://github.com/ooterness/AdventOfCode.git" }` > * Import the crate and call `aocfetch::get_data(year, day)` to fetch your input data. > > An example: > ``` > use aocfetch; > > fn main() { > let input = aocfetch::get_data(2023, 1).unwrap(); > println!("My input data: {}", input); > println!("Part 1 solution: 42"); // TODO > println!("Part 2 solution: 42"); // TODO > } > ``` > > If this goes well I will submit it to crates.io, but I wanted to open this up for beta-testing first.

16
1