2014年8月5日火曜日

Cacoo の操作Tips

* 複数選択
** Shift + クリック

* 細かく移動
** そのまま矢印

* 大雑把に移動
** Shift + 矢印

* グループ化
** Ctrl + g

* グループ解除
** Ctrl + u

* 枠の大きさを広げる・縮める
** Cmd + ←→

2014年8月2日土曜日

There is a version mismatch between the spring client and the server.

environment:
$ ./bin/rails -v
Rails 4.0.1

$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.2.0]

error message:
Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring. There is a version mismatch between the spring client and the server. You should restart the server and make sure to use the same version. CLIENT: 1.1.3, SERVER: 0.9.2
situation:
when I try to start rails, it fails with the error message above.
and it works if I comment out the part of loading spring
$ cat bin/rails
#!/usr/bin/env ruby
#begin
#  load File.expand_path("../spring", __FILE__)
#rescue LoadError
#end
APP_PATH = File.expand_path('../../config/application',  __FILE__)
require_relative '../config/boot'
require 'rails/commands'

solution:
just kill a spring process.
$ ps aux | grep spring
masaki925        22334   0.0  0.1  2485392  18856 s018  S    11:08PM   0:00.05 spring server | hogehoge | started 7 mins ago
$ kill 22334

voala, it works :)