./p2p_server.rb:223:in `startServer’: undefined method `P2PServerConnection’ for #<P2PServer:0xb763f6ac> (NoMethodError)

with eventmachine

means ‘put parenthesis around your arguments, it thinks the last parameter is a function call!

mingw ruby-prof

install normal, then copy the .so to your i36-mingw directory, then create bin\ruby-prof.cmd

@ruby “c:/ruby_mingw4/bin/ruby-prof” %*

amazingly. Wow.

It won’t be compiled by default with object allocations enabled.  Wow is all I can say.

rmagick update

c:/old_ruby_msvc/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/ext/RMagick.so: This version of RMagick was created to run with Image
Magick 6.3.0 (RuntimeError)
but ImageMagick 6.3.5 is installed on this system. You should either
1) Configure and build RMagick for ImageMagick 6.3.5, or
2) download ImageMagick 6.3.0 from http://www.imagemagick.org and install it.
from c:/old_ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require’
from c:/old_ruby_msvc/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’
from c:/old_ruby_msvc/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_
in’
from c:/old_ruby_msvc/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’
from ./script/../config/../vendor/plugins/simple_captcha/lib/simple_captcha_image.rb:2
from c:/old_ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from c:/old_ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from c:/old_ruby_msvc/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’
… 39 levels…
from c:/old_ruby_msvc/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
from c:/old_ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from c:/old_ruby_msvc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from script/server:3

means ‘you have an older gem than you install’  –instal the gem win32 packaged one (both together).

compiling mingw with ruby 1.8.6

download mingw + msys +msysdtk

gcc -g -O2 -DRUBY_EXPORT -I. -I. -c parse.c
parse.y: In function `ruby_yylex’:
parse.y:4445: warning: assignment makes pointer from integer without a cast
parse.y:4448: error: dereferencing pointer to incomplete type
parse.y:4450: error: dereferencing pointer to incomplete type
parse.y:4451: error: dereferencing pointer to incomplete type
parse.y:4453: error: dereferencing pointer to incomplete type
parse.y:4462: error: dereferencing pointer to incomplete type
parse.y:4464: error: dereferencing pointer to incomplete type
parse.y:4464: error: dereferencing pointer to incomplete type
parse.y:4466: error: dereferencing pointer to incomplete type
make: *** [parse.o] Error 1
might mean ‘you are compiling it from the source given by the one-click–you need the raw stuff–svn’

or ‘lex.c is broken’ (apparently)

gcc -g -O2 -DRUBY_EXPORT -I. -I. -c eval.c
eval.c: In function `rb_thread_start_timer’:
eval.c:11883: error: storage size of ‘tval’ isn’t known
eval.c:11889: error: `ITIMER_VIRTUAL’ undeclared (first use in this function)
eval.c:11889: error: (Each undeclared identifier is reported only once
eval.c:11889: error: for each function it appears in.)
eval.c: In function `rb_thread_stop_timer’:
eval.c:11895: error: storage size of ‘tval’ isn’t known
eval.c:11901: error: `ITIMER_VIRTUAL’ undeclared (first use in this function)
make: *** [eval.o] Error 1

might mean ‘setup mingw again from scratch using all lowercase for the path–really from scratch possibly reboot.’

If your path is all messed up and doesn’t load gcc–you need to uninstall msys (possibly deleting /etc/fstab), and start over.

http://www.mingw.org/MinGWiki/index.php/SmartQuickStart is good for that.

then run start->program files->msys->msys, navigate to /c/ruby_src or whatever,

./configure && make && make install.

latex bug report

so if you get this
(/usr/share/texmf/tex/latex/misc/setspace.sty
Package: `setspace’ 6.7 <2000/12/01>
) (/usr/share/texmf/tex/latex/misc/subfigure.sty) (./thesis_rough.aux)
(./description.tex [1] [2]) (./experiment_results.tex
Runaway argument?
or, which is about 1KB/S/Peer, or our server’s bandwidth (250KB/S) d\ETC.
! Paragraph ended before \Gin@iii was complete.
<to be read again>
\par
l.7

?

! LaTeX Error: Cannot determine size of graphic in pics/200p2p-v4/downloadToSta
rtTimes_scatter.png (no BoundingBox).

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.12 …00p2p-v4/downloadToStartTimes_scatter.png}
no bounding box? huh? anyway just use pdflatex instead of latex, as latex really likes bounding boxes (?) (gleaned from http://amath.colorado.edu/documentation/LaTeX/reference/figures.html)

Roger's meanderings, notes to himself, bug reports, and other things