2011-01-01ãã1å¹´éã®è¨äºä¸è¦§
Mechanize2.1ããªãªã¼ã¹ããããid:otn:20110924 ã id:otn:20111107 ã§æ¸ãããCookieå¨ãã®ä¸å ·åã¯ç´ã£ã¦ããããã ã ã¨ãããã¨ã§ãããããã«æ¸ããããããä¸è¦ã«ãªã£ãã ä»åå¢ããä¾åã©ã¤ãã©ãªã¯ãdomain_name, ntlm-http, unf, unf_extã domaiâ¦
ãJavaScriptã®ç¡åé¢æ°ã®å®è¡ (function(){})() 㨠(function(){}()) ã®éããhttp://polygon-planet.blogspot.com/2011/12/javascript-function-function.html ãè¦ã¦ããªãã»ã©ãä»ã¾ã§ãç¡åé¢æ°ã®å¼ã³åºãã¯ã (function(x){alert("<<"+x+">>");})("fooâ¦
ä»åº¦ã¯ mixi ã«ãã°ã¤ã³ã§ããªãããã°ãè¦ãã¨åããCookieãéããã¦ããªããMechanize 1.0.0 ã使ãã¨åé¡ãªããä»åã¯ãã¡ã¤ã³ã®åé¡ã§ã¯ç¡ãã®ã§ãã¾ãå¥ã®åå ãããã¨æããããMechanize2ã§ã¯Cookieã¯é¬¼éãï¼ï¼ 2011-11-12 è¿½è¨ åå ã¯å¤æãSet-Coâ¦
id:JunichiIto:20111102:1320253815 ã®ãExcelååå¤æåé¡ã§ç¬¬ï¼å社å ããã°ã©ãã³ã°ã³ã³ãã¹ããéå¬ãã¦ã¿ã(åç·¨)ããè¦ã¦ããã£ã¦ã¿ãã Rubyã§æ¸ããã¨ã«ããããRubyåºæã®æ©è½ã¯ä½¿ããCã§ãç°¡åã«æ¸ãç´ããç¨åº¦ã§ãExcelã®ååã¯ãA,B,â¦,Z,AA,AB,â¦â¦
ã¡ã¢ãæåã³ã¼ãå¤æã«éããããã¡ã¤ã«æ¸ãåºãã®ç´åã«ãå¦çãæã¿è¾¼ãå ´åã # encoding: utf-8 require "nkf" # ç¹ç°ã¡ã½ãããå®ç¾©ããæ¹æ³ open("output1.txt","w") do |f| def f.write(str) super(NKF.nkf("-W --windows",str)) end f.puts "ãããâ¦
åã«æ¸ãããããªæ°ããããã©ãakamaiãµã¼ãã¼ã¸ã®ã¢ã¯ã»ã¹ãé ãã®ã§ããããã®ãµã¼ãã¼ãproxyã§ãã¾ãã¦ã¿ãã¨æ¹åãããããããªãã¨ãproxyãµã¼ãã¼ãåããã¦ã¿ããsquid*1ãã¤ã³ã¹ãã¼ã«ãã¦ããã¼ãçªå·ãå¤ãã¦ããã¤ã¸ã§ã¹ãèªè¨¼ãæãããç®çãâ¦
ãµã¨ãåå¨çã®è¨ç®ããã¦ã¿ããWikipediaã®è¨äº wikipedia:åå¨ç ãåèã«ãããç°¡åãªå¼ã¯ãã ããããã¯è¦ãããã«åæãé ãã®ã§ã次ã®å¼ã使ã£ããé«éåãç®æãã¨å¤§å¤ãããªã®ã§ãå®æã«Rationalã«é ¼ã£ã¦ãå°æ°åã¯ãåããã ãã def fact(n) (1..nâ¦
Mechanizeãver1ããver2ã«ä¸ãããã社å ã§ä½¿ã£ã¦ããã¹ã¯ãªãããåããªããªã£ãããã°ãªã³é¨åã§å¼ã£ãããå ã«é²ããªããã¨ããããããã¼ã¸ã§ã³æå®ã§æ§ãã¼ã¸ã§ã³ãæå®ãã¦ãã®ãã§ããã®ã ããããããªã«é£ãããã¨ã¯ç¡ãã ãããã¨èª¿ã¹ã¦ã¿ãã å®â¦
ãhttp://blog.udzura.jp/2011/07/30/what-i-thought-when-i-start-ruby/ããè¦ã¦ããRubyã¯åç §æ¸¡ããå¤æ¸¡ããï¼ãã¨ããè°è«ãããããããã¨ãç¥ããid:iox:20070203:1170506166 ã¨ãã ãããããããããã®ã¯ãå¤æ°ã«å¤ã®å ¥ãè¨èªã§ã®åºå¥ã®è©±ã§ãå¤æ°â¦
æ±èRDæ©ãç¾å¨äºå°ä½¿ã£ã¦ãããæ¨å¹´è³¼å ¥ã®RD-X9ã¨ãä»æè³¼å ¥ã®RD-BZ810ã RD-X9ã§ãæ°ã¶æåãããäºç´é²ç»ä¸ã«ãã³ã°ã¢ããããã¨ããç¾è±¡ããã¾ã«åºã¦ãããæ¬ä½é»æºã¹ã¤ããã®é·æ¼ãã§åããããªããåç¾æ§ãå¼±ãã®ã§ãç±ã®ãããã¨æã£ã¦ããã®ã ããæâ¦
iPhoneããGalaxy SIIã«åãæ¿ãã¦ãããã¤ãå°ã£ããã¨ãããããã¾ãã¯ããã iTunesã§AACã§ãªããã³ã°ããæ²ã転éããã¨ãã¢ã¼ãã£ã¹ãåãèªèãããããã¹ã¦ãUnknown Artistsããä¸æãªã¢ã¼ãã£ã¹ããã«ãªã£ã¦ãã¾ãã æ¨æºæ·»ä»ã®ãã®å«ããããã¤ãâ¦
é«æ ¡ã¬ãã«ã®æ´å²ã®åé¡ã§ãã次ã®AãEã«å ¥ã人åã¾ãã¯å°åãçããªããã [A] ã¯ãä¸å½ï¼[B]ï¼ã®å¾æã®ããã« [C] ã«è»å£ãä¸ãã¦é£ãããããã®å¾ã[A] ã¯èªã [B] ã®å¾æã«åå ããããã«åºé£ããããéä¸ã§æ¥æ»ãã¦ãã¾ã£ãããã®æ»ãç¥ã£ã [C] ã¯ãæ¥â¦
id:bluegale:20100610 ã§ã ãã¦ãã§ã¯ããã® Hash ã JSONå½¢å¼ã«å¤æãã¦ãããã¨ã©ããªãã§ãããã? require "rubygems" if(RUBY_VERSION < '1.9.1') require "json" test4hash = {nil => "nil!", "" => "empty!"} p test4hash.to_json # => "{\"\":\"nilâ¦
id:otn:20110501 ã§æ¸ããéããCentOSã«ã¯bash-completionããã±ã¼ã¸*1ãå«ã¾ãã¦ããªããFedoraã§ããã«æ £ãã¦ããã¨ç¡ãã§ã¯ããããªãã®ã§ãã¤ã³ã¹ãã¼ã«ããã Fedoraããã¸ã§ã¯ãããRHELãCentOSåãã«æä¾ãã¦ããEPEL*2ã©ã¤ãã©ãªã«ç¡ããæ¢ãã¦ã¿â¦
iptablesã«ã¤ãã¦èª¿ã¹ã¦*1è¨å®ãã¦ã¿ããåæè¨å®ã§ã¯iptablesããã»ã¹ã¯èµ·åãããå ¨é¨éãã«ãªã£ã¦ãããæ¹éã¯ã ä¸ç¶ã¯ä½¿ããªãã®ã§DROP éä¿¡ã¯ã¨ããããå ¨é¨éãã ããããã¼ããã£ã¹ãã ãDROPãã¦ãã åä¿¡ã¯å¿ è¦ã¨æãããç©ã ãéãã¦ãä»ã¯DROP Dâ¦
管çè ãã¹ã¯ã¼ãå¤æ´ ã³ã³ããã¼ã«ããã«ã®ãã¹ã¯ã¼ãã¨ãåæè¨å®OSã®rootãã¹ã¯ã¼ãã¯åãã ããå½ç¶ã®ãã¨ãªããé£åãã¦ããªãã®ã§ãããããå¤æ´ãæ®æ®µæã§æã¡è¾¼ããã¨ã¯ãªãã®ã§ãé·ãæååã«ãã¦ããã ä¸è¬ã¦ã¼ã¶ãä½ã # useradd ã¦ã¼ã¶å # pasâ¦
é£ä¼ã ãä½ããããã¨è¨ããã¨ã§ãVPSã¸ã®ç§»è¡ãèãããæéã¯ã¬ã³ã¿ã«ãµã¼ãã¼ã¹ã¿ã³ãã¼ããå¹´é5000åã§ãVPS ã¡ã¢ãª512MBã®ãã©ã³ã10780åã¨ç´2åã ããå¹´é5000åã®è¿½å ã ããã¾ããããã¨ãããã§ãèªåã®èªç±ã«ãªããµã¼ãã¼ãã¤ã³ã¿ã¼ãããå´ã«æâ¦
ãActiveScriptRuby 1.8.7 ãå©ç¨ãã¦ããç°å¢ã§ json 1.5.1-mswin32 ã使ãã¨ãmsvcrt-ruby191.dll ãå¼ã³ã«è¡ããã¨ãã¦å¤±æããåé¡ãg:fragile:id:ferricks:20110130 ãRuby 1.8.7ã¨json1.5.1 x86-mswin32ã§ããmsvcrt-ruby191.dllãè¦ã¤ãããªããã¨ã©â¦