¥È¥Ã¥× «Á°¤ÎÆüµ­(2006-12-04) ºÇ¿· ¼¡¤ÎÆüµ­(2006-12-06)» ÊÔ½¸

¤Ï¤¸¤á¤Æ¤Î¤Ë¤­

¤³¤³¤Î°ÌÃÖÉÕ¤±

2004|11|
2005|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|09|10|11|12|
2024|01|02|03|04|05|06|07|08|09|10|11|

ToDo:


2006-12-05

_ ¤«¤Ö¤Ã¤Æ¤ë¤È¤«¥Á¥§¥Ã¥¯¤Ç¤­¤Æ¤Þ¤»¤ó¤¬¡Ä

¤È¤ê¤¢¤¨¤º assert ½Ð¤ë¤Ê¤é¥Ð¥°¤È¤¤¤¦Êý¿Ë¤Ê¤é¡£

i@u ~/test> cat tuple_spec.d
template hoge_(T) {}
template hoge(T...){
    alias hoge_!(T) hoge;
}

void f() {}

alias hoge!(f) a;
i@u ~/test> dmd -c tuple_spec.d
dmd: template.c:2622: void TemplateInstance::semanticTiargs(Scope*): Assertion `global.errors' failed.
zsh: abort (core dumped)  dmd -c tuple_spec.d
i@u ~/test> cat func_tmpl.d
template T(X...) {}
void f(){}
alias T!(&f) a;
i@u ~/test> dmd -c func_tmpl.d
global.errors = 0, gag = 0
0x8150cc8 symoff type=void(*)()
dmd: expression.c:774: virtual void Expression::toMangleBuffer(OutBuffer*): Assertion `0' failed.
zsh: abort (core dumped)  dmd -c func_tmpl.d

¤É¤Ã¤Á¤â WINE ¤Ç¤âºÆ¸½

(00:14)

_ PHP

http://d.hatena.ne.jp/w_o/20061204#p5

¤Ê¤ó¤«°ì½Ö PHP ¤ÎÆ°ºî¤¬¼«Á³¤Ë¸«¤¨¤¿¤ó¤À¤±¤É¡£

Io> A := Object clone do ( a := 1; f := method( write(a) ) )
==>  A_0x8d09508:
  a                = 1
  f                = method(...)
  type             = "A"
Io> B := Object clone do ( a := 2; f := method( A f ) )
==>  B_0x8d78570:
  a                = 2
  f                = method(...)
  type             = "B"

Io> B f
1==> nil

¤Þ¤¡¡£¤½¤ì¤Ï¤½¤¦¤«¡Ä PHP ¤Ï¸åÉÕ¤±¤Ç OO Æþ¤ì¤¿¤ó¤À¤è¤Ê¡£ ¤½¤ì¤À¤È¤½¤¦¤Ê¤ë¤«¤Ê¤¡¤È¤¤¤¦´¶¤Ï¤¢¤ë¡£

¤³¤ì¤¢¤È¤ÇÆɤࡣ

http://ll.jus.or.jp/lls2003/document/p2.log

(03:58)

_ ¤½¤Î pragma

http://d.hatena.ne.jp/kurimura/20061204

ÃΤé¤ó¤«¤Ã¤¿¤«Ëº¤ì¤Æ¤¿¡ª

(04:11)

_ ¤¤¤ä¡Ä¡ª

ÀÛ¼Ô¤Ë¤Ï print+ ¤Î + ¤¬Èó¾ï¤Ë°Å¹æ¤Ç¤´¤¶¤Ã¤¿¤Î¤Ç¤¹¡ª ¤Ê¤ó¤« print~~ ¤È¤«¤â¸«¤¿¤³¤È¤¢¤Ã¤¿¤ó¤Ç¤¹¤±¤É¤Í¡£

http://www.typemiss.net/blog/kounoike/20061204-116

¤È¤¤¤¦¤«Á´ÂΤ«¤éɺ¤¦¤¢¤ä¤·¤²¤Ê¥ª¡¼¥é¤Ç¤·¤ç¤¦¤«¡£ ¤ª¤ª¤Ê¤ó¤« Perl Golf ´·¤ì¤Æ¤ª¤é¤ì¤ë´¶¤¸¤À¤Ê¤¡¤È¤¤¤¦¥ª¡¼¥é¡£

