[#30426] CGI でグラフを描くときにお勧めのライブラリは? — 堀川 久 <vzw00011@...>

こんにちは。

12 messages 2001/07/01

[#30453] syntax check without execution? — Tanaka Akira <akr@...17n.org>

最近、eRuby のまねごとをしていて、そのなかで Ruby のコードを生成してい

16 messages 2001/07/04
[#30455] Re: syntax check without execution? — matz@... (Yukihiro Matsumoto) 2001/07/04

まつもと ゆきひろです

[#30479] Object#dup — "Shin'ya Adzumi" <adzumi@...>

あづみです。

20 messages 2001/07/05

[#30512] open errno EALREADY triggerd — "Inoue" <inoue@...>

井上です。

16 messages 2001/07/08

[#30514] Ruby module frame work? — Takahiro Kambe <taca@...>

こんにちは。

16 messages 2001/07/09
[#30515] Re: Ruby module frame work? — matz@... (Yukihiro Matsumoto) 2001/07/09

まつもと ゆきひろです

[#30529] InterBase を使用したい — "YOUJI KUROKAWA" <CQE10242@...>

環境

22 messages 2001/07/09

[#30530] Question about script on the book "Ruby nyuumon" — NAWATE Masahiko <agul@...>

縄手@松江と言います。

17 messages 2001/07/09
[#30531] Re: Question about script on the book "Ruby nyuumon" — rubikitch <rubikitch@...> 2001/07/09

From: NAWATE Masahiko <agul@mag.shimane-u.ac.jp>

[#30533] Re: Question about script on the book "Ruby nyuumon" — NAWATE Masahiko <agul@...> 2001/07/09

縄手@松江です。

[#30734] UML クラス図と Ruby の記述についての対応 — Ken-ichi HASHIMOTO <ken@...>

橋本@福井県在住です。

13 messages 2001/07/28

[#30764] int/int => float? — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

50 messages 2001/07/31
[#30767] Re: int/int => float? — keiju@... (石塚圭樹) 2001/07/31

けいじゅ@日本ラショナルソフトウェアです.

[#30768] Re: int/int => float? — matz@... (Yukihiro Matsumoto) 2001/07/31

まつもと ゆきひろです

[#30770] Re: int/int => float? — Take_tk <ggb03124@...> 2001/07/31

たけ(tk)です。

[#30771] Re: int/int => float? — matz@... (Yukihiro Matsumoto) 2001/07/31

まつもと ゆきひろです

[#30785] Re: int/int => float? — Konishi@... (Hiromasa KONISHI) 2001/07/31

 KONISHI Hiromasaです。

[ruby-list:30498] またまた (^^;;; Help me !!

From: "KANEMITSU Masao" <masao-k@...>
Date: 2001-07-06 09:01:21 UTC
List: ruby-list #30498
金光です。

/usr/local/lib/ruby/site_ruby/1.6/i686-cygwin/rbnamazu.rb:397:in `seek':
bignum
too big to convert into `int' (RangeError)

のようなエラーが出るとき、どのように対処すればよいのでしょう???

    def get_wordid(word)
      wimin = 0
      wimax = @wordidmax
      wordindexfile = @wordindexfile
      wordentityfile = @wordentityfile
      #mk# wordid = tmpwordid = str = nil
      wordid = tmpwordid = str = "0\n"
      #mk#
      while (wimax >= wimin)
	tmpwordid = (wimin + wimax) / 2
	wordindexfile.seek(tmpwordid * 4, 0)
	#mk# wordentityfile.seek(wordindexfile.read(4).unpack('N')[0],
0)
	wordentityfile.seek((wordindexfile.read(4).unpack('N')[0]).to_i,
0)
	#mk#
	str = wordentityfile.gets()
	#mk# str.chomp!()
	str = "0\n" if str == nil
	str.chomp!()
	#mk#
	case (word <=> str)
	when -1
	  wimax = tmpwordid - 1

みたいな部分です。。。


M.Kanemitsu
———————————————
金光雅夫 masao-k@a-net.email.ne.jp

http://www.ne.jp/asahi/masao-k/home/
http://www14.freeweb.ne.jp/art/soshikon/
http://www15.freeweb.ne.jp/computer/ruby256/
〒216-0031 川崎市宮前区神木本町5-14-12
自宅: 044-877-5006
携帯: 090-2753-5292

In This Thread

Prev Next