tips
$ brew doctor Warning: The /usr/local directory is not writable. Even if this directory was writable when you installed Homebrew, other software may change permissions on this directory. Some versions of the "InstantOn" component of Airfoi…
初代MacBook AirとSnow Leopardの頃は システム環境設定>ユーザとグループ>ログイン項目 にNASの共有フォルダshareをドラッグ&ドロップしておけば、問題なく自動マウント出来ていた。 しかしMacBook Pro w/RetinaとMavericksに変えてから、同様の方法では…
rtmpdumpからffmpegへパイプを通す rtmpdumpは出力ファイルを指定しないと標準出力にそのまま出力します。 --flv -o output Specify the output file name. If the name is − or is omitted, the stream is written to stdout. RTMPDUMP(1): そして以下の設…
結論を先に:STDOUTは定数だから変更しない方が良いです。 あと、Loggerクラスを使ってログを出力する場合には $stdout.sync = trueしておいたほうが良いです。 STDOUTと$stdoutの違い STDOUT(Object::STDOUT):定数。 $stdout($>):グローバル変数。初…
たしかメタプログラミングRuby作者: Paolo Perrotta,角征典出版社/メーカー: KADOKAWA/アスキー・メディアワークス発売日: 2010/08/28メディア: 大型本購入: 18人 クリック: 533回この商品を含むブログ (125件) を見るに載ってたよなー、ActiveRecordで使っ…
Dir.chdir(File.expand_path(File.dirname(__FILE__))) Dir.chdir(File.dirname(File.expand_path(__FILE__))) 他のスクリプトからrequire/loadで読み出されるスクリプトで、そのスクリプトファイルからの相対ディレクトリのファイルを(永続化などで)指定…