2009年8月22日土曜日

Hash.new

x = Hash.new{|h,k| h[k]=Hash.new(&h.default_proc)}
とすると、
x[:a]=1
とか、
x[:b][:c]=2
とか、やれるみたい。便利。

2009年8月6日木曜日

metacityでcomposition

gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true