Sep 14Spring Boot Testing Signed JWT with a mock Authorization ServerSo you need to configure your Spring Application to use JWT and an OAuth Resource server. You researched on the web and decided that using a simple security filter and setting a specific property spring.security.oauth2.resourceserver.jwt.jwk-set-uri will be enough to fulfill the requirement. For example: @Configuration @EnableWebSecurity public class WebSecurityConfig { public…Jwt Authentication4 min readJwt Authentication4 min read
Dec 20, 2021Java Consultant Tip #2: Use OpenTelemetry Java Agent to learn a new applicationAs Java consultants, when we land on a new gig with an unknown application, we need to come up to speed as quickly as possible. Going through codes is inefficient and can easily miss an important interaction. In my experience, one of the best ways to learn a new Java…Java4 min readJava4 min read
Dec 9, 2021Java Consultant Tip: SSL Certificates and Man in the Middle SSL ProxyIt’s your first day at your new gig. Everything is new and you have to adjust quickly to the environment. However, you notice your favorite Java applications are barking with exceptions about certificates. Here’s a sample Exception: ... sun.security.validator.ValidatorExeption: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: …Java4 min readJava4 min read
Published inLevel Up Coding·Mar 18, 2021Secure Groovy Script Execution in a SandboxI was looking into executing untrusted Groovy Script in a sandbox. I was never a security guy, so the process was a valuable learning experience. I will use this article to summarize my findings. I am working as a consultant at Capco.com. Many thanks to my colleagues who are generous…Security5 min readSecurity5 min read
Published inThe Startup·Jan 23, 2021Migrate Your Flutter App to Null SafetyWhen I read about Flutter/Dart’s null safety beta, I was really excited to give it a try. This article talks about my experience migrating my Flutter Web application to fully embrace this exciting new feature. Let’s get started. Upgrade Dependencies I started by building my old project “Carry On Baggage Allowance Calculator”…Flutter6 min readFlutter6 min read
Published inCodeX·Dec 4, 2020Make yourself a perfect blogging platform with Ghost and GatsbyDo you want to have a blogging platform that is both beautiful and manageable? In the past, you are limited the clunky Wordpress or the snappy but not so user friendly static site generators. …Gatsbyjs5 min readGatsbyjs5 min read
Published inTowards Data Science·Nov 24, 2020A Simple Text Summarizer written in RustMotivation I read a lot of online news sites to help me catch up with the latest stories. From time to time, I found that some news stories from different sources are simply rephrasing each other. This happens sometimes with technical articles too, but I digress. This love of reading news…Rust8 min readRust8 min read
Oct 25, 2020My experience with Flutter on WebHave you heard of Flutter? The next Big Thing? Or the UI framework that’s built for the Fuchsia OS, the OS that is going to replace Android? I was skeptical because of all these marketing push. …Flutter5 min readFlutter5 min read
Published inThe Startup·Oct 8, 2020Night Vision Camera for Raspberry PiHave you ever wonder what goes on in your backyard when you are sound asleep? This simple setup will reveal everything to you. Maybe it’s just out of curiosity. Maybe you are a nature lover and don’t want to miss out on the nocturnals. Whatever it is, I am glad…Raspberry Pi4 min readRaspberry Pi4 min read
Mar 23, 2020Node + Java Docker Image for Raspberry PiSimple Docker image for a Node + Java environment. As I continue to build on my Raspberry Pi Infrastructure, I need to create a Docker image that contains both Java and Node. Unfortunately, no such thing exist as an official image and I don’t like using images created by others…Node2 min readNode2 min read