189039-210273 subjects 189441-190050

Is anyone doing serious dev using the one-click Ruby?
189258 [dr-groups@fa] I'm getting started with Rails on Windows and really like the
+ 189261 [halostatue@g] I develop exclusively (at least for right now) on Win32 with theone-click installer.
| + 189319 [zdennis@mk e] When I work remotely on my winlaptop i use the oneclick installer supplied version of Ruby. It is also installed on all of our
| + 189321 [dr-groups@fa] Thanks, Austin and Zach for setting me straight, and especially Curt
|   189338 [ml.chibbs@gm] I must not be doing a very good job of getting the message out... the
|   189346 [dr-groups@fa] OK, thanks, Curt. I'll give it a try.
+ 189277 [ml.chibbs@gm] A new version of the one-click installer is released whenever there is
+ 189376 [gregory.t.br] Every version of Ruby Reports is tested against the One Click installer.

ruby-ldap on Windows (built)
189263 [scharfie@gm ] I have finally managed to build the ruby-ldap library for the Windows
+ 189265 [Daniel.Berge] Excellent work.
| 189278 [scharfie@gm ] I did have to modify the sslconn.c source slightly, in fact.  There are
+ 189271 [halostatue@g] Cool. Would you be interested in alpha-testing a different solutionand providing advice toward the development in it?
+ 189279 [wilsonb@gm i] I would LOVE to know how you managed this. I struck out hard on
| 189280 [scharfie@gm ] Well, the first step was to download the latest Platform SDK
| + 189281 [Daniel.Berge] Ah, excellent.  I already submitted a bug report about the build errors.
| + 189285 [ian@ca ib n.] Can you possibly provide me with the good wldap32.def file from the SDK?
| | 189328 [ian@ca ib n.] Current Ruby/LDAP CVS has the changes, so I'm curious to know if the
| | 189633 [ian@ca ib n.] I worked with Chris Scharf to fix the issues on Windows and am pleased
| | + 189682 [botp@de mo t] # I worked with Chris Scharf to fix the issues on Windows and
| | | 189704 [scharfie@gm ] Posted via http://www.ruby-forum.com/.
| | + 191252 [lightsedge@h] The new version worked on Windows for me.  I updated my Platform SDK to
| |   201295 [jason@li em ] Just wondering how to build this.  Have never built a windows app from
| |   201303 [jason@li em ] I should probably add that I am running OpenLDAP and not Active
| |   201328 [jason@li em ] Just to post a solution to my problems:  a gem has been made available
| |   211235 [rcmn73@gm il] my goal is installing ruby with support for Mssql and LDAP on windows
| |   + 211238 [garbagecat10] Sorry for the offtopic, but you may find that the Net::LDAP library
| |   + 211240 [greg.kujawa@] As far as I can recall I was able to install the MSSQL support without
| |     211246 [rcmn73@gm il] i've seen net::ruby like i've seen so many duplicate project.Since the
| |     211251 [garbagecat10] it this evening. As far as ActiveLDAP is concerned, I've talked
| |     211274 [rcmn73@gm il] actually u're right about Net::LDAP i just check it and noticed it too.
| |     211314 [garbagecat10] Out of curiosity, what were the specific limitations you found with
| |     211322 [rcmn73@gm il] This is a very good new that Net::LDAP does not have this limitation.
| |     + 211326 [garbagecat10] no limit on the number of entries you can query from A/D. If your set
| |     + 211327 [garbagecat10] I forgot to mention: paged searches are automatic in Net::LDAP. You
| |       + 211333 [jro@co eg in] Does Net::LDAP have a way of dealing with this on v2 servers? or
| |       | 211336 [garbagecat10] That's two different questions. Net::LDAP only implements V3. Do you
| |       | 211339 [jro@co eg in] I don't have a V2 server; I was more concerned with the versions of
| |       | 211355 [garbagecat10] support paged queries. I know because I use one in production all day
| |       | 211363 [jro@co eg in] Excellent.. I'll have to start retrofitting some of my ruby/ldap
| |       + 211338 [rcmn73@gm il] This is great informations and specially great news.Thank you very much
| |         211342 [garbagecat10] If you try the library and have problems, please tell me, either here
| + 294425 [eduardodias@] I'm getting the following error when i try to install ruby-ldap-0.9.7 in
|   294440 [rcmn73@gm il] But who use Windows Vista ????
|   294441 [wujciol@gm i] ...
+ 310618 [wizard.reson] Someone has build ruby-ldap with openldap2 (--with-openldap2) for
| 310619 [wizard.reson] sorry!
+ 344318 [weijinxianfo] can't be accessed. can you help me?

