徳丸ã¯PHPã好ãã? ã§ãããå ã¯ãããªãã¨æèãã¦ãªãã£ããã§ããæ¥æ¬ã®PHPã³ããã¿ã¼ã®ä¸äººã«ã³ã¤ãºãã¢ãªã¨ã·( @moriyoshit )ã¨ããç·ããã¾ããããã¾ãã¾å½¼ã¨æ¼é£ãä¸ç·ã«ãªãæ©ä¼ããã£ã¦ããã®å¸ã§å½¼ããã¼ãã£ã¨è¨ããããã§ããã徳丸ãããPHP好ãã§ãããâ¦ãããããã¾ã§PHPã好ããã©ãããªãã¦ãèãããã¨ããªãã£ãã®ã§ããèªåã¯PHPã好ãã? èãã¦ãããã¡ã«ããã£ãèªåã¯PHPã好ããªã®ããâ¦ã¨æãå§ãã¾ãããããããã¢ãªã¨ã·ãç§ã«åªããããããã ã¨æãã¾ããï¼ç¬ãï¼ åæ¥è ããã¯ã徳丸ã¯ãªããããªã«PHPã追ãããåããã ãã¨æããã¦ããã¨æãã¾ããã徳丸ããã¯PHPãå®å ¨ã«ä½¿ãæ¹æ³ã示ãã罪深ãæ¹ãã¨æ¸ããããã¨ãããã¾ãï¼æ¶æãªã®ããæ¹å¤ãªã®ããã¾ããè¤ãã¦ããã®ãããªããªã®ããããããã¾ãããwï¼ã ãã¤ã¦ã¯ãPHPçéã®ä¸äººãããé¢ã¨åãã£ã¦ã徳丸ãã
This document discusses ik, an alternative implementation of fluentd developed by Moriyoshi Koizumi. It describes ik's features like small memory footprint and built-in scoreboard compared to fluentd. It also discusses Koizumi's use of ik in a production environment to remotely collect logs from Windows tablets running .NET applications, where ik was deployed alongside fluentd and stunnel to trans
è¡ã£ã¦ãã¾ãããã¡ãã£ã¨è©±ãã¾ããã http://yamiphp.doorkeeper.jp/events/8749 https://twitter.com/search?q=%23yamiphp&f=realtime åçºè¡¨è ã®ã¿ã¤ãã«ã¨ã¹ã©ã¤ãã¯ä»¥ä¸ã§ãã @chobi_eãã ãå ¥éZend Memory Managerã 第äºåéPHPåå¼·ä¼ã§å ¥éZendMemoryManagerã«ã¤ãã¦è©±ãã¦ãã¾ãã @co3kãã ããå㯠PHP ã®æ´å²çãªçç±ã®æ°ãè¦ãã¦ãããã ãå㯠PHP ã®æ´å²çãªçç±ã®æ°ãè¦ãã¦ããã®ã from Kousuke Ebihara @moriyoshitãã ããããããªãPHPéæ¹é 2014ãzend_astãªã©ãä¸å¿ã«ã https://dl.dropboxusercontent.com/u/673207/yami-php-201403/co
4. Luaã¨ã¯ ãã©ã¸ã«ã® Pontiï¬cal Catholic University of Rio ã§éçºããã¦ããããã°ã©ãã³ã°è¨èª åãè¾¼ã¿åã®ããã°ã©ãã³ã°è¨èªã¨ãã¦éçºããã ã²ã¼ã æ¥çãä¸å¿ã«æµ¸éãç¾å¨ã¯æ±ç¨çãªããã°ã© ãã³ã°è¨èªã¨ãã¦ä¸å®ã®å°ä½ãå¾ã¦ãã ã¬ã¼ãã¸ã³ã¬ã¯ã·ã§ã³ãã³ã«ã¼ãã³ 6. OpenResty nginx-lua ã®ç¾å¨ã®ã¡ã³ããã® agentzh (ç« äº¦æ¥ã ã) ãæä¾ãã¦ãããã³ãã« ã¤ãã®ã¢ã¸ã¥ã¼ã«ãå ¨é¨å ¥ã array-var / auth-request / coolkit / echo / encrypted-session / forminput / headers-more / iconv-nginx / lua / memc / postgres / redis / redis2 / set-misc / srcache / xss
sotarokãåæã«ç¥ãä¼ã«è¡ã£ã¦ã¾ããã¾ããï¼ åè¶ãªãããã®ãã³ã¯LTãããã¦ããã ããã®ã§ããã®å 容ã®ç´¹ä»ãããã¦ããã ãããã(æ¥ç«é¢¨) çæ§ãåç¥ã®ãã¨ã¨æãã¾ãããOSSã³ãã¥ããã£ã¼ã«ããã¦ãéçºè ãçµå©ããéã«ã¯ãæ°éã¨æ°å©¦ã« ãªãªã¸ãã«âââââââââââ ãè´åããã¨ããæ £ç¿ãããã¾ãã ã¯ãããã¡ãã ãªãªã¸ãã«Apacheã¢ã¸ã¥ã¼ã« ã§ããã ã¨ããããã§ãä»å㯠mod_sotarok mod_mikko ãä½ããã¦ããã ãã¾ããã mod_sotarok-mod_mikko at github.com mod_sotarok.c: /* * Copyright (c) 2010 Moriyoshi Koizumi * * Permission is hereby granted, free of charge, to any person obtaining
ãªããç¥ããªããã¡ã«PHPãå ¨ç¶æ¸ãããã¨ããªãã¨ããåãåºã¾ã£ã¦ãã¦å¿å¤ãããã®ã§å¼æãã¦ãããé·ããªããããããªãã PHPã使ãå§ããã®ã¯ã¡ããã©10å¹´ãããåã®ãã¨ã ã¨æãã4.0.3ãããããåºãé ã ãå½æå人ãã¡ã¨ã·ã©ãã¹ã®æ å ±ãå ±æãããµã¤ããã¤ãããã¨ãã¦ãã¦ãPHP ãç´¹ä»ãããããã¼ã¿ãã¼ã¹ã«æ¥ç¶ãã¦ãã¼ã¿ã®åºãå ¥ãããããããªä»æããç°¡åã«ä½ããã¨ããã ããã¾ã§ã¯ web ã§ä½ãä½ãã¨ãã£ãã Perl ã ã£ããããã³ãã¬ã¼ãã¨ã³ã¸ã³ã¨ããã«ããã¼ããã¼ãµã¨ããã¾ã¨ãããªã¬ãªã¬ web ã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãä½ã£ã¦ãè¶ãæ¿ãã¦ãããPerl ã¯ããªã好ãã ã£ããããã§ããPHP ã®æ軽ãã¯è¼ãã¦è¦ãããã³ã¼ãããã®ã¾ã¾ HTML ã«åãè¾¼ãããã¨ã§ããããpoor-man's ASPãã ã¨æã£ã¦ææ¿ãã¦ãããããã¥ã¢ã«ãè¦ãã°ãçããæ¸ãã¦ãã£ããããåã
When it comes to web development, most people wouldn't doubt PHP's best friend is Apache HTTPD Server. Having said that, developers who experienced any of web application frameworks of other scripting languages such as Ruby on Rails and Django may well find it cumbersome to set up httpd.conf just to use it within a development environment as those are most likely accompanied by a tiny web server t
è³æã¨ããããå ¬éãã¾ãã Lltiger20100731View more presentations from Moriyoshi Koizumi. Puby ã®æ¹ã®è§£èª¬ã¨ã¹ã¯ãªã¼ã³ãã£ã¹ã㯠ãPython ã®ææ³ã ãã Ruby ã£ã½ããã¦ã¿ããã©ããªããå®é¨ãããã«ããã¾ãã Rhython ã®æ¹ã®ããã㯠Gist:502964 ã§ãã
è³æããã¨ãã¾ãã Xlib.php 㯠http://github.com/moriyoshi/php-Xlib/ ããã¨ã£ã¦ãã¦ãã ããã <?php require 'Xlib.php'; $fonts = array( 'hiragino-mincho' => "/System/Library/Fonts/ãã©ã®ãææ ProN W6.otf", 'courier' => "/Library/Fonts/Courier New Bold.ttf", ); $texts = array( array("ã¯ã"), array("å§ã¾ã£ã¦"), array("ãã¾ãã¾ãã"), array("Heavyweight"), array("Heavyweight\nTemplate"), array("Heavyweight\nTemplate\nLanguage"), array("PH
ããã«ã¡ã¯ãSQLãæãã¦ãã¾ãªãmoriyoshiã§ãã ã¹ãã¢ãããã·ã¼ã¸ã£ã¯ãä¸é£ã®SQLæããµãã«ã¼ãã³ã®ããã«DBãµã¼ãã«è¨é²ãã¦ãããå¾ãããããå¼ã³åºããã¨ãã§ããããã«ããä»çµã¿ã§ããè¿ä»£çãªRDBMSã«ã¯æ¨æºçã«åãã£ã¦ããæ©è½ã¨ããã¾ãã å¶å¾¡æ§é ãªã©ãSQLæã§è¨è¿°ãããã¨ãã§ããã®ã§ãçµæçã«ããããããã¸ãã¯ãSQLã®ã¿ã§è¨è¿°ãããã¨ãã§ãã¾ããæç¶ãåããã°ã©ãã³ã°ã«ã©ã£ã·ã浸ãã£ãç¾å ´ã®æ¹ããæç¨ããã¦ããã¨è¨ããã¦ãã¾ãã ä»åã¯ãã¹ãã¢ãããã·ã¼ã¸ã£ã®å¿ç¨ã¨ãã¦ãWebã¹ã¯ã¬ã¤ãã³ã°ãè¡ãªã£ã¦ã¿ã¾ããããWebã¹ã¯ã¬ã¤ãã³ã°ã¨ã¯ãç¹å®ã®Webãµã¤ãã«ã¢ã¯ã»ã¹ãããã®ãã¼ã¸ã®å 容 (HTML) ãåå¾ã解æããå¿ è¦ãªæ å ±ãåãåºãã¨ããä¸é£ã®æä½ãèªååãããã¨ã§ããWebã¹ã¯ã¬ã¤ãã³ã°ãå¹æçã«æ´»ç¨ããã¨ã人éããã©ã¦ã¶ã«åãã£ã¦åç´ä½æ¥ãç¹°ãè¿ãå¿ è¦ããª
ããããæ¸ãã¾ããã Python 2.6.5 (r265:79063, éæ¹é , May 2 2010, 17:41:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> def a(): ... readonly a = b = 3 ... a = 3 ... File "<stdin>", line 3 SyntaxError: variable 'a' is read-only >>> def a(): ... x = 3 ... readonly x = 3 ... File "<stdin>", line 3 SyntaxError: name 'x' is assigned to b
mod_jsonp ã¯ãApache ã®ãã£ã«ã¿ã¢ã¸ã¥ã¼ã«ã§ããé©å½ã«æã§ã§ã£ã¡ä¸ãã JSON ã®ã³ã³ãã³ããæ軽㫠JSONP åã§ããã¨ããããããªã¼ã¨æã£ã¦ãé©å½ã«ä½ãã¾ããã Content-Type ããapplication/jsonã callback=... ã¨ããã¯ã¨ãªæååã Request URI ã«ä»å ããã¦ãã ã¨ããæ¡ä»¶ãæºããããã¨ãã«ãJSON ã®ã¬ã¹ãã³ã¹ã JSONP ã«å¤æãã (åã«ã¬ã¹ãã³ã¹ããã£ãé¢æ°å¼ã³åºãã®ããã®æååã§å²ã)ãã¨ãããã¨ããã¾ãã ãã«ãæ¹æ³ $ apxs -c mod_jsonp.c $ libtool --mode=install cp mod_jsonp.la $PWDãªã©ã¨ãã¦ãã«ããã¦ãmod_jsonp.so ãé©å½ãªå ´æã«ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã ãã¨ã¯ãhttpd.conf ã« LoadModule js
Inspired by http://anond.hatelabo.jp/20100125020240 Perlã¨ã³ã¸ãã¢ãåéãã¦ãä¼ç¤¾ã®æ¡ç¨é¢æ¥ãåããæã®è©±ã 転è·ã¨ã¼ã¸ã§ã³ãã«ä½ãã¨è¨ããã¦ä½ã£ãã·ã¼ãã«ããèå³ã®ããæè¡/è¨èªãã¨ããæ¬ããã£ããã§ãã PSGI/Plackã¨ãè²ã æ¸ãããã©ãããã°ã©ãã³ã°è¨èªã®ä¸ã§èå³ãããã®ã¯PHPã ã£ãã®ã§ã PHPã¨æ¸ãã¦ãããã®ã§ããããããè¦ãé«é¢ãµã¹ãã³ãã¼ã®é¢æ¥å®ã®ãªã¢ã¯ã·ã§ã³ãé ·ãã£ãã é¢æ¥å®ãPHPã»ã»ã»ãµã¯ã¯ã£ï¼PHPï¼ã é¢æ¥å®ãPHPãã£ã¦ããã§ããï¼ï½ï½ï½ï½ï½ã 俺ã(åç¶)ã¯ãã¯ãã»ã»ã¾ã åç §ãç解ãããããã§ããããã é¢æ¥å®ãPHPã»ã»ã»ï¾ï¾ï¾ï¾ã ãã®äººã¯CPANã³ããã¿ã§ãå½ç¶Perlã®ã³ã¼ããæ¸ãã¦ãã人ã ã£ãã®ã§ã PerlããImproved PHPãã¨å¼ã°ãã¦ããäºãç¥ããªãã¯ã±ãç¡ãã ããã¨æã£ã¦
Goã«ã§ãã¦ãPHPã«ã§ããªãã¯ãã¯ãªãï¼ã¨ããããã§ãã£ã¦ãã¾ãã¾ãããã¾ããããã«ã¡ãã»ã¼ã¸ãã¥ã¼ã¨ã¡ãã»ã¼ã¸ã¹ãããã足ããã ããªãã§ããã <?php function sub($i, $ch) { for (;;) { $a = <- [$ch]; printf("%d:", $i); var_dump($a); } } $ch = thread_message_queue_create(); for ($i = 0; $i < 10; $i++) { thread_create('sub', $i, $ch); } $i = 0; for (;;) { [$ch] <- $i++; usleep(50000); } ?> è¦ã¦åããããã«ã [$ch] <- $i++;ãããªæãã«ã¡ãã»ã¼ã¸ã®éä¿¡ãã $msg = <- [$ch];ãããªæãã«ã¡ãã»ã¼ã¸ã®åä¿¡ãæ¸ããã¨ãã§ã
å æ¥ã®ã¨ã³ããªã¼ã§ãå°ã触ããããPHPã®æ大ã®åé¡ç¹ã¯ããããæã¤ãä¸è¦ãã®è¨èªæ§é ãããããããã°ã©ãã³ã°è¨èªã®å½¢ãã¨ããªãããããã°ã©ãã³ã°è¨èªã®æã大åãªã¨ãããå¤ãã¦ãããããããã°ã©ãã³ã°è¨èªãã§ãããç¹ã«ãããWebã¢ããªã±ã¼ã·ã§ã³ã®éçºã§æ³¨æãã¹ãé¨åã¨ã¯ä½ããæ ¹åºã®é¨åã§ã¡ããã¨ç解ããã«PHPã¢ããªã±ã¼ã·ã§ã³ãä½ãã¨ãå¾ã ã²ã©ãç®ã«ä¼ãã®ã§æ³¨æãå¿ è¦ã§ããã ãã®æå³ã§ã¯ãPHPã§ããã°ã©ãã³ã°è¨èªãå¦ã¶ããªã©ãã£ã¦ã®ä»ã ãããJavaã§ãPHPã¨åããããªããã°ã©ãã³ã°è¨èªãä½ã£ã¦Webã¢ããªã®éçºãå¹çåãããããªã©ã¨ããçºæ³ãã¨ã¦ãå±éºã§ããã PHPã®çºæ³ã®æ ¹åºã«ã¯ããHTMLãã³ãã¬ã¼ãç¨è¨èªã¨ãã¸ãã¯è¨è¿°ç¨è¨èªã®çµ±ä¸ã«ãããéçºã³ã¹ããæ¸ããããã¨ãã CGI æ代ã®å®æãªçºæããããPHPã¯ããã®åè¿ä»£çãªçºæ³ãéãã¦ããã³ãã¬ã¼ãã¨ãã¸ãã¯ãåããã¡ã¤ã«
ããã«ã¡ããããã³ãããã°ã©ãã¼ moriyoshi ã§ãã Python ãçççã«å«ããªäººããããèã話ã¨ãã¦ãã¤ã³ãã³ãã§ãããã¯æ§é ã表ããã£ã¦ã®ãããã¾ããããããä¸èº«ã¯ãã®ã¾ã¾ã§ææ³ã ã Ruby ã£ã½ããããã©ããªããã§ããããããPython ã¯ãã¼ã¯ãã¤ã¶ããã¼ãµãç°¡åã«æ¸ãæããããã®ã§ã試ãã¦ã¿ã¾ãããã ä¾ãã°æ¬¡ã®ãããªããã°ã©ã 㯠class Boo(object): def foo(hoge): try: for i in hoge: with i: if i.fuga: while True: j = i.fuga() if not j: break print j + 2 except HogeException: pass else: pass finally: pass ãããªé¢¨ã«ãªã£ã¦ãã¾ãããã§ããããæãã§ããã class Boo(object)
追è¨: æ¼ãã¦ãã 2 ã¤ã®ãããã追å 追è¨2: git fetch ãæãã¦ããã®ã§è¨æ£ å®ã¯ãããçºè¡¨ã®éã«éãã¦ããã¹ãã ã£ããã ãã©ãPHP ã®ã½ã¼ã¹ã³ã¼ãã® VCS ã subversion ã«ç§»è¡ããããã㧠git ã®ãã©ã¼ãå®ç¾ãã楽ãããããã VCS ã§ç®¡çãã¤ã¤ upstream ã«è¿½å¾ããã¨ãããã¨ãã§ããããã«ãªã£ããããã¯å®ã¯ãããé©å½çãªãã¨ã§ã ãä¸äººã«ä¸ã¤ã®PHPã ãå®ç¾ããã¨ããéæã«ä¸æ©è¿ã¥ããã®ã§ããã ã¨ããããã§ã Autoboxing 㨠new Hoge()->method() ãå¯è½ã«ããããã: http://github.com/moriyoshi/php-src/tree/PHP_5_3-autobox PHP ããã³ãã¬ã¼ãã¨ã³ã¸ã³ã¨ãã¦é²åãããããã: http://github.com/moriyoshi/php-src/
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}