December 09, 2022

Okta - PKCE Verification Failed while requesting token

Let me clear a few concepts before I dive into the resolution for " PKCE Verification Failed " " Authorization Code " flow is an OAuth 2.0 flow , wherein an authorization code is issued by the Authorization Server . This code is used for requesting access tokens, used for accessing the protected resources. Authorization code is exchanged through the front-channel and is susceptible to interception attacks. Read More
by Phee Jay

December 08, 2022

AWS - How to rename an AWS Lambda function?

As of writing this article, there is no support in AWS to rename a Lambda function. However, there is an option to set an alias . And you can create multiple of them. The actual purpose of an alias , though, is to act as a pointer to a specific version of the lambda function. It can also act as a router to route traffic between two versions of the function with weight assignment e.g. to test it as a canary. If alias does not meet your needs, then t… Read More
by Phee Jay

February 11, 2019

Groovy - What is Memoization?

Memoization (a.k.a tabling) is a technique in programming where the result of a function call is stored in cache and when the function is subsequently called with the same parameters, the result is returned from the cache instead of executing the function again. Read More
by Phee Jay

February 01, 2019

Groovy - How to read and write to excel sheets with Groovy?

Scriptom provides a simple COM library for Groovy. It is a Groovy wrapper around JACOB (Java COM Bridge) which provides access to COM Automation components. Scriptom can be used to work with MS Office tools, Internet Explorer or any other Microsoft Windows COM based components. In this article, you will use Scriptom to read and write to excel files. Read More
by Phee Jay

January 28, 2019

Spring MVC - How to handle errors from a controller?

In a web application, it is very important to handle errors. Proper error handling would protect the application from several vulnerabilities, including Security Misconfiguration . In this post, you will see how you can handle exceptions that arise out of a Spring MVC based application. Read More
by Phee Jay

January 25, 2019

Java - How to find the IP Address of a host in Java ?

In Java, if you are looking to resolve an IP Address from the given hostname, then you can leverage the capabilities provided by InetAddress . It belongs to the "java.net" package and provides various utilities related to resolving addresses and IPs. Read More
by Phee Jay

September 02, 2017

Spring - Initializing a Spring Bean

In Spring, it's often necessary to run custom code during a bean's initialization—for example, to validate mandatory properties or establish initial connections. Spring offers several mechanisms to initialize beans after they’ve been injected with their properties. Read More
by Phee Jay

August 04, 2017

Groovy - Setting Up Sublime Text to Run Groovy Scripts

Groovy is a powerful scripting language that builds on Java, making it easier to write concise and expressive scripts. Sublime Text, a highly customizable text editor, can be configured to execute Groovy scripts, streamlining your workflow. This guide will walk you through the steps to set up Sublime Text to run Groovy scripts on your system. Read More
by Phee Jay