202356-204889

202148-236689 subjects 202505-349421

[QUIZ][SOLUTION] Negative Sleep (#87)
202356 [boris.prinz@] I tried to keep it simple. The code blocks in an Insomnia object are

displaying all errors
202360 [turtlethief@] When running a program from the command-line, I get the following
+ 202425 [logancapaldo] That's one error and a stack trace for said error. Whatever it was it
+ 202432 [daniels@pr n] If you explicitely catch the error, you can get to it through the

How to call system having trap("CHLD", "IGNORE")?
202361 [smerk@fi mu ] doing some forks I want to ignore SIGCHLD. But
+ 202381 [ara.t.howard] it looks like a bug.
+ 202444 [matz@ru y- a] system() tried to pick up the exit status of forked sub-process.
  202463 [robert.dober] ...
  202464 [matz@ru y- a] No they don't.  The former ignores SIGCHLD.  The latter handles

[Fwd: Re: Preferred monkeypatching technique]
202367 [johnatl@ma .] You could use a factory for that, and allow the plugin to override the

Interactive mode
202368 [expiation@de] Is there some sort of 'python -i' equivalent for ruby or irb? I can't
202371 [nseckar@gm i] ...
202376 [phurley@gm i] As mentioned you can use breakpoint (excellect tool) and irb -r, also
202393 [expiation@de] Thanks guys
202399 [dingsi@mi tb] try eval(File.read('blah.rb'))
202412 [sean.ohalpin] eval() won't create local variables - it will update one if it already
202414 [collinsj@se ] $ cat test.rb
202415 [sean.ohalpin] You're right - another one of those little quirks of irb ;)
202571 [logancapaldo] It's not _really_ a little quirk of irb, it's the same quirk you
202584 [sean.ohalpin] It's even quirkier than that even :)
202652 [expiation@de] Hey!

end of file
202370 [ghotrapa@ya ] Can somebody body give me an idea on how to detect end of file in excel

[Fwd: Re: How to speed up ruby and make it as fast as possible]
202374 [johnatl@ma .] If you're using a UNIX like server, you might try running the process at a
202390 [kenosis@gm i] This topic has been addressed many, many times in this group. Do try

[Fwd: Re: Mac OSX Ruby Configuration Question]
202375 [johnatl@ma .] You can change path info in /etc/profile to make it system-wide.
202471 [schapht@gm i] It's in our blood.  Programmers like to categorize things.  The
202481 [jmg3000@gm i] * /bin -- commands needed for minimal system operability

Ruby code to control Russound CAV6.6
202382 [gavin@re in ] I'm (finally) starting to set up my home for automated electronics. The
202397 [skurapat@uc ] Last time I checked, there wasn't any (usable) serial-port extension
202419 [gavin@re in ] Well, the Russound API has specific packet formats it uses. In addition

Initializing a DateTime object the best way
202400 [weyus@at .n ] Wow - dates and times sure are all over the place in Ruby.
202403 [weyus@at .n ] Then I tried
+ 202404 [khaines@en g] DateTime is the class to use if you need to represent a wide range of
+ 202405 [weyus@at .n ] This seems to get me pretty close.
  202416 [wrecklass1@g] This is an interesting conversation. Can you tell me where this
  202421 [groups@gr nd] require 'date'

Sound like OS level Stuff wanted Re: How to speed up ruby and make  itas fast as possible
202402 [john.carter@] Wow! You seem to hit some grumpy folks in the chatter spot. Even after

uninstalling/upgrading Ruby
202411 [bonefry@gm i] I have Ruby 1.8.2 installed on a RHEL 3 server from the tarball, install
+ 202420 [jmg3000@gm i] Unfortunately, there's probably no customary "make uninstall". Where
+ 202454 [erikveen@gm ] # ls -ld /usr/local/*/{ruby,irb,erb,testrb,rdoc,ri}
+ 202470 [schapht@gm i] Chances are good that you can just install 1.8.4.  It'll likely
  202513 [collinsj@se ] whereis ruby

Re: Mac OSX Ruby Configuration Question
202417 [groups@gr nd] I would not modify anything in /usr/bin directly.  Apple assumes that
202500 [devlists-rub] 6 months isn't all that long :)
202761 [johnatl@ma .] That's an understatement!
202876 [groups@gr nd] 3) Two days ago, I once again had a Ruby program fail because it's
+ 202910 [schapht@gm i] The developer link provided previously seems like you just have to
| 203011 [2006@ho el .] [sheepishly takes the time to RTFM] I just assumed that "configuring"
| 203218 [devlists-rub] Pain, frustration, aggravation, more frustration, and more pain.  I have
| 203233 [2006@ho el .] Too bad it didn't actually work.
| 203236 [devlists-rub] You're going about it backwards.  If you have PATH in your
| 203478 [2006@ho el .] Well, the ultimate source for that user. What I want is for it to
+ 202914 [devlists-rub] processes launched by a specific user.