(04:51)

_ ²òÀÏŪ¤Ë¤â²ò¤±¤ë¤À¤í¤¦¤±¤É

http://arton.no-ip.info/diary/20061205.html#p01


T=1000
expect=0.0
done_prob = 0.0

for i in 3..T
  prob = (1.0 - done_prob - 1.0/(3.0**(i-2))) / 3
  done_prob += prob
  expect += prob * i
end

p expect

¤¨¡¼¤È¸Ä¿ô°ìÈ̲½¤·¤¿¾ì¹ç¤Ï¡Ä º£Åٹͤ¨¤ë¤ë¤ë

(05:15)

_ K

06:44 <******c> we are the knights who say 'D!'
06:44 <******c> D!
06:45 <****y> D!
06:45 <****s> D! D! D!
06:45 <******c> D! D!
06:45 <*****]> D! D! D! D! D! D! D! D! D! D! D! D! D! D! D! D! D! D! D! D! D!

(06:47)

_ tho

¢£tho : ¡Úȯ²»¡Û©æ©Êu¡¢¡Ú¥ì¥Ù¥ë¡Û9
 ¡ÚÉû¡¦ÀÜ¡Û=though

¤Þ¤¡¤½¤¦¤À¤í¤¦¤Ê¤È»×¤Ã¤Æ¤¿¤±¤ÉÄ´¤Ù¤Æ¤Ê¤«¤Ã¤¿¤Î¤Ç°ì±þ³Îǧ¡£

(06:48)

_ ¤¢¡¼¤½¤ì¤À¤È

l: __asm__("pop %eax"); ¤Ê¤ó¤«¤ÈƱ¤¸¤³¤È¤Ç¤¹¤è¤Í¡£

http://d.hatena.ne.jp/giveup/20061205#1165270467

¤Ê¤ó¤È¤¤¤¦¤«¡¢°ì²óµ¢¤ë¤À¤±¤Î¥¹¥¿¥Ã¥¯¤ÎÉý¤Î ÅÔ¹ç¤ò¤¢¤ï¤»¤¿¤À¤±¤Ç¡¢ ¤â¤¦°ì¸Ä¥¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥àºî¤é¤ó¤È 2²ó ret ¤Ï¤Ç¤­¤Ê¤¤¤È¤¤¤¦¤«¡Ä

l: ¤Î¤È¤³¤í¤Ç main ¤ÎƬÁêÅö¤Î ¥¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥àºî¤ë½èÍý¤ò¤·¤Æ¤Ê¤¤¤Î¤¬ÌäÂê¤Ê¤Î¤Ç¡£ °ìÈÖ´Êñ¤Ê¤Î¤Ï main ¤ÈƱ¤¸½èÍý¤ò ¼«Ê¬¤Ç¥¤¥ó¥é¥¤¥ó¥¢¥»¥ó¥Ö¥é¤ÇËä¤á¤Æ¤ä¤ë¤³¤È¤Ê¤ó¤Ç¤¹¤¬¡¢

i@u ~/test> cat hello_again.c
#include <stdio.h>
#include <stdlib.h>
main(int argc, char **argv) {
    ((void (*)(void))&&l)();
    printf("world!\n");
    if (argc < 99) return 0;
l:
    __asm__("lea    0x4(%esp),%ecx;\n"
            "push   %ebp;\n"
            "mov    %esp,%ebp;\n"
            "push   %ebx;\n"
            "push   %ecx;\n"
            "sub    $0x10,%esp;\n");
    printf("Hello ");
    return 0;
}
i@u ~/test> gcc hello_again.c -g
i@u ~/test> ./a.out
Hello world!

¤³¤ì¤À¤ÈÌÀ¤é¤«¤Ë¾®ºÙ¹©¤¬¸«¤¨¤ë¤Î¤ÇÌÌÇò¤¯¤Ê¤¤¤· °Ü¿¢À­¤â̵¤¤¤·¡Ä¤È¤¤¤¦¤è¤¦¤Ê¡£

