Java HashMap – Get highest Key or highest value

Java HashMaps are a key : value data object. They are widely used in Java and are based on the Map interface. Their flexibility lies in their ability to span…

The problem with frameworks …

A framework is a program or tool that provides ready made solutions and components, saving on the need to write boiler plate code. For example, a framework can come with…

The AI Boyfriend

The perfect boyfriend doesn’t exis…. Hold on, meet Dan. A ‘jailbreak’ version of ChatGPT has been coded into a boyfriend that does all the right things. Non physically of course…

WordPress – only index page showing

If you have moved to a new webhosting or taken a tea break only to come back and find that your wordpress site is only showing the index page, then…

Records in Java

Records were a new addition in Java 14. Before that, data was typically held in a class with Getter and Setter methods. Typically, these storage classes were used to store…

Getting a record from HBase

Getting a record from HBase is similar to getting a record from SQL. You still need basic details like database name, table name and a row key. Where it differs…

WordPress – How to make code block scrollable

Code should be readable. Word wrapping can make code difficult to follow. WordPress comes packaged with a code block for pasting code – great, but sometimes, long lines get wrapped…

Java – Find a sub array in an array

Finding a sub array within in an array can be achieved using several methods in Java. It gets a bit trickier when we want to find every occurrence of the…