74646-75376 subjects 75024-75935

Drag and Drop in Windows with Explorer
74812 [tcfelker@mt ] ...
74814 [harryo@qi so] Sorry, I don't have an answer to your question. I had a quick play with this some time back and didn't get anywhere.
74818 [tcfelker@mt ] Sure, I'll post any working code I get, but I'm a bit discouraged by my
74821 [tcfelker@mt ] I've looked into this further, and I don't think FXRuby gives low-level

Please read carefully
74824 [ataoyima55@n] ...

Millisecond in time.
74825 [place4oracle] I have 1056030443784 (which is a time in millisecond) but I need this
+ 74826 [matz@ru y- a] Time.at(1056030443784/1000.0).strftime("%Y-%m-%d %H:%M.%S")
+ 74827 [harryo@qi so] Time has an "at" method that takes a number of seconds and returns a time, so you could do something like ...
  74841 [spam@de k. k] wouldn't that be
  + 74842 [B.Candler@po] but 1 millisecond is 1000 microseconds.
  + 74843 [harryo@qi so] Yes, but the second argument to Time#at is in microseconds.

inifinity recursion && test/unit
74829 [Andrey.Kulin] Without test/unit ruby finished work and said that stack level too deep.
74836 [B.Candler@po] Yep, that's definitely a nice piece of infinite recursion. What are you
74846 [Andrey.Kulin] module Recur
74852 [B.Candler@po] - a module Recur

Sorting a Hash
74837 [oadartse@ya ] I'm Having some trouble sorting a hash!, the hash contents are like
74839 [B.Candler@po] myhash = {
74872 [oadartse@ya ] Sorry about that!! but you got the right idea!!
+ 74887 [B.Candler@po] Of course, the result of the sort is an array, not a hash. There's no point
| 75020 [oadartse@ya ] Yes I mistyped there!! I tried to mean the array returned, 'cos the
| 75056 [B.Candler@po] I don't think it's overkill at all. In Ruby it often makes sense to make a
+ 74943 [bob.news@gm ] "Osuka" <oadartse@yahoo.com> schrieb im Newsbeitrag

Terribly OT ...
74844 [harryo@qi so] Given that we're talking about modulo arithmetic :-) ...
74847 [decoux@mo lo] Euh, this ???
+ 74848 [harryo@qi so] I'm not sure about all those negative numbers, but a heck of a lot of the values look right.  So, I think your code is definitely a good starting point for me.
+ 74850 [harryo@qi so] I was able to get your code to produce the table precisely as it was in the exercise solution by making a couple of tiny changes, although I'm going to have to think about how your recursive code relates to my simplistic implementation of the Euclidean algorithm :-) ...
  74851 [decoux@mo lo] Well, if I'm remember correctly : if (p, q) are number in the "magic
  74905 [harryo@qi so] Thanks, Guy.
  74922 [decoux@mo lo] Guy Decoux
  + 74923 [decoux@mo lo] it's pdf (the `f' is missing)
  + 74926 [harryo@qi so] How amazing!  Bob Howlett (the author of that PDF) is one of my other old lecturers :-).
  | 74927 [harryo@qi so] By the way, thanks for that link.  It's basically what I was looking for before I asked the original question!
  + 74933 [harryo@qi so] Thanks again, Guy. Based on that reference, I was able to get my naive (non-recursive) implementation working and generating the correct magic table ...

[ANN] Aeditor-0.1 is unleashed
74853 [0bz63fz3m1qt] Aeditor is a editor-widget written in Ruby. The primary
+ 74903 [0bz63fz3m1qt] Is there any Rubyists-volunteers who would like to test Aeditor ?
| 74904 [mwilson13@co] I had to add 'aeditor/' to the require statements. I then had an error
| 74910 [slewis@pa ad] Same problem here - running your "aeditor" script doesn't work (
| 74914 [0bz63fz3m1qt] Interesting, running the 'aeditor' script works here?
| + 74918 [0bz63fz3m1qt] Can tell me what happens in the 'log' file if you press *Backspace* ?
| + 74920 [slewis@pa ad] ^^^^^^^ --> emitted?
|   74929 [0bz63fz3m1qt] 'omitted' -> 'emitted'  :-)
+ 74907 [joaopedrosa@] I wish this project will progress well, because we
| 74917 [0bz63fz3m1qt] ;-)
+ 74965 [0bz63fz3m1qt] OK.. I hope I have fixed most of the install issues.
  74970 [nobu.nokada@] It doesn't work when RUBYLIB is set.
  74976 [0bz63fz3m1qt] I totally forgot about $RUBYLIB.. Therefore my hardcoding
  74992 [nobu.nokada@] You'll be possible by hook files.
  75002 [0bz63fz3m1qt] If so should I then create a 'bin/post-setup.rb' file ?
  75007 [0bz63fz3m1qt] Thanks Nobu, require 'aeditor/' is indeed nicer than $:.hacking.
  75017 [0bz63fz3m1qt] I have made a 3rd file release, containing this new stuff!!

