Category Archives: Programming

Stuff about stringing ones and zeroes together to form something useful. Contains some elaborations of the answers I post on Stack Overflow

Liberty Docker Cluster

This series how to set up a WebSphere Liberty Profile cluster with standard Docker swarm/stack and presently released official images.

The purpose of this is to set up a simple working cluster to allow developers to ensure that their work will function correctly in a clustered environment and neither a robust system with failovers nor scaling.
Continue reading Liberty Docker Cluster

Canadian SIN Bean Validation plus Generation

There are many algorithms that generate and validate Canadian SIN numbers. This is the one I use with bean validation. Unlike most other implementations I took into consideration that `8` is not used as the first character in a Canadian SIN. In addition, I utilized a map to deal with the doubled number for the even digits rather than doing the calculation and dealing with greater than 10 results. No regexes are involved either.
Continue reading Canadian SIN Bean Validation plus Generation