BehindTheBarrier

joined 2 years ago
[–] BehindTheBarrier@programming.dev 17 points 2 weeks ago (2 children)

Not this one, there is no ambiguity here. Order of operations are all good.

It's the round trips that kill you.

Oracle drivers for .NET are fun. Have a user client application which uses quite a lot of data, but a few thousand rows are fetched some queries. It's way too slow for any larger query, turns out for the batch query kind of work we do, the default FetchSize for Oracle is just a performance killer. Just throw it to 128 MB and it doesn't really hurt at all.

Worst thing i've seen though, apart from the 150 line long dynamic sql stored in our database, was probably a page in our program that loaded about 150 rows from the database. Normally we do create a new connection for each query, but it's fine since Oracle has a connection pool. Whatever millisecond is trumped by the round trip. But imagine a UI so badly written, it did 4 separate database queries for EACH row it loaded into the UI list. Useless things like fetching a new ID for this row in case it is changed, reading some data for the row i think, and more. Thing took a solid minute to load. There was so many bad patterns in that page that even during the PR for improving the speed it was just dealing with a mess because you couldn't just rewrite the entire thing, so they had to make it work within the constraints. Horrible thing to work with.

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

Fork it so i have my version, regardless if the original goes away. (Assuming Github doesn't nuke all repos of course like they did with youtube-dl for a while)

We got solid state to come challenge the car market in a few years. Supposedly both safer and bigger capacity. Just remains to be seen when it actually arrives in the average car. It's a tech that hasn't quite managed to get out of laboratories.

It's not helping unfortunately, it's just a blanket change in colors by some filter. The taskbar highlight is bad to begin with. Ideally the should use red/orange for warning highlights and used bright white. But a weak pink isn't going to be more visible even if it was turned redish. It'll still be weak.

And it does change every other thing on screen, which won't be good for me since colors aren't an issue normally, and even worse if it affect screen sharing. Taskbar changes is just straight up bad UX that tries to look good.

[–] BehindTheBarrier@programming.dev 13 points 1 month ago (2 children)

My experience with W11 on the work laptop.

Taskbar sucks, maybe because I'm colorblind but I can te what my selected program is and programs with notifications (Teams) look like the focused program. Apparently notification boxes there are pink now. Can't find any accessibility setting but fuck the colorblind I guess. It feels wrong to click the highlighted icon I for years have learned will mean that I minimize it...

And why all the dots? And why is the notification dot the largest, so I can even tell which window is actually focused?

Outlook doesn't open with focus, especially the window that is supposed to pop up and warn me of upcoming meetings. Really annoying.

Teams notifications just don't show if you are in a meeting and that is focused, they used to do that on W10.

Might be a Firefox bug, but there's a lot of new visual bugs. Github diff view is randomly strongly colored, and randomly changes to the old weaker background colors when scrolling/resizing the windows. And a surprising amount of scrollbars in grids that weren't there before.

I just wish W11 at least worked with the regular features of W10.

[–] BehindTheBarrier@programming.dev 5 points 4 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 4 months ago* (last edited 4 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 1 points 4 months ago* (last edited 4 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 3 points 5 months ago* (last edited 5 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.

 

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 ›