34207-36127

34034-35129 subjects 34467-39402

Windows Ruby/GTK
34207 [soyun@ib .n ] I am trying to learn Ruby and so I donwloaded Windows(cygwin) version of
34314 [alex_oscol@y] you need to puts gtk libraries in c:\windows\system

the proc argument to Marshal.load
34209 [vjoel@PA H. ] Marshal.load((Marshal.dump [0.5,1,[2],"three"]), proc {|x| p x})
34226 [matz@ru y- a] The latter [] is the [2] to be.  I guess it's better to change the

New user can't get started
34213 [buttd@at bi ] I downloaded ruby-1.6.6 & guzipped & tared it.
34225 [pcs3@ma lh s] I'm running Mandrake 8.1, a distant relative of RH, but from one of the

IRC channel for Ruby
34215 [matju@sy pa ] of the #ruby-lang channel on IRC.OpenProjects.net.

Ruby for web development
34217 [beripome@ya ] I've just recently discovered ruby. I have a very large database
+ 34218 [tom.hurst@cl] URI?
| 34245 [beripome@ya ] Hey!
| + 34248 [jerickson@ey] What about Mac OS X?  Ruby and Apache run great on it's Unix backend and
| + 34285 [tom.hurst@cl] That wasn't a typo, URL's are subsets of URI's.
|   34506 [sascha@me a-] I've made quite good experiences with iowa in a small pet project.
|   34519 [tom.hurst@cl] Iowa isn't really compatible with what I want or the sort of websites I
|   34542 [gnhurst@hu s] I have been slowly working on something like this - but I wonder what
|   34544 [tom.hurst@cl] 1. Index
|   34553 [gnhurst@hu s] Ok, I see what you mean by hierarchical documents. Reminds me a Tree
+ 34222 [sean@ch tt n] Join the club.  ;~)
| + 34224 [matz@ru y- a] We need not only requests, but also volunteers to fix, especially the
| | 34244 [beripome@ya ] Hey as soon as I actually know enough about it to make a contribution
| + 34227 [james@ru yx ] <snip/>
|   34230 [Dave@Pr gm t] For folks like me who are not up on the Windows stuff, could someone
+ 34237 [tobiasreif@p] I think your descriptions of the issues and your suggestions for
+ 34261 [paul@at es .] If eruby doesn't work for you, then perhaps (as someone else pointed
+ 34292 [patrick-may@] The ruby installer at pragmaticprogrammer.com is quite easy to use,

Version numbers (was Re: Ruby for web development)
34252 [nat.pryce@b1] Version numbers *are* used to communicate stability.  A major version of 0
34253 [tobiasreif@p] I thought so too.
34254 [gehlker@fa t] Others are a variation on these themes.

Initial version of ruby-expect
34255 [jfontan@ce g] I've just uploaded development version of libexpect interface. Could be a bit

Curses on OS X
34271 [kevin@re ur ] I'm a ruby newbie (oh, gawd...it rhymes)
+ 34277 [gehlker@fa t] configure --enable-shared --mandir=usr/local/share/man
+ 34321 [j.travnik@sh] I don't know how to fix it, but I recommend to use JTTui to do serious

Updated Swig/Ruby interface document
34273 [cfiles@co co] I decided that the SWIG/Ruby interface document needed some updating

Perl IO to Ruby IO help needed
34274 [craig_files@] I want to convert the following lines from Perl to Ruby.  And I cannot
+ 34278 [nobu.nokada@] s = open($input_def) {|f| f.read}	# 1.6 or earlier
+ 34280 [tom.hurst@cl] begin
+ 34281 [selander@pd ] Well, I better start to contribute to the list, as I have recieved help
+ 34283 [tobiasreif@p] Something like
| 34301 [craig_files@] Thanks to you and Mike Stok,
+ 34288 [mike@st k. o] What about sonething like
+ 34442 [ser@ge ma e-] <posted & mailed>
  34450 [mike@st k. o] But it returns an array of \n terminated strings in lines rather than the
  34452 [vjoel@PA H. ] content = File.open(input_def) {|f| f.read}

