Exmaple with useContext in React JS functional components

In this brief article, we will discuss the effective implementation of useContext. For those unfamiliar, useContext is a technique for sharing state within an application between various components, without requiring the passing of parameters from parent components to each child component. This approach facilitates component modularization and eliminates the need for additional properties that are […]

Read More →

What is not Pega best practice?

Through out my nearly 16 years of experience in Pega I have worked on many different projects and with many different teams. Sometime I am surprised to see some so called best practices which are actually not making any sense and actually not really best practices. So I thought will do a write on them. […]

Read More →

Mockware – Pega Simulations Made Easy

This post is about my Pega Community Hackathon project named Mockware. I created this project to solve a problem faced by many Pega project team related to integrations. Below listed are some common issues when building/testing integrations with external systems. Running scheduled automation testing without mutating the actual data. Missing actual data for satisfying some […]

Read More →

Using ChaptGPT for generating React JS code

I was using copilot for while and it was really helpful to speed up the development. But wanted to give a try how ChatGPT compares with copilot as assistance. So I choose a simple use case of generating code for displaying list addresses and editing them in screen. Here is the first prompt I gave […]

Read More →

Sending HTML Email in Java Spring boot

Recently was refactoring a Java Spring boot project which I bought in Codecanyon. It had an API endpoint to send a HTML verification code. The HTML was hard coded inside the Java code and couldn’t be formatted easily because of this. So I planned to use https://www.thymeleaf.org/ as the templating engine. Here is the step […]

Read More →

Reset postgres sql auto increment key

Sometimes after you have imported data in to postgres sql database you might find the new inserts are failing as the generated unique sequence keys are conflicting with existing records. You could fix this by setting the new sequence value to the next values by checking the highest number already exists in records. Please run […]

Read More →

Removing index.php from CodeIgniter URLs

If you have developed CodeIgniter application and want to remove the index.php file from the application generated URLs, you can follow this simple steps. As a first step you need to go to the config file and remove the index.php. If you have deployed the website to apache web server please make sure the mod_rewrite […]

Read More →

Which CSS framework to choose in 2022?

I have started using Bootstrap framework so many years back for styling my websites and apps. It really helped me to easily style things same way across the browsers as there were more differences how each browsers handled the styles. We had to use lot of browser specific markups. But things have changed a lot […]

Read More →

Creating a CodeIgniter website using website generator

There are many website generators but most of them provided as SaaS. So you will not be able to download the generated website but the code is hosted in the provider side. So you have to keep paying monthly payment as long as you are running your website. Also the customizations are very limited as […]

Read More →