¥È¥Ã¥× «Á°10Æüʬ ºÇ¿· ¼¡10Æüʬ» Äɵ­

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

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

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-10

_ ¤á¤ó¤É¤¯¤µ¤«¤Ã¤¿¡Ä

Åꤲ¤Ã¤Ñ¤Ê¤·ÊüÃ֥᥽¥Ã¥É¤ÎÊý¿Ë¤Ç

(01:02)

_ ¤È¤Þ¤é¤Ê¤¤¥³¥ó¥Ñ¥¤¥é

i@u ~/test/d> dmd functional
functional.d(26): Error: 'this' is only allowed in non-static member functions, not f
functional.d(26): Error: 'this' for nested class must be a class type, not int
functional.d(26): Error: 'this' is only allowed in non-static member functions, not f
functional.d(26): Error: 'this' for nested class must be a class type, not int
functional.d(26): Error: 'this' is only allowed in non-static member functions, not f
functional.d(26): Error: 'this' for nested class must be a class type, not int

¤³¤ì¤¬±Êµ×¤Ë³¤¯¡£

(02:59)

_ ¤³¤ì¤«¤Ê¤¡

http://www.skynet.ie/~caolan/publink/winresdump/winresdump/doc/pefile.html

º£ÅÙ³Îǧ¤¹¤ë¡©

(03:49)

_ reverse

¤³¤ìÉáÄÌ¤Ë Perl ¤â¶¯¤½¤¦¤ÊÌäÂê¤Ë¸«¤¨¤ë¡£ p ¤¬¤¢¤ë¤«¤é Ruby Í­Íø¤È¤«¤¤¤¦¤ï¤±¤Ç¤â¤Ê¤µ¤½¤¦¤Ê

(06:25)

_ µ¬Ìó°ú¤¤¤Æ¤ß¤¿

http://d.hatena.ne.jp/odz/20061210

¤Õ¤à¤Õ¤à¡£

·¿Åª¤Ë¤Ï void* ¤Ç¤¢¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤¤Ï¤º¡£ ɸ½à¤Î¥É¥é¥Õ¥È¤Ë¤è¤ë¤È¡¢

-4- The macro NULL is an implementation-defined C++ null pointer constant in
this International Standard (conv.ptr).*

[Footnote: Possible definitions include 0 and 0L, but not (void*)0. --- end
foonote]

¤À¤È¡£¤Ä¤Þ¤ê 64bit ¤Ç¤â NULL »È¤¨¤ÐÌäÂê¤Ïµ¯¤­¤Ê¤¤¤ó¤À¤í¤¦¤Í¡£ ²ÄÊÑĹ°ú¿ô¤Î¤ß NULL »È¤Ã¤Æ¾¤Ï 0 »È¤Ã¤Æ¤ª¤¯¤Î¤¬ÌµÆñ¤Ã¤Æ´¶¤¸¤À¤í¤¦¤«¡£

__null ¤Ï GCC ¤¬Í½Ì󤷤Ƥë¤ß¤¿¤¤¤Ç ¥½¡¼¥¹¤Á¤ç¤Ã¤È¸«¤ë¸Â¤ê¤«¤Ê¤êÆüì¤Ê°·¤¤¤«¤Ê¤¡¡£ ¤Ê¤ó¤» lex.c ¤ËÆþ¤Ã¤Æ¤ë¤·¡£ ¤á¤â¡£ RID_NULL ¤È¤« null_node ¤È¤« null_ptr_cst_p

(18:05)

_ "¿·¤·¤¤"¸À¸ì¤Ã¤Æ¡¢

·ë¶É¤Û¤È¤ó¤É¤Ï»°¤Ä¤ËʬÎà¤Ç¤­¤ë¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£ ¥¢¥«¥Ç¥ß¥Ã¥¯¤È¥Ó¥¸¥Í¥¹¤È¡¢¥³¥ó¥Ñ¥¤¥é²°¤È¡£ ¤Ç¤â¤½¤í¤½¤í¡¢¥¨¥Ç¥£¥¿¼ÂÁõ¤Î¼Â·Ð¸³¤Ë΢ÂǤÁ¤µ¤ì¤¿ ¿·¤·¤¤¸À¸ì¤¬À¸¤Þ¤ì¤ë»þ¤Ê¤ó¤À¤í¤¦¤Í¡£

http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=45298

¤³¤¦¤¤¤¦¤Î¸«¤Æ¤ë¤È¡¢ OCaml ¤Î¿äÏÀ¤·¤¿·¿¤È¤« ¼«Æ°Åª¤Ë½ñ¤­¹þ¤Þ¤ì¤Æ¤Æ¤â¤¤¤¤¤è¤Ê¤¡¤È¤« »×¤Ã¤¿¤ê¤¹¤ë¤ï¤±¤Ç¤¹¤Ê¤¡¡£

¤Ç¤â } (while) ¤Ï¥À¥á¤À¤í¤ª

(20:42)


2006-12-09

_ ¤ª¤ª¤ª

¤µ¤¹¤¬5ʬ¤Ç¤¹¤Ð¤é¤·¤¤Æ¶»¡¤Ç¤¹

http://d.hatena.ne.jp/ytqwerty/20061208#p2

¤¤¤¤¤È¤³¤í¤Îɾ²Á¤âƱ´¶¤¹¤ë´¶¤¸¤Ê¤Î¤Ç¤¹¤¬¡¢ Æä˰­¤¤¤È¤³¤í¤È¤«Ææ¤Ê¤È¤³¤í¤¬¤Þ¤µ¤Ë¤½¤ÎÄ̤ê¤À¤È»×¤¤¤Þ¤·¤Æ¡£

¤Ä¤Þ¤ê inout ¤É¤¦¤¹¤ë¤ó¤À¤í¤¦¤Ê¡¼¤È¤¤¤¦¤Î¤Ï Á´¤¯¤â¤Ã¤Æ¤½¤ÎÄ̤ê¤È¤¤¤¦¤«ºÇ¶á´Ø¿ô·Ï¤Ç Í·¤ó¤Ç¤ë¿Í¡¹¤Ï inout ¹Í¤¨¤Æ¤Í¡¼¤è¤Ê¡£

¤¿¤À instance ¤ÎÊý¤¬¹¥¤ß¤È¤¤¤¦¤Î¤Ï¡ª

¤È¤ê¤¢¤¨¤º¤¤¤â¤¦5ʬ¤ª´ê¤¤¤·¤Þ¤¹¤½¤·¤Æ¤½¤Î¤Þ¤Þ¤º¤ë¤º¤ë¤È¡£

(04:43)

_ ¤¦¡¼¤ó

¤É¤¦¸«¤Æ¤â¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¼ûÍפ¢¤ë¤Ê¡Ä¡ª FFI¤È¤«¥«¥¹¤ß¤¿¤¤¤Ê¼ûÍפÎʪÂκî¤Ã¤Æ¤ë¾ì¹ç¤¸¤ã¤Ê¤¤¤Î¤«¡£

(05:05)

_ ¤È¤ê¤¢¤¨¤º

Linux¤Î¤ä¤í¤¦¤¼

(05:07)

_ libphobos.a

gc.o ¤¬ 2¤ÄÆþ¤Ã¤Æ¤ë¤ï¤±¤Ç¤¹¡£

(05:19)

_ ¤Ä ¡¼ ¤«

phobos ¤Î¥½¡¼¥¹¤Ã¤Æ¤Á¤ã¤ó¤È¥Ó¥ë¥É¤Ç¤­¤ë¤ó¤À¤Í¡£ ¤¹¤²¡¼´Êñ¤Ëºî¤ì¤ë¤Î¤Ç¤¢¤Ã¤¿¡¼

(05:22)

_ ¤³¤¦¡¢¤µ

