Skip to content

Instantly share code, notes, and snippets.

@kou
kou / split-sanders.rb
Created July 4, 2012 12:46
split wide pages in sanders.pdf
#!/usr/bin/env ruby
require "poppler"
output_width = 378
output_height = 550
Cairo::PDFSurface.new("output.pdf", output_width, output_height) do |surface|
Cairo::Context.new(surface) do |context|
ARGV.each do |file|
pdf = Poppler::Document.new(file)
@kou
kou / test.log
Created May 15, 2011 06:38
"make test-all" on ruby 1.9.3dev (2011-05-14) [x64-mingw32] (r31560)
ruby 1.9.3dev (2011-05-14) [x64-mingw32]
./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext -- "../../../ruby/test/runner.rb" --ruby="./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext --"
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_event.rb skipped(ActiveX Data Object Library not found.)
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_variant_outarg.rb skipped(ActiveX Data Object Library not found.)
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_word.rb skipped(Microsoft Word not found.)
Run options: "--ruby=./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext --"
@kou
kou / test.log
Created May 8, 2011 16:08
"make test-all" on ruby 1.9.3dev (2011-05-05) [x64-mingw32]
./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext -- "../../../ruby/test/runner.rb" --ruby="./miniruby.exe -I../../../ruby/lib -I. -I.ext/common ../../../ruby/tool/runruby.rb --extout=.ext --"
c:/cygwin/home/kou/work/ruby/ruby/test/csv/test_features.rb: cannot load such file -- zlib
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_event.rb skipped(ActiveX Data Object Library not found.)
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_win32ole_variant_outarg.rb skipped(ActiveX Data Object Library not found.)
c:/cygwin/home/kou/work/ruby/ruby/test/win32ole/test_word.rb skipped(Microsoft Word not found.)
c:/cygwin/home/kou/work/ruby/ruby/test/open-uri/test_open-uri.rb: cannot load such file -- zlib
c:/cygwin/home/kou/work/ruby/ruby/test/rake/test_package_task.rb: cannot load such file -- zlib