182324-358441

182100-186126 subjects 182526-184967

Net::HTTP working on Windows, but not Unix
182324 [james@gr yp ] We have an odd problem at work today.
182335 [james@gr yp ] Switching the code to the following seems to work everywhere, as long
182360 [james@gr yp ] Sorry to keep responding to myself but we have now realized that that
182373 [phasis68@ho ] p http.post(uri.path, "UMkey=OUR_KEY_CODE_HERE",{'Content-Type' =>
182376 [james@gr yp ] Awesome.  Thank you so much.

Training
182329 [lists@so th ] I'm looking for someone that is a very good presenter/teacher and is
358441 [martin@an le] i can if u wish

gsub wrapper
182346 [HQuiroz@en .] Help!
+ 182348 [none@no e. e] If you have '"#{$1}->#{$2}<-#{$3}"', you can eval
+ 182349 [logancapaldo] str = "#{$1}->#{$2}<-#{$3}"
+ 182369 [interfecus@g] $1 is a global variable which is set to the value matched by the
| 182375 [HQuiroz@en .] First, thanks to everyone for your input.
+ 182393 [bob.news@gm ] In your case you don't even need groups, because you can nicely anchor the

gsub wrapper re-submitted
182347 [HQuiroz@en .] Help!

refactor sentencelength solution
182351 [alex.combas@] I learned a few things from doing this simple exercise and I wasjust wondering if anyone would be willing to help me refactor thecode as a further learning exercise.
182469 [none@no e. e] This may be a bit buggy, but it takes advantage of the core.

Static v. dynamic typing
182353 [cdunn2001@gm] ...
182401 [riko@de pa m] Lisp is dynamic typed, but there are Lisp compilers with C-like

[ANN] Ruby SNMP 1.0.0 Released
182358 [davehal42@gm] Release 1.0.0 of Ruby SNMP is now available.  (Whoo hoo!)  The feature

drb load limit
182361 [jaydonnell@g] I am trying to get a simple drb server/client to work, but I am getting
182384 [vjoel@pa h. ] Use a number, rather than a string, here^^^^^
182836 [jaydonnell@g] now it just hangs there and does nothing :(
182843 [jaydonnell@g] ok, for some reason it doesn't work if I run the server on my laptop,

Example of how to rb_class_new_instance(... rb_cBignum)?
182362 [no.spam@pl a] I'm building a C extension and have a "long long"
+ 182363 [logancapaldo] Basing this purely on a random guess (based on reasonable assumptions
| 182367 [no.spam@pl a] Reasonable guess I suppose, except that doesn't seem to
| 182370 [logancapaldo] Hopefully by now you've seen Daniel's more  accurate response. (LL2NUM
+ 182366 [dharple@ge e] VALUE foo = LL2NUM(my_long);
  182385 [no.spam@pl a] Thanks both. I have my extension working.

Nuby - why does my #inspect misbehave?
182368 [cremes.devli] I'm working through a few exercises to teach myself Ruby. One of them
+ 182371 [logancapaldo] As a general rule #inspect is not supposed to print anything it is
+ 182372 [dblack@wo bl] Don't inherit from Object -- it happens automatically :-)
  182374 [james_b@ne r] James Britt
  182377 [dblack@wo bl] David
  + 182378 [   no@no co ] O-('_' Q)
  + 182383 [james_b@ne r] POGSFJ

[quesion] require just in a context?
182380 [capitain@gm ] Can I make some libraray just work in a context ?

Re: Can Anyone Recommend A Good DSL Book?
182389 [res0i3sf@ve ] Check out Code Generation in Action. It's a good book on code generation that uses Ruby/erb/REXML/etc. Interestingly, it was the book that got me off of my arse and looking at Ruby........

[ANN] Mongrel 0.3.7.1 -- 1000 Paper Cuts Release
182390 [zedshaw@ze s] This release of Mongrel is coming at you with lots of very little but

tryruby
182396 [botp@de mo t] i tried http://tryruby.hobix.com and it is really beautifully done tutorial.

Running JRuby
182398 [pp@no uc em ] Im trying to set up java and jruby on Windows, great work with the
182434 [headius@he d] JRuby does not provide its own set of .rb libraries to run off; it
182437 [headius@he d] Sorry, that's sf.net/projects/jruby, and I should probably be plugging

IDE suggestions
182399 [hscbaj@ho ma] Im new (this week) to ruby and would like to know what IDE's people are
+ 182400 [kevin.jackso] RadRails is based on Eclipse RCP (Rich Client Platform) - it's a Java
| 182402 [riko@de pa m] Probably more cultural than generational. My fellows programmer and I have
| 182409 [ml.chibbs@gm] I use FreeRIDE also, which has the advantage of being both open source
| 182414 [dev.random@g] I'm using SCITE under Linux, it's not an IDE, but it has nice syntaxhighlighting and you can configure it very well. I think it's evenpossible to get code completion to work under SCITE, but I haven't yetfigured out how. And it works in windows as well...
+ 182424 [gk@cu co y. ] Jedit with ruby plugins
| + 182428 [gk@cu co y. ] has autocompletition, and build in doku,
| + 182513 [skurapat@uc ] Same here :-)
| + 182517 [sigzero@gm i] I just started using jEdit + the Project Viewer plugin (and a few
| + 182612 [Sky.Yin@gm i] This plugin is great, but one thing that bothers me when I'm typing is
| | 185051 [noone@no he ] Plugins -> Plugin Options -> SideKick / General -> Show Completion popups
| + 182656 [esad.spammen] Is there any interested in contributing more stuff to ruby plugin: irb,
|   182926 [rob.02004@gm] Esad and others, if you have specific features that you'd like to work
+ 182516 [heimdall@un ] Over the last time I used RadRails [1] and for normal Ruby coding I used
+ 182544 [ffsnoopy@gm ] I do my development in linux, so I use SciTE (editor) + Mr. Guid
+ 182594 [gene.tani@gm] Sorta OT but good discussion: folks at Artima talk about how they use
+ 182949 [jesusrubsyou] I use Diakonos.  An editor, not an IDE (on purpose).  It runs anywhere
+ 185047 [jussij@ze se] It does Ruby syntax highlighting, code folding, class browsing,

Antw: Re: IDE suggestions
182404 [Fleck@sc le ] I' m using FreeRIDE. My goal was to get an IDE for free that' s portable. I wanted to use it either on linux and windows. I like it, when an my environment for developing software looks and feels the same regardless on which platform. I don' t want to use millions of editors or IDEs. I thin vim is a good solution too, but I needed a few weeks to get really into it, I mean really into it.

string slice elegant way
182405 [mage@ma e. u] a = 'hello there'
+ 182406 [Nuralanur@ao] ...
+ 182408 [p.capriotti@] a[2..-1]
| + 182419 [lopexx@au og] And consider that it doesnt require Ruby to have any special syntax for
| + 182425 [mage@ma e. u] Thank you, I`ve only tried a[2,-1] before the letter. My fault.
|   182429 [mage@ma e. u] By the way, ranges ending with lesser number than beginning seems nasty
|   182433 [dblack@wo bl] They're not good for that either; [2,-1] isn't a range object :-)
|   182465 [logancapaldo] ...
|   182472 [dblack@wo bl] Right -- I flipped it around.  The backward ranges do indeed serve
|   182511 [botp@de mo t] Mage [mailto:mage@mage.hu]
|   182527 [pertl@gm .o ] a = "hello there"
+ 182411 [pbattley@gm ] a[/.{2}(.*)/u,1]
+ 182427 [gk@cu co y. ] p "hello there".reverse.chop.chop.reverse

Array comparison returning nil
182407 [julian.gall@] original_item_ids.sort <=> new_item_ids.sort
+ 182412 [decoux@mo lo] moulon% ruby -e 'p ["a" , 2] <=> [3, 4]'
| 182415 [julian.gall@] But http://www.rubycentral.com/ref/ref_c_array.html#_lt_eq_gt
| 182423 [julian.gall@] It seems <=> is not much use if it can't be relied on to do what it
| 182431 [dblack@wo bl] Can you show an example of two arrays with the same elements that give
| 182432 [Nuralanur@ao] ...
+ 182413 [bob.news@gm ] => #<Object:0x4a7c118>
+ 182444 [steve@wa ts ] It works for me...
| 182451 [julian.gall@] Not really possible. I am writing a Rails application with a sortable
| + 182466 [logancapaldo] Based on join working this is my theory. One  of the two arrays have
| | 182473 [dblack@wo bl] => "1-2--3"
| | 182476 [logancapaldo] ...
| | 182481 [dblack@wo bl] It's not a display thing; it's a <=> or == thing.  If the two arrays
| | 182483 [logancapaldo] Good point.
| + 182499 [w_a_x_man@ya] new_item_ids = params[:itemlist]
|   182578 [julian.gall@] Thanks very much to Logan, David and William. David hit on the answer by
+ 182448 [logancapaldo] <=> will return nil when a comparision makes no sense

[QUIZ] The Golden Fibonacci Ratio (#69)
182410 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 182416 [dev.random@g] So the task is visualisation of the Fibonacci series ?
| + 182420 [rretzbach@go] the description is really exciting :>
| | 182422 [james@gr yp ] Basically the goal is to visualize the sequence.  Perhaps you want to
| | 182449 [lukfugl@gm i] Sample output for my solution, this may be a little clearer than
| | 182458 [james@gr yp ] It might be good to note that multiple layouts are possible.  For
| | 182467 [lukfugl@gm i] Good point. I actually like that one better, and have altered my code
| | 182525 [brian.matter] +---------------+---------+
| + 182421 [james@gr yp ] Correct.  In block format.
+ 182850 [harley3@pe l] Here are my two versions. The first is my first pass. The second is a
+ 182965 [adam.shelly@] I used this quiz as an excuses to get Ncurses-ruby running on my
  183130 [gdprasad@gm ] Under linux, I have installed ncurses-ruby-1.0, just now and tried
  183168 [emeza@cd .g ] Use  '#tset -s' to reset the xterminal.
  183184 [adam.shelly@] I forgot to mention that it looks best if you can set your terminal to

Seeking tech reviewers for the O'Reilly Ruby Cookbook
182417 [leonard.rich] With a huge amount of help from the Ruby community at large, Lucas
182464 [rhkramer@gm ] I'd like to try to help out--I'm pretty new to Ruby (started trying to learn

Ruby on the mobile?
182438 [Daniel.Berge] I found this post interesting.  Is Ruby ignoring the mobile market?  Do
+ 182439 [headius@he d] A number of people have approached the JRuby project, asking if there
+ 182440 [matz@ru y- a] Hmm, Ruby is not originally designed for mobile devices, since it has
+ 182441 [greg.kujawa@] Good point. Personally as a language I like Ruby better than Python and
| + 182471 [ptkwt@ar cn ] So why does Python have more working implementations on small device platforms
| | 182515 [matz@ru y- a] Probably they have separated POSIX dependent functions into modules.
| | 182537 [matti.georgi] The idea of a stripped down ruby, which just depends on ANSI-C,
| | 182540 [matz@ru y- a] Ruby's Parser depends on File and IO, so that it's bit hard to
| | 182549 [matti.georgi] This surprises me, as I cannot find anything related in parse.y or did
| | 182552 [decoux@mo lo] NODE*
| | + 182558 [logancapaldo] Wow, that's kind of (if I may be permitted to use the term) badass. I
| | + 182561 [matti.georgi] Thanks Guy!
| + 182550 [kero@ch ll .] Then port Ruby.
|   182586 [greg.kujawa@] True. I honestly lack the skill set to get that far under the hood I
+ 182443 [james_b@ne r] That's too funny.  Where do people come up with these ideas?  The
+ 182445 [bob.news@gm ] I think a reworked runtime (maybe JVM?) which supports native threads is
+ 182463 [fred.grott@g] While in J2ME MIDP we cannto do ruby as jruby on the J2EM JVMs..
  182468 [headius@he d] Oh yeah, I had forgotten PersonalJava. Actually almost all my with

ruby: no such file to load -- ubygems (LoadError)
182447 [coachhilton@] Greetings,
182453 [caleb@ae -t ] It sounds like your RUBYOPT environment variable is set to "-rubygems", to
182455 [coachhilton@] That did the trick!  Thanks Caleb!

Python for Ruby programmers
182454 [joevandyk@gm] I need to write a GUI for a vanilla RHEL3 box (with no extra software
182497 [joevandyk@gm] What's the Ruby equivalent of this?
+ 182498 [Daniel.Berge] -10.upto(10){ |n| puts "#{n} #{n**2}" }
+ 182503 [logancapaldo] Well after struggling with mapping the results of the code to the

Re: require just in a context?
182456 [none@no e. e] Well, anytime you call #require, the effect will be global.
182512 [vjoel@pa h. ] Nope. If you Kernel#load or Module#module_eval a file which requires

Taking screen shots
182457 [BPaatsch@ac ] ...
+ 182459 [Daniel.Berge] It would be trivial to port.  Hey, Shanko, are you listening? ;)
| 182461 [shanko_date@] ...
+ 182492 [ml.chibbs@gm] Its freeware, very flexible and easy to use.

Advice for general-purpose programming with Ruby
182470 [rtilley@vt e] Hey guys,
+ 182474 [james@gr yp ] James Edward Gray II
+ 182475 [vjoel@pa h. ] The pickaxe book (Thomas and Hunt) is great. The first ed. comes with
| 182478 [rtilley@vt e] Thank you both. I've reserved a copy at Barnes & Noble. Looking forward
+ 182488 [ghalsey@ya o] i liked 'the ruby way' by hal fulton - it also has an appendix for
  182524 [alex.combas@] ...

lib for loading jpeg images
182477 [sp01@as ro 0] I am searching a lib for loading images (jpeg and if possible png and
182482 [ara.t.howard] google RMagick.

closure & local_variables
182484 [lopexx@au og] l=lambda{p local_variables;p a}
+ 182485 [logancapaldo] l is closing over main, main has a local_variables method, that is
+ 182490 [none@no e. e] Well, #local_variables is a method call so it resolves

windows and http servers on ruby
182489 [dont@se dm s] ruby code. It works fine on Linux, but on Windows it doesn't work properly
182491 [Daniel.Berge] I don't know if this is your only issue, but there's no "/" (root) on Windows.
182502 [donot@sp m. ] thought it was the issue but it wasn't, all i got was pc speaker

Best tools for compiling Ruby (Windows)?
182493 [glenn.ruby@g] ...
+ 182523 [alex.combas@] ...
+ 182529 [ml.chibbs@gm] Don't use VC++ 2003. Austin Zeigler, and experienced Rubyist, has been
| + 182539 [glenn.ruby@g] ...
| + 182580 [usrlocalinfo] I think there is some confusion regarding VC++ versions and hope this
| | + 182581 [usrlocalinfo] I forgot to mention that I was able to compile Ruby 1.8.2
| | | 182584 [glenn.ruby@g] ...
| | + 182624 [ml.chibbs@gm] My mistake -- Wilson  is correct, it VC++ 2005 that you should avoid.
| + 187064 [halostatue@g] Actually, VC++ 8, not VC++ 2003. VS.NET 2003 is VC++ 7.1.
+ 182570 [wilsonb@gm i] VC++ 2003 works fine, it's 2005 that's a big change, and difficult to
+ 184736 [eule@sp ce c] I won't say mine's best, however all RMagick binary releases are compiled
  + 186423 [pete@no pa .] I compiled ruby (latest stable snapshot) fine on Windows2000.
  | 186424 [wilsonb@gm i] Check your "RUBYOPT" environment variable, and clear it out if it has
  | 186438 [pete@no pa .] I dont have an enviroment var called RUBYOPT, only the usual PATH and
  | 186443 [pete@no pa .] Even so, doing RUBYOPT= on the command line cured the problem.
  + 187065 [halostatue@g] Note that mingw/msys builds are NOT compatible with VC++2003 orVC++2005 builds because of a different runtime environment. At aminimum, there is a mismatch between where errno is defined (somehow).
    187088 [vjoel@pa h. ] I've done a little work with an extension compiled with VC++2003 and
    187090 [ml.chibbs@gm] You're lucky.
    187091 [vjoel@pa h. ] Hm, any plans to migrate the One-Click Installer to VC++2003?
    187098 [halostatue@g] The One-Click Installer for 1.8.2 was on VC++2003. However, becausethe most common free compiler (mingw/msys) was not compatible with itand any number of other reasons, 1.8.4 is now based on the Ruby 1.8.4build built in Japan (I'm sorry; my mind is blanking on the name ofthe site and the person behind it) which is built with VC6 -- and isNO LONGER AVAILABLE to users.
    187111 [ml.chibbs@gm] Yeah, Austin got it right.The official Japanese build of ruby for
    187145 [ml.chibbs@gm] I need to start proof reading my responses before I hit "Send" -- I'm

rubygems bug?
182494 [logancapaldo] Help! Today I was trying to use rubygems and all of a sudden I
182737 [jim@we ri hh] Is it only the update command that is having problems?  Could you try

Sending mail when exception occured
182495 [michal-lomni] I want to send e-mail when an exception will occur. What is important
182505 [james_b@ne r] Does it work?  Does it allow you to go back to solving more interesting
182507 [michal-lomni] Yes, it works, but I`m not sure if it works in all cases.
182616 [blargity@gm ] begin
182619 [michal-lomni] Of course it`s the simplest way, but I`ll have to invoke that in every

Non-blocking KitchenSink
182496 [aaronbecker1] I am a recent convert and I am very impressed by the productivity gains
182500 [logancapaldo] ...
+ 182508 [aaronbecker1] Thanks for the reply!
| 182731 [bob.news@gm ] <disclaimer>Never done this myself with this setup.</disclaimer>  Since
+ 182847 [drbrain@se m] Not entirely true.  Calls to C code other than socket operations
  182937 [logancapaldo] ...
  182941 [mental@ry ia] Note that your C code needs to call the rb_* versions of select and

Write up on hazards of instance_eval?
182509 [itsme213@ho ] Is there any good write up on the hazards of instance_eval? Or do you happen
+ 182520 [dblack@wo bl] I don't know whether there are ten distinct hazards, but a couple of
+ 182522 [ara.t.howard] one thing you have to watch out for it getting alot done in a hurrry - if

Pandora 0.4.0 Public Release
182510 [julian.kamil] I am happy to announce that Pandora 0.4.0 has been made available to

ANN: Ruby metablog for Korean rubyists
182518 [minkoo.seo@g] As of today, I proudly announce rubyist.or.kr, a meta blog for Korean
182535 [daesan@gm il] Thanks for the announcement, I will drop by soon!
182536 [minkoo.seo@g] Thank you for your interest in rubyist.or.kr.
182541 [pat.eyler@gm] It would be easy to create one at groups.google.com.
182546 [daesan@gm il] ...
182653 [nohmad@gm il] There's Korean Ruby User Group a.k.a RubyKR(rubykr.org)There's no Korean rubyist mailing list AFAIK.But there's RubyKR Forum. http://forum.rubykr.org

Mr. Guid 0.2.5
182519 [ffsnoopy@gm ] Mr. Guid 0.2.5 includes an all new object view which lists instance
threads.html
top