dogwood008の開発メモ!

最近のマイブームは機械学習, Ruby on Rails。中でも機械学習を使った金融商品の自動取引に興味があります。

2013-12-01から1ヶ月間の記事一覧

WLI-UC-GNM2をMac OS X Mavericksで使う

WLI-UC-GNM2はBuffalo社より発売されているWi-Fi接続ができるUSB装置である.WLI-UC-GNM2(Buffalo)Buffaloからは公式にMac用のドライバが配布されていないが,Ralink社(今は別会社になっているらしいが)がOEM提供しているようで,Ralinkが配付する公式ドラ…

rails4で,development環境かproduction環境かの判別

「Rails.env」を使用すれば良い. case Rails.env when 'development' puts 'developmnent' when 'production' puts 'production'endif Rails.env.development? puts 'development'endif Rails.env.production? puts 'production'end※参考:http://memo.yomu…

Rails4でエラー:You should not use the `match` method in your router without specifying an HTTP method. (RuntimeError)

rails sを実行時に,「You should not use the `match` method in your router without specifying an HTTP method. (RuntimeError)」とエラーが出た際には,routes.rbに「match」メソッドが含まれていることが原因.例えば, root :to => 'thread#index' ma…

Rails3のプロジェクトをRails4へアップグレード

1. Gemfileを編集して,Rails3を使用するよう設定してある部分をRails4を使用するよう変更Rails3を使用する設定を gem 'rails', '3.2.XX'Rails4を使用する設定に変更 gem 'rails', '4.0.2'2. Rails等の依存関係を修正bundle install3. 正しく動作するか確認r…