Monday, July 4, 2016

Use the instruction here to setup Zoho Mail in Gmail

Tuesday, March 1, 2016

awesome-android#1 Rosie

Rosie is an Android framework to create applications following the principles of Clean Architecture.

Looks interesting to use to do Android development.

Saturday, October 24, 2015

(Migrated) Front-end Developer Handbook

A front-end handbook for those aspire to do the frontend works:

Sunday, October 18, 2015

ApiDocJS looks familiar to Swagger but seems like a good alternative if don't want Swagger style

Tuesday, June 2, 2015

Zeros in Javascript

You can refer here if you want to understand in Javascript, what will be returned for

anArray.length === 0 

Sunday, May 17, 2015

Spring Boot RestController @RequestPart

Given a RestController method as below :
public YourResponse uploadDocument( @RequestPart("meta-data") @Valid YourJson metadata, @RequestPart("file-data") MultipartFile incomingFile )
Then the multipart/mixed message to send is :
POST [http://{base_url}/upload]( HTTP/1.1
Content-Type: multipart/mixed; boundary=ABC123Boundary
Content-Length: 83746
Content-Disposition: form-data; name="meta-data"
Content-Type: application/json; charset=UTF-8
Content-Transfer-Encoding: 8bit
  "id": 1,
Content-Disposition: form-data; name="file-data"; filename="sdasdfa"
Content-Type: application/octet-stream
Content-Transfer-Encoding: 8bit
binary-stream of file content 

Sunday, April 26, 2015

Java - Look Around #4, Events, CamelSpringBootApplicationController

Events in Java



As mentioned in this mailing list message and if you are using Apache Camel 2.15.1, you have to copy this class to your own project.

Wednesday, April 22, 2015

Java - Look Around #3 : State Machines, Maven 3.3.1, UUID

Java Finite State Machines

  • spring-statemachine Spring actually has a project for state-machine. Watching it …
  • squirrel 266 stars. Features hierarchical state, parallel state, can import/export state machine definition to SCXML, internal transition, external transition, conditional transitions. Look at EXAMPLES at the homepage for Spring framework integration
  • stateless4j 87 stars. Features hierarchical states, entry/exit events for states, guard clauses to support conditional transitions, parameterised triggers, reentrant states. No example on Spring framework integration.
  • EasyFlow 78 stars. Looks simple but the documentation does not look as good as the other libraries.
  • statefulj 2 stars, it has 3 libraries, namely a framework built off StatefulJ FSM, StatefulJ Persistence and Spring Data, a dependency free, Finite State Machine implementation with support for non-determinstic Transitions, a set of persistence support (JPA and Mongo) which works with the FSM library to persist Stateful objects.
  • machinia 1 star, also has Spring framework integration

Command Line Windows

  • Chocolatery: An easier way to install some applications like 7-zip, VLC, Flash, JDK etc


Something About Maven

Wednesday, April 15, 2015