At least when it comes to Firefox 4, the following are NOT equivalent, and will make calls to video.canPlayType to fail.
type="video/ogg; codecs='theora, vorbis'"
type='video/ogg; codecs="theora, vorbis"'
You want to use the second one.
| # http://forums.shopify.com/categories/6/posts/42926 | |
| # This is a fairly simple mechanize script to create a few hundred or so shopify discounts from a CSV of groupon codes. | |
| # You'll want to change all of the "changeme" values to your own. | |
| # The script expects there to be a groupon_codes.csv in the same directory. | |
| # | |
| # The groupons_code.csv should look like this: | |
| # 8m7677 | |
| # 8m6749 | |
| # 8m5398 | |
| # 8m7699 |
| [color] | |
| sh = auto | |
| branch = auto | |
| diff = auto | |
| interactive = auto | |
| status = auto | |
| [core] | |
| excludesfile = /Users/frecial/.gitignore | |
| [user] | |
| name = Stewart Laufer |
| → terminitor start project | |
| /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/cores/mac_core.rb:18:in `execute_command': undefined method `do_script' for nil:NilClass (NoMethodError) | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/abstract_core.rb:34:in `run_in_window' | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/abstract_core.rb:33:in `each' | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/abstract_core.rb:33:in `run_in_window' | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/abstract_core.rb:30:in `each_pair' | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/abstract_core.rb:30:in `run_in_window' | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/abstract_core.rb:21:in `process!' | |
| from /Users/frecial/.rvm/gems/ruby-1.8.7-p174/gems/terminitor-0.1.0/lib/terminitor/runner.rb: |
| require 'digest/md5' | |
| def gfm(text) | |
| # Extract pre blocks | |
| extractions = {} | |
| text.gsub!(%r{<pre>.*?</pre>}m) do |match| | |
| md5 = Digest::MD5.hexdigest(match) | |
| extractions[md5] = match | |
| "{gfm-extraction-#{md5}}" | |
| end |
| cd source | |
| wget http://monkey.org/~provos/libevent-1.4.11-stable.tar.gz | |
| tar -zxvvf libevent-1.4.11-stable.tar.gz | |
| cd libevent-1.4.11-stable | |
| ./configure | |
| make | |
| sudo make install | |
| cd .. |
| require 'autotest/redgreen' | |
| # require 'autotest/pretty' | |
| # require 'autotest/snarl' | |
| # require 'autotest/timestamp' | |
| module Autotest::Growl | |
| def self.growl title, msg, img, pri=0, sticky="" | |
| system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{sticky}" | |
| end |