2010-01-01ãã1å¹´éã®è¨äºä¸è¦§
åçªã«ã ãã®ããããã£ããã§ããç¾ç¶ã¯ä»¥ä¸ã®ãããªæ§æã¤ãã£ã¦ã¾ãã æµè¡ããã©ããã¯ãããã¾ããï¼ï¼ ã¡ãã£ã¨ããWebã¢ããªï¼æ³å® ã¦ã¼ã¶/10人ãããï¼ Webãµã¼ã Apache(CGI) DB SQLite WAF Mojolicious::Lite ORM DBIx::Skinny æè¿ã ã¨ç°¡æããâ¦
YAPCã«ã¦Yappoããã®ãAjax Application Testingããè´ãèå³ãããããã¾ããã ä»åã¯ã¯ãã¹ãã©ã¦ã¶ã§ã®ãã¹ãèªååãå®ç¾ãããã£ãã®ã§ãã®è¾ºãã試ãã¦ã¿ã¾ããã http://yappo.github.com/talks/20101016-yapcasia2010-jstapd/ ã¤ã³ã¹ãã¼ã« cpanm Jâ¦
YAPCããã¼ï¼ åå¤ç¥ã¯åºããªãã£ããã§ããï¼ï¼ï¼æ¥ç®ã¯è¡ããã®ã§ èªåãè¦ãã»ãã·ã§ã³ã®ææ³ãªã©ãã¤ãã¤ãã¨æ¸ãã¾ãã*1 That Goes Without Saying (or Does It?) / Larry Wallãã ã©ãªã¼ããã§ããã©ãªã¼ããï¼ ã´ããã´ããã¯ãããè£å£°ã«ãªã£ããâ¦
ã¯ãï¼æ¥ç®ã«ç¶ãã¦ï¼æ¥ç®ã ã¤ãã¤ãã¨æ¸ãã¦ããã¾ãã ã¾ãã¯ä»æ¥è²·ã£ããã® perl Tã·ã£ã Acmeå¤§å ¨2010 ã©ã¯ãæ¬vol1(ã©ãªã¼ããã®ãµã¤ã³å ¥ãï¼ãã£ãï¼) nginx & Perl / fujiwaraãã ãã¤ããã©ã¼ãã³ã¹HTTPãµã¼ãã§ããnginxã®ä»çµã¿ã Lighttpdã¨ã®â¦
ãµã¨ãperldocã§ã¯ã©ããªè±åèªãå¤ã使ããã¦ãã®ãã ã¨ãããã¨ã調ã¹ããã¨æã£ãã ã³ã¼ãã¯ãã¡ã http://search.cpan.org/~shay/perl/pod/perl.pod ããããï¼é層ã ãæ½ã£ã¦åèªéè¨ããã¹ã¯ãªããã http://gist.github.com/619373 ãããé©å½ãªã®â¦
ååã®ç¶ãã perlcodesamleãããããã©ã¼ãã³ã¹æ¹åã®ããããéã£ã¦ããã ããããã§ãã®ã§ãææ°çã§å度ãã³ããã¼ã¯ãåãç´ãã¦ã¿ã¾ããã ãã³ããã¼ã¯ã¹ã¯ãªãã ãã³ããã¼ã¯ã¹ã¯ãªããã¯åºæ¬çã«ååã¨åãã ããã«ã$self->req->params ãä¸åº¦â¦
â» 2010/9/26 è¿½è¨ ææ°çã¨ã®ãã³ããã¼ã¯æ¯è¼ http://d.hatena.ne.jp/tori243/20100927/1285594260 â» 2010/9/15 è¿½è¨ Mojoã¯ã¾ã βçã§ãç¾å¨ã¯å®å®ç¨¼åãåªå ã«éçºãé²ãããã¦ããããã§ãã æé©åãã§ã¼ãºã¯ãã®å¾ã®ãããªã®ã§ ãããã¯ãã®ãããªåé¡â¦
Smart::Commentsãåèã«ç°¡æãããã¡ã¤ã©ã¿ãããªã®ãæ¸ãã¦ã¿ãã ã¢ã¸ã¥ã¼ã«ã£ã½ãã®ã¯åãã¦ããã Smart::Interval package Smart::Interval; use strict; use utf8; use Time::HiRes qw/gettimeofday tv_interval/; use Filter::Simple; use Clone qw(â¦
perlã®Webã¢ããªã±ã¼ã·ã§ã³ããããã¤ããæ¹æ³ãèãã¦ã¾ãããã ç´å¾ããæ¹æ³ãã§ããã«æ®å¿µãªãã¨ã«ã ãµã¼ãæ§æ â ãããã¤ãµã¼ãå ¼webãµã¼ã â¡ãããã¤å webãµã¼ãæ°å° ããããã£ãæµã Webãµã¼ãã®OSã¨ã¢ã¼ããã¯ãã£ãä¸ç·ã§ããã° è¤æ°ãµã¼ãã¸ã®ãâ¦
â»2010/8/21 ã¢ã¸ã¥ã¼ã«ãå°ãæ¸ãç´ãã ãã¹ãã¯ãã£ã±ãåããããã¯ãã§ãã£ãã»ãããããï¼ã¨å©è¨é ãã¾ããã®ã§Test::mysqld使ããã¨ã«ãã¾ããã èªåã®ããæ¹ã¯ããããé åããã¦ãæ°ããã¾ãããä¸å¿èªåã®ãããããã¨ã¯ã§ããã®ã§ã¡ã¢ã¡ã¢ã ã¡â¦
åãã¦ã®perlï¼ç¶åãã¦ã®perlï¼ã¢ãã³perlå ¥éã¨ãã¦ã 次ã¯ä½èªãããã¨èãä¸ã ãã£ã±ãã©ã¯ãæ¬ï¼ï¼åã§ï¼ä¸åã¯èãã¦ãã¾ãâ¦ããã°ã©ãã³ã°PerlãVOLUME1ãposted with amazlet at 10.08.21ã©ãªã¼ ã¦ã©ã¼ã« ã¸ã§ã³ ãªã¼ã¯ã³ã ãã ã¯ãªã¹ãã£ã³ã»ã³ â¦
ã©ãã§ããã話ã ãµãã«ã¼ãã³ã®å¼æ°ã®æ¸¡ãæ¹ã«ã¤ãã¦ãã©ãããã®ãããããã¤ãæ©ãã ï¼ï¼ãããªã®ã hoge( $id, $name, $path, ); sub hoge { my ($id,$name,$path) = @_; ... } ï¼ï¼ãããªã®ã hoge( { id => $id, name => $name, path => $path, } );â¦
éå»ã®pasteä¸è¦§ãåºãããã«ç´ããã ãã http://gist.github.com/513680 æ¢ã«ä»¥åã®ãã¼ã¸ã§ã³ã§ä½¿ã£ã¦ã¦ã ALTER TABLE ããã ãã§ä½¿ããããã«ãªãã¯ã! ALTER TABLE entry ADD COLUMN title text; ã¬ã³é¯ã«ç½®ãã¦ã¿ããï¼ http://toritori0318.sakura.nâ¦
ãªãã§ãããããããããã¨ããããã¨ããã®ãã¨ããã¨ãã¢ãã«ï¼APIï¼ããã¹ãããã¨ãã«ãã¹ããã¼ã¿ãã¼ã¹ãã©ãããããã¨ããã®ãèãã¦ãããã ããããèãã¦ã¿ãçµæããDBMSãå ¨é¨SQLiteã«å¤æãã¦ãã¼ã«ã«SQLiteä¸ã«ã¦ãã¸ãã¯ã ããã¹ããããâ¦
ããããã®ç¡ãã£ããã¤ãã£ã¦ã¿ããããªã¼ã¨æã£ããã§ããããã£ã±ãããã¾ãããã ãã¹ãç¨ã§ä½¿ã£ãsqlæ(oracle) CREATE TABLE EMP (EMPNO NUMBER(4) NOT NULL, ENAME VARCHAR2(10), JOB VARCHAR2(9), MGR NUMBER(4), HIREDATE DATE, SAL NUMBER(7, 2),â¦
ãã£ã£ã£ã£ã£ã£ã¤ãå¿ãã¦ã°ã°ãã®ã§ã¡ã¢ã£ã¨ãã open my $fh, "<", "file.txt"; my $data = do{ local $/; <$fh>}; close $fh; print $data; ã¢ã¸ã¥ã¼ã«ä½¿ãããªã Perl6::Slurp ã楽ã¡ãã use Perl6::Slurp; my $data = slurp 'file.txt'; print $data;
ååã®PerlCasualã«ãåå ããã¦ããã ãã¾ããããä»åãè¡ã£ã¦åãã¾ããï¼ ä¾ã«ãã£ã¦èµ°ãæ¸ãã®ã¡ã¢ããææ³ãªã©ã ãªã½ã¼ã¹ç£è¦ãã¼ã«ã»ãã¬ã¼ã ã¯ã¼ã¯CloudForecastã®ç´¹ä» kazeburoãã CloudForecastã®ç¹å¾´ãªã©ã åæ£å¦çãé«éåä½ å¤§è¦æ¨¡éç¨ã«ãâ¦
ä¼ç¤¾ã§mojoliciousã使ã£ã¦éçºãããµã¼ãã¹ãããã®ã§ããã ãªãªã¼ã¹ãè¿ã¥ãã¦ããã®ã§ãããã¤ãã©ãããã決ãããã¨ã«ã perlã®WAF使ã£ããããã¤ããããã¨ããªãã®ã§ ã©ã®æ¹æ³ãããã決ãããã¦ããã ãã®ãããããã試ãã¦ã¿ã¦åé¡ãªããããªã®â¦
éè¦ãªãã¨æãã¾ãããperlã§æ°å¤ãï¼æ¡æ¯ã«ã«ã³ãåºåããã©ã¼ãããã«å¤æãã æ£è¦è¡¨ç¾ã®ãã³ããã¼ã¯ã§ãã*1 å ãã¿ http://www.din.or.jp/~ohzaki/perl.htm#NumberWithComma ã¹ã¯ãªãã #!/usr/bin/perl use strict; use warnings; use Math::BigInt;â¦
perlbrewã§ã¤ã³ã¹ãã¼ã«ããperlã§apacheã¨mod_perlãã½ã¼ã¹ãã«ããããã¨ããã mod_perlã®makeã§ã¨ã©ã¼ãçºçã 以ä¸ã¯ãã®å¯¾å¿è¨é²ã ç°å¢ os CentOS5.3 64bit perl 5.12.1 apache 2.2.15 mod_perl 2.0.4 ã¨ã©ã¼å 容 libperl.a(op.o): relocation R_X86_â¦
ãã¤ãã¿ã¼ã§ã¤ã¶ããããã¢ããã¤ã¹é ããã®ã§è©¦ãã¦ã¿ãã ãã®æ¹æ³ã§ããã®ãã©ããã¯ä¸å®ã§ããä¸å¿æé ãã¡ã¢ã è¦ã¯ããµã¼ãå ¨ä½ã§ã®perlããã©ã«ãç°å¢ãã¿ããªä¸ç·ã«ãããã£ãã¨ãããã¨ã /usr/bin/perl ãç´æ¥å¤ãã¡ããã®ã¯ããããåé¡ããããâ¦
Mojoliciousã¯ããã©ã«ãã§ã¯ lib/AppName/ é ä¸ã«ç½®ããããã¡ã¤ã«ãã³ã³ããã¼ã©ã«ãªãã¾ãã ã§ãæ°ãå¢ãã¦ããããã£ã¬ã¯ããªä½ã£ã¦ç®¡çãããã§ãããï¼ ãããªã¨ãã¯namespaceã使ãã¨å®ç¾ã§ãã¾ãã ã§ã¯ã以ä¸ã®ãããªæ§æã«ãããå ´åã®è¨å®ãè¦ã¦â¦
â»ãã£ã¡ãææ° http://d.hatena.ne.jp/tori243/20100808/1281248450 ä½ã£ã¦ã¿ãã Mojoã¨DBIã¨sqliteãã¤ã³ã¹ãã¼ã«æ¸ã¿ãªã daemonã§ãcgiã§ãã³ããããã ãã§åãã¯ãâ¦ï¼ http://gist.github.com/463484 *1 ã¦ãã»ã¨ãã©yusukebeããã®ã³ã¼ãã³ããã§ããâ¦
æè¿mojoliciousã触ãæ©ä¼ãå¤ãã§ãã ã§JSON使ãè¦ä»¶ãåºã¦ãã¦ãrender_jsonã£ã¦ã®ããããã©ä½ä½¿ã£ã¦ãã®ããªã¼ã¨è¿½ã£ã¦ã¿ãã Mojo::JSONã¨ããã®ã¢ã¸ã¥ã¼ã«ã§èªåå®è£ ãã¦ãã£ã½ãã ãããã®ã¾ã¾ä½¿ãã°ããããããï¼ã¨ãããã¨ã§ ãã¡ãããã³ããâ¦
Perlãã¬ã¼ã ã¯ã¼ã¯Catalystå®å ¨å ¥éposted with amazlet at 10.06.20å±±ç° ç¥¥å¯ ã¤ã³ãã¬ã¹ã¸ã£ã㳠売ãä¸ãã©ã³ãã³ã°: 147465Amazon.co.jp ã§è©³ç´°ãè¦ã ç®æ¬¡ã¯ãã¡ã http://www.amazon.co.jp/gp/product/toc/4844328654/ref=dp_toc?ie=UTF8&n=465392 åâ¦
perl -d ã§ãããã°ããã³ãã表示ããããæåã« { v ã¨å ¥åãã¦ã¿ã¾ãããã è¶ è¦ããããªããï¼ ã¡ãªã¿ã«æ»ãã¨ãã¯ä»¥ä¸ã®ã³ãã³ãã§ãï½ã { *
å é±botãOAuth対å¿ãããã§ããã ä»æ¥ãµã¨æ°ã¥ãããã¨ããbotã®ãã¤ã¼ãã« å ¨ç¶é¢ä¿ãªãbotã®ãã¤ã¼ããæµãã¦ãï¼ èªè¨¼ã¢ã¸ã¥ã¼ã« ãããªã®ãbotãã¨ã«ä½ã£ã¦ãã é¢åãªã®ã§ããã³ãããã¦ãã¼ã ãå¤ãã¦ãã package Auth; use strict; use warnings; â¦
Mojoã§å¤§ãããã¡ã¤ã«ãã¢ãããã¼ãããã¨ãã¡ã¤ã«ãåãã¡ããæã®å¯¾å¿
Mojolicious::Liteã§ç¤¾å ç¨ç°¡æãã¡ã¤ã«ã¢ãããã¼ãcgiãåããã¦ããã§ããã 大ãããµã¤ãºãéä¸ã§åãã¡ãã£ã¦ãã 調æ»ãã¦ã¿ãã¨ãã©ããããã©ã«ãã§ã®ã¡ãã»ã¼ã¸ãµã¤ãºãè¨ãããã¦ããæ§åã ç°å¢å¤æ°MOJO_MAX_MESSAGE_SIZEãè¨å®ããã大ãããã¡â¦
http://gihyo.jp/dev/serial/01/modern-perl/0020?page=3 â»ãã¡ãã®å 容ãå ã«ããã³ã¼ãã使ã£ã¦ããã¨ä»®å® Email::Sender::Transport::SMTP ã使ã£ã¦ãå¤é¨ãã¡ã¤ã³ãã¸éä¿¡ããã⦠ãã®ã¾ã¾ã ã¨ã¨ã©ã¼ã§éä¿¡åºæ¥ãªãã£ãã ã¡ã¼ã«ãµã¼ã*1ã§ã®è¨å®ã§ãªãâ¦
Net::OpenSSH Net::SSHã¨ããããã¾ããã èªåçã«ã¯ãã£ã¡ã®ã»ããç´æçã«ä½¿ããã ä¾åã¢ã¸ã¥ã¼ã«ãå°ãªãã¦ã¤ã³ã¹ãã¼ã«ãç°¡åï¼ SYNOPSISã®ã³ãã use Net::OpenSSH; my $ssh = Net::OpenSSH->new($host); $ssh->error and die "Couldn't establish SSâ¦