Dec 5, 2014

Misc

1. imagemagick is wonderful! Let's say we have img1.png img2.png. This command compares two images and highlight differences into diff.png:


compare -highlight-color 'rgba(255, 255, 0, 0.5)' -lowlight-color 'rgba(255, 255, 255, 0.3)' img1.png img2.png diff.png
This give number of different pixels between two:
convert img1.png img2.png -compose Difference -composite -format '%[fx:mean*100]' info:
2. terminal-notifier Get alert by using command line:
/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier -message 'Hello' -title 'CI'

3. Strider

A lightweight CI server, using NodeJS, run locally.
Using terminal-notifier, we can use this to run tests and other background tasks.

4. restview

Preview while editing ReST file. Very connivence!

Install:
pip install restview
Example to customise style:
https://gist.github.com/manhg/1696afbc03282466636b