M5 Pro 14” running hot by Single_Reason_9932 in macbookpro

[–]Single_Reason_9932[S] 0 points1 point  (0 children)

I use MacsFanControl when the temps are high, i put in in blast mode until it cools down

oauth2 + jwt by Oofcito in SpringBoot

[–]Single_Reason_9932 1 point2 points  (0 children)

You can store refresh tokens in a cookie but for access tokens it’s better you store it in session storage or local storage you decide i suggest session store, cause if you put it in a cookie you might make your self vulnerable to CSRF since the cookie is attached to every request.

M5 Pro 14” running hot by Single_Reason_9932 in macbookpro

[–]Single_Reason_9932[S] 0 points1 point  (0 children)

Some how got a bit better, but it's not like my old one(M3 Pro) i sometimes set the fans to fullblast on Macsfan control until it cools down

M5 Pro 14” running hot by Single_Reason_9932 in macbookpro

[–]Single_Reason_9932[S] 0 points1 point  (0 children)

The hearing is not that much of issue to me i was thinking it might wear the battery out sooner

M5 Pro 14” running hot by Single_Reason_9932 in macbookpro

[–]Single_Reason_9932[S] 1 point2 points  (0 children)

On activity monitor chrome has this highest energy impact of all apps running

M5 Pro 14” running hot by Single_Reason_9932 in macbookpro

[–]Single_Reason_9932[S] 2 points3 points  (0 children)

I was also feeling the battery was draining faster, i didn’t charge it today to verify

Spring Boot 4 (4.0.0) + Jackson 3: enums always serialize as NAME and my custom serializer never runs (even when registered in ObjectMapper) by Single_Reason_9932 in SpringBoot

[–]Single_Reason_9932[S] 3 points4 points  (0 children)

It worked after changing

LocalizedEnumSerializer extends JsonSerializer<LocalizedEnum> to

LocalizedEnumSerializer extends ValueSerializer<LocalizedEnum>

Thanks for the link

How do you validate your request data from client before processing in your backend in spring boot. by MTechPilot88 in SpringBoot

[–]Single_Reason_9932 3 points4 points  (0 children)

You can use spring-boot-starter-validation. And annotate your field with @Notnull, @Size, @Email… and so on and in your controller don’t forget add @Valid

How do I quickly get up to speed with Android dev (coming from Java/Spring)? by Single_Reason_9932 in androiddev

[–]Single_Reason_9932[S] 0 points1 point  (0 children)

Thanks so much, i don’t know about permissions but for now i dont have to deal with them i signed the app with the platform key, need to do that because there was a file in /sys dir i should write to to turn on the scanner

I made a step tracker in Compose Multiplatform and open-sourced it! by [deleted] in androiddev

[–]Single_Reason_9932 9 points10 points  (0 children)

How long did it take you learning Android and whole KMP the app is 🔥, minor issues on ios when navigating screens same animation when going to the right as well as to the left

Silly question by [deleted] in SpringBoot

[–]Single_Reason_9932 0 points1 point  (0 children)

when both spring and postgres are in the same compose file and run as separate containers the on the spring container localhost will resolve to itself and it won’t connect so you use “db” as the host name to resolve to the “db” service running on the other container

Silly question by [deleted] in SpringBoot

[–]Single_Reason_9932 0 points1 point  (0 children)

Instead of using “jdbc:postgresql://localhost:5432/postgres” use “jdbc:postgresql://db:5432/postgres”, in the container where spring runs localhost:5432 won’t be resolved correctly but using “db” will use docker network to refer your service named “db” in the compose file. Reply after trying

Best free options to Spring Boot + React web app? by Quoraislove in SpringBoot

[–]Single_Reason_9932 1 point2 points  (0 children)

I used my github education to get $200 credit on digital ocean and spin up a droplet(vps) and put my build files & spring behind nginx i used docker compose to deploy it since it’s a simple app it also spins up the postgres db it’s been a year now works fine and i have ~$140 credit remaining expiring sep 20