[newbie]  in place file editing and ! meaning
202424 [xhanin@ya oo] I'm brand new to ruby, and I'm looking for a way to open a file, read
+ 202427 [logancapaldo] The ! (pronounced bang usually) means that a method is a "dangerous"
+ 202428 [m_goldberg@a] FOLDER = "#{ENV['HOME']}/Desktop/" # or whatever folder you want
+ 202434 [doug@mc au h] In general, you need to read in the file (usually line by line) and
  202455 [dblack@wo bl] In this case that's true, but in general, ! means a "dangerous" method
  202457 [curi@cu i. s] What are some examples of method names with ! used to indicate some
  202459 [ mfp@ac .o g] Kernel#exit!

process xml in a page
202426 [walkerhunter] I would like to process the xml in the url below, but I am unsure how.
202430 [james.britt@] Use open-uri to fetch the XML, then load it into a REXML::Document object.
202589 [walkerhunter] Thank you, James.  I got a step further, but still need help.
202591 [james.britt@] require 'open-uri'
202595 [walkerhunter] I get the error below after a successful XML output to the debug window.
202598 [walkerhunter] A guy in the comments on the page below had the same problem.  Someone

Re: in place file editing and ! meaning
202429 [xhanin@ya oo] OK, thanks for the information and the pronounciation tip.
+ 202431 [curi@cu i. s] do you want something like this?
+ 202435 [logancapaldo] To do in place editing, basically you just do it. The problem is
| 202445 [xhanin@ya oo] Many thanks all of you! What an incredibly active community ruby has,
+ 202437 [m_goldberg@a] How big is huge? Nowadays, I think the "read all, manipulate, write

How to learn ruby language?
202433 [roopeman@gm ] How to learn ruby language? where i can find some simple code to learn?
+ 202436 [foamdino@gm ] Try Learn to Program by Chris Pine[1], also take a look at _why's
+ 202438 [james@gr yp ] Ruby Quizzes come in all difficulty levels.  Here are some links to
| 202469 [studlee2@gm ] I liked the Pragmatic Programmers Ruby Guide - Pickaxe.  You can find
+ 202482 [jmg3000@gm i] The home-base for Ruby docs is Ruby-Doc: http://www.ruby-doc.org/.
+ 202552 [gene.tani@gm] Ruby for Rails is a good accelerated tutorial

Uh oh. In a corner. Need help.
202439 [Eric.Armstro] My rakefile needs to abort when an html
+ 202441 [gwtmp01@ma .] tidy ... > file 2> errlog
+ 202453 [alex@bl ck e] - Use open3, which gives you access to stderr.
  202575 [Eric.Armstro] Thanks, Alex. And you, too, "gwtmp01".

wsdl2ruby.rb problem on Windows
202442 [jamesvtoomey] An earlier post mentioned that whenever he runs wsdl2ruby.rb, "even
+ 202443 [nakahiro@sa ] You need to obtain wsdl2ruby.rb command line program from
+ 202460 [anne@wj .h r] on tiger mac, I ran the program from the soap4r bin directory of the
+ 202494 [jamesvtoomey] I couldn't find a Windows installation, but I was able to unzip this

[ANN] RHDL 0.5.0
202446 [ptkwt@ar cn ] What is it?
202473 [schapht@gm i] As someone who had to do a lot of VHDL in school, I applaud you for

ri, rdoc, gems, and rails
202450 [listrecv@gm ] One great new feature of rubygems 0.9 is that we now have ri for
202451 [drbrain@se m] You need to use gemri (comes with rubygems) if you are on Ruby 1.8.4
+ 202452 [listrecv@gm ] Abbrev, ActionWebService, Archive, Archive::Tar, ArgumentError,
| 202509 [drbrain@se m] ActionWebService is part of Rails.
+ 202492 [listrecv@gm ] I'm finding that I get gemdocs even with ri, but not for all packages.
  202511 [drbrain@se m] You will need to generate the ri for packages built before 0.9.0.
  202561 [listrecv@gm ] Thank you, Eric, for the great info.  I followed your directions and

