Blog Posts

Recent posts

C++ - Anonymous namespace

less than 1 minute read

The main reason of using anonymous namespace in C++ is to localize declaration in translation unit.\ The compiler will choose the unique name for unnamed nam...

Cassandra - Allow Filtering example

less than 1 minute read

1 2 3 4 5 6 7 create table User( email text, name text, desc text, user_id uuid PRIMARY KEY((email), name, user_id) ) WITH CLUSTERING ORD...

Spring - adding a bean in code

less than 1 minute read

1 2 3 AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(); Set<int> sets = new Set<int>(); ctx.getBeanF...