47053-48836 subjects 47465-48638
Problems with Structs
47245 [djberge@v5 h] Ruby 1.6.7 on Solaris 9
47250 [ruby-talk@wh] You'll need to define the TestStruct in the client as well, possibly
Update: Re: Perl calling C calling Ruby (linking problem)
47248 [pete-ruby@pe] Just wanted to update you on a problem I've been having, so that this
47251 [engard@al .h] I am trying to learn how to glue tk with a scripting language, and have
47287 [matz@ru y- a] The argument string is evaluated under the context created for each
47302 [engard@al .h] And what is this context? Is it a plain new Object for every invocation,
47320 [matz@ru y- a] It is a plain new "scope" for every invocation. You can define new
Ruby on AS/400
47254 [topor@vo ny ] Has any Ruby compiled on AS/400 (V4R2M0) ?
FAQ for comp.lang.ruby
47260 [hal9000@hy e] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2002-6-27)
47374 [jtanzler@yl ] These two books are already out for sale (the pickaxe book is called
[ANN] Net/Proto 0.1.0
47261 [djberge@v5 h] Version 0.1.0 of Net/Proto has been released into the wild.
ANN: FXRuby-1.0.12 Now Available
47266 [lyle@us rs s] I am pleased to announce the latest release of FXRuby, the Ruby language
Legendary Chaos Computer Club goes Ruby
47270 [mikkelfj-ant] The Chaos Computer Club that spawned legendary hackers in the 80'ties
47271 [hal9000@hy e] Thanks...
+ 47273 [Ephaeton@gm ] The ninth 'data garden' will be taking place on the 11th of
+ 47278 [lyle@kn lo y] I just finished watching LOTR last night and so I'm reminded of Gollum-speak
+ 47303 [mikkelfj-ant] Somehow this could enter Ruby folklore. It could be used in any "please
47393 [cjh_nospam@m] My favourite in this line is the translation of "the spirit is willing
Link to Programming Ruby download?
47281 [harryo@zi .c] I was in the process of writing an e-mail to a friend to pass on various links
47283 [Dave@Pr gm t] RubyCentral needs to be refreshed from the development box: I'll ask
47289 [harryo@zi .c] Thanks Dave!
47285 [transami@tr ] ONI - Object Network Interface
Second Sydney Ruby users group meeting
47290 [harryo@zi .c] I should have mailed this a couple of days ago, but ...
Thought question: Where does "new" come from?
47292 [hal9000@hy e] I've been brooding again on the circularities
+ 47294 [matz@ru y- a] From the Class class.
| + 47309 [christopher.] I enjoy these kinds of discussions, but they make my head hurt. ;-)
| + 47331 [hal9000@hy e] I very rarely look at the source. I was not aware
| 47335 [decoux@mo lo] (Class) is the singleton class associated with Class
| 47342 [hal9000@hy e] Oh, yes, of course. Where the singleton information
| + 47343 [batsman.geo@] I think it is for uniformity's sake, so you can handle the same way these
| + 47346 [dblack@ca dl] This has gotten bizarrely long. But I think it's OK as an
| 47365 [mikkelfj-ant] I didn't track this thread, but today I independently tried to write up the
| + 47369 [dblack@ca dl] The only place that happens, I think, is at the "top level" of
| | 47372 [mikkelfj-ant] functions.
| | 47377 [dblack@ca dl] The availability of instance variables (@var) depends on what "self"
| | 47412 [mikkelfj-ant] Yeah :-)
| | + 47414 [decoux@mo lo] If you want to make reference to [ruby-talk:47388] more precisely to this,
| | | 47419 [mikkelfj-ant] Actually I get "12" and no error using 1.6.6 on Windows.
| | | 47420 [decoux@mo lo] This is because 1.6.6 use another rule :-)
| | + 47415 [jweirich@on ] Normally defined methods are called instance methods. Their
| | 47421 [mikkelfj-ant] Thanks for the clarification.
| | 47426 [chr_news@gm ] What about anonymous classes ? They sort of
| | + 47428 [chr_news@gm ] - ups;)
| | + 47429 [mikkelfj-ant] Ruby is very dynamically type so you can only stretch the analogy so far.
| | 47481 [chr_news@gm ] I am worried that your analogy might be rather misleading.
| | + 47482 [decoux@mo lo] I hope that you know that you are not forced to use the evil eval :-)
| | | 47487 [chr_news@gm ] Yeah, but some people seems to have made a pact with the devil;-)
| | + 47484 [mikkelfj-ant] there it was - you did at again - you made it constant (i.e. static) :-)
| | 47490 [chr_news@gm ] If you want to be picky there is no such thing as a ``constant class instance''
| + 47388 [matz@ru y- a] I admit Ruby's scope rules are rather complex, comparing to other part
| + 47395 [chr_news@gm ] the
+ 47318 [gsinclair@so] That's pretty easy.
Development countries. News in brief
47300 [newsletters@] The Financial News, August 2002
adding method to existing class
47306 [Eugene.Scrip] some_class = Struct.new( 'SomeClass', 'some_field' )
+ 47308 [meier@me st ] class ExistingClass
+ 47311 [decoux@mo lo] You must understand that there is nothing wrong in #eval, this is just
47315 [pbrannan@at ] s/some/most/ :)
Ruby email applications? (was "Re: Ruby Weekly News")
47307 [x@ic im nk .] and now apologizes for not taking the list out of the "to" field on what
+ 47319 [matz@ru y- a] SGmail? See www.sgmail.org
| 47336 [hal9000@hy e] like
+ 47332 [hal9000@hy e] There was one I read about... think it was called kmail or
47339 [jason@xo it ] I would love to see a good Ruby web-based-email solution... Who knows,
47347 [x@ic im nk .] The sgmail application that matz linked looks like it can run as a web
RE: reading without process blocking.
47313 [mark.firesto] Ug. Ok. So, how are people handling the console in Windows ruby programs,
FXRuby on Solaris 9
47321 [djberge@v5 h] FXRuby 1.0.12, Ruby 1.6.7 on Solaris 9
47322 [decoux@mo lo] Look in doc/build.html : the paragraph
+ 47323 [djberge@qw s] Guess I should have read that first. ;)
| + 47325 [decoux@mo lo] Have you tried to change the declarations in
| | 47328 [djberge@qw s] Well, I obviously picked a bad week to quit sniffing glue. I had modified
| | + 47330 [decoux@mo lo] Strange, this is a 2.8
| | + 47340 [lyle@us rs s] A good "Airplane" quote always helps to lift one's spirits ;)
| | 47353 [djberge@qw s] cc1: warning: changing search order for system directory
| | 47366 [lyle@us rs s] No, that's definitely not going to work (building FOX and FXRuby with
| + 47333 [lyle@us rs s] What do you mean by, "it still doesn't work"? Could you be a little more
+ 47334 [lyle@us rs s] Thanks, Guy, for relieving me of the burden of pointing this out for the
ANN zenweb 2.11.0 released! (fwd)
47327 [pate@ey er a] This showed up on the Seattle.rb mailing list, but probably deserves more
47329 [james@ja es ] What is it?
+ 47337 [rich@in oe h] ZenWeb
+ 47338 [pate@re -b a] Picky, picky! ;)
47344 [kyle.wilson@] perform syntax highlighting correctly for eruby/html code. I'm looking
+ 47416 [hgs@dm .a .u] I don't know if one exists already, but I'd imagine that you need to
| 47423 [alan@di ik t] Not looking for a vi vs emacs flamewar here, but emacs also has
| 47457 [kyle.wilson@] Thanks for the responses. I actually thought about creating syntax
| 47458 [pmak@an me l] ...
| + 47459 [kyle.wilson@] SWEEEEET!! Thanks. I'll give it a try.
| + 47699 [kyle.wilson@] Philip,
+ 47506 [charleshixsn] I'm not exactly sure of your environment, but you should give NEdit a look.
Where is tk.so?
47345 [alan@pa ri t] Dear Colleagues,
+ 47370 [lyle@us rs s] For Mandrake Linux, I think you want to install the "ruby-tk" RPM. You
+ 47382 [matz@ru y- a] "tk" is "tk.rb", which depends on "tcltklib.so" and "tkutil.so". It
robust hardware to run ruby newtwork service
47348 [transami@tr ] i know this is bit off topic, but since you all are my "computer family"
+ 47352 [pate@re -b a] X86 style boxes are going to generate a *lot* more heat than the
+ 47373 [ptkwt@sh ll ] The Apple Xserver looks pretty nice and from what I hear the price is
47376 [transami@tr ] sure, it's a unique accounting application geared toward the custom
47391 [cjs@cy ic ne] Keep in mind that the transmeta CPUs are, by modern standards,
ruby email client; why?
47350 [michael_s_ca] I find this thread somewhat interesting. When I'm shopping around
+ 47354 [botp@de mo t] I would like an ruby email client to have the ruby interpreter in it.
| 47355 [rich@in oe h] How about a ruby process that can connect to Outlook and process
+ 47356 [hal9000@hy e] As do I, in most cases.
| 47384 [x@ic im nk .] I would have said all of the above except #4 hold true for me as well, then
| 47392 [botp@de mo t] Great!
| + 47396 [hal9000@hy e] client
| | 47397 [botp@de mo t] Thanks, Hal.
| + 47404 [djkea2@mu ca] A kind of reimplemented mutt, just for the heck of it? Hmmm, that could
+ 47357 [batsman.geo@] * eventually able to run in a number of different platforms
Is Ruby easily embeddable in other apps as TCL is? <eom>
47351 [christopher.] Christopher J. Meisenzahl CPS, CSTE
+ 47383 [matz@ru y- a] Not that much. Ruby is originally written as an independent
+ 47425 [llothar@we .] No.
SWT / Ruby
47359 [tran55555@ya] After TK, GTk, FOX ... etc
47367 [lyle@us rs s] No.
47418 [tran55555@ya] I am sorry to ask this question too quickly.
+ 47427 [lyle@us rs s] I'm not sure I understand your requirements. If you're wanting a GUI
| 47432 [mikkelfj-ant] GTK isn't really a serious option for Windows, although it is closing the
+ 47431 [llothar@we .] TK. Because you should start with the one with the most clean design.
47434 [lyle@us rs s] Could you elaborate on the aspects of Tk's design that make it "cleaner"
47442 [llothar@we .] No i don't have time to write a lot. But only 3 quick points that are
47542 [tran55555@ya] First, thanks everyone's help. Thanks your idea and suggestion.
Is it possible?---ruby xxx.rb arg1 arg2...
47360 [ChaiXV@ee ua] ...
+ 47361 [james@ja es ] In a qaz.rb, how to read and use arguments setting by command line
+ 47362 [batsman.geo@] Sure, use ARGS.
47363 [batsman.geo@] Sorry, I meant ARGV.
ARTICLE: "Where Ruby Really Sparkles", Linux Magazine, Sept. 20002
47368 [james@ja es ] Just got my (dead-tree, printed-on-paper, I don't know if there's a web
47405 [hgs@dm .a .u] There are lots of Linux magazines, presumably this is the only one
Win32 build problems
47371 [johnaronson@] ...
47381 [nobu.nokada@] # why lines are concatenated?
How do I find the URL of the .rhtml that's being served?
47375 [sera@fh an .] I have a utility class that's being used inside a bunch of different
+ 47378 [james@ja es ] What does $0 give you?
| 47553 [sera@fh an .] It gives me the path of the file on the server, something like
+ 47409 [meier@me st ] try adding $ENV.inspect in your script and look for PATH_INFO,
47554 [sera@fh an .] I tried Googling around for references of $ENV.inspect, but I didn't
+ 47556 [pmak@an me l] You can see what all the environment variables for a CGI request are
+ 47571 [james@ja es ] This will display all of the enviroment variables available to the CGI
.rhtml files and server-side includes?
47379 [sera@fh an .] Another CGI-type question: Is it possible to use server-side includes
+ 47410 [meier@me st ] Assuming you're using apache there is IMHO no way to post process .rhtml
+ 47470 [patrick-may@] def to_html( template )
47386 [cleeker@gm .] I'm just learning ruby and so far everything has been great (using the
+ 47387 [patrick.benn] procs can be used as standalone 'closures' and passed around/called as
| 47390 [cleeker@gm .] Thanks, blocks in the sence that Ruby uses them is still kinda wierd to
+ 47389 [gsinclair@so] +++++++++++++++++++++++
For Windows users only...
47398 [hal9000@hy e] At the command line, that is.
+ 47400 [gsinclair@so] My solution: Use Cygwin!!!!!!
+ 47401 [james@ja es ] On Win2k and XP Home I just type the name of the ruby file, plus any
+ 47402 [gsinclair@so] Having bluntly stated my solution, let me elaborate by example. Below is
| 47422 [bobx@li ux a] Do a search and you will see the "thought" behind why the native build
+ 47403 [holmberg@ia ] I have used almost exactly the same solution for Perl on Windows for
+ 47450 [baker.921@os] Run msconfig from Start Menu->Run. Under the "Environment" tab of the
47451 [hal9000@hy e] Thanks. I'm well familiar with PATH. But I don't
47454 [BPettersen@N] the
47462 [james@ja es ] I don't think Win98 knows what to do with PATHEXT.
47463 [hal9000@hy e] Right, nor does it have assoc or ftype.
Can't run sgmail
47399 [hal9000@hy e] FYI, I can't run sgmail because I'm missing
Problem with 1.7.2 on Windows
47407 [rc@va ca er ] Not sure where to report this, but I used the version from
47408 [decoux@mo lo] If I'm right
47411 [christopher.] All,
+ 47424 [armin@xs .d ] Depends on what you like doing.
+ 47447 [vjoel@PA H. ] I would be much less happy without IRB. It probably came with your
+ 47897 [rubytalk@bo ] * 'ri' and/or Ruby in a nutshell by `matz' (reference guides)
47430 [nmassaro@co ] I have a 40meg postscript file that I need to change the header on. Is
47433 [STUCKNER@MU ] fout = File.new("file2.ps")
47468 [gsinclair@so] This should be equivalent, and easier to read.
47472 [gsinclair@so] puts "Whoops"
47435 [djberge@v5 h] This is a fairly simple Ruby version of 'ping', based somewhat on the Perl module of the same name.
ruby/gtk Which radiobutton
47436 [kgergely@ml ] Can anybody tell me how to figure out the currently selected radiobutton
+ 47439 [transami@tr ] gtk_radiobutton_object.active?
+ 47453 [jtanzler@yl ] This program will print the current radiobutton's label if you press 'p'
Getting a class from a string containing its name
47437 [pmak@an me l] case classname
47438 [Dave@Pr gm t] Cheers
Help with a segv in mod_ruby
47440 [Dave@Pr gm t] #0 0x402c06f5 in st_lookup (table=0x81645f0,
+ 47445 [matthew@by e] Always helps me to know whereabouts in the Ruby code had it got to, i.e.
+ 47446 [armin@xs .d ] Do you happen to have installed a new (version of a ) library
[ANN] Narf cgi library alpha release
47441 [patrick-may@] NARF is an attempt to create ruby web libraries that escape the
47448 [mikkelfj-ant] What about Fast-CGI?
+ 47475 [patrick-may@] Unfortunately, his sites seem to be down at the moment. When I get a
| 47479 [tsiivola@cc ] Which reminds me: how many commonly used ruby packages (such as Fast CGI)
+ 47510 [patrick-may@] After reading some of the fast-cgi docs (not the ruby implementation),
47514 [mikkelfj-ant] I'm no (f)cgi expert, but the main loop is very identical.
Great opportunity...start your own internet business!
47443 [cro_best@ho ] *****************************************************************************************
Using Test::Unit to assert messages appeared on $stdout/$stderr
47444 [jeff.gray@in] I'm sorta new to the whole unit testing thing, and my only prior exposure to
+ 47455 [list@NO PA c] Get stringio.rb from www.allruby.com/rpkg/stringio.rb
+ 47540 [nat.pryce@b1] If something is hard to test, that's a good indication that the design
Flash socket server - can I make it any shorter??
47460 [rich@li hi o] Here's what I have - 91 characters with everything you'd need for a Flash
47543 [rich@in oe h] This is very cool.
47552 [rich@li hi o] I've looked into the lists that are around for things like FreeMovie /
47555 [rich@in oe h] Absolutely agree. My idea is to be able to write your Flash UI in
47561 [rich@li hi o] I'm used to it!! Me too!! lol
How do I dup file descriptors in ruby? (diverting STDERR)
47461 [ryan@fs .n a] How would I do the equivalent to the following
47476 [patrick-may@] perhaps like this?
47495 [ryanr@12 25 ] Thank you for the suggestion, but perhaps I should have been more
+ 47496 [Dave@Pr gm t] Is this along the right lines?
| 47501 [ryanr@12 25 ] Yes, those are right along the lines I was thinking, and that actually
| 47529 [decoux@mo lo] This is because you must use $stderr.reopen, something like this
| + 47572 [ryanr@12 25 ] I guess I have to take back what I said about complexity. Although
| + 47578 [ryanr@12 25 ] I guess I have to take back what I said about complexity. Although
+ 47497 [jweirich@on ] Cute analogy :-)
47502 [ryanr@12 25 ] Thanks for the suggestion. The problem with metaphor is that the
47528 [patrick-may@] If by complexity you mean not calling the same function 6 times with
47612 [ahoward@fs .] i'm not sure why, but modifying the constants STDOUT and STDERR seems
IDE vs. editor
47464 [dsafari@pa a] I have always watched people comare using IDE's over straight text editing and
+ 47466 [mikkelfj-ant] Most of the features are either have or have not. Nothing much to dicuss. I
+ 47467 [jweirich@on ] Wow ... you are entering territory where angels fear to tread ...
| 47499 [list@NO PA c] How do you run tests and then jump to offending lines? I use to run
| + 47500 [alan@di ik t] I've been running my unit tests from a makefile, which triggers
| | 47519 [list@NO PA c] Thanks to you and Alan for the tip. A sensible approach. But I
| | 47526 [Dave@Pr gm t] Use M-x compile to run the tests, and set
| | + 47534 [list@NO PA c] It's M-x compile'ing that turns me a bit down, because it requires the
| | + 47537 [cparrish@co ] Does anyone know of a good source on best practices to make ruby coding
| | + 47565 [djkea2@mu ca] Regards,
| | + 47567 [gsinclair@so] See VimExtensions on the Ruby Garden wiki (if you don't know where that is, me
| | | 47648 [cparrish@co ] Way kewl that will come in handy. And thanks for the sources.
| | + 47581 [dsafari@pa a] Carl,
| + 47503 [michael_s_ca] I haven't tried this, but some combination of a regex (and or having
+ 47471 [gsinclair@so] and
+ 47477 [transami@tr ] well, i've done a some VB work in the past and so truly appretiate a
| 47478 [dsafari@pa a] I too have been following FreeRIDE - this week I stumbled upon some
| 47485 [mikkelfj-ant] Yes it looks good.
+ 47489 [comp.lang.ru] - - I can do all this in Emacs and have a powerful editor. Is it
| + 47492 [alan@di ik t] The other thing is that it's nice to have a low entry overhead to
| + 47493 [llothar@we .] It is impossible to offer a lot of facilities when using an external
| | 47507 [list@NO PA c] What planet do you live on? :-)
| | 47511 [llothar@we .] Earth.
| | 47530 [list@NO PA c] Sorry, I misunderstood. I believed the subject being discussed was
| + 47508 [list@NO PA c] Same questions to you: how do you have a method's renaming propagate,
| + 47513 [x@ic im nk .] Method renaming: M-x query-replace
| | 47518 [list@NO PA c] I did not ask how do you search and replace in emacs. I asked how do
| | 47527 [jweirich@on ] Several ways. The easiest is to run the tests from the M-x compile
| + 47541 [comp.lang.ru] - - You need a ruby version of etags. Then it's just a simple
| + 47544 [Dave@Pr gm t] rtags comes with irb (the separate package, not the one that comes in
| | 47549 [alan@di ik t] There is also exuberant ctags (http://ctags.sf.net) which supports
| + 47546 [list@NO PA c] I heard about etags supporting ruby, but never managed to get it work,
| + 47587 [gsinclair@so] This is obviously the problem of editors vs IDEs. IntelliJ IDE for Java
| + 47595 [comp.lang.ru] - - You've got me there. I was extrapolating my C refactoring
| | 47609 [batsman.geo@] a = create_some_object()
| + 50070 [usenet@on in] You roll your own ruby support if your etags doesn't have it (I am
| + 50071 [airboss@no e] Or you download Exuberant Ctags and save yourself some work. Supports
| + 50073 [alan@di ik t] ...< roll your own stuff deleted>
| + 50124 [horst@hd ch ] "Syver Enstad" <firstname.lastname@example.org> schrieb im Newsbeitrag news:email@example.com...
+ 47498 [list@NO PA c] Does anybody know modes that bring these two in Emacs?