¤Ç¡¢ l ¤Î³ºÅö°ÌÃÖ¤ò memcpy ¤Ç main ¤«¤é¥³¥Ô¡¼¤·¤Æ½¦¤Ã¤Æ¤¯¤ì¤Ð¡¢ ·ë¹½ÌÌÇò¤¤¤«¤Ê¤¡¤È»×¤Ã¤¿¤Î¤Ç¤·¤¿¡£

Ëͤϥ¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥à¤¬¸«¤¨¤Ê¤¤»Ò¤Ê¤Î¤Ç ¤³¤¦¤¤¤¦Í·¤Ó¤Ï¶ì¼ê¤Çº¤¤ë

(07:54)

_ italics

http://docs.sun.com/app/docs/doc/802-1930-04/6i5u966q3?l=ja&a=view

ZH ¤¬ enter_italics_mode ¤Ç ZR ¤¬ exit_italics_mode ¡£ ¤ó¤Ç¤â¤Ã¤Æº£»þ¤ÎüËö¤â¤¢¤ó¤Þ¤ê italics ¤ÏÂбþ¤·¤Æ¤Ê¤¤´¶¤¸¡¢¤Ê¤Î¤«¤Ê¤¡¡£

(09:03)

_ xcompmgr

¤¢¤Ã¤µ¤ê apt ¤ÇÆþ¤Ã¤¿¤Î¤Ç¾¯¤·Í·¤Ö¡£ sevilwm ¤ò¤Á¤ç¤Ã¤È¤¤¤¸¤Ã¤Æ¡¢

KEY(XK_o, ev_exec_command, "transset-df -p -i %d 0.3")
KEY(XK_o|SHIFT, ev_exec_command, "transset-df -p -i %d 1.0")

¤ß¤¿¤¤¤Ë %d ¤ò»ØÄꤹ¤ë¤È Window ID ¤¬ÅϤë¤è¤¦¤Ë¤·¤¿¤È¤³¤í¡¢ Ctrl+Alt+o ¤ÇÆ©²á¡¢ Ctrl+Alt+O ¤ÇÆ©²á²ò½ü¡¢¤È¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£

¸å¤ÏÇØ·Ê¤Ë IRC ¤Î¥í¥°¤Ç¤âή¤·¤Æ¤ª¤±¤Ð¥Ï¥Ô¡¼¤Êµ¤¤¬¤¹¤ë¡£ µ¤¤Î¤»¤¤¤«¤â¤·¤é¤ó¤¬¡£

¤¿¤ÀÆäËÆ©²á¤ò¥ª¥ó¤Ë¤·¤Æ¤ª¤¯¤È¥à¥Ã¥Á¥ã½Å¤¤¤Í¡£ ¤Þ¤¡°ì½ÖÆ©¤±¤µ¤»¤Æ΢¤ò¸«¤ë¡¢¤Ã¤ÆÍÑÅÓ¤ò¹Í¤¨¤Æ¤ë¤Î¤ÇÎɤ·¡£

(09:44)

_ PHP ¤Ï¤¸¤á¤Þ¤·¤¿

3rd   shinh             174  Php      9,827 (v21)

e-

(10:58)

_ PHP¥Ö¥í¥°

¤è¤¯¤¢¤ë¤³¤ó¤Ê¥³¡¼¥É¡£

i@un ~/test> cat stupid1.php
<?
for($i=0;++$i<10;)echo$i;
echo"\n";
i@un ~/test> php stupid1.php
123456789

for ¤ÎºÇ¸å¤Ë¤Ä¤±¤ë¤È¡¢

i@un ~/test> cat stupid1.php
<?
for($i=0;++$i<10;echo$i);
echo"\n";
i@un ~/test> php stupid1.php
PHP Parse error:  syntax error, unexpected T_ECHO, expecting ')' in /home/i/test/stupid1.php on line 2

¤¨¡¼¡£

print ¤Ê¤é

i@un ~/test> cat stupid1.php <? for($i=0;++$i<10;print$i); echo"\n"; i@un ~/test> php stupid1.php 123456789

ÌäÂê¤Ê¤¤¤ó¤Ç¤¹¡£¤¨¡¼¡£