Re: inifinite recursion && test/unit
74855 [Andrey.Kulin] I was talking about test/unit.
+ 74857 [B.Candler@po] I don't think Ruby really "detects" infinite loops; it simply runs out of
| 74859 [michael_s_ca] I'd guess so to--.  Wouldn't this be a "halting problem" issue?  =)
+ 74885 [androflux@so] Huh? What do you expect Test::Unit to do? Given this input, with
+ 74998 [emschwar@po ] By definition, a program can't detect whether it'll exit or not

[ruby-talk] Re: newbie locale/ascii sort question
74860 [bengt.dahlqv] This a newbie question, since I am not so skilled in Ruby.
74869 [matz@ru y- a] Not yet.  But a small extension like this seems to work.

Problems with Net::HTTPS in ruby-1.8.0-preview3
74863 [jfh@ci e. fl] #!/local/bin/ruby
+ 74911 [nahi@ke na t] ossl2 is growing day by day in these weeks.
| 74916 [nahi@ke na t] Oh, you already are using ossl-0.2.0-pre2 so you must have
+ 75159 [aamine@lo er] This is caused by net/http's incompatibility.

DBD::Oracle9 and non-blocking mode
74865 [list@ji ca n] I'm about ready to make available an early copy of my library, but first
74888 [B.Candler@po] I have used it briefly: setting non-blocking mode on Takehiro's ruby-oci8
74908 [kubo@ji ba .] I implemented it in the ruby layer.
74954 [B.Candler@po] It just seemed to work faster when I had five separate processes doing
75033 [kubo@ji ba .] My approach wastes time. Undoubtedly your prospect is correct in
75058 [B.Candler@po] And I forgot to add: even if non-blocking mode works in Oracle, it doesn't

IP arithmetic
74866 [B.Candler@po] Are there any functions in the Ruby standard library which convert
+ 74876 [jfh@ci e. fl] ...
+ 75005 [ jupp@gm .d ] Saluton!
| 75014 [B.Candler@po] Yeah, I ended up writing something like that. I just wondered if there was
+ 75268 [ jupp@gm .d ] Saluton!

Re: :Oracle9 and non-blocking mode
74867 [djberge@qw s] I use it to timeout connect calls when a database is either down and/or
74868 [michael_s_ca] Out of curiosity, will binaries (for Win32, specifically), be distributed?
74891 [list@ji ca n] No, I won't be making Win32 binaries myself. I've never developed native
74896 [sdate@ev re ] distributed?
74913 [botp@de mo t] I'm not sure about the _all_ but I'm sure it's well OK for me. So, pls do.
75029 [sdate@ev re ] With pleasure .. you will have to give me some time though ... I won't be

74873 [monicasaed@p] ...

ruby-dev summary 20418 - 20487
74878 [ksaito@ur nu] This is a summary of ruby-dev mailing list last week.

Speaking of I18N...
74884 [hal9000@hy e] I don't suppose anyone has implemented any
+ 74886 [surrender_it] there is an example of this in soap4r, or
| + 74889 [rodrigo.berm] On the 'ruby developers guide', there is an exemple which do it
| | 74899 [hal9000@hy e] I should have known this... I have had that book
| + 74898 [hal9000@hy e] Thank you, I will look at that.
+ 74895 [chadfowler@c] I did a screen-scraping one some time back.  It was truly a
  + 74902 [hal9000@hy e] That hilarious semantic distortion is also interesting
  + 74915 [hal9000@hy e] Well, the screen-scraper might be a lightweight option...

wxruby.org wiki error
74890 [surrender_it] the website is blocked due to an error in the wiki software..
74906 [curt@hi bs c] Something got corrupted in he perl script that implements the wiki. All I

74892 [copeland_lw@] ...
74893 [rodrigo.berm] I think we should redirect it to the perl community    =)
75003 [ jupp@gm .d ] Saluton!

