Author Archives: acrocontext

CSS – CSS Flex and Grid

CSS Flex and Grid examples. https://github.com/jen4web/fluent2018 CSS definition guide. https://estelle.github.io/ Advertisements

Posted in CSS | Leave a comment

Highly scalable/available distributed system whiling maintaining integrity

I think that ACID is a main mechanism to maintain the application consistency but it’s hard to make it highly scalable and available system because of synchronous property of ACID. But if we can relax the timeliness property in consistency, … Continue reading

Posted in kafka, Programming | Leave a comment

Java – Spring unit test with custom provided configuration.

The following example will show how to define the custom Spring configuration for unit test with @ContextConfiguration annotation. Full example can be found the below github. https://github.com/nsclass/java-timezone/blob/master/src/test/java/com/ns/timezone/javatimezone/JavaTimezoneServiceApplicationTests.java

Posted in Java, Programming | 3 Comments

JVM – Profiling and GC analysis tool

The easiest GC log analysis web site. https://gceasy.io/ Profiling Adding a JVM Option +XX:+PreserveFramePointer https://github.com/jvm-profiling-tools/perf-map-agent https://github.com/brendangregg/FlameGraph $ perf-java-flames [pid] https://github.com/Netflix/flamescope

Posted in Java, Programming | Leave a comment

Simple way to generate ssh pub/private key

Very simple way to generate ssh pub/private key in Linux. Copy the content of .ssh/id_rsa.pub to .ssh/authorized_keys

Posted in Programming | Leave a comment

Spark – Cassandra connector example

Github https://github.com/nsclass/spark-cassandra-example

Posted in Programming, Spark | Leave a comment

Client side load balancing

Posted in Programming | Leave a comment