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

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

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

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

¤ªÌ¾Á°:
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