2009년 8월 24일 월요일

Synergy 로 3D 게임할 때 마우스 처리.

To play 3D games with Synergy:
Check the “use relative mouse moves” in the synergy server configuration and bind a key to “lock cursor to screen”. When you are on the client machine press the key to lock the cursor to the screen and then your mouse will work for games there. Of course, you can’t get your mouse off the screen without unlocking it (press hotkey again) but it’s better than nothing.

The other option is to use different software which can be found at dual-boxing.com


라는 군요.


2009년 8월 20일 목요일

rails migration 작업을 script/console 에서 실행하기.

rake db:migrate를 할 수 없는 상황이라

script/console에서 대상 파일만 실행시키고 싶을 때

% script/console
>> require 'db/migrate/015_create_admin_delegate_auths.rb'
=> ["CreateAdminDelegateAuths"]
>> CreateAdminDelegateAuths.up
==  CreateAdminDelegateAuths: migrating =======================================
-- create_table(:admin_delegate_auth)
   -> 0.0941s
==  CreateAdminDelegateAuths: migrated (0.0942s) ==============================

=> nil


require 로 불러오기만 하면 됨...