2008-04-01ãã1ã¶æéã®è¨äºä¸è¦§
ä»æ¥å°ãã ãåå¼·ããã®ã§ã¡ã¢ã defun defun é¢æ°å å¼æ° å¼æ°ã®åã«&optionalãã¤ããã¨ãç¶ãå¼æ°ããªãã·ã§ã³å¼æ°ã«ã§ããããªãã·ã§ã³å¼æ°ã¯å¼æ°ã渡ãããªãã£ãå ´åã«nilã«ãªããrubyã§ããã¨ä¸è¨ã def hoge(fuga=nil) end defunã®å¾ã« (interactiveâ¦
æ¨æ¥ã«å¼ãç¶ãã¡ã¢ActiveRecordå¾©ç¿ - ããããWEBãµã¼ãã¹éçºæ¥è¨ ãªãã¸ã§ã¯ããDBã«ç´æ¥ä¿åããæ¹æ³ãã®ï¼ textåãæã£ããã¼ãã«ãä½ã Modelå®ç¾©å ã«ä¸è¨ã®ããã«æ¸ã serialize :column_name ãã¨ã¯æ®éã«ä¿åãããå¼ã³åºãããã§ãããã¡ãªã¿ã«Dâ¦
ããã¾ã§å人çã¡ã¢ç¨ã«puki-wikiãã¬ã³ã¿ã«ãµã¼ãã¼ä¸ã«ç½®ãã¦ããã®ã§ãããæè¿ããããæ¡å¼µããã欲ãããã¦ãã¾ãããã§ãphpã¯ç´ 人ãªã®ã§åå¼·ã«æéãããããªã¼ã¨æã£ã¦rubyãã¼ã¹ã®wikiã§ããhikiãå°å ¥ã«ãã¦ã¿ããã¨ã«ãHiki - FrontPagehiki-modeâ¦
railsã§ãããªã¯ã¹URLãµãã¼ããã¦æ¬²ãããªã¼
rubyå ã§ãselfã¯åºæ¬çã«çç¥å¯è½ãªã®ã§ããã self.hoge = "hoge" ã®ããã«ã"=" ä»ãã®ã¡ã½ããã®æã¯selfã®çç¥ãã§ãã¾ãããçç¥ããå ´åã¯ããã¼ã«ã«å¤æ°ã¸ã®ä»£å ¥ã¨ãªãã¾ãã ã¨ããã¨ãä¸è¨ã®ãããªæãã©ã¡ãã®å¤ãåºåãããã®ã§ããããã self.â¦
ãªã¬ã¼ã·ã§ã³é¢é£ããã¾ã使ãããªãã¦ããªãã®ã§ãrailsã«ããã¢ã¸ã£ã¤ã«webã¢ããªã±ã¼ã·ã§ã³éçºãèªã¿è¿ãã¦ã¿ããåå¼·ã«ãªã£ããã¨ãã¡ã¢ã¡ã¢ã ãã¼ãã«æ å ±ã®åå¾ ä¸è¨ã®ãããªãã¤ã°ã¬ã¼ã·ã§ã³ã§peopleãã¼ãã«ãå®ç¾©ããã¦ããã¨ãã¦ã create_tableâ¦
ããããrailsã®ã³ã¼ããèªãå¿ è¦ãããããã
(2008/09/12ä¿®æ£) railsã§ãã¹ããããã¨ãã«ãfixtureã®å®ç¾©ãããªãã¦ã¯ãªããªããã¨ãå¤ã ããã¾ãã ãã¼ãã«ãå°ãªãã¨ãã¯æã§ä¸ã¤ãã¤æ¸ãã¦ãã£ã¦ãããã®ã§ããããã¼ãã«ãå¤ãã¨ã¨ã¦ã大å¤ã§ããããã§ç°¡åã«fixtureãä½ãæ¹æ³ã¯ãªããã®ã調ã¹ã¦â¦
ããªãã ã®railsåå¼·ä¼ã®rakeã»ãã·ã§ã³æã«ãedge railsã§æ°ããå°å ¥ãããrake rake gems:install ã§ã¤ã³ã¹ãã¼ã«ãã¹ãgemãenvironment.rbã«ã©ã®ããã«è¨è¿°ãããï¼ ã¨ãã話ã«ãªã£ã¦ãçµå±ããã¬ã¼ãªã·ã³ã¿ãã¯ã¹*1ã§ã§ãããã©ãã£ã¨ç°¡åãªæ¸ãæ¹ããâ¦
èªåã®åæ¸ãã¦ããããã°ãã転è¼ãifæå ã«ããã¦false以å¤ã§å½ã¨ãªãæ¡ä»¶ãæ¸ãã¦ãã¾ãã rubyã«æ £ãã¦ãã¾ãã¨perlã¨phpã®"0"ã¯éåæãããªãã maeshima blog » ifæã®åå²æ¡ä»¶ãããã ruby nil perl 0 â0â³ undef ââ(空æåå) php 0 â0â³ null ââ(空â¦
Rails' Wiki - Railsåå¼·ä¼ï¼ æ±äº¬ç¬¬29åå¾åã¯rakeã«ã¤ãã¦ã§ãã edgeã§è¿½å ãããrake 2.0ãã追å ãããrake ãä¸å¿ã«ãrakeãä¸éãè¦ã¦ããã¾ãããã¾ãã rake rails:freeze:edge ã§edgeãã¤ã³ã¹ãã¼ã«ã edgeã§è¿½å ãããrake edgeã§ã¯ãmigrationãâ¦
ä¸ã®è¨äºã§ãHTMLå ã®idãclassåã«ã¢ã³ãã¼ã¹ã³ã¢( _ )ã¯å¤ããã©ã¦ã¶(Netscape4ã¨ã)ã ã¨è¡¨ç¤ºãå´©ãããã使ããªãæ¹ãããã£ã¦æ¸ãã¦ãã£ããã©ãä»Netscape使ã£ã¦ãã人ã£ã¦ã©ãããããããã ãããã ruby使ã£ã¦ããã¨ã©ããã¦ãã¢ã³ãã¼ã¹ã³ã¢ä½¿ããâ¦
æ¥æã¯railsåå¼·ä¼ã«åå ãã¦ã¾ããã Rails' Wiki - Railsåå¼·ä¼ï¼ æ±äº¬ç¬¬29åã¨ããããã§ã¡ã¢ãååã®ã»ãã·ã§ã³ã¯gitã«ã¤ãã¦ã§ããã git(ã®ãã)ã®ã¤ã³ã¹ãã¼ã«ï¼ç¹å¾´ãªã© ãã£ã¨ã£ã¦èªãã¨æã£ã¦ã¾ããï¼ï¼ ç¡ç·LANã使ããªãç°å¢ã ã£ãã®ã§ãèªåã§ã¯â¦
æã ã¤ã³ã¹ãã¼ã«ãããã ãã©ãããå¿ãã¦ããã®ã§ã¡ã¢ ã³ã³ã½ã¼ã«ã§æ¥æ¬èªãæååãããåé¡ã¸ã®å¯¾å¦ .bashrcãéã vi .bashrc ä¸è¨ã追è¨ãã export LANG=C ãªãã¸ããªã®æ¤ç´¢å ããcd-romãåé¤ vi /etc/apt/sources.list deb cdromã®è¡ãã³ã¡ã³ãã¢ã¦â¦
調ã¹ããã¨ãã¡ã¢ã¡ã¢ ã³ã¼ã«ãããã¯ã¢ãã ã³ã¼ã«ãããã¯ã¢ããã¨ã¯ãã¤ã³ã¹ã¿ã³ã¹åæ¢ãã¦è¡ãããã¯ã¢ããã®ãã¨ã ã³ã¼ã«ãããã¯ã¢ããã®æ¹æ³ ãã¼ã¿ãã¡ã¤ã«ãtarãªã©ã§åºãã¦ã©ããå¥ã®å ´æã«ç½®ãã¦ããã ãã ã³ã¼ã«ãããã¯ã¢ããã®ãªã«ããªæ¹æ³ â¦
http://q.hatena.ne.jp/1201010437 ããããã«è³ªåã§ãã ä¸è¨è³ªåã§sessionã®è¨å®æ¹æ³ã¯ãããã¾ããããrefererãè¨å®ããæ¹æ³ããããã¾ããã è¨å®æ¹æ³ãæãã¦ãã ã.. - 人åæ¤ç´¢ã¯ã¦ãªè±èªã§ããã£ãã解決ããããããªæãã§refererãã»ããã§ãããâ¦
åã¯åºæ¬çã«Carbon Emacs使ããªã®ã§ããããµã¼ãã«sshã§ãã°ã¤ã³ãã¦ä½æ¥ããã¨ãçã¯ã¿ã¼ããã«ããã«emacsã使ãã¾ããã¿ã¼ããã«ã¯ãCarbon Emacsã¨éãMetaãã¼ãoptionãã¼ã«å²ãæ¯ããã¦ãããã¾ãCommand+wããã¿ã¼ããã«ã®ã¦ã£ã³ãã¦ãéãããã¨é¢â¦
家ã®mac miniã®carbon emacsã§rubyãæ¸ãã¦ãã¦ãä¿åãããã¨C-x C-sããããããªã¨ã©ã¼ãã§ãã Symbol's function definition is void: coding-system-to-mime-charset 調ã¹ã¦ã¿ãã¨ãã©ããæè¿ã®carcon emacsã®ruby-modeãæ¥æ¬èªã«å¯¾å¿ãã¦ããªãã¿ããâ¦
3æ23æ¥ã«åããTOEICã®çµæãåºã¾ãããåé¨ããï¼é±éã»ã©ã§çµæãã§ããã§ãããæ©ããçµæã¯ãã¡ãã æ£ç´åºæ¥éããªæ°ããã¾ããåã®ä¸ã§ãTOEIC700ã¯ãã£ã¨è±èªã®ã§ãã人ã®åãç¹æ°ã ã¨æã£ã¦ãã¾ããã ä»ã®åã®ã¬ãã«ã¯ãããªæãã§ãã è±èªã®ããâ¦
Rubyist Magazine - ã¹ã¯ã¹ããã¯ã®ã¹ ã第 2 åã RSpec on Rails (ã³ã³ããã¼ã©ã¨ãã¥ã¼ç·¨)åçµãã¾ããã Test::Unitæ代ã¯ãmodelãå®æãã¦ãªãã¨functionãã¹ããã§ããªãã£ãããã«ãcontrollerãviewã®ãã¹ãã¯å¾åãã«ãªããã¡ã§ããã ã§ãrspecã¯â¦
ãµã¼ãã¹ã®æ§æ³ãè¨è¨ã«æºããè ã¯ç¹ã«ããããã®ææ°æè¡ãååã追ããããä¸æ¹ã§ããã¡ãã¨äººã¨æ¥ãã¦ããããä»äºä»¥å¤ã§ã人ã¨ä¼ãã話ãã¦ããããã¨ãã話ãããã ããã¤ã¼ - jkondoã®æ¥è¨ ãã®éãã ãªã¼ã¨æãã¤ã¤ãä»æ¥ã¨ææ¥ã¯èª°ã¨ãä¼ããã«å®¶ã§â¦
ä¸è¨ã®è¨äºã®ãµã³ãã«ãåçµãã¦ã¿ã¾ãããã ãããæ¦è¦ã¯ããã£ãã®ã§å¾ã¯è¦ãããã¨ã使ã£ã¦ä½ãä½ã£ã¦ã¿ããã¨ããã第3å以éããã§ã«ã¢ããããã¦ããã®ã§ãããããã¨ããæ¹æ³ããããã©ãåçµããããèªåã§ããããããã£ãæ¹ãæ©ãè¦ããã¨æãã®ã§â¦
RubyForge: emacs-rails: Project Infoä¸è¨URLã®latest newsã®æ¬ã ãè¦ã¦ãã¦ããææ°çã®ãªãªã¼ã¹æ¥ã2007-05-27ï¼ã¿ããªemacsããtextmateã«ã§ãä¹ãæããã®ãï¼ããã¯èªåãtextmateã«ä¹ãæãããããã¨ãlispè¦ãã¦ã«ã¹ã¿ãã¤ãºãã¦ããããã»ã»ã»ããªâ¦
æ å ±ãå¶éãããã RSSãªã¼ãã¼å ã®ãã£ã¼ã(60ãµã¤ãããã) ã¯ã¦ãªã®ãããã³ã㪠twitterã§ã®ã¤ã¶ãã æ¤ç´¢ ãªã©ãèªåã®ä¸»ãªæ å ±æºã§ãããæ å ±ãå¤ããã¦æ¶åä¸è¯ãã¯ã¦ãã®ããã¨ã§èªããã¿ã°ãã¤ããè¨äºã ãããã¾ã£ã¦ãã£ã¦ãã¾ãã æ¬å½ã«å¿ è¦ãªâ¦
rspecãã¡ããã¡ããåå¼·ãã¦ãã¾ããã¨ããããä¸è¨ãä¸éããã£ã¦ã¿ã¾ãããRubyist Magazine - ã¹ã¯ã¹ããã¯ã®ã¹ ã第 1 åã RSpec ã®æ¦è¦ã¨ãRSpec on Rails (ã¢ãã«ç·¨)ãã£ã¦ã¿ãææ³ã¨ãã¦ã¯ ãã¹ãã®æ§æåä½ãå°ããã§ããã ãã¹ãã®ã³ã¡ã³ãæ¸ãâ¦
æè¿ãããããªãã¨ãã¡ã¢ã£ã¦ãã¾ãã æè¡çãªã¨ãã ãããªãµã¼ãã¹ãã£ãããªã¼ã¨ããã㨠çåã«æã£ãã㨠ãã©ã¤ãã¼ããªã㨠ä»ã¯ãã¾ãemacsã«ã¡ã¢ãã¦ããã©ã¤ãã¼ãã¢ã¼ãï¼ãã®å ´ç·¨éæ©è½ã®ã¯ã¦ãªãã¤ã¢ãªã¼ï¼ãµãã¢ã«ã¦ã³ãï¼ã«è²¼ä»ãã¨ããæ¹â¦
ã¯ã¦ãªãã¤ã¢ãªã¼ã§ãkwoutã§ä½¿ãããmapã¿ã°ãå©ç¨ã§ããããã«ãªã£ããããã®ã§ãã¹ããBiz.IDã®ä½¿ãæ¹ï¼ITmediaã®è¨äºãããã°ã«æ¸ãããããªãã¾ãã - ITmedia Biz.ID via kwout[http://d.hatena.ne.jp/hatenadiary/20080410/1207821427:title=Webãã¼â¦
javascriptã¯ã¾ã ã¾ã ç´ äººåç¶ã§ãããã¨ããããä»æ¥åå¼·ãããã¨ãæ¸ãã¨ãã¾ãã javascriptã§ãã¼ã¸ãéãã«ã¯ å¥ã¦ã£ã³ãã¦ã§ããããã¼ã¸ãéãã¨ãã¯windowãªãã¸ã§ã¯ãã®open()ã¡ã½ããã使ãã window.open("http://level20.jp/); åãã¦ã£ã³ãã¦ã§â¦
railsã§RESTãå®ç¾ããããã®æ¹æ³ã«ã¤ãã¦ã¾ã¨ãã RESTã¨ã¯ Representational State Transferã®ç¥ URI(åè©)ã¨method(åè©)ã§æ¯ãèãã決ãã RESTã«ããã¡ãªãã å¤ããã«ããURIãCool URIããå®ç¾ã§ããã¦ã¼ã¶ããªãã£ãããã ã¤ã³ã¿ãã§ã¼ã¹æ§ç¯ææ³â¦
mac使ãã«ãªã£ã¦ç´åå¹´ãããã¾ã§officeç³»ã®ã½ããã¯å ¥ããã«ãpreviewã®é²è¦§ã ãã§ãªãã¨ããã¦ã¾ãããããããæ¬æ ¼çã« officeã使ãæ段ãå¿ è¦ã«ãªã£ã¦ãã¾ãããã§ãã©ããã£ã¦mac de officeããããã¨ããããèãã¦ãã¾ãã 以ä¸ãããããã°ã macçâ¦