advice on dispatch tables
34284 [probertm@no ] I am playing around with using a dispatch table rather
+ 34287 [matt@li ke .] @dispatch['a'] = :do_a
| + 34290 [paul@at es .] Using symbols is definitely faster than using strings.  As an
| + 34295 [alan@di ik t] Or you could use method objects which should run a bit faster.
+ 34291 [rich@in oe h] class Bob

Java JNI and Ruby
34294 [rich@in oe h] I know about the JRuby project, but has anyone looked in to just embedding
+ 34359 [avi@be a4 co] I believe there used to be some code that did exactly that, for an old
+ 34367 [edsin@sw s. ] Tcl Blend uses JNI to provide access to Tcl engine written in C. AFAIK
| 34386 [rich@in oe h] (Thanks to George Marrows for this link)
+ 34377 [dcorbin@im e] No, but I think that would be a good thing....(think Eclipse)

strings embedded inside strings
34304 [paul@at es .] I've seen this on the ML before, but searching the ruby-talk archives I
+ 34306 [    s@xs .d ] Paul,
| 34307 [paul@at es .] Hmm, I don't remember any more.  It made sense at the time.
+ 34310 [mike@st k. o] You might want to use %Q to change the quotes e.g.
+ 34320 [jeffp@cr so ] [posted & mailed]
+ 34365 [edsin@sw s. ] puts "#{\"'\"}"

different execution under the debugger.
34312 [joe@vp p. et] I'm seeing different output when I run my script with -rdebug than
34344 [matz@ru y- a] -rdebug turns on $VERBOSE and $DEBUG, that make interpreter far more

eRuby and require
34315 [beripome@ya ] I've got eruby going however, whenever I try to require, the script times out.
34317 [sean@ch tt n] What's your httpd.conf file look like?
+ 34331 [patrick-may@] Also, are you trying to
+ 34349 [beripome@ya ] I've got that stuff in my http.conf.

WEBCAMS
34319 [piedra@fi os] Alucinaras por un tubo, aplaudiras con las orejas, te sonaras en estereo,

Changing String Without Changing The Address
34324 [yuns@us ib .] Based on what I have read, it seems that assignment just change the string
+ 34325 [dblack@ca dl] Does this address what you're wondering about?
+ 34327 [vjoel@PA H. ] irb(main):001:0> x = y = "foo"
+ 34345 [matt@li ke .] Yeah, see the [], []=, replace, <<, and any of the other String

[ANN] RGL (Ruby Graph Library) 0.1
34326 [duchene@ma n] I have prepared the first public release of RGL.  This

ruby booting?
34329 [kurisu@so th] This is gonna sound crazy but how hard would it be to make ruby boot as
+ 34333 [msassak@sp a] A _lot_ of work would have to go into this, and in the end, you'd
| 34347 [pcs3@ma lh s] Aside from the fact that it's Perl, would this be the same kind of thing
| 34353 [msassak@sp a] /me runs 'tclsh' for the first time...
+ 34336 [wheelerwjx9@] Not crazy at all.  The last time I looked some Sun machines boot up
| 34346 [gehlker@fa t] Ah the glories of OpenFirmware. It's not just Suns that use it. So do Macs
+ 34340 [pcs3@ma lh s] Hell why not (*rhetorical*)!  Didn't Modula-2 or Oberon have its own
| 34374 [chris@da kr ] A cool hack?
+ 34385 [tetryl@to yo] I am trying to do same thing with Perl using OSKit.

Might be IO.pipe, not eruby (was Re: eRuby and require)
34332 [patrick-may@] I've gotten timeouts using eruby with scripts that had a section like
34338 [matz@ru y- a] I guess it's the OS limitation of pipe(2).  They have limited sized
34428 [patrick-may@] Thanks for the info!