rb_gc() and scan stack
74894 [0bz63fz3m1qt] I were experimenting with Init_stack, when I discovered a flaw in my mind.
+ 74897 [0bz63fz3m1qt] Init_stack() did solve it :-)..  The funny thing is that I were looking
| 74931 [0bz63fz3m1qt] Guy Decoux + others.. I know you are reading this.. please help :-)
| 74948 [matz@ru y- a] We can't say much.  As far as I guess stack, position was higher than
| 74952 [0bz63fz3m1qt] OK.. I had a flaw on my initial drawing.. I understand now.
| 74957 [0bz63fz3m1qt] Wrong url... instead
+ 74947 [batsman.geo@] Could you please check if adding one stack frame in between works?
  74951 [0bz63fz3m1qt] void foo() {
  74953 [nobu.nokada@] Incorrect.
  74973 [0bz63fz3m1qt] I have some major/minor problems understanding your diagram.
  74991 [nobu.nokada@] It *was* correct.  To be accurate, nothing shouldn't be marked
  75409 [0bz63fz3m1qt] "swaps its arguments"... I oversaw this.

FXDataTarget not updating my variable
74909 [fugalh@fa co] @datatarget = FXDataTarget.new(@name)
74958 [lyle@us rs s] Generally speaking, SEL_CHANGED messages are usually sent while a
74986 [fugalh@fa co] I was aware of what you are talking about, and I actually only want it
74994 [lyle@us rs s] Oh, no, that's not how the Ruby version of FXDataTarget works. For
75025 [fugalh@fa co] Ok, that makes sense. I'm glad I'm not losing it. ;-) This could be
75097 [vjoel@PA H. ] ==========================

Ruby9i now available
74912 [list@ji ca n] All,
+ 74967 [djberge@qw s] Thank you very much!
| + 74971 [djberge@qw s] Quick followup - it built fine with 1.6.8 but wasn't as happy with 1.8
| | 74987 [list@ji ca n] This is because in 1.8 rb_str2cstr(VALUE, int*) has changed to
| | 74990 [djberge@qw s] Ah, ok.  Ruby has some #define's (in version.h) you could use to see
| | 74993 [nobu.nokada@] It's not good idea to determin by release date or similar.
| | 74995 [list@ji ca n] Excellent. That's just the kind of info I was looking for. I'll make the
| | 74996 [nobu.nokada@] VALUE biv_initialize(int argc, VALUE *argv, VALUE self)
| + 74974 [list@ji ca n] Yes, I agree with you. I just haven't taken the time to study the "Ruby
| | 74975 [djberge@qw s] Oops - my bad.  It *is* supposed to be finish().  Dunno where I got that
| + 74978 [michael_s_ca] Cool.  Can anyone let me know where the oracle9i distrubution is now?  I've
| | 74984 [list@ji ca n] For now it's only at http://jimcain.us/ruby9i/. I will eventually have
| + 75088 [djberge@qw s] For anyone using this script, please change "oracle9i" to "ruby9i".
+ 75076 [roberto@RE O] Can you also make a DBD for it, as DBI is pretty much a de facto standard
  75079 [list@ji ca n] The package includes a DBD API.

Anybody used SAPDB?
74925 [dwerder@gm .] has anybody of you used the sapdb.org database yet, especially with ruby?
74930 [schlegel@cs ] This is a MIME-formatted message.  If you see this text it means that your
74932 [dwerder@gm .] thanks!

Ruby 1.8 and Win XP compatibility
74928 [treich24@ly ] Are there any compatibility issues for Ruby 1.8 + Win XP, especially
75105 [sdate@ev re ] Can't say that I have tested exhaustively but I haven't had any problems so

Question about streaming on Ruby
74934 [robson@ma ar] ...
+ 74938 [laurent@da a] Yes!  In fact, GStreamer is probably able to do this, and you can call
| 74939 [laurent@da a] I forgot to mention that GStreamer is *only* available on POSIX
| 74945 [armin@xs .d ] What you want todo is very easy todo in Squeak.
+ 74944 [bob.news@gm ] "Rob" <robson@magario.com> schrieb im Newsbeitrag
+ 74956 [B.Candler@po] system("wavrec -r 5 myfile.wav")
+ 74959 [billk@ct .c ] Since you mention active-X I'm assuming you might be under Windows.
  75060 [robson@ma ar] Thanks a lot for the hints.
  75095 [jjenning@fa ] so you have to

Errno::ECONNREFUSED equivalent on WIN32?
74935 [emiel@il fo ] Ruby gurus,

Open RCR's
74950 [djberge@qw s] nearly two years old).  Given that Ruby 1.8 is relatively close to
75041 [matz@ru y- a] i,

problem compiling ruby1.8 with borland c 5.5
74960 [kgergely@ml ] I've problem compiling ruby-preview 1.8.0-preview3 on win98.

Base of Numbers
74962 [volker_grabs] I just wanted to know if there's any way except "printf"

Base of Numbers
74963 [volker_grabs] <no>
+ 74964 [decoux@mo lo] In 1.8, #to_s can take an argument
+ 74966 [dave@pr gp o] This is a test 'ri'. Please report errors and omissions
  75016 [ jupp@gm .d ] Saluton!
  + 75028 [nobu.nokada@] Also String#to_i.
  + 75032 [dave@pr gp o] Thanks - I missed that change.
  + 75078 [tcfelker@mt ] Cool.  Is there a way to from a string to an int with any base?
    75083 [matz@ru y- a] String#to_s(base=10)
    75089 [zunda@24 .n ] or
    75091 [tcfelker@mt ] Thanks.  Soon I'll upgrade, and I'll have ri to help me.