visual web scraping with Ruby
189266 [ peter@rt sk] Does anybody have an idea about this stuff?
189269 [ilmari.heikk] at bottom:"""On 20:43, 21 January 2006, an anonymous user added a link toBox-A-Web[1]. No edit summary was given, but the contributor includedthe link description "Not an article on how to do it in Ruby, butrather a technology demonstrator for drag and drop web scraping usingRuby on Rails Framework"."""

Publishing to rubyforge - is there a command line tool that accompanies the rubyforge publisher rake contrib task
189286 [jeff.barczew] ...
189289 [halostatue@g] You can see what I do for PDF::Writer (and my other projects) in theRakefile there. I use metaproject.
189312 [jeff.barczew] ...
189329 [ara.t.howard] it installs a rubyforge script which can be used to automate rubyforge
189388 [halostatue@g] The main difference, as I recall, is that you have a lot of hardcodedvalues in your code. Metaproject may have those hardcoded values aswell, but they are well hidden from me, the user.

Very Strange Error(s)
189287 [hutch@re ur ] I've been encountering strange behaviour with Ruby recently. I'm
+ 189290 [fxn@ha hr f.] This is happening here as well sporadically, and I can't reproduce it
+ 189291 [leavengood@g] Are you absolutely sure that to_i isn't being called somewhere along
+ 189296 [binary42@gm ] I've been experiencing this same thing on Mac OS X. I haven't been
| 189298 [jake.mcarthu] I've not been having any of these problems myself. I've been running
+ 189299 [james@gr yp ] And if I understood the discussion (way over my head), it has been
| 189305 [binary42@gm ] Actually, from what I can tell the issue is separate (or possibly and
| 189307 [james@gr yp ] Oops, sorry.  My bad.
+ 189315 [hutch@re ur ] I found this <http://blog.segment7.net/articles/2006/04/07/chasing-
  189349 [fxn@ha hr f.] Excellent! So just to double-check, is it an issue that has been seen
  189365 [hutch@re ur ] It sure looks that way, but I don't know for sure. Someone thought
  189750 [hutch@re ur ] An update...

RI documentation for RubyGems
189288 [weyus@at .n ] 1) generated
+ 189293 [phil@ha el .] I think if you do an 'rdoc -R' in your gems directory it will create
| 189297 [weyus@at .n ] Phil,
| 189302 [phil@ha el .] On my system (Ubuntu) it's /usr/lib/ruby/gems/1.8/gems/
| 189322 [groups@gr nd] Doesn't that depend on the question? If Wes wants documentation for
+ 189310 [rossrt@ro co] If you don't care about the regular rdoc (for gem_server), this might
+ 189324 [jim@we ri hh] This won't help you immediately, but the next version of rubygems will

OT: Drifting off topic to debugger utility
189295 [phurley@gm i] I will vote in on the rarely use a debugger camp. The single exception

189303 [james@gr yp ] Today I was using an Array and a String to track some info in my unit
+ 189304 [vjoel@pa h. ] $ irb19
| 189308 [james@gr yp ] we not adding this to Ruby 1.8.x?
| 189314 [ruby@an hr p] class String
| 189316 [logancapaldo] ...
+ 189309 [jake.mcarthu] class String
+ 189352 [angus@qu va ] Better #empty!. IMHO.

[ANN] librend 0.5
189317 [ilmari.heikk] Librend is a real-time graphics library for Ruby. It provides ascenegraph canvas for drawing 3D, 2D and vector graphics with anevent-driven API.

