Archive For The “How To” Category
Uh-oh! If you’re forgetful like me, chances are that you may come into this situation one way or another in the not so distant future. Bless you if you never do. I really hope you don’t. Write that password down somewhere. Safe. Not on a piece of paper please. In any case, if it does…
Saw this problem on the Internet about Multiples. Thought I might solve it. Don’t know why I dislike these kinds of things, but still want to try to solve it. It always seems tricky, although elementary? For transparency I only reviewed the Maths definition of a Multiple just to make sure if memory has not…
Nintendo Switch‘s Send to Smartphone feature as a way to share screenshots and videos from Album to smartphone keeps on failing to connect. 🙅 I don’t know why. I must have tried this three or four times, but each time it would fail to work. This sucks! 🙄 I have a Samsung A52 phone with…
I had this issue with Spotify on Android Auto recently. The Spotify app was working on my phone yet somehow it would not show on my Mazda’s head unit display. Spotify was working fine on my Samsung A52 phone that time I connected it. In fact, I can still select songs from the phone and…
What is this outdated notification? The quick answer is that it is a warning text shown somewhere on the web page that says the article was written on – insert old date here – and the information in the content may be out of date. This may be kind of redundant when your article has…
How indeed? By simply attending Amazon Web Services (AWS) events. That’s it? Yes! No hacks. No scams. Nothing shady. 100% legit. Once I completed the event and a few requirements, AWS gave me credits. These AWS Credits can then be redeemed and used for their products and services. For my needs it pretty much takes…
And this is for Linux only. There is no short way to do this. It is not supported directly through the AWS Console where I can just push buttons and click away. It took SSH-ing to my Linux server. Typing in some terminal commands. Starting/stopping my EC2 instance a couple of times. However, it is…
Consider a List of Color objects with attributes of index, name and group. This object is defined as, Group is simply an Enum of, My list of colors are the following, Now, I want to divide these colors into their own sub-lists of color grouping based on the value of the object’s Group attribute. Traditionally,…
Say I have these numbers in an array, for example: I want to do something with that set of numbers, such as taking out null values, and extracting only the odd ones. Too take it further, maybe I want an even number or two mixed in the processed list as well. So I have this…
I recently started on the path on building content on the fly that gets sent out as soon as possible, using a template engine, but from a back-end perspective. If that makes sense? This is for an event-driven application that sits there and listens for incoming messages. A simple one. Consume the message as soon…
From time to time I get some of this odd API response from requesting information for a specific something. I expect the response data to be a simple JSON object. Instead I am looking at a JSON array. I suppose that is still simple enough and it’s not so odd. This kind of response happens…
Somebody asked me recently why their POJO validator was not working as expected. They had already followed the “code I wrote” down to a T. Emphasis on the quotes, because trust me that block of code for bean validation they used as reference from an older project I did, was pretty much a very trivial…
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…