When working with an LLM, it can be incredibly useful to provide all your existing code as context. There are many ways to do this, but one I ve found that is working well on smaller scale projects is the following: OSX: Ubuntu: Run from the src directory, or similar. This will recursively find any *.ts ... Read more The post Project Context Help Command appeared first on Code Review Videos .
This is a pretty straightforward one. However as someone very much still learning about Spring Boot, this one threw me. A few days ago I added the spring-boot-docker-compose dependency to an existing Spring Boot project of mine, and when I tried to bring up the application I got the following error: I hacked about a ... Read more The post Spring Boot + Docker Compose unknown flag: orphans appeared…
In the past few posts, we ve been exploring Spring Security with the long-term objective of setting up a user management system that mirrors common money-making setups often used in SaaS applications. The goal is to configure Spring Boot / Spring Security to handle a hierarchy of roles: This structure is one I ve found commonly requested ... Read more The post Generate & Verify JWTs with JJWT…
One of my projects that runs 24x7x365 is a web scraper. I ve iterated on the approach several times, and what is currently working is to do the fetch and then save the entire HTTP response in a Postgres database. From various other projects, I can then query one central database and extract out data that ... Read more The post How To Free Up Disk Space With Postgres In Docker appeared first on…
When your server is down, it s stressful. I ve just recovered from an issue with WordPress where the PHP container was crippling my server because for reasons I cannot explain connectivity to the database had just died. This actually happened to me on another server a few months ago, and I wasn t that bothered ... Read more The post How I Fixed: The plugin mysql_native_password used to…
In this post, we’ll explore how to use Spring Boot and Spring Security to manage access control for our application. Specifically, we’ll look at how to set up user roles to restrict access to certain pages based on the role of the currently logged-in user. This approach makes sure that only authorised users can view ... Read more The post Spring Security User Roles Exploration appeared first on…
In this blog post, we re going to explore what seems like a fairly straightforward process at first glance: adding basic form login to a Spring Boot app. However, as with most things in the Spring Boot and Spring Security ecosystem, it s rarely as simple as it sounds. There are several hurdles we will encounter on ... Read more The post Form-Based Login in Spring Boot with Spring Security appeared…
Short and sweet for this one. I had a failing cron job in Kubernetes which had run several times overnight. I wanted to delete many instances of errored pods, without having to resort to using a manual delete pod command. And the command to remove: After which they should all be terminated. Excellent. The post Delete Lots of Errored Pods in Kubernetes appeared first on Code Review Videos .
In TypeScript, imagine you have a situation where you have an object that could be one of several different types. How do you explain to TypeScript that the object you are working with is a specific type? Not very clear? OK. Let s see some code, and then it will likely / hopefully make more sense. ... Read more The post What If Your Object Could Be More Than One Type in TypeScript? appeared first…
Some readers of this blog may remember me from my time making and sharing Symfony (still the best PHP framework btw) training videos. I moved on from PHP generally a good few years back, but one of the things I miss most since moving primarily to JavaScript / TypeScript is the lack of a single, ... Read more The post First Steps with Spring Security & REST API appeared first on Code Review Videos…