i@u wrk/backtrace/phobos> touch object.d
i@u wrk/backtrace/phobos> make -f linux.mak libphobos.a
make: `libphobos.a' ¤Ï¹¹¿·ºÑ¤ß¤Ç¤¹

Walter¥¿¥ó¤É¤¦³«È¯¤·¤Æ¤ë¤ó¡Ä ¤È»×¤Ã¤¿¤±¤ÉÈà¤Ï Windows ¤Ç½ñ¤¤¤Æ¤ë¤ó¤À¤í¤¦¤Ê¤¢¡£

¤È»×¤Ã¤¿¤±¤É¡¢¤¦¡¼¤óÊÌ¤Ë Makefile °­¤¯¤Ê¤¤¤¾¡£ ¤¢¡¼

(05:30)

_ bt

¤Ê¤ó¤«¤É¤¦¤Ç¤â¤è¤¯¤Ê¤Ã¤¿¡£

(06:08)

_ ¤½¤¤¤¨¤Ð¤½¤¤¤¦µ¨Àá¤À¤Ê¤¢

¤È»×¤Ã¤Æ HDD Æâõ¤¹¤â¸«¤Ä¤«¤é¤º¡£

http://tinyurl.com/yhfvox

http://maideriapress.web.fc2.com/UoT/UoT03.html

̱ÀĤȤ·¤Æ¡©

¤½¤·¤Æ¿·¤È¤«¤¢¤ë¤é¤·¤¤¡£ Èù̯¡£

ttp://maideriapress.web.fc2.com/UoT/img/newanti.jpg

(07:32)

_ ¤¢¤Ã¤¿

haku_tero.jpg

(07:41)

_ ¥Ç¥³¥ì¡¼¥¿

¤Ê¤ó¤«¤³¤Îµ¡Ç½¤Ï¤¸¤á¤Æ¸«¤¿µ¤¤¬¤¹¤ë¤ó¤À¡Ä ¤È»×¤Ã¤Æ¤ß¤ó¥Ñ¥¤¸«¤¿¤éºÜ¤Ã¤Æ¤Ê¤«¤Ã¤¿¡£ ¾¤Îʸ¾Ï¤âÆɤó¤Ç¤ß¤¿Êý¤¬¤è¤µ¤½¤¦¤À¤Ê¤¡¡£

¤·¤«¤·¥Ç¥³¥ì¡¼¥¿¤âʸˡŪ¤Ë¤Ê¤ó¤«¤­¤â¤¤¤Ê¤¡¡£ ¤¤¤ä¤³¤ì¤Ï¤³¤ì¤Ç¤¤¤¤¤ó¤À¤±¤É¡¢ ÀáÁब̵¤¤¤È¤Ï´¶¤¸¤ë¤È¤¤¤¦¤«¡£ ¤È¤¤¤¦¤ï¤±¤Ç°Ê²¼¤Ë̯¤Ë°ãÏ´¶¤¬¡£ ¸À¤Ã¤Æ¤ë¤³¤È¤Ï¤ï¤«¤ë¤ó¤À¤±¤É¡£

http://tabesugi.net/memo/2004/92.html#120951

(12:49)

_ ¤Õ¤Èµ¤ÉÕ¤¤¤¿

²ÄÊÑĹtemplate°ú¿ô¤Ï½ñ¤±¤ë¤±¤É ²ÄÊÑĹ°ú¿ô¤Ï½ñ¤±¤Ê¤¤¤è¡ª

(13:35)

_ 0805dac0 D D13TypeInfo_B2ii6__initZ

¤³¤Î¥·¥ó¥Ü¥ë¤ò¤É¤¦ÆÀ¤ë¤«¡£¤Ê¤«¤Ê¤«¤à¤º¤«¤·¤¤¤Ê¤¡¡£

Á°È¾Éôʬ¤Ï typeid(TypeTuple!(int, int)); ¤Ç¤¤¤¤¤Ï¤º¡£ ¤ó¤Ç¤³¤ì¤¤¤Ã¤¿¤¤Á´ÂΤʤó¤Ê¤ó¤À¡£

(14:02)

_ typeid(TypeTuple!(int, int))

¤À¤±¤Ç¤¤¤¤¤ß¤¿¤¤¤À¡£

(14:10)

_ ¤Õ¤à¤ï¤«¤Ã¤¿µ¤¤¬¤¹¤ë

(14:15)

_ ¤ó¤Ç¼¡¤ÎÌäÂ꤬¼Â¤ËÆñ¤·¤¤µ¤¤¬¤¹¤ë

typeid(TypeTuple!(int, int)); ¤ò¼Â¹Ô»þ¤Ëºî¤ê¤¿¤¤¡£

(14:18)


2006-12-08

_ ¤­¤ß

¤ä¤ë¤­¤¢¤ë¤Î

Version Size Lang        Uploaded        Status
3rd     144  Ruby less than a minute ago Passed
2nd     98   Ruby 5 minutes ago          Failed
1st     184  Ruby 9 minutes ago          Failed

(13:39)

_ > ÁêÂÐÀ­ÍýÏÀ¤ÏÎÌ»ÒÎϳؤζá»÷¤Ç¤¹¤¬

¤É¤³¤«¤é¤Ä¤Ã¤³¤á¤Ð¡Ä

(15:56)

_ pedantic

¤È¤¤¤¦Ã±¸ì¼«ÂΤ¬ pedantic ¤È¤¤¤¦¤³¤È¤Ï ´û¤Ë¸À¤ï¤ì¤Æ¤½¤¦

(16:11)

_ WGC2

¤È¤¤¤¦¤ï¤±¤Ç Write Great Code Vol.2 ¤òÇã¤Ã¤¿¡£ 2 ¤ÏÇã¤ï¤Ê¤¤¤¾¤È»×¤Ã¤Æ¤¿¤ó¤À¤±¤É¤Ê¡£

(16:11)

_ WiiÍߤ·¤¤¡ª

¤Ï¤ë¤Î¤ÏPS3Ç˲õ±ÇÁü¤È¤«¤Ç¤¤¤¤¤ó¤À¤í¤¦¤«¡£

(16:13)

_ ÆǤµ¤ì¤Æ¤ë

#import<algo.h>
char a[9];main(c){for(cin>>a;next_permutation(a,strchr(a,c||puts(a)))||c--;);}

¤³¤ì¤Ç¤¤¤¤¤ó¤¸¤ã¤Í¡¼¤È»×¤Ã¤¿²¶¤Ï¥´¥ë¥Õ¤ËÆǤµ¤ì¤Æ¤¤¤ë¤È»×¤Ã¤¿¡£

Åú¤¨: c ¤Î·¿¤¬Ìµ¤¤¡ª

(16:51)

_ gogogo

http://www.chikawatanabe.com/blog/2005/08/google.html

¤¹¤Ð¤é¤·¡¼

(18:18)

_ ¤Ü¡¼¤Ê¤¹

(19:58)


2006-12-07

_ ¤Û¤¨

irb(main):008:0> class Range; def to_a; p 'hoge'; end; end
=> nil
irb(main):009:0> p *0..9
"hoge"
TypeError: `to_a' did not return Array
        from (irb):9
        from :0

¤¦¡¼¤ó¡£

irb(main):023:0> p *1
1
=> nil
irb(main):024:0> p [1]
[1]
=> nil

(00:07)

_ ¤Ê¤ë¤Û¤É¡Ä

