All slide content and descriptions are owned by their creators.
All slide content and descriptions are owned by their creators.
https://metacpan.org/pod/from_unixtime ãã¿ã¦ãã£ã¦ã¿ã。 > cat sql_result id 1 created_at 1419702037 updated_at 1419702037 > perl -MTime::Piece -pe 's/\b(1[0-9]{9})\b/"$1(".localtime($1)->strftime("%F %T").")"/ge' < sql_result id 1 created_at 1419702037(2014-12-28 02:40:37) updated_at 1419702037(2014-12-28 02:40:37) èªåã®å ´åã ã¨ãããããã®ã¯ã³ã©ã¤ãã¼ã§ããããªï½¤ã¨ï½¡ ä¸è¨ã®æ£è¦è¡¨ç¾ã¯æ¥µãã¦éã ã、以ä¸ã®ããã«ï½¤ä¸è¬çã«æ±ãããç¯å²ã® unix time ã«ã¯ãããªãã«ããããã。 > ep
1æ¥ç®ææ³ããã¦ããã ãã¶éã空ãããã©ã2æ¥ç®ææ³ã¾ã¨ãããLTã¯é¤ãã è¬ã®è ¹çã«æ©ã¾ããã¦åå¾ããåå ãéä¸ã¿ãªã¼ãºã§ãããã¾ã£ãããããã å°åpm Meet up æã£ã以ä¸é¨æ¥æ¬å ¨å½ãã¡ãã¡ã«pmãã£ãã é½å åºèº«ãªã®ã§å°åpmã«è¡ããã¨ã¯æ®ã©ãªãããã ãã©ãå°æ¹pmã®äººãé½å pmå¼ã¶ã®æ¥½ãããã YAPC::Europe 2014ã«ãã£ã¦ãã¾ãã ãã«ã¬ãªã¢ã¯ãã¼ã«ã¯ãºå¤©å½ãè¦ããã ã¨ã¼ãããã¯è±èªããã¾ãåããªãã¦ãå¯å®¹ãè¦ããã ããããæ¥æ¬ããåºããã¨ãªããã§ããã©ãã 趣å³éçºã®ããã®ã¯ã©ã¦ã/VPSæ´»ç¨è¡ VPSã¯2社ã»ã©ãã¬ã³ã¿ã«ãµã¼ãã¯1社ã»ã©ä½¿ã£ã¦ããã©ãæ£ç´ãããªã«æ´»ç¨ãã¦ãªãã èãã¦æ¹ãã¦ã¾ãå¼ã£è¶ããã¨ãããã¨ã¯ãªããã©ãæè¿ã®VPSæ å ±ãç¥ããã¨ãã§ãã¦ããã£ãã ãã¼ãã¼ã ã¨ã³ã¸ãã¢ã¨ãã¦çãã ã20代ã®çµé¨ãä»å¾ã®äººçã®ãã¼ã¹ã«ãªããã¨ãã
ãã®è¨äºã¯âã«ç§»è»¢ãã¾ããã laysakura.github.io
æ¥å¹´ãä½ãããï¼ãµãã®ã¨ãæçãæºå«ããã2024å¹´æ¥ã®è¨é² æ¥ã¯èªçã楽ããå£ç¯ 1å¹´ã®ä¸ã§æãèªçã楽ããå£ç¯ã¯æ¥ã ã¨æããã¹ã¼ãã¼ã®æ£ã«ãããããªè²åãã®éèã並ã¶ã¨èªç¶ã¨ããããå¼¾ãã ä¸ã§ãã¨ãããã®ã¯å±±èã ãæ©ãã¨2æä¸æ¬ãããã並ã³å§ããããã¯ãã¿ã©ã®è½ããµãã®ã¨ãã¨ç¶ããæ¡ã®é ã«ã¯ããããã¦ãããâ¦
yusukebe ã®Object::Containerãå¿ç¨ããModelå¼ã³åºã ã®ããããããã§ã®ææ³ã§ããã ä¸ææ Catalyst ã®å½±é¿ããã£ã¦ãã¢ãã«ã®ã¤ã³ã¹ã¿ã³ã¹ã¤ãã£ãããªãã ãããã¦ããã®ã§ãããçµå±ã®ã¨ããã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ã¯ãã¢ãã«ãããã°ã£ã¦ãªãã¸ã§ã¯ãã«ã¢ããªã³ã°ãããã¨ãèããããããã¤ã¾ãæç¶ã¨ãã¦æ±ã£ãæ¹ããã£ãããããªãã¨ãããã¨ã«èªåã®ä¸ã§ãªãã¾ãã¦ãæè¿ã¯ããã¡ããã¡ãèããã®ãããã¦ãæç¶ãã¨ãã¦å®è£ ãã¦ãã¾ãã yusukebe ã®ä¾ããã¼ã¹ã«ã¯ãªããããããã¨ãã³ã³ããã¼ã©ã以ä¸ã®ããã«ããã¾ãã package MyApp::Web::Controller::Root; use Mojo::Base 'Mojolicious::Controller'; use MyApp::M::Entry; sub index { my $se
Try::Lite supported of older perls I fixed Try::Lite's nexted try-catch block don't work on older perls, because I received that bug report by koba04. https://metacpan.org/release/YAPPO/Try-Lite-0.0.3/ Try::Lite ã¯æè¿ã® Perl ã§éçºããããããã£ããå¤ã Perl ã®ä¾å¤å¦çãå¤ãªãã¤ã«å¯¾å¿ããã®ãå¿ãã¦ã¾ããã pull-req åãåã£ã¦ãã4ã¶æããã£ã¦ãã¾ã£ããã§ãããä¾å¤å¦çãããããããããã£ã¦ãããã®æå³ãè¯ããããããã¦æ¾ç½®ãã¦ãã£ã¦ã®ãããã¾ãï¼ æåè²°ã£ããã¤ã 㨠RAII ã㦠$@ ãè¯ãæãã«å ã«æ»ãã¿ãããªäºãã¦ããã©ãããèãããæ®éã«æ¸ãã° R
â»2013/07/25 ã¹ã¯ãªããã¨æ¦è¦ãUpdateãã¾ãã 次æãã¼ã¸ã§ã³ã§ããRedis 2.8ã§ã¯ãã®åé¡ãå°ãã§ã解決ãããã¨ã CONFIG REWRITE ã¨ããã³ãã³ãã§ãredis.confã®æ¸ãæããè¡ãããããã ããçµå±ãããå¿ãããåããã¨ãªã®ã§ãã®åé¡ã®è§£æ±ºã«ã¯ãªããã¯å¾®å¦ãªã¨ããã ã ã¡ã¢ãªä¸ã«ããåæ ããã¦ããªãè¨å®ããããã©ããããªãããã®æ¹æ³ã§ãã§ãã¯ãããã¨ãã§ããã°ç£è¦ãããªã©ã§ããã¨æãã®ã ãâ¦ã http://unknownplace.org/archives/twilio-redis-incident.html æ¸ãæ¨ã¦ã£ã½ãã§ãããå·®åãã¨ãã¹ã¯ãªããããããã¨æ¸ãã¦ã¿ã¾ããã æ¦è¦ 以ä¸ã®ãããªãã¨ããã¦ãã¾ãã å¤ã空ã®ãã¼ã¯ããã©ã«ãå¤ãè¨å® åä½ï¼K/M/Gï¼ãæå°åä½ã«æ»ã ã¡ã¢ãªä¸ã®ãã¼ãæ£ã¨ãã¾ã*1 ã¡ã¢ãªã«ã®ã¿ãã¼ãåå¨ãã
ã¦ã¼ã¶ã¼ããã®POSTçãããå ¥åå¤ã®å¦¥å½æ§ããã§ãã¯ãã Validation ãã©ãã§ãããåé¡ãå人çã«ããã¾ãã¦ããDBã使ããªãã±ã¼ã¹ãªãã°ããããFomrValidator::*ã使ã£ã¦Controllerã§ããã°ããã®ã§ãããModelãçµç±ãããããªã¢ããªã ã¨Controllerã ãããä¸å®ãããããModelã ã使ãæãããããModelåä½ã®ãã¹ãã§åç¾åºæ¥ãªãããããªãã¦æã£ã¦ã¾ããã§ãå®éã®å®è£ ãControllerã§ã¯FormValidator::LiteãModelã®ä¸é¨ã«Data::Validatorã使ã£ã¦ããã®ã§ããããªããã³ã¬ãå¹çæªãæããã¦ããã§ãã¡ããã¨å®é¨çã«çæ³ã®ä¸ã¤ãå®è£ ãã¦ã¿ã¾ããã ãããªæ¡ä»¶ã§ãã ã¨ã©ã¼ã¡ãã»ã¼ã¸ãç°¡åã«è¨å®ãããã®ã§Validationã¢ã¸ã¥ã¼ã«ã«ã¯FormValidator::Liteã使ã è²ã é¯èª¤ãã¦ãããOR
ãã®å Xslateã®ãã³ãã¬ã¼ããCSSã¤ã³ã©ã¤ã³åãã - $shibayu36->blog;ã¨ããè¨äºããããã®ã ãã©ããã®æã«gfxããã«ã³ã¡ã³ã㧠gfx BKã£ã½ãæ°ããã¾ããä»ã«ããæ¹æ³ã¯æãã¤ããªãããæè¿ pre_process_handler ã¨ããæ©è½ã足ããã®ã§ãã¾ã許容ç¯å²ãããªããããã ã¨è¨ãããã pre_process_handlerã¨ãããã®ããã£ããã¨ãç¥ããªãã£ãã®ã§ã試ãã«å©ç¨ãã¦ã¿ãã pre_process_handlerã使ã£ã¦templateã«å¯¾ãã¦CSSã¤ã³ã©ã¤ã³åãã ãã¦ããããã£ããã¨ãæ¯ãè¿ã㨠ã¡ã¼ã«ãä¸éä¸éCSSã¤ã³ã©ã¤ã³åããã®ã§ã¯ãªããå ã«templateãã¤ã³ã©ã¤ã³åãã¦ããã¦ããããå©ç¨ãã¦renderããã ã¨ãããã¨ã§ããã ä¾ãã°ä»¥ä¸ã®ãããªtemplateãç¨æãã¾ãã <html> <head> <styl
æè¿ã¯perlã§ãã¹ãæ¸ãæã¯Test::Classã使ãããã«ãã¦ããããã®çç±ã®ä¸ã¤ã¨ãã¦ãsubtestã ãã®ãã¹ãã ã¨å°ãã ãå°ããã¨ãããããã ã å ·ä½çã«ã¯ä»¥ä¸ã®äºãããã subtestã¯æ¸ããã¦ããé ã«å®è¡ããããããåã®ãã¹ãã®ç¶æ ã«ä¾åããã³ã¼ããæ¸ãããã¡ ç¹å®ã®subtestã ããå®è¡ããã®ãé¢å åã®ãã¹ãã®ç¶æ ã«ä¾åããã³ã¼ããæ¸ãããã¡ åã®ä¸ã§ã¯ããã¹ããåã®ãã¹ãã®ç¶æ ã«ä¾åããªãããã«ãã¹ãã¨æã£ã¦ãããåãã¹ãã®ä¾å度ãå¢ããã¨ããã®å¾ãã¹ãã追å ãããã¨ãã«ã³ã¼ãã®è¦ãç¯å²ãå¢ãããã¹ããæ¸ãã¥ãããªã£ã¦ãã¾ãããã ã ããããsubtestã¯åã«æ¸ãããé ã«ãã¹ããå®è¡ãããã®ã§ãåã®ãã¹ãã®ç¶æ ã«ä¾åããã³ã¼ããæ¸ããããã¨æã£ã¦ãããä¾ãã°ä»¥ä¸ã®æ§ãªã³ã¼ããæ¸ãããã¡(å°ã極端ãªä¾ã ã)ã use Test::More; # insert_en
http://blogs.perl.org/users/joel_berger/2013/07/a-generator-object-for-perl-5.html Coro ãã¤ãã£ã¦ã¤ãã¬ã¼ã¿ãç°¡åã«å®è£ ã§ããããã«ãã¦ããã®ããªãã§ããªã use strict; use warnings; use Generator::Object; my $gen = generator { my $x = 0; while (1) { $x += 2; $_->yield($x); } }; print $gen->next; # 2 print $gen->next; # 4
Kyoto.pm 05 Tech Talksãéå¬ãã¾ãããJPAæ§ã®è¬å¸«æ´¾é£ããã°ã©ã ãå©ç¨ããnekokakããã«ãè¶ãããã ãã¾ããã ä»åã¯30人ãè¶ ããæ¹ã«åå ãã¦ããã ããçºè¡¨ãnekokakãããé常ãã¼ã¯7ã¤ãLT7ã¤ã¨ããªããªãçãä¸ãã£ãã¨æãã¾ããé æ¹ãããæ°äººãè¶ãããã ããçºè¡¨ããã¦é ãã¾ããã ã¾ãTech TalksãªãHackathonãªãéå¬ãããã¨æãã¾ãã®ã§ã次ãæ¯éãåå ãã ããã ãã¼ã¯å 容 ãã¼ã¯å 容ã¯ã¹ã©ã¤ããªã©ãä¸ãããã³ã«éææ´æ°ãã¦ããã¾ãã é常ãã¼ã¯ nekokakãã y_uukiãã : ãµã¼ãã®ã¡ããªã¯ã¹åå¾ã¨ã°ã©ãå Kyoto.pm 05ã§èªä½ã®ãµã¼ããªã½ã¼ã¹å¯è¦åãã¼ã«ã®ã¯ãªãããã¾ãã - ããããããã° songmuãã : Tengã¨Redisã«é¢ããã話 ããããã¯ãããããå¹³å¡ãªæ¥ã : Kyoto.pmã«è¡ã£ã¦ã
https://github.com/tokuhirom/Spellunkerhttps://metacpan.org/release/SpellunkerNowadays, I got trouble by xt/01_spelling.t. Then I wrote a new spelling checker written in perl. Pros. No C compiler required.Dictionaries included in distributionInstallable from CPANReadable code for CPAN AuthorsOptimized for CPAN modulesCons. It's new. Bit unstable.You can use it as testing module like following: use
Perl::Critic loads all installed policies by default. It means, perlcritic loads "ProhibitAccessOfPrivateData" if it's installed. I don't like that policy. I don't want to write excluding rules for each optional policies. And so, I need to write a lot of policies for 'excludes' section to exclude policies, I don't like. I got an idea. I SHOULD list include policies instead of excludes policies. It
Starmanã¨Starletã®éãã¯ããã¤ãããã¾ãããStarletã«ããã¤ãæãå ãããã¨ãé度ã¯ã©ããªã£ã¦ããã®ãæ¯è¼ãã¦ã¿ãã ãªãã以ä¸ã®è¨äºã¯Hello Worldã®ãã³ããã¼ã¯ãªã®ã§ãå®éã®ã¢ããªã±ã¼ã·ã§ã³ã®ããã©ã¼ãã³ã¹ã«ã¯ãã¾ãå½±é¿ããªãã¨æããã¾ãã åã½ããã¦ã§ã¢ã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã Plack-1.0023 Starman-0.3008 Starlet-0.18 Starletã®ãã³ããã¼ã¯ã¨ã»ã¼åãã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã¦ãµã¼ããèµ·åãã use Plack::Builder; use Plack::Request; my $length = 12; my $body = 'x'x$length; builder { enable 'AccessLog', logger => sub { }; sub { my $env = shift; my $req = P
è¤æ°ãã¼ã¸ã§ã³ã®ã¢ã¸ã¥ã¼ã«ã§åãã³ã¼ããå®è¡ãã¦Benchmark.pmã§è¨æ¸¬ããããã¨ããã±ã¼ã¹ã«ããæ¸ãã°ããããªãã¨ããä¾ã æ®éã«Benchmark.pmã使ã£ã¦ãã¾ãã¨åä¸ã¢ã¸ã¥ã¼ã«ãéããã¼ã¸ã§ã³ã§è¤æ°èªã¿è¾¼ããã¨ãã§ããªãããã ãã¼ã¸ã§ã³ãã¨ã«åããã»ã¹ã fork åããã»ã¹ã§ use lib ã㦠@INC ã追å ãã¦ãã use è¨æ¸¬ããçµæããã¡ã¤ã«ã«ä¿åãã¦è¦ªããã»ã¹ã§éç´ã表示 ã¨ããæµãã§æ¸ãã¾ãã use strict; use Benchmark qw/ :all /; use File::Temp qw/ tempfile /; use Storable qw/ nstore retrieve /; # è¨æ¸¬ãããã³ã¼ã my $code = sub { my $c = Cache::Redis->new; for ( 1 .. 10 ) { $c->s
追è¨: 2013/03/17 21:11 githubã«ä¸ãã¾ãã åã«ãã°æã£ã¦ããã ãã®ç°¡åãªã¢ã¸ã¥ã¼ã«ãªã®ã§Simpleã¤ããã çºè¨æ©è½ãã¤ãã¦ããããã©ãID/Passãå¿ é ã«ãªãã®ã§èãä¸ã ==ããã¾ã§è¿½è¨== ãããµããªããã㧠perl ã®è©±é¡ãããããã®ãã£ããã«ã¼ã ãã¤ãã£ã¦ã¿ã - tokuhirom's blog. Perlã®è©±é¡ãæ¥æ¬èªã§ â Lingr ã¨ãããã¨ã§ãLingr ã§ã«ã¸ã¥ã¢ã«ã«Perlã®è©±ããã®ããã¼ã ã¿ãããªã®ã§ã é常ã«ãã£ã¤ãã§ã¯ããããWWW::Lingr ãããã ãã ãçºè¨ãæ¾ã£ã¦ããã ãã®é常ã«ã·ã³ãã«ãªãã®ã¨ãªã£ã¦ããããLingrã¢ã«ã¦ã³ãæã£ã¦ããªãã¦ãè¦ããã¨ã¯ã§ããã®ã§ã é°å²æ°ã軽ãè¦ã¦ã¿ãã人 ï½ å¼µãä»ãã¦ã¿ã¦ããã人ã¾ã§ä½¿ãã¾ãã ããã10åæè¦ãããã§æ¾ã£ã¦ããããã«ãã¦ç¤¾å ã§ã観å¯ã§ãããããªæãã«ããã
ãã¾æ¸ãã¦ãã³ã¼ãã§ãforkãã¦execãããã ãã©ãexecããåã«STDIN/STDOUTãä»»æã®ãã¡ã¤ã«ãã³ãã«ã«ç½®ãæããããªã¼ããã£ã¨ããã¨execããããã°ã©ã ã®STDINã«ã½ã±ããã®READããæµãã¦ãããã¼ã¿ãæµãè¾¼ãã§ãSTDOUTã®åºåãã½ã±ããã®WRITEã«æµãè¾¼ãã§ãããããªã¼ãã¨ãããããªãã¨ãèãã¦ããã ã§ããããä¾ãã°ä»ã®ããã»ã¹ã®STDOUTã®åºåããã¡ã¤ã«ã«ç½®ãæããã«ã¯ã以ä¸ã®ããã«ããã°ããã open(STDOUT, '>', '/path/to/file'); ã·ã§ã«ã¹ã¯ãªããã§ãç°¡åã*1 exec >> /path/to/file ãã¦ãSTDIN/STDOUTã¨connectæ¸ã¿ã®ã½ã±ãããçµåããããconnectæ¸ã¿ã®ã½ã±ããã¯ãã¡ã¤ã«ãã£ã¹ã¯ãªãã¿ã¯æã£ã¦ããããã¡ã¤ã«ãã¹ãæã£ã¦ããªããã®ã§ãæ®éã«openãç´ãã ãã§ã¯ãã¾ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}