silas

joined 1 year ago
[–] silas@lemmy.eco.br 1 points 9 months ago

Thanks for the reply. Yeah, I'll probably go that way once I get familiar with basic HTTP authentication in Spring.

 

Hello there.

I'm writing a simple REST API using Spring Boot and I just added basic HTTP authentication in it. I'm currently using Spring Boot 3.1.5 and Spring Security 6.1.5.

There are different instructions on the web about how to correctly setup basic HTTP authentication for web requests, I believe they differ according to the Spring Security version.

It seems that latest guides use implementations of the UserDetails interface, which I found rather confusing, as it is not clear for me how exactly the framework uses that. Instead, I found much easier and clear to write my own class that inherits from AuthenticationProvider and override its authenticate() method to do all fancy things for me, including checking and setting user roles.

I'd like to ask you if there is any drawback working with AuthenticationProvider that I cannot see right now, instead of newest documentation, that doesn't seem to just use default AuthenticationProvider.

Thanks!

 

Hi. I'm playing emulated Driver using pcsxr on Linux. Sometimes, when I'm being chased by three or more police cars for example, I'm observing a drop rate (from ~59 fps to ~45 fps). I first thought my computer (which is an old i3 540!), but I soon changed my mind because of two reasons:

  1. I was playing 1080p, but when I decreased resolution to 480p, this problem persisted.

  2. When I disabled emulator frame rate limiting, it jumped to ~120 fps and it dropped to only ~90 fps on other situations. Well, it is impossible to play the game in this situation as it seems you are playing in fast-forward mode.

Because of that, I thought that the game itself could be dropping frames in some situations. Maybe it is considering the limitations of original PS1 hardware and prefer to drop frames instead of delaying the game itself? If this is right, it is impossible to "fix" it changing the emulator configuration. Unfortunately I have no PS1 original hardware to test it myself.

Thanks!

P.S.: I recently discovered there is a Driver game for PC which seems to run much better, but now I'm past half of the PS1 version, so it is not worth to start it over again :-)

[–] silas@lemmy.eco.br 1 points 1 year ago (1 children)

Pelo que entendi tem que copiar as configurações de group_vars/all.yml para inventories/<suamaquina>/group_vars/nas.yml e alterá-las nesse arquivo, conforme as suas necessidades né?

[–] silas@lemmy.eco.br 3 points 1 year ago* (last edited 1 year ago) (3 children)

Olha, eu aprendi tudo lendo a documentação oficial mesmo (em inglês). Mas passa aqui o erro que tá dando ou a dificuldade que você tá tendo, quem sabe a gente consegue te ajudar.

[–] silas@lemmy.eco.br 3 points 1 year ago (5 children)

Olás. Você já está escrevendo o próprio playbook ou está usando algo pronto? Sem trecho de código ou mensagens de erro fica difícil de saber qual o problema.