Archive For The “How To” Category
Part 2 – Accessing a Resource Recap This is a continuation of the previous post that I made some time last month. You can start reading from there to get more context – https://www.joseyamut.xyz/2021/02/24/spring-oauth2-using-password-grant-type-with-additional-headers The first part dealt with getting the access token from a 3rd party token service provider using a password grant. The…
Part 1 – Getting the Access Token In this example, I am using the older Spring Security library which is: spring-security-oauth2 The JAR file can be found at Maven public repositories here. Dependency For my case, I am specifically using the release version below because I am trying to match some limitations (Such as what…
Properties written in YAML format in my opinion reads better, far better for a human, especially when an application has tons of properties in there. Well, after all YAML was designed to be a human-readable data-serialization language. Officially it complies with JSON and is a subset of the latter (depends which version though as I’ve…
Not that long ago, I wrote about creating my own VPN (Virtual Private Network) for personal use with OpenVPN. In that post I also recounted how I used it for work purposes back when I was still in Singapore. That was several years ago. That time I had no issues connecting to the VPN server…
Now I have always thought about getting a VPN subscription for some time. Already researched a bit about it several times before. I always somehow keep on having second thoughts about getting one for several reasons that I won’t mention here. I’ve already implemented a VPN back when I was still in Singapore, using OpenVPN….
One of those people who is guilty of frequently relying on online 3rd party JSON formatting tools so messily formatted JSON strings or one-liners can be saner to read. If you are like me who deal with JSON almost every day for development, reading log messages, error tracing, etc., readability for JSON is a must….
How many countless times must I have found myself with a piece of JSON string that is formatted in a way that makes it very hard for me to read. Perhaps you’ve also experienced this several times too? As a back-end developer, having to deal with a lot of JSON is unavoidable. Heck, I deal…
The other day I was trying to assign a container of, let’s say, numbers distributed across 20 groups, to a container with a smaller size that can only hold up to 6 groups. The bigger group has values from 0 to 19. It also means that group 0 will always have zero number value, 1…
The other day, I was working on a huge JSON object that had a number of collections in it. The entire object had to be saved into a relational database, which means I was mapping out the raw JSON data to its logical representation as database tables. Though the object wasn’t that complicated, it did…
Using Repository implementation with Spring Data, one can develop applications with an underlying database rapidly in Spring Boot. The Spring Data JPA handles the abstraction of the persistence layer quite well. Many times you probably won’t need anything else beyond what it has to offer. A lot can already be done with the exposed methods…
As a back-end developer, consuming JSON objects is pretty much very common. I think it is second only to publishing data in JSON format, the other end of what is usually a 2-way street. We may have a REST API endpoint that accepts orders for an online food delivery service that takes in JSON formatted…
Going to skip right away to the juicy stuff as much as I can. I won’t discuss about what OpenShift is or what the Secrets feature does. This is only about my experience the first time I dealt with Secrets and how I used it for a Spring Boot Kafka consumer/client application. The problem I…
I had this custom page on my WordPress site where I would show only posts from a specific category. This was done manually, as in I PHP-coded a function into one of the theme’s PHP files to accept a shortcode, so it would do what I wanted it to. There is a big chance that…
Something I encounter every now and then on application deployments. This is common especially on the first time you commit/push your code to your Git repository with CI/CD configured. Might have labeled or titled this article wrongly. The error does not happen when the app container is being created on OpenShift. It does not even…
Ever wondered why after installing that Ubuntu Snap application on your desktop, initially the icon is shown correctly as it should be on the Unity Dash or the Unity Launcher when you locked it there. But subsequently, the icon DOES NOT load properly after the next reboots? To put it accurately, it goes away and…