Monthly Archives: January 2014

Thread Safety – Race Condition

When only considering operation atomicity and memory visibility, the following code is thread safe. ┬áBut a potential race condition can lead to bugs that are hard to debug. The race condition may seem obvious here, but this faulty code is … Continue reading

Posted in Java, Programming | Tagged , , , | Leave a comment

Eclipse Debug ProGuard Obfuscated Code

Debugging ProGuard obfuscated code in Eclipse can be tricky, which is especially true given the Eclipse Market lacking (at least unaware ) of any usable ProGuard debug plugins. Although we can try our best to write high quality code, but … Continue reading

Posted in Java, Programming, Tool and Debug | Tagged , , , , | Leave a comment

Dagger Unsmartness(2): Inheritance

Dagger just simply does the binding based on static types and it doesn’t get into the inheritance complexity at all. So you, again as a developer, have to handle the type casting if necessary. In the following example, HelloWorld requires … Continue reading

Posted in Java, Programming | Tagged , , | Leave a comment

Dagger Unsmartness(1): Map and Set of Map.Entry

Dagger treats Map and Set<Map.Entry> as two different types when you define both of them in its module files. This seems obvious but can cause problem when you have multiple developers working on multiple modules based large project, and especially … Continue reading

Posted in Java, Programming | Tagged , , | Leave a comment

Web Timeseries Data Rendering Technology Investigation

Today I am looking for a technology replacement for one of my old projects that dynamically displays timeline and other time series data on web page in near realtime fashion based on constantly changing data source. The old implementation is … Continue reading

Posted in Javascript & html, Programming | Tagged , , | Leave a comment