ããã°ãå¢ãï¼ã¦ï¼ã¾ãããHi - Hibariyaçç±ï¼ãã¤ã使ã£ã¦ããã¨ãã£ã¿ï¼èªåã®å ´åã¯Vimï¼ã§æ¥è¨ãæ¸ãããã£ãããã¾ãã«ãããã¹ãã¨ãªã¢ã§ã®æç« ç·¨éï¼ã¨ã¯ã¦ãªè¨æ³ï¼ã身ã«ã¤ããªãã®ã§ãããã«æ¥è¨ã楽ã«æ¸ããã追æ±ããäºå®ãã¾ãã¯ãã¿ã¼ããã«â¦
ããæ°ã¶æéãè¡ããè¡ããã¨æãã¤ã¤ä¸ã ãããªãã£ã Rails' Wiki - Railsåå¼·ä¼@æ±äº¬ç¬¬63å ã«è¡ã£ã¦ãããä»å㯠RubyKaigi Advent Calendar 2011 | æ¥æ¬Rubyä¼è°2011(7æ16æ¥ã18æ¥) ã®ã¤ãã³ãã®ã²ã¨ã¤ã§ãããã®ã§ãããä¹ ã ã®åå ã§é å»ãããã§ãâ¦
hatena.vimã®åä½ç¢ºèªãå ¼ãã¦ãunscoped ã§è«çåé¤ããããã®ãå¼ã£å¼µã£ã¦ããããã¨æã£ããéã£ãã # mongoid-2.0.2/lib/mongoid/paranoia.rb <ä¸ç¥...> module ClassMethods #:nodoc: # Override the default +Criteria+ accessor to only get existinâ¦
ruby-1.9.2-p0 > 10.times.map{ 'foo' }.map{|v| puts v.object_id } 2152510320 2152510280 2152510200 2152510160 2152510120 2152510060 2152510020 2152509980 2152509920 2152509780 => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] ruby-1.9.2â¦
â»2011/11/08 ã³ã¡ã³ãæ¬ã§ææãé ããç®æãå çä¿®æ£ãã¾ãããã¾ããå²ã¨å¤ãè¨äºã§ãã®ã§ææ°ã®æ å ±ã¯ Fabrication ãåç §ãããã¨ãã奨ããã¾ãããããä½ã£ã¦ãã¨ããmachinistã¨machinist_mongoã使ã£ã¦ãããã§ããã試ãã«åã ããæ°ã«ãªã£ã¦ããFaâ¦
詳ããã¯: http://rsss.beã使ãã¨âã®ãããªæãã«ãªãã¾ãã http://rsss.be/hibariya ããã¯ãªã« 使ã£ã¦ããããã°ãã¾ã¨ãã¦ç»é²ã§ãããããã£ã¼ã«ã®ãããªãã® æè¿ããæ´æ°ãã¦ããããã°ã大ããä¸ã®æ¹ã«è¡¨ç¤ºãã æè¿ã©ã®ããã°ãããæ´æ°ãã¦ãããâ¦
ä»æ´ã§ããã使ããããã«ãªã£ã¦ã¾ããã®è¨é²ã % heroku stack aspen-mri-1.8.6 * bamboo-ree-1.8.7 bamboo-mri-1.9.1 (beta) bamboo-mri-1.9.2 (beta) % heroku stack:migrate bamboo-mri-1.9.2試ãã«ä½¿ã£ã¦ã¿ãã¨ãããHerokuã§ä½¿ãRubyã1.9.1ãã1.8.7â¦
ã¤ãäºé±éã¡ãã£ã¨åã«æ°¸åã·ã¹ãã ããã¸ã¡ã³ãã«å ¥ç¤¾ãã¾ããã ããã®äººéã¨ä»äºãããããã¨ãããããªãã¨ãä¸çªã®çç±ã§ãããä»ã¯æ©éRailsã®æ¡ä»¶ã«å ¥ããæ¯æ¥æ°ããªçºè¦ããã¦ãæä¸ã§ããã¾ã ãã¾ãæ¥ãçµã£ã¦ãã¾ãããããã£ããå¤åãããã¾ãâ¦
RubyKaigiã¸è¡ã£ã¦ãã¾ããã ä»ååãã¦åå ãããã§ãããæ³å以ä¸ã«ã¯ãªãªãã£ãé«ãã£ãã§ããã¹ã¿ããã®æ¹ã ãããã³ä½ããã®å½¢ã§éå¶ã«é¢ãã£ãæ¹ã ãæ¬å½ã«ãç²ãæ§ã§ãã&ãããã¨ããããã¾ãããå½æ¥ã®åç»ãªã©ã¯âããè¦ããã¨ãã§ããããã§ãã â¦
% cat lib/tasks/cron.rake task :cron => :environment do # nanika shori endããã§ãããã¨æã£ã¦ããã©ãå ¨ç¶ãã¾ãè¡ããªãã£ãã®ã§èª¿ã¹ã¦ã¿ãããcronã¯addonã ã£ããaddon足ãã¦ãªãã£ãã®ã§è¶³ãã¾ãããããã§åãã¯ãã % heroku addons:add cron:dâ¦
Rails3.0.0.rcã使ã£ã¦ããã§ãããè²ã ã¨ä¸é½åããã£ãã®ã§Rubyã®ãã¼ã¸ã§ã³ãæ³£ãæ³£ãæ»ãã¾ãããå ·ä½çã«ã¯ãããªæãã§ãã rakeã§ããªãã®ã§cronã使ããªã include Mongoid::Document ããmodelãnewããã¨[NoMethodError: undefined method `sanitiâ¦
ã¿ã¤ãã«ã®ã¾ãã¾ã§ãããæä¸ã寸åã ããããã°ãå°ãåã«Herokuã®Bundlerã®ãã¼ã¸ã§ã³ã1.0.0.rc.2ã«ä¸ãã£ã¦ã¾ããããªã®ã§rails 3.0.0.rcã®ã¾ã¾ã§ããããã¤ã§ãã¾ãã rakeããã¾ããããªãã®ã¯ã"Rails 3 doesn't officially support Ruby 1.9.1"ã£â¦
Herokuä¸ã®RailsããMongoDBã®ä¸èº«ãåç §ã§ãããããã¾ã§è©¦ãã¦ã¿ã¾ãããå¿ããªããã¡ã«ã¡ã¢ãã¦ããã¾ããä»åãã£ã¦ã¿ã¦ããã£ããã¨ã¯ä¸è¨ã ä»ã¯rails 3.0.0.rcã ã¨ãã®ã¾ã¾ãããã¤ã§ããªã MongoDBã使ãã«ã¯ã¢ããªã³ã使ã(ã¯ã¬ã¸ããã«ã¼ããå¿ è¦)â¦
rvmã§å ¥ããRubyã使ã£ã¦ãã¨ãã«ãsudoã¤ããã«gemã§ä½ãå ¥ãããã¨ããã¨ãªãã ãããããªãã¨ã«ãªã£ã¦ããã£ãã®ã§ã¡ã¢ãåå ã¯.gemrcã«æ¸ãã¦ã--user-installã§ããã çµç·¯ rvmãããã¾ãã rvm install ruby-1.9.2-rc2 rvm use ruby-1.9.2-rc2 gem insâ¦
ãã®ã¾ãç¾å¨ã®è·å ´ã§éè·ã®å¸æãä¼ããåçããã¾ãããä»å¾ãããã°ã©ãã¨ãã¦çãã¦ããäºå®ã§ãã次ã®è·å ´ãã»ã¼æ±ºã¾ãã7/23ã¾ã§ãå¼ãç¶ãã§ããã®å¾æä¼æ¶åâ8/15ã¾ã§ã®å¨ç±ã¨ãªãæãã§ããä»äºã§ã¯ä¸»ã«PHPã使ã£ã¦ãããã§ãããä»å¾ã¯Rubyã沢山â¦
Hibariya -> ã®ã©ãRubyã§ãã£ã±ãã«ã㦠ãã¨ãã®æ¬èªãã§ã¿ããã§ãã http://books.yahoo.co.jp/book_detail/AAB29427/
ãã¾ãã¤ã³ã¹ãã¼ã«ã§ããªãã£ã 1.9.3dev ãå ¥ã£ã¦ãã¾ããã®ã§å¾ã§è©³ãã調ã¹ã¾ããä½ããåç¥ã®æ¹æãã¦ãã ãããâ解決ãã¾ããã hibariya@HIBARIYA% rvm install 1.9.2-head Installing Ruby from source to: /home/hibariya/.rvm/rubies/ruby-1.9.2-hâ¦
ã¿ã¤ãã«éãã®ãã¨ãä»äºã§è³ªåããããã©ãCakePHPãã¡ããã¨ä½¿ã£ããã¨ãç¡ããç¥ããªãã£ãã®ã§èª¿ã¹ãããããã§æ¤ç´¢ããã°æ®éã«åºã¦ãã¾ããä¸å¿ã¡ã¢ã 使ã£ããã¼ã¸ã§ã³ã¯1.3.2 stableã§ãã ã»ãã·ã§ã³ãå ¥ãããåºããããããã¼ãã«ãä½æ CREATE â¦
iPadãè²·ããéããªããé»åæ¸ç±ã身è¿ã«ãªãã¾ã§ä½ããã¦å¾ ã£ã¦ãããã¨æã£ãã®ã§ãåããã¤ãããã¨æã£ã¦ããã¿ã¼ããã«ä¸ã®é空æ庫ãã¥ã¼ã¢ãä½ã£ã¦ã¾ãã GitHub - hibariya/azul: Azul: é空æ庫ã®ã¿ã¼ããã«ãã¥ã¼ã¢ åå: Azul(ã¢ãºã«ãã¢ãºã¼ã«) â¦
ä»å¹´ã«å ¥ã£ã¦ããå³ãä¼´ãçºä½ã£ã½ãã®ãããèµ·ãããªã¼ã¨æã£ã¦ããã©ããã¾ã«ããèµ·ãããªãã®ã§ã»ã£ããããã¦ãããã¤ãã«åæ¯ã«ãªãã¾ããããã°ããå°éã«æ²»ãã¦ãããªãã¨ãåå ã¯è²ã å¿å½ããããããã§ãããä»ã¯è¡æ¶²æ¤æ»ãã¦ããã£ã¦ããæä¸ã å¿â¦
ããã³ã§ãã ç¡åé¢æ°ã¨ããããRubyã§ãããããã¯ã®ãããªãã®ãå¼æ°ã«ã¨ããããã«ãããã¦ãpure PHPã ãã§ã©ãã¾ã§ã§ãããè²ã ã¨è©¦è¡é¯èª¤ãã¦ã¿ã¾ãããä½ã«ä½¿ãã®ãã¯ãã¾ãèãã¦ã¾ããã å®éã«ã§ããã®ã¯âã®ãããªæ¸ãæ¹ã®ä½ãã§ããè¦ãç®ã¯æ°æâ¦
asakusa.rbã§ã1.8ã¨1.9ããã¾ãå ±åãããæ¹æ³ããã¾ãããã¨è³ªåããæã«ãã²ããã²ããã£ã¨æãã¦ããã£ãrvmã¤ã³ã¹ãã¼ã«ã®ã¡ã¢ããã®ææã£ã¦ããmacbookã«ã¯ãããããã®ã§å¥ã®PC(Ubuntu)ã§è©¦ãã¦ã¾ããæãã¦ãã ãã£ãid:takkan_mãããããã¨ãããâ¦
Ubuntu(9.10 Karmic Koara)ã§ã®è©±ã notify-sendã¨ããã³ãã³ããç¥ãã¾ãã èªåã®ç°å¢ã§ã¯Command Not Foundã ã£ãã®ã§ãã¤ã³ã¹ãã¼ã«ã hibariya@HIBARIYA% aptitude install libnotify-bin hibariya@HIBARIYA% notify-send 'summary' 'body'ããã©ã«ãã§â¦
ä»äºã§ãå人çã«ãUbuntuãã使ããªããªã£ãã®ã§(Officeçãªä»äºã ããã®è¾ºã«è½ã¡ã¦ããã¼ãPCã«Windowså ¥ãã¦ä½æ¥ãã¦ã)ãããã«ã£ãããã¬ã¤ããã«ã¯wineãä»®æ³ãã·ã³ã£ã¦ããé¸æè¢ããã£ã¦ãwineä¸ã§åãã調ã¹ã¦ã¿ããå²ã¨åé¡ãªãåããããªã®ã§å®éâ¦
æ¹è¡ãã¦ã¿ããã¨ãæã£ããã¨ããªãã£ããã©ãæ¹è¡ããæ¸ãæ¹ããããã¨ãç¥ã£ããifæã«ããã«ã¯çããããã©ä¸é æ¼ç®åä¸è¡ã§æ¸ãã¡ããã«ã¯é·ãããè¨è¿°ã¨ããå¼ãé·ããããã©ãã®å ´ã§ã¯ã©ããã¦ãä¸è¡ãããªãã¨ã ãã§ãã§ãä¸è¡ã®ããã«ifã¨ãæ¸ãã®â¦
æè¡ã£ã½ãã¨ã³ããªããã£ã¡ã«æ¸ããã¨ã«ããã ã¿ã¤ãã«ã©ããã®ãã¨ããããã¨ããã¨ãã®ã¹ã¯ãªãããã¡ã¢ã #!/bin/sh directory_scan() { finds="" for file in `ls $1`; do finds=${finds}" "$file done if [ "$finds" = "" ]; then echo 'create: '${1â¦
å¤ããA4è¦éããã¼ã¸ã®å·¦ãã¼ã¸ã«æ¸ãããæåã ã¾ã丸ã太ãæ¸ä½ã§ç¸¦æ¸ãã®ããããããããªãã æåã®ä¸¸ããªã£ã¦ããé¨åãããã®ã¾ãããåãå°½ããã¦ããç«¥ã®ç¬ã£ã¦ããå£ã«ãªã£ã¦ããã åãããæåã§ã¯ãªãã¦ãããããããåãããç«¥ã®ç¬ã£ã¦ããâ¦
飼ã£ã¦ããé³¥ã®å³ç®ãçã£ç½ã«å¤è²ãã¦ãã£ã¨ãã夢ã
ä½ãã®æåã«ãå æ°ãªå¥³ã®åã«èè¹´ããé£ãã£ããæ¯ãåãã¨å¥³ã®åã¯èªåã¨åãä½ã®å¹´é½¢ã ã£ãã ãã観ãã¨å½¼å¥³ã¯èã«å¤§æªæããã¦ãã¦ãåææ¿ãè¦ããã¨ããªã赤ãé»è²ã®å¨å®ãä»ã«ãå¤ãã¦ãã¾ããããªæ§åã§ããã ãã ã£ããç®ãããåãè¦ã¦ã大ä¸å¤«ã â¦
OSã®ãã¼ã¸ã§ã³ãä¸ãã¦ããã¨ãããã®ããã©ã¦ã¶ã®èª¿åããããã夢ã æéãã©ã¦ã¸ã³ã°ã«å¥®éããæ¥ã (ã¨ããè¨å®)ã«ãä½ãä½è¨ãªæ©è½ãæ··ãã£ã¦é¬±é¶ããã LDRãæ¶åãã¦ããã¨ããã¤ã¨ãããããªãçªç¶ã®ã¿ã¤ãã³ã°ã§ã¿ããåãæ¿ãããããã¾ã§ã«èªåãâ¦