¥È¥Ã¥× ºÇ¿· Äɵ­

ËÜ Æü ¤Î h o g e

hoge¤È¤Ï¥ï¥¤¥ë¥É¥«¡¼¥É¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¹¡£Æü¡¹µ¯¤³¤Ã¤¿¡¢¤µ¤Þ¤¶¤Þ¤Ê¤³¤È ¡Ý¤¹¤Ê¤ï¤Á¥ï¥¤¥ë¥É¥«¡¼¥É¡Ý ¤ò¼è¤ê¾å¤²¤ÆÆüµ­¤ò½ñ¤¯¡¢¤È¤¤¤¦°ÕÌ£¤Ç̾ÉÕ¤±¤¿¤Î¤«¤È¤¤¤¦¤È¤½¤¦¤Ç¤â¤¢¤ê¤Þ¤»¤ó¡£Å¬Åö¤Ë·è¤á¤¿¤é¤³¤ó¤ÊÍýͳ¤¬É⤫¤ó¤Ç¤­¤Þ¤·¤¿¡£

¹¹¿·¾ðÊó¤Î¼èÆÀ¤Ë¤Ï rdf ¤« lirs ¤ò»È¤Ã¤Æ¤â¤é¤¨¤ë¤È´ò¤·¤¤¤Ç¤¹¡¥


09/03/2007 ¤Õ¤à [ĹǯÆüµ­]

tDiary 1775ÆüÌÜ

¢£ [Py] ʸ»ú¥³¡¼¥É¤È¤«

>>> a = '¤¢'
>>> ord(a[0]) == 0xa4
True
>>> ord(a[1]) == 0xa2
True

¤Ê¤ë¤Û¤É¡¤¤½¤ê¤ãÆüËܸì¤Ç¤â¤Ç¤­¤ë¤ï¤Ê¡¥¤Á¤Ê¤ß¤Ë¤³¤ì¤Ï euc-jp ¤Î¾ì¹ç¡¥

Perl ¤È¤«¤Ç¤è¤¯ pack ¤·¤ÆÀµµ¬É½¸½¤Ç¤Ò¤Ã¤«¤±¤Æ¡Ä¡Ä¤Æ¤Ê¤³¤È¤ò¤ä¤Ã¤Æ¤ë¤Î¤ò¤½¤Î¤Þ¤Þ Python ¤Ç¤ä¤í¤¦¤È¤¹¤ë¤È·ë¹½¤á¤ó¤É¤¤¤³¤È¤â¤¢¤ë¤Î¤Ç¡¤¤³¤¦¤¤¤¦¤ä¤êÊý¤Ç¤Ç¤­¤ë¾ì¹ç¤Ï¤³¤ì¤Ç¤âÎɤµ¤½¤¦¡¥

¤¿¤À IndexError ¤ä 3 ¥Ð¥¤¥È¥³¡¼¥É¤ËÃí°Õ¤«¤Ê¡¥


09/05/2007 ¤à¤à [ĹǯÆüµ­]

tDiary 1777ÆüÌÜ

¢£ [Æüµ­] ¤à

¹ç¤ï¤Ê¤¤·¤¤òÍú¤¤¤ÆĹ»þ´Ö²æËý¤·¤ÆÊ⤯¤Ê¤ó¤Æ¤³¤È¤ò¤·¤Æ¤Ï¤¤¤±¤Ê¤¤¡¥

¤³¤ìŻ­¤¸¤ã¤Í¡©¤È¤«»×¤¤¤Ä¤Ä°ìÊâ°ìÊ⤬·ãÄˤʤΤò²æËý¤·¤¿·ë²Ì¡¤¸«»ö¤ËÄÞ¤ÎÃæ¤Ë·ìƦ¤¬¡¥


09/06/2007 ¤à¤¦ [ĹǯÆüµ­]

tDiary 1778ÆüÌÜ

¢£ [Æüµ­][¾®¥Í¥¿] ½é²»¥ß¥¯¤¹¤²¤§

ÁÔÂç¤Ë¥ï¥í¥¿¡¥

¤¢¤¢

