ToDo:
http://d.hatena.ne.jp/arn/20050214#p1
via http://page.freett.com/shelarcy/log/2006/diary_12.html#mistrust_econophysics
(00:43)
¤¦¡¼¤ó¡£ template °ú¿ô¤¬ 2 ¤Ä¤¢¤Ã¤Æ¡¢ ÊÒÊý¤Ï¥æ¡¼¥¶¤¬»ØÄꤹ¤ë¡¢ ÊÒÊý¤Ï
½ñ¤¤¤Æ¤ëºÇÃæ¤Ë¤Ç¤¤ë¤Èµ¤ÉÕ¤¤¤¿¡£
(02:36)
¤Õ¤é¤¿¤ó¤¬¸À¤Ã¤Æ¤¿¤³¤È¡£
irb(main):001:0> def/a;p a;end;:x/1 1 => nil
¤À¤±¤É¡¢
i@un ~> ruby -e 'def/a;p a;end;:x/1' -e:1: private method `/' called for :x:Symbol (NoMethodError)
¤Ç¡¢
i@un ~> ruby -e 'public;def/a;p a;end;:x/1' 1
¤Ê¤éÆ°¤¯¡£ ¤Ä¤Þ¤ê irb ¤Ï private ¤Ë¤¹¤ë¤Î¤¬Àµ¤·¤¤¤«¤â¤Í¤¨¤È¤¤¤¦¡£ ¤¿¤À¥´¥ë¥ÕŪ¤Ë¤Ï¤à¤·¤íµÕ¤ÇÌÜ¡£ method_missing ¤¬¼ê·Ú¤Ë½ñ¤±¤ëÌܤˤҤ«¤ì¤¿¤ï¡¼
(15:15)
1st kinaba 51 Ruby 10,000 (v13) 2nd flagitious 52 Ruby 9,807 (v26) 3rd shinh 52 Ruby 9,807 (v14)
½Ì¤àµ¤¤·¤Í¤¨¤¨¤¨
(15:20)
(15:33)
http://arcadestg.jpn.org/wiki/wiki.cgi?page=%C5%EC%B5%FE%C5%D4%2823%B6%E8%29
¤³¤ì¤Ï¤Ù¤ó¤ê
via http://www5.ocn.ne.jp/~yoc/gra.html#20061213
(17:32)
http://mkosaki.blog46.fc2.com/blog-entry-288.html
µ×¡¹¤ËÌÌÇò²èÁü¥¥¿¡¼¤È»×¤Ã¤¿¤éÁ°¤â¤³¤ì¸«¤¿¤è¤¦¤Êµ¤¤¬¤¹¤ë¤è¡ª ¤µ¤ß¤·¤¤¡ª
(22:43)
http://www.namikilab.tuat.ac.jp/~sasada/diary/200505.html#d10
eval ̵¤¤¤È¤«¥Þ¥¸¥Ã¥¯¡Ä¤È»×¤Ã¤¿¤é lave ¤À¤Ã¤¿¡£
(03:34)
http://www.rubyinside.com/advent2006/2-erubis.html
via http://www.rubyinside.com/advent2006/
(03:37)
ÀΤϤ³¤¦¤¤¤¦¤Î¤â
19:49 <codegolf> zeriod submits 1B of Php for Paint By Numbers, ranking 1st (10000pts) in Php and 1st (10000pts) overall.
¤³¤ì¤Ï¥Ð¥°¤Ç¤·¤¿
(05:08)
http://d.hatena.ne.jp/Cryolite/20061210#c1165857299
¤½¤·¤Æ½ñ¤²¼¤¹ºî¶È¤ÏÌÌÇò¤¯¤Ê¤¤¤È»×¤¦¤ó¤À¤è¤Ê¤¡¡£ ¾¯¤Ê¤¯¤È¤âËͤˤÏÌÌÇò¤¯¤Ê¤¤
(05:51)
i@um ~/test> cat cont.cc #include <vector> #include <ext/slist> #include <list> #include <set> #include <ext/hash_set> using namespace std; using namespace __gnu_cxx; int main() { typedef vector<int> v; typedef slist<int> sl; typedef list<int> l; typedef set<int> s; typedef hash_set<int> hs; printf("%d %d %d %d %d\n", sizeof(v), sizeof(sl), sizeof(l), sizeof(s), sizeof(hs)); } i@um ~/test> g++ cont.cc i@um ~/test> ./a.out 12 4 8 24 20
(11:21)
1st flagitious 52 Ruby 10,000 (v26) 2nd shinh 52 Ruby 10,000 (v14) 3rd kinaba 55 Ruby 9,454 (v11)
¤µ¤Æ¡Ä
(12:18)
¤à¤º¤«¤·¤¤¤Ã¤Æ¤¤¤¦¤±¤É¡¢ ¤¢¤»¤ó¤Ö¤ê¤È¤«¤ï¤«¤Ã¤Æ¤¿¤é¤½¤ó¤Ê¤Ë¤à¤º¤«¤·¤¯¤Ê¤¤Éôʬ¤â ¿¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¤È¤«»×¤¦º£Æü¤³¤Î¤´¤í¡£
¤³¤ó¤Ñ¤¤¤é¤Î¤¤â¤Á¤Ë¤Ê¤Ã¤Æ¹Í¤¨¤ì¤Ð¼«ÌÀ¤ÊÉôʬ¤â¿¤¤¤è¤¦¤Ê¡Ä
¤Ç¡¢¤½¤¤¤¦¤³¤È¤¬ Write Great Code 2 ¤Î¥¤¥ó¥È¥í¤Ë ½ñ¤¤¤Æ¤Ê¤¯¤Æ¾¯¤·»ÄÇ°¡£ ¡Ö¤³¤ÎËܤòÆɤá¤Ð¥¢¥»¥ó¥Ö¥ê¤ÎÊ·°Ïµ¤¤¬¤ï¤«¤ë¤Î¤Ç¡¢ ¥³¥ó¥Ñ¥¤¥é¤Îµ¤»ý¤Á¤Ë¤Ê¤ì¤ë¤Î¤Ç¡¢ ÉáÃʤ«¤é¹â®¤Ê¥³¡¼¥É¤òÁªÂò¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡× ¤À¤ÈÆ°µ¡¤¬¼å¤¤µ¤¤¬¤·¤Æ¡£ ¥³¥ó¥Ñ¥¤¥é¤Îµ¤»ý¤Á¤Ë¤Ê¤ì¤Ð ¤Ê¤¼ÆÃ¤Ë C/C++ ¤¬¤³¤Î¸À¸ì»ÅÍͤˤʤäƤ뤫¤â¤ï¤«¤ë¡¢ ¤Ã¤Æ¤Î¤â½ÅÍפÊÅÀ¤À¤È»×¤¦¤ó¤À¤è¤Ê¤¡¡£
¤¿¤È¤¨¤Ð¤ï¤«¤ê¤ä¤¹¤¤¤È¤³¤Ç¤Ï C ¤Ç if ¤¢¤ì¤Ð switch ¤¤¤é¤Ê¤¤¤¸¤ã¤ó break ¥¥â¤¤¡¢¤ß¤¿¤¤¤ÊÏäȤ«¡¢ mst ¤µ¤ó¤¬¥¥â¤¤¤È¤ª¤Ã¤·¤ã¤Ã¤Æ¤¿ C++ ¤Î½é´ü²½¥ê¥¹¥È¤È¤«¡£ ¥¥â¤¤¤â¤Î¤ò¤ï¤¶¤ï¤¶Æþ¤ì¤Æ¤ëÍýͳ¤¬¤ï¤«¤ë¤Ê¤ó¤ÆÁÇŨ¤Ê¤³¤È¤¸¤ã¤Ê¤¤¡£
(15:52)
¤Ç½ñ¤¤¤¿¤é³ÈÄ¥¤È¤«¤·¤ä¤¹¤¯¤Æ¥é¥Ô¥Ã¥É¡ª ¤È¤¤¤¦Ïäʤ顢 ¥¹¥¯¥ê¥×¥È¸À¸ì¤ò¥³¥ó¥Ñ¥¤¥ëºÑ¤ß¥Ð¥¤¥Ê¥ê¤Ë ¸å¤«¤é³ÈÄ¥¤Î·Á¤ÇƳÆþ¤Ç¤¤Ê¤¤¤â¤ó¤«¤Ê¡¼¤È¡£
(20:12)
_ Sxersvwm [¤³¤Î´Ö¤â½ÓÂÀϺ¤Î»í¤ò¤ª http://www.stlouisbusinesslist.com/business/5..]
true_return_type.d(30): static assert (is(long == long)) is false
¤³¤ó¤Ê¥¹¥Æ¥¤Ê¥á¥Ã¥»¡¼¥¸¤â¤é¤Ã¤¿¤³¤È¤Ê¤¤
(00:52)
http://garakuta.homelinux.org/~nosuke/diary/diary.html?y=2006&m=12&d=10&n=1#10-1
mjsk
(04:37)
#!/usr/bin/env ruby t=ARGV.shift pid = fork do exec(*ARGV) end t.to_i.times do if (!File.exists?("/proc/#{pid}")) exit end sleep(1) end Process.kill(:INT, pid)
¤¢¤ê¤¬¤Á¤À¤±¤É¡¢»ØÄꤷ¤¿»þ´Ö¤¬·Ð²á¤·¤¿¤é»Ò¥×¥í¥»¥¹¤ò »¦¤·¤Æ½ªÎ»¤¹¤ëʪÂΤò¤¤¤¤¤«¤²¤ó¤Ë½ñ¤¤¤¿¡£ ÉáÄÌ¤Ë Unix ¥³¥Þ¥ó¥É¤Ë¤¢¤Ã¤¿µ¤¤¬¤¹¤ë¤±¤É³Ð¤¨¤Æ¤Ê¤¤
(06:45)
¥¨¥ó¥Ç¥£¥ó¥°¤Ë¤¤¤Ã¤·¤¤µ¤ó¤Î̾Á°¤¬¤¢¤Ã¤Æ ¤ª¤ª¡¼¤È»×¤Ã¤¿¡£
¤½¤ì¤Ï¤½¤ì¤È¤·¤Æ½é¥×¥ì¥¤¤·¤¿¤±¤É¤è¤¯¤ï¤«¤é¤º¡£ ¼«µ¡¤Ï¤¨¡¼¤Æ¤Î¤È¡¢ Ũ¤¬ÆÍÁ³¤É¤Ñ¤Ã¤ÈÃƤ¦¤Ã¤Æ¤ë¤«¤Ü¤ó¤ä¤ê¤·¤Æ¤ë¤«¤Î ¤É¤Ã¤Á¤«¤È¤¤¤¦¤Î¤Ï¡¢ ¤Ä¤Þ¤ê¤Ê¤ó¤È¤¤¤¦¤«¡¢ ¥·¥å¡¼¥Æ¥£¥ó¥°¤È¤¤¤¦¤è¤ê¥ê¥ó¥¯¤À¤È¤«¥É¥ë¥¢¡¼¥¬¤À¤È¤«¡¢ ¤¢¤¢¤¤¤¦´¶³Ð¤Ë¶á¤¤¤Î¤«¤â¤·¤ì¤ó¤Ê¤¡¡£ ½â¤Ç¼é¤ê¤Ä¤Ä·õ¤Ç¤Ö¤·¤ã¡¼¡£
½â¥·¥å¡¼ºî¤ê¤¿¤¤¤Ê¡£
(07:56)
(08:18)
http://www-06.ibm.com/jp/developerworks/java/051021/j_j-pg09205.shtml
¤Û¤¨¡¼¡£Á´Á³ÅÓÃæ¤Þ¤Ç¤·¤«Æɤó¤Ç¤Ê¤¤¤ó¤À¤±¤É MOP ¤Æ method_missing ¤Î¤³¤È¤Ê¤ó¤«¤¤¤Ê¡©
(09:41)
_ Kim [Thanks for this <a href='https://wepurpleit.com/top-twice-..]
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)
¤³¤ìÉáÄÌ¤Ë 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)
·ë¶É¤Û¤È¤ó¤É¤Ï»°¤Ä¤ËʬÎà¤Ç¤¤ë¤è¤¦¤Êµ¤¤¬¤¹¤ë¡£ ¥¢¥«¥Ç¥ß¥Ã¥¯¤È¥Ó¥¸¥Í¥¹¤È¡¢¥³¥ó¥Ñ¥¤¥é²°¤È¡£ ¤Ç¤â¤½¤í¤½¤í¡¢¥¨¥Ç¥£¥¿¼ÂÁõ¤Î¼Â·Ð¸³¤Ë΢ÂǤÁ¤µ¤ì¤¿ ¿·¤·¤¤¸À¸ì¤¬À¸¤Þ¤ì¤ë»þ¤Ê¤ó¤À¤í¤¦¤Í¡£
¤³¤¦¤¤¤¦¤Î¸«¤Æ¤ë¤È¡¢ OCaml ¤Î¿äÏÀ¤·¤¿·¿¤È¤« ¼«Æ°Åª¤Ë½ñ¤¹þ¤Þ¤ì¤Æ¤Æ¤â¤¤¤¤¤è¤Ê¤¡¤È¤« »×¤Ã¤¿¤ê¤¹¤ë¤ï¤±¤Ç¤¹¤Ê¤¡¡£
¤Ç¤â } (while) ¤Ï¥À¥á¤À¤í¤ª
(20:42)
http://gogen-allguide.com/ho/bonus.html
http://ja.wikipedia.org/wiki/%E8%B3%9E%E4%B8%8E
(04:26)
¤µ¤¹¤¬5ʬ¤Ç¤¹¤Ð¤é¤·¤¤Æ¶»¡¤Ç¤¹
http://d.hatena.ne.jp/ytqwerty/20061208#p2
¤¤¤¤¤È¤³¤í¤Îɾ²Á¤âƱ´¶¤¹¤ë´¶¤¸¤Ê¤Î¤Ç¤¹¤¬¡¢ Æä˰¤¤¤È¤³¤í¤È¤«Ææ¤Ê¤È¤³¤í¤¬¤Þ¤µ¤Ë¤½¤ÎÄ̤ê¤À¤È»×¤¤¤Þ¤·¤Æ¡£
¤Ä¤Þ¤ê inout ¤É¤¦¤¹¤ë¤ó¤À¤í¤¦¤Ê¡¼¤È¤¤¤¦¤Î¤Ï Á´¤¯¤â¤Ã¤Æ¤½¤ÎÄ̤ê¤È¤¤¤¦¤«ºÇ¶á´Ø¿ô·Ï¤Ç Í·¤ó¤Ç¤ë¿Í¡¹¤Ï inout ¹Í¤¨¤Æ¤Í¡¼¤è¤Ê¡£
¤¿¤À instance ¤ÎÊý¤¬¹¥¤ß¤È¤¤¤¦¤Î¤Ï¡ª
¤È¤ê¤¢¤¨¤º¤¤¤â¤¦5ʬ¤ª´ê¤¤¤·¤Þ¤¹¤½¤·¤Æ¤½¤Î¤Þ¤Þ¤º¤ë¤º¤ë¤È¡£
(04:43)
¤É¤¦¸«¤Æ¤â¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¼ûÍפ¢¤ë¤Ê¡Ä¡ª FFI¤È¤«¥«¥¹¤ß¤¿¤¤¤Ê¼ûÍפÎʪÂκî¤Ã¤Æ¤ë¾ì¹ç¤¸¤ã¤Ê¤¤¤Î¤«¡£
(05:05)
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)
¤È»×¤Ã¤Æ HDD Æâõ¤¹¤â¸«¤Ä¤«¤é¤º¡£
http://maideriapress.web.fc2.com/UoT/UoT03.html
̱ÀĤȤ·¤Æ¡©
¤½¤·¤Æ¿·¤È¤«¤¢¤ë¤é¤·¤¤¡£ Èù̯¡£
ttp://maideriapress.web.fc2.com/UoT/img/newanti.jpg
(07:32)
¤Ê¤ó¤«¤³¤Îµ¡Ç½¤Ï¤¸¤á¤Æ¸«¤¿µ¤¤¬¤¹¤ë¤ó¤À¡Ä ¤È»×¤Ã¤Æ¤ß¤ó¥Ñ¥¤¸«¤¿¤éºÜ¤Ã¤Æ¤Ê¤«¤Ã¤¿¡£ ¾¤Îʸ¾Ï¤âÆɤó¤Ç¤ß¤¿Êý¤¬¤è¤µ¤½¤¦¤À¤Ê¤¡¡£
¤·¤«¤·¥Ç¥³¥ì¡¼¥¿¤âʸˡŪ¤Ë¤Ê¤ó¤«¤¤â¤¤¤Ê¤¡¡£ ¤¤¤ä¤³¤ì¤Ï¤³¤ì¤Ç¤¤¤¤¤ó¤À¤±¤É¡¢ ÀáÁब̵¤¤¤È¤Ï´¶¤¸¤ë¤È¤¤¤¦¤«¡£ ¤È¤¤¤¦¤ï¤±¤Ç°Ê²¼¤Ë̯¤Ë°ãÏ´¶¤¬¡£ ¸À¤Ã¤Æ¤ë¤³¤È¤Ï¤ï¤«¤ë¤ó¤À¤±¤É¡£
http://tabesugi.net/memo/2004/92.html#120951
(12:49)
¤³¤Î¥·¥ó¥Ü¥ë¤ò¤É¤¦ÆÀ¤ë¤«¡£¤Ê¤«¤Ê¤«¤à¤º¤«¤·¤¤¤Ê¤¡¡£
Á°È¾Éôʬ¤Ï typeid(TypeTuple!(int, int)); ¤Ç¤¤¤¤¤Ï¤º¡£ ¤ó¤Ç¤³¤ì¤¤¤Ã¤¿¤¤Á´ÂΤʤó¤Ê¤ó¤À¡£
(14:02)
(14:15)
¤ä¤ë¤¤¢¤ë¤Î
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)
#import<algo.h> char a[9];main(c){for(cin>>a;next_permutation(a,strchr(a,c||puts(a)))||c--;);}
¤³¤ì¤Ç¤¤¤¤¤ó¤¸¤ã¤Í¡¼¤È»×¤Ã¤¿²¶¤Ï¥´¥ë¥Õ¤ËÆǤµ¤ì¤Æ¤¤¤ë¤È»×¤Ã¤¿¡£
Åú¤¨: c ¤Î·¿¤¬Ìµ¤¤¡ª
(16:51)
¤ª¤»¡¼¤Æ¤â¤é¤¿
http://www-nsc.es.hokudai.ac.jp/~miya/beamer/beamer-memo.html
ÊØÍø¤½¤¦¤À¤Í¡¼
(18:35)
(19:58)
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)
Åܤé¤ì¤¿¡ä¡ã
¡ÖºÇ¶á¤ÏÁ´Á³¥Æ¥ì¥Ó¤â¸«¤Æ¤Ê¤¤¤Ê¤¢¡£º£¤É¤ó¤ÊÈÖÁȤ¬¿Íµ¤¤Ê¤Î¡×
¢ª¶¯¤¯¤·¤«¤ë
¤À¤Ã¤Æ¥×¥Á¥Ö¥ëŪ¤À¤·¡Ä
(04:25)
(06:00)
http://www.digitalmars.com/d/archives/digitalmars/D/announce/D_Conference_2007_5536.html
June ¤Ê¤éÅÏÊƤ·¤Æ¤ë³ÎΨ¹â¤½¤¦¤Ê¡£
(14:34)
ʸ»ú½ªÃ¼¼è¤ë¤Î¤Ë¶ìÏ«¤¹¤ë¤ó¤À¤±¤É¡¢ ¤¦¤Þ¤¤¤³¤È¥¹¥¿¥Ã¥¯¤Ë»Ä¤Ã¤Æ¤ëʸ»ú¿ô¤È¤«¤ò ¤Á¤å¤ë¡¼¤È¼è¤Ã¤Æ¤³¤ì¤Ê¤¤¤â¤ó¤«¤Í¤¨
(19:21)
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)
¤ä¤Ã¤È»È¤¤¤«¤¿¤Ë¹çÅÀ¤¬¤¤¤Ã¤¿¤è¡£
NameVirtualHost ¤Ï°ì²ó¤À¤± * ¤Ç½ñ¤¤¤Æ¡¢ ¸å¤Ï VirtualHost * ¤È ServerName hoge.example.com ¤È¤«¤Ç¡£
http://httpd.apache.org/docs/2.2/ja/vhosts/name-based.html
¤ä¤Ï¤ê¥É¥¥å¥á¥ó¥È¤Ï¤¤Á¤ó¤ÈÆɤޤʤ¤¤È¤¤¤±¤Þ¤»¤ó¡£
(21:54)
_ YT [¥á¡¼¥ë¡õ¤ªÍ¶¤¤¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÊÖ¿®¤¤¤¿¤·¤Þ¤·¤¿¡£ÌÞÏÀ¤½¤ÎÆɤߤÇÀµ²ò¤Ç¤¹¡£]
_ shinh [ÊÖ¿®¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ º£¸å¤Ï¥á¡¼¥ë¤ÈƱ»þ¤Ë¤³¤³¤Ë¥á¡¼¥ëÅꤲ¤Þ¤¹¤¿&&¥ê¥ó¥¯¤Ï¤Ã¤Æ¥ê¥Õ¥¡¥é¤Çº¯Àפò»Ä¤¹¤Ê¤É¤Î¹©É×..]
_ YT [¤¤¡¢¤¤¤ä¡Ä¡Ä¤½¤³¤Þ¤Ç¤·¤Æ¤¤¤¿¤À¤«¤Ê¤¯¤Æ¤â(Âç´À ¤³¡¢º£²ó¤Ï¥µ¥ó¥À¡¼¥Ð¡¼¥É¤â¥¸¥ã¥ó¥¯¥á¡¼¥ë°·¤¤¤·¤Þ¤»¤ó¤Ç¤·¤¿¤·¤Ã¡£]
¤Ê¤ó¤«¡¢ template ¤Ç ¤¤¤Ã¤¿¤ó̾Á°¶õ´Ö¤ÇÀÚ¤ì¤Æ¤ë¤Î¤¬¡¢ ¤³¤ì¤¬¤Þ¤¿¤Ê¤ó¤«ÉԻ׵ĤÊÍÍÑÀ¤òȯ´ø¤·¤Æ¤¤¤ë¤è¤¦¤Ê¡£ µ¤¤Î¤»¤¤¤«¤Ê¤¡¡£
writefln!("hoge %s")("hage") ~~~~~~~~~~~~~~~~~~~~ ¤³¤³¤Þ¤ÇÀÅŪ¡ª¤Ã¤Æ¤¹¤´¤¯¤ï¤«¤ê¤ä¤¹¤¤¤È¤¤¤¦Ïä⤢¤ë¤·¡Ä
¤Þ¤¢¤Í¤à¤¤
(03:44)
¥Á¥ã¡¼¥Ï¥ó¤òºî¤ê¤Þ¤·¤¿¡£ ¤¿¤Þ¤Í¤®¤â¤Ë¤ó¤Ë¤¯¤â¤Ê¤«¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ ÌýÆþ¤ì¤ÆÊÆÆþ¤ì¤ÆŬÅö¤Ë¤¤¤¸¤Ã¤Æ¤«¤é¡¢ »×¤¤½Ð¤·¤¿¤è¤¦¤Ë¥³¥·¥ç¥¦¤ò¤«¤±¤Æ¡¢ »×¤¤½Ð¤·¤¿¤è¤¦¤ËÂë¤ÎÄޤȡ¢ ¤Ê¤ó¤Ç¤â¤ª¤¤¤·¤¯¤¹¤ëÉԻ׵ĤÊÌý¤Ç¤¢¤ë¤È¤³¤í¤Î ¥´¥ÞÌý¤òÆþ¤ì¤Æ¡¢Å¬Åö¤ËÍñÆþ¤ì¤Æ¡¢ ¥·¥ç¥¦¥æ¤ò½¬¤Ã¤¿Ä̤ê¤Ë¤Á¤ç¤Ã¤È ¾Ç¤¬¤·¤Æ¤«¤é¤¬¡¼¤Èº®¤¼¤¿¤é¤ª¤¤¤·¤¤¥Á¥ã¡¼¥Ï¥ó¤Î¤Ç¤¤¢¤¬¤ê¡ù
¤ª¤¤¤·¤«¤Ã¤¿¤Ç¤¹¤¬¡¢¥¿¥Þ¥Í¥®¤¢¤Ã¤¿¤éÎɤ«¤Ã¤¿¤Î¤Ë¡£
(04:24)
D ¤Î pragma msg ¤ò»È¤Ã¤Æ¡¢ 0Byte °Ê¾å¤Î compile time quine ¤òºî¤ë¤³¤È¤Ï¤Ç¤¤ë¤«¡£
ËͤϤǤ¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤È»×¤Ã¤¿¡£ ¤È¤¤¤¦¤Î¤Ï pragma msg ¤ÎºÇ¸å¤Ë¡¢¾¡¼ê¤Ë²þ¹ÔÆþ¤ë¤Î¤¬Äˤ¹¤®¤ë¡£ ¤µ¤é¤Ë¡¢ pragma msg ¤Ë¤Ï·×»»·ë²Ì¤òÅϤ»¤Ê¤¤¡£
¤·¤«¤·¡¢¤¤¤ä¡¢¤Ç¤¤ë¤È¤Ï»×¤¦¤ó¤À¡£
(05:04)
(05:26)
¹â¹»¤Î»þ¤Îͧã¤Ë³ÎΨ¤ÎÌäÂ꤬¿¤«¤Ã¤¿¤±¤É ¿ô³Ø¤ÎÌäÂê¤ò½Ð¤·¤Æ¤¯¤ë¿Í¤¬¤¤¤Æ¡¢ ¤½¤Î¿Í¤¬½Ð¤·¤Æ¤¤¿ÌäÂê¤òÃë´Ö¹Í¤¨¤Æ¤ï¤«¤ó¤Ê¤«¤Ã¤¿¤é¡¢ ÌÀÆü¤Þ¤ÇÂԤäƤ¯¤ì¤½¤·¤¿¤éÅú¤¨¤Ï½Ð¤»¤ë¤È¤«¸À¤Ã¤Æ¡¢ ŬÅö¤Ë¥×¥í¥°¥é¥àÁö¤é¤»¤Æ¤ª¤é¡¼Åú¤¨¤Ï½Ð¤¿¤¼ ²òÀÏŪ¤Ê²óÅú¶µ¤¨¤í¡¢¤È¤«¤ä¤Ã¤Æ¤¿¤Î¤ò»×¤¤½Ð¤·¤¿¡£
Åú¤¨¤¬½Ð¤Æ¤ì¤Ð²òÀÏŪ¤Ê²óÅú¤Ï ¤ï¤«¤ó¤Ê¤¯¤Æ¤â¤È¤ê¤¢¤¨¤ºÎɤ·¤È¤·¤Æ¤¤¤¿ »×¹Í¤¬ÌÌÇò¤¤¤Ê¤¡¤È¤Õ¤È¡£ ¤½¤·¤Æº£¤â¤¢¤Þ¤ê¤½¤Î»ÑÀª¤ÏÊѤï¤Ã¤Æ¤Ê¤¤¤Ê¤¡¡£
¤³¤ì¤À¤«¤é²¶¤Ï
(06:54)
import std.stdio; class HelloWorld {} void main() { writefln(typeid(HelloWorld)); }
Imaichi
http://d.hatena.ne.jp/nazodane/20061205/1165316504
(07:36)
¤¤¤ä¤½¤ì¤Ï TODO ¤Ç¤Ï¤Ê¤¤¤Î¤À¤¬¡£
http://shinh.skr.jp/m/?date=20061119#p07
estutf.cgi ¤Ë @mdate STRD ¤ò¤Ä¤±¤Æ¤ª¤¤¤¿¡£
(08:40)
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)
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)
import std.stdio; class HelloWorld {} void main() { typeid(HelloWorld).print(); }
¤Ê¤ó¤«°ã¤¦¤Ê¤È»×¤Ã¤¿¤ó¤À¡£
http://shinh.skr.jp/m/?date=20061206#p08
(20:48)
(23:33)
_ kik [¿ô³Ø²°¤¬¤è¤¯¤ä¤ë¤è¤¦¤Ë¡¢´Ø¿ô¤Î°ú¿ô¤ò F(x,y;a,b)¤ß¤¿¤¤¤Ë¡Ö;¡×¤Ç¶èÀڤ줿¤é¤¤¤¤¤Î¤Ë¤Ê¡¼¡£¡Ö;¡×¤è¤ê¸å¤í¤ÏÀÅ..]
_ shinh [¤è¤¯¹Í¤¨¤ë¤È C++ ¼°¤Î writefln<"hello %s">("world"); ¤ÎÊý¤¬(C++¤Ç¤Ï¤³¤ì¤Ç¤..]
_ kik [²òÀÏŪ¤Ã¤Æ¤ó¤Ê¤é¤½¤ó¤Ê´¶¤¸¤Î¼°¤Ë¤Ê¤ì¤Ð¤¤¤¤¤«¤Ê¡£ ¤Ç¤â¡¢¤½¤³¤ÎLISP¤Î¼°¤Ã¤Æ¤¢¤Ã¤Æ¤ë¤Î¤«¤Ê¤¢¡© ¡Ön²ó°ú¤¤¤Æ12¼ï..]
_ shinh [¤¦¡¼¤ó¡£¤Ò¤ç¤³¤Ò¤ç¤³Æ¬¤Ò¤Í¤Ã¤Æ¤¿¤ó¤Ç¤¹¤¬¤¦¤Þ¤¯¤¤¤«¤º¡£¤È¤¤¤¦¤«º£Æ¬¤À¤ë¤¤¤Î¤Çº£Åٹͤ¨¤Þ¤¹¤ë¡Ä ¤È¤¤¤¦¤«¸µµ¤¤è¤¯¤Æ¤â¤ï..]
¤È¤ê¤¢¤¨¤º 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)
¤³¤ó¤Ê¤Î¤¢¤ë¤Î¤«¡¼¡£
http://www.google.co.jp/search?hl=ja&safe=off&q=nyud.net&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=lang_ja
(01:53)
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)
ÀÛ¼Ô¤Ë¤Ï 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)
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 : ¡Úȯ²»¡Û©æ©Ê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)
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)
¤¢¤Ã¤µ¤ê 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)
¤è¤¯¤¢¤ë¤³¤ó¤Ê¥³¡¼¥É¡£
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)
º£¸å¤Î D ¤Ë¤Ï¥Í¥¤¥Æ¥£¥Ö¸À¸ì¤«¤Ä ¤Ê¤ó¤Æ¤¤¤¦¤ó¤À¤¢¤ì¡¢ÀÅŪ¤Ë´Ø¿ô¹´Â«¡©¤¹¤ë¸À¸ì¤Ë¤ª¤±¤ë ¥é¥ó¥¿¥¤¥à¾ðÊó¤Î¤³¤ì¤«¤é¡¢ ¤ß¤¿¤¤¤Ê¤Î¤ò¸«¤»¤Æ¤â¤é¤¤¤¿¤¤¤Î¤Ç¤¹¡£
¤¼¤Ò¥é¥¤¥Ö¥é¥ê¤Ç·Ñ³½ñ¤±¤ë¸À¸ì¤È¤«¤Ë¤Ê¤Ã¤ÆÍߤ·¤¤¤â¤Î¤Ç¤¹¡£
(16:24)
ºÇ¶á¥Í¥¿¥¹¥¯¥ê¥×¥È¸À¸ìºî¤í¤¦¤È»×¤Ã¤Æ¤¿¤«¤é LISP ¤«¤Ö¤ì¤·¤Æ¤¿¤Î¤«¡ª
¤¤¤ä LISP ¥»¥ß¥Ê¡Á¤Ç¤Þ¤µ¤Ë¤½¤ó¤ÊÏäòʹ¤¤¤¿¤«¤é¤Êµ¤¤â¤¹¤ë¤±¤É
(18:02)
http://d.hatena.ne.jp/colun/20061203#p1
Windows ¤À¤È¼«¸Ê½ñ¤´¹¤¨¤¬¥¢¥ì¤È¤«¡£ º£ÅÙ¤ä¤Ã¤Æ¤ß¤è¤¦¡£ ¤½¤ÎÏäÎÇØ·Ê¤Ï shuJIT ¤À¤í¤¦¤±¤É¡¢ JVM ¤Î JIT ¤È¤«¤½¤¤¤¦´Ä¶¤Ç¤ä¤ë¤ÈÂçÊѤʤΤ«¤Ê¤¡¡£
¤¢¤È NULL ¤¬ C++ ¤Ç¡Ä¤Ï¤Þ¤µ¤Ë¤½¤¦¤À¤Ê¤¡¡£ ¤¢¤ÈÆɤ߹þ¤ß¤µ¤ì¤Æ¤Ê¤¤¤È¤«¤â¤Þ¤µ¤Ë¤½¤¦¤À¤Ê¤¡¡£
(00:02)
¥á¥â¼è¤ê¤Î¥¢¥É¥ì¥¹¤òÉáÄ̤˽ñ¤¤¤Æ¤Æ¥¢¥Û¤«¤È¤ï¤é¤¿¡£ ¥¹¥Ñ¥àÍ褿¤éÌÌÇò¤¤¤Ê¤¡¡£ ¤Þ¤¡º£¤Î¤¦¤Á¤Ë From À©¸Â¤«¤±¤È¤¯¤«¡£ ¤Æ¤¤¤¦¤«´û¤Ë¤«¤«¤Ã¤Æ¤¿¤Ã¤±¡£
(00:03)
¤è¤¯¸«¤ë¤Ê¤¡¤È»×¤Ã¤ÆÄ´¤Ù¤¿¡£
¢£kinda : ¡Úȯ²»¡Ûk©×in(d)«°(¥«¥¤¥ó¥À¡¼)¡¢¡Ú¥ì¥Ù¥ë¡Û6 ¡ÚÉû¡Û=kind of¡¢´öʬ¡¢¤Á¤ç¤Ã¤È¡¢¤¢¤ëÄøÅÙ¡¢¤«¤Ê¤ê
¤Ê¤ë¤Û¤É kind of ¤ÏÊØÍøɽ¸½¤À¤è¤Ê¤¡¡£ ÌäÂê¤Ï kinaba ¤È¶õÌÜΨ100%¤Ê¤³¤È¤Ç¤¹¤¬¡£
(01:06)
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)
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)
¤ª¡¼¤³¤¦¤¤¤¦¥¤¥Ç¥£¥ª¥à¤¬¡£
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)
NII ¤«¤é¾¤ËÁ÷¤ëÍѤΥ°¥ê¡¼¥Æ¥£¥ó¥°¥«¡¼¥É¤È¤ä¤é¤¬ Á÷¤é¤ì¤Æ¤¤¿¤ó¤À¤±¤É¡¢ ÆüËܤ¬³Ë¹¶·â¼õ¤±¤Æ¤ë¤È¤·¤«»×¤¨¤Ê¤¤³¨ÊÁ¤À¤Ã¤¿¡£
(14:14)
µ¶Áõ¤È¡¢´ÉÍý¼Ô¤Î̵ÃÎ/ÂÕÂƤˤè¤ë ´ü¸ÂÀÚ¤ì¤Î¶èÊ̤¬¤Ä¤«¤ó¤Î¤¬¤¿¤Ö¤ó¡¢ ¥»¥¥å¥ê¥Æ¥£¤Î¿ÍŪ¤Ë¥·¥å¥Ã¥·¥å¥Ã¤Ê¤ó¤À¤È»×¤¦¤ó¤À¤±¤É¡£
´ü¸ÂÀÚ¤ì¤È¤«¡¢Ã±¤Ê¤ë GET ¤Ç¥Ö¥é¥¦¥¶¤¬ ¤¤¤Á¤¤¤Á¶¯¤¤·Ù¹ð½Ð¤¹¤«¤é¤¤¤«¤ó¤Î¤«¤Ê¤¡¡£ ¤Ö¤Ã¤Á¤ã¤±´ü¸ÂÀÚ¤ì¤Î¾ÚÌÀ½ñ¤È¤«¤Ã¤Æ¤Û¤Ü°ÂÁ´¤Ê¤ó¤¸¤ã¤Ê¤¤¤Î¤È¤«¡£ ǧ¾Ú¶ÉÄ̤äƤʤ¤¾ÚÌÀ½ñ¤ËÂФ·¤Æ¡¢ ¥Ñ¥é¥á¡¼¥¿¤òÅϤ¹¾ì¹ç¤Ë¸Â¤Ã¤Æ¡¢ ¤Ê¤ó¤«¶¯¤¤·Ù¹ð½Ð¤¹¤È¤«¤Ê¤é¤½¤ó¤Ê¤Ë¤¦¤Ã¤µ¤¯¤Ê¤¤¤·¡¢ ¥é¥¤¥È¤Ê¥æ¡¼¥¶¤âµ¤¤ò¤Ä¤±¤ë¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¤È¤«¡£
CAVE¼°¤Ë
¤³¤ÎÀè¤Ë¤Ï¡¢Ë½ÎÏŪ¤Çµ´¤Î¤è¤¦¥ª¥ì¥ª¥ì¾ÚÌÀ½ñ¤¬¤¢¤Ê¤¿¤òÂԤäƤ¤¤Þ¤¹¡£ ¤½¡¦¤ì¡¦¤Ç¡¦¤â¡¦Àè¤Ë¿Ê¤ß¤Þ¤¹¤«¡£ YES > NO
¤¯¤é¤¤¤ä¤ì¤Ð¤¦¤¶¤¯¤Æ¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤«
(14:30)
(14:30)
http://www.typemiss.net/blog/kounoike/20061204-115
Ê̲ò¤¬°Å¹æ¤À¤Ê¤¡¤¹¤´¤¤¡£
¤È¤³¤í¤Ç Code Golf ¤Î¥ë¡¼¥ë¤Ç¤¹¤¬¡¢ ¡Ö½ÐÎϤκǽé¤Ë²þ¹Ô¤òÆþ¤ì¤Æ¤¤¤¤¡×¤È¤¤¤¦¤Î¤¬ ¤¢¤ë¤È¤¤¤¦¤Î¤Ï°Æ³°ÃΤé¤ì¤Æ¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£
(20:15)
¤Æ¤Ê¤ó¤«¤Í¡¼¤Èʹ¤¤¤Æ¤ß¤¿¤é¡¢ 2ch¤Ç¥Ø¥ó¤Êµ¤¤¬¤¹¤ë¤È¤¤¤Ê¤Ð¤µ¤ó¤¬¤ª¤Ã¤·¤ã¤Ã¤Æ¤¤¤¿ ³Ø¹»¤Îɾ²Á¤À¤í¡¼¤Í¤È¤¤¤¦Ïä餷¤¯¡£ ¤Ê¤ó¤« US ¤À¤È ABCDF ¤È¡¢ D ¤ÏÆüËܤǸÀ¤¦ C ¤È¤«²Ä¤Ê¤Î¤Ç¡¢ ¥×¥í¥°¥é¥ß¥ó¥°¤Îñ°ÌÉԲĤ¸¤ã¤Ê¤¯¤Æ¤è¤«¤¿¡¼¤È¤¤¤¦¡¢ D ¤Î°ÕÌ£¤¬°ã¤¦°Ê¾åÌõ½ÐÉÔǽ¤Î°ÕÌ£¤Ê¤Î¤«¤Ê¤¡¤È¤¤¤¦´¶¤¸¤À¤Ã¤¿¡£ ¤¿¤·¤«¤Ë Segfault ¤µ¤ó¤Æ̾Á°¤Î»þÅÀ¤Ç¤Ê¤ó¤« À®ÀÓ°¤½¤¦¤Ê¤ï¤±¤Ç¤½¤ó¤Ê´¶¤¸¤Ê¤Î¤«¤Ê¤¡¤È¡£
¤¢¤ÈÆüËܤÎɾ²Á¤Ï SABC ¤¸¤ã¤Í¡¼¤Î¤«¤È¤«¸À¤ï¤ì¤¿¡£ ¥²¡¼¥àÂç¹ñ¡ª¡ª
(20:35)
00: A, 01: B, 10: C, 11: D ¡¢ ¤Ç¤¹¤«¤é¡¢ 1·î1Æü¤¬ D ¤ÎÆü¤È¤¤¤¦¤Î¤âǼÆÀ¤¬¤¤¤¤Þ¤¹¡£ ²¿¤ò±£¤½¤¦¡¢ C89 ¤Ï 1·î0Æü¤Ë¥ê¥ê¡¼¥¹¤µ¤ì¤Þ¤·¤¿¡£
(21:20)
http://d.hatena.ne.jp/giveup/20061204#1165241449
if (argc < 99) return 0;
¤È¤«¤Ç¤Ê¤ó¤È¤«¤Ê¤ë¤±¤É¡¢ ¥¹¥¿¥Ã¥¯¤ÎÄ´À°¤¬¤Ê¤¡¡£
memcpy(&main, &&l+???, 15);
¤È¤«¤ÇÆ°¤¯¤È¤«¤Ã¤³¤¤¤¤¤±¤É¡£
(23:32)
_ k.inaba [¡ÖD¤Ã¤Æ°¤¤À®ÀӤʤϤº¤À¤«¤é¤è¤¯¤ï¤«¤é¤ó¤Ê¤¢¡×¢ª¡Ö¤È¤ê¤¢¤¨¤ºÄ¾Ìõ¤·¤È¤±¡×¢ª¡Ö2ch¤ÇÊ̤βò¼á(Dimension)¤¬..]
_ shinh [¤Ê¤ë¤Û¤É¡£¸Ä¿ÍŪ¤Ë¤ÏÌõ¤»¤ë¤â¤Î¤ÏÌõ¤·¤Æ¤â¤é¤Ã¤¿Êý¤¬¤ï¤«¤êÎɤ¤µ¤¤¬¤·¤Þ¤¹¡£º£¸«¤Æ¤ß¤¿¤ó¤Ç¤¹¤¬¡¢ blockquote ..]
_ LETTER [ÌÌÇò¤½¤¦¤À¤Ã¤¿¤Î¤ÇFirefox¤Î³ÈÄ¥¤ò½ñ¤¤¤Æ¤ß¤Þ¤·¤¿¡£ http://d.hatena.ne.jp/letter/..]
_ shinh [¤ª¤ª¤ª¤¹¤Ð¤é¤·¤¤¡£¤µ¤Ã¤½¤¯Æþ¤ì¤Æ¤ß¤Þ¤·¤¿¡£¤³¤ó¤Ê°ÛÍͤʥá¥Ã¥»¡¼¥¸¤¬½Ð¤ì¤Ð¤µ¤¹¤¬¤Ë¤Ó¤Ó¤ê¤Þ¤¹¤Í¡ª ¤¢¤È¡¢¡Ö¤³¤ó¤Ê¤¢¤ä¤·..]
_ ¥¢¥ê¥Ð¥¤²ñ¼Ò [Ä̤ꤹ¤¬¤ê¤Ç¤¹¡£ <a href=http://dmajor.info/>¥¢¥ê¥Ð¥¤²ñ¼Ò</a>]
Á° | 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 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£
_ kosaki [¤´¤á¤ó¡¢¤ª¤â¤í²èÁü¤Ï¤¹¤´¤¤¥á¥ó¥É¥¤¤Í¤ó¡£ ¥Í¥¿²èÁü¤Î¼ý½¸¤âº¬µ¤¤¤¤ë¤·]
_ shinh [¤¨¤¨¤¹¤¤¤Þ¤»¤ó¤¢¤ìÂçÊѤ½¤¦¤À¤Ê¡Ä¤È»×¤¤¤Ä¤Ä¤â³Ú¤·¤ß¤Ë¤¹¤ëÀ¼¤¬»ä¤ÎÃæ¤Ë¤¢¤ë¤è¤¦¤Ê¤½¤¦¤¤¤¦¡£]