BehindTheBarrier

joined 3 years ago
[–] BehindTheBarrier@programming.dev 6 points 4 days ago* (last edited 4 days ago) (3 children)

I don't have a link or full context, but it turned out that the dev of tessaract (open source program for fediverse sites, involving at least spam and blocking tools) had a functionality in the program that fetched their own block list from their site. But this blocksite was blocking a huge amount of users, fediverse domains, and anything with any keywords which would be anything political, some porn/sexual terms like Yuri, and lots more. This block was completely invisible the ones running the program and would also give fediverse instances that were blocked a generic failed to connect error instead of saying blocked, preventing the fediverse instances from talking.

Seeing the above, it seems like the dev didn't handle this discovery in any good way either and retaliated but doing this ddos thing.

I support knowing SIMD, but I think it's worth mentioning that with good design depending on language and compiler you can get SIMD for free by auto vectorization.

At least Rust does this, and let's you get away not touching explicit SIMD at all. It's of course more fragile since you don't always know if it's done or not, and they can be skipped for minor changes in code and a, but with good loop hygiene you'll get a lot of it for free.

For truly fast implementations though, handmade SIMDis usually better and faster if done correctly. And can do much more than auto vectorization can.

[–] BehindTheBarrier@programming.dev 18 points 1 month ago* (last edited 1 month ago)

Honestly there's so many weird flowers out there it can be hard to tell truth from fiction. Yeah these are AI generated, but look at all the other flowers that are real:

  • Lambs ear
  • Sea holly
  • Teddy Bear sunflowers are real even
  • Protea "Little Prince"
  • Hoya Multiflora

Lots of very interesting flowers out there.

[–] BehindTheBarrier@programming.dev 3 points 1 month ago (9 children)

I'm still quite new to Linux, using CachyOS (arch). What's the best alternative to AUR, I saw someone mention Flatpak because it is at least somewhat sandboxed. Anyone have some best practices given AUR doesn't seem to good of a choice?

Sorta first time Linux user, picked CachyOS because it came with friendly installer and startup install guide/automation. Unlike last time i tried Linux to run some python project on the GPU I never managed to install CUDA.

CachyOS promised out of box support, wine/proton directly, and the selection of default tools got me far along the Windows migration. So far no issues even compiling programs that need CUDA drivers and more. Haven't really gamed a lot, but this OS is supposed to be good for that.

My worst one, have working code, make a change, it broke. Revert it, still broken...

The issue was that all icons and stuff randomly got a wrong size in the GUI. Just had to restart the machine to fix it, but I was really pulling my hair out when I somehow broke things backwards in time.

Lumine(boot manager) on my PC remembers the last boot choice, so when I choose windows it keep going to that until I choose Linux again. Have about 5 seconds to press a button before it auto starts. Seems like the most sane alternative here.

Adversarial reviews are also great ways to prune bad ideas and assumptions from plans. Have helped me out greatly and made the better LLMs often go "plan said do X, but doing that is a unknown huge risk that may take longer then the rest of the plan".

The superpowers plugin does the brainstorm, qa, design plan, implementation plan, implement, review quite well. It should aid the process of actually doing feature type work. I also add adversarial reviews into the process, saves a lot of time debugging what went wrong after implementation.

[–] BehindTheBarrier@programming.dev 2 points 3 months ago* (last edited 3 months ago)

Can't forget the simplest form, at least in my language but pretty sure it works in English.

And that is just loudly declare the item you want:

SALT!

Peguots(car brand) app requires between 8 and 16 characters, no repeating characters, and that it contain 4 of the following: uppercase letter, lowercase letter, number, a special character in this list @$!%*?&_- ;

You'd think that'd be fine, but no. It took me several tries to generate a password that complied, even after limiting to only valid characters and a length of 16. I got the feeling there's an extra rule not shown,maybe lost in translation. In Norwegian it literally says "no repeat or successive characters" making it sound like I can only use a letter once, but thankfully not.

Pure torture. And the app is so shit I get logged out often, and auto fill with my password manager does not work in that app. Pressing login also fails half the time.

[–] BehindTheBarrier@programming.dev 2 points 6 months ago (1 children)

I have shitty music taste, and ended up downloading nightcore songs from YouTube. And the videos were usually named "Nightcore - song title". So chances of duplicate songs end up a lot higher when the only unique thing is the title of the song...

[–] BehindTheBarrier@programming.dev 3 points 6 months ago (3 children)

They had different names like (1) if they were duplicates. But all my files were named something like "Artist - title.mp3", and the Metadata tag for artist and title were generated based on the filename. I don't know how they would look after being synced over to my phone from Spotify though, but it is probably how Spotify names the files that broke it on my phone.

All the files were in the same folder on my pc too, for reference. So they have unique filenames, but two files could have the exact same artist and song title. I give that's it's an obscure edge case, but really frustrating.

 

I'm super new to Rust, like a day old really.

But I tried a program made in Rust on Windows, and it refuses to work.

Never prints anything. Just straight up instantly dead. Long story short, this thing relies on some linked stuff like ffmpeg in some form. So, I did my best trying to gather all the things it needs per github issues, reddit and other souces. And the end result was that it now spent 0.1 s longer before crashing, actually leaving time for some error in the Windows Event log. Nothing useful there either as far as I can see.

So I clone the repo and get the required things to compile Rust, and I managed to build it from source at least. The executable doesn't run, but the Run in VS Code works, somehow. It prints the error messages corresponding to missing input. So i try to debug it, but nothing happens. No breakpoint is hit, and nothing is printed in the terminal, unlike when using Run or cargo Run. I can also just strip out everything it does in the file the main function is in, and it will hit breakpoints. But that didn't help me find out what is missing/broken though.

So what the difference, is there a way to catch and prevent Rust from just going silent, and actually tell you what dependencies it failed to load?

My entire reason for getting it running locally is to fix that. Because no one sane wants to deal with a program that doesn't tell you why it will not run... And when debugging also does nothing... I'm out of ideas.

The program is called Av1an for reference, and it's a video encoding tool. I used a python version before they migrated to Rust, and wanted to give it a try again.

Edit: Wrote linked library, but i think the proper term is dynamic libraries. I'm really not good with compiled programs.

Update: Figured it out. Had to copy the out files from the ffmpeg compiled stuff back to the executable. Apparently Cargo Run includes that location when looing for the files, while running from the command line clearly doesn't.

But the biggest whiplash, was that I got a full windows dialog popup when i tried to in the exectuable in CMD instead of Powershell. Told me the exact file I was missing too. I know PowerShell is a bitch when piping stuff, but I'm amazed no other program or error message could hand me that vital information. Fuck me, I wish I had tried that from the start....

view more: next ›