365687-376219 subjects 366055-382700

365883 [dennis@co te] May not be the best place to ask, but...
365886 [ammarabuali@] BasicSocket.do_not_reverse_lookup = true

New version 2.5.5 of IBM_DB gem now available
365884 [praveendevar] New version 2.5.5 of the IBM_DB gem, the Rails Adapter/Ruby Driver for

farming automation [parallel testing on multipe remote machines at  the same time]
365885 [cristina.tor] can we use parallel testing using few[a farm of] remote machines,
365923 [ryand-ruby@z] Is there a difference between the scenarios?

OptionParser mandatory versus optional arguments
365888 [byrnejb@ha t] I am trying, without success obviously, to check for a mandatory

Sending packets over TCP server
365889 [hikay_akira@] I'm making a TCP server in Ruby, and I still haven't figured out how I
365890 [b.candler@po] You need more detail than that. Is a string of a fixed size, or
365893 [hikay_akira@] I didn't know that we could just "escape" characters like that to make
+ 365894 [hikay_akira@] Also, if a string DOES contain bytes, it won't show.
| 365896 [b.candler@po] a = "\x07\x00\x41\x42\x43\xff"
| 365897 [hikay_akira@] Amazing! Then again, thank you. I think I finally reached the point
+ 365895 [b.candler@po] Navigate to chapter "The Ruby Language" in top-left box. Scroll down to

Getting docs on openssl in ruby
365898 [matt@co un r] I've been digging around trying to find some documentation on using =
365902 [yermej@gm il] sl in ruby, and having a terrible time of it. =A0The openssl sections of th=
365903 [matt@co un r] It's hard to ask more specific questions since I'm just starting out.  =

