MacOS

Fix xcrun: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Posted on

After recently updating my MacOS I encountered an error message xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun To resolve that we will need to reinstall xcode necessary components xcode-select –install

Java

Search a word in a two dimensional array using Java

Posted on

Overview I was playing this word search game with my children when I realized that I can create a simple Java application that search for words in a grid. You can checkout the source code at https://github.com/johnpili/search-a-word-in-a-two-dimensional-array-using-java Algorithm Concept Project Structure MainApp.java In this example, I created a 15×15 character array and populate it with […]

General

Generating Subresource Integrity (SRI)

Posted on

Since launching my online recruitment platform and job vacancy portal. I became interested in rolling out my own content delivery network (CDN) to host my portal’s images, javascript and CSS. Thanks to NGINX, implementing a CDN is easy. Of course we need to ensure that our digital assets are not compromised during transport so we […]

MySQL

Using MySQL TIMESTAMPDIFF to delete unverified user records

Posted on

Building a public website with user registration and email verification is typical. It will require users to validate their email by clicking a unique generated URL link. Sometimes, user registration with pending verification will grow exponentially and needs an automated cleanup of records. In this example I created a simple MySQL stored procedure to delete […]

Tutorials

How to stop Mailtrack from tracking you

Posted on

Mailtrack is an online service that provides email tracking capability and analytics. Using its services the sender can track when the receiver read the email, when it was viewed and where is the reader’s location. It is a great tool for marketing but I feel that this is invading privacy and I would like to […]