PostgreSQLへセキュアに接続する方法 - builder by ZDNet Japan
pg_hba.confの設定など。
Ruby on Rails 2.0にアップグレードする方法 - builder by ZDNet Japan
Rails 2.0へのアップグレードを検討しているユーザーに有用なドキュメントが公開されている。
Status: 500 Internal Server Error
A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase of at least 30 characters" } in config/environment.rb
ログメッセージにある通り、config/environment.rbのRails::Initializer.runのブロックに以下を追加したら、解決。
Rails::Initializer.run do |config|
# ...
# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
:session_key => '_myproject_session',
:secret => '5db14bae2952695dca65b3c176a134d100a5066aa0a31d3af680f39f40fe03fa986c024836158c2ae6e8b4a8036de938fdbc072909d1bf88505c96a8270c7cc7'
}
# ... 以下略
end
セッションストアにActiveRecordを使用するには、environment.rbで以下の箇所のコメントを外す。
config.action_controller.session_store = :active_record_storeセッション格納用のテーブルは、
rake db:sessions:create rake db:migrateで作成。
セッションストアにActiveRecordを使用するようにしたら、以下のエラーが発生。
No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store).
application.rbで以下の箇所の:secretのコメントを外したら解決。
# See ActionController::RequestForgeryProtection for details # Uncomment the :secret if you're not using the cookie session store protect_from_forgery # :secret => '7136b0968f24e7318da7eb62e50d05b7'
Finkはソースからインストール
Fink - Source Release Download
Fink Commanderは以下からダウンロード
FinkCommander - Home
osxでemacsを使用するとき、C(Control)-スペースで Spotlight が起動されてしまう。これを回避するには、「システム環境設定--キーボードとマウス--キーボードショートカット」で、「Spotlight検索フィールドを表示する」と「Spotlightウインドウを表示する」を、適当な別のショートカットに変更すればよいい。(USキーボードなら"Control `" と "Option Control `"など)
MacBook(JISキーボード)にvmware fusionをインストールして、bootcampパーティションのWindowsXPを仮想マシンで実行できるようにしたら、bootcampで起動したWindowsXPのキーボードが英語キーボードになってしまった。
bootcampのWindowsドライバを再インストールしてみたが改善せず。
レジストリを確認すると、
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
の、
LayerDriver JPN
の値が、
kbd101.dll
になっていたので、
kbd106n.dll
に変更して再起動したら、復旧。
AppleK BC for 7/Vista 32bit - AppleキーボードWindowsドライバ(BootCamp起動環境用) の「キーボードの刻印通りに記号が入力できません」のところにregファイルがあります。
最近のコメント