crawler
AWS Lambdaã¯ãµã¼ãä¸è¦ã®ããã°ã©ã ã®å®è¡ã¨ã³ã¸ã³ã§ããã¤ã³ãã©å´ã¯AWSã管çããã®ã§ãããå®è¡åçã解ã£ã¦ããã¨æãã®å¤ã«èªç±åº¦ãé«ãã§ããShellãã³ãã³ããå梱ãããã°åãããä¾åããã©ã¤ãã©ãªããªããã°Amazon Linuxä¸ã§ãã«ããã¦å梱ããâ¦
Capybaraã¨PhantomJSãNokogiriãå©ç¨ãã¦ã®ã¯ãã¼ã©ã¼ã»ã¹ã¯ã¬ã¤ãã³ã°ã®ç´¹ä»ã§ãã PhantomJSã¨ã¯ï¼ PhantomJSã¯ããããã¬ã¹ãã©ã¦ã¶ã¨å¼ã°ããWebKitã®ã¨ãã¥ã¬ã¼ã¿ã§ãããããã¬ã¹ãã©ã¦ã¶ã¨ã¯ãGUIã§ã¯ãªãCUIããå©ç¨ã§ãããã©ã¦ã¶ã§ããã°ã©ã ããâ¦
æ¸ãã¨å®£è¨ããªããããã£ã½ããã¦ããã¯ãã¼ã©ã¼ï¼ã¹ã¯ã¬ã¤ãã³ã° Advent Calendar 2014ã®11æ¥ç®ã§ããExcelã®VBAã§ãIEã®æä½ãåºæ¥ã¾ããã¾ããã®ä¸ã®æ©è½ã«DOMæä½ãããã¾ãããã®äºã¤ãããã°ãExcelã ãã§ã¹ã¯ã¬ã¤ãã³ã°ã§ãã¾ããã¨ãã話ã§ãã ä½â¦
話é¡ã®AWS Lambda Advent Calendar 2014ã®14æ¥ç®ã§ããã¯ãã¹ãã¹ãã§ãã¯ãã¼ã©ã¼ï¼ã¹ã¯ã¬ã¤ãã³ã° Advent Calendar 2014ã®14æ¥ç®ã§ãããã¾ãã re:Inventã§çºè¡¨ããã¦ä»¥æ¥ã注ç®ã®Lambdaã§ãããµã¼ããç¨æããªãã¦ããããããç´æ¥å®è¡ã§ããã¨ãã£ã¦ãâ¦
æ¥æ¬ã®AWSé¢ä¿è ãre:Inventã®çºè¡¨ã§çãä¸ãã£ã¦ãããªãã風éªã²ãã¦å¯è¾¼ãã§ã¾ãããå£ç¯ã®å¤ããç®ã«ã¯ãæ°ãã¤ãã¾ãããã ãã¦ããããªæãã§å ¨ç¶è¿½ãã¤ãã¦ãã¾ããããç¹ã«é¢ç½ããªãã¨æã£ãã®ããS3 Event Notificationsã¨AWS Lambdaã§ããLambdaâ¦
2014/10/26ã«éå¬ããã第3åWebã¹ã¯ã¬ã¤ãã³ã°åå¼·ä¼@æ±äº¬ã«åå ãã¦ãçºè¡¨ãã¦ãã¾ãããä»åã¯ãã¹ã¯ã¬ã¤ãã³ã°ã¨å°ãé¢ãã¦AWSã使ã£ã¦ã¯ãã¼ãªã³ã°ããã¨ãã話ã§ããã¯ãã¼ã©ã¼ï¼ã¹ã¯ã¬ã¤ãã³ã°ã¨AWSã¯ç¸æ§ãè¯ãã¨ããã®ã¯ãæããæã£ã¦ããã®ã§ãã¼â¦
ãRubyã«ããã¯ãã¼ã©ã¼éçºææ³ãã§ä»é²ãä½ãã§æ¸ãããæ©ãã æ«ã«æ¸ããªãã£ãã®ããkimonolabsã®è©±ã§ããkimonolabsã¯ãã¯ãã¼ã©ã¼ï¼ã¹ã¯ã¬ã¤ãã³ã°ããªã³ã©ã¤ã³ã§å®è¡ã§ããWebãµã¼ãã¹ï¼SaaSï¼ã§ããã¯ãã¼ã©ã¼æ¬ãæ¸ãã¦ããã¦ä½ã§ãããï¼å²ã®äººã¯èªâ¦
åå¼·ä¼ãã¹ã©ã¤ãã§ç´¹ä»ãã¦ãã¾ããããRubyÃã¯ãã¼ã©ã¼ã¨ããé¡æã§ããRubyã«ããã¯ãã¼ã©ã¼éçºææ³ãã¨ããæ¬ãæ¸ããã¦é ãã¾ãããRubyã¨Emacsã®é¬¼ã§ãããã³ãã¡ããã¨ã®å ±èã§ãã Rubyã«ããã¯ãã¼ã©ã¼éçºææ³ å·¡åã»è§£ææ©è½ã®å®è£ ã¨21ã®éç¨ä¾â¦
ã¡ãã£ã¨éã空ãã¾ãããã第1åWebã¹ã¯ã¬ã¤ãã³ã°åå¼·ä¼@æ±äº¬ã«åå ãã¦ãLTæ ã§Rubyã§Webã¹ã¯ã¬ã¤ãã³ã°ã®è©±ããã¦ãã¾ããã Rubyã§å§ããWebã¹ã¯ã¬ã¤ãã³ã° from Takuro Sasaki ä»ã¾ã§å ¨ãåå ãããã¨ããªãã¬ã¤ã¤ã¼ã®åå¼·ä¼ã ã£ãã®ã§ãæ°ããçºè¦ãâ¦
CocProxyã¨ãããã¼ã«ãããã¾ããååã®éããããã·ãµã¼ãã¼ãªã®ã§ãããç¨éãéçºç¨ã§ããç½®æãããã·ã¨è¨ããããã§ããããããã¨ã£ã¦ã便å©ã§ããä¾ãã°ãã¯ãã¼ã©ã¼ã®éçºããHTML,CSS,JavaScriptã®ä¿®æ£ãããéã«ããã®CocProxyãå©ç¨ããã¨ãã¦ã³â¦
Anemoneã®ã¹ãã¬ã¼ã¸ãå¤æ´ããã·ãªã¼ãºãã¤ãã§ã«SQLite3ã¨MongoDBãæ¸ãã¦ããã¾ãã Anemoneã§SQLite3ãå©ç¨ãã Anemoneã§SQLite3ãå©ç¨ããã«ã¯ããªãã·ã§ã³ã§:storage => Anemone::Storage::SQLite3()ã¨æå®ããã ãã§ããå¼æ°ã渡ããªããã°ãanemoneâ¦
ã·ãªã¼ãºã®å¦ãä½åº¦ãAnemoneã®è©±ãæ¸ãã¦ãã¾ããAnemoneã¯å²ãã¨å°ããªã¢ã¸ã¥ã¼ã«ãªã®ã§ãã½ã¼ã¹ãèªãã°ç´ãã«è§£ããã¨ãå¤ãã§ããä¸æ¹ã§ãããã¥ã¡ã³ããå å®ãã¦ããã¨ã¯è¨ãé£ãã®ã§ãå°ãéããã¨ããããã¨ããã¨ãã½ã¼ã¹å«ã¨ããç¶æ ã«ãªãã¾ããâ¦
ä½åº¦ãåãä¸ãã¦ãã¾ãããRuby製ã®ã¯ãã¼ã©ã¼ã§ããAnemoneã«ã¤ãã¦ã§ãããã2å¹´ã»ã©ã¡ã³ããã³ã¹ããã¦ããªããã®ã®ãRubyã®ä¸ã®ã¯ãã¼ã©ã¼ã»ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ã¯æªã ã«ä¸çªã®å®æ度ã§ããããããæ®å¿µãªããå¹¾ã¤ãã®åé¡ç¹ãããã¾ãããã®ä¸ã§æ¥æ¬â¦
ï¼å¹´ã»ã©åã«ãRuby製ã®ã¯ãã¼ã©ã¼"anemone"ãç´¹ä»ãã¾ããããã®å½æããå®æ度ãé«ããRubyã§ã¯ãã¼ã©ã¼ã使ãå ´åã¯anemoneãå©ç¨ãã¦ãã¾ãããæè¿ãä»ã«æ°ããã¦è¯ãã®ããªãã調ã¹ã¾ããããæ©è½é¢ã®ç¶²ç¾ æ§ã¨ããæå³ã§anemoneãè¶ ãããã®ã¯è¦ã¤ããâ¦
æè¿ã®Rubyã®ã¯ãã¼ã©ã¼ã¯ãEventMachineã使ã£ã¦ä¸¦ååããã®ãæµè¡ã®ããã§ããEventMachineã¯ãéåæå¦çããæ軽ã«å®è£ ã§ãããã¬ã¼ã ã¯ã¼ã¯ã§ããRubyã®ã¹ã¬ããæ©è½ã¨ã®éãã¯ãReactorãã¿ã¼ã³ã使ãã·ã³ã°ã«ã¹ã¬ããã§å®è£ ãã¦ããç¹ã§ãããã¡ãã®â¦
ã¡ãã£ã¨åã«è©¦ããã¨æã£ã¦ããã®ã¾ã¾æ¾ç½®ãã¦ããruby製ã®ã¯ãã¼ã©ã¼ãMasqueãã試ãã¦ã¿ã¾ãããruby製ã®ã¯ãã¼ã©ã¼ã¯ãä»ã«ã¯Anemoneã¨ããåªç§ãªãã®ãããã¾ãããã®ä¸ã§ä½æ ã¨ããã¨ãAnemoneã«ã¯ãªãç¹æ§ãããããã§ãã Masqueã¯Capybaraã®DSLã§â¦