Ruby 1.9.1 Array#combination kinda lazy
365904 [phrogz@ma .c] count = 0
+ 365943 [ryand-ruby@z] #!/usr/bin/ruby -w
| 365964 [phrogz@ma .c] Just reproduced using 1.9.1p378 on Ubuntu. Looks to me like it's not a
| + 365965 [ryand-ruby@z] ...
| + 365966 [phrogz@ma .c] in `combination': too big for combination
+ 365970 [phrogz@ma .c] ...

Think i just figured it out
365905 [sid.ravichan] Its actually an EC2 security groups issue. You need to ensure if the

Triggernig the debugger
365906 [ralphs@do 32] In Rails I can use the
365907 [ralphs@do 32] I found
365912 [robert.dober] akpoints manually when the program starts?
365910 [robert.dober] eakpoints manually when the program starts?

String#to_ptr w/ Ruby 1.9's DL library is undefined
365913 [andrewrousse] I'm working on porting up an extension from Ruby 1.8 to Ruby 1.9 and
365960 [rogerpack200] FFI has a working to_ptr

[OT] Setting configuration until end of parent bash session
365915 [transfire@gm] Any advice on how a ruby script can set a config info that's per
+ 365919 [bob@pr ul .c] Using an environment variable?
+ 365927 [pdromero@gm ] $ env FOO=3D"something" sh

Triggering the debugger II
365920 [ralphs@do 32] I'm still having trouble with the debugger and debugging
365947 [user@co pg o] ruby -rdebug UltraDedup.rb
+ 365948 [ralphs@do 32] Rocky,
| 365961 [rogerpack200] Faster, less bugs.
+ 365963 [vikkous@gm i] Furthermore, if you run your ruby program via the rdebug command, you
  + 365979 [gsinclair@gm] With ruby-debug, I start debugging via the "debugger" method in my
  + 366012 [rocky.bernst] , you start debugging via 'rdebug'. This makes it more

Encode string in Ruby decode it in Javascript?
365922 [linusoleande] As the title describe.
365931 [m.fellinger@] JSON
365945 [linusoleande] I'm already using JSON to pass data to the client.

Re: Setting configuration until end of parent bash session
365924 [transfire@gm] Thanks, I feel like I've gotten a step closer, but still no cigar. I
365926 [transfire@gm] Just discovered that capitalized variables (environment variables) are
365935 [transfire@gm] Looks like I am wrong about this. I ran an isolated test and they both

[ANN] minitest 1.7.0 Released
365925 [ryand-ruby@z] minitest version 1.7.0 has been released!

[ANN] minitest-macruby 1.0.0 Released
365928 [ryand-ruby@z] minitest-macruby version 1.0.0 has been released!

[ANN] rake-remote_task 2.0.0 Released
365929 [ryand-ruby@z] rake-remote_task version 2.0.0 has been released!

[ANN] vlad 2.1.0 Released
365930 [ryand-ruby@z] vlad version 2.1.0 has been released!

Segmentation fault in interpreter doing simple MySQL
365932 [jr@op ns ag ] I am a relative ruby-newbie (hey that rhymes!) but I am a python expert
365946 [mulder.patri] Just a small comment:  Your script works for my local environment

Re: farming automation
365934 [n8@ad ll om ] are you looking for something like capistrano, func, or maybe

help please with REXML
365937 [cornflaik@gm] I am trying to make a simple ruby script that can look at a set of xml
+ 365939 [paradisaeida] If you can afford the time to install Nokogiri, this might be a good
| 365940 [cornflaik@gm] Thank you for you help!
+ 365953 [brabuhr@gm i] $ ruby /tmp/code_below

Sinatra + mumboe-soap4r + ruby1.9.1 problem
365942 [rkononov@gm ] and sinatra

Recurse through array of arrays
365949 [iainspeed@gm] ...
365950 [iainspeed@gm] ...
365956 [jcmoore@pr s] result = t.flatten.select { |e| e.whatever_attr == "anything" }
365958 [jcmoore@pr s] oh yes..
365967 [iainspeed@gm] Thanks very much. Can't argue with a 12 line into 2 line reduction! :)

if __FILE__ == $0   & ruby & rdebug & FXRuby
365951 [ralphs@do 32] The following line acts differently under rdebug and ruby
365962 [vikkous@gm i] The name rdebug is ambiguous. Do you mean debug.rb, the debugger which

[ANN] Money 3.0.5
365952 [shane.emmons] Money 3.0.5

[ANN] webgen 0.5.13 released
365955 [t_leitner@gm] Hey everybody!

Pstore confusion for a beginner
365971 [stevepauly@c] Greetings,
365998 [gsinclair@gm] a ||=3D b is short for "a =3D a || b", just like "a +=3D b" is short for "a=
366011 [rick.denatal] NOT AGAIN!

Hpricot test for equivalence of two xml segments?
365972 [xeno.campano] I'm looking through what documentation I can find for Hpricot (nokogirl wouldn't
365975 [ammarabuali@] I can think of a few definitions for equivalence. One definition would
365977 [xeno.campano] The only thing I am concerned about is permutations of attributes inside the
365980 [mike.dalessi] which is Nokogiri-based.
365984 [xeno.campano] I believe you.  Nokogirl wouldn't install though...yes, and nor did Lorax...
365986 [aaron@te de ] here

[ANN] horo 1.0.0 Released
365976 [aaron@te de ] horo version 1.0.0 has been released!

[ANN] Rumai 3.3.0
365981 [sunaku@gm il] Rumai

Book problems and solution for windows 7
365983 [ilias.elissa] Book problems and solution for windows 7

client-side Ruby on iPad/iPhone?
365988 [jp@je fp it ] I've seen jRuby and IronRuby, and really want to use them since i really
+ 365989 [joelvanderwe] have you seen rhomobile / rhodes?
+ 365991 [ninja@sl ph ] Do you really know JavaScript well enough to hate it? It's possible you're an
| 366007 [tony.arcieri] That's a pretty pretentious question to ask.  But I'll bite.
| 366017 [ninja@sl ph ] I was never asserting that it was impossible for someone to know JavaScript
| 366047 [tony.arcieri] Of all of the examples of "weirdness" in Ruby, I wanted to single this one
| 366094 [ninja@sl ph ] I don't see much of a difference, except where there are artificial
| 366215 [tony.arcieri] You know, we can beat around the bush all day about this.  I think I'll just
| 366441 [ninja@sl ph ] ng
+ 366013 [jp@je fp it ] Just to clarify???I was hoping there might be a universal replacement, not
  366036 [cwdinfo@gm i] not=20
  366039 [jp@je fp it ] Thanks Steve.  I will check these out.

how to test a ruby script from another ruby script?
365993 [dearsaravana] i have a ruby echo server script working, but to validate that its
366065 [rogerpack200] might be of some service to you.  I've also seen core do it by

Infinite Loop in Code -- Logic Error
365994 [jamesrasmus@] I've just started my journey as a ruby developer, and I'm going through
+ 366000 [dblack@ru yp] Yes, but a little can go a long way :-) You definitely need to let Ruby
| 366026 [jamesrasmus@] David,
| + 366027 [dblack@ru yp] Good -- I'm pleased.
| + 366028 [dblack@ru yp] Following up my last reply: see http://pastie.org/1049200 for a version
| | 366029 [dblack@ru yp] Just pasted a small correction to that last pastie.
| + 366033 [rick.denatal] James, at this point in your journeys in Ruby, it might be well to
+ 366049 [matt@co un r] cannot
  366050 [jamesrasmus@] Thanks everyone who's helped out with this. I finally got my original

Different results in command-line vs. TextMate
365996 [dblack@ru yp] ...
366001 [ammarabuali@] Those are nonbreak spaces (U+00A0, 0xC2A0) that should be treated as \W.
366002 [dblack@ru yp] Thanks for checking. It turns out to be an encoding thing: TextMate

Driving irb from IO.popen
365997 [jeanjulien.f] I'm stuck with a problem concerning IO.popen
+ 365999 [vikkous@gm i] You could try to detect whether irb is waiting based an what prompt it
+ 366003 [shortcutter@] Not a workaround but a solution: since you only want to collect the
  366006 [jeanjulien.f] Yes. Bad habit on my side: I tend to find it more readable that way so
  + 366023 [shortcutter@] Correct.
  + 366074 [gabriel.horn] You may want to check out a recently released gem called greenletters,

Instance eval in 1.8 and 1.9
366004 [gsinclair@gm] Porting a program from 1.8 to 1.9, I hit a stumbling block in the use
366005 [stefano.croc] Your code runs without errors for me with ruby 1.9.1-p376.
366008 [gsinclair@gm] ruby 1.9.2dev (2010-07-02 revision 28524) [i386-cygwin]
366010 [vikkous@gm i] It seems like this could be a regression. The error message at the
366068 [b.candler@po] Seconded. The program works OK for me with ruby 1.9.2dev (2009-07-18
+ 366070 [vikkous@gm i] Nobu says this is not a bug, and his explanation makes perfect sense
+ 366071 [gsinclair@gm] * works on 1.9.1-p376 [Caleb, Gavin]

[ANN] Call for Participation for 2010 Workshop on Scheme and  Functional Programming
366009 [feeley@ir .u] CALL FOR PARTICIPATION

[ANN] Kwalify 0.7.2 - parser, schema validator, and data binding for  YAML and JSON
366014 [kwatch@gm il] I released Kwalify 0.7.2. This is a bug fix release.

ruby abstraction
366015 [jeob32@gm il] I'm a newbie with a background in Java. I've just about finished working
+ 366016 [steve@st ve ] There aren't interfaces in Ruby, because Ruby is dynamically typed. So
+ 366018 [ninja@sl ph ] Yes and no.
| + 366024 [shortcutter@] You could not have Java without interfaces.  You would at least have to
| | 366089 [ninja@sl ph ] I don't think so. It would be much like Java without Generics -- frustrating
| | 366093 [shortcutter@] Still, that would not be the Java for me that we have today.  Without
| | 366442 [ninja@sl ph ] It seems like this exact problem exists just as much in an interface, though
| + 366030 [jeob32@gm il] David,
|   366032 [rick.denatal] when I was at IBM.  I've shared it with a few experienced Rubyists who
|   366090 [ninja@sl ph ] Definitely a resonance.
|   366092 [shortcutter@] There once was the concept of "signature" in g++.  Basically you could
+ 366054 [no@sp m. le ] Interfaces provide Java with dynamic method dispatch, without the
  + 366056 [shortcutter@] That sounds interesting.  Can you please elaborate a bit more or
  | 366203 [no@sp m. le ] Because every object which implements an expected interface may have
  | 366218 [shortcutter@] Wouldn't that mean duplicate entries for a method which is part of
  | 366237 [no@sp m. le ] Yes, but the compiler knows which interface it wants,
  + 366076 [rick.denatal] Is the * the equivalent of Emily Litella's "Never Mind!"

Search Array
366019 [emily.ward89] I have an array which is created by reading a csv file
+ 366020 [w_a_x_man@ya] time.find{|x| x[0]=3D=3D"valuea"}
+ 366022 [jeanjulien.f] def index_biarray(biarray,obj)
+ 366038 [Rob@Ag le on] There's a particular method that applies in cases like this.  You have
+ 366044 [emily.ward89] Thank you so much. Very helpful I've got the program working!

Ruby Shoes: Self-contained?
366021 [spare@fr gi ] I've been learning to use Shoes. The included manual indicates that to
366034 [steve@st ve ] Hey Terry-

Template is missing statement
366031 [borijee@go g] Just starts wirth ruby. Everything is installed
+ 366035 [m.fellinger@] Do you notice any difference between the two filenames?
+ 366067 [b.candler@po] You haven't actually said so, but I'm going to guess you're working with

Null checks in Ruby
366037 [carljenkins@] I am working to learning Ruby and have a bit of a question regarding
366040 [shortcutter@] That does make sense although often null checks are superfluous because

The price of a modern list architecture?
366041 [jackokring@g] Simple really, if Lisp's (X , Y) construct should have limits placed
366064 [eleanor@ga e] e59023a8ae4c/9eb9f6b99139a5df#9eb9f6b99139a5df
366066 [jackokring@g] On 19 July, 12:22, Eleanor McHugh <elea...@games-with-brains.com>
366072 [eleanor@ga e] Well if you need a testbed at some point let me know, I have a virtual =
366073 [jackokring@g] There's a section started on http://sites.google.com/site/jackokring
366081 [eleanor@ga e] Thanks :)

Saving HTML as MHT
366042 [albertschlef] I want to download some HTML page, but I also want to save with it the
+ 366043 [nicholas.orr] According to http://en.wikipedia.org/wiki/MHTML
+ 366046 [colinb2r@go ] Although another post cites wikipedia as implying that using the mht file

[ANN] New Training Entry to LSRC 2010
366045 [jimfreeze@gm] This is an update notice for LSRC 2010.

Shoes: Force Maintenance?
366048 [spare@fr gi ] I read through the Shoes manual, and I understand that Shoes is an
366052 [steve@st ve ] I believe the right way to do this would be to use a Thread that runs in the

LoadError: no such file to load -- tk
366053 [rl001@pa be ] I'm trying to install Ruby on a 64 bit Windows 7 machine following this
+ 366063 [rogerpack200] This means your ruby was built without the tk extension built.
| 366082 [rl001@pa be ] Yes I know, but why not? Neither of those links was helpful.
| 366085 [echristopher] How did you install Ruby? Using RubyInstaller? That doesn't include Tk
| 366086 [rl001@pa be ] Like the first post says;
| + 366087 [rl001@pa be ] I'm not using rubyinstaller. I'm compiling from source.
| + 366135 [rogerpack200] This means that your Ruby runtime, when you built it, was unable to find
|   366140 [rl001@pa be ] Yes I got that much. But I don't understand why. I followed that guide
|   366147 [rogerpack200] 1.9.1 didn't build the Tk extension all that well on windows.  It should
|   + 366153 [rl001@pa be ] The tutorial says use 1.8.x not 1.9.x.
|   | + 366162 [nagai@ai ky ] ext/tk/extconf.rb creates Makefile for tcltklilb.so (core library of
|   | | 366176 [rl001@pa be ] By dummy Makefile do you mean an empty one? There is a Makefile but
|   | | + 366177 [rogerpack200] You can use either one.
|   | | | 366178 [rl001@pa be ] What comment? I've read everything in this thread. You mean the one that
|   | | + 366181 [nagai@ai ky ] # Because I'm not familiar with development on Windows, the following
|   | |   366214 [rl001@pa be ] I have installed ActiveTcl (64-bit)
|   | + 366164 [rogerpack200] If you're interested in a 1.8.x that works with tk, see
|   | | 366343 [rl001@pa be ] Ok I got Inno Setup 5 now what? Couldn't figure out the next step from
|   | + 366179 [rl001@pa be ] Ok I've unzipped this thing now how do I install it? And what would I do
|   |   + 366182 [rl001@pa be ] Actually I would like to get this fixed on my Unix machine too. I'm
|   |   | 366186 [nagai@ai ky ] Please tell me the directories of your Tcl/Tk headers/libraries, and
|   |   | 366241 [rl001@pa be ] On a FreeBSD 8.0 machine I went to \usr\ports\lang\tcl85 and as root
|   |   | 366341 [nagai@ai ky ] I need the messages at ext/tk step of "make".
|   |   | + 366354 [rl001@pa be ] # make install clean
|   |   | | + 366356 [rogerpack200] He wanted the messages from the output of ruby/ext/tk step of "make"
|   |   | | + 366358 [nagai@ai ky ] Ah, I'm sorry. It may be ambiguous.
|   |   | + 366359 [rl001@pa be ] Previous output was from Tcl. I found something useful at the end of
|   |   |   366360 [rl001@pa be ] I have success. Thank you Hidetoshi-san. :)
|   |   |   366374 [martindemell] Could you write up a step-by-step set of instructions? Would be useful
|   |   |   366398 [rl001@pa be ] To install Ruby/Tk on FreeBSD 8.0 Unix I did these three commands to
|   |   + 366183 [m.fellinger@] gem install ffi-tk
|   |   | + 366240 [rl001@pa be ] I'm sorry I don't know what this means. Is this a command I'm supposed
|   |   | + 366262 [headius@he d] Cool, I didn't know about this. How complete is it?
|   |   |   366289 [m.fellinger@] It's complete, covers all of the tk API. It's the same project I
|   |   + 366209 [rogerpack200] You don't need to install it, just cd into the
|   |     366248 [rl001@pa be ] Ok, gotcha. did that.
|   |     366250 [rl001@pa be ] Thanks Roger. I'm up and running now on Windows using the one you made.
|   |     366320 [rl001@pa be ] I copied your directory tree over and it works but in windows when you
|   |     + 366325 [rl001@pa be ] "If you???re using Windows, open fxri from the Ruby section of your Start
|   |     | 366330 [luislavena@g] ckstart/
|   |     + 366334 [rogerpack200] Ruby on windows is built to be self contained, and you can move it all
|   |       366342 [rl001@pa be ] Yes, I know. How can I build Ruby that includes tk and an installer to
|   + 366344 [rl001@pa be ] Ok, I got those.
|     + 366347 [rogerpack200] I unzipped a .7z file from rubyinstaller,
|     + 366350 [luislavena@g] He can't use explicit paths in the example because he doesn't know
+ 399334 [lists@ru y- ] I followed the guide on http://www.tkdocs.com/tutorial/install.html