Fix xcrun: invalid active developer path

Fix xcrun: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 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 […]

Continue Reading…

Search a word in a two dimensional array using Java

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 […]

Continue Reading…

Using MySQL TIMESTAMPDIFF to delete unverified user records

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 […]

Continue Reading…