Author: jasoryeh
-
Thunderbolt eGPU Detected But Not Starting at Windows Startup
TL;DR: The solution: in your BIOS settings (or UEFI settings), look for a “security” menu, and look for “Thunderbolt Security Level” or a thunderbolt setting. You are usually presented with some or all of “Unique ID”, “One time saved key”, “DP++”, and “Legacy”. Choose either “Unique ID” or “One time saved key”. Mine was set…
-
SwiftUI: Prevent Re-draw/Updates to Views in ForEach/similar
Sometimes duplicates of a view may be re-rendered, for me, this was where a ForEach loop redrew and SwiftUI didn’t know how to distinguish between updated and non-updated views so it redrew ALL of them (in my case… many MapKit MapViews). To solve this, make the view conform to Equatable, implement the func ==(lhs, rhs)…
-
BambuStudio Slicer only using 1 color despite painting model correctly
Fix by turning off “Flush into this object” while your prime tower is enabled again, turn prime tower off after if desired.
-
GitHub Actions – No .git folder fix for Docker builds
Add `context: .` to `docker/build-push-action` to fix the no `.git` folder issue.
-
Spring Security – Fixing Non-Thymeleaf _csrf Variable to make CSRF work again đ
In non-Thymeleaf projects (in my case pug4j), _csrf is not automatically implemented and included in the template variables. I had some trouble finding how to do it but the solution was in this paragraph: If these options are not available, you can take advantage of the fact that the CsrfToken is exposed as an HttpServletRequest attribute named _csrf. The following…
-
Spring – @ConfigurationProperties classes returning null
If you’re working with some Spring projects, you probably tried to make a @ConfigurationProperties annotated class already and it’s giving nulls, your configuration also looks something like this: @ConfigurationProperties(prefix = “some.prefix”)public class ConfigurationProperties { private String[] interestingValue;} Solution: You need getters and setter methods :), luckily lombok has an easy way of doing this: @Data…