Greg W·Jul 19, 2017Setup 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…A response icon15A response icon15
Greg W·Jul 17, 2015Exp++: 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…
Greg W·Jul 16, 2015Exp++: 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…
Greg W·Jun 13, 2015Exp++: 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()…A response icon1A response icon1
Greg W·Dec 30, 2014Free VPNs去年回来的时候买了一年的云梯VPN, 当时120一年还是很划算的, 现在涨到180了. 虽然他家做的确实很好, 但只支持包年套餐, 对于要临时用一下的人就不太合适了. 这次回来刚好赶上GFW封了Gmail, 国内的朋友都想翻墙(好现象), 所以实验了一下网上推荐的几个免费VPN…
Greg W·Oct 31, 2014Exp++: 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…
Greg W·Oct 30, 2014JS 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…