Greg WSetup Homebridge on Synology NAS without DockerLast weekend I got the IKEA TRÅDFRI kit for my new lamps. It worked OK initially but the app could not connect to gateway after done setup…Jul 19, 201715Jul 19, 201715
Greg WExp++: ES6 => Arrow FunctionES6 is coming with a new way to define anonymous function. As a big fan of higher level function, I cannot love it more! Here is why it is…Jul 17, 2015Jul 17, 2015
Greg WExp++: Ember model rollback upon route changeIn many cases, we would want to rollback user’s change to a model when user is navigating away from the edit page. In this case, the best…Jul 16, 2015Jul 16, 2015
Greg WExp++: Rollback unsaved changes in Ember modelI was looking for a way to rollback an Ember model when the user wants to discard all the changes. Even tho DS.Model has a rollback()…Jun 13, 20151Jun 13, 20151
Greg WFree VPNs去年回来的时候买了一年的云梯VPN, 当时120一年还是很划算的, 现在涨到180了. 虽然他家做的确实很好, 但只支持包年套餐, 对于要临时用一下的人就不太合适了. 这次回来刚好赶上GFW封了Gmail, 国内的朋友都想翻墙(好现象), 所以实验了一下网上推荐的几个免费VPN…Dec 30, 2014Dec 30, 2014
Greg WExp++: Use path.join() and path.resolve() properlypath module is critical in writing cross-platform Node.js app. path.join() and path.resolve() are the most common used path util functions…Oct 31, 2014Oct 31, 2014
Greg WJS Arithmetic Expression and RPNWe all knew we can squeeze equal sign (=) inside JavaScript arithmetic expression to do calculation and assignment at the same time. How…Oct 30, 2014Oct 30, 2014