189323 [tallison@ta ] Is there anything of a best practices on how to use your own modules?
+ 189350 [kiaroskuro@g] I have been wondering the same.  By looking at libraries out there, it
+ 189356 [shortcutter@] There is an env var, I believe it's RUBY_LIB.
| 189358 [zimba.tm@gm ] It is RUBYLIB
| 189362 [tallison@ta ] Thank you.  I found more information on it.
| 189369 [leavengood@g] I think a fairly common idiom in cases like this (one I have used
+ 189401 [halostatue@g] Will you ever load them without each other? If so, then split them. Ifnot, don't.

Nested scopes
189331 [john-rubytal] I just discovered a behavior of ruby that seems strange to me.
+ 189332 [dblack@wo bl] No; it should walk the method lookup path.  Inside Baz, self is Baz,
| 189345 [groups@gr nd] Me too.
+ 189333 [logancapaldo] ...
+ 189364 [shortcutter@] No. But there's a simple cure (that we might even suggest to go into
+ 189428 [pit@ca it in] Module.nesting[ 1 ].bar
  189433 [john-rubytal] Thanks, Module.nesting[-2] is quite close of what i need.

[ANN] open4-0.3.0
189335 [ara.t.howard] URIS

eclipse rubypeople plugin prereq to radrails RE: Newbie's Ruby IDE Editor Roundup, April 2006
189336 [sanjivendra@] BTW, I've been using Kumodo IDE for ruby for the past one month, and it

[ANN] TRUGhat 2006:1
189337 [halostatue@g] The Toronto Ruby User's Group (TRUG) is pleased to announce TRUGhat2006:1.

[ANN] apt-cgi-1.0
189344 [rubikitch@ru] == Abstract

Runtime Revolution
189347 [Russ@ps ex c] Has anyone tried using Ruby with Runtime's Revolution--

189353 [nwang.list@g] ...

interested in metaprogramming?
189354 [kiaroskuro@g] of meta'.  I have written only a draft intro and a simple example up
+ 189355 [ peter@rt sk] IMHO there definitely is.
+ 189359 [mark@sc tt s] I'm definitely interested in learning more about metaprogramming.
| 189361 [kiaroskuro@g] two people is already a crowd to me :-)
| 189366 [ruby@an hr p] } two people is already a crowd to me :-)
| + 189367 [meadori@gm i] Out of curiosity, why is this better?
| | 189368 [kiaroskuro@g] It's harder to get information on buggy eval-ed code than just plain code.
| + 189370 [dblack@wo bl] I don't think instance_eval and class_eval, in their block forms, have
| + 189381 [robert.dober] ...
|   + 189383 [kiaroskuro@g] what about using define_method from ruby1.8.4 ? it also accepts a
|   | 189386 [robert.dober] ...
|   | 189390 [kiaroskuro@g] quite chiari, but the answer is still scura :-)
|   + 189385 [decoux@mo lo] wait for 2.0
|     189393 [robert.dober] ...
|     189395 [decoux@mo lo] Well you have also this
|     189398 [robert.dober] ...
+ 189379 [brett.a.roge] I would definitely like to add my +1
+ 189382 [robert.dober] ...
  189384 [kiaroskuro@g] the synonym is just an example, but it still serve a purpose, though.

OFFTOPIC: console text viewer
189371 [dan@me as .h] I need TXT file viewer, like cat or type, that works with Win9x, XP and
+ 189372 [gregory.t.br] Just use cat via msys.
+ 189373 [ peter@rt sk] Or did you have some more specific idea on your mind?
+ 189374 [mental@gm il] cat, less, tail and more...
| 189435 [vjoel@pa h. ] vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
+ 189775 [ jupp@gm .d ] lynx

Organizing Ruby code
189378 [uwe@ku os h.] I have now completed two web projects using Ruby On Rails in The Real
+ 189403 [Stephen.L.Mo] Uwe,
+ 189408 [mgreenly@gm ] I'd recomend looking through the source of other well known projects,

[ANN] new article up at Linux Journal
189387 [pat.eyler@gm] If you've got feedback, requests for coverage, etc. please let me

Canada on Rails MP3s?
189392 [tom@in oe he] Does anyone have audio files of the Canada on Rails presentations?  It'd
189894 [alex.combas@] I do have one of the talks in mp3, and I just posted a link to it on my blogunder the title "audio => where will rails be riding next?" if you arestill interested.Sorry that the quality is not so great, but I still think this is worth hearing.
+ 189895 [alex.combas@] also, just in case anyone is concerned, I got permission from Davidbefore I posted
+ 190004 [tom@in oe he] Downloading it now, thank you!
  190115 [nshb@in mi .] DVD is in the works as well. Keep plugged on canadaonrails.com for more

