Category: ব্লগ । Blog

ব্লগ । Blog

Oracle Data types, ROWID, PLS_INTEGER vs INTEGER

Data Types Ref: https://docs.oracle.com/cd/A97630_01/server.920/a96524/c13datyp.htm (Click on the image to see it properly) Why PLS_Integer: https://docs.oracle.com/cd/B13789_01/appdev.101/b10807/03_types.htm “You use the PLS_INTEGER datatype to store signed integers. Its magnitude range is -231 .. 231. PLS_INTEGER values require less storage than NUMBER values. Also, PLS_INTEGER operations use machine arithmetic, so they are faster than NUMBER and BINARY_INTEGER operations, which …

Continue reading

Algorithm Complexity: Notations and Comparisons

Algorithm Complexity Notations and Comparisons: Ref: https://www.freecodecamp.org/news/big-o-notation-why-it-matters-and-why-it-doesnt-1674cfa8a23c/

Algorithm Complexity: A simple example

The complexity here is: 3n+2 i.e. O(n) Ref: https://www2.cs.sfu.ca/CourseCentral/125/johnwill/Packet06.pdf

Proxy Pattern

Proxy Pattern: “Proxy is a structural design pattern that lets you provide a substitute or placeholder for another object. A proxy controls access to the original object, allowing you to perform something either before or after the request gets through to the original object.” “A credit card is a proxy for a bank account, which …

Continue reading

Java: Facade Design Pattern

Façade Pattern “Facade is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.” “When you call a shop to place a phone order, an operator is your facade to all services and departments of the shop. The operator provides you with a simple …

Continue reading

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