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 name...

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...

Cassandra - Partition Key, Clustering key

less than 1 minute read

Partition Key: It will be hashed and saved across nodes. Clustering Key: It will group in the same partition key. PRIMARY KEY((partion key), clustering key) ...

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...