2012-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãããVPSã® Centos 6.3 ã®ãµã¼ãã« nginx ãã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãã¦ãinitã¹ã¯ãªããã®è¨å®ãããã¨ããã¾ã§ã®ã¹ã¯ãªãããä½ã£ãã®ã§è²¼ã£ã¦ããã¾ãã gist ã®ãã¡ã¤ã«ã¯æ¬å½ã¯ clone ãããã®ã§ããããªããããããµã¼ãããgistã®ãªãã¸ããªãcloneâ¦
emacs 㧠command ãã¼ã Meta ãã¼ã¨ãã¦ä½¿ãããã«ãªã£ã¦å¹¾å¹´æãterminal ã§ãåæ§ã®æä½ã§ä½¿ãããã¦ãããã¾ã§ SwapOptCmd ã便å©ã«ä½¿ã£ã¦ãã¾ãããããã mountain lion ããããããã¾ãåä½ããªããªãã¾ãããã©ããã SIMBL ã mountain lion ã«å¯¾â¦
ä¸è¨ã®ã¨ã³ããªã«ããã¨ãnew relic ã®ã¢ããªã³ã使ããã¨ã§ heroku ã® spin up å¾ ã¡ããªãããã¨ã®ãã¨ãªã®ã§æ©éãã®ããã°(heroku & lokka)ã«å°å ¥ãã¦ã¿ã¾ããã Running a high volume Rails app on Heroku for free // Collective Idea ãã£ããæé neâ¦
çãããfont-awesome ã¯ä½¿ã£ã¦ãã¾ããï¼font-awesomeã¯ãtwitter bootstrap ãæä¾ãã¦ããã¢ã¤ã³ã³ãããã©ã³ãã¨ãã¦ä½¿ããããã«ãã¦ãããã©ã¤ãã©ãªã§ãããã©ã³ããªã®ã§ãæ¡å¤§ãã¦ãç»è³ªãèããªããªãã§ãããè²ãå¤ãããã¨ãç°¡åã«ã§ãã¾ããã¹ãâ¦
æè¿ããgem ã® README ã rdoc ãèªãã§ãããããããªãã®ã§ã½ã¼ã¹ãèªãããã¨ãã¡ããã¡ããããã¾ãããããªã¨ã㯠ã°ã°ã£ã¦ github ã®è©²å½ãã gem ã®ãã¼ã¸ã«ç§»å ãªãã¸ããªã®URLãã³ãããã¦git clone hoge emacs ã§ãã¡ã¤ã«ãéãã¦èªã ã®ãããªâ¦
ããå宿 ã®å¾ãä¸éã«ç§»åãã¦æ±äº¬Rubyå¿å¹´ä¼ã«åå ãã¾ããããããRubyå¿å¹´ä¼ã«åå ããã®ã¯åã ã£ãã¯ãã§ãããåå°ã®åå¼·ä¼ã§ä¼ã£ããã¨ã®ãã人ãããããããã®ã§ãããã«ãªããã¨ç¡ã楽ããå¿å¹´ã§ãã¾ããã #rubyfriends twitter.com/1syo/status/â¦
å æãæ¥å ã«éçºå宿ã«è¡ã£ãã¨ã³ããªã®æå¾ã§ãããªãã¨ãæ¸ãã¾ããã ä»ã«ãéçºå宿ã®ããçã¿ãããªæãã§å°äººæ°ã®ããã«ã½ã³ãé±ã«ä¸å or äºé±éã«ä¸åãããã®ãã¼ã¹ã§ã§ãããè¯ããªããããã¯éã¾ãã®ã«è¯ãå ´æããã£ããããã«ã§ãä¼ç»ãããã¨â¦
pry-rails ã¯ãç»å ´ããé ã¯åç´ã«rails consoleããã¨ãã« pry ã使ããã ãã® gem ã ã£ãã¯ããªã®ã§ãããä»æ¥ README ãã¿ã¦ã¿ããç¬èªã®ã³ãã³ããå®ç¾©ããã¦ãã¾ããã show-routes rake routesã¨åãçµæãè¿ã£ã¦ãã¾ããrails ã®ãã¼ããçµãã£ã¦ãã®â¦
æ¥å¹´1æã«ããæ±äº¬Rubyä¼è°10 ã§çºè¡¨ã§ãããã¨ã«ãªã£ãã®ã§ãã©ãããªããããã¬ã¼ã³ãããããªã¨æã£ã¦èªã¿ã¾ããã ãã¬ã¼ã³ãã¼ã·ã§ã³Zen 第2çposted with amazlet at 12.12.09ã¬ã¼ã»ã¬ã¤ãã«ãº Garr Reynolds ãã¢ã½ã³æ¡å 売ãä¸ãã©ã³ãã³ã°: 2763Amâ¦
ä¸è¨ã®ãã㪠UserGroup, User, Blog ãããã¨ãã¾ãã # == Schema Information # # Table name: user_groups # # id :integer not null, primary key # name :string(255) # created_at :datetime not null # updated_at :datetime not null # class UserGâ¦
minitest ã«ã¯æ¨æºã§ mock ã stub ã®æ©è½ãä»ãã¦ãã¾ãããããã®æåã«ã¤ãã¦å¦ãã ã®ã§ã¡ã¢ã ã³ã¼ãä¾ ä¸è¨ã®ãã㪠Person ã¯ã©ã¹ã¨ Whisky ã¯ã©ã¹ãããã¨ãã¾ãããããã«ã¤ã㦠minitest ã® mock 㨠stub ã使ã£ã¦ãã¹ããæ¸ãã¦ã¿ã¾ãã class Perâ¦
ä¸é£ä¼ãå©ç¨ãã¦ãæå¿ã§éçºå宿ã«è¡ã£ã¦ãã¾ããã宿ã¯éçºå宿ç¨ãã©ã³ããããã¯ããã®ãã£ã½ãã¨ããæ¥å ã«ãããã³ã·ã§ã³ã§ããã æ¥å ã§ã®å®¿æ³ã¨è¦³å ãæ±ç §å®®è³è¿ã®å®¿ã»ãã³ã·ã§ã³ã¯ããã®ãã£ã½ å宿ã®è©³ç´°ã«ã¤ãã¦ã¯ãåè¡ãã @bekkou68 ããããâ¦
ãã°ããåã«è¡¨é¡ã® gem ãä½ãã¾ããã willnet/rake_shared_context ä¸èº«ã¯ãã ã® shared_context ã§ããããã¯åã®ãªãªã¸ãã«ãª gem ã§ã¯ãªãã¦ãthoughtbot 社ã®ããã°ã«æ¸ããã shared_context ã®ã³ã¼ããã»ã¼ãã®ã¾ã¾ gem ã«ããæãã§ããæ¯å rake â¦
backboneå ¥éããããã«ã Backbone + CoffeeScript ãèªã¿ã¾ããã ãã®æ¬ã«ã¯ãbackbone.js ã®æ§æè¦ç´ (Model, Collection, View, Historyãªã©)ãç« ç«ã¦ã§ããããããã¾ã¨ãããã¦ãã¦ãããããã®ç« ãã¨ã§ãµã³ãã«ã¢ããªãä½ãè¾¼ãã§ããéç¨ãæ¸ããã¦â¦
æè¿DDDãDCIãªã©ã®ãã¼ã¯ã¼ããæ°ã«ãªã£ã¦ããã®ã§ããããããªæã«ä¸è¨ã®ãããªåå¼·ä¼ãéãããã®ãç¥ã£ãã®ã§åå ãã¦ã¿ã¾ããã 10æ26æ¥ è±ãã¤ãï¼ãã¡ã¤ã³å± é å±ï½ã¢ãã«é§åããã°ã©ãã³ã°ã®éãï½(æ±äº¬é½) DDDãDCIãæ°ã«ãªã£ã¦ããã®ã¯ããRailsâ¦
EdgeRails.infoè¦ã¦ããæ°ã«ãªã£ãã®ã§èª¿ã¹ã¾ããã æè¿ rails ã® master ã«ã rails 3.x ç³»ã§ãã使ã£ã¦ãã first_or_create ã¨ä¼¼ãã¡ã½ãã find_or_create_by ã追å ããã¾ããããã㦠first_or_create ã®æ¹ã¯ã¡ã½ããã®èª¬æãåé¤ãããdepricated ã½â¦
mac(mountain lion)ã®ã¿ã¼ããã«ã®ã¿ãåãæ¿ãããchrome ã safari ã¨åãããã« Ctrl-TAB ã§ããæ¹æ³ã以åã¯2009/02/25: Ctrl+Tabã§ã¿ã¼ããã«ã®ã¿ããåãæ¿ããæ¹æ³ - ãã¿ããæ¥è¨ã«æ¸ããã¦ããæ¹æ³ã§ãã£ã¦ããã®ã ããã©ãæè¿ãã¾ãåããªãã¦å°â¦
注æ ãã®ã¨ã³ããªã¯æ¥ãã§æ¸ããã®ã§ééããå«ã¾ãã¦ããå¯è½æ§ãé«ãã§ããæ°ã¥ããæ¹ã¯ãææãã ããã åºæ strong_parameters ã¨ã¯ãmass assignment ã§ä½è¨ãªãã©ã¡ã¼ã¿ãã¢ãã«ã®å±æ§ã«ã»ãããããªãããã®æ°ããä»çµã¿ã§ããRails 4.0 ããã¯ããâ¦
ãããHaskell楽ããå¦ã¼ãï¼ã®èªæ¸ä¼ ã¨ã¯å¥ã«ããªã¼ããã«ã³ã¼ãã®èªæ¸ä¼ãç¶ãã¦ãã¦ãå æ¥ã¤ãã«èªäºã«è³ãã¾ããã ãªã¼ããã«ã³ã¼ã âããè¯ãã³ã¼ããæ¸ãããã®ã·ã³ãã«ã§å®è·µçãªãã¯ãã㯠(Theory in practice)posted with amazlet at 12.10.14Duâ¦
ã¨ã©ã¼éç¥ç¨ã®ã¦ã§ããµã¼ãã¹ Airbrake ã® ruby ç¨ãã©ã°ã¤ã³ airbrake ã® README ãä¸é¨å訳ããã¡ã¢ãçºæããã®ã§è¼ãã¦ããã¾ãã airbrake 㯠exception_notification ã¨ã¯éãå種ã®ã¨ã©ã¼ã§ããã°è¤æ°åçºçãã¦ãéç¥ã¯ä¸åã ãéãããã®ã¨ãwebä¸â¦
ããã£ãã®ã§ã¡ã¢ãç´ ã® minitest 㨠capybara ã§ãã¹ããæ¸ãæ¹æ³ãããã¾ãããã¨ãããã試ãã¦ã¿ããªã minitest-rails 㨠minitest-rails-capybara ã使ãã®ãä¸çªæ©ãã§ãã Gemfile ã«ä¸è¨ã®ããã«æ¸ã㦠bundle install group :development, :test dâ¦
#385 Authorization from Scratch Part 1 (pro) - RailsCasts ãè¦ã¦ãã¦æ°ã¥ããã®ã§ã¡ã¢ã Ruby on Rails Documentation ã«æ¸ãã¦ãã£ãã³ã¼ãä¾ãã¿ãã¨åãããã©ãinclude? ã®éãã¿ã¼ã³ã§ãããåºæ¬çã«ã¯ include? 使ãã°ããã¨æãã¾ãããå ´åã«ãâ¦
strong_parameters ã®ã½ã¼ã¹èªãã§ãã Hash#slice ã使ããã¦ãããã¨ã«æ°ã¥ãã¦ããããããããªã¡ã½ãããã£ãã£ãï¼ãã¨ãªã調ã¹ã¦ã¿ã¾ãããã©ããã Rails(ActiveSupport) 㧠hash ãæ¡å¼µãã¦ããããã§ãã å¼æ°ã® key ã ããå«ã hash ãè¿ãã¾ããâ¦
èªã¿ã¾ããã ãããHaskellãã®ããå¦ã¼ã!posted with amazlet at 12.10.03Miran LipovaÄa ãªã¼ã 社 売ãä¸ãã©ã³ãã³ã°: 7299Amazon.co.jp ã§è©³ç´°ãè¦ã 7æããé±ã«ä¸åº¦ã®ãã¼ã¹ã§ããããHæ¬ã®å°äººæ°èªæ¸ä¼ãéå¬ãã¦ãã¾ãã(ã¾ã ç¶ç¶ãã¦ã¾ã)ãåºæ¬â¦
æ¨æ¥ @bekkou68 ããã«ãå島ããã£ã¦ã©ããã£ã¦RubyãRailsé¢é£ã®æ å ±ãåéãã¦ãããã§ããï¼ãã£ã¦èãããã®ã§ã¾ã¨ãã¦ã¿ã¾ããã¨ããããæµ·å¤ã®ããã°éå®ã§ãæ¥æ¬ããã°ç·¨ã¯æ°ãåãããããã¾ãâ¦ã RailsCasts æåããã¦èª¬æä¸è¦ããããã¾ããããâ¦
Rails 4.0 ã®ããã©ã«ã Gemfile ã«å ¥ãããããpjax ã£ã½ããã¨ããã¦ç»é¢é·ç§»ãé«éåãã gem turbolinks ã«ã¤ãã¦è»½ã調ã¹ã¦ã¿ã¾ããã Introducing Turbolinks: github.com/rails/turbolinâ¦. This will ship as default-on in Rails 4.0 Gemfile. PRESSâ¦
ãããVPSã«jenkinsãã¤ã³ã¹ãã¼ã«ãã - willnet.in ã®ç¶ãã§ããä¸ã¶æ以ä¸æéã空ãã¦ãã¿ã¾ããï¼ï¼ä»åã¯ããbitbucketä¸ã®ãªãã¸ããªã«pushãããèªåã§ãã¹ããèµ°ããã®ã¨ãjenkinsä¸ã§ãã¹ãã«ãã¬ãã¸ã¨ãã¹ãçµæã®ã°ã©ãã確èªã§ãããã¨ããã¾â¦
ä»æ¥ãmiuchee ã®ç»é²è æ°ãä¸èªç¶ã«å¢ãã¦ãã®ã§åå ã調ã¹ãããlifehacker ã« miuchee ãæ²è¼ããã¦ãããã¨ã«æ°ã¥ãã¾ããã æ¯æ¥ã®ããã¤ã¼ãã¾ã¨ãããã¡ã¼ã«ã§å ±æã§ãããµã¼ãã¹ãmiucheeã : ã©ã¤ãããã«ã¼ï¼»æ¥æ¬çï¼½ èªåãã¡ãä½ã£ããµã¼ãã¹ãâ¦
ããã¾ã§ rand(2) == 1 ã¿ããã«æ¸ãã¦ããã©ãRailsCasts ãè¦ã¦ããã [true, false].sample ã®ããã«æ¸ãã¦ãã¦ããã£ã¡ã®ã»ããè¥å¹²èªã¿ãããã§ä¸åã£ã¦ãã¦ããããã¨æãã¾ãããä»ã«ãã£ã¨ããæ¸ãæ¹ããããï¼ã¨ããæ¹ããã£ããã£ããæãã¦ãã ãâ¦
æå¹Rubyä¼è°2012ã«åå ãã¾ãããäºç´ãã¦ãããã«ãä¸é±éåã«ããã«é½åã§äºç´ãã£ã³ã»ã«ã«ãªã£ãããè¡ãã®é£è¡æ©ã®æéãééãã¦ãã¾ããã©ãã«ãããã¤ã¤ããªãã¨ã3æ¥éãã«ã«åå ãããã¨ãåºæ¥ã¾ããã äºç´ãã¦ãæå¹ã®ããã«ãè¨åæ éã§ä¼ã¿ã«â¦