That post seems to be missing.
load all comments
MagicShel 10 points 5 days ago

For being not a coder, this is fairly ambitious. I've been coding software for thirty years and I'm not sure I can offer anything technical. Personally, I'd probably try to do this in Python rather than shell script. Shell script is fine if you have tools you're just trying to stitch together, but this is far beyond that.

That being said, I get it. The first coding I ever did was making a character sheet for roleplaying by sending raw commands to my dot matrix printer from my Commodore 64. You have a vision in your head and a computer at your fingertips and you have to bring it all together.

I respect that and if part of your goal is to achieve this using only bash, then god speed. Otherwise I might look at a language that gives you library support and modularity and unit testing. I write Python scripts all the time, and the truth is I don't know Python at all, so I know it can be done. Define a unit of functionality and build that piece. When that piece works build another component. Then build a parent program that calls those two things. Then build more components. Define functions that can be reused when you have code that needs to do similar things.

The key is to build standalone functionality — what is the smallest useful thing you can do? Build it. Now you can invoke that every time you need to do the thing. Construct your program out of components you create.

This is kinda like if I told AI to build me a web service but keep everything in a single Java class. It would be a wild and unreadable, untestable mess.

path: 0 24309663, hotness: undefined, score: 10, children: 6
iloveDigit -2 points 5 days ago

Thank you. For the record, the main goal of using a shell script instead of a python script is maximum portability via the QR code itself. Instead of telling someone to scan a QR code and download hundreds of megabytes of python environment, all most users will have to download for my decoder is zbarimg (because everyone already has ffmpeg)

If I can get it working, anyway

path: 0 24309663 24309721, hotness: undefined, score: -2, children: 5
MagicShel 2 points 5 days ago

You can still build components and assemble them once each individual piece works. It's easier to start with something that works and add to it than start with a "fully realized" script none of which actually works.

Asking folks to review hundreds of lines of vibe-coded slop (anything, really, but especially vibe coded slop) is a big ask. I sincerely wish you luck, though. We all started somewhere and maybe as you work to fix this you'll become something of a coder yourself.

path: 0 24309663 24309721 24310985, hotness: undefined, score: 2, children: 3
iloveDigit -5 points 5 days ago

I don't get what's with these replies where people don't seem to have read the post. If none of the script actually works, idk why I'm trying to identify a Devuan behavior difference and seeing a basic round trip test passing on regular Debian. Building components and assembling them when individual pieces work is what I'm trying to do.

path: 0 24309663 24309721 24310985 24311386, hotness: undefined, score: -5, children: 2
deegeese 1 point 5 days ago

If none of the script works, we have to read all of it to understand the bug in slop code.

You’ve overloaded our own “context window”.

path: 0 24309663 24309721 24310985 24311386 24317450, hotness: undefined, score: 1, children: 1
iloveDigit 0 points 5 days ago

I think all of it except the extract_bin_folder function probably works. Encoder and reassembler seem fine. Even extract_bin_folder works at a basic level on Debian.

I do understand maybe nobody can help though. It seems like whatever the issue is, it's hard to pin down because shell scripting is finnicky or something.

path: 0 24309663 24309721 24310985 24311386 24317450 24318804, hotness: undefined, score: 0, children: 0

thanks for using Leebra!

go to feed...