Home
Mijazz Chan
Cancel

Clean Pacman/Yay Package Cache on Manjaro or Arch-based Distros (Automation/Manual)

Intro After several months of using Manjaro Linux(Arch Based Distro), I feel like getting attracted to its package manager pacman and its Rolling Release pattern. Most of the time, Arch has vanil...

Functional Interface and its Underlying Pattern - Effective Java reading notes

Just like I said in this post, These patterns are pretty easy/simple, but it really helps me a lot especially when managing to understanding Java’s underlying design pattern through reading Java...

Notes of PECS Mnemonic, Bounded wildcard type - Effective Java reading notes

Intro PECS stands for Producer extend Consumer super. The PECS mnemonic captures the fundamental principle that guides the use of wildcard types. Although the way it works may seem a little bit c...

Some Neat Design Patterns - Effective Java reading notes

Builder Pattern Simple Builder Pattern without considering Hierarchy Generic Type Builder Pattern (suits to class hierarchies) ...

Validate Object Using Reflection Inspired by Spring

Inspired by Spring’s excellent dependency injection way of handling bean validation, after reading some official java documentations and Spring Docs, I decided to find a way of achieving the purpos...

From Spring Boot Bean Validation to Python Wrapper

Keywords in this post are as follows. Spring Boot Bean Validation JSR-303/349/380: Bean Validation Related Topic JSR Java Annotation Processing Custom Annotation Java Reflection API (ja...

Decision Tree Wine Classification

Go to this gist for original files. # -*- coding: utf-8 -*- # @Author: MijazzChan, 2017326603075 # @ => https://mijazz.icu # Python Version == 3.8 import os import pandas as pd import numpy...

Store Multiple Booleans Using Single Variable

Intro Inspired by a stackoverflow answer which is more than a decade old. StackOverflow-Answer1, StackOverflow - Answer2 @Jon Skeet there provide a way of measuring how much memory do byte, int a...

Some Utility Functions While Leetcoding

Array Generator Secure.Random / ThreadLocalRandom public static final ThreadLocalRandom randStream = ThreadLocalRandom.current(); public static int randomInt(int from, int to) { ...

Dockerize My Network

Current network architecture Visual diagram Just a sketch. So-called safe LAN, in which there will be no unexpected public traffic inbound under normal circumstances. In local LAN, us...