• CARPE DIEM

    I was watching one of my favourite movie - “The Dead Poets Society” again yesterday. There was one scene touched my heart. CARPE DIEM CARPE DIEM is a short pharse in Latīna, meaning seize the day. Robin Williams is a high school poet teacher. He tried to explain this phase...

  • Linear Regression

    Introduction Linear analytics is a human instinct way predict result based on limited training data. Linear Regression is the process to come out a linear model. This post will dive deeper into the mathematics conclude procedure of Linear regression. Simple Linear Regression Starting from the simple linear regression. The training...

  • Manipulate long command more efficient in CLI

    Introduction Move cursor in a long command is painful. It’s time to say bye bye to moving letter by letter. Let’s see ways how to manipulate it more efficiently. Keys ⌃A Use Ctrl + A and go to the start of the command ^E Use Ctrl + E and go...

  • K Means Algorithm

    Introduction K-Means++ is a common algorithm in clustering. It’s an essential algorithm in data mining and Machine Learning. K-Means++ is origin from K-Means algorithm. This post discuss the nature of K-Means and K-Means++, and the reason why K-Means++ is better. K-Means Algorithm K-Means or K-Means++ are algorithm for clustering. Given...

  • JAX-RS Exception Mapper

    Introduction: ExceptionMapper is an implementation of JAX-RS exception. It allows you to use customized exception. Provider @Provider is a JAX-RS annotation that tells JAX-RS that you want use some customized implementation instead of default. Usage The basic usage is override the toResponse Method. In specific, if you want to map...

  • Guice Module

    Introduction: In previous post I talked about what is dependency injection and why use Guice. Today I would like to share my experience of using Guice injector. Module Before create injector, we should define module. Module specify where to find all the dependencies required. public class TestModule extends AbstractModule {...

  • JavaScript Asynchronous call

    Introduction: Recently I was implementing a front-end UI, which I need to use a RESTful call to get endpoint data. However I can’t get the data through JavaScript. After ask google and stackoverflow, I found JS is really a bit different from other programming language. Let’s discover the root reason....

  • AngularJS Knowledge Summary

    Introduction: Recently I am working on front end programming, and by chance I started using AngularJS. Frankly it’s a bit mysterious in the first bite. This post show my personal understanding about the AngularJS framework and component relationship. AngularJS Overview Above is the component relationshio of AngularJS. Each HTML has...