2013年5月11日土曜日

AirPlay via Ethernet disabled

Recent months AirPlay on my AppleTV has been disabled with no reason.
Until now I connected AppleTV to my home network via Ethernet cable.

Just now I found that AirPlay-Ethernet feature on AppleTV has been discontinued. To resolve the issue, I changed the network connection from Ethernet to Wi-Fi connection.
Though I don't want to make Wi-Fi bandwidth crowded, I have no other choice than Wi-Fi.
--------------
The route cause was the Wi-Fi router itself: after that the same issue appeared again. Rebooting the Wi-Fi router resolved the issue.

2013年5月7日火曜日

[Rails4] named route with helper in routes.rb

http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=4.0#sec-rails_routes

In rails4, the notation of routes.rb has been changed:

Rails3:

SampleApp::Application.routes.draw do
  root to: 'static_pages#home'
  match '/help',    to: 'static_pages#help',    via: 'get'
  match '/about',   to: 'static_pages#about',   via: 'get'
  match '/contact', to: 'static_pages#contact', via: 'get'  
  .
  .
  .
end

Rails4:

SampleApp::Application.routes.draw do
  root to: 'static_pages#home'
  get 'help' => "static_pages", as: 'help'
  get 'about' => "static_pages", as: 'about'
  get 'contact' => "static_pages", as: 'contact'

Enjoy!

2013年5月3日金曜日

[ruby] rvm vs rbenv

Today I found that  i installed rvm and rbenv simultaneously. OMG.

I had to remove rbenv and rvm, then chose rvm.

2013年4月28日日曜日

[ruby] pry

Awesome.

http://labs.timedia.co.jp/2011/12/rubyist-should-use-pry.html

How happy modern ruby beginners are.

Sublime Text 2

Eeeeexcellent!

http://dev.classmethod.jp/tool/html-corder-sublime-text-2-customize/

I immediately cast off emacs. emacs shouldn't have equipped filer and shell.
The only legacy of emacs is key bindings that are common with Evernote and are my hands remember.

2013年4月18日木曜日

Ruby on Rails on Mac OS X

http://mj-wave.com/post-731/

Homebrew is excellent. But unable to install Rails 4.0.0-beta1. It seems that the permission of rdoc directory is inappropreate. Knowing it is rough and rude, performed chmod -R 777 * and cleared.