2003-08-08 Fri

たまてばこ のエラー はてぶ

tama.rb の

threads.each {|t|
  if t.alive?
      t.join
  end
}


の部分で,time out でエラーになる.

とりあえず,この部分をコメントアウトして,

sleep(120)
threads.each{|t| t.kill}


としておく.

2003-07-31 Thu

irb の設定 はてぶ

http://www.rubyist.net/~tamura/d/?date=20030730#p06 より.

require 'irb/completion'
require 'irb-history'

IRB.conf[:AUTO_INDENT] = true


2003-07-23 Wed

Ruby のメソッド名は「動詞は原形を使う」 はてぶ

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/20735

Ruby のメソッド名は「動詞は原形を使う」というルールを採用しているので,
has_sid? は have_sid? または sid? とか sid_available? などになるべきです.

2003-07-20 Sun

URI decode はてぶ

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})")


2003-06-25 Wed

subscribe ruby-list はてぶ

登録

2003-06-19 Thu

Ruby/GLib の iconv を使った文字コード変換機能 はてぶ

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

2003-06-17 Tue

Ruby/GConf はてぶ

アプリケーションの設定ファイル等を保存・読み出しするためのライブラリ

- Linuxビボ〜ろく 2003-6-16
  http://ponx.s5.xrea.com/bibo/20030616.html

- GConf ライブラリ概論
  http://www.globe.to/~oka326/archive/gnome/gconf/doc/index.html

2003-05-25 Sun

ruby-gnome2 0.5.0 released はてぶ

以下のようなエラーがでて,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 からはずしておく.

2003-05-23 Fri

supershape はてぶ

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.

ってことで,Maths gets into shapeSuperShapes を見るとなかなか面白い図形ができる.

2003-05-17 Sat

Ruby/GtkEmbedMoz はてぶ

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...

2003-04-17 Thu

ruby-gnuplot はてぶ

http://rgnuplot.sourceforge.net/

0.5 が出ていたので package を作る.

附属の demo では,

  require 'Gnuplot'


となっているが,document では

require 'gplot/Gnuplot'


となっている.

Momonga では gplot/Gnuplot となっているので,それに従っておく.

2003-03-31 Mon

ruby-zlib-0.6.0 はてぶ

gzip 形式の圧縮ファイルを読み込むラッパークラスが GzipReader から
Zlib::GzipReader に変更されていたので、mph でエラーがでた。
/usr/lib/ruby/1.6/mph.rb の 394 行目の GzipReader を
Zlib::GzipReader に変更して対処。
mph-scanpackages の 136 行目も同様に変更。

2003-03-18 Tue

Ruby-GNOME2ドキュメントサイト はてぶ

http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi

2003-02-09 Sun

Imlib2-Ruby はてぶ

http://www.pablotron.org/software/imlib2-ruby/

パッケージングする.

ChangeLog 最新ページ / カテゴリ最新ページ / 前ページ 1 2 3 4 5 6 7 / page 7 (7)