Skip to content

Instantly share code, notes, and snippets.

View ayucat's full-sized avatar

ayucat ayucat

View GitHub Profile
$ sudo aptitude install flashplugin-nonfree
[...]
以下の新規パッケージが自動的にインストールされます:
nspluginwrapper
以下の新規パッケージがインストールされます:
flashplugin-nonfree nspluginwrapper
0 個のパッケージを更新、 2 個を新たにインストール、 0 個を削除予定、0 個が更新されていない。
[...]
続けますか? [Y/n/?] y
[...]
#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
require 'rubygems'
rescue LoadError
end
require 'wx'
class MinimalFrame < Wx::Frame
#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
require 'rubygems'
rescue LoadError
end
require 'wx'
# This sample shows a fairly minimal Wx::App using a Frame, with a
#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
require 'rubygems'
rescue LoadError
end
require 'wx'
シャッタースピードについて。
http://cweb.canon.jp/cgi-bin/camera/dcam/spec.cgi?pr=psa580
1/60~1/2000秒(オートモード)、15~1/2000秒(すべての撮影モードを合わせて)
とあるので、マニュアルで撮影すれば15秒まで取れるはずです。
下位機種でも取れるのに、上位機種のほうがスペックが低くなってて変だと思って気づいて調べたら、そうだった。
# add executable prop to all scripts in 'script' directory.
svn ls -R script/ | grep -v '/$'| xargs -i svn ps svn:executable ON script/{}
# downloading https://gist.github.com/e9e53f119c32f347e85b
patch -p0 < config/environment.rb.diff