[ANN] Ruby-GNOME-0.33
74968 [mutoh@hi hw ] Ruby-GNOME-0.33 is now available.

Vote for Ruby in Linux Journal Poll
74969 [yfoll@9o li ] For the "Linux Journal's 2003 Readers' Choice poll" you can vote for Ruby in
+ 74972 [vjoel@PA H. ] ...
+ 75013 [B.Candler@po] Since I don't read Linux Journal, does this mean I am not eligible to vote?
  75134 [cedric.foll@] You can vote even if you're not a reader of linux journal.

[OT] Re: Vote for Ruby in Linux Journal Poll
74979 [brian@co ln ] Oh man, I hate these kinds of polls.  Maybe "hate" is too strong of a
+ 74981 [dcarrera@ma ] Ruby is the awesomest language ever made!!
+ 74988 [james_b@ne r] Yeah, when people ask for my favorite color, I tell them, "plaid."

OT: It's that time of year again ...
74980 [james_b@ne r] Happy Birthmonth to all fellow Rubyists born in July!
+ 74982 [dcarrera@ma ] Canada was born on July 1st.
| 74983 [michael_s_ca] I saw that "Canada Day" on my calendar yesterday; what is it?  The
| 74985 [dcarrera@ma ] That's okay.  I am always happy to answer Canada questions to our American
| 75006 [harryo@zi .c] As did Australia ... although about 30 years later.
+ 75015 [ jupp@gm .d ] Saluton!
| 75054 [B.Candler@po] Errm, are we going to list 1/12th of all famous people now? Please not...
| 75071 [james_b@ne r] No, just the Rubyists we know.
| 75075 [B.Candler@po] The Dalai Lama and Hermann Hesse were Rubyists?? :-)
| 75098 [ jupp@gm .d ] Saluton!
+ 75018 [joaopedrosa@] Happy birthmonth too!
+ 75059 [tim@ba es id] I also was born on the 15th of July. This month is my 18th birthday. Not
  75069 [hal9000@hy e] Actually it's mildly fascinating to me to find out

rubynet-announce Digest, Vol 5, Issue 1
75000 [rubynet-anno] Send rubynet-announce mailing list submissions to

Award Notification
76470 [sdmitry@lr .] Suck my balls

More error backtrace
75008 [n.gilbert@so] I am having trouble tracking down the point at which my program is
+ 75009 [gfb@to es ft] It is the default exception handling in Ruby. You can always embrace your
| 75010 [gfb@to es ft] Typo correction: rescure -> rescue
+ 75011 [B.Candler@po] #define TRACE_MAX (TRACE_HEAD+TRACE_TAIL+5)
| 75019 [ tom@u2 .c m] I've been wondering for some time why it did this.
| 75021 [hal9000@hy e] I always assumed it was to save space. Does it
| 75055 [B.Candler@po] #define TRACE_MAX (TRACE_HEAD+TRACE_TAIL+5)
+ 75012 [0bz63fz3m1qt] Fatal-Error in program!
+ 75022 [mwilson13@co] Not having seen your code, and therefore ignorant, why is the above not

A Quick Guide to SQLite and Ruby
75023 [ruby-talk@wh] I've been truly impressed by SQLite, a small database with support for much of
+ 75026 [rich@in oe h] Awesome!
| 75030 [ruby-talk@wh] Rich, what browser are you in?  I'm using a bit o' mod_rewrite, so I'm
| + 75036 [paul@sn ke n] Doesn't work for me, either, with either Safari 1.0 or IE 5.2.3 on Mac OS X.
| | + 75038 [curt@hi bs c] It works for me on Windows with IE6.
| | | 75053 [oadartse@ya ] works too in Mozilla 1.3 on win2000
| | | 75094 [ruby-talk@wh] This is now supplied as well.  Although, I believe there is much more that
| | | 75096 [david.naseby] Anyone got a prebuilt binary of sqlite-ruby for Windows? I can't build the
| | | 75103 [oadartse@ya ] A binary for windows would be nice indeed, but telling how to compile
| | + 75039 [ahoward@fs .] nor nutscrape 4.7x
| + 75064 [rich@in oe h] I am using Safari 1.0 on OS X.  I just checked the site though, and
| + 75067 [xlucid@us rs] At 14:10 GMT, it worked for me on Opera 5.12 Build 932, on Win32
+ 75027 [james_b@ne r] Looks like version 5 of of PHP includes SQLite.
+ 75040 [ahoward@fs .] very cool.  i used the package a bit using one extension - i can't remember
+ 75057 [B.Candler@po] Biggest problem I have with ruby-dbi and Sqlite: if you set db['AutoCommit']