This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| # RAILS 2.3.15 | |
| # | |
| # Since <tag type="yaml"> was removed from rails' xml parsing, | |
| # but not from its to_xml method, rails can't talk to an API | |
| # generated by rails, if you have serialized attributes. | |
| # This can be put in config/initializers and you should probably | |
| # upgrade to rails 3 already. Ugh. | |
| # Three parts: |
| # Returns a lambda used to determine what number is at t in the range of a and b | |
| # | |
| # interpolate_number(0, 500).call(0.5) # 250 | |
| # interpolate_number(0, 500).call(1) # 500 | |
| # | |
| def interpolate_number(a, b) | |
| a = a.to_f | |
| b = b.to_f | |
| b -= a | |
| lambda { |t| a + b * t } |
| # From a fresh install of squeeze | |
| apt-get install ruby rubygems # Need ruby to use fpm | |
| gem1.8 install fpm --no-ri --no-rdoc | |
| apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
| tar -zxvf ruby-1.9.3-p125.tar.gz | |
| cd ruby-1.9.3-p125 | |
| rm -rf /tmp/ruby193 |