Strange behaviour - Instantiating an object and giving it a block to be used as a method body
202465 [chrisjroos@g] In both examples below, the expected results are observed.  However,in the second example (class Bar) warnings are generated.  This isRuby 1.8.2 on Mac Os x 10.4.7.
202466 [chrisjroos@g] Ok, so it seems to be with scoping and my choice of the proc variable name.
+ 202474 [m_goldberg@a] The following seem a more straight-forward approach to what I think
| 202475 [decoux@mo lo] no, not really
| 202477 [m_goldberg@a] Thanks for pointing this out. I did indeed miss an important point.
+ 202480 [m_goldberg@a] I now propose this as a more straight-forward solution to the problem.
  202890 [chrisjroos@g] Thanks for the response guys.  As it turns out I didn't need it anyway...

Problems installing rubyzip gem on Debian...can someone help?
202467 [subimage@gm ] I haven't had issues with it before, but now I am...I go to install
+ 202497 [transfire@gm] col 31 is at the end of that line. What's that blank space there?
+ 202501 [dharple@ge e] Maybe you ran into this problem: http://onestepback.org/index.cgi/
| 202550 [subimage@gm ] Thanks I tried that, but it's still giving me the same damn error.
| 203912 [danbernier@g] subimage, any luck with this?  I'm getting the same thing, on a WinXP
+ 203913 [yakumo9275@g] i ran into this with ruby 1.8.2 but 1.8.4 worked fine installing it!
  + 203918 [stonelists@g] ...
  + 204211 [subimage@gm ] I never did get it working, and I'm kind of locked into 1.8.2 as I'm
  | + 204260 [stonelists@g] ...
  | + 204282 [jmg3000@gm i] Well, you might just install 1.8.4 into someplace like
  + 204886 [ts_news1@so ] Odd. I just tried installing the gem myself (I'm the author) on an older
    204889 [ts_news1@so ] and rubyforge so you should be able to get it with gem install rubyzip.

Web bassed file manager using drb(optionally) and rails
202472 [mcgoverp@la ] Usor stands for User Space On Rails, and is a project i've been working
+ 202502 [mcgoverp@la ] sorry typo
+ 202621 [botp@de mo t] # Subject: Web bassed file manager using drb(optionally) and rails
| 203607 [mcgoverp@la ] It Does just probably a bad one USOR short for User Space on Rails.
+ 203625 [jgbailey@gm ] ...
  203733 [mcgoverp@la ] The files should be getting selected with a slightly darker gray, the

newbie demo 2 sceptics in my company....
202478 [bitdoger2@ya] ...i have 1.8.2...and i want to do a http hello world program in a web
202479 [james@gr yp ] Your message doesn't contain a question.  ;)
202485 [bitdoger2@ya] oka...how does one do the above two hello world in ruby... and does
+ 202503 [greg.kujawa@] The 1.8.2 Ruby One-Click Installer should come with webrick so you can
+ 202504 [studlee2@gm ] Check out Instant Rails:  http://rubyforge.org/projects/instantrails/
+ 202506 [james@gr yp ] Oh good, questions...  ;)
+ 202507 [schapht@gm i] I don't know your situation, but you might want to take a look at
+ 202620 [botp@de mo t] # oka...how does one do the above two hello world in ruby... and does

Systir - System Testing In Ruby
202483 [aidy.rutter@] Systir has been bandied about everywhere

program works in irb, but not in script...
202484 [john.fink@gm] ...
202486 [decoux@mo lo] Try it with
202488 [john.fink@gm] ...

Difference between include and require for modules?
202491 [jatinder.sau] ...
202516 [jorgen@de so] Require is purely used to 'embed' files in other files.

