2011-01-01ãã1å¹´éã®è¨äºä¸è¦§
http://metacpaninfoviz-jaqqcx56.dotcloud.com/ ä»æ§ å·¦ä¸ã®ããã¹ãã«ã¢ã¸ã¥ã¼ã«åãå ¥åãã¦submitããã¨ä¾åããªã¼ã表示ãã¾ãã ä¾åããªã¼ã¯MetaCPANããåå¾ãã¦ãã¾ãã*1 è¦è¦åã«ã¯JavaScript InfoVis Toolkitã使ã£ã¦ãã¾ãã ToDo ã½ã¼ã¹ã³ã¼ãâ¦
http://adventcalendar2011-jaqqcx56.dotcloud.com/ UIå¤æ´ç¹ ã¿ã¤ãã«ãåãã¦ããã®ãç´ãã URLæ¯ã®ã¯ã¦ã¶æ°ã表示ããããã«ãã éè¦ãããã©ããããããªããã©ã«ã¬ã³ãã¼æ¯ã®ã©ã³ãã³ã°ãéè¨ããããã«ãã ã©ã³ãã³ã°ã«ã¹ã³ã¢ã表示ããããã«ãã â¦
http://adventcalendar2011-jaqqcx56.dotcloud.com/AdventCalendar2011ã®ã¹ãããã¥ã¼ã«ç°¡æãæ°ã«å ¥ãæ©è½ã追å ãã¾ããã ãæ°ã«å ¥ãã¯ãã¼ã«ã«ã¹ãã¬ã¼ã¸ã«ä¿åãã¾ãã®ã§å±¥æ´æ¶å»ããã¨ãªããªã£ã¡ããã¾ããï¼ ãæ°ã«å ¥ã使ãæ¹ â ä¸è¦§ã§ã«ã¬ã³ãã¼ãé¸â¦
http://adventcalendar2011-jaqqcx56.dotcloud.com/å ¨AdventCalendarã®ä¸ã§ã®URLã©ã³ãã³ã°ãªã¹ãã追å ãã¾ããã ã©ã³ãã³ã°ã®éã¿ä»ãã«ä½¿ã£ã¦ããã®ã¯ä»¥ä¸ã®ãªã¹ãã§ãã Facebookã®ããã ã¯ã¦ãªããã¯ãã¼ã¯ tweetæ° åç´ã«ãããããµããªãããã®ãã©â¦
ãªããä»å¹´ã¯ãã£ã±ããããã¹ããããè¦ãæ©ä¼ãå¤ããDotCloudã使ã£ã¦ã¿ãããã¨ããé©å½ãªçç±ã§ä½ã£ã¦ã¿ã¾ããã http://adventcalendar2011-jaqqcx56.dotcloud.com/ ç°å¢ perl+Amon2+SQLite ã¨ããæ§æã§DotCloudã«ç½®ãã¦ã¾ãã ãã¨jquery mobile使ã£â¦
cpanmã§ã¤ã³ã¹ãã¼ã«ããæã¯ããã¡ã¤ã«åã®ã¾ã¾ã§ãå¯è½ cpanm Plack/Middleware/AccessLog/Timed.pm Plack::Middleware::AccessLog::Timed ã使ãã¨ãã¬ã¹ãã³ã¹ã¿ã¤ã ã®è¨é²ãå¯è½ã«ãªã builder { open my $fh, "| /usr/local/sbin/cronolog /var/log/acâ¦
ä»åç´åã«ãªã£ã¦è¡ãããã©ãããå¾®å¦ã«ãªã£ã¦ãã®ã§ããã ç¡äºã«ï¼æ¥éè¡ãã¾ããï¼ã¨ããããããã£ãã¼ ä»åã®YAPCã¯æ°ãã試ã¿ãããã¤ããã£ãããã§ããããã¹ã¦ä¸æããã£ã¦ããã®ã§ã¯ãªãã§ããããã ãã®ãããå®æ度ã®é«ãã«ã³ãã¡ã¬ã³ã¹ã§ãã£â¦
å ¨ãªã¼ã¸ã§ã³ã®æ å ±åå¾ (AWS x Ruby) ã® Pythonçãä½ã£ã¦ã¿ã¾ããã¼ aws.lefthandz.org ãã¡ããæè¦ãã¦ãã»ãã»ããPerlã§ããã£ãã便å©ããªã¼ãã¨æã VM::EC2ã§ããã£ã¨æ¸ãã¦ã¿ã¾ããã ã¹ã¯ãªãã 使ãæ¹ # ç°å¢å¤æ°ãè¨å®ãã¦ããã¾ããã export â¦
èªä½Plack/psgiã¢ããªã®PodãWebã§è¦ããã¨ã¯æãã¾ãããï¼æãã¾ããã⦠ä¸èº«ãªãã§ããPod::Site使ã£ã¦ãã¹ãrewiteãã¦ãã ããªã®ã§ å®ã¯Middlewareãããªãã¦ããããããã¾ãããã ãããMiddlewareã§enableããã ãã§WebPodè¦ããã ã¾ããããã便â¦
cpan_newãã¼ã¼ã£ã¨çºãã¦ããæµãã¦ããã http://search.cpan.org/~lds/VM-EC2-1.02/lib/VM/EC2.pm ã¾ã ãªãªã¼ã¹ãããã°ããã®ãããªã®ã§ãªãã¨ãè¨ãã¾ãããã ææ°çã®ec2 APIã«å¯¾å¿ãã¦ããããã§ãããªããªãè¯ãæ°ã§ãã Net::Amazon::EC2ã«ãããâ¦
ãããªãã§åã£ã¦ãã®ããªâ¦ï¼ use ãã¦ã¿ãããã¡ãã¨å ±æããã¦ãã¡ã¢ãªã¯å¢ãã¦ã lib/App/Web.pm ã«ä»¥ä¸ã®è¨è¿°ã追å ãã¦ãé 延ãã¼ããããã¢ã¸ã¥ã¼ã«ãç¢ºèª ãã§ãã¯ã¹ã¯ãªãã(Starlet) åè http://bayashi.net/wiki/perl/app_cow
ã¯ãã¼ãªã³ã°æ¥½ããã§ãããï¼ perlã§é«éã«ã¯ãã¼ã«ãããã®ã§ããã°Gunghoãªã©ä½¿ãã®ãããããããã¾ãããã åºæ¬æ軽ã«ãããããã¨ãå¤ãã®ã§ WWW::Mechanize+Web::Scraper ã¨ããçµã¿åããã§ã¯ãã¼ã«ããã®ãå®çªã§ããã ããããã¾ãã¾ Scrappy ãâ¦
https://github.com/toritori0318/p5-App-pmgrepæ°æ©è½ãï¼ã¤ã»ã©è¿½å ãã¾ããã 追å ãããã³ãã³ã pm-grep-inc pm-grep-project pm-grep-inc (@INCå æ¤ç´¢) pm-grep-inc <search_string>ãã®ã¾ã¾ã§ããã @INCã«å ¥ã£ã¦ãã¢ã¸ã¥ã¼ã«ãackã§æ¤ç´¢ãã¾ãã pm-grep-project (</search_string>â¦
主è¦ãªã¢ã¸ã¥ã¼ã«ã§ãã³ããã¼ã¯åã£ã¦ã¿ã¾ããã åç´ã«ãã¡ã¤ã«åºåããã ãã®ä½¿ãæ¹ã«ãã¦ã¿ã¾ãããåºåãã©ã¼ããããçµ±ä¸ãã¦ãã¾ãã Log::Dispatch Log::Handler Log4perl Log::Minimal ãã¼ã¸ã§ã³ perl 5.14.1 Log::Dispatch 2.29 Log::Handler 0.7â¦
Plack::Middleware::ServerStatus::Lite ãå©ç¨ãã¦ã muninã®ã°ã©ãã§plackã¢ããªã®ã¹ãã¼ã¿ã¹ã表示ãããã©ã°ã¤ã³ãæ¸ãã¦ã¿ã¾ããã ã¹ã¯ãªãã 使ãæ¹ 1. Plack::Middleware::ServerStatus::Liteãæå¹ã«ãã¦ãã 2. /usr/share/munin/plugins ã« ä¸è¨â¦
æ¥åç³»ã®ã·ã¹ãã ã«æºãã£ã¦ããæ¹ã«ã¯é¦´æã¿æ·±ãã¨æãã¾ããã ãæåå®åï¼æ¥ç®ã«å¦çãã¨ããææ«æçµå®åæ¥ã«å¦çãã¨ããããã話ã§ãããã ãã®å¦çããããè¦ä»¶ãåºãã®ã§cpanãæ¼ã£ã¦ã¿ã¾ããã è¦ã¤ãããªãã£ãã®ã§æ¸ãã¦ã¿ã¾ããã ã½ã¼ã¹ã³ã¼â¦
ä»æ´æãããã¾ããã æåã¯ãã¡ãã®æ¾å°ç·APIã使ããã¦ããã ãããã¨æãã¾ããã ä½æ ãæ±äº¬ããªãã£ãã®ã§å¥ãã¼ã¸ããã é½å ã®ç°å¢æ¾å°ç·æ¸¬å®çµæï¼æ±äº¬é½æ°å®¿åºç¾äººçºï¼ã«ææ°ã®æ¾å°ç·éãæ²è¼ããã¦ãããããªã®ã§ ãã®ãã¼ã¸ãã¹ã¯ã¬ã¤ãã³ã°ãã¦â¦
EC2ã®ã¤ã³ã¹ã¿ã³ã¹ãå¢ãã¦ããã¨sshæ¥ç¶ãé¢åã«ãªãã¾ãããï¼åã¯é¢åã§ãï¼ ããã§ãå°ãã ãsshæ¥ç¶ã楽ã«ãªãã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããã ã¹ã¯ãªãã åææ¡ä»¶ Net::Amazon::EC2 cpanä¸ã®Net::Amazon::EC2ã¯APIãã¼ã¸ã§ã³ãå¤ãããã¿ã°åãªã©ãåãâ¦
æ±äº¬é»åé»åä¾çµ¦ç¶æ³APIããJSONåå¾ãã¦IRCã«éç¥ã 10åããã«APIãã§ãã¯ãã¦ãæ´æ°ããã¦ããIRCã«sendãã¾ãã ä¼ç¤¾ã§ä½¿ã£ã¦ãã
Catalystã ã¨Catalyst::Plugin::I18Nã使ãã®ã楽ã¿ããã§ããã Xslateã ã¨ä½¿ããªããããªã®ã§ Text::Xslateã®ããã¥ã¡ã³ããåèã«èªåã§è¨å®ãã¦ã¿ã¾ããã ï¼ã¡ãªã¿ã«ä»åã®ç®çã¯å½éåã§ã¯ãªããã©ãã«çããã¡ã¤ã«ç®¡çãããã£ãã ãã¨ãã...ï¼ ãµã³â¦
ãã®æãä¸ã¤ã®ã¢ããªã±ã¼ã·ã§ã³ã§ DBMSãã¾ããã£ã¦ã·ã¹ãã ã«ã¿ãã°ãã¦ã¼ã¶ã¹ãã¼ãæ å ±ãæ¤ç´¢/ã¯ã¨ãªçºè¡ã§ãã ããªã¼ã½ããä½ã£ãããã¦ã¾ãã*1ãã®æ©è½ã®ã²ã¨ã¤ã¨ãã¦ãDMLæãã«ã¹ã¿ã ãã³ãã¬ã¼ããåºåã§ãããæ©è½ããã£ããã§ããã ããã ããâ¦
Facebook::Graph ãå©ç¨ããã°perlããç°¡åã«FacebookAPIãæ±ãã¾ããï¼ http://helloperl.com/example_facebook.permalink http://d.hatena.ne.jp/sugyan/20101008/1286471717 ããããLegacy REST API ã§ãªãã¨æ±ããªãæ å ±ããã£ããããã®ã§ ãããããâ¦
ç¹å®ã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³*1å ã®ã¢ã¸ã¥ã¼ã«ã æååæ¤ç´¢ãããè¦ä»¶ããã£ãã®ã§ä½ã£ã¦ã¿ã¾ããã æ¨æºã³ãã³ããé§ä½¿ããã°åºæ¥ãã¨ã¯æãã¾ããã ã¢ã¸ã¥ã¼ã«ã«ããããããã便å©ã§ã¯ãªãããªã¼ã¨ã github https://github.com/toritori0318/p5-App-pâ¦
å¤é¨APIãç¨ããWebã¢ããªã®ã³ã³ããã¼ã©ãã¹ãã«ã¤ãã¦ã ãã¨ãã° æ°å¤ã®ï¼ä¹ãçµæã¨ãã¦è¿ãAPIãµã¼ã ãããã¨ãã¦ã ãã®APIãå©ç¨ããçµæãHTMLã¨ãã¦åºåããã¢ããªã±ã¼ã·ã§ã³ ãèãã¦ã¿ã¾ãã ãããããã®ããã«å¤é¨APIãµã¼ããç¨ããã¨ãã¹ããâ¦
perlã®ã¢ã¸ã¥ã¼ã«ã¤ã³ã¹ãã¼ã«ããã¨ãã« ããã±ã¼ã¸ä¾åãã¦ããã®ãããã¾ãããï¼ ä»ã¾ã§ã®çµé¨ä¸ãããå¼ã£ããã£ããå¿ãããããã¢ã¸ã¥ã¼ã«ï¼RPMãã¡ã¢æ¸ããã¦ã¿ãã*1 ã¡ãªã¿ã«ããã±ã¼ã¸åã¯CentOSçã¨ãªã£ã¦ããã¾ãã ããã±ã¼ã¸ä¾å perlã¢ã¸ã¥â¦
ããã¾ãã¦ããã§ã¨ããããã¾ãã ãã¦ãHTMLã解æã㦠ç¹å®ã®è¦ç´ 以ä¸ã®HTMLããã®ã¾ã¾åå¾ãããå ´åã ããã§ããï¼ï¼ï¼ use LWP::Simple qw/get/; use HTML::TreeBuilder::XPath; my $content = get("http://d.hatena.ne.jp/tori243/20100123/12642633â¦