http://www.deepspacesparkle.com/2013/01/02/double-loading-painting-technique/
Plus 8 tips for teaching children art
http://www.deepspacesparkle.com/2011/11/18/top-eight-tips-for-teaching-art-to-children/
2016年12月29日 星期四
2016年12月20日 星期二
[MEAN] Tutorial
https://thinkster.io/tutorials/mean-stack/creating-schemas-with-mongoose
Self-study notes:
@ AngularApp.js
define the url -> controller -> view.html relationship
define "otherwise" page redirection
.controller
@ AngularApp.js
- to tell ui-router where to place the javascript-triggered template view
return common object for different controllers
can keep data for an application lifetime
main logics should go here than in controllers
- bridge between AngularJS controller and view
- can bind with functions or variables
- {{hhhhheelllooooo}} as notation in view
- defines config, which defines routes
- defines controllers
- defines factories, blablabla ...


Reference
https://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/
Self-study notes:
what is state ?
.state@ AngularApp.js
define the url -> controller -> view.html relationship
define "otherwise" page redirection
.controller
@ AngularApp.js
where is view ?
place <ui-view></ui-view> into index.ejs- to tell ui-router where to place the javascript-triggered template view
what is factory ?
kind of an Angular servicereturn common object for different controllers
can keep data for an application lifetime
main logics should go here than in controllers
what is data-binding ?
to allow showing synchronised model data into view at all time
- AngularJS will be responsible for this
- note for the special dollar signwhat is special with $scope ?
- bridge between AngularJS controller and view
- can bind with functions or variables
- {{hhhhheelllooooo}} as notation in view
Any difference between .config and .run ?
Config block > service > injector > run blockStructure of an AngularJS app:
- defines config, which defines routes
- defines controllers
- defines factories, blablabla ...

Why there is a $ sign for some variables?
AngularJS will inject these special-defined variables into the functionsA look as sample on my "sticker" function:

Reference
https://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/
2016年12月19日 星期一
[MAC OS X] Add environment path
http://architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.WFdQqbZ96MB
2016年11月14日 星期一
[SQLServer] sql-server-linked-server-example-query
http://stackoverflow.com/questions/4091960/sql-server-linked-server-example-query
The format should probably be:
For example: DatabaseServer1.db1.dbo.table1
The format should probably be:
<server>.<database>.<schema>.<table>
For example: DatabaseServer1.db1.dbo.table1
2016年9月8日 星期四
2016年9月6日 星期二
[MongoDB] [Java] MongoJack for JSON mapping to POJO and vice versa
http://mongojack.org/
http://abhijitbashetti.blogspot.hk/2014/01/example-of-mongodb-with-mongojack.html
http://abhijitbashetti.blogspot.hk/2014/01/example-of-mongodb-with-mongojack.html
2016年7月22日 星期五
訂閱:
文章 (Atom)
分數不是終點
分數只是學習旅程中的一個階段性記號, 絕對不是人生的終點 。 [ 1 , 2 ] 為什麼分數不是終點? 分數是起點而不是結果 :考試與成績單是用來檢視學習盲點的工具,而不是用來定義一個人價值的最後審判。 能力比高分更持久 :高分或許能敲開某扇門,但真正能讓人走得長遠的,是面...
-
裝水喉要用銅喉, 不要鐵喉, 熱水冷水都是。 裝煤氣喉因化學原理要用特製鐵喉, 不能用銅喉。如果是用煤氣熱水爐, 就要搵煤氣公司整。 用煤氣熱水爐拆要找煤氣公司, 清拆費$165公價, 安裝費一般無特別改位公價$475, 如煤氣公司check到有漏氣, 要換喉, 可在牆外...
-
Wow, 又一突破,自己換水龍頭 話說尋晚搭完飛機返到香港,第一時間拎曬行李喼d衫出黎洗,執好d野後,想沖埋涼一機過洗曬d衫,但唔知係咪去完旅行太興奮,開完個水龍頭之後點關都關唔到,感覺到裏面有d野斷左/鬆左/甩左咁,唯有沖完涼即刻放個花灑落水桶度,即刻拿拿淋去關水制。。。我...
-
8 January 2012 at 15:16 前言 話說12月左右, 考試前幾日開始左下面隻智慧齒異常的痛, D牙肉好腫, 所以去左POLY睇牙。之前E生都話過我隻智慧齒斜生, 頂住前面隻牙, 一來容易SIP食物, 2來可能影響前面隻牙會蛀, 所以叫我最好...
-
What is Interceptor? http://viralpatel.net/blogs/spring-mvc-interceptor-example/ Add autowired interceptors from Java Config http://stac...
-
Source: http://www.hket.com/eti/article/913472db-26f6-465a-b643-c5daaba82f4b-406134?category=green_news&source=print&printable=tru...