Category: Root

Java : Decorator Design pattern

Decorator Design pattern: Decorator is a structural design pattern that lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors. Example: Assume: A notifier class/object can send only email messages. But the application at a later time may want to use text/SMS, FB, or similar messages. …

Continue reading

Java Structural Design Patterns

Adapter Design Patterns Ref: A good read: https://refactoring.guru/design-patterns/adapter Ref: Wikipedia Ref: https://www.visual-paradigm.com/guide/uml-unified-modeling-language/uml-aggregation-vs-composition/

MicroK8s Commands in Ubuntu

MicroK8s Commands in Ubuntu (- – use double hyphen) Install sudo snap install microk8s – -classic sudo snap install microk8s – -classic – -channel=1.25/stable Allow Through: Firwall sudo ufw allow in on cni0 && sudo ufw allow out on cni0 sudo ufw default allow routed Enable Add Ons microk8s enable dns microk8s enable dashboard microk8s …

Continue reading

Misc. Kubectl/MicroK8s Commands and Output

Application Deployment

Sample MySQL Configurations (application.properties)

Docker File

Oracle Advanced SQL Clauses

Group By group by attr1, attr2 group by ROLLUP(attr1, attr2) group by CUBE(attr1, attr2) Rank, Dense_RANK, ROW_number: RANK() OVER (ORDER BY PRICE) as "PR", ROW_NUMBER() OVER (ORDER BY PRICE) as "PR" DENSE_RANK() OVER (ORDER BY C DESC NULLS LAST) as "R" DENSE_RANK() OVER (PARTITION by C ORDER BY P) as "PR" RANK() OVER (ORDER BY …

Continue reading

Oracle Advanced SQL Clauses

Group By

Lombak, Getter Setter Example

Ref: https://projectlombok.org/features/GetterSetter import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; public class GetterSetterExample { /** * Age of the person. Water is wet. * * @param age New value for this person’s age. Sky is blue. * @return The current value of this person’s age. Circles are round. */ @Getter @Setter private int age = 10; /** …

Continue reading