2007-01-01ãã1å¹´éã®è¨äºä¸è¦§
ææ°ã®ffmpegãMacã§ã³ã³ãã¤ã«ãããã¨æã£ã¦ãã£ã¦ã¿ãã¨ãããããã£ã¦ã¾ãorzãçµæçã«éä¸ã§è«¦ãã¾ãããããã®åå¿é²ã MacPortsã使ã£ã¦åºæ¥ãéãã©ã¤ãã©ãªãå ¥ããã(ã§æ´æ°ã楽ã ãã) ffmpegã¯svnã®trunk(r11089)ããåã£ã¦æ¥ãã 1)MacPortsãâ¦
ååã®ã¨ã³ããªãããã¯ãã¼ã¯ãã¦ããã人ãå¤ãã£ãã®ã§å¬ãããªã£ã¦ä½ã£ã¦ã¿ã¾ããããã³ãã¬ã¼ãã¨ã³ã¸ã³ã¯AjaxPagesãåã¯ä½¿ã£ã¦ã¾ãããããµã¼ãã®ã¬ã¹ãã³ã¹ãæªãã¨ãã³ãã¬ã¼ãããã¼ãããåã«è¡¨ç¤ºãããã¨ãã¦ã¨ã©ã£ãã®ã§ãèªå好ã¿ã®ãã³ãã¬ã¼â¦
æ£è¦è¡¨ç¾ã®ç·´ç¿ãããã«ããå½¹ã«ç«ããªãã§ããä½ã£ã¦ã¿ã¾ããã ç¹å¾´ ãªã¢ã«ã¿ã¤ã ã§ç¢ºèªãã§ããã XHTMLã¨Javascriptã§ä½ã£ãã®ã§ä¿åããã°ãã¼ã«ã«ã§ä½¿ããã JavaScriptã§å®è£ ãã¦ãã®ã§ä¸é¨ä½¿ããªã表ç¾æãã æ£è¦è¡¨ç¾ã¨ãã£ã¿ ãã¨ãã æè¿ããã°â¦
http://labs.unoh.net/2007/08/post_95.htmlã®ã¨ã³ããªã¼è¦ã¦ã®ææ³ã fontforgeã£ã¦ã½ããããããX11ã§åããã©ã³ãã¨ãã£ã¿ãªãã§ãã便å©ï¼(ã¡ãªã¿ã«MacOSXã§èªåã¯ãã©ã³ããä½ã£ã)http://d.hatena.ne.jp/hetima/20061102/1162435711ã§è¤æ°ã®ãã©ã³ãâ¦
èªåã®ã¯ã¦ãªãã¤ã¢ãªã¼ã«ããã°ãã¼ããè¨ç½®ã§ããããã«ãªãã¾ãã - ã¯ã¦ãªãã¤ã¢ãªã¼æ¥è¨ ã£ã¦ã¨ã³ããªã¼ãè¦ã¦ãã¸ãã¼ãã§ãèªåã®å¥½ããªããã°ãã¼ãåãè¾¼ããªããããããªãã¦æã£ã¦ããã©çãã£ãã ã¯ã¦ãªãã¤ã¢ãªã¼ã«(対å¿å¤ã®)ããã°ãã¼ããè²¼â¦
SVNã®Dateãã¼ã¯ã¼ãã®ãã©ã¼ããããå¤ãããã¨æãï¼æéããã調ã¹ã¦ã¿ããè¯ã解決æ¹æ³ãè¦ã¤ãããªãã£ãã®ã§ä»£æ¿ãæ¹æ³ãã¡ã¢ã ã¯ã©ã¤ã¢ã³ããµã¤ãã§æ¥æ¬èªã®ãã±ã¼ã«ã«è¨å®ãã¦ããã¨Dateãã¼ã¯ã¼ãã®ææ¥ãæ¥æ¬èªã§å±éããã¦ãã¾ããæåã³ã¼ãã«â¦
æãªã¨ãã«é¢ç½ãã¨ã³ããªã¼ããç¥ãã:ãã³ããã³ãã³ãããå®è£ ãã¾ãã | N-Stylesãããã£ãã®ã§ã¯ã©ã¹åãã¦ã¿ã¾ããï¼ éãªå®è£ ã®ããããªãã§ã½ã¼ã¹ãæ±ãã ã³ãã³ãå¤å® ãã¼å ¥åã®å±¥æ´ ãã¼å ¥åã®æé ãã¼å ¥åã®ãã¿ã¼ã³ é·ãã³ãã³ããåªå ãã¦â¦
è¦å´ããã®ã§ã¡ã¢ãid:ryu00026ããã®ãããã§ç¡äºè§£æ±ºãunpackãã£ããå¿ãã¦ã¾ããããã£ã¨ããã°ã©ãã³ã°è¨èª Ruby ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«ãããã調ã¹ã¦ã¾ãããorz irb(main):021:0> p "ãããaaa".unpack("U*").map{|c| c<256?[c].pack("U"):"&#x%x;"â¦
setTimeoutãsetIntervalã§é¢æ°ãå®è¡ããã¨throwãããå¤ããã£ããã§ããªããããã§ä¸è¨ã®ããã«é¢æ°ãä¸æ¸ãããã ãã§throwããã£ããã§ããã(console.error㯠javascriptã®ãããã¯æ¹æ³ã«ä¾åããã®ã§ã好ã¿ã®ã³ã¼ãã«ç½®ãæãã¦ä½¿ãã°OK) 使ãæ¹ catcâ¦
ã©ã¼ã§ããããã¨ã ãã©ãAjaxé¢é£ã®ããã°ã¨ãããããè¦ã¦ãã¨ä¸è¨ã®ããã«ãtry/catchã®ãã¹ãããã³ã¼ããè¯ãè¦ããããã©è¦ãæããã¹ãããªããªãã var createXMLHttpRequest = function(){ if(window.XMLHttpRequest){ return new XMLHttpRequest()â¦
å®è£ å´ã§ã¯é常ã«è¦å´ãã¾ããã使ãåæã¯æ群ãããããnewæ¼ç®åã使ã£ã¦ã¤ã³ã¹ã¿ã³ã¹çæãããªãã¦ãé¢æ°ã®æ»ãå¤ã¨ãã¦ãªãã¸ã§ã¯ãã使ããã¯ããã¯ã§ããä¾ã使ã£ã¦èª¬æãã¾ãã以ä¸ã¯DOMã®æä½ã§è¦ç´ ãåé¤ããæ¹æ³ã§ãã æ®éã®æ¹æ³ var elem = doâ¦
ã©ããã§ä¼¼ããããªã¨ã³ããªã¼ãè¦ããããã©è¦ã¤ãããªãã®ã§èªä½ãã¦ã¿ããåé¡ãå¤ãå®ç¨çãããªãã®ã§æ³¨æIE7,Firefox2,Safari2,Opera9.20ã§ç¢ºèªãã¦åãã¦ãã®ã§å®ç¨ã§ä½¿ã£ã¦ã大ä¸å¤«ã HTMLãªã¼ãä¸ã«javascriptã解éããããã¨ãæ³å®ã㦠ä¸è¨ã®ã³â¦
å ææ«ã«DSããã³ã¸å²ãã§å£ã¦ã¾ãããã¨ããããåãåãããã¨ãããéã£ã¦ãããã¨ã®ãã¨ã§éã£ã¦ç´ï¼é±éãä¿®çãã帰ã£ã¦ãã¾ããï¼ã£ã¨æã£ããæ°åã«ãªã£ã¦ã¾ããããããç¡æ(ä¿è¨¼æéåã)ã ã£ãã任天å ã¹ã²ã¼ãã¯ã¬ã¼ã 対å¿å®ç§ã ã ããã¦iPod nâ¦
è½ã¨ãç©´è½ã¡ããã«ãªã£ãã®ã§ã¡ã¢ãJavaScriptã«ã¯ããªããã£ãã¨ã°ãã¼ãã«ã»ãªãã¸ã§ã¯ã(Global Objects)ããã£ã¦ããªããã£ãã«ã¯ã ãããã©ããã¨ãªãã¯ã©ã¹ããã. Stringã¯ããªããã£ãããã Javaã ã¨ãªãã©ã«ã§ããæååã§ãStringã®ãªãã¸ã§ã¯ãâ¦
prototype.jsããjQueryã«åãæ¿ãã¦jQueryãè¯ãåºæ¥ã¦ãããã¨ã«ããã¯ãªãã¾ãããåå空éã¯æ±ããªããç´æçã«åºæ¥ã¦ã¨ã¦ã便å©ï¼ã£ã§ãã¤ã³ã¹ãã¤ã¢(ä¸åº¦è¨ã£ã¦ã¿ããã£ã)ããã¦ã«ãæãã®ã©ã¤ãã©ãªå®è£ æ¹æ³ãèãã¦ã¿ãã 7/5 ãã°ã£ã¦ãã®ã§ä¿®æ£ãâ¦
zindexã®æ大å¤ãåã£ã¦ããé¢æ°ãä½ã£ã¦ã¿ãã ã¨ããããã¢ãã³ãã©ã¦ã¶ã¯å ¨ã¦åãã¦ã¾ããã(IE7/Safari2-3/Firefox2/Opera9/NN7) ã³ã¼ã var getLargestZIndex = function(){ var largestZIndex = 0; var defaultView = document.defaultView; var func â¦
æ¨æ¥ã®ã¨ã³ããªã¼ Safariã®è½ã¡ãã¨ãã®JavaScriptã®ãããã¯æ¹æ³ã£ã¦ï¼ã§æ©ãã§ã¾ãããæ¹æ³ããã£ãã Safariã¯ããè½ã¡ããJavaScript Consoleã§ãã°ãåºåããªãããããã¯ãé¢åãè½ã¡ãã¨Consoleèªä½ãæ¶ãã¦ãã¾ãã®ã§ã¨ã©ã¼ãè¦ããªãããããã¨æãâ¦
Safariãæ¯æ°ããè½ã¡ã¾ããã§ãã使ã£ã¦ãã®ã¯Safari2.0.4ãªã®ã§ããjQueryã®animateã§è½ã¡ã¦ãã£ã½ãã ã¢ãã¡ã¼ã·ã§ã³ã®é¢æ°ãªãã§alertãå ¥ãã¦å°ãã¥ã¤ãããã¯ãªãã¦ãããããªããææ¥ã模索ãã¦ã¿ããã»ã»ã»
Safariã§JSONã®éä¿¡ãããã¨æååããã®ã§å¯¾å¿çãèãã¦ã¿ããã¡ãªã¿ã«Safari3betaã§ã¯æååãã¯è§£æ¶ããã¦ã¾ããã ã³ã¼ã 以ä¸ã®ã³ã¼ããã©ã¤ãã©ãªãèªã¿è¾¼ãã æå¾ã«å®è¡ãããã¨ã対å¿ããã¾ããã³ã¼ãã£ã³ã°ã¯æååãã¨ããå ¨ãæèããªãã§å¤§ä¸å¤«â¦
IEã§ãããã¯ãããã¨Firebugã¿ããã«ãªãã¸ã§ã¯ããå±éãã¦ã¿ããã£ãã®ã§ä½ã£ã¦ã¿ããç¹å¾´ã¯ã ã¤ã³ãã³ãã®ãªã³ãªãã ããããã£(ãã¼)ã®ã½ã¼ãã®ãªã³ãªã é¢æ°ã®ã½ã¼ã¹è¡¨ç¤ºåãæ¿ã å¤æ°(ãªãã¸ã§ã¯ã)ãåç §ãæ·±ãå ´åã®å¶é(å¶éãè¶ ããã¨throwããâ¦
Macã®ã¿ã¼ããã«ããParallels/Windowsã®ã¢ããªãå¼æ°ä»ãã§èµ·åã§ããªããã¨ããããã調ã¹ã¦ã¿ããç¡çã£ã½ããã¿ã¼ããã«ããã¢ããªãç«ã¡ä¸ããæ¹æ³ã¯ä¸è¨ã®ç¨ã«ã§ãããã©å¼æ°ã足ããªãã $ open {ç«ã¡ä¸ãããã¢ããª} ex) $ open ~/Library/Parallelsâ¦
twitterã®ã¢ãã¤ã«çãåºãã¼ã£ã¦ãã¨ã§æ©éãauã®w44tã§è©¦ããã¨ããæååããã¦ã¾ãããæ®å¿µãau使ã£ã¦ã人ã¯å¤ãããåãåé¡ã解決ãã¦ã人ãããã ããã¨æ¢ãã¦ã¿ãã¨ãããã¾ããã Twitter ã®ã¢ãã¤ã«çã AU ã®æºå¸¯ã§æååãããã«å©ç¨ããæ¹æ³ ã©â¦
å é±ãParallels Desctopãè²·ã£ã¦ãã¾ããï¼ã³ãã¼ã¬ã³ã¹ã¢ã¼ãã¯ç´ æ´ãããï¼æ¥æ¬èªå¤æã鬱é¶ããã®ã§ãè¯ãæ¹æ³ããªããã¨èª¿ã¹ãåå¿é²ã§ãããçªä½¿ãã®æ鬱ãã£ã¦ã½ããã使ãã¨ãã«ã ããªããã¼ã§æ¥æ¬èªå¤æãã§ãã¾ãããå è¨äºã¯ãParallels+Windowsâ¦
Finderã§ãã¼ã«ã©ã¤ãºããããã£ã¬ã¯ããªåãè±èªè¡¨è¨ã«ããã 以ä¸ã®å ´æã«æ¥æ¬èªã®ãã¼ã«ã©ã¤ãºãããè¨å®ãã¡ã¤ã«ãããã®ã§ããããè±èªã®è¨å®ã§ä¸æ¸ãããã /System/Library/CoreServices/SystemFolderLocalizations/ja.lproj ããã¯ã¢ãããåã£ã¦è±â¦
管çãã¡ã¤ã«ã®ä½æ $ ruby script/generate migration ãã¤ã°ã¬ã¼ã·ã§ã³å 管çãã¡ã¤ã«ã®ä¿®æ£ 注æããã¨ãã db/migrate/0xxx_XXXX.rbãã¡ã¤ã«åã®æåã®æ°å¤ããã¼ã¸ã§ã³çªå· ãã¼ãã«ãã¨ã«ä½æããå¿ è¦ãç¡ããæåã¯ä¸ã¤ã®ãã¡ã¤ã«ã§ååã ã¢ããã°â¦
Firefoxã®æ¡å¼µæ©è½éçºã§Rengeãæ¡å¼µãã¦ä¾¿å©ãªã¡ã½ãããä½ãããã¨æããã£ã¬ã³ã¸ããã¨ããè¡ãè©°ã£ãã æ®éã«Range.prototypeãæ¡å¼µã¦Firebugä¸ã§è©¦ããã¨ããæå¾ éãã®åããããã®ã§æ¡å¼µæ©è½ã¨ãã¦çµã¿è¾¼ãã§ã¿ããåããªãâ¦ãä½æ ã ï¼ ã¨ããããä¸â¦
é¢æ°ãä½æä¸ã«ã¡ãã£ã¨çåã«æã£ããã§èª¿ã¹ã¦ã¿ã¾ãããJavaScriptã®æååæ¤ç´¢ç³»é¢æ°ãæ¯è¼ããã®ã«ä»¥ä¸ã®ã³ã¼ãã§å®é¨ã function keisoku(name, func, a, b){ var ave=null; for(var i=0;i