Monthly Archives: June 2016

iOS tips

UIButton with image on top and text below Category and Extension Create category file in storyboard in iOS 6+ Placeholder in UITextView UILabel text with strike through Error in Simulator: “_OBJC_CLASS_$_AFHTTPSessionManager”, referenced from: UIImage out of UIImageView, both aspect fill or … Continue reading

Posted in iOS, Uncategorized | Tagged , | Leave a comment

Node.js Learning Summary

What is Node.js? An open-source, cross-platform runtime environment for developing server-side Web applications. Why Node.js? Non-blocking, event-driven IO server-side JavaScript environment based on V8,  concurrency, avoid lock and thread issue. How to use Node.js? IO intensive service (video, audio, messaging system, … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged | Leave a comment

Keystone.js Framework Tips

1. Keystone.js API https://gist.github.com/JedWatson/9741171 app.get(‘/gallery’, keystone.middleware.api, routes.views.gallery); app.get(‘/gallery’, keystone.initAPI, routes.views.gallery); (expired) 2. parameters in request body var searchTerm = req.body.searchTerm; console.log(‘searching: ‘ + searchTerm); console.log(‘req body: ‘ + JSON.stringify(req.body)); 3. How to construct UI by youself https://gist.github.com/wuhaixing/e90b8497f925ff9c7bfc 4. Practical Keystone.js https://leanpub.com/keystonejs/readContinue reading

Posted in CS Research&Application, Uncategorized | Tagged , | Leave a comment