¤Ä¤¤¤Ç¤Ë¤µ¤Ã¤­ 2 ʬ¤Ç¤Ç¤Ã¤Á¤¢¤²¤¿ tDiary ¥×¥é¥°¥¤¥ó nicovideo.rb ¤ò°Ê²¼¤Ë¡¥

unless @conf.mobile_agent?

def nicovideo( id, title = nil )
    raise 'not nicovideo id' unless /^[a-z]{2}\d+$/ =~ id

    title ||= "[nicovideo(#{id})]"

    %Q[<iframe width="312" height="176"
        src="http://www.nicovideo.jp/thumb/#{id}"
        scrolling="no" style="border:solid 1px #CCC;"
        frameborder="0">#{title}</iframe>]        
end

end

kou ¤µ¤ó¥Ñ¥Ã¥ÁÅö¤Æ¤¿¡¥

¢£ [Æüµ­] ÂæÉ÷¤Ò¤Ç¤§

½é²»¥ß¥¯¤¹¤²¤§¤È¤«½ñ¤¤¤Æ¤ë¾ì¹ç¤¸¤ã¤Ê¤¤¡¥

Åżֻߤޤ俤ó¤ÇÊ⤤¤Æµ¢¤Ã¤¿¤é»±¤¬»à¤ó¤À¡¥

¤·¤«¤·¤½¤³¤éÃæ¤Ë²õ¤ì¤¿»±¤¬Íî¤Á¤Æ¤¿¤Î¤Ï¥ï¥í¥¿¡¥¹ü¤À¤±¤Ë¤Ê¤Ã¤Æ¤ë¤ä¤Ä¤È¤«¡¤°ìÂΤɤó¤Ê²õ¤ìÊý¤·¤¿¤ó¤À¤è¡¥

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

¢¢ kou [str¤òid¤ËÊѤ¨¤Æ¡¢ title = ""¤òtitle = nil¤ËÊѤ¨¤Æ if title.empty? t..]

¢¢ atzm [¤¢¡¼¤Ê¤ë¤Û¤É¡¤¤½¤Ã¤Á¤Î¤¬åºÎï¤Ç¤¹¤Í¡¥ ̵°Õ¼±¤Ë·¿¤òÅý°ì¤·¤Æ¤·¤Þ¤¦É¤Ǥ¹¡¥ ]

¢¢ kou [¤¹¤²¡¼¡ª ÆüËܸì¥Ñ¥Ã¥ÁÄ̤ä¿¡ª¡ª¡ª diff¥¹¥Æ¡ª ]

¢¢ atzm [ÆüËܸì diff ¥×¥í¥»¥Ã¥µ atzm ¤¬ºîÆ°¤·¤Þ¤·¤¿¡¥ ]


09/07/2007 ¤à¤¦ [ĹǯÆüµ­]

tDiary 1779ÆüÌÜ

¢£ [Æüµ­] ¤¢¡¼

¹Í¤¨¤ì¤Ð¹Í¤¨¤ëÄø¥¤¥é¤Ä¤¯ç¥¤ËÍî¤Á¤Ê¤¤¾õÂ֤ǡ¤¹Í¤¨¤Ê¤¤¤è¤¦¤Ë¤È»×¤Ã¤Æ¤âƬ¤ò¤è¤®¤ë¡¥

¤³¤ì¤Ï¥Ï¥²¤ë¡¥


09/09/2007 ¤à¤¦ [ĹǯÆüµ­]

tDiary 1781ÆüÌÜ

¢£ [Æüµ­] ¥¤¥ó¥É

¥Ð¥é¥â¥ó¡¤¥·¥å¡¼¥É¥é¡¤¤¢¤È²¿¤À¤Ã¤±¡© ¤È¤Õ¤Èµ¤¤Ë¤Ê¤Ã¤ÆÄ´¤Ù¤Æ¤ß¤¿¤é¡¤¥«¡¼¥¹¥È¤Ã¤Æº£¤â¤¢¤ë¤â¤Î¤À¤Ã¤¿¤Î¤Í¡¥ÀΤ¢¤Ã¤¿¤À¤±¤Çº£¤Ï¤Ê¤¤¤â¤Î¤Ê¤Î¤«¤È»×¤Ã¤Æ¤¿¡¥¤Ç ¥Ò¥ó¥É¥¥¡¼¶µ¡¤¥«¡¼¥¹¥È¡¤¥À¥Ø¡¼¥º¡¤¤ÈÆɤ߿ʤá¤Æ¤¤¤Ã¤¿¤ó¤À¤±¤É¡¤¤Þ¤µ¤Ë¥¤¥ó¥É¶²¤ë¤Ù¤·¡¥

¤¤¤«¤ËÆüËܤ¬Ê¿Ï¤«¤È¤¤¤¦¤³¤È¤¬¤è¤¯Ê¬¤«¤ë¡¥


09/12/2007 ¤à [ĹǯÆüµ­]

tDiary 1784ÆüÌÜ

¢£ [Æüµ­] ¤à

¥Ç¡¼¥¿Íѥǥ£¥¹¥¯¤òÀ°Íý¤·¤Æ¤¿¤é¡¤³ØÀ¸¤Î»þ¤Î°û¤ß²ñ¼Ì¿¿¤¬ÂçÎ̤˽ФƤ­¤¿¡¥

¤·¤«¤·Âð°û¤ß¼Ì¿¿¤Ï´í¸±¤Ê¤Î¤¬Â¿¤¤¤Ê...

¢£ [Æüµ­] ¤¦¤à

gdb ¤¬¥Ð¥Ã¥¯¥È¥ì¡¼¥¹¤ò¤·¤¯¤ë¤³¤È¤â¤¢¤ë¡¥

¤½¤¦¤¤¤¦»þ¤Ï info registers ¤È x ¤È disass ¤ò¶î»È¤·¤Æ¡¤¼«ÎϤǥ¹¥¿¥Ã¥¯¤òÁ̤ì¤ÐÎɤ¤¡¥

¤È¤¤¤¦¤³¤È¤ò¼Â±é¤ò¤Þ¤¸¤¨¤Æ¶µ¤ï¤Ã¤¿¡¥

¤³¤ì¤À¤è¤³¤ì¡¥²¶¤Ï¤³¤¦¤¤¤¦¤Î¤Ëµ²¤¨¤Æ¤¿¤ó¤À¤è¡¥

¤ª±¢¤Ç¤¹¤²¡¼¥â¥Á¥Ù¡¼¥·¥ç¥ó²óÉü¤·¤¿¡¥


09/14/2007 ¤à [ĹǯÆüµ­]

tDiary 1786ÆüÌÜ

¢£ [µº¸À] ¤ä¤Ù¡¼

¤Þ¤¸¤Ï¤²¤ë

¤Ä¤«

ÌÀ¤é¤«¤Ë²¶¤Î¼ºÇÔ¡¥²¶¤Þ¤¸ÀÞ¾×ǽÎϤʤµ¤¹¤®¡¥


09/15/2007 ¤à [ĹǯÆüµ­]

tDiary 1787ÆüÌÜ

¢£ [µº¸À] ¤¢

¤Þ¤¿ cc ˺¤ì¤¿¡¥¤ä¤Ù¡¥

¢£ [Py] ¤à

µ×¤·¤Ö¤ê¤Ë PyGTK ¤Ê¤ä¤Äµ¯Æ°¤·¤¿¤é²¿¤«¥¨¥ó¥³¡¼¥É¼þ¤ê¤ÇÎã³°ÅǤ¤¤¿¤Î¤Ç½¤Àµ¤·¤Æ¥³¥ß¥Ã¥È¤·¤¿¡¥

¼Â¤Ë 2 ǯ¿¶¤ê¤È¤¤¤¦...


09/18/2007 ¤à¡¼ [ĹǯÆüµ­]

tDiary 1790ÆüÌÜ

¢£ [É÷Çî»Î] º£·î¤Î¥×¥í¥¸¥§¥¯¥È

½Ð¤¿¡¥

¤ä¤Ã¤Ñ;·×¤Ê¤³¤È½ñ¤­¤¹¤®¤Æ¤ë¤è¤Ê¤¢...

¢£ [Æüµ­] ¤à¤¦

¥µ¥ó¥À¡¼¥·¥ç¥Ã¥È Jr. ¤ò¥«¥Ã¤È¤Ê¤Ã¤ÆÇã¤Ã¤Æ¤·¤Þ¤Ã¤¿¡¥

¥Ï¥¤¥¹¥Ô¡¼¥É¥®¥ä¤¬¤¦¤Þ¤¯Æþ¤é¤Ê¤«¤Ã¤¿¤Î¤Ç (¤É¤¦¤ä¤é¤³¤Î¥·¥ã¡¼¥·¤Ç¤ÏÆþ¤é¤Ê¤¤¤Ã¤Ý¤¤) ŬÅö¤Ë¥Ë¥Ã¥Ñ¡¼¤Ç¥â¡¼¥¿¡¼¼þ¤ê¤ò¤Ð¤Á¤Ð¤ÁÀڤäƤ¿¤é¡¤¸«»ö¤Ë¤Ö¤Ã²õ¤·¤Æ¤·¤Þ¤Ã¤¿¡¥

ÁȤßΩ¤Æ»Ï¤á¤Æ¤«¤é¤ª¤è¤½ 15 ʬ¡¥

¤¢¤¢¤¢¡Ä¡Ä¡¥

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

¢¢ ¤·¤¨¤ó [Æù¿²á¤®¤ÆÊ®¤¤¤¿£÷ ]

¢¢ mpet [°Â¤¤µíÆù¤ò¥­¥¦¥¤¡Ê¥Ñ¥¤¥Ê¥Ã¥×¥ë¡Ë¤òËá¤êÄÙ¤·¤¿²Ì½Á¤Ë£±£µÊ¬¼åÄÒ¤±¤ë¤ÈÄø¤è¤¤Æð¤é¤«¤µ¤Ë¤Ê¤ê¤Þ¤¹¤ç¡£¡Ê¥­¥¦¥¤·ÐÈñ¤Ç¥ï¥ó¥é¥ó..]

¢¢ atzm [> ¤·¤¨¤ó»Õ ¤½¤ì¤³¤½¤¬ËܼÁ¡¥ > mpet ¤¿¤ó ¥ª¥¤¥ª¥¤¡¤¥¯¥ê¥¢¥Ü¥Ç¥£¤È¸À¤Ã¤Æ¤¯¤ì¤¿¤Þ¤¨¤è¡¥ ]

¢¢ mpet [¥·¡¼¥¹¥ë¡¼¡Ä­ô(¡¬§¥ ¡¬;)¥Ï¥¥ ¢¨¤¿¤·¤«²áµî¤Ë¤âƱ¤¸¥Ä¥Ã¥³¥ß¤ò夤¤¿¤è¤¦¤Ê¡Ä¡£ ¤¥¡Á¤ó¡¢²Æ¤Ï¤ä¤Ã¤Ñ¤ê¥·¡¼¥¹¥ë¡¼¤À..]


09/22/2007 ¤à¤¦ [ĹǯÆüµ­]

tDiary 1794ÆüÌÜ

¢£ [Æüµ­] À­Ä¨¤ê¤â¤Ê¤¯

¥é¥¤¥¸¥ó¥°¥Ð¡¼¥É Çã¤Ã¤Æ¤­¤¿¡¥ º£²ó¤Ï²õ¤µ¤Ê¤«¤Ã¤¿¤¾¡¥

¤·¤«¤·¤ä¤Ï¤êÎã¤Î¥®¥ä¤ÏÆþ¤é¤Ê¤¤¡¥ ¤¯¤Ã¤½¤¦¡¤¥¿¥¤¥× 3 ¥·¥ã¡¼¥·¤Ç¤â̵Íý¤«¡¥

²¶¤¬ÀÎ¥´¥Æ¥´¥Æ¤Ë¶¯²½¤·¤Æ¤¿¥Þ¥·¥ó¤Î¥·¥ã¡¼¥·¤Ï¥¿¥¤¥× 3 (¥­¥ã¥Î¥ó¥Ü¡¼¥ë) ¤À¤Ã¤¿¤ó¤À¤±¤É¡¤¤Ä¤Þ¤ê²¶¤Ï¥®¥ä¤ò´¹¤¨¤Æ¤Ê¤«¤Ã¤¿¤È¤¤¤¦¤³¤È¤Ê¤Î¤«¤Ê¡¥ ¥â¡¼¥¿¡¼¤Î¼þ¤ê¤ò¥Ë¥Ã¥Ñ¡¼¤Ç²þ¤¤·¤Æ¤¿µ­²±¤Ï¤¢¤ë¤±¤É¡¤¥®¥ä¤òÉÕ¤±Âؤ¨¤ë¤¿¤á¤À¤Ã¤¿¤«¤É¤¦¤«¤Þ¤Ç³Ð¤¨¤Æ¤Ê¤¤¡¥

¤È¤³¤í¤Ç¡¤Çä¾ì¤Ë³ØÀ¸¤È»×¤·¤­ 2 ¿ÍÁȤ¬²¿¤ä¤é¤è¤¯¥ï¥«¥é¥ó¤³¤È¤ò¸ì¤Ã¤Æ¤¿¡¥ ¥ß¥Ë»Í¶î¤Ë¤âÀ¤Âå³Êº¹¤¬¤¢¤ë¡¥¤³¤¤¤Ä¤é¤ª¤½¤é¤¯Îõ¡õ¹ëÀ¤Âå¤À¤Ê¡¥ ¤½¤ó¤Ê¤â¤ó¤·¤é¤Í¡¼¡¥

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

¢¢ kei [²¿¿§¤Î¥®¥¢¤Ç¤¹¤«¡©¡© ]

¢¢ atzm [¹õ¤Ç¤¹¤Ê¡¥ ]

¢¢ kei [¤¿¤Ö¤ó¡¢¤½¤ì¤Ä¤«¤Ê¤¤µ¤¤¬¤·¤Þ¤¹¡£ 4:1 ¤Î¤ä¤Ä¤Ç¤¹¤è¤Í¡£ ¥¿¥¤¥×4¤«ZERO¤«¡¢¥¹¡¼¥Ñ¡¼1°Ê¹ß¤Î¥·¥ã¡¼¥·¤«¤È¡£ ]

¢¢ atzm [¤¬¡¼¤ó¡¤¤½¤ì¿ʬ²¶¤â¤¦¤¢¤ó¤Þ¤ä¤Ã¤Æ¤Ê¤«¤Ã¤¿º¢¤Î¥·¥ã¡¼¥·¤À... ]


09/27/2007 ¤à [ĹǯÆüµ­]

tDiary 1799ÆüÌÜ

¢£ [Æüµ­] ¤à¤à

²¿¤ä¤é¤È¤Æ¤âÌÌÇò¤½¤¦¤ÊÏ䬤³¤í¤ê¤È¹ß¤Ã¤Æ¤­¤¿¡¥¤³¤ì¤Ï¤¹¤´¤¤¤ä¤â¤·¤ì¤ó¡¥

¤¬¡¤º£»ý¤Ã¤Æ¤ë¤â¤Î¤ä¡¤¤â¤¦¶á¤¤¤¦¤Á¤Ë¤ä¤ë¤³¤È¤¬·è¤Þ¤Ã¤Æ¤ë¤â¤Î¤ò狼¤Ë¿¶¤ë¤Ê¤ê¤Ê¤ó¤Ê¤ê¤·¤Ê¤¤¤È¡¤¼ê¤òÃ失¤é¤ì¤ë¤ó¤«¤¤¤Ê¡© ¤È¤¤¤¦µ¿Ç°¤¬¡Ä¡Ä¡¥

¤È¤«»×¤Ã¤Æ¤·¤Þ¤¦»þÅÀ¤Ç²¶Éå¤Ã¤Æ¤­¤Æ¤ë¤Ê¤È¾¯¤·»×¤¦¤ï¤±¤À¤¬¡¥

¤È¤ê¤¢¤¨¤º¤Ï²Ë¤ò¸«¤Ä¤±¤ÆͽÈ÷Ã챤òί¤á¤ë¤³¤È¤ËÀìÇ°¤·¤è¡¥


09/30/2007 ¤¦¤Ò [ĹǯÆüµ­]

tDiary 1802ÆüÌÜ

¢£ [Æüµ­] ¤¦¤Ò

¥ª¡¼¥Þ¥¤¥­¡¼¤¬ÌÌÇò¤¹¤®¤ë¡¥¥í¡¼¥é¤Á¤ã¤ó¤ÈÁлҤ¬°ì²¡¤·¡¥