# config/deploy.rb
set :git_shallow_clone, 1
Added --depth 1
option to deploy command if use this setting.
# config/deploy.rb
set :git_shallow_clone, 1
Added --depth 1
option to deploy command if use this setting.
$ defaults write NSGlobalDomain KeyRepeat -int 1
You need to reboot.
gemは問題無くできるものの、CIがエラー。
$ bundle exec rake
/home/vagrant/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb:143:in `block in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /home/vagrant/.rvm/gems/ruby-1.9.2-p290/bin/rake:18:in `'
Done. Build script exited with: 1
よく見ればちゃんと書いてある。
# gemspec:
s.add_development_dependency 'rake', '~> 0.9.2.2'
s.add_development_dependency 'rdoc', '~> 3.11'
Tracis-CIでrakeとrdoc使うからdevelopment_dependencyには入れとかなきゃいけない。
dm-validations-i18n.gem version 0.3.9 released.
This gem can localize error messages for dm-validations.
I made it, because dm-core or dm-validations are not have localized error messages, and authors of them will not provide them.
The gem supports locales en, ja, ru, zh-CN and zh-TW. These locales made by gugods, makevoid and others in several countries. I really appreciated their works.
production環境ではexception_notificationでエラーをメールしてる人も多い思います。(AirBreakとかも)
怖話でもそうやってエラーメールが一通も来ない状態にしたいんですが、例えば下記のような”バグじゃないエラー”は皆様どうやって対応してるんでしょう?
A ActionView::MissingTemplate occurred in home#index:
Missing template home/index, application/index with {:handlers=>[:erb, :builder, :haml], :formats=>["*/*;q=0.01"], :locale=>[:ja, :ja]}. Searched
formatsに*/*;q=0.01なんて文字列を送ってくるのは単なるスパム。使ってるformatだけに限定するように何か書く?うーん・・・。
最近(精神的な)調子が悪いのでOSをLionにしました。
DVDに焼いたり、Bootable USBを作ったりなんだりして予想通りグダグダと余計な時間を取られました。クリーンインストールしたい方で特に拘りがない方はコレを買うのが時間もかからず楽だと思います。
OS X Lion USBメモリ版 - Apple Store (Japan)
Aquaの水滴っぽいデザインが鳴りを潜め、凹凸の減ったUIが気分良いです。
一番嬉しかったのはSystem localeをenにしてる時でも今まではTime Zoneが日本であれば時計が日本語表示だったんですが、それがSystem locale依存になったところです。
Screencastとか撮ってる時気になってたんですよね。
Microsoft Arc Keyboard英語版を手に入れましたが、Google日本語入力でちょっと苦戦。
下記の通りでOK。
Windows 7 で英語キーボードを使って日本語を入力する - バイナリアンを目指して
下記の素晴らしいアプリで解決。
今までMacと行ったり来たりする時に配列違いでちょいウザだったんですがこれでスッキリしました。