tama.rb の
threads.each {|t| if t.alive? t.join end }
の部分で,time out でエラーになる.
とりあえず,この部分をコメントアウトして,
sleep(120) threads.each{|t| t.kill}
としておく.
http://www.rubyist.net/~tamura/d/?date=20030730#p06 より.
require 'irb/completion' require 'irb-history' IRB.conf[:AUTO_INDENT] = true
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/20735
Ruby のメソッド名は「動詞は原形を使う」というルールを採用しているので,
has_sid? は have_sid? または sid? とか sid_available? などになるべきです.
Ruby について Part 4
http://pc2.2ch.net/test/read.cgi/tech/1056944114/191-202 より
URI.decode を使う
require 'uri' $KCODE = 's' str = '\x95\x5c\x94\x5c' p URI.decode(str.gsub(/\\x/, '%'))
pack を使う
str = '\x95\x5c\x94\5c' puts str.scan(/[0-9A-Fa-f]+/).collect{|x| x.hex}.pack('C*')
eval を使う
src = "\\x95\\x5c\\x94\\x5c" ; dst = eval("%(#{str})")
puts GLib.charset puts GLib.convert("ほげ", "utf-8", "euc-jp") #str, to, from puts GLib.locale_to_utf8("ふが") puts GLib.locale_from_utf8("utf8 string")
- Linuxビボ〜ろく 2003-06-18
http://ponx.s5.xrea.com/bibo/20030618.html
アプリケーションの設定ファイル等を保存・読み出しするためのライブラリ
- Linuxビボ〜ろく 2003-6-16
http://ponx.s5.xrea.com/bibo/20030616.html
- GConf ライブラリ概論
http://www.globe.to/~oka326/archive/gnome/gconf/doc/index.html
以下のようなエラーがでて,gconf2.so が作れない.
gcc -fPIC -O2 -march=i586 -funroll-loops -ffast-math -fstack-protector -fPIC -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I~/rpm/BUILD/ruby-gnome2-0.5.0/glib/src -I. -I/usr/lib/ruby/1.6/i586-linux -I~/rpm/BUILD/ruby-gnome2-0.5.0/gconf/src -c -o rbgconf-entry.o rbgconf-entry.c distcc[15581] (dcc_preferred_hosts) Warning: $DISTCC_HOSTS is not defined; can't distribute work rbgconf-entry.c:46: 警告: `gconf_entry_copy' は非 static の後で static 宣言されています rbgconf-entry.c: 関数 `gconf_entry_copy' 内: rbgconf-entry.c:47: 仮引数 `entry' はプロトタイプに一致しません /usr/include/gconf/2/gconf/gconf-value.h:168: prototype declaration make[2]: *** [rbgconf-entry.o] エラー 1 make[2]: Leaving directory `~/rpm/BUILD/ruby-gnome2-0.5.0/gconf/src'
とりあえず,gconf は使わないので,spec file からはずしておく.
http://raa.ruby-lang.org/list.rhtml?name=supershape
A Belgian Biologist named Johan Gielis discovered a formula
that can create a vast diversity of natural shapes. By tweaking
four parameters it can produce everything from simple triangles
and pentagons, to stars, spirals and petals.
http://rubygtkembedmoz.sourceforge.net/
Ruby/GtkEmbedMoz is a Ruby language binding for the Mozilla's GTK
Embedding Widget. If you use Ruby/GtkEmbedMoz, you'll be able to Embed
Mozilla into Ruby/GTK applications. For example, browsers, etc...
http://rgnuplot.sourceforge.net/
0.5 が出ていたので package を作る.
附属の demo では,
require 'Gnuplot'
となっているが,document では
require 'gplot/Gnuplot'
となっている.
Momonga では gplot/Gnuplot となっているので,それに従っておく.