(14:24)

_ ¤Ç¤â

Java ¤ÏµñÈݤ¹¤ë¢ö

¥À¥á¤¸¤ã¤Ê¤¤¡ª

(16:06)

_ ¤½¤ó¤Ê¤³¤È¤è¤ê

º£¸å¤Î D ¤Ë¤Ï¥Í¥¤¥Æ¥£¥Ö¸À¸ì¤«¤Ä ¤Ê¤ó¤Æ¤¤¤¦¤ó¤À¤¢¤ì¡¢ÀÅŪ¤Ë´Ø¿ô¹´Â«¡©¤¹¤ë¸À¸ì¤Ë¤ª¤±¤ë ¥é¥ó¥¿¥¤¥à¾ðÊó¤Î¤³¤ì¤«¤é¡¢ ¤ß¤¿¤¤¤Ê¤Î¤ò¸«¤»¤Æ¤â¤é¤¤¤¿¤¤¤Î¤Ç¤¹¡£

¤¼¤Ò¥é¥¤¥Ö¥é¥ê¤Ç·Ñ³½ñ¤±¤ë¸À¸ì¤È¤«¤Ë¤Ê¤Ã¤ÆÍߤ·¤¤¤â¤Î¤Ç¤¹¡£

(16:24)

_ ¤Ê¤ë¤Û¤É¤Ã

ºÇ¶á¥Í¥¿¥¹¥¯¥ê¥×¥È¸À¸ìºî¤í¤¦¤È»×¤Ã¤Æ¤¿¤«¤é LISP ¤«¤Ö¤ì¤·¤Æ¤¿¤Î¤«¡ª

¤¤¤ä LISP ¥»¥ß¥Ê¡Á¤Ç¤Þ¤µ¤Ë¤½¤ó¤ÊÏäòʹ¤¤¤¿¤«¤é¤Êµ¤¤â¤¹¤ë¤±¤É

(18:02)

_ ¤Ê¤ó¤«

¤Ï¤Æ¤Ê¤Ç¥³¥á¥ó¥È¤·¤¿¤é²½¤±¤¿¡£ EUC ¤Î¥µ¥¤¥È¤Ë w3m ¤Ç²½¤±¤ë¤È¤Ï¤Ê¤Ë¤´¤È

(19:08)

ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´2·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]
_ ¤³¡¼¤Î¤¤¤± (2014-05-24 02:58)

¥ª¡¼¥é½Ð¤Æ¤Þ¤¹¤«¡£¤½¤ì¤ÏÎɤ«¤Ã¤¿¤Ç¤¹¡£°ÕÃϤǤҤͤê½Ð¤·¤¿¤Î¤Ç¡£
php¤Îecho¤Ã¤Æ³Î¤«¡Öʸ¡×°·¤¤¤¸¤ã¤Ê¤«¤Ã¤¿¤Ç¤·¤¿¤Ã¤±¡©

_ shinh (2014-05-24 02:58)

»ä¤â Perl ¤Ç¥ª¡¼¥é½Ð¤»¤ë¤è¤¦¤Ë¤Ê¤ê¤¿¤¤¤È»×¤¤¤Þ¤¹¡£
php ¤ÎÏäϤ¨¤¨¡¢Ê¸¤Ê¤ó¤À¤È»×¤¤¤Þ¤¹¡£ echo(echo("A")) ¤È¤«¤â¤Ç¤­¤Ê¤¤¤ó¤À¤Ê¤¡¤È¤·¤ß¤¸¤ß¡£

¤ªÌ¾Á°:
E-mail:
¥³¥á¥ó¥È:
¿ÍÀ¸¡¢±§Ãè¡¢¤¹¤Ù¤Æ¤ÎÅú¤¨
ËÜÆü¤Î¥ê¥ó¥¯¸µ

Á° 2006ǯ
12·î
¼¡
Æü ·î ²Ð ¿å ÌÚ ¶â ÅÚ
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
1.Kim (2021-04-19 15:39) 2.shinh(2014-05-24 02:58) 3.rui(2014-05-24 02:58)
search / home / index

Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ­¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£

shinichiro.hamaji _at_ gmail.com / shinichiro.h