2009å¹´07æ09æ¥22:00 ã«ãã´ãªLightweight Languages è¨èª = ææ³ + èªå½ ãã®ã©ã¤ãã©ãªã¼ã«åã決ããã®ã¯ãªã«ãã ããã°ã©ãã³ã°è¨èªã®åã«ãããéççç£åéæ¸ã®æ³åã¨ã©ã¤ãã©ãªã¨ - ããã°ã©ãã³ã°è¨èªãä½ãæ¥è¨ æ¸ç±ããã°ã©ãã³ã°è¨èªãä½ãã«ãæ¸ãã¾ãããã©ãè¨èªã®åã£ã¦ã®ã¯çµå±ã®ã¨ããã»ã¨ãã©ã©ã¤ãã©ãªã®åã§æ±ºã¾ã£ã¦ãã¾ãã¨ãããããã¾ãã ããããææ³ã§ã¯ãªãã®ãã ãä½ãè¨ããã®ããã決ããã®ããèªå½(vocabulary)ã ãã©ãè¨ããã®ããã決ããã®ããææ³(syntax)ã è¨èªã¯ããã®äºã¤ã§åºæ¥ã¦ããã ã¨ãããããã®äºã¤ã«ã¯ãç¸åããè¦æ±ãããã èªå½ã¯ããªãã¹ãå¤ãæ¹ããããå¤ããã°å¤ãã»ã©ãè¨ãããã¨ã¯å¤ããªãããã ã ãããææ³ã¯ããªãã¹ãå°ãªãæ¹ããããå°ãªãæ¹ãè¦ãããã¨ãå°ãªããªãããã ã ãã®çç¾ããè¨èªã¯ã©ã解決ã
妹èªè¨¼ã¨ã¯ 妹èªè¨¼ã¯ãPHPç¨ã®CAPTCHAã¢ã¸ã¥ã¼ã«ã§ããä»ã®CAPTCHAã¢ã¸ã¥ã¼ã«ã¨ã¯éãã é常ã«æ¬æ°ãªCAPTCHAã§ãã妹èªè¨¼ã®ã³ã³ã»ããã¯ã人éç対話ã«ããèªè¨¼ãã§ãã ããã¯ãã¿ã§ã¯ããã¾ããã極ãã¦çé¢ç®ãªBOT対çç¨ã¢ã¸ã¥ã¼ã«ã§ã ããã¯ç¸æã人éãã©ããªã®ããå¤æããç®çã§éçºããã¾ããã ããä¸é¨ãã¿ãæ··ãã£ã¦ãããã¨ãç½ç¶ãã¾ï½ 質åæã¨åçæã«æ¥æ¬èªãå®å ¨ã«ãµãã¼ããã¾ãã 質åæã¯PHP+GD+TTFãã©ã³ãã§ç»ååºåãå®ç¾ãã¦ãã¾ãã ã¾ããé£èªåã®è¨å®ãåå¨ãã¾ããï¼æªå®æã§ãï¼ ã¾ããPHPåç´è ã§ãããªãç°¡åã«è¨ç½®ã§ãã¾ãã 質åæãå«ãã妹ãã¯ããã±ã¼ã¸ã¨ãã¦èªç±ã«å¤æ´å¯è½ã§ãã æ¨æºã§ãã³ãã«ããã¦ãããããã«ããããã±ã¼ã¸ãå ã«ã èªåã®ãªãªã¸ãã«ãã£ã©ã¯ã¿ã¼ã®ããã±ã¼ã¸ãä½ãã®ãããã¨æãã¾ãã ã妹ãã«éãããå§ãããå¼ãã»ã»ã»ã»ã»ã»ã»ã»ã»
<< 2008/03/ 1 1. [Ruby] Ruby 1.9.0-1 snapshot released 2. é«æ¨æµ©å ï¼ èªå® ã®æ¥è¨ - å ¬ééµæå·æ¹å¼ã®èª¤ã解説ã®æ°¾æ¿«ãããããã©ããããã㨠3. [Ruby] Lisa Awards: Biggest Hack for a Language Runtime on Dion Almaer's Blog 2 1. [æä¼] 第ä¸å®æ¯æ¥ 3 1. [è¨èª] CS 11: Python track: python idioms 2. [Ruby] Binary search algorithm - Wikipedia, the free encyclopedia 3. [OSS] Theological Cultural Analysis of the Free Software Movement 4. å°å¯ºä¿¡è¯ï¼æ£ç´ããã¬ãã¯ãããã¡ãã
OpenFLP posted by p4life ã¾ã ã¾ã ãã°ã¨ãè²ã æ®ã£ã¦ãããã¨ã¯æãã¾ããï¼ãªãªã¼ã¹ãã¾ããï¼ OpenFLPhttp://code.google.com/p/openflp/OpenFLP ã¯ï¼Rails ã§ä½ããã¦ãããªã¼ãã³ã½ã¼ã¹ç Fastladderï¼OpenFLï¼ã PHP ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãã CakePHP ã使ã£ã¦ç§»æ¤ãããã®ã§ãï¼Rails ã«ãã£ã¦ä½ããã¦ãããµã¼ãã¼ãµã¤ãããã°ã©ã ã¨ã¯ãã¼ã©ã¼ã Pure PHP ã«ç½®ãæãï¼Ruby/Rails ã¸ã®ä¾åããªããã¾ããï¼ããã«ãã£ã¦ã¬ã³ã¿ã«ãµã¼ãã¼ãªã©ã¸ç°¡åã« Fastladder äºæã® RSS/Atom ãã£ã¼ããªã¼ãã¼ãå°å ¥ãããã¨ãã§ãã¾ãï¼ã©ã¤ã»ã³ã¹ã¯ ãªã¼ãã³ã½ã¼ã¹ç Fastladder ã¨åããï¼MIT ã©ã¤ã»ã³ã¹ã§ãï¼ å¿ è¦ç°å¢ PHP 5.2, Apache, MySQL
â 32 æåã® SHA-1 ããã·ã¥å¤ãè¿ãé¢æ° å æ¥æ¸ããããã«ã session.hash_bits_per_character = 5 ã«è¨å®ããã¨ã SHA-1 ãç¨ããã»ãã·ã§ã³ ID ã 32 æåã§è¡¨ç¾ã§ããã ããã¨åãããã«ãsha1() é¢æ°ã®è¿ãå¤ã 32 æåã®æååã«ãããã¨ãèãã¦ã¿ãã æ®å¿µãªãã¨ã« sha1() é¢æ°ã«ãããã£ããªãã·ã§ã³ã¯åå¨ããªããã æ¤ç´¢ãã¦ã¿ãã¨ãrsky ããã®ä½ã£ãé¢æ°ãè¦ã¤ãã£ãã ããã·ã¥ã« MD5 ã使ã£ã¦ããã¢ããªã±ã¼ã·ã§ã³ããã¼ã¿ãã¼ã¹ã®ãã¼ãã«å®ç¾©çãå¤æ´ããã« SHA-1 ã«ç§»è¡ããããã« 4bit à 40æåã§ãªãã5bit à 32æåã®ããã·ã¥ãè¿ãé¢æ°ãã¤ãã£ã¦ã¿ãã function sha1_32($str) { $hex = sha1($str); $hash = ''; $c = array_ma
ã¤ãã«ãã¨ãªã£ã¦ãã£ã¦ãã¾ã£ããå¾æã¯ããªããã¨ã¯ãªãã ããã 諸åãç§ã¯PHPã好ãã 諸åãç§ã¯PHPã大好ãã PHP/FI2ã好ãã PHP3ã好ãã PHP4ã好ãã PHP5ã好ãã PHP6ã好ãã PEARã好ãã PECLã好ãã Smartyã好ãã PHPããã¥ã¢ã«ã好ãã PHP-CLIã好ãã Windowsã§ãLinux㧠UNIXã§ãBSD㧠Macã§ãããªãã㧠Blogã§ãWiki㧠ãµã¼ãä¸ã§ãã¯ã©ã¤ã¢ã³ãPCä¸ã§ ãã®å°ä¸ã§è¡ãããããã¨ããããPHPããã°ã©ãã³ã°ã大好ãã file_{get|put}_contents()/file()ã§ãã¡ã¤ã«ã®èªã¿æ¸ããä¸ç¬ã§å®è£ ããã®ã好ãã xdebugã§æ¦è£ ããããã©ã³ã®é£ä¸ããããã¡ã¤ãªã³ã°ã§ããã«ããã¯ãæ¤åºããæãªã©å¿ããã©ã PHP4ã§newããçµæã&ã¤ãå¿ãããããªãã¸ã§ã¯ããã³ãã¼ããã¦ãã¾
大å¤ãç¡æ²æ±°ã§ããç´1å¹´åã¶ãã®æ´æ°ã§ãã æ¨æ¥ãããã°ãè¨ç½®ãã¦ãããµã¼ãã§OSã®ã¢ãããã¼ãã«åé¡ãçºçããããããããæ©ã«æ°ãµã¼ãã»æ°OSã«ä¹ãæãããã¨ã«ãã¾ããã ç¾å¨ã®ããã°ããã«ããµã¤ãã®ããããã®ã¾ã¾ã§ã¯æ°ãµã¼ãã®æ§ç¯ã«è¦æ¦ããã¨äºæ³ããããããä»ã®ããã°ã®è¨äºãçµ±åãã¾ããã çµ±åå 容ã¯ä»¥ä¸ã®éãã§ãã ã»C-Production ã»ã»ã» ã¡ã¤ã³ãµã¤ãã®ãããä»ã®ããã°ãå¸åãã¦ç¶ç¶ã ã»âª8thNote⪠ã»ã»ã» ã¡ã¤ã³ãµã¤ãã«çµ±åæ¸ã¿ã ã£ãã®ã§ãåé¤ã ã»ã¢ãã¤ã«é ã»ã»ã» ã¡ã¤ã³ãµã¤ãã«è¨äºãå¼ãç¶ãã並è¡ç¨¼åä¸ã ã»ç¡ç·ã®ããã¥ã¡ã³ã ã»ã»ã» ãã¨ãã¨ééäºå®ã ã£ãã®ã§ããã®ã¾ã¾åé¤ å¤é¨SNSã®ã¢ã«ã¦ã³ãã«ã¤ãã¦ã¯ãã®ã¾ã¾ç¶ç¶ãã¾ãã ä»å¾ã¨ããããããé¡ããã¾ãã
via - ä¹±æ° ã¨ã¯ ä½å¹´ãã¾ãã«randã¨mt_randã®åå¸ãgnuplotã§ãã£ãè¨æ¶ããããã©ãå¿ãã¦ãã®ã§ããä¸åº¦ã 以ä¸ã®ã¹ã¯ãªããã¯ãã¼ã¿ãé©å½ãªå ´æã«çæãã¦ãgnuplotã«STDINããã¹ã¯ãªããã¨ãã¼ã¿ãæ¸ãè¾¼ãã ä¸ãxvã§pngãã¼ã¿ã表示ãããã¨ããã¤ã ã¾ããrandã§çæããæå°ãæ大å¤ã¯0ãã50ã®é ã¡ãªã¿ã«ãproc_openã使ããã¨ã§ãgunplotã®ãããªå¯¾è©±å¼ã®ããã°ã©ã ãå®è¡ã§ãã <?php define('__CDIR__', dirname(__FILE__)); $srand = 'srand'; $rand = 'rand'; //$srand = 'mt_srand'; //$rand = 'mt_rand'; list($usec, $sec) = explode(' ', microtime()); $srand($sec +
PHP5ããä¾å¤å¦çãå°å ¥ãã Fatal error ãè£è¶³ã§ããããã«ãªãã¾ããããPHP4ã§ã¯ Fatal error ãè£è¶³ããæ段ã¯ç¨æããã¦ãã¾ããã ãããã Fatal error ãçºçããªããããªããã°ã©ã ãæ¸ãã¹ããªã®ã§ããå¤é¨ã©ã¤ãã©ãªå´ã®ãã°ãäºåäºæ¸¬ä¸å¯è½ãªå ´åçã¯çºçãã¦ãã¾ãå¯è½æ§ãããã¾ãã éç¨æã«ããã¦ã¯ããã®ãããªå ´åã§ãã¨ã©ã¼åºåãã¦ãã¾ãã®ã¯å¥½ã¾ãããªãã§ãããã ã¾ããPHPã«ã¯æ¨æºã§ set_error_handler ã¨ããé¢æ°ãç¨æããã¦ãã¾ãããããã§ã¯ Fatal error ã¯è£è¶³ã§ãã¾ããã set_error_handler -- ã¦ã¼ã¶å®ç¾©ã®ã¨ã©ã¼ãã³ãã©é¢æ°ãè¨å®ãã ããã§ãFatal error ãè£è¶³ãé©åãªå¦çãåºåããã³ãã®ã³ã°ãè¡ãæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã PHP4ã§ã¯ Fatal error çºçæãHTMLåº
(2012/11/01追è¨) 4å¹´ã»ã©åã®è¨äºãPHP5.3.0alpha3ã®roundé¢æ°ã®å®è£ ãPHP5.2.6ã¨å¤ãã£ã - hnwã®æ¥è¨ãã§ãä¼ãããéããPHP 5.3.0ããå¥ã®å®è£ ãæ¡ç¨ããã¦ãããæ¬ãã¼ã¸ã§ææãã¦ãããããªæåã®PHPã¯æ¢ã«çµ¶æ» å±æ§ç¨®ã§ãã念ã®ããã ãã¦ãããã°ã©ãã³ã°ã®è©±é¡ããã¾ã«ã¯æ¸ãã¦ã¿ã¾ããä»åã¯PHPã®roundé¢æ°ã®æåãå¤ã ï¼ã¨ãã話é¡ã§ãã round()ã¯æµ®åå°æ°ç¹æ°ãåæ¨äºå ¥ããé¢æ°ã§ã大æµã®è¨èªã«åãååã§å®è£ ããã¦ãããã¨æãã¾ããã§ã¯PHPã®roundé¢æ°ã®ä½ãåé¡ãªã®ããã¡ãã£ã¨è©¦ãã¦ã¿ã¾ãããã $ uname -sro Linux 2.6.9-42.0.10.plus.c4smp GNU/Linux $ php --version PHP 5.1.6 (cli) (built: Feb 23 2007 06:56:38)
via.Yahoo!ãPHPã¨ã³ã¸ãã¢ãéãæã«èã質å | IDEA*IDEA ã¨ããããé©å½ã«è¨³ãã¦ã¿ã¾ãããééããããã°ææããé¡ããã¾ã :-) 1.é åusersã«ãjohnãã追å ããªãã®ã¯ã©ããï¼ 1. $users[] = âjohnâ; 2. array_add($users,âjohnâ); 3. array_push($users,âjohnâ); 4. $users ||= âjohnâ;2. sort(), assort(), ksort()ã®éããè¿°ã¹ããã¾ããã©ããã£ãç¶æ³ã§å©ç¨ããããè¿°ã¹ãã 3. 以ä¸ã®ã³ã¼ãã¯ä½ãåºåãããï¼ããã¯ãªããï¼ $num = 10; function multiply(){ $num = $num * 10; } multiply(); echo $num;4. åç §ã¨é常ã®å¤æ°ã®éããè¿°ã¹ããã¾ããã©ã®ããã«åç §æ¸¡ããã
2007å¹´05æ21æ¥04:00 ã«ãã´ãªLightweight Languages ããããPHPã«é¢ãã¦ä¸è¨ãã£ã¨ãã ãããªè¨äºã¾ã§åºã¦ãããã¨ã ãã [ThinkIT] 第1åï¼ä»ã ããããã®ãPHPã®ãããã (1/3) ããã°ã©ã ããããªã¾ãªãæ¹ã«ã注æ: ãã¡ãã®PHPã¨ã¯ã¡ãã£ã¨éãã¾ã:-p finalventã®æ¥è¨ - ããããPHPã«é¢ãã¦ããä¸è¨ãã£ã¨ãã åè« ä½¿ãã¯å¤©å½ãã¤ã³ã¹ãã¼ã«ã¯å°ç PHPãä¸æ¦ã¤ã³ã¹ãã¼ã«ãããããããã使ãã®ã¯ç¢ºãã«ç°¡åã ãæ®éã«HTMLãæ¸ãæè¦ã§ <p>以ä¸ã®ç°å¢å¤æ°ãè¨å®ããã¦ãã¾ã:</p> <pre> <?php while(list($k, $v) = each($_SERVER)){ echo "$k=$v\n"; } ?> </pre> ã¨ãæ¸ãã°ãããããããPHPã§ããããããããã«ã¯ãå®éã«ã¯ãã¾ãã¾ãªã©ã¤ãã©ãª
ã¯ããã« åã¯ã PHP ãªãã¦å¤§ã£å«ããªãã ããï¼ã£ã¦è¨³ãããªãã§ããï¼ï¼ã ãããããè¨èªã ã¨æãããããã°ã©ãã³ã°ã®å ¥ãå£ã¨ãã¦ã¯æé«ãããªãããªã£ã¦æã£ã¦ã¾ãã ãã¾ãã«ãç°å¢ããæ´ã£ã¦ãã°æ¡å¼µåã html ãã php ã«å¤ããã ãã§ãããããã°ã©ãã³ã°ã§ããããï¼ ãã åã«ã¯ãã PHP ãå§ããããªããã£ãä¸ã¤ã®çç±ããããã§ã¤ï¼ï¼ ãã㯠PHP ã«ã¯ã¯ãã¼ã¸ã£ããªãï¼ï¼ ã¹ã¯ãªããè¨èªãªã®ã«ã»ã»ã»ã ã¯ãã¼ã¸ã£ãããã° åã¯è«¸æãæã㦠PHP ãããããã§ãï¼ï¼ ã§ããã§ãã ã¯ãã¼ã¸ã£ã®ãªãã¹ã¯ãªããè¨èªã¯ãã触ããªãä½ã«ãªã£ã¦ãã¾ã£ãã®ã§ãã ãªãã§ã£ã¦ï¼ ã ã£ã¦ã function hoge(e) { ï¼ e.addEventListener('fuga', function() { e.piyo(); }, false); ï¼ } ã¨ãã§ããªãï¼ï¼ ã¯ãã¼ã¸
ãã¾ããããªãæ¥ã«ä»è¾¼ãã©ã ããããä»æ¥ã®ããããã¡ãã¡ã â¦ã ããããæ¥ã¯ä½ãã§åãè¿ããããªããé·ã ã¨å¤æ´ãããã¦æ¬ãèªãã ããåºç¹ããããâ¦æ¥ä¸ã®èªåã®ãã¹ãåãæ»ããå¦ããæå³ã®ãããã¨ãããããªãã®ã§ãã ãã¾ããããªãã£ãæ¥ã®ãããã®æè¿ã®ãªãã³ã¸æ¹æ³ãç¾å³ããã©ããâ¦
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}