irb(main):003:0> class Fixnum; def to_a; p "hoge"; end; end
=> nil
irb(main):004:0> p *1
"hoge"
TypeError: `to_a' did not return Array
        from (irb):4

¤Ê¤ó¤È¤Ê¤¯¤·¤«¤ï¤«¤Ã¤Æ¤Ê¤«¤Ã¤¿

(00:09)

_ ¤Ò¤Ã¤«¤±¤â¤ó¤À¤¤

00:29 >i< class C { TypeTuple!(int, int) t; }
00:30 >i< C.sizeof ¤Ï¤¤¤¯¤é¤Ç¤·¤ç¤¦¡ª

(00:33)

_ ¤³¤á¤Ã¤È¤µ¤ó

ή¹Ô¤Ã¤Æ¤ë¤ó¤À¤«¤Ï¤ä¤Ã¤Æ¤Ê¤¤¤ó¤À¤«¡£

¤È¤ê¤¢¤¨¤º¥³¥á¥Ã¥È¤È¸À¤¨¤Ð¥Á¥ã¥Ã¥È¤é¤·¤¤¤Î¤Ç ËͤÎȽÃǤÏÀµ¤·¤«¤Ã¤¿¤é¤·¤¤¡£

(00:55)

_ ¤³¤³¤ÎÊý¤¬

³Î¼Â¤Êµ¤¤¹¤é¤¹¤ë¤Î¤Ï¤Ê¤¼¤À¤í¤¦¡£

¥á¡¼¥ëÅꤲ¤Þ¤·¤¿ > YT ¤µ¤ó wo ¤µ¤ó

(02:11)

_ ¤¦¤°¤¦

¥æ¥Ð¥ó¥È¥¥¡¼

(03:45)

_ ¤¤¤­¤Ê¤ê²¿¤¹¤ó¤Î¤è¡ª¤¢¤ó¤¿¤Ï̱ÀĤ«¡ª

Åܤé¤ì¤¿¡ä¡ã

¡ÖºÇ¶á¤ÏÁ´Á³¥Æ¥ì¥Ó¤â¸«¤Æ¤Ê¤¤¤Ê¤¢¡£º£¤É¤ó¤ÊÈÖÁȤ¬¿Íµ¤¤Ê¤Î¡×

¢ª¶¯¤¯¤·¤«¤ë

¤À¤Ã¤Æ¥×¥Á¥Ö¥ëŪ¤À¤·¡Ä

(04:25)

_ ¤Ä¤¯¤Ã¤Æ¤ß¤ë¤«¤¢

(06:00)

_ Wii vs PS3

http://dokoaa.com/ps3wii.html

(06:10)

_ DCon

http://www.digitalmars.com/d/archives/digitalmars/D/announce/D_Conference_2007_5536.html

June ¤Ê¤éÅÏÊƤ·¤Æ¤ë³ÎΨ¹â¤½¤¦¤Ê¡£

(14:34)

_ PKU

std:: ¤¤¤é¤ó¤Î¤«¡£

(18:07)

_ PKU1713

¤Ò¤µ¤Ó¤µ¤Ëƨ¤²¤ëΩ¾ì¤Ç¤¹¡£ ËͤϤ³¤ì¤ÇÂǤÁ»ß¤á¤«¤Ê¤¡¡£

(19:18)

_ count

ʸ»ú½ªÃ¼¼è¤ë¤Î¤Ë¶ìÏ«¤¹¤ë¤ó¤À¤±¤É¡¢ ¤¦¤Þ¤¤¤³¤È¥¹¥¿¥Ã¥¯¤Ë»Ä¤Ã¤Æ¤ëʸ»ú¿ô¤È¤«¤ò ¤Á¤å¤ë¡¼¤È¼è¤Ã¤Æ¤³¤ì¤Ê¤¤¤â¤ó¤«¤Í¤¨

(19:21)

_ newlib

char *
_DEFUN(_gets_r, (ptr, buf),
       struct _reent *ptr _AND
       char *buf)
{
  register int c;
  register char *s = buf;

  while ((c = _getchar_r (ptr)) != '\n')
    if (c == EOF)
      if (s == buf)
        return NULL;
      else
        break;
    else
      *s++ = c;
  *s = 0;
  return buf;
}

#ifndef _REENT_ONLY

char *
_DEFUN(gets, (buf),
       char *buf)
{
  return _gets_r (_REENT, buf);
}

glibc ¤Ï¤Þ¤À¤Ê¤ó¤È¤«¤Ê¤ê¤½¤¦¤À¤Ã¤¿¤±¤É¡¢ newlib ¤Ï¤³¤ê¤ã̵Íý¤À¤Ã¤Æ´¶¤¸¤À¤Ê¤¡¡£ ËÜÅö¤Ë¥ì¥¸¥¹¥¿¤Ë¾è¤Ã¤Æ¤¿¤é¤â¤¦¤É¤¦¤·¤è¤¦¤â¤Ê¤¤¤Ç¤¹¡£

(19:27)

_ Apache ¤Î NameVirtualHost

¤ä¤Ã¤È»È¤¤¤«¤¿¤Ë¹çÅÀ¤¬¤¤¤Ã¤¿¤è¡£

NameVirtualHost ¤Ï°ì²ó¤À¤± * ¤Ç½ñ¤¤¤Æ¡¢ ¸å¤Ï VirtualHost * ¤È ServerName hoge.example.com ¤È¤«¤Ç¡£

http://httpd.apache.org/docs/2.2/ja/vhosts/name-based.html

¤ä¤Ï¤ê¥É¥­¥å¥á¥ó¥È¤Ï¤­¤Á¤ó¤ÈÆɤޤʤ¤¤È¤¤¤±¤Þ¤»¤ó¡£

(21:54)

_ ¥±¡¼¥¿¥¤Íî¤È¤·¤¿

Åż֤ÎÃæ¤ÇÍî¤È¤·¤Æ¤Ê¤«¤Ê¤«½Ð¤Æ¤³¤Ê¤«¤Ã¤¿¤Î¤ÇÉ԰¤Ǥ¢¤Ã¤¿¡£

(23:11)

ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´3·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

_ YT [¥á¡¼¥ë¡õ¤ªÍ¶¤¤¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÖ¿®¤¤¤¿¤·¤Þ¤·¤¿¡£ÌÞÏÀ¤½¤ÎÆɤߤÇÀµ²ò¤Ç¤¹¡£]

_ shinh [ÊÖ¿®¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ º£¸å¤Ï¥á¡¼¥ë¤ÈƱ»þ¤Ë¤³¤³¤Ë¥á¡¼¥ëÅꤲ¤Þ¤¹¤¿&&¥ê¥ó¥¯¤Ï¤Ã¤Æ¥ê¥Õ¥¡¥é¤Çº¯Àפò»Ä¤¹¤Ê¤É¤Î¹©É×..]

_ YT [¤¤¡¢¤¤¤ä¡Ä¡Ä¤½¤³¤Þ¤Ç¤·¤Æ¤¤¤¿¤À¤«¤Ê¤¯¤Æ¤â(Âç´À ¤³¡¢º£²ó¤Ï¥µ¥ó¥À¡¼¥Ð¡¼¥É¤â¥¸¥ã¥ó¥¯¥á¡¼¥ë°·¤¤¤·¤Þ¤»¤ó¤Ç¤·¤¿¤·¤Ã¡£]


2006-12-06

_ D ¸«¤Æ¤ë¤È

¤Ê¤ó¤«¡¢ template ¤Ç ¤¤¤Ã¤¿¤ó̾Á°¶õ´Ö¤ÇÀÚ¤ì¤Æ¤ë¤Î¤¬¡¢ ¤³¤ì¤¬¤Þ¤¿¤Ê¤ó¤«ÉԻ׵ĤÊÍ­ÍÑÀ­¤òȯ´ø¤·¤Æ¤¤¤ë¤è¤¦¤Ê¡£ µ¤¤Î¤»¤¤¤«¤Ê¤¡¡£

writefln!("hoge %s")("hage")
~~~~~~~~~~~~~~~~~~~~
 ¤³¤³¤Þ¤ÇÀÅŪ¡ª¤Ã¤Æ¤¹¤´¤¯¤ï¤«¤ê¤ä¤¹¤¤¤È¤¤¤¦Ïä⤢¤ë¤·¡Ä

¤Þ¤¢¤Í¤à¤¤

(03:44)

_ ¤ê¤ç¤¦¤ê¤Ö¤í¤°

¥Á¥ã¡¼¥Ï¥ó¤òºî¤ê¤Þ¤·¤¿¡£ ¤¿¤Þ¤Í¤®¤â¤Ë¤ó¤Ë¤¯¤â¤Ê¤«¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ ÌýÆþ¤ì¤ÆÊÆÆþ¤ì¤ÆŬÅö¤Ë¤¤¤¸¤Ã¤Æ¤«¤é¡¢ »×¤¤½Ð¤·¤¿¤è¤¦¤Ë¥³¥·¥ç¥¦¤ò¤«¤±¤Æ¡¢ »×¤¤½Ð¤·¤¿¤è¤¦¤ËÂë¤ÎÄޤȡ¢ ¤Ê¤ó¤Ç¤â¤ª¤¤¤·¤¯¤¹¤ëÉԻ׵ĤÊÌý¤Ç¤¢¤ë¤È¤³¤í¤Î ¥´¥ÞÌý¤òÆþ¤ì¤Æ¡¢Å¬Åö¤ËÍñÆþ¤ì¤Æ¡¢ ¥·¥ç¥¦¥æ¤ò½¬¤Ã¤¿Ä̤ê¤Ë¤Á¤ç¤Ã¤È ¾Ç¤¬¤·¤Æ¤«¤é¤¬¡¼¤Èº®¤¼¤¿¤é¤ª¤¤¤·¤¤¥Á¥ã¡¼¥Ï¥ó¤Î¤Ç¤­¤¢¤¬¤ê¡ù

¤ª¤¤¤·¤«¤Ã¤¿¤Ç¤¹¤¬¡¢¥¿¥Þ¥Í¥®¤¢¤Ã¤¿¤éÎɤ«¤Ã¤¿¤Î¤Ë¡£

(04:24)

_ ÌäÂê

D ¤Î pragma msg ¤ò»È¤Ã¤Æ¡¢ 0Byte °Ê¾å¤Î compile time quine ¤òºî¤ë¤³¤È¤Ï¤Ç¤­¤ë¤«¡£

ËͤϤǤ­¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤È»×¤Ã¤¿¡£ ¤È¤¤¤¦¤Î¤Ï pragma msg ¤ÎºÇ¸å¤Ë¡¢¾¡¼ê¤Ë²þ¹ÔÆþ¤ë¤Î¤¬Äˤ¹¤®¤ë¡£ ¤µ¤é¤Ë¡¢ pragma msg ¤Ë¤Ï·×»»·ë²Ì¤òÅϤ»¤Ê¤¤¡£

¤·¤«¤·¡¢¤¤¤ä¡¢¤Ç¤­¤ë¤È¤Ï»×¤¦¤ó¤À¡£

(05:04)

_ ¤¢¡¢¤Ê¤Ë¤³¤ì

·×»»·ë²ÌÅϤ»¤ë¤¸¤ã¤ó

(05:07)

_ ¤Ç¤­¤¿¡¼

(05:26)

_ ¤À¤¤¤Ö

¤ß¤¸¤«¤¯¤Ê¤ë¤Ê¤¡

(06:39)

_ ³ÎΨ¤ÎÌäÂê

¹â¹»¤Î»þ¤Îͧã¤Ë³ÎΨ¤ÎÌäÂ꤬¿¤«¤Ã¤¿¤±¤É ¿ô³Ø¤ÎÌäÂê¤ò½Ð¤·¤Æ¤¯¤ë¿Í¤¬¤¤¤Æ¡¢ ¤½¤Î¿Í¤¬½Ð¤·¤Æ¤­¤¿ÌäÂê¤òÃë´Ö¹Í¤¨¤Æ¤ï¤«¤ó¤Ê¤«¤Ã¤¿¤é¡¢ ÌÀÆü¤Þ¤ÇÂԤäƤ¯¤ì¤½¤·¤¿¤éÅú¤¨¤Ï½Ð¤»¤ë¤È¤«¸À¤Ã¤Æ¡¢ ŬÅö¤Ë¥×¥í¥°¥é¥àÁö¤é¤»¤Æ¤ª¤é¡¼Åú¤¨¤Ï½Ð¤¿¤¼ ²òÀÏŪ¤Ê²óÅú¶µ¤¨¤í¡¢¤È¤«¤ä¤Ã¤Æ¤¿¤Î¤ò»×¤¤½Ð¤·¤¿¡£

Åú¤¨¤¬½Ð¤Æ¤ì¤Ð²òÀÏŪ¤Ê²óÅú¤Ï ¤ï¤«¤ó¤Ê¤¯¤Æ¤â¤È¤ê¤¢¤¨¤ºÎɤ·¤È¤·¤Æ¤¤¤¿ »×¹Í¤¬ÌÌÇò¤¤¤Ê¤¡¤È¤Õ¤È¡£ ¤½¤·¤Æº£¤â¤¢¤Þ¤ê¤½¤Î»ÑÀª¤ÏÊѤï¤Ã¤Æ¤Ê¤¤¤Ê¤¡¡£

¤³¤ì¤À¤«¤é²¶¤Ï

(06:54)

_ hello-

import std.stdio;
class HelloWorld {}
void main() {
    writefln(typeid(HelloWorld));
}

Imaichi

http://d.hatena.ne.jp/nazodane/20061205/1165316504

(07:36)

_ ŬÅö¤Ë¤ä¤Ã¤¿¤Î¤Ë

86.1%¤À¤Ã¤Æ

http://jakemandell.com/tonedeaf/

°Æ³°¤¤¤¤

(07:47)

_ Wine ¥á¥â¥á¥â

http://d.hatena.ne.jp/nazodane/20061018/1161170232

¤³¤ì¤Ï¤¿¤¹¤«¤ë

(08:02)

_ TODO

¤¤¤ä¤½¤ì¤Ï TODO ¤Ç¤Ï¤Ê¤¤¤Î¤À¤¬¡£

  • ¤·¤ã¤·¤å
  • backtrace (¤¿¤Ö¤ó¤ä¤é¤Ê¤¤)
  • FFI in D
  • dll loader
  • sevilwm ¤¢¤½¤Ó / CPU»ÈÍÑΨɽ¼¨ / Æ©²á

http://shinh.skr.jp/m/?date=20061119#p07

  • TODO ¤Î 2007ǯÌäÂê(¤Ä¤Þ¤ê2007ǯ¤ÎͽÄê¤Ï2007ǯ¤Ë¤Ê¤é¤Ì¤ÈÅÐÏ¿¤Ç¤­¤Ì)
  • ¥á¡¼¥ë¢ª¥³¥á¥ó¥È¥Õ¥£¥ë¥¿
  • HyperEstraier¥µ¥Ð¤Ë¥á¡¼¥ë¤ÈIRC¤Î¥í¥°¤ò(º£¤ÏWeb¤À¤±¤ä¤Ã¤¿¤Ã¤±)
  • estsave.el ¤ÎÉü³è
  • /usr/include ¤È¤«¤â¥Ä¥Ã¥³¤àÊýË¡¹Í¤¨¤ë
  • /usr/lib ¸¡º÷¤Ï¡©
  • ¿§¤Ä¤­¥½¡¼¥¹°úÍÑÌäÂê

estutf.cgi ¤Ë @mdate STRD ¤ò¤Ä¤±¤Æ¤ª¤¤¤¿¡£

(08:40)

_ ¤¦¤Ø¤¨¤ä¤ë¤ó¤Ç¤¹¤«

  • undump

(09:06)

_ hello ¤ÎÀ®²Ì

ÌÜ¤Ç core ¤Î¥×¥í¥°¥é¥à¥Ø¥Ã¥À¤¬Æɤá¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¿

(19:32)

_ ¤Ä¤Þ¤ê

000050 00 00 00 00 01 00 00 00 00 10 00 00 00 80 04 08  >................<
000060 00 00 00 00 00 00 00 00 00 10 00 00 05 00 00 00  >................<
000070 00 10 00 00 01 00 00 00 00 10 00 00 00 90 04 08  >................<
000080 00 00 00 00 00 10 00 00 00 10 00 00 06 00 00 00  >................<
000090 00 10 00 00 01 00 00 00 00 20 00 00 00 a0 04 08  >......... ......<
0000a0 00 00 00 00 00 10 02 00 00 10 02 00 06 00 00 00  >................<
0000b0 00 10 00 00 01 00 00 00 00 30 02 00 00 c0 e9 b7  >.........0......<
0000c0 00 00 00 00 00 10 00 00 00 10 00 00 06 00 00 00  >................<
0000d0 00 10 00 00 01 00 00 00 00 40 02 00 00 d0 e9 b7  >.........@......<
0000e0 00 00 00 00 00 d0 12 00 00 d0 12 00 05 00 00 00  >................<

¤ò 32Byte ¤º¤ÄÆɤó¤Ç¤Æ

found 15 program headers
8048000-8048000 0
8049000-804a000 1000
b7e9e000-b7e9f000 1000
b7e9f000-b7e9f000 0
b7fcc000-b7fce000 2000

¤È¤Ê¤ë¤Î¤¬¤ª¤«¤·¤¤¡£ 804a000- ¤¬¾Ã¤¨¤Æ¤ë¡£ ¤Ï¤ì¤Û¤ì¡¼¡© ¤³¤Î¥ë¡¼¥×ÊÌ¤Ë continue ¤â¤Í¤¨¤·¤Ê¤¡¡£

(19:40)

_ ·ëÏÀ

¤è¤¯¤ï¤«¤é¤ó

(19:50)

_ ¤Ç¡¢ C++ vs D

mywritefln!("hello %s")("world") ¤Î·ï¡¢ »×¤¦¤Ë mywritefln!("hello %s") ¤¬ compile time duck typing ¤Ê¤â¤ÎÊÖ¤·¤Æ¤ë¤Î¤¬ C++ ¤È¤Î°ã¤¤¤«¤Ê¤¢¡£ ¤Þ¤¡ C++ ¤Ç¤âŬÅö¤Ë class °ì¤Ä¶´¤á¤Ð¤¤¤¤¤ó¤À¤±¤É¡£ ÍפÏÎ㤨¤Ð D ¤À¤È¡¢

template mywritefln(char[] fmt)(T...) {
  static if (check_puts!(fmt)) alias puts mywritefln;
  else alias mywritefln_!(fmt) mywritefln;
}

¤È¤«¤Ç¤­¤ë¤Ã¤ÆÏäȤ¤¤¦¤«¡£ ¤¢¤ë¼ï°ú¿ô¤ÈÊÖ¤êÃͤ¬ÂÐÅù¤Ê´Ø·¸¤Ë¤Ê¤Ã¤Æ¤ëµ¤¤¬¤¹¤ë

(20:20)

_ hello--

import std.stdio;
class HelloWorld {}
void main() {
    typeid(HelloWorld).print();
}

¤Ê¤ó¤«°ã¤¦¤Ê¤È»×¤Ã¤¿¤ó¤À¡£

http://shinh.skr.jp/m/?date=20061206#p08

(20:48)

_ ¤¢¤¿¤Þ¤À¤ë¤¤¡Ä

(23:33)

_ Êк¹ÃÍ°ÕÌ£NEEEEEEEEEEEEEEEEEEEEEEE

http://www.37vote.net/game/1148654831/

(23:42)

ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´4·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

_ kik [¿ô³Ø²°¤¬¤è¤¯¤ä¤ë¤è¤¦¤Ë¡¢´Ø¿ô¤Î°ú¿ô¤ò F(x,y;a,b)¤ß¤¿¤¤¤Ë¡Ö;¡×¤Ç¶èÀڤ줿¤é¤¤¤¤¤Î¤Ë¤Ê¡¼¡£¡Ö;¡×¤è¤ê¸å¤í¤ÏÀÅ..]

_ shinh [¤è¤¯¹Í¤¨¤ë¤È C++ ¼°¤Î writefln<"hello %s">("world"); ¤ÎÊý¤¬(C++¤Ç¤Ï¤³¤ì¤Ç¤­..]

_ kik [²òÀÏŪ¤Ã¤Æ¤ó¤Ê¤é¤½¤ó¤Ê´¶¤¸¤Î¼°¤Ë¤Ê¤ì¤Ð¤¤¤¤¤«¤Ê¡£ ¤Ç¤â¡¢¤½¤³¤ÎLISP¤Î¼°¤Ã¤Æ¤¢¤Ã¤Æ¤ë¤Î¤«¤Ê¤¢¡© ¡Ön²ó°ú¤¤¤Æ12¼ï..]

_ shinh [¤¦¡¼¤ó¡£¤Ò¤ç¤³¤Ò¤ç¤³Æ¬¤Ò¤Í¤Ã¤Æ¤¿¤ó¤Ç¤¹¤¬¤¦¤Þ¤¯¤¤¤«¤º¡£¤È¤¤¤¦¤«º£Æ¬¤À¤ë¤¤¤Î¤Çº£Åٹͤ¨¤Þ¤¹¤ë¡Ä ¤È¤¤¤¦¤«¸µµ¤¤è¤¯¤Æ¤â¤ï..]


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·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

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

_ shinh [»ä¤â Perl ¤Ç¥ª¡¼¥é½Ð¤»¤ë¤è¤¦¤Ë¤Ê¤ê¤¿¤¤¤È»×¤¤¤Þ¤¹¡£ php ¤ÎÏäϤ¨¤¨¡¢Ê¸¤Ê¤ó¤À¤È»×¤¤¤Þ¤¹¡£ echo(ech..]


2006-12-04

_ ¤Ø¤¨

http://d.hatena.ne.jp/colun/20061203#p1

Windows ¤À¤È¼«¸Ê½ñ¤­´¹¤¨¤¬¥¢¥ì¤È¤«¡£ º£ÅÙ¤ä¤Ã¤Æ¤ß¤è¤¦¡£ ¤½¤ÎÏäÎÇØ·Ê¤Ï shuJIT ¤À¤í¤¦¤±¤É¡¢ JVM ¤Î JIT ¤È¤«¤½¤¤¤¦´Ä¶­¤Ç¤ä¤ë¤ÈÂçÊѤʤΤ«¤Ê¤¡¡£

¤¢¤È NULL ¤¬ C++ ¤Ç¡Ä¤Ï¤Þ¤µ¤Ë¤½¤¦¤À¤Ê¤¡¡£ ¤¢¤ÈÆɤ߹þ¤ß¤µ¤ì¤Æ¤Ê¤¤¤È¤«¤â¤Þ¤µ¤Ë¤½¤¦¤À¤Ê¤¡¡£

(00:02)

_ ¥á¥â

¥á¥â¼è¤ê¤Î¥¢¥É¥ì¥¹¤òÉáÄ̤˽ñ¤¤¤Æ¤Æ¥¢¥Û¤«¤È¤ï¤é¤¿¡£ ¥¹¥Ñ¥àÍ褿¤éÌÌÇò¤¤¤Ê¤¡¡£ ¤Þ¤¡º£¤Î¤¦¤Á¤Ë From À©¸Â¤«¤±¤È¤¯¤«¡£ ¤Æ¤¤¤¦¤«´û¤Ë¤«¤«¤Ã¤Æ¤¿¤Ã¤±¡£

(00:03)

_ kinda

¤è¤¯¸«¤ë¤Ê¤¡¤È»×¤Ã¤ÆÄ´¤Ù¤¿¡£

¢£kinda : ¡Úȯ²»¡Ûk©×in(d)«°(¥«¥¤¥ó¥À¡¼)¡¢¡Ú¥ì¥Ù¥ë¡Û6
 ¡ÚÉû¡Û=kind of¡¢´öʬ¡¢¤Á¤ç¤Ã¤È¡¢¤¢¤ëÄøÅÙ¡¢¤«¤Ê¤ê

¤Ê¤ë¤Û¤É kind of ¤ÏÊØÍøɽ¸½¤À¤è¤Ê¤¡¡£ ÌäÂê¤Ï kinaba ¤È¶õÌÜΨ100%¤Ê¤³¤È¤Ç¤¹¤¬¡£

(01:06)

_ Ì´

¥Þ¥È¥ê¥ç¡¼¥·¥«±§ÃèÁ¥¤Èµ´¤´¤Ã¤³¤È¡£ ¥Þ¥È¥ê¥ç¡¼¥·¥«¤ÎÊý¤ÏÁϺî¤È¤Ï»×¤¨¤ó¤Ê¤¡¡Ä

(11:24)

_ Windows¥­¡¼¤È¤¤¤¦¡Ä

http://d.hatena.ne.jp/giveup/20061203#1165165185

¤¢¡¼¤Ê¤ó¤«HHK¤â¤è¤¯¸«¤ë¤È Alt^Opt ¤È¤« ½ñ¤¤¤Æ¤¢¤ë»È¤Ã¤Æ¤Ê¤¤¥­¡¼¤¢¤ë¤Ê¡¼¡£ ¤³¤ìº£¤Ï X Ū¤Ë¤Ï¥¹¥Ú¡¼¥¹¤«¡¼¡£

¤¦¤àͽÁÛÄ̤êÊÑ´¹/̵ÊÑ´¹¥­¡¼¤Î¤è¤¦¤À¡£ Thinkpad ¤òľÀÜ¿¨¤ë»þ¤Î¤¿¤á¤Ë¥¹¥Ú¡¼¥¹¤Ë¤·¤¿¤ó¤À¤Ê¡£ ¤Ä¡¼¤³¤È¤Ï¼«Í³¤Ë»È¤¨¤ë¡£ ¤±¤É¤³¤ì¥â¥Ç¥Õ¥¡¥¤¥¢¤Ë¤Ï¤Ê¤é¤ó¤è¤¦¤Ê¤ß¤¿¤¤¤Ê¡£

¤¢¤È¤½¤â¤½¤âÊÌ¤Ë Ctrl+Alt »È¤ï¤Ê¤¤»Ò¤Ê¤ó¤À¤è¤Ê¤¡¡£

(11:32)

_ ¤É¤¦¤Ç¤â¤¤¤¤¤Ç¤¹¤¬

http://d.hatena.ne.jp/giveup/20061203#1165166438

memset(&p, 0, sizeof(p)); ¤Ç¤Ê¤¤¤È¡Ä

Ïü«ÂΤϤ¿¤Þ¤Ëʹ¤¯Ïäʤó¤Ç·ë²Ì¤¬ÊѤï¤ë¤ó¤Ç¤·¤ç¤¦¤Í¤§¡Ä Èó¥Ì¥ë¥¼¥í´Ä¶­Íߤ·¤¤

(11:45)

_ ¤Á¤Ê¤ß¤Ë

showkey ¤Í showkey ¡£ key ¤Î¥­¡¼¤Î¥­¡¼¥Ü¡¼¥É¤Î¥­¡¼¥³¡¼¥É¤Î¥³¡¼¥É¤Î code ¤Î scan ¤Î¥¹¥­¥ã¥ó¤Îɽ¼¨¤¹¤ë¤Î¤Ï showkey ¤Ã¤Æ¥³¥Þ¥ó¥É¤À¤«¤é¡£ ¤³¤ó¤À¤±¤¢¤ì¤Ð¤Þ¤¿Ëº¤ì¤Æ¤â¸¡º÷¤Ç¤­¤ë¤À¤í¤¦¡Ä

(11:54)

_ ¤³¤ó¤Ê´¶¤¸¤Ç¡Ä

find `echo $PATH|sed 's/:/ /g'` -name *key*

¤ó¡¼

findpath () {
    find `echo $PATH|sed "s/:/ /g"` -name $@
}

¤Ê¤ó¤« noglob ¤Ë¤Ç¤­¤ó¤Ê¤¡¡£

(12:04)

_ screenrc

screen ¥Ð¥Ã¥Õ¥¡¤ò X ¤ËÁ÷¤ë ~/bin/__scr2x ¤ò¾¯¤·¼ê¤òÆþ¤ì¤¿¡£

#!/bin/bash

screen -X eval "msgminwait 0" "writebuf /tmp/scr" "bell_msg 'hoge'" "msgminwait 1"
trap '' SIGHUP
sleep 0.2
xclipstr "`cat /tmp/scr`" &
screen -X echo 'xclip'

Í×¤Ï sleep Æþ¤ì¤¿¡£ Æþ¤ì¤Ê¤¤¤È·ë¹½¥¢¥ì¤À¤Ã¤¿¡£

¤¢¤È copy »þ¤Î emacs ²½

markkeys "h=^B:l=^F:$=^E"

¤µ¤ì¤Æ¤Ê¤«¤Ã¤¿¤Î¤Ç¤·¤¿¡£ ¤³¤ì¤Ï¤Ê¤ó¤«¥¤¥ä¤ÊÍýͳ¤¬¤¢¤Ã¤¿µ¤¤â¤·¤¿¤ó¤À¤±¤É¡¢¤Ê¤ó¤À¤Ã¤¿¤«¡£

(13:13)

_ ¤¦¡¼¤ó

http://msdn.microsoft.com/library/ja/jpmemory/html/_win32_VirtualProtect.asp?frame=true

http://f4.aaa.livedoor.jp/~madprog/doc/self-mod.html

¼ê¶á¤Ê¤È¤³¤Ë Windows Íߤ·¤¤¤Ê¤¡¡£ ¤Ä¤Þ¤ê HHK ¤«¤é¼ê¤ò¤Ï¤Ê¤µ¤º¤Ë ¥í¥°¥¤¥ó¤·¤Æ¥³¥ó¥Ñ¥¤¥éÁö¤é¤»¤é¤ì¤ë¤¯¤é¤¤¤Îµ÷Î¥¤ËÍߤ·¤¤¡£

¥Ç¥£¥¹¥×¥ì¥¤ÃÖ¤±¤ë¤Á¤ã¤ÖÂ楲¥Ã¥È&& ¤Ê¤ó¤Á¤ã¤Ã¤Æ¥Ç¥å¥¢¥ë¥Ç¥£¥¹¥×¥ì¥¤|| ŬÅö¤Ë¥´¥ß¥Î¡¼¥ÈPC¥²¥Ã¥È&& VNC ¤Î¤É¤Ã¤Á¤«¤«¤Ê¤¡¡£ ¤Ê¤ó¤Á¤ã¤Ã¤Æ¥Ç¥å¥¢¥ë¤Ï¥Ç¥¹¥¯¥È¥Ã¥×¤Î Windows¥Þ¥·¥ó¤¬»ÈÍÑÉԲĤˤʤë¤Î¤¬Äˤ¤¡£

¤È¤ê¤¢¤¨¤º Windows ¥Þ¥·¥ó¤Ë VNC Æþ¤ì¤ë¤«¡Ä

(13:40)

_ eval qq{tr

¤ª¡¼¤³¤¦¤¤¤¦¥¤¥Ç¥£¥ª¥à¤¬¡£

http://d.hatena.ne.jp/tociyuki/20061204/1165201446

via http://d.hatena.ne.jp/sumim/20061203/p2

Ruby ¤ÎÊý¤Ï¤â¤¦¤Á¤ç¤¤Ã»¤¯¤Ç¤­¤ë¤«¤·¤é¡£

tr »È¤¦¤Ê¤é

echo HZPFIZ | ruby -pe '$_.tr!("A-Z",[*"A".."Z"].reverse*"")'

gsub ¤Ï Kernel#gsub ¤Î¤ª¤½¤í¤·¤µ¤ò³À´Ö¸«¤ì¤Þ¤¹¡£ ¥´¥ë¥Õ¤Ê¤é¤¢¤È1B¤Ï½Ì¤á¤ë¤±¤É¡£

echo HZPFIZ | ruby -pe 'gsub(/[A-Z]/){(155-$&[0]).chr}' 

String#gsub ¤È String#gsub! ¤Î°ã¤¤¤ÏÉáÄ̤Ǥ¹¡£ gsub! ¤ÎÊý¤Ï¸µ¤Îʸ»úÎó¤ò½ñ¤­´¹¤¨¤ë¤ï¤±¤Ç¤¹¡£ Kernel#gsub ¤È Kernel#gsub! ¤Î°ã¤¤¤Ï¤Ê¤ó¤È¡ª ½ñ¤­´¹¤¨¤Ê¤«¤Ã¤¿¾ì¹ç¤ÎÌá¤êÃͤ·¤«°ã¤ï¤Ê¤¤¤Î¤Ç¤¢¤Ã¤¿¡¼¡ª¡ª

¤É¤¦¤Ç¤â¤¤¤¤¡£

(13:49)

_ ¤¢¤È Perl ¤Ï

tr ¤è¤ê y ¤ÎÊý¤¬Ã»¤¤¤È¤«¤Ã¡Ä¡ª

(13:50)

_ ¥°¥ê¡¼¥Æ¥£¥ó¥°¥«¡¼¥É

NII ¤«¤é¾¤ËÁ÷¤ëÍѤΥ°¥ê¡¼¥Æ¥£¥ó¥°¥«¡¼¥É¤È¤ä¤é¤¬ Á÷¤é¤ì¤Æ¤­¤¿¤ó¤À¤±¤É¡¢ ÆüËܤ¬³Ë¹¶·â¼õ¤±¤Æ¤ë¤È¤·¤«»×¤¨¤Ê¤¤³¨ÊÁ¤À¤Ã¤¿¡£

(14:14)

_ SSL¤È¤«½ð̾¤È¤«

µ¶Áõ¤È¡¢´ÉÍý¼Ô¤Î̵ÃÎ/ÂÕÂƤˤè¤ë ´ü¸ÂÀÚ¤ì¤Î¶èÊ̤¬¤Ä¤«¤ó¤Î¤¬¤¿¤Ö¤ó¡¢ ¥»¥­¥å¥ê¥Æ¥£¤Î¿ÍŪ¤Ë¥·¥å¥Ã¥·¥å¥Ã¤Ê¤ó¤À¤È»×¤¦¤ó¤À¤±¤É¡£

´ü¸ÂÀÚ¤ì¤È¤«¡¢Ã±¤Ê¤ë GET ¤Ç¥Ö¥é¥¦¥¶¤¬ ¤¤¤Á¤¤¤Á¶¯¤¤·Ù¹ð½Ð¤¹¤«¤é¤¤¤«¤ó¤Î¤«¤Ê¤¡¡£ ¤Ö¤Ã¤Á¤ã¤±´ü¸ÂÀÚ¤ì¤Î¾ÚÌÀ½ñ¤È¤«¤Ã¤Æ¤Û¤Ü°ÂÁ´¤Ê¤ó¤¸¤ã¤Ê¤¤¤Î¤È¤«¡£ ǧ¾Ú¶ÉÄ̤äƤʤ¤¾ÚÌÀ½ñ¤ËÂФ·¤Æ¡¢ ¥Ñ¥é¥á¡¼¥¿¤òÅϤ¹¾ì¹ç¤Ë¸Â¤Ã¤Æ¡¢ ¤Ê¤ó¤«¶¯¤¤·Ù¹ð½Ð¤¹¤È¤«¤Ê¤é¤½¤ó¤Ê¤Ë¤¦¤Ã¤µ¤¯¤Ê¤¤¤·¡¢ ¥é¥¤¥È¤Ê¥æ¡¼¥¶¤âµ¤¤ò¤Ä¤±¤ë¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¤È¤«¡£

CAVE¼°¤Ë

¤³¤ÎÀè¤Ë¤Ï¡¢Ë½ÎÏŪ¤Çµ´¤Î¤è¤¦¥ª¥ì¥ª¥ì¾ÚÌÀ½ñ¤¬¤¢¤Ê¤¿¤òÂԤäƤ¤¤Þ¤¹¡£
¤½¡¦¤ì¡¦¤Ç¡¦¤â¡¦Àè¤Ë¿Ê¤ß¤Þ¤¹¤«¡£
  YES
> NO

¤¯¤é¤¤¤ä¤ì¤Ð¤¦¤¶¤¯¤Æ¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤«

(14:30)

_ 狼¤½¤¦¤¤¤¦ extension ½ñ¤¤¤Æ

(14:30)

_ ¤Ñ¡¼¤ë¤´¤ë¤Õ

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

Ê̲ò¤¬°Å¹æ¤À¤Ê¤¡¤¹¤´¤¤¡£

¤È¤³¤í¤Ç Code Golf ¤Î¥ë¡¼¥ë¤Ç¤¹¤¬¡¢ ¡Ö½ÐÎϤκǽé¤Ë²þ¹Ô¤òÆþ¤ì¤Æ¤¤¤¤¡×¤È¤¤¤¦¤Î¤¬ ¤¢¤ë¤È¤¤¤¦¤Î¤Ï°Æ³°ÃΤé¤ì¤Æ¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£

(20:15)

_ another D in programming

¤Æ¤Ê¤ó¤«¤Í¡¼¤Èʹ¤¤¤Æ¤ß¤¿¤é¡¢ 2ch¤Ç¥Ø¥ó¤Êµ¤¤¬¤¹¤ë¤È¤¤¤Ê¤Ð¤µ¤ó¤¬¤ª¤Ã¤·¤ã¤Ã¤Æ¤¤¤¿ ³Ø¹»¤Îɾ²Á¤À¤í¡¼¤Í¤È¤¤¤¦Ïä餷¤¯¡£ ¤Ê¤ó¤« US ¤À¤È ABCDF ¤È¡¢ D ¤ÏÆüËܤǸÀ¤¦ C ¤È¤«²Ä¤Ê¤Î¤Ç¡¢ ¥×¥í¥°¥é¥ß¥ó¥°¤Îñ°ÌÉԲĤ¸¤ã¤Ê¤¯¤Æ¤è¤«¤¿¡¼¤È¤¤¤¦¡¢ D ¤Î°ÕÌ£¤¬°ã¤¦°Ê¾åÌõ½ÐÉÔǽ¤Î°ÕÌ£¤Ê¤Î¤«¤Ê¤¡¤È¤¤¤¦´¶¤¸¤À¤Ã¤¿¡£ ¤¿¤·¤«¤Ë Segfault ¤µ¤ó¤Æ̾Á°¤Î»þÅÀ¤Ç¤Ê¤ó¤« À®ÀÓ°­¤½¤¦¤Ê¤ï¤±¤Ç¤½¤ó¤Ê´¶¤¸¤Ê¤Î¤«¤Ê¤¡¤È¡£

¤¢¤ÈÆüËܤÎɾ²Á¤Ï SABC ¤¸¤ã¤Í¡¼¤Î¤«¤È¤«¸À¤ï¤ì¤¿¡£ ¥²¡¼¥àÂç¹ñ¡ª¡ª

(20:35)

_ 11

00: A, 01: B, 10: C, 11: D ¡¢ ¤Ç¤¹¤«¤é¡¢ 1·î1Æü¤¬ D ¤ÎÆü¤È¤¤¤¦¤Î¤âǼÆÀ¤¬¤¤¤­¤Þ¤¹¡£ ²¿¤ò±£¤½¤¦¡¢ C89 ¤Ï 1·î0Æü¤Ë¥ê¥ê¡¼¥¹¤µ¤ì¤Þ¤·¤¿¡£

(21:20)

_ ¤Æ¤³¤È¤Ï

C++ ¤Ç execl ¸Æ¤Ö¤È·ë¹½¤¢¤Ö¤Ê¤«¤·¤¤¤Î¤«¤Ê¤¡¡£

(22:58)

_ ¤¯¤½¤¦È¯À¸¤·¤Ê¤¤

¤ªÁ°ËÜÅö¤Ë 64bit ¤Ê¤ó¤«¡ª

(23:10)

_ ¥³¥ó¥Ñ¥¤¥é¤¬¥³¡¼¥É¾Ã¤¹¤Î¤Ï

http://d.hatena.ne.jp/giveup/20061204#1165241449

if (argc < 99) return 0;

¤È¤«¤Ç¤Ê¤ó¤È¤«¤Ê¤ë¤±¤É¡¢ ¥¹¥¿¥Ã¥¯¤ÎÄ´À°¤¬¤Ê¤¡¡£

memcpy(&main, &&l+???, 15);

¤È¤«¤ÇÆ°¤¯¤È¤«¤Ã¤³¤¤¤¤¤±¤É¡£

(23:32)

ËÜÆü¤Î¥Ä¥Ã¥³¥ß(Á´5·ï) [¥Ä¥Ã¥³¥ß¤òÆþ¤ì¤ë]

_ k.inaba [¡ÖD¤Ã¤Æ°­¤¤À®ÀӤʤϤº¤À¤«¤é¤è¤¯¤ï¤«¤é¤ó¤Ê¤¢¡×¢ª¡Ö¤È¤ê¤¢¤¨¤ºÄ¾Ìõ¤·¤È¤±¡×¢ª¡Ö2ch¤ÇÊ̤βò¼á(Dimension)¤¬..]

_ shinh [¤Ê¤ë¤Û¤É¡£¸Ä¿ÍŪ¤Ë¤ÏÌõ¤»¤ë¤â¤Î¤ÏÌõ¤·¤Æ¤â¤é¤Ã¤¿Êý¤¬¤ï¤«¤êÎɤ¤µ¤¤¬¤·¤Þ¤¹¡£º£¸«¤Æ¤ß¤¿¤ó¤Ç¤¹¤¬¡¢ blockquote ..]

_ LETTER [ÌÌÇò¤½¤¦¤À¤Ã¤¿¤Î¤ÇFirefox¤Î³ÈÄ¥¤ò½ñ¤¤¤Æ¤ß¤Þ¤·¤¿¡£ http://d.hatena.ne.jp/letter/..]

_ shinh [¤ª¤ª¤ª¤¹¤Ð¤é¤·¤¤¡£¤µ¤Ã¤½¤¯Æþ¤ì¤Æ¤ß¤Þ¤·¤¿¡£¤³¤ó¤Ê°ÛÍͤʥá¥Ã¥»¡¼¥¸¤¬½Ð¤ì¤Ð¤µ¤¹¤¬¤Ë¤Ó¤Ó¤ê¤Þ¤¹¤Í¡ª ¤¢¤È¡¢¡Ö¤³¤ó¤Ê¤¢¤ä¤·..]

_ ¥¢¥ê¥Ð¥¤²ñ¼Ò [Ä̤ꤹ¤¬¤ê¤Ç¤¹¡£ <a href=http://dmajor.info/>¥¢¥ê¥Ð¥¤²ñ¼Ò</a>]


2006-12-03

_ ECSÆÉλ

Æɤ߽ª¤ï¤Ã¤Æ¤ß¤ë¤È¤Ê¤ó¤«¤ï¤ê¤È¤É¤¦¤Ç¤â¤¤¤¤¤Ê¤¡¡Ä

union ¤ÎÏᣴο´¤Î¼ÂÁõ¤Î¾Ò²ð¤Ï̵¤·¤Ã¤¹¤«¡£

std::string ¤ÎÏᣤɤ¦¤Ç¤â¤¤¤¤Ïäò¤¨¤é¤¤¤·¤Ä¤³¤¯Â³¤±¤ë¤Ê¤¡¡£

¤¢¤ÈÈÆÍÑ¥³¡¼¥ë¥Ð¥Ã¥¯¤È¤«¤â¤É¤¦¤Ç¤â¤¤¤¤¤«¤Ê¡£

¤¦¡¼¤ó¤Ê¤ó¤«¤Ê¤¡¡£ ½øÈפÏËÜÅö¤ËÌÌÇò¤«¤Ã¤¿µ¤¤¬¤·¤¿¤ó¤À¤±¤É¤Ê¡£

¼¡²¿Æɤ⡣

¤³¤ì¤¬¤ª¤â¤·¤í¤½¤¦¤«¡£ http://d.hatena.ne.jp/w_o/20061106#p4

ÀѤóÆÉŪ¤Ë¤Ï Binary Hacks (ÀѤà¤Ê¤è¡ª(¤¤¤ä°ì±þººÆɤȤ«¤Ê¤ó¤À¤ÇÆɤó¤À¤ó¤Ç¤¹(¤¢¤é¤¿¤á¤Æ¤æ¤Ã¤¯¤êÆɤߤ¿¤¤¤È))) ¤È 30ÆüOSËÜ¤È TRON ¡£¤·¤Ð¤é¤¯¤Ï TRON ¤«¤Ê¡£

(02:04)

_ ºÇ¶á¡Ö¡ª¡×¤ò¤è¤¯»È¤¤¤Þ¤¹¡ª¡©

¡Ö¡ª¡×¤Ë¤Ï¼ç¤Ë»°¤Ä¤Î»È¤¤¤«¤¿¤¬¤¢¤ê¤Þ¤¹¡£¥Þ¥¹¥¿¡¼¤·¤Þ¤·¤ç¤¦¡£

  • ¡Ö¡ª¡×¤¬°ì¤Ä¤À¤ÈÉáÄ̤ˤʤ󤫶¯Ä´¤Ã¤Æ´¶¤¸¤Ç¤¹¡ª
  • ¡Ö¡ª¡ª¡×¤À¤È¥Î¥ê¥Î¥ê¤ÊÊ·°Ïµ¤¤¬½Ð¤Þ¤¹¡ª¡ª
  • ¡Ö¡ª¡ª¡ª¡ª¡×¤È»°¤Ä°Ê¾åʤ٤ë¤ÈÇϼ¯¤Ë¸«¤¨¤Þ¤¹¡ª¡ª¡ª¡ª¡ª

¾åµé¼Ô¤Ï¡Ö¡ª¡©¡×¤ä¡Ö¡Ä¡ª¡×¤â»È¤¤¤ï¤±¤ë¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£ ¤µ¤é¤Ë¾®Ê¸»ú¤â»È¤¦¤ÈÎɤ¤¤Ç¤¹¡£ ¡Ö...!¡×¤Ï¤Ê¤«¤Ê¤«É÷¾ð¤¬¤¢¤Ã¤Æ¤è¤í¤·¤¤¤Ç¤¹¡£

(02:25)

_ Google Co-op

http://www.google.com/coop/

Îɤµ¤²¡¼¤È»×¤Ã¤¿¤Î¤Ç¤Ä¤±¤Æ¤ß¤¿¡£

<input type=hidden name=ie value=EUC-JP>
<input type=hidden name=oe value=EUC-JP>

¤ò¤Ä¤±¤ë¤È EUC-JP ¤Î¥µ¥¤¥È¤Ç¤â»È¤¨¤ë¤ß¤¿¤¤¤À¤è¡ª ¤ª¤ä¤¯¤À¤Á¤À¤Í¡ª

(03:07)

_ 120¤É¤¦¤Ç¤â¤¤¤¤

http://tinyurl.com/yh296l

(03:09)

_ ¤¨¡¼

void»á¤ÏÀµÄ¾ËͤÏñ¤ËÀ­³Ê°­¤¤ (¤³¤ì¤ÏËÍŪ¤Ë¤Ï¥Þ¥¤¥Ê¥¹Í×°ø¤Ç¤Ï¤Ê¤¤¤ó¤À¤±¤É) Êý¤À¤È»×¤Ã¤Æ¤ë¤ó¤À¤è¤Ê¤¡¡£ ¤Ê¤ó¤«ÑÜÄ¢Ì̸Τˤۤ²¤Û¤²¡¢¤ß¤¿¤¤¤Êɾ²Á¤Ï¥Û¥ó¥È¤«¤Í¤È¡£

¤Ä¡¼¤Î¤Ï¡¢¡Ö¼è¤ê´¬¤­¡×¤Î´Ö°ã¤¤¤Ï»ØŦ¤·¤Ê¤¤¡¢ ¸À¤Ã¤Æ¤ë¤³¤È°Æ³°´Ö°ã¤Ã¤Æ¤ë¡¢¤Î2ÅÀ¤Ë¤ª¤¤¤Æ¡£ ËÍÀ­³Ê°­¤¤¤Î¤Ç ¥É¥ó¥Ñ¥Á¤¬¤¢¤ë¤È¤Ò¤¿¤¹¤é¸«¤Æ¤ë¤ï¤±¤À¤±¤É¡¢ Á°¤Ü¤ó¤ä¤ê¸«¤Æ¤¿ÏäÀ¤È C99 Âбþ¤·¤Æ¤Ê¤¤¥³¥ó¥Ñ¥¤¥é¤Ê¤ó¤Æ̵¤¤¤È¤«¡¢ ¤¢¤È¤Ê¤ó¤« CRC ¤Î¤¢¤ì¤â¤¢¤ì¤À¤Ã¤¿¤Ê¡£

¤¿¤Þ¤Ë otsune ¤µ¤ó¤Î¥Ñ¥ï¡¼¥¢¥Ã¥×¤ß¤¿¤¤¤Ë ¸ì¤é¤ì¤ë¤Î¤ò¸«¤ë¤±¤É¡¢ ËÍŪ¤Ë¤Ï otsune ¤µ¤ó¤ÎÊý¤¬¤Ï¤ë¤«¤Ë ´í¤Ê¤²¤¬¤Ê¤¯¸«¤¨¤ë¤Ê¤¡¡£ ɽ¸½¤à¤º¤«¤·¤¤¤±¤É¡¢ ¤Á¤ã¤ó¤È¼«Ê¬¤ÎÀìÌçÎΰè¤Ç¤ä¤Ã¤Æ¤ë¤È¤¤¤¦¤Î¤â¤¢¤ë¤·¡¢ ¤Ò¤¯¤³¤È¤â¤Ç¤­¤ëÊ·°Ïµ¤¤ß¤¿¤¤¤Ê¤½¤¦¤¤¤¦¡£

¤Þ¤¡¥É¥ó¥Ñ¥Á¤ÏÌÌÇò¤¤¤Î¤Ç¤Ê¤ó¤Ç¤âÎɤ¤¡£

(05:01)

_ ¤­¤ç¤¦¤Î¤ê¤ç¤¦¤ê

¥³¡¼¥Ò¡¼¥á¡¼¥«¡¼¤Ç²¹ÀôÍñ¤òºî¤Ã¤¿¤ï¤±¤À¤±¤É¡¢ ¤½¤Î»þÀ¸À®¤µ¤ì¤¿¤ªÅò¤Ç¤ªÃã¤òÆþ¤ì¤è¤¦¤È»×¤Ã¤¿¤ï¤±¤À¤±¤É¡¢ ¥³¡¼¥Ò¡¼¤ÎÌ£¤¬¤·¤ß¤Ä¤¤¤Æ¤Æ¤¹¤ó¤´¤¯¤Þ¤º¤¤¤ªÃã¤Ë¤Ê¤Ã¤¿¡£

¤¢¤ì¤Ï¤ä¤Ð¤¤

(05:03)

_ ¤×¤í¤È¤Ù¡¼¤¹

ºÇ¶á¥×¥í¥È¥¿¥¤¥×Ǿ¤Ê¤Î¤Ç JS¤È¤«¤ÎÆ°ºî¤ÎÊý¤¬¼«Á³¤Ë»×¤¨¤Æ¤·¤Þ¤¦¤Î¤Ç¤¢¤Ã¤¿¡£

http://d.hatena.ne.jp/w_o/20061202#p4

Io> Nanika := Object clone do( i:=40; m:=method(i) )
==>  Nanika_0x8d08150:
  i                = 40
  m                = method(...)
  type             = "Nanika"

Io> Nanika2 := Object clone do( i:=100 )
==>  Nanika2_0x8d2e5d8:
  i                = 100
  type             = "Nanika2"

Io> Nanika2 m := Nanika m
==> 40
Io> Nanika2 m := Nanika getSlot("m")
==> method(i)
Io> Nanika2 m
==> 100

ÅÓÃ椦¤Ã¤«¤êɾ²Á¤·¤Á¤ã¤Ã¤Æ 40 ¤¬½Ð¤¿¤Î¤ÏÈëÌ©¡£

(05:08)

_ ¥½¡¼¥È¤òÁ´Éô

¥Ü¥´¥½¡¼¥È¤ËÊѤ¨¤ë¤È¤É¤¦¤À¤í¤¦¤«¡£

int main(int argc, char* argv[]) {
    if (argc == 1) return 1;
    int s = atoi(argv[1]);
    int* ints = (int*)malloc(sizeof(int)*s);

    srand(time(0));

    /* initialize */
    for (int i = 0; i < s; i++) {
        ints[i] = rand();
    }

    int sorted = 0;
    for (;!sorted;) {
        for (int i = 0; i < s; i++) {
            int r = rand()%(s-i);
            int t = ints[r];
            ints[r] = ints[i];
            ints[i] = t;
        }

        sorted = 1;
        for (int i = 1; i < s; i++) {
            sorted &= ints[i-1] < ints[i];
        }
    }

    return 0;
}

¤¿¤Ã¤¿10Í×ÁǤǤâ·ë¹½¤¢¤ä¤·¤¤¤è¡ª

i@u ~/test> time ./a.out 10
./a.out 10  0.64s user 0.00s system 98% cpu 0.648 total
i@u ~/test> time ./a.out 10
./a.out 10  9.68s user 0.02s system 95% cpu 10.117 total
i@u ~/test> time ./a.out 10
./a.out 10  4.05s user 0.02s system 96% cpu 4.230 total

(05:19)

_ (-:-)

(05:33)

_ rail

parser.ry ¤ò¤¤¤¸¤Ã¤¿¡£ :nick!user@foo/bar/baz ¤ß¤¿¤¤¤Ê ¤Î¤òÁ÷¤Ã¤Æ¤¯¤ë»Ò¤Îȯ¸À¤¬Æɤá¤Æ¤Ê¤«¤Ã¤¿¤Î¤Ç¡Ä

#    when /\A#{PATTERN::SHORTNAME}(?:\.#{PATTERN::SHORTNAME}|\.)*/
#      yield(:HOSTNAME, $&)
    when /\S+/
      yield(:HOSTNAME, $&)

(17:20)

_ pi

º£¤Ë¤·¤Æ»×¤¦¤È¡¢

http://jarp.does.notwork.org/diary/200609b.html#200609192

¤Î

require"open-uri";puts open("http://tinyurl.com/gjxs8").read[5..-8]

¤è¤ê¤â¡¢ bigdecimal/math ¤ò»È¤¦¤è¤ê¤â¡¢ û¤¤²óÅú¤Ë¤Ê¤Ã¤Æ¤ë¤ï¤±¤Ç¡¢¤¹¤´¤¤¤Ê¤¢¤È¡£

(19:31)

_ EBML

¤¨¡¼¤È¡Ä

http://ebml.sf.net/

(21:28)

_ ¤Ï¤¸¤á¤Æ¤Î¤®¤ã¤ë¤²¡¼

http://bund.jp/modules/yui/

³×Ì¿²È¤Ïµ¤Æñ¤·¤¤¤è¡Ä¡ª

(22:05)

_ ¥á¥â¤ò´Êñ¤Ë¼è¤í¤¦

(defun wl-draft-memo ()
  (interactive)
  (wl-draft '("To: hogehoge@hogehoge.hogehoge")))
(global-set-key "\C-q\C-m" 'wl-draft-memo)

(22:21)

_ ¥¹¡¼¥Ñ¡¼¥¨¥·¥ã¡¼

»×¤¤½Ð¤·¤¿¤è¤¦¤Ëµ­Ï¿¡£

DS ¤Ç°ÆÆ⤵¤ì¤ë¤Î¤ÏÌÌÇò¤«¤Ã¤¿¡£ ÆâÍƤϤʤ󤫡¢°Æ³°¤¿¤¤¤·¤¿¤³¤È¤Ê¤¤¤È¤¤¤¦¤«¡¢ ¥¨¥Ã¥·¥ã¡¼¤Ã¤Æ¤¢¤ó¤Þ¤êÇ÷ÎϤߤ¿¤¤¤Ê¤Î¤Ê¤¤¤Ê¤¡¤È»×¤Ã¤¿¡£ ¶µ²Ê½ñ¤Ç¸«¤Æ¤âÊѤï¤é¤ó¤È¤¤¤¦¤«¡£ ¤¢¤ÈºîÉʤοô¤¬¾¯¤Ê¤¯¤Æ¡¢ °ìÈÖÌÌÇò¤¤ñÙ¤·³¨·Ï¤ÎÉôʬ¤Ï ¤É¤Ã¤«¤Ç¸«¤¿¤è¤¦¤Ê¤Î¤¬Â¿¤¯¤Æ¿·Á¯¤µ¤â̵¤¤¤Ê¤¡¤È¤«¡£ ¤Þ¤¡ÈDzè¤È¤«»þ´Ö¤«¤«¤Ã¤ÆÂçÊѤ½¤¦¤À¤Ê¤¡¡£

¤¢¤ÈÊ¿ÆüÃë´Ö¤È¤«¤Ê¤Î¤Ç¶õ¤¤¤Æ¤¿¡£

(23:02)


2006-12-02

_ updateSlot setSlot

¤¦¡¼¤ó¡£

¥×¥í¥È¥¿¥¤¥×¥Ù¡¼¥¹¤Î¸À¸ì¤Ê¤ó¤«¤Ç¡¢ ¤³¤¦¡¢ = ¤ò¥á¥Ã¥»¡¼¥¸¤Ë¤·¤ÆÂåÆþ¤Ê¤ó¤Æ¤·¤¿¤¤¤ï¤±¤À¤±¤É¡£

Class f = function() {}

¤³¤ì¤Ç¤¤¤¤¤¸¤ã¤ó¤Æ»×¤¦¤«¤â¤·¤ì¤Ê¤¤¤±¤É¡¢°ã¤¦¤ó¤À¤Ã¡Ä

Class ¤Ë f ¤Ã¤Æ¥á¥Ã¥»¡¼¥¸Åꤲ¤Æ ¤µ¤é¤Ë = ¤Ã¤Æ¥á¥Ã¥»¡¼¥¸¤¬Èô¤ó¤Ç¤ë¤È¹Í¤¨¤ë¤È¡¢ f ¤ËÂФ¹¤ë¥á¥Ã¥»¡¼¥¸¤Ç Class ¤ò¤¤¤¸¤ë¤È¤¤¤¦°ãÏ´¶¤¬¤Ã¡Ä¡ª ¤·¤«¤â¥ª¥Ö¥¸¥§¥¯¥È¤¬¡¢¡Ö¼«Ê¬¤¬º£¤É¤Î̾Á°¤Ç¸Æ¤Ð¤ì¤Æ¤¤¤ë¤«¡× ¤È¤«¤òÃΤé¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢ ¤³¤ì¤Ï¤È¤Æ¤âµ¤»ý¤Á°­¤¤¤Î¤Ç¤¹¡£

¤¦¡¼¤ó¡£

Class#f=

¤·¤«Ìµ¤¤¤«¤Ê¤¡¡©

¤¤¤ä setSlot ¤ÎÊý¤Ï¤Ê¤ó¤È¤Ç¤â¤Ê¤ë¤ó¤À¤¬ updateSlot ¤ÎÊý¤¬¤É¤¦¤Ë¤â¤³¤¦¤Ë¤â¡£

hmm.

(02:14)

_ ¤µ¤¹¤¬¤À¡ª¡ª

http://d.hatena.ne.jp/Hamachiya2/20061202/1164994490

(02:45)

_ SFC¥Þ¥ê¥«¡¼¤Î

¤ª¤Ð¤±¤Ì¤Þ1¤Î ºÇ½ª¥«¡¼¥Ö¤ò¤Õ¤¯¤é¤Þ¤º¤Ë¶Ê¤¬¤ì¤ë¤«¤È¤¤¤¦¤è¤¦¤Ê¤³¤È¤ò ¤Ê¤ó¤È¤Ê¤¯¹Í¤¨¤¿¡£ ¤Ê¤ó¤È¤Ê¤¯¤¦¤Þ¤¯¤ä¤ì¤ë¤È¤«¤Ê¤ê¤«¤Ã¤³¤¤¤¤µ¤¤¬¤·¤¿¤Î¤Ç ¼Â²Èµ¢¤Ã¤¿¤é¤ä¤Ã¤Æ¤ß¤è¤¦¡£

(04:04)

_ ¤¦¡¼¤ó

estmsater ¤ÎÆ°¤­¤¬¤Ê¤ó¤«¤¤¤Þ¤¤¤Á¤À¤Ê¤¡¡£

(05:27)

_ ¾¤Ï¤Þ¤¡¤É¤¦¤Ç¤â¤¤¤¤¤ó¤À¤±¤É

C > C++ ¤È PP >>>> Ruby ¤ò¤è¤¯¸«¤ë¤Î¤Ë¤Ï¾ï¡¹°ãÏ´¶¡£

®ÅÙ¤¢¤ì¤³¤ì¤Î¥Ê¥ó¥»¥ó¥¹¤µ¤Ê¤ó¤Æ¤è¤¯¤ï¤«¤Ã¤Æ¤¤¤Æ¤â ¤Ê¤ó¤«¤ä¤Ã¤Æ¤·¤Þ¤¦µ¤»ý¤Á¤Ï¤è¤¯¤ï¤«¤±¤É¤Í¤Ç¤â¤Ê¤¡ ¤¦¡¼¤ó¡£

¤Þ¤¡¼«Ê¬¤Î¤Ä¤­¤¢¤Ã¤Æ¤ë¤â¤Î¤Î´¶³Ð¤Ç¹Í¤¨¤ë¤Ã¤Æ¤Î¤Ï ¤¢¤¿¤ê¤Þ¤¨¤À¤±¤ÉÀµ¤·¤¤¤Ê¤¡¡£ ¤½¤ì¤ò¤â¤Ã¤Æ¿Í¤Ë¤¢¤ì¤³¤ì¸À¤¦´¶³Ð¤¬Íý²ò¤·¤Ë¤¯¤¤¤È¤¤¤¦¤«¡£ ËͤΤĤ­¤¢¤Ã¤Æ¤ë¤â¤Î¤Î´¶³Ð¤Ç¤Ï¤³¤ì¤À¤±¤É¡¢

http://shinh.skr.jp/testsprite/

¤³¤ì¤Ï¤¿¤Ö¤óÆóÅÀ¤Ë¤ª¤¤¤ÆĶÀäÊФê¤Þ¤¯¤Ã¤Æ¤¤¤ë¡£

(06:28)

_ ¤Û¤¨¡Ä

http://game10.2ch.net/test/read.cgi/game/1164444460/

·ë¹½¹¥°ÕŪ¤Ë¼õ¤±Æþ¤ì¤Æ¤ë¤ó¤À¤Ê¤¡¡£ ¤Õ¤·¤®¡£

¤â¤¦°ìÅÙ¤ä¤Ã¤Æ¤ß¤¿¤¬ÌÌÇò¤¤¤È»×¤¨¤º¡¼¤Ê¤à¡¼¡£

(19:15)

_ ²¶¤Ï¥½¥Ë¡¼¤ò¤ä¤á¤ë¤¾¡¼

Wiiiiiiiiiiiiiiiiiiiiiiiiiiii

¤Ã¤Æ狼¸À¤Ã¤Æ¤ë¤Ë°ã¤¤¤Ê¤¤¤È»×¤Ã¤¿¤±¤É¸À¤Ã¤Æ¤Ê¤«¤Ã¤¿¡£

http://tinyurl.com/u3ot2

(20:08)

_ ¥¢¥ë¥Õ¥¡¥¯¥ê¥Ã¥Ñ¡¼¡ª

¤½¤ó¤Êñ¸ì¤¢¤ë¤Î¤«¡ª

(20:49)

_ ¤ï¤«¤ó¤Ê¤¤¤Ê¡¼

~/test/sizeof.c ¤ò³«¤³¤¦¤È»×¤Ã¤Æ¤¦¡¼¤ó¤«¤Ö¤ê¤½¤¦¤À¤Ê¤È»×¤Ã¤Æ ~/test/sizeof_magic.c ¤Ë¤·¤Æ¤ß¤¿¤é¤Ê¤ó¤È Á°²ó¥Á¥ã¥ì¥ó¥¸¤·¤¿»þ¤Î¥½¡¼¥¹¤¬½Ð¤Æ¤­¤¿¤Î¤Ç¤¢¤Ã¤¿¡¼

(21:34)

_ ¤°¤ª¤ª

¤ï¤«¤é¤ó¤Î²¶¤À¤±¤«¡ª

(23:07)

_ ¤Ç¤­¤¿¡¼¡¼¡¼¡¼¡¼¡¼¡¼

¤¹¤´¤¤ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤·¤¿¡ª

http://d.hatena.ne.jp/kikx/20061202#1165058604

(23:11)

_ ¤Ë¤Ï¤³¤¬

2ʬ¤Ç¤ï¤«¤Ã¤Æ¤·¤Þ¤Ã¤¿¡£

¤ä¤ë¤Ê¤¢

(23:14)

_ \bibstyle{plain}

ÃΤ뤫¡ª¡ª¡ª

(23:34)


2006-12-01

_ ¤Ê¤ó¤«

w3m ¤Î¥Ñ¥Ã¥Á¤¢¤Æ¤¿¤é filter_gzip ¤¬¤¦¤Þ¤¯Æ°¤«¤Ê¤¯¤Ê¤Ã¤¿¤Ê¤¡¡£

(18:42)


Á° 2024ǯ
11·î
¼¡
Æü ·î ²Ð ¿å ÌÚ ¶â ÅÚ
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
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