BehindTheBarrier

u/BehindTheBarrier@programming.dev
2 posts · 224 comments

Recent posts

Recent comments

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.

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.

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?

The bigger paid models or potentially the local ones if given access to search the web can probably get you the right answers. The big ones have pretty much memorized half the internet, but can still be wrong so pushing them to verify their answers.

But the harder part is trusting what they say regardless. I can't just take an answer for truth, and unless I can verify the statement (fact checking myself, looking up the source, running/testing the code, etc) then it gets harder to do anything with AI. This is the thing I hate about AI in general, people just take whatever they say at face value. Lawyers with fake citations, random people asking chatgpt about random facts and such. Its a tool that people put too much faith in to do thinking for them.

But they do work, maybe not as a full replacement but my god the amount of boilerplate I can avoid in creating unit tests from scratch. Extracting and finding information in the code base is also useful, not everything is an easy text search of tracing a few code paths. It's an incredible tool for these kinds of work.

If it becomes harder to tell the difference then it also means it's closer to matching reality. And todays AI can do very impressive "reasoning", managing to debug complex issues I have had.

The most important part is that you as developer is fully responsible and can stand behind what they do and deliver using AI agents.

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.

In principle I agree>!!<, but in practice it's not clear cut.

The main one is some historic accuracy, I say some because the color of the skin doesn't really matter for most things set in some time period or era where a race wasn't particularly present.

The second one is just how it looks, we'll see how well casting Snape for the new Harry Potter goes as it seems to be Harry's father is bullying the weird black kid. Another one is the Artemis Fowl movie which cases a woman as leader for the Fairy unit, which undermines the actual accomplishment of Holly being the first to get here place as a woman. It's not the end of the world, but it changes the tone and plot.

Probably not the end of the world, but these problems fall on the same line as other poor adaption/remake choices that actively hurt the story is try to tell. Not everyone can fit into a role in a story, and I don't think that's systematic discrimination. And I reiterate, it largely depends on the setting of the story. For most things, gener and race is not a big factor.

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.

on Manners are important. · c/comicstrips · 2 pts · 120d

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!

I wonder if it's similar to the reason why i find it ok to work in, it's feels similar to a python just with brackets and static types. A lot of the bothersome work is hidden from you, at least with .NET.

One does get annoying things, and a lot of "you should just know to do this" for things you don't really understand or encounter naturally, but that's also something in other languages.

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.

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.

Not sure if it fully fits, but one of my old HTC android phones has a bug where it would randomly fail any network request, by just never finishing it. No timeouts either.

It never got fixed. Loading a page in the browser, got stuck, and would need a new refresh. Some apps like Baconreader would get stuck doing the same, any app could have it happen. But sometimes the stars align, Facebooks Messenger had (has? don't see it anymore) the chat bubbles that showed over whatever else on the screen. And i clicked one of those, and they got stuck loading. And there was literally no way to close it. There was no timeouts, so i eventually had to hold the power button and reboot...

Other notable mentions, Spotify on android did not handle duplicated files (since you could add your own music to it) with the same filename or at least artist - title metadata. It would always only play one of them. It was very interesting because Spotify on pc worked, so i could play the second track fine there, but if i told it to continue play through my phone then it would continue form the same timestamp on other track.... Might be related to my phone being stupid, but there was a whole range of infuriating spotify issues. So i just moved to use poweramp and store and sync local music since i had a lot there to begin with .

I'm going to second the ffmpeg answers, they do the job but won't be completely accurate to timestamps due to cutting at key frames. That's how you persevere original quality though, and it's fastest.

If you need to reencode to fit a target size as well, there exists tools for that too. I made my own for cutting shadowplay recordings by selecting start and stop points in the video and encoding them to fit the discord 8MB limit back in the day. My version is not exactly user friendly to get going though, and not updated for the last 5 years or so. Should still work though.

I have had a lot over time : Motherload Idk the name anymore, but something like fighter Z, a space invaders like game were enemies scroll in as you blast things away with a super jet. A space discovery game, was in Norwegian. A mystical signal arrives and you need to research it and eventually send out a space ship.

I was reminded of another i missed, Sinjid: Shadow of the Warrior. A ninja fighter flash game.

Last one I guess I might be missing was a 2d like game where the word was blocks like Minecraft but square board levels, angled like a diamond, I think it's called isometric. sorta like the q*bert games I think. Don't remember much of the goal, but walk around and collect gems I think. I believe most levels were mostly green grass and water/rivers separating areas. Main character might have been a girl.