This document discusses using Ruby for "folk programming" or casual programming projects outside of web applications. It provides 4 examples of using Ruby to integrate different programs: adding bookmarks to Safari from Hatena using RubyCocoa++; accessing Twitter from QuickSilver using RubyCocoa++; controlling Quartz Composer nodes from Gainer using RubyCocoa++++; and enhancing Vim with a Ruby plugin for the Refe reference tool. The document argues that Ruby is a nice "glue" for connecting different worlds and that its dynamic nature makes it useful for plugins and debugging without restarting applications. It encourages readers to create something useful and share it with others using Ruby outside the browser.
34. def execute_atTime_withArguments(context, time, args)
unless @initialized
4.times do |i|
@gio.ain(i).on Funnel::PortEvent::CHANGE do |event|
@ain[i] = event.target.value
end
@gio.din(i).on Funnel::PortEvent::CHANGE do |event|
@din[i] = event.target.value
end
end
@initialized = false
end
4.times do |i|
setValue_forOutputKey(@ain[i], "ain_" + i.to_s)
setValue_forOutputKey(@din[i], "din_" + i.to_s)
end
45. Thank you.
mootoh@gmail.com
http://deadbeaf.org/
Any pictures in these slides have their license.
Follow their links to see the original ones.
@mootoh