2009-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãããªã½ã¼ã¹ãä½åãæ¸ãã¾ãã¦ã絶対ã«ãã£ã¨ç°¡åãªæ¹æ³ãããããªã¼ ã¨ãæã£ã¦ããããã¾ãã æªãä¾ def func(array) result = [] array.each do |val| # ä½ãããã®æ¡ä»¶ãæºãããå ´åã®ã¿ãvalãå å·¥ãã¦ãresultã«æ ¼ç´ if ⦠result << ã end end reâ¦
åå ã¯ä¸æ æ¬ä½ class Test def self.foo var + 'bbb' end def self.var 'aaa' end private_class_method :var end ãã¹ã require 'test.rb' describe Test do it 'foo' do #Test.should_receive(:var).and_return('ccc') Test.stub!(:var).and_return('ccâ¦
ç¶æ¿ rubyã§ã¯åä¸ç¶æ¿ã®ã¿ å¤éç¶æ¿ã¯ãmix-in(å¾è¿°)ã¨ããæ¦å¿µã§å¯¾å¿ãã¦ãã class SuperClass def super_say p "super_hello" end end class SubClass < SuperClass def sub_say p "sub_hello" end def super_say p "sub_super_hello" # 親ã¯ã©ã¹ã®ã¡ã½â¦
ããã¯ä½? KeyRemap4MacBookãªã OS/X ç¨ã®ãã¼ãã¼ããªãããã¼ã®ãããã§ã Escãã¼æ¼ä¸ã§ãè±æ°ãã¼ãæ¼ä¸ããè¨å®ã追å ãã¾ã ãã«ãã®æé ã«ã¤ãã¦ã¯ããªãã£ã·ã£ã«ã®èª¬æãåç §ãã¦ä¸ãã KeyRemap4MacBook:ã½ã¼ã¹ã³ã¼ã 注æç¹ æãã¾ãããªã¢ã¼ãã«â¦
ããã¯ä½? ä¼ç¤¾ã§ RSpec ã使ã£ããBDD ãè¡ã£ã¦ããã®ã¦ç解ã®çºã«ã¾ã¨ãã¦ã¿ã¾ãã RSpecã£ã¦ããªãã?? ä¸è¨ã§ããã¨ãBDD ã®çºã® DSL æ¥æ¬èªã§ãk DSL ãã¡ã¤ã³åºæè¨èª ããããäºã«ç¹åããè¨èª ä»åã®å ´åã¯ãBDD ã«ç¹åããè¨èª(å®éã«ã¯ãgem ã使â¦
ããã¯ä½? ä¼ç¤¾ã§ä½¿ã£ã¦ãMacã®éçºç°å¢ãã¡ã¢ãã¾ã ã¨ãã£ã¿ vim macvim-kaoriya ãä½¿ç¨ macvim-kaoriya - Project Hosting on Google Code ã³ãã³ãã©ã¤ã³ããèµ·åããããã«ãç¡çç¢çPathãåã£ã¦ãã¢ããªåã Vim ããã vim ã«å¤æ´ export PATH=/Applâ¦
æ¦è¦ ãããããããªã®ã§ãããã«ã¯ã©ã¼ãã¼ã·ã§ã³ã®è£å®ã .vim ã®æã ã解é¤ãããæã©ãããããããï¼ ç¥ããªãã£ãã®ã§çºãã¾ãã inoremap { {}<LEFT> inoremap ( ()<LEFT> inoremap [ []<LEFT> inoremap < <><LEFT> inoremap " ""<LEFT> inoremap ' ''<LEFT> " ãã¸ã¥ã¢ã«ã¢ã¼ã vnoremap </left></left></left></left></left></left>â¦
ããã¯ä½ï¼ 家ã®ãã·ã³ããubuntu,windowsXP,MacOS Xã¨è²ã ã«ãªã£ã¦ããã®ã§ã ãã¡ã¤ã«å ±æã®çºãç¾å¨windowsãã·ã³ã«ã¤ãªãã§ãããã¼ããã£ã¹ã¯ããsambaã§å ±æããã¾ã§ã®è©±ã§ã ç®æ¨ windowsã§ä½¿ã£ã¦ããUSB HDDãsambaãµã¼ãã§å ¬éãã ããä¸åUSB HDDâ¦
ããã¯ä½ï¼ 家ã®ãã·ã³ããubuntu,windowsXP,MacOS Xã¨è²ã ã«ãªã£ã¦ããã®ã§ã ãã¡ã¤ã«å ±æã®çºãç¾å¨windowsãã·ã³ã«ã¤ãªãã§ãããã¼ããã£ã¹ã¯ããsambaã§å ±æããã¾ã§ã®è©±ã§ã ç®æ¨ windowsã§ä½¿ã£ã¦ããUSB HDDãsambaãµã¼ãã§å ¬éãã ããä¸åUSB HDDâ¦
ããã¯ä½ï¼ 家ã®ãã·ã³ããubuntu,windowsXP,MacOS Xã¨è²ã ã«ãªã£ã¦ããã®ã§ã ãã¡ã¤ã«å ±æã®çºãç¾å¨windowsãã·ã³ã«ã¤ãªãã§ãããã¼ããã£ã¹ã¯ããsambaã§å ±æããã¾ã§ã®è©±ã§ã ç®æ¨ windowsã§ä½¿ã£ã¦ããUSB HDDãsambaãµã¼ãã§å ¬éãã ããä¸åUSB HDDâ¦
æ¦è¦ 8/31ã«ç¾å¨ã®ä¼ç¤¾ãéè·ãããã¨ã«ãªãã¾ãã¦ãè²ã åãããªãäºããã£ãã®ã§ã¾ã¨ãã¦ã¾ã ã¡ãªã¿ã«éè·è ã®ã¹ããã¯ã¯ãããªæã 大ä¼æ¥ã®å«ä¼ç¤¾(300人ä½)ãããwebãã³ãã£ã¼ã«è»¢è·(30人ããã) æ¶é¤å®¶æãããåä¾ãªã 8/31ã«éè·ãã¦ç¡è·æéãåæâ¦
æ¦è¦ 8/31ã«ç¾å¨ã®ä¼ç¤¾ãéè·ãããã¨ã«ãªãã¾ãã¦ãè²ã åãããªãäºããã£ãã®ã§ã¾ã¨ãã¦ã¾ã ã¡ãªã¿ã«éè·è ã®ã¹ããã¯ã¯ãããªæã 大ä¼æ¥ã®å«ä¼ç¤¾(300人ä½)ãããwebãã³ãã£ã¼ã«è»¢è·(30人ããã) æ¶é¤å®¶æãããåä¾ãªã 8/31ã«éè·ãã¦ç¡è·æéãåæâ¦
æ¦è¦ 8/31ã«ç¾å¨ã®ä¼ç¤¾ãéè·ãããã¨ã«ãªãã¾ãã¦ãè²ã åãããªãäºããã£ãã®ã§ã¾ã¨ãã¦ã¾ã ã¡ãªã¿ã«éè·è ã®ã¹ããã¯ã¯ãããªæã 大ä¼æ¥ã®å«ä¼ç¤¾(300人ä½)ãããwebãã³ãã£ã¼ã«è»¢è·(30人ããã) æ¶é¤å®¶æãããåä¾ãªã 8/31ã«éè·ãã¦ç¡è·æéãåæâ¦
ããã¯ä½ï¼ vim ã®åå¼·ä¼ vimm#4 ã®åå è¨é²ã§ã çºè¡¨å 容ã«ã¤ãã¦ã¯ãæ¬å®¶ã«ãã®ãã¡ãªã³ã¯ãè²¼ãããã§ããããããã¹ã©ã¤ãå¤ã§ã®åºæ¥äºã¨ããããããã®ææ³ãupãã¾ã æ¬å®¶ã¯ã³ãã©â vim-users.jp - vimm#4 éå¬ã®ãç¥ãã â宣ä¼â ããã°ã©ãã³ã°ãã£ã³â¦
ããã¯ä½ï¼ ä¹ ãã¶ãã«ãããã®ãµã¼ãã«å ¥ã£ã¦ãvimãèµ·åãããããããªã¨ã©ã¼ãåºã¦èµ·åã§ãã¾ããã§ãã /libexec/ld-elf.so.1: Shared object "libintl.so.6" not found, required by "vim" å ã«è§£æ±ºæ¹æ³ %ln -sf /usr/local/lib/libintl.so.8 $HOME/locâ¦
ããã¯ä½ï¼ HTMLã«ã¦ä»¥ä¸ã®ããã«scriptã¿ã°ãæ¸ããæããã以éã®scriptãæ£å¸¸ã«èªèããã¾ããã§ãã (Firefox3.0, IE7ã«ã¦åç¾ãGoogle Chromeã§ã¯ä½æ ãæ£ããåä½) <script type="text/javascript" src="ã.js" /> <script type="text/javascript"> "ããã®ã³ã¼ããèªã¿è¾¼ã¾ããªãã£ãï¼" </script> ãã§ãåâ¦
ããã¯ä½ï¼ ãã£ã±ãå ¥ããã¨ã¨ã£ã¡ããã£ã¦ãåé¤ããæã«å¤§å¤ãªç®ã«ããã§æåãªvimãã©ã°ã¤ã³ ãããªvimãã©ã°ã¤ã³ã®èªåãªãã®ç®¡çæ¹æ³ã®ã¡ã¢ã§ã æªã æèé¯èª¤ä¸ã®çºããåèã¾ã§ã« ç®æ¨ å¿ è¦ã«å¿ãã¦ãpluginãç°¡åã«è¿½å ãæ´æ°ãåé¤ã§ããã㨠(ç°¡åâ¦
ããã¯ä½ï¼ Linuxã主ç°å¢ã¨ãã¦ãè¤æ°OSéã§vimã®è¨å®ãå ±æããçºã®ã¡ã¢ã§ã ç°å¢è©³ç´° ç¾å¨ä»¥ä¸ã®ç°å¢ã§åä½ã確èªãã¦ãã¾ã -Ubuntu 8.x -Windows XP SP2 -Mac OS X Snow Leopard ãã®ãã¡MAC OS Xã対å¿ãããã§ã DropBox ã¾ãã¯ãDropBoxã«ä»¥ä¸ã®ãã¡â¦
ããã¯ä½ï¼ ,cã§é¸æè¡(orç¾å¨è¡)ã®ã³ã¡ã³ãã¢ã¦ãããã°ã«ããvimã¹ã¯ãªããã§ã 2009/6/11è¿½è¨ åºæ¬çã«ãNERD_commenterã®ä¸ä½äºæã§ã vimscriptã®ç·´ç¿ç¨ã«æ¸ãããã®ã§ãããã®ã§ãæ¶ããã«æ®ãã¦ããã¾ãããNERD_commenterã®ä½¿ç¨ãæ¨å¥¨ãã¾ã 使ãæ¹ â¦
ããã¯ä½ï¼ å æ¥ãvimã§æå¼·ã®greasemonkeyéçºç°å¢ãä½ã£ã¦ã¿ãã«ã¦ã vimã§ã®ã°ãªã¢ã³ã®éçºã®æ§åããã³ãã³ã«UPããã®ã§ããããã®éã®æé ã®ã¾ã¨ãã§ã ã¹ã¯ãªã¼ã³ãã£ã¹ãåå¾ ã¹ã¯ãªã¼ã³ãã£ã¹ãã¯ãæè¿ã¡ã¸ã£ã¼ã£ã½ãgtk-recordMyDesktopã使ç¨ãã¾â¦
ã¿ã¤ãã«ã¯é£ãã§ãããå®éã«ã°ãªã¢ã³ã®éçºå¹çãæ°æã¡æªããããã«ä¸ããã¾ãã 2009/06/02è¿½è¨ åç»upãã¾ãã åãã¦ãªã®ã§ããããé©å½ã§ãããã容赦ã ããã¯ä½ï¼ vimã®ç°å¢è¨å®ã®åå¼·ãã¦ããgreasemonkeyã®éçºç°å¢ãä½ã£ã¦ã¿ã¾ãã ç°å¢ã¯ãUbunâ¦
ããã¯ä½ï¼ èªä½ã®greasemonkeyãä½ãéã®ãã³ãã¬ã¼ãã§ã è¤æ°ãã·ã³ã§éçºãã¦ãã®ã§ãã©ã£ããã§ãè¦ããããã«ããã«UPãã¾ãã ã©ã¤ã»ã³ã¹ã¯NYSLã§ãèªç±ã«ã©ãã // ==UserScript== // @name // @namespace http://d.hatena.ne.jp/kasei_san/ // @desâ¦
ããã¯ä½ï¼ setIntervalãä»»æã®åæ°å®è¡ããjavascriptã®ã¯ã©ã¹ã§ã åå(ã¯ãã¼ã¸ã£ããã£ã¨ããç解ã§ããã®ã§ã¾ã¨ã)ã®è¨äºãæ¸ãéãprototypeã¨ãã¯ãã¼ã¸ã£ãã¾ã¨ãã¦ç解ããçºã«ãã³ã¼ãã£ã³ã°ãã¦ã¿ããã®ã§ãããåå¿ã®çºã«blogã«ä¸ãã¨ãã¾ã ã©â¦
ã¯ãã¼ã¸ã£ã£ã¦ä½ãï¼ ã¡ã½ãããå®è¡ãããã¨ãã«ãã¡ã½ããå ã«åç §ããå¤æ°ãç¡ãå ´åããã®ã¡ã½ããã®å¼ã³åºãå ã§ã¯ãªãã宣è¨ãè¡ã£ãã¹ã³ã¼ãã®å¤æ°ãåç §ããä»çµã¿å ·ä½çã«ã¯ <script> (function(){ var divs = $T("div"); // divã¿ã°ã®DOMãå ¨ã¦åå¾ for(v</script>â¦
ããã¯ä½ï¼ ã¨ããã·ãããã³ã çµç±ã ã¨ãæã 380åã§ãlivedoorWireless 㨠Yahoo BB!mobile ã使ãæ¾é¡ã«ãªããµã¼ãã¹ WIRELESS GATEã®å ´æãã¨ã®ä½¿ç¨æãã¡ã¢ããã¼ã¸ã§ã 使ç¨ãæ¤è¨ãã¦ãã人ã®åèã«ãªãã° å¾ãããªã¼ã§ç¡ç·LANã使ããfreespotã«ã¤ãâ¦
ããã¯ä½? DELL INSPIRON Mini12 ã® ubuntu ã¢ãã«ã« rails.1.2.6 ãå ¥ããã¾ã§ã®è¦æ¦ã®ã¡ã¢ã§ã Railsã®åå¼·ç¨ã«ç°å¢ãæ§ç¯ãããã¨ãã¦ã解説æ¸ã1.2ç³»ã®è©±ã®çºã«Rails1.2.6ãå ¥ããããå¾ãªããªã£ã人ã®çºã« mysqlã®ã¤ã³ã¹ãã¼ã«ã§ããã! ã¾ãã¯ãRails1â¦
ããã¯ä½ï¼ Railsã«ããã¢ã¸ã£ã¤ã«Webã¢ããªã±ã¼ã·ã§ã³éçº ç¬¬2çä½è : Dave Thomas,David Heinemeier Hansson,Leon Breedt,Mike Clark,Andreas Schwarz,James Duncan Davidson,Justin Gehtland,åç°ä¿®å¾åºç社/ã¡ã¼ã«ã¼: ãªã¼ã 社çºå£²æ¥: 2007/10/26ã¡ãã£â¦
ããã¯ä½? å æ¥è³¼å ¥ãããDELL INSPIRON Mini12ã«ããªãã©ã¤ã³ã§ã®webé²è¦§ç¨ã«evernoteã¯ã©ã¤ã¢ã³ããå°å ¥ããéã®ã¡ã¢æ¸ãã§ã wineã®å°å ¥ãevernoteã®ã¤ã³ã¹ãã¼ã« ããã¾ã§ã¯ã以ä¸ã®ãµã¤ãã®æ å ±ãå ã«ãããªãå°å ¥æå ubuntu 㧠Evernote « happy unbiâ¦
DELL INSPIRON Mini12ã®ubuntuã¢ãã«ãè²·ãã¾ãã ããããªã¼ã ã6ã»ã«ã«å¤æ´ãã¦ããå¤æ®µ44,180åããè²·ãå¾! è³¼å ¥çç± é«å°ã«ã³ãã¡ã¬ã³ã¹è¡ã£ãæãã¿ããªtwitterã§è©±ãã¦ãã¦çå¤æãèããã£ã ããã¡æå¤ã§åå¼·ããã ã§ããéããã¾ããªãã®ã§ãã³ã¹â¦
ããã¯ä½ï¼ å½±èããããã¤ã³ã¿ã¼ãããã®ãµã¼ã(ã¹ã¿ã³ãã¼ããã©ã³)ã«ã¤ã³ã¹ãã¼ã«ããæã«ããã£ãäºãã¡ã¢ãã¾ã å½±èã®ãã¼ã¸ã§ã³ã¯0.88ã§ã ã¤ã³ã¹ãã¼ã«æ¹æ³ ã¾ããkagemai-0.8.8.tar.gzãã/home/kasei-san/kagemai/ã«è§£å ãã®å¾ãinstall_ja.rbãâ¦