BehindTheBarrier

joined 2 years ago
[–] BehindTheBarrier@programming.dev 10 points 4 days ago (1 children)

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.

[–] BehindTheBarrier@programming.dev 5 points 9 months ago (1 children)

I principally agree with you, it's why I use reddit/lemmy and not 4chan.

But there is a difference, albeit hard to convey correctly through text. But I think some of the extreme responses mentioned are the ones in the banter type. It's a kind of response when someone jokingly says "Star Wars and Star Trek is pretty much the same" and you go "I'll skin you alive" due to the unjust comparison. It sure as hell don't work with strangers, but it can within an community since everyone knows neither party is serious about it. Which is what the original post kind of says that it can work in the right community.

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

At least Rust compiles down to what is used. I don't know if js has any of that, but at least with rust the final program doesn't ship tons of bloat.

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

I'm no expert on the grain side, but Netflix had a nice writeup about its power.

https://netflixtechblog.com/av1-scale-film-grain-synthesis-the-awakening-ee09cfdff40b

I also heard that when you use film grain, you should disable the denoising done on the output to properly preserve detail in the encoding. Which depends on the encoder, but should generally be possible on the ones that do film grain.

But it might not be as good for artistic film grain that doesn't fit normal "grain" in videos.

Tesla somehow manages to do well(at least prior to the nazi events). Still at a good price in Norway.

But all other manufacturers have dragged their feet with EVs, and that price cost of starting is large enough that they are in trouble. I'm not a huge fan of China, but they did the investment and are ahead exactly because of that (and crazy subsidies). Being left behind is their own fault imo, and I think that applies a lot to EU as well. Eg. WV.

[–] BehindTheBarrier@programming.dev 15 points 10 months ago (5 children)

Code normally works fine after you write it and then hopefully at least test by hand. The new guy 5 years later, which do not fully grasp the extent of his actions, and the guy reviewing the code also not being too familiar with it, will not make sure everything does as intended.

Tests are correctness guarantees, and requires the code and/or the test to change to pass. They also explain how something should behave to people that don't know. I work in a area where there are so many businesses rules that there is no one person that knows all of it, and capturing the rules as tests is a great way to make sure that rules remains true after someone else comes to change the code.

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

In modern games, I think it's fairly common to have a common 3d skeletons share names. So you can make animations like the one above apply to any character even if they have differences. It doesn't mean that dog extends human, but it may mean that a dog model shares a lot of common "bones", that are used for movement, with a human model.

So when a human animation is applied to the dog, you can see it warp to start position of the animation, move, and then then stop at the end position as a standing human, before warping back to idle animation (when it turns back into the dog shape)

Related, weapons in Destiny also share the same components across weapon types, and bugs have caused one weapon type to be used for another weapon, making funny things happen. Like how a hand canon (pistol) stretches like a bow because it's model got used in place of the bow model at the start of this clip:

https://www.youtube.com/watch?v=0YZa9vv5U0M

I know my product managers don't use chatGTP because they end all sentences with ... , every damn time. And I'm fairly sure their habit developed independently, given that one of them is from a relatively recent purchase of a company.

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

"".to_string() probably

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

I feel this is related, and hightlight this even further, look at all the ways to initialize something in C++.

https://www.youtube.com/watch?v=7DTlWPgX6zs

If you are really lazy, have a look at making an int at around 7:20. It's not horrible that alone, but it does show how many meanings each thing has with very little difference, added on top of years of legacy compatability accumulation. Then it further goes into detail about the auto use, and how parantheses, bracket, squiggly bracket all can be used and help with the mess.

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

None of those issues for my main IDE, though Rider on some occasions do get stuck marking some spelling errors after they are fixed.

It has stuttered a few times, but pretty rare. But it does have a bug where it think it is building a project, but isn't. And requires a restart to fix... Easy to trigger if you try building a project while it's loading the project...

Visual Stuido with Resharper is the one where things would randomly stop working though. Especially hotkeys would sometimes stop working until I restarted it. Slow and stutter too.

 

Some background, I work full stack while we also man the support email from users. I'm manning the support email this week, but today I was also tech support for a fellow developer.

We use HP docks to connect everything from screens to keyboards. But today a dock would not do anything when my colleague attempted to use it.

Being the nosy kind, I went and asked the usual

  • Did you reboot?
  • Did you remove the power to the dock?
  • Try messing with the drivers?
  • lock the screen before unplugging?
  • Tried another dock?

All yes, none worked. Our IT support hadn't opened for the day yet and he was looking into updating the specific dock driver.

So I asked, did you try the other USB-C port? And what do you know, that worked. Then he just plugged right back into the first USB-C port and everything was back to normal. I don't know who made the drivers, but it's pretty danning when they can brick a specific USB port until it's forced to redo whatever config that messes it up, by using another USB port...

If anyone wonders, the docks have a magnetically joined charging and USB plug, so it's fairly natural to plug them in together side by side. It's also almost uniquely a dock issue and not a dead USB port, so it's funny that the enite thing uncloggs from just using another port for a second. But a reboot does not...

 

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 ›