2008-03-01ãã1ã¶æéã®è¨äºä¸è¦§
次ã®ãããªã³ã¼ããæ¸ããããIE6ã§ç¡éã«ã¼ãã«! // ãã¹ãç¨ãªãã¸ã§ã¯ã function Test() {} Test.prototype = { a: function() {}, b: function() {} } var test = new Test(); // for .. inã§ã«ã¼ã â IE6ã ã¨ç¡éã«ã¼ãã«! for ( var i in test ) { doâ¦
URLå¤æ´ã«å¯¾å¿ããClickClient v0.0.2ããªãªã¼ã¹ãã¾ãããâCLICK Clientå¤æ´ç¹ã¯ãæ¥ç¶å Webãµã¼ãã¹ã®URLã®ã¿ã(âã¯ãªãã¯è¨¼å¸ - URLå®å ¨ç§»è¡ã®ãç¥ãã)ãã¨ç´å®æ å ±åå¾ã®ãã¹ãã±ã¼ã¹ãã¡ãã£ã¨ç´ãã¾ããã æ´æ°æ¹æ³ ãã§ã«å°å ¥æ¸ã¿ã®æ¹ã¯ã以ä¸ã®ã³ãâ¦
ç©ç/ãã¼ã¿ãªã³ã¯å±¤ã®ãã±ãããã«ãã»ã«åãã¦è»¢éãããã³ããªã³ã°ãããã³ã«ãæ ç¹-ã¯ã©ã¤ã¢ã³ãæ¥ç¶ã§ã®VPNã§ä½¿ããããä¼¼ããããªæ©è½ã®IPSecã¯æ ç¹éæ¥ç¶åã(ã¨ãããã¨ã¯ããã£ã¨ãã£ã¡ã®ã»ããã¯ã©ã¤ã¢ã³ãã®è¨å®ãç°¡åãªãã ãããªã)ãSSLã¯åãâ¦
ãã¼ã«ã«ç°å¢ã«treeãå ¥ã£ã¦ããªãã£ãã®ã§ãrubyã§æ¸ãã¦ã¿ã¾ããã # #== ãã£ã¬ã¯ããªé層ãããªã¼è¡¨ç¤ºããã # def tree( path, stack=[], has_next=false, &block ) puts stack.join << (has_next ? "â" : "â" ) << File.basename( path ) if File.direâ¦
Cygwinãããã«ã¬ã³ããã£ã¬ã¯ããªãã¨ã¯ã¹ããã¼ã©ã¼ã§éãä¸è¡ã $ explorer.exe "$(cygpath -wa `pwd`)"ä»çµã¿ã¯ä»¥ä¸ã pwdã§ã«ã¬ã³ããã£ã¬ã¯ããªãåå¾ã cygpathã§Cygwinã®ãã¹ãWindowsã®ãã¹ã«å¤æã å¤æãããã¹ãå¼æ°ã¨ãã¦ãã¨ã¯ã¹ããã¼ã©ã¼ãâ¦
rubyã®é¢æ°ã§ã¯returnãçç¥ã§ãã¾ãããå人çã«ã¯æ示ããæ¹ãããããªã¨æã£ã¦ãã¾ããçç±ã¯ä»¥ä¸ã®2ã¤ã ä½ãè¿ãããã®ãããããããããã returnã«ç¶ãå¦çãèªãã°ãä½ãè¿ããã¦ãããä¸ç®çç¶ã§ãã ã¨ããããreturnããªãã¨ãããããæ»ãå¤ãâ¦
å¯å¤é·å¼æ°ã®ä½¿ãæ¹ãJavaã®ã¨ã ãããåãæãã§ãã å¼æ°ã«ã*ããã¤ããã¨å¯å¤é·å¼æ°ã¨ãªãã¾ãã å¯å¤é·å¼æ°ã¨ãããå ´åãé¢æ°å¼ã³åºãæã«æå®ãããå¼æ°ã®ãã¡ãæ®éã®ãã®ãããæ®ãã®å¼æ°ãé åã«æ ¼ç´ããã¦é¢æ°ã«æ¸¡ããã¾ãã é¢æ°å ã§ã¯å¯å¤é·å¼â¦
åã«ä½ã£ãmethod_missingã使ã£ãã¤ã³ã¿ã¼ã»ãã¿ã§ãããããã«ã¯ãã¤ã³ã¿ã¼ã»ãã¿é©ç¨å¯¾è±¡ã®ãªãã¸ã§ã¯ãå ã§å¼ã³åºããèªèº«ã®ã¡ã½ããã«ã¤ã³ã¿ã¼ã»ãã¿ãé©ç¨ãããªããã¨ããåé¡ãããã¾ããã¾ããããã£ã¦ãããã¨ã§ãããããã ã¨å°ãç¶æ³ã«é¥ã£ããâ¦
JavaScriptã§åçã«ä½æããã¨ã³ããªã«ãã¯ã¦ãªã¹ã¿ã¼ãã¤ããããããã«ãããµã³ãã«ã§ãã HatenaStar.jsãåãè¾¼ãã¨ãããã¥ã¡ã³ããã¼ãæã«æå®ãããã«ã¼ã«ã«å¾ã£ã¦ã¯ã¦ãªã¹ã¿ã¼å¯¾è±¡ã¨ãªãã¨ã³ããªãæ¤ç´¢ãããâ追å ãã¿ã³ãâæ°ã®è¡¨ç¤ºãè¡ããã¾ããâ¦
ãã¼ã¿ãããã¤ã¹ã®ã¢ã¯ã»ã¹ã³ã³ããã¼ã«ãè¡ãã権éã®ãªãã¦ã¼ã¶ã¼ããã®ä¸æ£å©ç¨ãé²ããæ å ±æ¼ãã対çã®åºæ¬ãå¶å¾¡å¯¾è±¡ã¨ãªããªã½ã¼ã¹ãããªãã¸ã§ã¯ãããã¢ã¯ã»ã¹ãã主ä½ãããµãã¸ã§ã¯ããã¨å¼ã¶ã å¶å¾¡æ¹å¼ å¶å¾¡æ¹å¼ã¨ãã¦ä»¥ä¸ãããã ä»»æã¢ã¯ã»â¦
wgetã§ã§ãã¾ãã ã-rããªãã·ã§ã³ãæå®ããã¨ãæå®ãµã¤ãã®ãªã³ã¯ã辿ã£ã¦ãã¡ã¤ã«ããã¦ã³ãã¼ããã¦ããã¾ãã ã-lãã§ãªã³ã¯ã辿ãæ·±ããæå®ã ã-kããæå®ããã¨ã絶対æå®ã®ãªã³ã¯ãç¸å¯¾æå®ã«å¤æãã¦ããã¾ãã wget -r -k -l 1 <åå¾ãããµã¤â¦
ã³ãã³ãã®ã°ã¬ã¼ã¢ã¦ãæ©è½ãä½ãã¨ãã«ãJavaã®Actionã¿ãããªä»çµã¿ãããã°ä¾¿å©ããã ãªãã¨æã£ã¦ä½ã£ã¦ã¿ã¾ããã Actionã£ã¦ãªã«? ã³ãã³ããå®è¡ããæã®å¦çå 容(é¢æ°)ã¨ãã³ãã³ãå®è¡å¯/ä¸å¯ã¨ãã£ãã³ãã³ãã®ããããã£ãã¾ã¨ãã¦ãªãã¸ã§ã¯ãâ¦
jarã®diffãåãé¢æ°ãæ¸ãã¾ãããããã¯ã¢ããã®æ¤è¨¼ã§ä½¿ãäºå®ãã³ãã³ã並ã¹ã¦ãã ãããããã¨ããããªã¼! diff_jar(){ echo "diff "$2/$1" "$3/$1 mkdir ./a mkdir ./b cp $2/$1 ./a cp $3/$1 ./b cd ./a jar xvf $1 > /dev/null rm $1 cd ../ cd ./b â¦
ããç®ã§1çºã def make_indent( depth ) " " * depth end ãµã³ãã«ã puts make_indent(3) puts make_indent(2)å®è¡çµæã§ãã(ãããã«ãããã»ã»)
常èã¬ãã«ã®ãã¿ã§ããããã¾ã«ä½¿ãã¨å¿ãã¦ããããã®ã§ããã使ã?ãããæ¼ç®ãã次ã«ç¤ºããã¡ã¤ã«ã®æä½æ¨©éè¨å®ãä¾ã¨ãã¦ã¾ã¨ãã¦ã¿ã¾ãã ãã¡ã¤ã«ã«å¯¾ããæä½æ¨©éã3ãããã®æ°å¤ã§è¨é²ããã èªã¿è¾¼ã¿æ¨©.. 1ãããç®, æ¸ãè¾¼ã¿æ¨©..2ãããç® ã¨ãâ¦
ã¢ã¯ã»ã¹ãã¦ããã¦ã¼ã¶ã¼ãã¨ã«ã»ãã·ã§ã³IDãçºè¡ããããã¨ã¦ã¼ã¶ã¼ç¬èªã®ãã¼ã¿ãé¢é£ä»ãã¦ç®¡çããã(ã¦ã¼ã¶ã¼èå¥æ å ±ãã®ãã®ãããåããã¦ããã¨ãå人æ å ±ã®æ¼æ´©ãªã¹ã¯ãé«ã¾ãããã) ã»ãã·ã§ã³IDãçè´ãæ¨æ¸¬ã«ãã奪åãããã¨ãã»ãã·ã§ã³ãâ¦
åé¡çºçæã®åå 調æ»ãåæã®ãããã·ã¹ãã ã®ãã°ãæ®ããæè¿ã¯ã»ãã¥ãªãã£ç£æ»çã§ãå©ç¨ããããããã ãã°åéæã®çæäºé æå»ã®åæ ãã°ãåºåããæ©å¨ã®æå»ãåæãã¦ãããã¨ãè¤æ°ã®ãã°ãçµã³ã¤ãã¦é²å ¥çµè·¯ãç¹å®ã¨ãã§ããããã«ããããâ¦
ãã«ããã¯ã¢ãã å·®åããã¯ã¢ãã å¢åããã¯ã¢ãã ãããã ãã«ããã¯ã¢ãã å®å ¨ãªã³ãã¼ãåã âãªã¹ãã¢ã容æ Ãããã¯ã¢ããã«æéããããã å·®åããã¯ã¢ãã ååã®ãã«ããã¯ã¢ããããã®å·®åã®ã¿ããã¯ã¢ããããã ãªã¹ãã¢æã¯ã以ä¸ãè¡ãâ¦
ããªãã¿ã®ããã£ã¹ã¯ã®é«éã¢ã¯ã»ã¹/å¯ç¨æ§åä¸æè¡ã RAID 0 è¤æ°ã®ãã£ã¹ã¯ã«ãã¼ã¿ãåæ£ãã¦æ¸ãè¾¼ã âãã¼ã¿ã¢ã¯ã»ã¹ã®é«éåãå¯è½ Ããã¼ã¿ã®å¯ç¨æ§ã¯åä¸ããªã RAID 1 è¤æ°ã®ãã£ã¹ã¯ã«ãã¼ã¿ã2éã«æ¸ãè¾¼ã âãã¼ã¿ã®å¯ç¨æ§åä¸ Ããã¼ã¿ã®å ¥åºåâ¦
æå®ã¨ã³ããªã®ã¯ã¦ãªã¹ã¿ã¼æ°ãä¸æ¬åå¾ããã¯ã©ã¹ãæ¸ãã¾ããã require 'rubygems' require 'httpclient' require "json/lexer" require 'uri' module HatenaStar BASE_URI = "http://s.hatena.ne.jp/" # javascriptã®encodeURIComponentã®æåã«ãããâ¦
ã¢ããªã±ã¼ã·ã§ã³å±¤ã®ãã¼ã¿ã§ãã£ã«ã¿ãªã³ã°ãå¯è½ãªãã¡ã¤ã¢ã¦ã©ã¼ã«ã CookieãHTTPãããã³ã«ãHTTPããããããã£ã®å 容ããã§ãã¯ããSQLã¤ã³ã¸ã§ã¯ã·ã§ã³ããXSSã«ããæ»æãé²ããã¨ãå¯è½ããªãã¼ã¹ãããã·ã¨ãã¦åä½ããããã¼ããã©ã³ãµãSSLã¢â¦
ææ¸ãããªã¹ãç»é²ã¦ã¼ãã£ãªãã£ãContainerJS version 0.3.0ã«ãããã¦ä¿®æ£ãTypeã使ã£ã¦ã¡ãã£ã¨çãæ¸ããããã«ãªã£ã¦ã¾ãã ãµã³ãã« ç°¡åã«è§£èª¬ã ã¢ãã«ããã¥ã¼ãã³ã³ããã¼ã©ãããªãç°¡åãªããã°ã©ã ã§ãã ãã¥ã¼âã¢ãã«ã®ä¾åã§ãªãã¶ã¼ãã¼â¦
Miiããªãã¥ã¼ã¢ã«ããäºå®ã ã¯ã¦ãªã¹ã¿ã¼ã«å¯¾å¿ã ããããããåçã«æãã¤ããããããã«ããã æã®å¤ãããåçã表示ã§ããããã«ããã ãã¶ã¤ã³ãä¸æ° ããã·ã³ãã«ã«ã æ©è½åæ¸ ä½¿ããã¦ãªãããªæ©è½ã¯ã«ããã ! ã¨ãããã¨ã§æ°ãã¶ã¤ã³æ¡ãèãâ¦
åå¼ãæç¶ããè¡ãããæå»ãææ¸ãä½æãããæå»ã証æããä»çµã¿ã åå¨è¨¼æ ã¿ã¤ã ã¹ã¿ã³ãã®æå»ã«é»åãã¼ã¿ãåå¨ãã¦ãããã¨ã®ä¿è¨¼ã å®å ¨æ§è¨¼æ ã¿ã¤ã ã¹ã¿ã³ãçºè¡å¾ã«ãã¼ã¿ãæ¹å¤ããã¦ããªããã¨ã®ä¿è¨¼ ãå¯è½ã ã¿ã¤ã ã¹ã¿ã³ãã®è¿½å ã¿ã¤ã â¦
ä¾µå ¥æ¤ç¥ã·ã¹ãã (IDS) ãããã¯ã¼ã¯ç£è¦å(NIDS) ãã¹ãç£è¦å(HIDS) ä¾µå ¥é²æ¢ã·ã¹ãã (IPS) ãããã NIDS (Network Intrusion Detective System) ãããã¯ã¼ã¯ãç£è¦ããä¾µå ¥æ¤ç¥è£ ç½®ãNICã®ãããã¹ãã£ã¹ã¢ã¼ãï¼ç¡æ¡ä»¶åä¿¡ã¢ã¼ãï¼ãå©ç¨ãã¦ãæ¥ç¶ãâ¦
次ã®ãããªããªãã¸ã§ã¯ãå ¥åºåã¯ã©ã¹ããã£ã¦ã // ãã©ã«ãæä½ãµã¼ãã¹ interface FolderService { // ID(ãªãã¸ã§ã¯ãã示ããã¹ãæã¤ã¯ã©ã¹)ãæå®ãã¦ãã©ã«ããå¾ãã Folder get( ID id ); // ãã©ã«ããç»é²ããã void put( Folder f ); } // ãâ¦
ã³ã³ãã¥ã¼ã¿ãããã¯ã¼ã¯ã¨ãã®å¤é¨ã¨ã®éä¿¡ãå¶å¾¡ããå é¨ã®ã³ã³ãã¥ã¼ã¿ãããã¯ã¼ã¯ã®å®å ¨ãç¶æãããã¨ãç®çã¨ããã½ããã¦ã§ã¢ã¾ãã¯ãã¼ãã¦ã§ã¢ããã§ãã¯ãããã±ããã«å¿ãã¦ã次ã®3ã¤ã«å¤§åãããã ãã±ãããã£ã«ã¿å ãµã¼ãããã¬ãã«ã²ã¼ãâ¦
JRuby1.1ã§ã¯ã¯ã©ã¹ã«è¨å®ãããã¢ããã¼ã·ã§ã³ãç´æ¥åç §ããæ¹æ³ãç¨æããã¦ããªãæ§åãincludeããJavaã¯ã©ã¹ã®ãjava_classãé¢æ°ã§ãJava::JavaClassãã¨ããClassã®ã©ãããè¿ããã¾ãããJavaã®Classãæã¤get_annotationã¨ãã®é¢æ°ã¯æã£ã¦ãã¾ãâ¦
Javaã®ã½ã¼ã¹ã³ã¼ãèªåçæãå¯ãã«?ãã¼ã ã§ããã¢ãã«ã¯ã©ã¹ã¨ããµã¼ãã¹ã®ã¯ã©ã¤ã¢ã³ãã¹ã¿ãã¯ã©ã¹ã¨ããç´æãªã³ã¼ãã¯ãããããèªåçæãã¦æ¥½ããã!ã¨ãããã¨ã§ãRuby+ERBã§JavaBeanãä½ãããã°ã©ã ã¯åã«ä½ã£ãã®ã§ãããããã¯ãyamlã®å®ç¾©ãâ¦
1åã®èªè¨¼ã§è¤æ°ã®ãµã¼ãã¼ãµã¼ãã¹ã«ã¢ã¯ã»ã¹ã§ããããã«ãããã¨ãããã«ããã¦ã¼ã¶ã¼ãè¤æ°ã®ã¢ã«ã¦ã³ã/ãã¹ã¯ã¼ãã管çããå¿ è¦ããªããªããå©ä¾¿æ§ã®åä¸ãæå¾ ã§ããã å®ç¾æ¹æ³ã¨ãã¦ã¯æ¬¡ã®2ã¤ãããã ã¨ã¼ã¸ã§ã³ãå ãªãã¼ã¹ãããã·å ã¨ã¼ã¸ã§â¦