DapperCamp #1
ã¹ã¯ã¬ã¼ãã³ã°ãµã¼ãã¹ã§ããDapperã®ã«ã³ãã¡ã¬ã³ã¹ in SFã
ãã£ããä»è¥¿æµ·å²¸ã«ããã®ã§åå ãã¦ã¿ããç¡æã ãã
以ä¸ãã«ã³ãã¡ã¬ã³ã¹ã®å 容
Keynote
Mitch KaporãLotus Development Corp.ã®founderããã®äººã£ã¦æåï¼OpenKaporã¨é¢ä¿ããã®ï¼
éä¸åå ã®ããã»ã¨ãã©èãã
How to Use Dapper
Dapper ã®ä½¿ãæ¹ã以å使ã£ãã¨ãï¼ãã¶ãï¼å¹´ä»¥ä¸åï¼ããã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯æ´ç·´ããã¦ããããã©ããåºæ¬ã¯åãã§ãDappãããã¼ã¸ãæå®ãã¦ã¯ãªãã¯ãã¦è¦ç´ ãæãåºããããã¹ããã£ã¼ã«ãã¯ãã©ã¡ã¼ã¿åã§ãããçãä½ã£ãDappããµã¼ãã§ããã
質åã§ãHTMLæ§é ãå¤ãã£ãã¨ãã«ã©ã対å¦ããããã¨ããã®ããã£ããããã£ã±ãã¦ã¼ã¶ãåã³DapperFactoryã§åé¸æããå¿ è¦ãããããï¼ç¾æç¹ã§ã¯ï¼ãï¼ã¤ãã¼ã¸ãç¨æãã¦ãããããã§ã¼ã«ãªã¼ãã¼ãããã¿ãããªäºã¯ã§ãããï¼ãããã¸ãã¯å¤åæ訳ï¼ã¨ãã質åã«ããç¾æç¹ã§ã¯ããã¯ã§ããªããã¨ããåçã
Dapper Feed Services (pre)
ãã®ã»ãã·ã§ã³ã®æ¬é¡ã«å ¥ãåã«ããªããã¡ãã£ã¨ãããã¢ããã£ã¦ãLinkedInã®Contactæ å ±ãã¹ã¯ã¬ã¼ãããã¨ãããã®ãããã¯ã¡ãã£ã¨ãããã
LinkedIn使ã£ã¦ãã人ã§ãæèããªãã¨ç¥ããªãã¨æããã©ãLinkedInã®ã³ã³ã¿ã¯ããªã¹ããã¼ã¸ã¯DHTMLï¼Ajaxã§ãã¼ã¿ãåã£ã¦æ¥ã¦ãã¨ããåãè¾¼ãã§ããï¼ã«ãªã£ã¦ãã®ã§ããã ã®HTMLã¹ã¯ã¬ã¼ãã§ã¯èå¿ã®æ å ±ãåããªããDapperã§ã¯ãããã§ããããµã¼ããµã¤ãã§ãã©ã¦ã¶ã®ã¯ãã¼ã³ãåããã¦ããããããã¡ããã¨JavaScriptã¨ã³ã¸ã³ç©ãã§ããã®ã§ãã¡ããã¨Ajaxãªã¯ã¨ã¹ããå®äºãã¦DOMããªã¼ãã§ãããã£ãæç¹ã§ã¹ã¯ã¬ã¼ãããã
ã¡ãªã¿ã«ã¨ã³ã¸ã³ã¯RhinoãMozillaã®ãªããã§SpiderMonkeyã¤ãã£ã¦ãã£ã¦ãã®ãkuããã調ã¹ã¦ãï¼ãããªè¨æ¶ããããã©è¦ã¤ããããªãï¼ãã©ãå®éã«ãµã¼ãã¹ã§serverside javascript+DOM+Scrapingã¾ã§ãã£ã¦ãã®ãåãã¦è¦ããã¾ããåã«ããã«ã¨ã£ã¦åãã¦ãã£ã¦ã ãã®å¯è½æ§ã¯é«ãã
Dapper Feed Services
å種 mashup services ã®ä½ç½®ã¥ãã«ã¤ãã¦ã
Pipesã¯Visual ProgrammingãGoogle Mashup Editorã¯Markup Templateã
ã§ã¯dapperã¯ä½ãªã®ãï¼ããã·ã¥ã¢ããã®common logic patternsã§ããã
patternã«ã¯ä»¥ä¸ã®ãããªãã®ããã
- recursive
- å ¥åããçµäºä¿¡å·ãåãåãã¾ã§å®è¡ããããªãã®ããã¨ãã°Googleæ¤ç´¢ã§ãnextãã©ãã©ãã¯ãªãã¯ãã¦è¡ã£ã¦ãæçµçã«Big Result Setãå¾ãï¼<= ä½ã¨ãªãAutoPagerizeãæ³èµ·ãããï¼
- foreach
- å ¥åã¨ãªããªã¹ãã®ããããã«ã¤ãç¹°ãè¿ããåºåãããã®ããã¨ãã°ããããã¥ã¼ã¹ã®è¦åºãã表示ãã¦ãããã¼ã¸ãããããããã©ã£ã¦æ¬æãæãåºããªã©ã
- merge
- (foreachã«ä¼¼ã¦ããï¼)
- caluculation field
- è¤æ°å¤ã®è¨ç®çµæï¼min, maxãªã©ï¼ããã©ã¼ããããè¡ããã¹ãã¬ããã·ã¼ãã®ãã©ã¼ãã¥ã©ã«ç¸å½
ãã®å¾ãDapper Feed Serviceå ã®ã¬ãã¸ããªXMLã®èª¬æããã£ã¼ã«ãã¨ãã¦å®ç¾©ãããã¼ã¿ã®ãã¹å¤ï¼XPathï¼ãããã¼ã¿åãURLã®ã³ã³ãã£ã·ã§ã³ãªã©ãæ ¼ç´ããã¦ããã®ãåããã
æå¾ã«ããã¾ãã¤ãªããããªãããã«æããããã¦ã£ã¸ããåºåã®èª¬æã表示ãã¦ãããã¼ã¸ã®ãã¼ã¿ããã¨ã«ããã¦ã£ã¸ãããè¨å®ã§ãã(contextual)ããã¨ãã°ãã©ã¼ãã«é¢é£ãããã¼ã¸ã«ã¦ã£ã¸ãããç½®ãã¦ãããããããã¨ã«Dapperã®Feedã®å ¥åã«ãã©ã¼ãã¨ãããã¼ã¯ã¼ããè¨å®ãã¦æ¤ç´¢ããããªã©ãã§ããã®ã§ãã³ã³ãã¯ã¹ãåºåã¿ãããªãã¨ãå¯è½ã«ãªãããã ããDapperã«æ¸¡ãããã®ã¯Refererã§æ¸¡ãURLã®ã¿ã§ããããã表示ãããã¼ã¸ããã©ã®æ å ±ãã¨ã£ã¦ãããã¯Dapperã®è¨å®ãããªããã°ãªããªãï¼éã«è¨ãã°Dappã§å®ç¾©ã§ãããªãä½ã§ãã§ããï¼
Transformer Builder
Dapper Feed ServicesãçæããDapper XMLããããããªå½¢ã«å¤æãããHTML, RSS ã JSONã¯ãã§ã«ããããDapper ã§ã¯ãããããã«æ¡å¼µã§ãããPHPã§å®è£ ãããã¯ã©ã¹ãæ¡å¼µããtransform() ã¡ã½ããã«å®éã®å¤æçµæãå®è£ ãããgetDetails() éçã¡ã½ããã«ã¯è¨å®ç»é¢ã®UIãè¨å®ã
詳細ã¯ããã«
http://www.dapper.net/developers/transformers/
ãã®ãã¨éä¸æç¨ãããæãåºãã¦ãã¾ã£ããHack Sessionãããã£ãã®ã ãã©ãDapperã®ããã°ãè¦ãéãåæ°ããããã¨ãã£ã¦ããã
ã¡ãªã¿ã«ã«ã³ãã¡ã¬ã³ã¹ä¼å ´ã¯è¹è²ã®æãã¯ãããå°åãGoogleMapsã§å°å³ã¯ã¿ã¦ããã®ã ãã©ãè·é¢æãééãããä¼å ´ãMosconeã¿ãããªã®ãæ³åãã¦ããã®ã§å¤§ééããä»æ¥ã¯é§è»å ´ä»£ãã±ãã£ã¦é»è»ã§å¸å ã¾ã§æ¥ãã®ã ãã©ãææ¥ã¯è»ã§æ¥ããã