php-memcached-dev/php-memcachedãforkããmsgpack-and-snappyãã©ã³ãã§ãã·ãªã¢ã©ã¤ãºæ¹å¼ã«MessagePackããå§ç¸®æ¹å¼ã«Snappyãé¸ã¹ãããã«ãããâGitHub MessagePackã使ãã«ã¯PECL msgpackãã¤ã³ã¹ãã¼ã«ããä¸ã§ãconfigureã®ãªãã·ã§ã³ã« --enable-memcached-msgpack ããSnappyã使ãã«ã¯Snappyãã¤ã³ã¹ãã¼ã«ããä¸ã§ --with-snappy-dir ãä»ããã°ããã MacPortsã§ã©ã¤ãã©ãªãå ¥ãã¦ããå ´åã®ä¾: phpize ./configure \ --enable-memcached \ --enable-memcached-msgpack \ --with-libmemcached-dir=/opt/local \ --with-snap
2012å¹´04æ21æ¥17:37 ã«ãã´ãªPHP PHP4.4.9ã®ããããé ¼ã¾ãã¦æ¸ãã話 3æä¸æ¬ããããã¤ã人ãããPHP4.4.9ã®ããããæ¸ãã¦ãããªãããã¨ããç¸è«ã¡ã¼ã«ãå±ãããã2é±é以å ã«PHPã®ãããã°ããµãããªããã°ãªããªãã®ã ããCã®ç¥èããªãã®ã§ããã°å ±åè ã§ããiwamotã«ããããæ¸ãã¦ã»ãããã¨ããã®ã ã ãç§ã ã£ã¦Cã®ç¥èã¯ãªãããPHPã®ã³ã¼ãã£ã³ã°ã工夫ããã°ãã°ããµããå¿ è¦ããªãããªã©ã¨è¿ããã®ã ããã©ããã¦ãæ¸ãã¦ããã¨ããã®ã§ãããã¾ãæ¸ãããã©ããä¿è¨¼ã¯ã§ããªãããããããææ¥ã«éã«åããã©ããããããªããã¨æã£ãããã§ããã©ã¤ãããã¨ã«ãããã©ãã®é¦¬ã®éª¨ã ãããããªãç§ã«é ¼ããããã ãããããã¨ãå羽詰ã¾ã£ã¦ããã®ã ããã ãããã¯ãªãã¨ãæ¸ããã®ã§ãå æ¹ã«éãããã¹ããã¦ããã£ãããæå³ã©ããã«åãã¦ããã®ã§ãããã使ããã¨ã«æ±ºãããã¨ã®è¿
Compile Failure Bug Reported by antoine.bajolet@... Thu, 23 Feb 2012 20:15:05 +0000 PHP: 5.3.10, OS: Linux 3.2.6 glibc 2.11.3 Description: ------------ ./configure PHP 5.3.10 fails when attempting to configure apache2handler DSO with apache 2.4.1. ------------------------- ./configure --prefix=/usr/local/ --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/ --with-mysql=/
Android SDK r14以éã§ããã¹ãããã¸ã§ã¯ãããã³ããã¹ã対象ã®æ¬ä½ããã¸ã§ã¯ãã®ä¸¡æ¹ãã©ã¤ãã©ãªããã¸ã§ã¯ãã®ã¯ã©ã¹ãå¼ã³åºãã¦ããå ´åãantã§ã®ãã¹ãå®è¡ã§å®è¡ã失æãã¾ãããã®ã¾ã¾ã§ã¯Jenkinsã§ãã¹ããèªåå®è¡ããã¨ããªã©ã«å°ã£ã¦ãã¾ãã®ã§ãAndroid SDKã®build.xmlãæ¸ãæãã¦å¯¾å¿ãã¾ãã ä¿®æ£æ¸ã¿build.xml(r16ç¨) ⦠Android SDKé ä¸ã®tools/ant/build.xmlãããã§ç½®ãæãã¦ãã ããã 以ä¸ãã®åé¡ã®è©³ç´°ã«ã¤ãã¦ã§ãã åé¡ã®æ¦è¦ åé¡ãèµ·ããã®ã¯ã以ä¸ã®ãããªããã¸ã§ã¯ãæ§æã®å ´åã§ãã ã©ã¤ãã©ãªããã¸ã§ã¯ã æ¬ä½ããã¸ã§ã¯ãï¼ã©ã¤ãã©ãªããã¸ã§ã¯ãã®ã¯ã©ã¹ãå¼ã³åºãï¼ ãã¹ãããã¸ã§ã¯ãï¼ã©ã¤ãã©ãªããã¸ã§ã¯ãã®ã¯ã©ã¹ãå¼ã³åºãï¼ ãã®ãããªããã¸ã§ã¯ãæ§æããã«ããããã¨ããå ´åã«ãåãå¾ãæ段ã¯
moriyoshiããããã³ã§ããªããäºããããã¨ãã¦ããããã§ãããããï¼ ãããã¯trunkã対象ã«ãã¦ããããã ã£ãã®ã§trunkã§ç¢ºèªã ä¹ ã ã«è©¦ãã¦éãã§ã¿ããã¨æã£ã¦ãã«ããã¦ã¿ãããããUndefined symbol ã§éã¶äºãã§ãã¾ããã§ããããåã¯ããéã¶ãªï¼ã£ã¦äºãããã_|ï¿£|â % cd /usr/local/src % gzip -dc ./gist835698-b07dd229da2ebd9fdc03297a1a1dfd2082853d0b.tar.gz | tar xf - % gzip -dc ./php-trunk-201103030130.tar.gz | tar xf - % cd ./php-trunk-201103030130 % patch -p0 < ../gist835698-b07dd229da2ebd9fdc03297a1a1dfd20
ãä¹ ãã¶ãã§ãï¼ç°ä¸ã§ãã ä»åã¯èªåãé¢ãã£ã¦ãã件ã§å°ã調æ»ãè¡ãå¿ è¦ããã£ã件ãç´¹ä»ãã¾ããå ·ä½çã«ã¯ãmod_proxy_balancerã§ã¯ã¼ã«ã¼ããç¹å®ã®ã¬ã¹ãã³ã¹ã³ã¼ãã帰ã£ã¦ããéããã©ã³ãµã¼ããã¯ã¼ã«ã¼ãå¤ãæ¹æ³ã§ãã Apache 2.2ã«ãªãmod_proxy_balancerã使ãã¨ç°¡åã«ãªãã¼ã¹ãããã·ãä»ããè² è·åæ£ï¼åé·åãè¡ããããã«ãªãã¾ãããã¯ã¼ã«ã¼ãµã¼ãã¼ãåæ¢ããï¼å¿çãè¿ã£ã¦ããªãï¼å ´åã«ã¯èªåçã«åæ£å ããå¤ããªã©ä¾¿å©ãªæ©è½ãæãã¦ããã便å©ã«ä½¿ãããªãã¦ããæ¹ãå¤ããã¨ã§ãããã ä¸å¿mod_proxy_balancerã®ç´¹ä»ãè¡ã£ã¦ããã¨ãmod_proxyããã³mod_proxy_httpãå©ç¨ãããªãã¼ã¹ãããã·æ§æã«å¯¾ãããã¼ããã©ã³ãµã¼æ©è½ãæä¾ãããã®ã§ããå®ç¸¾ãè±å¯ã«ãããç°¡åãªæ§æãªãApacheã®è¨å®ãã£ã¬ã¯ãã£ããæå°éã®è¿½
è£è¶³(2010/08/24 15:00)ï¼renameé¢æ°ã«ã¤ãã¦è¨ãã°ãåä¸ãã¡ã¤ã«ã·ã¹ãã ä¸ã§ããã°renameã·ã¹ãã ã³ã¼ã«ãå©ç¨ããã®ã§ãã®åé¡ã¯èµ·ããã¾ãããããã«è足ã§ããããã¡ã¤ã«ã·ã¹ãã ãã¾ããã£ã¦renameé¢æ°ãå©ç¨ããã¨ã³ãã¼ãã¦ããåé¤ãããã¨ã«ãªããã¢ãããã¯æ§ãä¿è¨¼ã§ããªããããé害ã®åå ã«ãªããªããã©ããã®æ¤è¨ãå¿ è¦ã ã¨æãã¾ãã ãAKIBA de: PHPã®rename()é¢æ°ã¯ãã¡ã¤ã«ã·ã¹ãã éã§ä½¿ãã¨ã¡ã¢ãªããã«é£ããããã§ææããã¦ããéããPHPã®copyé¢æ°ããã¡ã¤ã«ã·ã¹ãã ãã¾ããã£ã¦renameé¢æ°ã使ãå ´åã«ãPHPããã¡ã¤ã«ãµã¤ãºã¨åã大ããã®ã¡ã¢ãªãæ¶è²»ãã¦ãã¾ãã¾ããç°å¢ã«ãã£ã¦ã¯åç¾ããªãããããã¾ããããåã®æå ã®MacOSX 10.5+PHP5.3.3ç°å¢ã§ã¯åç¾ãã¾ããã <?php // ãdd if=/dev/urando
ããã«ã¡ããããã³ãããã°ã©ãã¼ 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)
This RFC will discuss at first the motivation for Traits describing the rationals and presenting a short real world use case. The main part will describe the concept of Traits in detail using the syntax for Traits implemented in a patch which is part of this proposal. In the end, the URL of the patch and additional resources about Traits are given. This RFC is outdated and replaced by RFC: Horizon
C++ ã® const ã«ã¯ã2ã¤ã®æå³ãããã¾ãã å®æ°ã¨ããæå³ã§ã® const ã¨ã ã¡ã½ãããå¼ãã§ããªãã¸ã§ã¯ãã®ç¶æ ãå¤ç°ãã¾ãããã¨ããconstã§ãã åè ã¯ããããªæãã®æ¸ãæãä¸å¯ã«ä½¿ãã¾ãã const int a = 10; printf("%d\r\n" , a ) ; //èªã¿è¾¼ã¿ã¯OK printf好ã //æ¸ãè¾¼ã¿ã¯ä¸å¯ const ãªã®ã§æ¸ãæããããªãã a = 20; å¾è ã®ã¡ã½ãããèªãã§ããªãã¸ã§ã¯ãã®ç¶æ ãå¤ç°ãã¾ããããªconstã¯ãããªé¢¨ã«ã¡ã½ããã®å¾ãã«ã¤ãã¾ãã class myClass { private: int a; public: // âãã void abc() const { //ãã®ä¸ã§ã¯ããªãã¸ã§ã¯ãã¡ã³ãå¤æ°ã¸ã®ä»£å ¥ãç¦æ¢ã«ãªãã¾ã. printf("%d\r\n" , this->a ) ; //èªã¿è¾¼ã¿ã¯OK /
æ¥å¹´ãä½ãããï¼ãµãã®ã¨ãæçãæºå«ããã2024å¹´æ¥ã®è¨é² æ¥ã¯èªçã楽ããå£ç¯ 1å¹´ã®ä¸ã§æãèªçã楽ããå£ç¯ã¯æ¥ã ã¨æããã¹ã¼ãã¼ã®æ£ã«ãããããªè²åãã®éèã並ã¶ã¨èªç¶ã¨ããããå¼¾ãã ä¸ã§ãã¨ãããã®ã¯å±±èã ãæ©ãã¨2æä¸æ¬ãããã並ã³å§ããããã¯ãã¿ã©ã®è½ããµãã®ã¨ãã¨ç¶ããæ¡ã®é ã«ã¯ããããã¦ãããâ¦
PHPã®ãããã°ã®ãä¾ã«ã¯ Xdebug ãå®çªã§ãã Xdebug ãå°å ¥ããã ãã§ã var_dump ã¯HTMLã§ãã¤ã©ã¤ããããä¾å¤ãã¨ã©ã¼ãçºçããã¨ãã¯è¦ããã彩ãããããã¯ãã¬ã¼ã¹ã表示ããã¾ããã¾ããé©åãªè¨å®ã¨ eclipse (vimã§ãå¯è½ããã)ãããã°ãã½ã¼ã¹ã¬ãã«ã®ãªã¢ã¼ããããã°ãå¯è½ã«ãªãã¾ããããã«ã¯ããããã¡ã¤ãªã³ã°ãã§ããã®ã§ãããã«ããã¯ã®æ¤åºã«ãä¸å½¹è²·ãã¾ãã ä¸åº¦ä½¿ãã¨ãããç¡ãã«éçºãããªã©èããããªãã©ã¤ãã©ãªã§ãã ãã㪠Xdebug ã使ã£ã¦ããæã«ããã°ãããç¾è±¡ã«ééãã¾ããã xdebug ã®è¨å®ã«ã xdebug.show_local_vars ã¨ããè¨å®ãããã¾ãã ããã©ã«ãã§ã¯ 0 ã«ãªã£ã¦ããã®ã§ãããããã 0 以å¤ã®å¤ã«ãã¦ããã¨ãããã¯ãã¬ã¼ã¹ã表示ãããã¨ãã«ããã¼ã«ã«å¤æ°ã®å¤ãåºåãã¦ãããããã«ãªãã¾ãã ã
大å£ããã®ã¤ã¶ããã§ç¥ã£ãã®ã§ãããæ£å¼ã«ãµãã¼ãçµäºãã¦ããã¨ã¯ããå®å ¨ã«æ ¹çµ¶ããã¦ããã¨ã¯æããªãã®ã§ããããä½ã£ã¦ã¿ã¾ããã #include "zend_ini.h" ã追å ããã reference error undefined symbol ã解æ¶ãããã®ã¯æå³ä¸æã ã£ããã©ãããçæããã Makefile ãè ã£ã¦ãï¼ display_errorsãOnã«ãã¦ããç°å¢ã ã¨åæã«display_startup_errorsãOnã«ããªãã¨è¦åãåºãªãã®ã§æ³¨æãã¦ãã ãããããã¢ãã«ããã£ãã_|ï¿£|â diff -urN php-4.4.9,orig/main/main.c php-4.4.9/main/main.c --- php-4.4.9,orig/main/main.c 2007-12-31 16:22:54.000000000 +0900 +++ php-4.4.
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];ãããªæãã«ã¡ãã»ã¼ã¸ã®åä¿¡ãæ¸ããã¨ãã§ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}