2008-01-01ãã1å¹´éã®è¨äºä¸è¦§
Ubuntu 8.04(Hardy)ã使ã£ã¦ãããã§ãããsvnã1.4.xããæ´æ°ããã¦ããªããã¨ã«å°ã£ã¦ã¾ãããWindowsã¨ãã¡ã¤ã«ãã·ã§ã¢ãã¦éçºãã¦ããã®ã§ãWindowsã®svn 1.5.xã§åå¾ãããã¡ã¤ã«ãæ±ããããã§ããã1.4.xã ã¨svnãå¤ãã¨è¨ããã¦ãã¾ããã§ããããâ¦
â»æ°ã¬ã¤ã¢ã¦ã対å¿çã使ããªããªã£ã¦ã¾ãã諦ãã¦ç´ ç´ã«DropBoxã«ç§»è¡ãã¾ããããSky Driveã®ãã©ã«ãå ã®ãã¡ã¤ã«ãã¾ã¨ãã¦ãã¦ã³ãã¼ãããæ¹æ³ã§å ¬éãã¦ããGreasemonkeyãªãã§ãããSky Driveã®ã¬ã¤ã¢ã¦ãå¤æ´ã«ãã使ããªããªã£ã¦ããã¿ããã§ãã â¦
http://ragonrails.com/post/38905212/rake-bash-completion-ftwãã export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/} _rakecomplete() { COMPREPLY=($(compgen -W "`rake -s -T | awk '{{print $2}}'`" -- ${COMP_WORDS[COMP_CWORD]})) return 0 } completeâ¦
ããã¯ä¾¿å©ï¼bashã§rakeã¿ã¹ã¯ãè£å®å¯¾è±¡ã«ããã§rakeã¿ã¹ã¯ãè£å®ã§ãã¡ãã£ãã®ã§ãããã¤ãã§ã«script/*ã®ã³ãã³ããè£å®ãã¦ã¿ã¾ããããããªãå ¨é¨ã¯ç¡çãªã®ã§ã¨ãããããscript/generateã ãå®è£ ãã¦ããã¾ãã ã¤ã³ã¹ãã¼ã« # å®è¡ãã¡ã¤ã«ããã§ãâ¦
ã£ã¦ã®ãä½ãã¾ãããä»ä½ã£ã¦ããã¢ããªã«å¿ è¦ã«ãªã£ãã®ã§ãsvnã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã ./script/plugin install http://subversion.assembla.com/svn/map_as_html_tags/trunk ãã£ã¬ã¯ããªé層ãul/liã¿ã°ã使ã£ã¦è¡¨ç¤ºãããå ´åãªã©ãå帰çã«HTMLæ§é â¦
VMWare Workstation/Playerã®æ°ãã¼ã¸ã§ã³ããªãªã¼ã¹ãããã¤ãã«Unityæ©è½ãå®è£ ãããããã§ãï¼Unityæ©è½èªä½ã¯ã9æä¸æ¬ã®.5.0ãªãªã¼ã¹ã®æãã使ããã®ã§ããã11æä¸æ¬ã®.5.1ãªãªã¼ã¹ã§Linux Guestãå¼·åããã¦ããããã§ãããã£ããæã家ã®Host OS=â¦
creative commons photo by naama ã¤ã±ãããã§ã®ãã©ã¤ã¢ã¹ãã³é¨ã®å¾è¼©ã«ã¸ã§ã®ã³ã°ã®ä»æ¹ã«ã¤ãã¦èãã¦ããã®ã§ã¡ã¢ã 20å以ä¸èµ°ã èèªçç¼ãå§ã¾ãã®ã¯æé ¸ç´ éåéå§ãã20åå¾ãããã20å以ä¸ç¶ããªãã¨èèªçç¼ã®å¹æã¯èãã çããã¤ããããé·â¦
ã¡ãã£ã¨ããéè«ããé ã®å¸ã§ã®ä¼è©±ä¸ã«éè¦ãªè©±ãããããã¨ãçµæ§ããã®ã§ãæèãããã¨ãã¯ãã£ãããã¤ã³ããããã«æ®ãããã«ãã¦ãã¾ãããé ã®å¸ã§ã®ä¼è©±ã£ã¦çãä¸ãããã§ããã©ã次ã®æ¥å¿ãã¡ãããã§ãããï½ãã¤ã³ããããã®ä½æã«ã¯ãã£ã¨Freâ¦
public class TestCase @Test public void ã¢ãµã¼ã·ã§ã³ãå®è¡ã§ãããã¨() { Interface i = SimpleMock.mock(Interface.class) .expect("bbb").with(Integer.class).asserts(this, "ã¢ãµã¼ã·ã§ã³").returns("") .create(); i.bbb(1); //=> assertion done wâ¦
SimpleMockãä½ã£ã¦ã¿ã¾ããã ãããªæãã§ã¢ãã¯ï¼æ£ããã¯ã¹ã¿ãããªï¼ï¼ãä½æã§ãã¾ãã interface Interface { String aaa(); String bbb(Integer i); } Interface i = SimpleMock.mock(Interface.class) .stub("aaa").returns("aaa ret") .stub("bbb"â¦
ãã¼ã«é£²ã¿ãªããåå¼·ä¼ã®è³æä½ã£ã¦ããã©ããã£ã±ããªã³ã¹ã ã¼ã¹ãä¸çªãã¾ããçºæ³¡é ã®ããã«ãã¼ã«ãããã¾ãã¨æãããªãã¦ãããï¼æ¯ç®ããã®ãããããæããªããã ããªã¼ããã¿ã¤ãï¼Strong7ã«ãæå¾ ï¼
Eclipse 3.3以éã§ã¯static importãè£å®ã®å¯¾è±¡ã«ã§ããããããS2é¢ä¿ã®ããã°ãè¦ã¦ãã¨ãã¾ã«åºã¦ãããã¯ããã¯ã§ããã£ã¨è©¦ããã«ããã®ã試ãã¦ã¿ãããããã¨ã¯ï¼ã¤ã 1.éçã¤ã³ãã¼ãã.*ã«ããæ°ã1ã«è¨å® 2.ã³ã³ãã³ãã¢ã·ã¹ãã®ãæ°ã«å ¥ãã«impoâ¦
Webã¢ããªãSAStruts + S2JDBCã§ããã®ä»ã«ãJavaã§ã©ã¤ãã©ãªä½æããFWã®æ¤è¨¼ç¨ã³ã¼ããããæ¸ãã¦ããèªåã使ã£ã¦ããPluginã®ã¾ã¨ãã§ããããããFirefoxã®Addonâé¸çãªããªã§ç´¹ä»ãã¾ãwããã§ç´¹ä»ãã¦ããPluginã¯å ¨ã¦Eclipse3.4ã§åä½ãã¦ãããã®â¦
ãã£ã¬ã¯ããªæ§é ã¿ãããªæ¨æ§é ããã¼ãã«ã«èªå·±åç §ããã¦ä½ãã¨ããActiveRecordã®ã¢ãã«ãç°¡åã«ããã«å¯¾å¿ãããããã©ã°ã¤ã³ãâ¦ãããªã®ãã£ããããç¥ãããã£ããRails 1.xã®ããã¯æ¨æºã ã£ããªãã¦ã ãããªãã¨ãåºæ¥ãã # ãããã¯å¤é¨ãã¼ãnulâ¦
JDKã®ã¤ã³ã¹ãã¼ã«ã¯ã sudo aptitude install sun-java{version}-jdk ã§ã§ãã¾ãã{version}ã«ã¯5ã6ãå ¥ãããã¦ãEclipseçã®IDEã§éçºããã¦ããã¨ï¼ããããJavaã§Not IDEã¯ãããªã®ãâ¦ï¼æ¨æºã©ã¤ãã©ãªã®ã³ã¼ããèªã¿ãããªãã¨ãã£ã¦ããã¾ããããç§â¦
æ¢ã«ã©ããã§è¨ããã¦ãããªè©±é¡ã§ãããå®éã«ç¾å ´ã§æãã¨ããããã£ãã®ã§ã¨ã³ããªã¼ã以ä¸ãå®å ¨ã«èªåãå±ããçµç¹ã®ä¸ã®è©±ã«ãªãã¾ãã åºç¤ã»ã©çµé¨ãããçç¥ãã¦ãã人ãæããã㨠åºç¤ã£ã¦ æåã«ãããã¨ï¼ç°¡å ãªæãããã¦çµç¹ã®ä¸å 以ä¸ãæâ¦
live cdã§è©¦ããçµæãªã®ã§ã¤ã³ã¹ãã¼ã«ãªå¿ è¦ãªã¢ããªãªã©æ¬çªã¨ã¯è¥å¹²éãããã smbfsãå°å ¥ sudo aptitude install smbfs ls /sbin/mount.* mount.cifsã¨mount.smbfsã追å ããã¦ããã¯ãã å ±æãã©ã«ãã®ãã¦ã³ã Windowsã®ãã©ã«ããå³ã¯ãªãã¯âå ±æâ¦
RSSãªã¼ãã¼ã«æºã¾ã£ã¦ãã¨ã³ããªã¼ãèªãã§ããããããã¦ããã®ããã°ã«æ¿ããåæãªãã¨ãæ¸ãã¦ãã£ãã®ã§æããã¨ã³ããªã¼ããã£ãPCã®åã§ãã¼ã ãï¼ã¨æããããã¾ããã帰ããã¨ãã¦ããå 輩ã¨ç®ãããã¾ããï½ å ã¨ã³ããªã¼ã®ã¿ã¤ãã«ã¯ãããã¯ãâ¦
Virtualããå®æ©ã«Ubuntuã移è¡ãã¦ï¼æ¥ãã§ããããæãã§ããè¦ãããã¨ãå¤ãã®ã§å°ããã¤æ®ãã¦ãããã¨æãã¾ãããã¦ããªã¢ã¼ãã®ãµã¼ãã¼ã¨ãã¡ã¤ã«ãããã¨ãããã¨ãã«éå®ããSFTPãWindowsã§ã¯WinSCPãGUIã®ããã³ãã¨ã³ãã¨ãã¦æåã§ãããLinuâ¦
Ubuntu 8.04 on VMWareã®ãã£ããæã«èãããããwubiã使ã£ã¦Windowsã¨ã®ãã¥ã¢ã«ãã¼ãç°å¢ãæ§ç¯ãã¦ã¿ã¾ãããGUIã®ä½¿ãåæãbashrcã®ä»è¾¼ã¿ã£ã·ãã«ã¯VMWareã§æ £ãã¦ããã®ã§å¿é ãã¦ããªãã£ããã§ãããå¯ä¸å¿é ã ã£ãã®ããããã¯ã¼ã¯ãGW-US54GXSâ¦
ã©ã¤ãã©ãªãä½æãã¦ãã¦ã¡ãã£ã¨ããã£ãã®ã§ã¡ã¢ã ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã追å ãã class Clazz end def add_instance_method(method_name) Clazz.__send__ :define_method, method_name do # ã¡ã½ããã®ä¸èº« "#{method_name} called" end end add_instaâ¦
IEã§ã¯æ»ããã¿ã³ã§æ»ã£ãã¨ãã«onloadã¤ãã³ããå¼ã³åºãããããFirefoxã§ã¯å¼ã³åºãããªããªã©ãã©ã¦ã¶ã«ãã£ã¦åããéãããã§ãã ããããäºåº¦æ¼ãé²æ¢å¯¾çã¨ãã¦ãéä¿¡ãã¿ã³ãã¯ãªãã¯ããã¨ãã«ãã¿ã³ãç¡å¹(disable = false)ã«ãã¦æ¬¡ã®ç»é¢ã«é·ç§»â¦
軽ã使ã£ã¦ã¿ã¦ã·ã³ãã«ãªããç´æçãªã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨Googleãªãã§ã¯ã®å¼·åãªæ¤ç´¢æ©è½ãããæãã§ãããã¨ãBetter GReaderããã²å°å ¥ãããã¨ããªã¹ã¹ã¡ãã¾ãã以éãå°å ¥ã¾ã§ã®çµç·¯ãé·ãã®ã§Better GReaderã®ã¹ãã³è¦ããæ¹ã¯èªã¿é£ã°ãã¦æå¾ã®é¨â¦
æé ã©ããã«ãã£ã¦ããã°xreaä¸ã§railsã¢ããªãåãããã¯ãã§ãã 注æï¼ã¨ãããããxreaã§Railsãåãããã¨ã«ã¯æåãã¦ãã¾ãããfast cgiã§ã¯åããã¦ãã¾ããã æ¹éã»æ¡ä»¶ xreaã§Rails2.1ãåãããã®ããæ¤è¨¼ãããtodoã管çããç°¡åãªã¢ããªãä½â¦
Railsã®éçºã§ãªã«ããªã使ã£ã¦ããsqlite3ããã¡ã¤ã«ãã¼ã¹ã®DBã§ãµã¼ãã¼ãããã£ã¦ãã¨ãããã¯åãã£ã¦ããã ãã©ããã¾ãã¡ãªã«ãåºæ¥ãã®ãããåãããªãã®ã§ç°¡åã«ã¾ã¨ãã¦ã¿ãã以ä¸å ¬å¼ãã¼ã¸http://www.sqlite.org/ããï¼è±èªï¼ 翻訳ãã¦ä¸ãã£ã¦â¦
ããã ãï¼ class Foo def aaa self.bbb end private def bbb puts "bbb" end end Foo.new.aaa # => ã¨ã©ã¼ã ãã privateã¡ã½ããã¯selfã¬ã·ã¼ããçç¥ãã¦å¼ã³åºãã class Foo def aaa bbb end private def bbb puts "bbb" end end Foo.new.aaa # => "bbbâ¦
ãªãã¸ã§ã¯ãæåã§ãªãã¤ããã®ãâç¥ã£ã¦ããããããã°ã©ãã³ã°ãUMLãè¨è¨ã®åºç¤ç¥èâä½è : å¹³æ¾¤ç« åºç社/ã¡ã¼ã«ã¼: æ¥çµBP社çºå£²æ¥: 2004/06/03ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 34人 ã¯ãªãã¯: 448åãã®ååãå«ãããã° (198件) ãè¦ãææ¥ãå¾è¼©ã«ãªãã¸ã§ã¯ãâ¦
åéãããã®ã¾ãã§ãããã¡ãããèªæãè¾¼ãã¦ã http://d.hatena.ne.jp/fromdusktildawn/20080810/p1 女ã®åãä½ãããã¹ããããã¯ããã®å¥³ã®åèªèº«ãæ°ã¥ãã¦ããªããããã女ã®åèªèº«ãããå ã«æ°ã¥ãã¦ãããã 女ã®åã¯ãæç´ãæªå£ãæ³£ãè¨ãè¨ãç·â¦
ä¼æ©ä¸ã«è¶ éã¡ã¢ãhelperã«å®ç¾©ããã¡ã½ããã¯ãRJSãã³ãã¬ã¼ãå ã§pageã«ãã¤ã³ãããã¦ãããã©ããããã¨ãã¨ããã¨ã # helpers/comments_helper.rb module CommentsHelper def show_comments page["comments"].replace_html :partial => "comments" eâ¦
æ¥åã§ã®Railsæ´ã2ã¶æãè¶ ãã¦ã ãã ãRubyã«æ £ãã¦ãããã§ãããæ¨æ¥putsãpã¡ã½ããã£ã¦ã©ãã«ãããã ã£ãï¼ã¨èããã¦å³çã§ããã®ãæããã£ãã®ã§ãRubyã®åºæ¬ã«ã¤ãã¦ãããããã¦ã¿ã¾ããã ã¡ãªã¿ã« pãputsãªã©ã®çµã¿è¾¼ã¿é¢æ°çã«ä½¿ãã¡ã½ããâ¦