"How to write pluggable software" presented by Tatsuhiko Miyagawa at YAPC::Asia 2007 in Tokyo on April 5th 2007.Read less
åãã試ããï¼è©¦ããã¨æã£ã¦ãã話é¡ã® Plagger ãå°å ¥ãã¦ã¿ã¾ããï¼mixi ã®ãã¤ãã¯ã®æ¹ã¨ãã¯ãããã足ãã¨ãã¤ãã¾ããã¨æãã¾ããï¼æ°ã«ããªãã§ä¸ããï¼ Plagger ããåç¥ç¡ãæ¹ã¯ï¼ãã®è¾ºãã§ãï¼ ä¸è¶³æ©ããPlaggerãã®ä¾¿å©ããå®æãã¦ã¿ãã - ï¼ IT plagger - otsune FreeStyleWiki è¦ã¯ï¼ããããããªããã¼ã¿ãå ¥åãã¦ï¼å å·¥ãã¦ï¼ããããããªããã®ã«åºåãããã¬ã¼ã ã¯ã¼ã¯ï¼ããããããªãã¨ããã¨ããããã¤ã³ãã§ï¼èª°ãã MacBook ãåæã«æã¡åºãããæºå¸¯ã«ã¡ã¼ã«ãã ã¨ãï¼Google ã§ãã¯ãã¸ã£ããã¨æ¤ç´¢ãã¦ãã¶ã注æãã ãªãã¦äººã¾ã§ï¼ Plagger ã«ã¤ãã¦ã¯ï¼æ¢ã«ãããä¸ã«ã¤ã³ã¹ãã¼ã«æ¹æ³ãè¨å®æ¹æ³ãããããããã®ã§ï¼ããããããã§æ¸ããã¨ã¯ãªããã ãã©ï¼ã²ã¨ã¾ãèªåã®åå¿é²ãå ¼ãã¦æ¸ãã¦ããã¾ãï¼ - RSS
ãµãã¨ã¯å½¼å¥³ã®èªå® è¿ããæ¹åå°é§ åã®ã¹ã¼ãã¼ãã¼ã±ããã§å¾ ã¡åãããããã彼女ã¯èªè»¢è»ã§å¾ãã追ãã¤ãã¨è¨ããåã¯å¤§ããªã³ã¤ã³ãã¼ãã³ã°ã¸è»ãåãããç èãä¸æ¬å¸ã£ã¦ããã¹ã¼ãã¼ãã¼ã±ããã¸åããã¨ãã²ã£ãããªãã«ä¸»å©¦çãªå¥³æ§ããã°ãã¡ãããå ¥ãå£ãåºããå ¥ã£ãããã¦ãããæå»ã¯åå¾5æã«ãªããæè¨ããç®ãä¸ããã¨ãå¾ ããã¡ãã£ãããã¨å¤§ãã¦æªã³ãã¦ãªãæ§åã§ãµããæã¶ãã§ãã£ã¦ããã ã礼ã«æçãä½ãã¨ã¯ããããµãã®å®¶ã«ã¯é£æãåå足ãã¦ããªããããããããã¦ã¹ã¼ãã¼ãã¼ã±ããã«å¯ããã¨ã«ãªã£ãããµãã¯éèã³ã¼ãã¼ããç²¾èã³ã¼ãã¼ã¾ã§ãã¾ãã§åªç§ãªã«ã¼ããã«å°ãããããã«ç¡é§ãªãç¹æ¤ãã¦ãã£ãã欲ããé£æãããã¨ã2ç§éç¨åº¦ããããåè¦ããä¸åº¦æã«åã£ããããããããè±èãããè¿·ããã¨ãªãåãæã£ã¦ããã«ã´ã«æ¾ãè¾¼ãã ãæå¾ã«ã¢ã«ã³ã¼ã«é£²æãå·ãããã¦ããæ£ã®åã¸è¡ãã¨ãç§ã飲ãããã¨ã
2006å¹´åé ãããPlaggerãã¨ããæè¡ããä¸é¨ã§è©±é¡ã«ãªãã¾ãããã¾ã ã¾ã ç¥å度ãä½ããPlaggerãã§ããã便å©ã§ã«ã¹ã¿ãã¤ãºæ§ãé«ããã®ãªã®ã§ã2007å¹´ã§ã¯ççºçã«æµè¡ããããããã¾ãããè±å¯ãªãã©ã°ã¤ã³ãèªå¨ã«çµã¿åããã欲ããæ å ±ãåéããå å·¥ãã¦åºåããPlaggerã®ä»çµã¿ã使ãæ¹ãç´¹ä»ãã¾ãã 1. ä½ã§ãã§ããï¼ Plaggerã®æ£ä½ã«è¿«ã ä»åã¯è©±é¡ã®Plaggerï¼ãã©ã¬ã¼ï¼ãåãä¸ãã¾ãã ãã®é£è¼ãèªãã§ããèªè ã®çããã¯ããããã¯ã¼ã¯æè¡ãç¥èã«èå³ãæã£ã¦ãã人ãå¤ãã§ãããããããPlaggerãã¨ããåèªã¯ä¸åº¦ã¯è³ã«ãããã¨ãããã§ããããããããPlaggerã¨ããè¨èãèãããã¨ã¯ãã£ã¦ãããã£ããã©ããªãã®ããã³ã¨æ¥ãªã人ãããããããã¾ãããä»åã¯Plaggerãã©ããã£ãåãããããï¼ ãã®åãã®ä»çµã¿ãªã©ãä¸å¿ã«ç´¹ä»ãã¦ããã¾ãã â
Lingua::JA::Summarize::Extract - æ¥æ¬èªæç« ã®ãµããªæ½åº ãªãã¨ãªãPlaggerããªãã³ã§æ¥æ¬èªã®æç« ã®ä¸ããç¹å¾´çãªæç¯ãæ½åºããã¢ã¸ã¥ã¼ã«ãæ¸ãã¾ããã å ·ä½çã«ã¯GetSenã¨ããWebãµã¼ãã¹ãCPANã¢ã¸ã¥ã¼ã«ã§ä½¿ãããã£ãã¨ããæãã§ãã CPANã«ä¸ãã¦ããã¾ãã Lingua::JA::Summarize::Extract ç°¡åãªä½¿ãæ¹ã¯ use strict; use warnings; use utf8; use Lingua::JA::Summarize::Extract; my $extracter = Lingua::JA::Summarize::Extract-&gr;new; my $text = "æ¥æ¬èªã®æç« ã沢山æ¸ãã¾ã"; my $result = $extracter-&gr;extract($text); my $
ãå人ãã¥ã¼ã¹ãµã¤ãã®ãã¥ã¼ã¹ãä¸ã¶æã§ã¾ã¨ãã¦èªã¿ãããã ãã©â¦ã ãããPlaï¼ryã ã¨ããããã§ãRSSé ä¿¡ãè¡ã£ã¦ããªãå人ãã¥ã¼ã¹ãµã¤ããPlaggerã§èªããã¨æã£ãã®ã§ããããªã³ã¯ãã¾ã¨ã¾ã£ã¦ãªãã£ãã®ã§ã¾ã¨ãã¦ã¿ã¾ããããããæ©ä¼ã«Plaggerãã¯ããã¦ã¿ããã¨æã£ã人ã®ãã®åèãªã³ã¯éä»ãã âãªã¤ã¿ããï¼ ã¯ã¦ãªãã å人ãã¥ã¼ã¹ãµã¤ããGmailã§ã¾ã¨ãã¦èªãã å°å ¥ç·¨ CustomFeed::ConfigãRinRinçå½ãã CustomFeed::Configããã¼ããã CustomFeed::Configãã㯠CustomFeed::Configãæ¾è©ãªãã©ãã¦ã¹ CustomFeed::ConfigãAppleStyle CustomFeed::Configã楽ç»åå CustomFeed::Configããã¤ããããã CustomFeed::Con
ã¤ã³ãããã¯ã·ã§ã³ ã¯ã¦ãã§ãããPlaããPlaggeræ¬ä½ããå ã«æ®åãããããã®å®ä½ã¯ããè¦ãã¦ããªããæåãªãGoogleã§æ¤ç´¢ããã¨ãã¶ãå±ãããçé ã¨ãã¦ãä½ã§ãPlaggerã§åºæ¥ãã¨ãã謳ãæå¥ãèãã¦ããããã£ã¦ã¿ããã¨æ å ±åéãã¦ã¿ã¦ããå ¨ãã®åå¿è åãã®ããã¥ã¡ã³ãã¨ãããã®ã¯æªã ã«åå¨ãã¦ããªããã¤ã¾ãããã¯ã¦ãªæãã®ããã«ãPlaggeræããããã ä¾ãã°ãæ» å¤ã«ä½¿ããªããNotify::Ejectãã使ã£ããããªãã¢ãããã¯ãªå®è·µä¾ã¯è¦ã¤ããããããããããããconfig.yamlããã©ãæ¸ãã®ãã¨ããä¸ããé åºãè¸ã¾ããè¨äºãã»ã¨ãã©è¦ãªããä¸éããäºéã«ç¶ãé段ãç¡ãã®ã«ãäºéå éã®æ¡å å³ã ãè²¼ã£ã¦ãããããªãã®ã ããã£ã¨ãæè¡è åãã®ããã¢ãªãã¼ã«èªä½ã¯å¿ è¦ã ãããããç¡çã«å¤§è¡åããå¿ è¦ããªãããå ¥å£ã®çæ¿ï¼ãããPlaãï¼ã ããããªã³ã§å ã£ã¦ããã
ãã¾Pla*1 ãã®3ã§ãã ãã®1ã§ã¯ãFilter::EntryFullTextãã«ã¤ãã¦ããã®2ã§ã¯ãCustomFeed::Configãã«ã¤ãã¦æ±ã£ã¦ãã¾ãããä»åã¯CustomFeed::Configã§æ½åºããããµã¤ããè¤éãªå ´åã«ã©ããã£ã¦å¯¾å¿ãããã¨ãããã¨ã«ç¦ç¹ãå½ã¦ã¦ããã¾ãã ãã®2ã§ã¯ãµã³ãã«ã¨ãã¦ã¾ãªãã¯ãããããããã¥ã¼ã¹ã®ã¿ã¤ãã«ãã³ã¡ã³ãããªã³ã¯ãæ½åºããyamlãã¡ã¤ã«ãä½æãã¾ããããç´¹ä»ãããã¡ã¤ã«ã§ã¯æ¥ä»ãå¤ããé¨åã§ã®åå¾ããã¾ããããªããã¾ããã¥ã¼ã¹ããåå¾ã§ããªãããéè¨ãèªããã¨ãã§ããªãã¨ããæ¬ ç¹ãããã¾ããã1ã¤ãã«é¢ãã¦ã¯æ£è¦è¡¨ç¾ã工夫ããã°ãªãã¨ã§ããªãã¾ããã2ã¤ãã«é¢ãã¦ã¯ãã¥ã¼ã¹é¨ã¨æ¥è¨é¨åã§ãã¿ã¼ã³ãã®ãã®ãéãã®ã§åå¾ãããã¨ãé£ãããã§ããç¹ã«2ã¤ãã®åé¡ã解æ¶ããæ¹æ³ã«é¢ãã¦åãæ±ãã¾ãã ãã®2ã§ä½ã£ãCustomFe
Plaggerãããã£ã¦ã¿ã¦ãã¨ã¦ã便å©ã§ãªã«ãã楽ããã¦ãããããªããã¾ã ãããPlaãã£ã¦ã»ã©ãªãã§ãã§ãããããããªããã©ãRSSãé ä¿¡ãã¦ãªããµã¤ããã欲ããæ å ±ãåãåºããã¨ã¯ã§ããããã«ãªã£ããæå¤ã¨åå¿è åãã®æå¼ãçãªãã®ãè¦ã¤ãããªãã£ãã®ã§ãåå¿è åãã«ã¡ã¢ãã¦ããã¾ããã¾ã ç°¡åãªãã¨ããããããªãããééã£ããã¨ãæ¸ãã¦ããããç¥ããªãã®ã§ãããã試ãã¦ã¿ãªãã確èªãã¦ãã ããã ã¾ãã¯Filter::EntryFullTextï¼ã¿ããªEFTã£ã¦å¼ãã§ãã¿ããï¼ã«ã¤ãã¦ã ä¼æ¥ãã¥ã¼ã¹ãµã¤ãï¼æ°è社ã¨ãï¼ã®ããããã¼ã¸ã«ãããããªèªåã®ãµã¤ãå ã¸ã®ãªã³ã¯ã®ããHTMLããã£ã¼ãã¨å¤æããã¨ãã«ä½¿ãFilterãä¸ã®ã¯YOMIURI ONLINEã®ç§å¦ã®ããããã¼ã¸ããç§å¦ãã¥ã¼ã¹ãåãåºãããã®yamlï¼ Wikipediaï¼ã author: Toshi custo
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}