patch to allow dump/load to work on DATA objects
34335 [vjoel@PA H. ] ...
34343 [matz@ru y- a] Thank you for interesting idea.  I'm thinking of a new marshal
34393 [vjoel@PA H. ] That sounds like the best approach for the future. I especially like
34404 [matz@ru y- a] * it will be remain undocumented.
34408 [vjoel@PA H. ] That's great. Thank you very much.
34423 [matz@ru y- a] OK, I start checking on your patch.
34429 [nobu.nokada@] I guess r_object() should use `allocate' instead of `_alloc'

Switching stdin from program to data
34342 [gehlker@fa t] I'm looking for an *easy* way to get ruby to switch from reading the program

FAQ for comp.lang.ruby
34350 [hal9000@hy e] ...

Linking opengl under windows
34351 [Dave@Pr gm t] Continuing my masochistic quest to build Ruby under mswin32, I'm
34425 [horie@sm il ] I've checked the situation of opengl module of ruby.

ANN: RHDL (Ruby Hardware Description Language)
34352 [ptkwt@sh ll ] I suspect that the set that contains Ruby Programmers AND HDL coders is
34382 [wmwilson01@h] Ya' gotta love that moment where you realize that you just became 4 times

Re: FAQ comp.lang.ruby; correction, Ruby vs Python 2.2
34354 [jdonner0@ea ] Ruby is no longer more OO than Python (at least as pointed out in this
+ 34356 [hal9000@hy e] Thanks... this will be fixed in the next
+ 34357 [matz@ru y- a] I admit Python people done great job recently, I still feel like "Ruby
| 34383 [Dave@Pr gm t] I wonder if we need to be taking pokes at other languages in the FAQ,
| + 34396 [curt@hi bs c] I agree wholeheateredly. Keep the FAQ straight-forward and Ruby-focused
| + 34397 [ptkwt@sh ll ] You're right that it doesn't really fit in that part of the FAQ.  What
| | 34400 [hgs@dm .a .u] This is something that would be difficult to keep up to date. How much
| + 34418 [james@ru yx ] I second this.  No matter how you phrase it, certain comparisons (pretty much anything
|   34439 [ser@ge ma e-] Hear, hear.
|   + 34440 [hal9000@hy e] languages
|   + 34477 [james@ru yx ] On the other hand, "How does Ruby compare to ..." may be a FAQ.
+ 34360 [ptkwt@sh ll ] showed up on Freshmeat.net last month.  After it showed up. there was a
+ 34364 [ptkwt@sh ll ] OK, maybe we do need to change it a bit since you can subclass basic types
+ 34370 [tim@ve et .a] Python's type/class unification is a great improvement over it's

"Powered by Ruby" - my first effort
34355 [hal9000@hy e] ...

REBOL vs Ruby
34361 [beripome@ya ] On the subject of amazing new languages (ie Ruby): REBOL ->
+ 34362 [stephan.schm] what's new about REBOL ? It has been around for some years now and is in
| 34363 [curt@hi bs c] Last month I cleaned out my library and donated my REBOL books to a local
+ 34371 [matz@ru y- a] Logic sometimes help people, sometimes don't.
  34373 [feldt@ce ch ] This is interesting. What do you think of Lisp-style macros? I've only
  + 34376 [stephan.schm] I like macros in lisp which make lisp very powerful and I would like to
  + 34387 [matz@ru y- a] I love Lisp, but Ruby turned out NOT to be Lisp.
  + 34421 [toddg@li ux ] If you look at that 'problem' in the larger scope, you see that the same
    34424 [feldt@ce ch ] Yes, thats important.
    34461 [toddg@li ux ] Something I didn't point out is that many of the macros in Common LISP

Setting the Ruby continued
34375 [jostein.bern] Sorry, but I lost the orginal 'Setting the Ruby' mail where the sender
+ 34378 [curt@hi bs c] We're working on this one!
+ 34384 [paulo@be ne ] ruby-dev in english.
| + 34438 [ser@ge ma e-] No, no, no... _Esperanto_.  Or let's make it REALLY interesting, and do it
| + 34479 [patrick-may@] a. this wouldn't be practical, since the current developers probably
| + 34545 [maki@ru yc l] Don't worry.
|   34582 [paulo@be ne ] Ok, I can't take part in developing ruby not becouse of the language
|   + 34585 [Dave@Pr gm t] A summary of all patches is already distributed in the ruby-cvs
|   | + 34590 [ptkwt@sh ll ] This is within the realm of possibility...
|   | | + 34702 [paulo@be ne ] I fully agree with you. The fact is: today, the 'de facto' international
|   | | + 34712 [maki@ru yc l] See below, please.
|   | + 34611 [pcs3@ma lh s] Amen, let the code speak for itself.  And let's all in the west be
|   |   34612 [matz@ru y- a] Did I?  I'm using ISO-2022. ;-)
|   |   34613 [pcs3@ma lh s] Sorry I wasn't clear enough.  What I was driving at was that although
|   |   34618 [matz@ru y- a] During pre 1.0 period, documents, changelog and part of comments are
|   + 34605 [dsafari@xt a] Something like this could perhaps go in the Ruby Weekly News, although I
|     34701 [paulo@be ne ] Yes, o think that would be great. I'm pretty sure we can't force anyone
|     + 34704 [decoux@mo lo] ruby is written in C, if you don't understand this language it's hopeless
|     | + 34705 [tobiasreif@p] He also said
|     | + 34725 [paulo@be ne ] Off course. But if you do understand C, great documentation and info on
|     + 34713 [maki@ru yc l] OK. I'll ask the members of ruby-list making summary of
|       34726 [paulo@be ne ] Thank you.
+ 34427 [dsafari@xt a] Coming along.

including files in eruby
34379 [mmaciaszek@g] I'm using eruby on some of my web pages. Now they became big and
+ 34380 [520079130762] <% ERuby.import "filename.rhtml" %>
| 35089 [evan_leonard] I've been running into a similar problem and tried to use
| 36127 [evan_leonard] grr grr grr.  "make sure you have the newest versions *before* posting
+ 34398 [alan@di ik t] I've just been require'ing the files as normal ruby code. I've been
  34399 [paul@at es .] I don't know if this is the "best" way, but I've been doing something
  34401 [alan@di ik t] Actually, I've been using mod_ruby too so I just have the rhtml file. :)

How do I get the GET from gets in an open socket?
34381 [moonerent@ho] I have a Flash movie using xmlSocket to connect to a Ruby server.

Marshal::load and $DEBUG
34388 [Klaus.Spreck] The following condensed script throws an EOFError
34391 [decoux@mo lo] Can be seen equivalent to

Global variables, mod_ruby
34390 [dmcnulty@mi ] I see Shugo stated (back in July 2001) that the use of global
+ 34394 [paul@at es .] Have you considered using fastcgi?
| 34411 [dmcnulty@mi ] Yes I have considered it but I am not sure it facilitates clean
| 34414 [tobiasreif@p] I thought about doing it something like
+ 34402 [alan@di ik t] How exactly do you intend to use the globals?  I'm not sure that you
  34410 [dmcnulty@mi ] I am currently also using HTML Template

Now I'm really confused!
34405 [gehlker@fa t] I'm still struggling with producing RubyStudio. The following example
+ 34459 [gehlker@fa t] Here I go answering my own question. I'm doing this for the sake of the
| 34466 [paul@at es .] I've struggled with a similar problem myself [ruby-talk:32646].  In C,
| 34480 [gehlker@fa t] I've been programming Macs so long that I had this model in my head that
+ 34476 [tim@ve et .a] I'm not familiar with RubyStudio, but it occurs to me that it may
  34481 [gehlker@fa t] That's it. I didn't know that stdio was smart like that.

Ruby Licensing (was: Epic4/Ruby)
34407 [tom.hurst@cl] c) rename any non-standard binaries so the names do not

Installers
34409 [john.carter@] I have been doing battle with InstallShield. It does what I want (sort

dang it, CGI::Session is broken again
34412 [dmcnulty@mi ] What is wrong with this?  I swear this was working yesterday, but now
+ 34415 [alan@di ik t] Replace session_key with session_id. session_key is a valid option for
| 34435 [dmcnulty@mi ] Hmmmm, nope, no joy after changing session_key to session_id.  The way
| 34437 [alan@di ik t] I retested that script on my side, when I entered a session_id, the id didn't have
| 34470 [    s@xs .d ] Quoting from cgi/session.rb
+ 34436 [dmcnulty@mi ] Well I found out a problem here.  I set Mozilla to notify me when any
  + 34448 [gotoken@no w] Your script does NOT send HTTP header, where cookies shoud be put.
  + 34460 [clem@we l. o] I've been having a similar problem when using CGI::Session with eruby.
    34469 [gotoken@no w] #!/usr/local/bin/eruby

confused about '::' vs '.' in method calls
34416 [rafemonkey@y] I must admit I'm a bit confused... probably because I never realy
+ 34417 [vjoel@PA H. ] =====
| + 34430 [tobiasreif@p] I thought method names have to start with a lower case letter(?)
| | 34431 [pcs3@ma lh s] No, but you need parenthesis to get Ruby to recognize it as a method
| + 34471 [rafemonkey@y] Thanks! that helps a bunch... looks like I should spend a little more time
|   34483 [vjoel@PA H. ] It's one of the nicest command line interpreters I've used. The editing
|   34497 [tobiasreif@p] me too.
+ 34419 [pcs3@ma lh s] [/C/ruby]$ cat try.rb

"Powered by Ruby" banner [other post garbled?]
34420 [hal9000@hy e] I'm reposting this because someone pointed out that

Ruby-interbase and Firebird?
34426 [sal@sp ok pe] Has anyone managed to get the ruby-interbase package to work with

eRuby and erb
34446 [moontoeki@ao] I would like to use either of eRuby or erb for my web design.
34468 [m_seki@mv .b] It is dependent on your application.
34588 [daniel@ze ed] ns etc. *and*  finally, a more portable program, since you don't have to worry about if erb|eruby is installed, configured properly, etc.  I find this simple, flexible approach superior to the embedding techniques, which IMHO are just carrying over bad programming practices from Microsoft, whom probably stole the idea from someone else anyway.
34614 [beripome@ya ] The embedding techniques just make it slightely more

different languages and encodings
34447 [olonichev@sc] Plz. give me links where can I read how Ruby supports different languages

Re: Epic4/Ruby (embedding Ruby in commercial apps)
34456 [ptkwt@sh ll ] First off, I have to say that I'm very supportive of the GPL.
+ 34485 [pcs3@ma lh s] No, it's not subjective if you mean as a language.  For ease of
+ 34486 [matz@ru y- a] First of all, it's not under a modified GPL.  It's under *either*
  34493 [cboos@bc -t ] Speaking about licenses issues...
  34495 [matz@ru y- a] You have to read LGPL by yourself.  The point is you can use it in

Help with blocks?
34457 [patternChase] I'm trying to learn Ruby; just started. I like what I've understood
+ 34458 [jason@jv eg ] The nearest concept in C++ is the function pointer (or perhaps "function
| + 34462 [tobiasreif@p] is there a dirrefence to simpler
| | 34464 [dblack@ca dl] puts array
| + 34465 [alwagner@ua ] writing documentation.
+ 34463 [mkelly2002NO] Also if you can find an online reference to SmallTalk check
threads.html
top