threads.xsã§ä½¿ããã¦ããã¤ã³ã¿ããªã¿ã¹ã¬ããã®æ§é ã«ã¤ãã¦ã¾ã¨ãããã®ããããï¼æåã«Perlã®ithreadsã®æ¦è¦ã«ã¤ãã¦èª¬æãã¦ããï¼ç®¡çæ§é ï¼æä¾ãããã¡ã½ããï¼ãã¸ãã¯ã«ã¤ãã¦èª¬æãã¦ããï¼ 1. Perlã®ã¹ã¬ããã®æ¦è¦ Perlã®ã¹ã¬ããã¯ã¤ã³ã¿ããªã¿ã¹ã¬ãã(ithreads)ã¨å¼ã°ããï¼ã¹ã¬ããã®ã¢ãã«ã¯ãã¤ãã£ãã¹ã¬ããã¢ãã«ã§ããï¼1ã¤ã®ã¤ã³ã¿ããªã¿ã¹ã¬ããã¯ï¼1ã¤ã®ãã¤ãã£ãã¹ã¬ããä¸ã§å®è¡ãããï¼1ã¤ã³ã¿ããªã¿ã¹ã¬ããã®è¦ªã¹ã¬ããããæå®ããããµãã«ã¼ãã³ã¯ï¼ã¤ã³ã¿ããªã¿ã¹ã¬ããä¸ã«ç¨æãããã¤ã³ã¿ããªã¿ã¤ã³ã¹ã¿ã³ã¹ã§å®è¡ãããï¼ ã¹ã¬ããéã§ã®ãã¼ã¿å ±æã¯æ示çã«è¡ãï¼1ã¤ã®ã¤ã³ã¿ããªã¿ã¹ã¬ããããæ°ããªã¹ã¬ãããçæããå ´åï¼è¦ªã¹ã¬ããã®ã¤ã³ã¿ããªã¿ã¤ã³ã¹ã¿ã³ã¹ã®å 容ããã¹ã¦åã¹ã¬ããä¸ã®ã¤ã³ã¿ããªã¿ã¤ã³ã¹ã¿ã³ã¹å ã«ã³ãã¼ãããï¼ãã®ããï¼æ示çã«å ±
Webå±ã®ãã¿å¸³ - Apacheã®ãã°åºåã«è¿½å ãã¦ãããã»ããããï¼ãããããªãï¼è¨å® %D ãªã¯ã¨ã¹ããå¦çããã®ã«ããã£ãæéããã¤ã¯ãç§åä½ ããããã¼ã¸ã ããç°æ§ã«éãæ°ããããã ãã©ï¼ãã¨ãã£ãå ´åã«ä½æã¹ãã¼ãã§ã¯ãªããã®æ£ç¢ºãªå¤ãå¾ããã¨ãã§ãããç´ç²ã«Webã¢ããªçãªå¦çæéã§ãã£ã¦ãããã¯ã¼ã¯çãªé 延æéãªã©ã¯ããããåããªããã©ããªããã%T ãªã¯ã¨ã¹ããæ±ãã®ã«ããã£ãæéãç§åä½ãã¨ããã®ããããã ãããå¦çããã®ã«ããã£ãæéãã¨ãæ±ãã®ã«ããã£ãæéããã©ãéãã®ãããããï¼ç¬ï¼ããããã«ããç§åä½ããã¯ãã¤ã¯ãç§åä½ã®ã»ããããã ããã %T ... ãªã¯ã¨ã¹ããæ±ãã®ã«ããã£ãæéãç§åä½ %D ... ãªã¯ã¨ã¹ããå¦çããã®ã«ããã£ãæéããã¤ã¯ãç§åä½ ã¨ãããã¨ãªã®ã§ã%Tã¨%Dã§ç²¾åº¦ä»¥å¤ã«ä½ãéãã®ãæ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ãã çµè«ã¨ãã¦ããã¥ã¢
apacheã®2.4ç³»ãã Luaã§apacheã®ããã¯ãå¶å¾¡ã§ãã mod_luaã¢ã¸ã¥ã¼ã«ãå ¥ãã¨ãããã¿ãè¦ãããã®ã§ãsvnã®trunkç(2.3.*) ãå¼ã£å¼µã£ã¦è©¦ãã¦ã¿ã¾ããã (å ã mod_wombatã¨ããååã§éçºããã¦ãã¢ã¸ã¥ã¼ã«ã2.4ç³»ããã¯mod_luaã¨ãã¦ãªãªã¼ã¹ãããã£ã¦çµç·¯ã½ããããã¥ã¡ã³ãã¯ãã¡ã) ç¾ç¶ã®mod_luaã§ãµãã¼ããã¦ãApacheã®ããã¯ã¯ä¸è¨ã®éãã«ãªãã¾ãã ap_hook_translate_name ap_hook_map_to_storage ap_hook_header_parser ap_hook_access_checker ap_hook_check_user_id ap_hook_auth_checker ap_hook_type_checker ap_hook_fixups ap_hook_insert_fil
æã¯ããã¥ã¢ã«ã«æ¸ãã¦ãã£ããããªæ°ããããã©ãæè¿ã®ããã¥ã¢ã«ã«ã¯è¦å½ãããªãã®ã§ã¡ã¢ã mysqld ãåæã«ä½¿ç¨å¯è½ãªãã¡ã¤ã«æ°ã¯ open_files_limit ã¨ãããã©ã¡ã¼ã¿ã§æå®ãã¾ãããã ããmysqld ã¯æä½ã§ã table_cache*2+max_connections+10 --- (a) ã¯å¿ è¦ã ã¨èããã®ã§ãopen_files_limit ã (a) ãããå°ãããã°ãé»ã£ã¦ (a) ã®å¤ã¾ã§å¤§ãããã¾ããtable_cache ã2åãã¦ããã®ã¯ãMyISAM ã1ãã¼ãã«ã«ã¤ã2ãã¡ã¤ã«ä½¿ç¨ããããã§ãããã10 ã足ãã¦ããã®ã¯æ¨æºå ¥åºåã¨ã©ã¼åºåã¨ããã°ãã¡ã¤ã«çã®åã§ããããã ã¾ããmax_connections*5 --- (b) ã®æ¹ã (a) ããã大ãããã°ãopen_files_limit 㯠(b) ã«ãªãã¾ãã (a), (b) ã
2009å¹´10æ04æ¥20:18 KVS Ruby åã®TokyoCabinet/TokyoTyrantã使ã£ã¦ã¿ã key-value ã¹ãã¢ã«èå³ããã ããã㤠ã§ããkey-value ã¹ãã¢ã¨ãã¦æåãªãã®ã¨ããã° memcached ãã¨æãã¾ãããä»ã«ã TokyoCabinet ã TokyoTyrant ã¨ãããã®ã注ç®ããã¦ãã¾ãï¼ä¸æè°ãªååã§ããï¼ï¼ãkey-value ã¹ãã¢ã§ãããªããé«éããã¤ããã¼ã¿ãã¡ã¢ãªã§ç¡ããã¡ã¤ã«ã«ä¿åãã¦ããããããµã¼ããè½ã¡ã¦ããã¼ã¿ãæ¶ããªãã¨ãã å®éã« mixi ã®æçµãã°ã¤ã³æéã®ä¿æãªã©ã«ä½¿ããã¦ããããã§ãã memcached ãã»ãã·ã§ã³ã®ä¿æãªã©ã«ä½¿ã£ã¦ããå ´åãmemcached ã®ãµã¼ãããã¦ã³ãã¦ãã¾ã£ããããã¼ã¿ã¯å ¨ã¦æ¶ãã¦ãã¾ãã¾ãããã®çµæ RDBMS ã«ã¢ã¯ã»ã¹ãéä¸ããããã©ã¼ãã³ã¹ãå¤§å¹ ã«æªåã
2009å¹´10æ02æ¥ ãã¿ã³ã¬ï¼èªä½ãµã¼ãæ代 å»ã9æ25æ¥ã«ç¬¬äºåã©ã¤ããã¢ãã¯ãã«ã«ã»ãããéå¬ãã¾ãããã»ããã¼å 容ã¨è©³ç´°ã¯ãã¡ãã§â 第ãå ã©ã¤ãã㢠ãã¯ãã«ã«ã»ããã¼ã»ãã° ããããã®çºè¡¨ã¯ã¨ã¦ãèå³æ·±ããããã¦é¢ç½ããã®ã ã£ãã®ã§ãããç¹ã«pixivä¸åããã®çºè¡¨ã«ãã£ããã¼ãã³ã³ãã¥ã¼ã¿ã¯å§å·»ã§ããã ãã¶ã¼ãã¼ãããã®ã¾ã¾å¥ãåºãã®ã¾ã¾ã§ã©ãã¯ã«ãã¦ã³ãããã¦ããæ§åã®åçã§ãã pixivããã®ãã·ã³ã«ã¼ã (c) pixiv ã©ãã¯ã¨ãã£ã¦ãã19ã¤ã³ãã®ãµã¼ããã¦ã³ãç¨ã©ãã¯ã§ã¯ãªããæ®éã®æ¥åç¨(ãªãã£ã¹ç¨)ã©ãã¯ãã¤ã¾ããæ£ã§ãããã®ã©ãã¯ã«ãã¶ã¼ãã¼ãããã®ã¾ã¾ä¹ããã¨ãåºç¤è£ã®é ç·é¨åãã·ã§ã¼ãããæãããããããæåãææ¨ã®ä¸ã«è¼ãã¦ããããã§ãããåºç¤ä¸ã®é¨åã®èªéã§ãã¼ããæãã§ãã¾ãã®ã§ãæçµçã«ã¯ããã¢æ¿ãæ·ãäºã«ããããã§ãã pixivã
2009å¹´02æ08æ¥00:52 ã«ãã´ãªLinux xfsdump,xfsrestoreã§XFSã®ãã£ã¹ã¯ã³ãã¼ Linuxã§XFSãã¡ã¤ã«ã·ã¹ãã ã®OSã®ãã£ã¹ã¯ãå¥ã®ãã£ã¹ã¯ã«ã³ãã¼ããå ´åã®ã¡ã¢ã ãã©ã¼ãªã³ã°ãããããªãå ´åã§ããã¯ã¢ããç¨ãã£ã¹ã¯ãä½ãããå ´åãããã£ã¹ã¯ã®å 容ãã¾ããã¨å¥ã®ãã£ã¹ã¯ã«ç§»ãããå ´åãªã©ã«ã 以ä¸ã®ãã°ã¯ SLES10 SP1 ã§è©¦ããæã®ãã®ã§ã1æ¬ç®ã®ãã£ã¹ã¯ã¯ãswap 㨠/ ã®2ãã¼ãã£ã·ã§ã³æ§æã®å ´åã¨ãã¾ãã node01:~ # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 74G 4.6G 69G 7% / udev 501M 124K 501M 1% /dev node01:~ # fdisk ã parted ã§2æ¬ç®ã®ãã£ã¹ã¯ã«ãã¼ãã£ã·ã§ã³ãä½æã ä»
XFSã®å©ç¨æ¹æ³ æå¾ã«ãXFSã使ãæ¹æ³ãç´¹ä»ãããä¾ã§ã¯ãFedora Core 1ç°å¢ã§ã«ã¼ãã«2.6.7ã使ç¨ããã ã¾ããã«ã¼ãã«ãXFSããµãã¼ããã¦ãããã©ããã確èªããããµãã¼ããã¦ããªãå ´åã¯ãã«ã¼ãã«ã®ã³ã³ãã£ã°ã¬ã¼ã·ã§ã³æã«ãXFS filesystem supportããæå¹ã«ãã¦ãã«ã¼ãã«ã®åæ§ç¯ãè¡ãã ã¾ããXFSã使ç¨ããã«ã¯ã3ã¤ã®ã·ã¹ãã ã¦ã¼ãã£ãªãã£ãä¸è¨ãã¼ã¸ã§ã³ä»¥éã«ã¢ãããã¼ããã¦ããå¿ è¦ãããã modutils-2.4.0 autoconf-2.13 e2fsprogs-devel-1.18 XFSã³ãã³ããã¼ã«ã®ã¤ã³ã¹ãã¼ã« ã«ã¼ãã«ã®XFSãµãã¼ããæå¹ã«ããããXFSã³ãã³ããã¼ã«ãã¤ã³ã¹ãã¼ã«ãããXFSã³ãã³ããã¼ã«ã«ã¯ã以ä¸ã®ãããªãã®ãããã xfsdump xfsdumpããã±ã¼ã¸ã¯ãxfsdumpãxfsrestoreãXF
é£æãããï¼ Smartyå¨ã§æãåºãããã ãã©ï¼ã¿ããªå·¦å³ã®ããªãã¿ã£ã¦ãªã«ã«ãã¦ããã ããï¼ ç§ã®å ´åï¼æXOOPSãããã£ã¦ãããããããï¼CSSãJavascriptãç´ãè¾¼ãã ã¨ãã«èª¤åä½ãããããã®ãå«ãªãã¨ãããï¼å·¦å³ã®ããªãã¿ã¯ï¼ <{ ... }>ã«ãã¦ãããã§ããï¼æè¿ããã ã¨ãã®ãããçç£æ§ãæªããã¨ãå¤æï¼æ°ã¥ãã®ãããã >}ã¨ãã¿ã¤ãããï¼ãªã«ãã { } ã®ä½ç½®ã¨ > < ã®ä½ç½®ãå¾®å¦ãããï¼ ã¨ãããã¨ã§ï¼ä»åº¦ãã {{ ... }}ã«ãã¦ã¿ãããã¨æãï¼ ã¿ããªã©ããã¦ãã®ããªï¼ãã£ã±ãããã©ã«ãæ´¾ãä¸çªå¤ãæ°ããããã©ï¼ï¼ï¼ ã¡ãªã¿ã«ï¼ããªãã¿ã¯ï¼ <?php //çè²æ ... $smarty->left_delimiter = '<{'; $smarty->right_delimiter = '}>'; ãããªãããã§æå®ã§ãã¾ãï¼(ä¸å¿æ¸ãã¦ãã)
Smarty ã使ã£ãéçºã§ãããã°ãè¡ã 4 ã¤ã®æ¹æ³ 2006-11-29-1: [PHP][Books] PHP ã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ Smarty ã使ã£ã¦éçºããã¨ãã«ï¼å²ãå½ã¦ãå¤æ°ãè¤éã«ãªã£ã¦å°ããã¨ã¯ããã¾ãããï¼ ãã®éï¼ä½ããã®æ¹æ³ã使ã£ã¦å²ãå½ã¦ãå¤æ°ã確èªããã®ã§ããï¼ããã¤ãæ¹æ³ãããã¾ãï¼ 1. 常ã«ãããã®ã³ã°ã³ã³ã½ã¼ã«ã表示ããæ¹æ³ ããããä¸çªæåãªæ¹æ³ã§ããï¼$debugging ã« true ãæå®ãã¦ï¼å¸¸ã«ãããã®ã³ã°ã³ã³ã½ã¼ã«ã表示ããæ¹æ³ã§ãï¼ require_once 'Smarty.class.php'; $smarty = new Smarty; $smarty->debugging = true; ããã§ï¼å¸¸ã«ãããã®ã³ã°ã³ã³ã½ã¼ã«ã表示ããã¾ãï¼ ãããã®ã³ã°ã³ã³ã½ã¼ã«ã¯ï¼window.open() ã使ã£ã JavaScript
PHPã®ãã¼ã¸ã§ã³ã5.3.0ã«ãããDeprecatedã¨ã©ã¼ããã£ã±ãã§ãã Deprecated: Function ereg() is deprecated in /hoge/hoge Deprecated: Function ereg_replace() is deprecated in /hoge/hoge E_DEPRECATED (integer) å®è¡æã®æ³¨æããããæå¹ã«ããã¨ã å°æ¥ã®ãã¼ã¸ã§ã³ã§åä½ããªããªãã³ã¼ãã«ã¤ãã¦ã®è¦åãåãåããã¨ãã§ããã eregããereg_replaceãªããã¯ãã®å 使ããªããªãã®ããã mb_eregã¨ãpregãªããã«å¤æ´ããå¿ è¦ãåºã¦ããã¿ããã ã¨ããããã®å¯¾çã¨ãã¦ã¨ã©ã¼ã¡ãã»ã¼ã¸ãæ¶ãã error_reporting(E_ERROR & ~E_NOTICE & ~E_PARSE);
php+Smartyã§ä»¥ä¸ã®ãããªforãå®ç¾ãããæã®ãã³ãã¬ã¼ãã®æ¸ãæ¹ãã¡ã¢ã ããã¥ã¢ã«è¦ãéãã§ã¯ã§ããªããã®ã¨æãããã¡ãªãã ãã©å®ã¯ã§ããã¨ãã(/Ïï¼¼) #ãã¤ãå¦çããããã¨æããã³ã«ããã£ã¦ãã®ã§ã»ã»ã»ã phpçã§ãããã»ã»ã» for($i=0;$i<10;$i++){ echo "$i<br>"; } Smartyç {section name=cnt loop=10} {$smarty.section.cnt.iteration-1}<br> {/section} //â»-1ããã®ããã¤ã³ã ã¨ã {section name=cnt loop=10} {$smarty.section.cnt.index}<br> {/section} ã¾ã㯠{section name=cnt start=0 loop=10} {$smarty.section.cnt.index
08/12/02 XFS ãã¥ã¼ãã³ã° @2TB/æ åç¨ ãã¥ã¼ãã³ã°ãåæãã¾ã㯠mkfs æã®ãã¥ã¼ãã³ã°ã sudo mkfs -t xfs -l size=128m -i size=512 -f /dev/md0 ã¢ãã±ã¼ã·ã§ã³ã»ãããã¯ãµã¤ãºã®å¤æ´ã¯å¤±æãããUbuntu Server 8.10 x64 ã§ã¯ mount ã§ããªããªã£ãã®ã§ããã¥ã¼ãã³ã°ä¸æ¢ã ã¸ã£ã¼ãã«ã®ãµã¤ãº(-l size=128m)ãå¹æããã£ã½ãã inodeãµã¤ãº ã®å¤æ´(-i size=512)ãå¹æã¯å¾®å¦ãé£çªã®ãã³ããªã³ã°ãå¤å°è¯ããªãï¼ agcount ã¯ããã©ã«ã(32)ãæããã©ã³ã¹ãè¯ãã£ãã®ã§ãå¤æ´ç¡ãã mount ã¯ä»¥ä¸ã®ãããªæãã sudo mount -t xfs -o noatime,nodiratime,osyncisdsync,logbufs=8 /dev/md0 /
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}