understanding the behavior of Method#to_proc
189396 [eliben@gm il] Some things are unclear to me about Method#to_proc. I understand the
+ 189402 [decoux@mo lo] not like you think :-)
+ 189404 [matz@ru y- a] Which version of Ruby are you using?  My 1.8.4 gives me 22.
  189436 [eliben@gm il] You are right, I made a mistake. It prints 22 for me too.
  189499 [matz@ru y- a] Still I don't quite understand what you expect for a Proc not to be
  189564 [eliben@gm il] Matz,
  189566 [decoux@mo lo] Well, I've not understood but if you want to know why Method#to_proc exist
  189584 [eliben@gm il] Can you please explain how this works ?
  189586 [decoux@mo lo] Well `&' call #to_proc to create a Proc object (from the Method object #a

189400 [barinek@gm i] dose Ruby or ActiveRecord have the Java/JDBC equivalent for retrieving
189549 [zoso@fo on e] Hmmm... you can use ActiveRecord::Base.columns to get a list of

Is there an "in" operator in ruby ?
189407 [u_dinesh@ya ] I want to do this manipulation. I have an array say @test=[2,4,6,8].
+ 189410 [jake.mcarthu] ar = [1, 2, 3, 4, 5, 6]
| + 189411 [hawkman.gelo] ...
| | 189412 [hawkman.gelo] @test=[2,4,6,8]
| | 189413 [matthew.moss] @test.each do |n|
| | 189432 [lukfugl@gm i] @test=[2,4,6,8,13]
| + 189416 [brett.a.roge] ar = [1, 2, 3, 4, 5, 6]
|   189420 [jake.mcarthu] If Array was extended with some set theory, things like this would be
|   189427 [billk@ct .c ] => [1, 2, 3, 4, 5]
|   + 189430 [Stephen.L.Mo] a = [*1..10]
|   + 189431 [jake.mcarthu] There you go, ruining my moment of self-apparent ingenuity. :P
+ 189415 [fxn@ha hr f.] irb(main):001:0> 1.upto(10) { |x| puts x if [2,4,6,8].include?(x) }
+ 189421 [mike@nt wa e] for i in [2,4,6,8]
+ 189438 [hal9000@hy e] It's backwards from the way you want it.

VIM + indentation/highlightning for ruby
189409 [Meino.Cramer] I started learning vim and I tried the indentation/highlightning for
189417 [Pierre.Barbi] Nice scripts :)
189424 [Meino.Cramer] Hmmm....
189440 [logancapaldo] ...

Probleme with 2-dimensionnal arrays
189414 [ror@z7 0. et] I can't understand why this piece of code doesn't return the array
+ 189418 [matthew.moss] It has to do with how you construct your array.  Your outer array
| 189419 [ror@z7 0. et] Perfect thank you very much...
+ 189439 [james@gr yp ] my_array = Array.new(3) { Array.new }

Re: practices (File and directory structure)
189422 [johnatl@ma .] If the safe mode is a problem, do all your require'ing before changing

Symbol#to_proc is just so beautiful
189423 [daniel.schie] When is this ever getting into Ruby Core?
+ 189425 [Daniel.Berge] [1,2,3].all?(:positive?)
| + 189437 [lukfugl@gm i] It's possible be adjusting the definition of Enumerable#all?
| + 189442 [daniel.schie] The beauty of Symbol#to_proc is that you don't need to change any method
| | + 189444 [Daniel.Berge] I don't like it. It bugs me. That ampersand is an eye sore in otherwise
| | + 189452 [gerardo.sant] An approach similar to Facets' Enumerable#every would look better
| |   189456 [florgro@gm i] These already have another meaning in 1.8. any?() without a block
| |   189459 [Daniel.Berge] Got a file download link for us?  I don't see an entry on the RAA, and there's no 'Files' section on the RubyForge page.
| |   + 189461 [florgro@gm i] If only I could put a note on the project homepage on RubyForge.
| |   + 189462 [lukfugl@gm i] ("SCM Repository" link off the RubyForge page)
| + 199703 [omerraviv@ba] What you are suggesting is basically an expansion of something that was
|   199712 [djberg96@gm ] Heh, I'd forgotten it was ever suggested before.
+ 189449 [florgro@gm i] class Symbol
| + 189467 [daniel.schie] Sweeeeet! Oh man, I love this language!
| | 189468 [daniel.schie] [2, 3].inject(&:*)  => 6
| | 189475 [lukfugl@gm i] Is it just me, or does that look like an ASCII singing Elvis? Maybe
| + 189500 [johnatl@ma .] IIIEEEeee, it's Perl, it's Perl!  :-)
|   199701 [omerraviv@ba] a) It can be expressed with a shorter code snippet (less line noise),
|   + 199705 [transfire@gm] Perhaps instead of
|   | 199801 [transfire@gm] No one though this was interesing?
|   | 199805 [matz@ru y- a] Interesting but too radical.  I'm afraid that it's too hard to imagine
|   | 199833 [transfire@gm] I can see that on first econounter the idea, certainly. And I think the
|   | + 199834 [matz@ru y- a] This means 'print([1,2,3].collect)' would not work, since it calls
|   | | 199837 [transfire@gm] Why should it? If the block is manditory then it won't work anyway.
|   | | 199838 [matz@ru y- a] "need" is pretty relative indeed.  And I'm a big fan of concise
|   | | 199842 [transfire@gm] Okay. Though we should consider that it can already be done, and
|   | + 199835 [dblack@wo bl] array.map.upcase
|   + 199816 [dblack@wo bl] I agree.  I don't see the problem with it.
+ 199813 [sean.ohalpin] I don't want to rain on anyone's parade, but this technique is fairly

Rake question - what is the best way to package multiple things up changing directories and such
189429 [jeff.barczew] ...