One-Click Installer: MinGW? or VC2005?
202498 [ml.chibbs@gm] ...
+ 202510 [ara.t.howard] not unable - but with a significant amount of work.
| 202512 [ml.chibbs@gm] ...
| + 202515 [ara.t.howard] right.  the question is whether it's reasonable and/or healthly for the ruby
| | + 202517 [greg.kujawa@] Good points. I ran into similar things trying to build LDAP and Qt in
| | + 203110 [halostatue@g] It can't. It uses an older Win32 API and still doesn't use the most
| |   + 203116 [ara.t.howard] can you show some numbers?
| |   + 203230 [strobel@se u] rd=20
| |     203235 [phurley@gm i] I have written a fair number of C extensions and for me it comes down
| |     203251 [halostatue@g] They may. I don't know. What I *can* say is that before I went on
| |     + 203255 [srinivas.j@s] I have recently started looking at the possibility of converting one of
| |     | 203294 [halostatue@g] Probably not. We don't want to require a P-language to compile Ruby extensions.
| |     + 203287 [ml.chibbs@gm] ...
| |     | 203324 [znmeb@ce ma ] Is there a "MinGW team?" <ducking>
| |     | 203362 [ml.chibbs@gm] ...
| |     + 203629 [dsisnero@gm ] ...
| + 203107 [halostatue@g] I'm on vacation, so of necessity my post and details will be limited.
+ 202524 [garbagecat10] ...
| 202529 [ara.t.howard] exactly - this issue is orthogonal.
| 202534 [garbagecat10] world
| + 202539 [tanner.burso] ...
| | + 202542 [ml.chibbs@gm] ...
| | | 202573 [garbagecat10] ...
| | | 202579 [ara.t.howard] and they have a stellar record at doing that... ;-)
| | + 203112 [halostatue@g] Not quite. MinGW won't give you 64-bit Windows support. At all.
| |   + 203128 [ara.t.howard] setup a binary gsl build we can download and test using ms toolchain only - no
| |   | 203138 [halostatue@g] I won't take your challenge for several reasons. I will forward it on
| |   | 203148 [ara.t.howard] fair enough and  thanks for doing it (when you do).
| |   + 203142 [sean.ohalpin] Nor will Visual C++ 2005 Express Edition - it's 32-bit only.
| + 202545 [ mfp@ac .o g] I believe that it is not entirely orthogonal. My gut feeling is that MinGW
|   202566 [SimonKroeger] Actually i was about to say something like mingw is only easier if you already
|   202580 [lyle.johnson] Seeing as I'm still a few steps behind you, could you comment on what
|   202582 [ara.t.howard] that's odd - i installed and compiled straight away... i'm at an airport now
|   + 202601 [ml.chibbs@gm] ...
|   + 202742 [lyle.johnson] *Please* do post how you got this to work when you are back.
|     + 202752 [SimonKroeger] $ diff ruby-1.8.4/win32/win32.h.orig ruby-1.8.4/win32/win32.h
|     | 202766 [lyle.johnson] It does! Thanks for the patches, Simon. Based on Sean's response I'm
|     + 202759 [sean.ohalpin] I installed MinGW Current (MinGW-5.0.3) first, then
|       202765 [lyle.johnson] Thanks, Sean! I will add this to my list of experiments to try. I'm
+ 202537 [billk@ct .c ] ruby extconf.rb
| + 202618 [TimHunter@nc] I'm sure Kaspar feels your pain :-)
| + 203111 [halostatue@g] Then this is a bug with that extension. Anyone who assumes GCC only on
|   + 203121 [ara.t.howard] why is that?  gcc is, far and above, the most platform indepedant compiler in
|   + 203141 [tanner.burso] ...
|     + 203164 [ara.t.howard] bingo.
|     + 203182 [mailinglists] How long until we have a maintainer dispute in the MinGW team? If this
|       + 203237 [greg.kujawa@] I agree with this assertion. In my world I prefer to use Ruby for most
|       | 203239 [znmeb@ce ma ] Hmmm ... now it's starting to make sense. There's ActiveState Python,
|       | 203252 [halostatue@g] Not enough market as of yet. You'd also be surprised what ActiveState
|       + 203511 [nobu@ru y- a] Patches are always welcome. :)
+ 202541 [ mfp@ac .o g] Given that the current situation can be to a large extent attributed to the
| + 202722 [vjoel@pa h. ] A small addition to Mauricio's point: if a compiler is distributed with
| | + 202739 [ml.chibbs@gm] ...
| | | 203118 [halostatue@g] I do not believe it offers sufficient benefit to consider it.
| | + 202849 [botp@de mo t] # > * availability: MinGW will not disappear the way VC6 did
| + 202741 [sean.ohalpin] +1 for this idea - a one-click binary installer and a one-click
|   202779 [SimonKroeger] I would *love* a one click installer that would include a
|   + 202784 [ml.chibbs@gm] ...
|   | + 202789 [SimonKroeger] I'm just curious, why would you distribute binaries if you have to provide
|   | | + 202796 [tanner.burso] ...
|   | | + 202807 [sean.ohalpin] I was suggesting two installers - one for those who just want an easy
|   | |   202810 [ml.chibbs@gm] ...
|   | |   + 202814 [sean.ohalpin] Indeed! :)
|   | |   | 202841 [ml.chibbs@gm] ...
|   | |   | + 202842 [TimHunter@nc] RMagick votes for MinGW.
|   | |   | + 202915 [devlists-rub] +1 for MinGW.
|   | |   |   + 202924 [Nuralanur@ao] ...
|   | |   |   | 203037 [znmeb@ce ma ] Could someone remind me what it was that *can't* be built using MinGW?
|   | |   |   | + 203051 [eule@sp ce c] I'll have a shot at that ;)
|   | |   |   | + 203053 [scoopr@ik .f] My only concern is the ability to interface with other binary-only
|   | |   |   + 202980 [buppcpp@ya o] -1 for MinGW
|   | |   |     + 203001 [alex@bl ck e] Not to throw stones or anything, but are these positions backed by a
|   | |   |     | 203212 [devlists-rub] I recently started a new job in a Windows based lab (having been in Mac
|   | |   |     + 203063 [mailinglists] Some here
|   | |   |       + 203075 [yakumo9275@g] 10% is a LOT! I'd like to see these numbers that proove 10%.
|   | |   |       | + 203077 [phurley@gm i] On the issue of licensing, can we distribute MSCVRT with an
|   | |   |       | | + 203078 [ml.chibbs@gm] ...
|   | |   |       | | | 203504 [ml.chibbs@gm] ...
|   | |   |       | | + 203126 [halostatue@g] IIRC, no. However, Microsoft's licence does allow the distribution of
|   | |   |       | + 203079 [alex@bl ck e] It wouldn't surprise me, but I'd still like to see numbers.
|   | |   |       | + 203083 [simon.kroege] I know this does not say much, but without fiddling with optimizer
|   | |   |       | | 203108 [mailinglists] Maybe your numbers are correct. But you should use a ruby compiled
|   | |   |       | + 203085 [mailinglists] I measured this with my machine. I only did a -O3 with gcc so maybe i
|   | |   |       | | 203104 [guido@so ne ] Umm. This is not really a sensible argument. What does out of the box
|   | |   |       | + 203125 [halostatue@g] Your rate would be wrong, demonstrably. MSVC is not only the more
|   | |   |       |   203131 [ara.t.howard] but building extension is a language feature - if what you say is true then
|   | |   |       |   203135 [halostatue@g] No, Ara, it's not a language feature. It's something that *can* be
|   | |   |       |   + 203147 [ara.t.howard] [OT]
|   | |   |       |   + 203177 [chneukirchen] It's getting time the Ruby "compiler"/runtime-environment is rewritten
|   | |   |       |     203186 [mailinglists] Let us wait 20 years with this until we have the ultra fast quantum
|   | |   |       |     203257 [chneukirchen] If they can do it in Smalltalk and Lisp, it's possible in Ruby too.
|   | |   |       |     203269 [mailinglists] Lisp doesn't count because "data = program syntax" and the builtin
|   | |   |       |     203316 [chneukirchen] There are very fast and efficient implementations of both, I don't see
|   | |   |       + 203094 [ara.t.howard] didn't someone further up this thread show that the mingw compiler was better?
|   | |   |       | 203129 [halostatue@g] I won't use gcc on any platform where it isn't the native compiler.
|   | |   |       | 203136 [ara.t.howard] ok austin, i believe your experience.  however you, of all people, should be
|   | |   |       + 203175 [jwkenne@at g] Ummm....  Installed, Microsoft's is 1,650MB on my system. MSYS is 206MB.
|   | |   + 202815 [ara.t.howard] i love this idea.
|   | |   + 203084 [simon.kroege] I agree, this might be better.
|   | + 202797 [kevwil@gm il] How about a "extension compiler toolchain" binary gem?
|   + 203120 [halostatue@g] Big. Big enough to not be worth considering, IMO. (~80Mb is the
+ 202592 [sean.ohalpin] Having used MS C since before it became Visual I can certainly attest
| + 202638 [buppcpp@ya o] MS needs to evolve also, do you expect MS to continue to enhance MS-DOS.
| | + 202643 [dbalmain.ml@] Sean's making plenty of sense. His K&R code does still work. It's the
| | | 202666 [leslieviljoe] Mine too. MinGW + MSYS is great, just what I have been looking for,
| | + 203045 [billk@ct .c ] Since you asked... No.  <grin>  But MS-DOS is frightfully in need of enhancement,
| + 202687 [yakumo9275@g] in some cases, its called progress.
|   202802 [ara.t.howard] i've posted this as long as a year ago - but here's a simple patch to the
+ 202630 [znmeb@ce ma ] Is cross-compiling/linking with GCC on a GNU platform a viable third
| + 202632 [znmeb@ce ma ] By the way, the people who build R for Windows have a very extensive
| + 203113 [halostatue@g] No. I would stop using the One-Click Ruby Installer if that were the
+ 202712 [kevwil@gm il] What we're really talking about is building all kinds of unix-derived
  202714 [ml.chibbs@gm] ...
threads.html
top