305883-316180 subjects 306396-349836

^ [ANN] Waves 0.7.5 (Janus) Release
306142 [dan zeraweb.] The first major release of Waves since our initial release in February is

^ Creating a variable based on array
306151 [nonstickglue] Basically my program automates file creating based off arrays at the
+ 306155 [jgabrielygal] If I understood correctly you want to generate a set of files, that are
+ 306160 [shortcutter ] I am not sure what you mean here.  Of course you can initialize the
  306463 [nonstickglue] Thank you both for your replies. :) I used the 2nd one and it worked
  306466 [s.korteling ] array = colors.map do |color|
  306468 [nonstickglue] Thanks, everything is working. :D
  306470 [sarah survey] GOOD ,IT IS USEFUL

^ ruby 1.8.6 p230 - really a fix?
306157 [hramrach cen] reading http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html
+ 306158 [maga1982 gma] unsubscribe
| 306159 [sumayah.hame] unsubscribe
+ 306191 [gdonald gmai] Geez.  I've spent my last two evenings trying to figure out why I
  306210 [ottoman01 gm] It kind of looks like alot of rails things are broken via this ruby

^ v1.9 -rprofile -rdebug errors
306164 [phil pricom.] People,
306246 [rogerpack200] 1.9 lacks profiling and debugging, currently, AFAIK.  I know ruby-debug
+ 306250 [phil pricom.] Roger,
+ 306251 [jeremy bitsw] The latest ruby-debug does support 1.9, but it's incomplete yet.
| + 306293 [rocky.bernst] ruby-debug doesn't work in 1.9; my estimate is that it will be a while
| | 306307 [jeremy bitsw] It does work, but is in, uh, 'alpha' form :)  I've been using it for a while.
| | + 306363 [rocky.bernst] ebug
| | + 308366 [rogerpack200] Is there a location we can get to that?
| |   308382 [rocky.bernst] Over time 1.8.x over time will be getting some of the 1.9 goodness.
| + 306328 [rogerpack200] For some reason I can't get svn trunk to compile.  Or for rake to work,
+ 306252 [rogerpack200] I take that back.

^ New Version of IBM_DB Rails Adapter/Driver now available
306165 [praveendevar] New version of IBM_DB, the Rails Adapter/Driver for IBM DataServers,

^ how do i unsubscribe?
306166 [fredchingota] Dear all
306167 [shortcutter ] Please look at the headers of a ruby-talk email.
306171 [ondemannen g] X-ML-Name: ruby-talk
306172 [shortcutter ] List-Id: ruby-talk.ruby-lang.org
+ 306174 [ondemannen g] grrr ... I'll have to learn to use page-down key.
+ 306181 [rick.denatal] On the other hand, I'd venture to guess that a large proportion of people

^ displaying result of *.rb files onbrowser
306169 [vinayhk00 gm] i am new to ruby. i hav installed ruby gems. even webrick server is

^ displaying result of *.rb files on browser
306170 [vinayhk00 gm] i am new to ruby. i hav installed ruby gems. even webrick server is

^ Question on passing blocks
306182 [twscannell g] In the code below, a block, { x += 1 } is magically passed to
+ 306186 [rmagick gmai] In the first case, x in the block refers to the x defined outside the
+ 306187 [sepp2k googl] You're passing a block that takes one argument (x) to a method that yields=
  306190 [twscannell g] Thank you,

^ File writing
306183 [tekmc hotmai] previous data. How can I add new items to an existing document without
+ 306184 [rmagick gmai] Use "a" instead of "w". That will Append new data to the end of the
+ 306188 [mikeisgreat ] filename = File.open("test","a") do |f|
  306189 [tekmc hotmai] Thank you!
  306192 [tekmc hotmai] Posted via http://www.ruby-forum.com/.
  306194 [tekmc hotmai] ...delete an item and take the now empty line away

^ Deleting a line in a file
306197 [tekmc hotmai] afterward?
+ 306199 [shevegen lin] There are many ways to solve this.
| 306200 [tekmc hotmai] <-- empty space
| 306202 [shevegen lin] This should get you started. There are probably 1000 ways but well,
+ 306209 [Reid.Thompso] grep -v "character string unique to line to be removed" file > tmpfile
+ 306302 [koflerjim ma] /bin/ed -s file.txt <<< $'/b/d\nw'   # delete first line containing "b"

^ Release of 1.9.1
306203 [emarthinsen ] Sorry if this is an old question, but does anyone have a sense of when
+ 306206 [matz ruby-la] Ko1 announced at the RubyKaigi conference last week that it would be
+ 306207 [cremes.devli] Rumor has it that interim version (1.9.0-x where x is a number) will
  306213 [emarthinsen ] Thanks. I was hoping for something a little sooner, but oh well. Thanks

^ SOAP Client
306204 [robert.peter] I'm a complete SOAP neophyte. I have managed to hack myself part of the

^ puts a . which method of array is called
306205 [neeraj.jsr g] a = w(1 2 3)
306224 [devi.webmast] I'm afraid you're barking up the wrong tree. In the IO#puts documentation,
306286 [neeraj.jsr g] Thanks. However I am getting error at

^ [ANN] First gathering of #ruby-pro on 27th of June, 23:00 UT
306211 [apeiros gmx.] I'm proud to announce that #ruby-pro will be holding its first gathering

^ Creating a command-line Gem
306219 [emarthinsen ] distribute as a gem. Are there any examples or references on how to do
306223 [ryand-ruby z] Either use or study hoe. In hoe you put cmdline tools in a bin
306226 [emarthinsen ] Thanks. I'll check it out.

^ Re: Can your GUI framework do this?
306221 [logustus gma] Martin,
+ 306294 [shevegen lin] I dont think there is any bitterness. Just when you use ruby for long
| 306309 [martindemell] D actually does a pretty good job of supplying "high level" features
+ 306312 [martindemell] Thanks for the examples - Monkeybars looks pretty cool.
  306367 [david koontz] Yes you can define a new Swing layout manager with 100% Ruby code, just as

^ How to find second match in a file
306222 [happy.go.luc] My code opens a file and read line by line to find a given string as
+ 306242 [rodrigo.berm] Not sure why you need it ...but seems you can do what you need by simple
+ 306283 [shortcutter ] It's probably easiest if you store the state of your search somewhere.

^ regular expression question
306228 [ginkod gmail] I'm trying to replace all characters that are not letters numbers and
306240 [rubytraining] I think this does what you want, provided underscores are OK.
306383 [shortcutter ] newTerms = string.gsub(/[^\w\s]+/, "")

^ Upgrading to 1.8.6-p230 on Windows
306229 [jeff.fry gma] I'm looking to upgrade to 1.8.6-p230 on Windows XP. I initially
306231 [jan.svitok g] 1. I have written response to a similar thread this morning.

^ RegEx Question
306232 [tekmc hotmai] 4.0
306233 [tekmc hotmai] p.gsub(/[^(v| )]/i) {|m| t.concat(m)}
+ 306241 [rodrigo.berm] "v4.5.".gsub(/\.$/,"")
+ 306244 [dblack rubyp] If you've just got that string and want to remove the last '.', as a

^ A cleaner way to pass a block or proc
306234 [tristin.colb] Is there a cleaner way to implement my add_notifier method?
+ 306235 [ara.t.howard] def add_notifier *argv, &block
+ 306236 [ben bleythin] def add_notifier( notifier = nil, &block )
  306245 [tristin.colb] Thanks Ben. That worked perfect. No other changes required in the class. :)
  306249 [vjoel path.b] def add_notifier(notifier=nil, &block)
  + 306272 [jgabrielygal] I think you could end up adding some nils with
  | 306300 [ben bleythin] Right, this is why I suggested modifying the block to handle the nils :)
  | 306332 [tristin.colb] The final result.
  | 306355 [vjoel path.b] A little less redundant...
  + 306277 [robert.dober] I would do it exactly as J=F6el suggested above, however there is an
    306296 [ara.t.howard] still adds nil if no args given though...
    306340 [robert.dober] That is what OP wanted IIANM, the nils raise an exception later on.
    + 306342 [tristin.colb] Can you explain it to me?
    + 306344 [ara.t.howard] ah.  btw - i did not know about the argumentless Proc::new so you
      306346 [robert.dober] Great I will spell it out for OP

^ how to write in the middle of a file
306248 [rogerpack200] Greetings all.  For some reason the answer to this stumps me.
306253 [Rob AgileCon] meaning you want to OVERWRITE something in the middle, yes?
306254 [rogerpack200] Works like a charm. You rock!

^ self referential belongs_to
306256 [tennisbum200] I noticed that eager loading a  belongs to association that points back

^ Simple script segfaults 1.8.6-p230
306257 [rst ai.mit.e] When I run the following 10-line ruby script on 1.8.6-p230
306260 [drbrain segm] $ ruby18 -v -

^ Connection to postgresql failing
306269 [map7 iinet.c] I've been looking through all the posts relating to this and my syntax
+ 306292 [cminear secu] Just because PostgreSQL is running does not mean it will accept just
+ 306317 [alandacosta ] If the above fails, you can also try postgres-pr; it doesn't require
+ 307586 [ruby j-davis] $ psql winesite_development user

^ Auto Display
306270 [amitkk_84 ya] With the help pf active scaffold i have created 3

^ Ruby win32ole properties
306271 [andreas.warb] I'm running simulations in Vissim using ruby and win32ole to connect to
306275 [s.korteling ] Can't test your code, maybe the variable named 'eval' is confusing
306276 [andreas.warb] irb(main):009:0> vissim = WIN32OLE.new('VISSIM.Vissim')

^ Earn 25 US$ in just 5 mins . . .
306274 [swetav02 gma] Earn 25 US$ in just 5 mins . . .

^ Deleting row from CSV
306278 [robnewnham g] I have come code which is looking for a particular number within a CSV
306284 [jgabrielygal] I think the entries are strings, so this comparison will never be true.
329803 [salil cipher] where shold i get the API of all the classes and methods fof fastercsv.
329819 [james graypr] James Edward Gray II

^ Threads, Queues and possible memory leak
306279 [gethemant gm] I have a simple thread pool of [default] 20 threads running. They read
+ 306297 [ara.t.howard] will dike you need at least two dumps and then take deltas.  typically
| 306329 [gethemant gm] Well, i didn't get any dump at all. I got 0,1 files in log directory,
+ 306326 [rogerpack200] If you think there's a 'real' memory leak then valgrind is your friend.

^ How to add CDATA section in XML file?
306282 [q20105 gmail] Dear all,

^ search query question
306287 [ginkod gmail] I'm not using ferret because the search I need is not that complicated.

^ Evolution bindings
306303 [cyclewood_lt] I'm looking for a ruby/evolution binding. I've installed the Hardy Heron bi=
306304 [tom infoethe] Yeah, it's been a long time since I worked on that, and the docs on
+ 306313 [tom infoethe] You could download "revolution-0.5.gem.new" and give it a whirl,
| 306325 [cyclewood_lt] Okay, Tom, have installed that and will have a play around. My revious mail=
| 306366 [tom infoethe] Got your email offline, will reply!
+ 306319 [cyclewood_lt] Okay, where is the SVN?

^ Comparing 2 files.
306305 [ascott medal] I'm very new to Ruby.  I'm wondering if it is possible to compare 2 text fi=
+ 306310 [rmagick gmai] compare_file(a, b)
| 306343 [ascott medal] Thanks That worked perfectly.
+ 306311 [davebass mus] The first thing you could try is to stat the files (builtin File::Stat

^ Indeterministic File order using Dir
306314 [joseph joesn] Dir['/tmp/*']
306315 [ara.t.howard] it's determined by the underlying call to glob (man 3 glob).  in

^ undefined local variable or method 'rsion' for main:Object
306318 [sjmeyer us.i] I just installed ruby 1.8.6, on RHEL 5.1
+ 306320 [rmagick gmai] There is a -v option and a --version option, but no -version option.
+ 306321 [tommy.morgan] If you run `ruby -version`, since you only use a single dash, the word
+ 306322 [jgabrielygal] jesus@jesus-laptop:~$ ruby -v
  306327 [sjmeyer us.i] Hey everyone thanks I am a newbie to Ruby and did make the forementioned

^ [ANN] Thin 0.8.2 Double Margarita release
306323 [macournoyer ] Hey all,

^ TK padx question
306330 [htruax stf.c] charset="us-ascii"
306359 [nagai ai.kyu] There are some examples under "<ruby-src>/ext/tk/sample" directory.

^ question about defined? and y
306331 [twscannell g] The defined? keyword seems to have some funky behaviors.
+ 306334 [adi.mahajan ] Are you testing this on irb or by writing on a file and running through
| 306339 [igal pragmat] If you're using an IRB with certain settings, such as the Rails console,
+ 306335 [alandacosta ] !!defined? x
| 306349 [ben bleythin] But I'm not sure when you ever actually *care* that it's either true
| + 306353 [shortcutter ] I would go even as far as to not care what defined? actually does.  I
| | 306354 [ben bleythin] That's true.  I generally assume if people are asking about a thing they
| + 306365 [twscannell g] Problem is "method" isn't false, so it comes back as non-nil, or true.
|   + 306373 [nefigah gmai] Try calling y() in that file :)
|   + 306424 [ben bleythin] Right, which means that y is defined... and it is.  I don't see the
|     306428 [twscannell g] well, I guess it works, but
|     + 306432 [ben bleythin] I think this is the case.  For one thing, variables are effectively just
|     + 306512 [rick.denatal] In general, predicates in Ruby return an object which can be regarded as
|       306532 [shevegen lin] truthy and falsy?
|       + 306535 [shortcutter ] I think it's just the attempt to find words that cannot be confused with
|       | 306543 [rick.denatal] Well it is that, but...
|       | 306727 [shortcutter ] Interesting stuff that you dug up there. :-)
|       + 306556 [avdi avdi.or] It's duck-talk :-)
+ 306538 [sean.ohalpin] $ ruby -e "puts defined?(y); require 'yaml'; puts defined?(y)"

^ KirbyBase: DateTime and Memo
306347 [aglarond gma] I love KirbyBase.  I think it's great that there's a file-based
306592 [jontyjont bt] I hadn't heard of Kirbybase before your post - but I agree with you so
306788 [shawn42 gmai] I love kirbybase and use it for small projects at work.  There is a rails

^ Re: Performance improvement possible? - update
306348 [phil pricom.] Eleanor,

^ [ANN] Halcyon 0.5.1 Released!
306352 [chiology gma] Halcyon version 0.5.1 has been released!

^ Share Authentication Cookies
306356 [ginkod gmail] I would like to know if it is possible to share Authentication cookies
306408 [boesemar gmx] You can set the 'domain' (like: .example.org) and 'path' (like: /) arguments
+ 306409 [ginkod gmail] is this valid for to completely different url's
+ 306452 [ginkod gmail] is this valid for two completely different url's sharing the same
  306462 [boesemar gmx] No, this is a http restriction implemented at the user agent (browser).

^ Ruby way to find in an Array the object with a maximun in an attribute?
306360 [ibc aliax.ne] class SRV
306364 [s.korteling ] Yes! "sort_by" is nice too. My code just gives the minima (using a

^ Doesn't Resolv support NAPTR queries?
306361 [ibc aliax.ne] ut=20

^ Re: Ruby way to find in an Array the object with a maximun in an attribute? [SOLVED]
306362 [ibc aliax.ne] Done :)

^ Printing two columns properly
306369 [tekmc hotmai] Thanks!
306370 [botp delmont] RnJvbTogdGVrbWNAaG90bWFpbC5jb20gW21haWx0bzp0ZWttY0Bob3RtYWlsLmNvbV0gDQojICJh

^ Re: Rubyforge RubyGem propagation delay
306372 [tom infoethe] file that the RewriteMap reads... that should cut the deploy time down
306374 [fedzor gmail] excuse  me?
+ 306375 [tom infoethe] ============
+ 306425 [ben bleythin] It's a fork of the code that originally ran SourceForge.  It's not a

^ File question
306376 [tekmc hotmai] File.open('file.txt', 'r').each do |c|
+ 306377 [botp delmont] RnJvbTogdGVrbWNAaG90bWFpbC5jb20gW21haWx0bzp0ZWttY0Bob3RtYWlsLmNvbV0gDQojIEkn
| 306379 [tekmc hotmai] I'm not sure what 'erring' code is
| 306385 [botp delmont] RnJvbTogdGVrbWNAaG90bWFpbC5jb20gW21haWx0bzp0ZWttY0Bob3RtYWlsLmNvbV0gDQojIA0K
| 306386 [botp delmont] RnJvbTogUGXDsWEsIEJvdHAgW21haWx0bzpib3RwQGRlbG1vbnRlLXBoaWwuY29tXSANCiMgdmFs
| 306423 [tekmc hotmai] t=Time.new
| + 306426 [tekmc hotmai] File.open("genver.txt", 'r').each do |x|
| | 306434 [xuanpa gmail] Instead of c.chomp! as it was suggested, use c=3Dc.chomp(" ") before the
| | + 306445 [tekmc hotmai] Thanks, works great!
| | + 306472 [botp delmont] # Instead of c.chomp! as it was suggested, use c=3Dc.chomp(" ") before =
| + 306469 [botp delmont] RnJvbTogdGVrbWNAaG90bWFpbC5jb20gW21haWx0bzp0ZWttY0Bob3RtYWlsLmNvbV0gDQojIHQ9
+ 306382 [shortcutter ] c.chomp!

^ TkTable
306378 [ponravikumar] I am new to Ruby.
306388 [nagai ai.kyu] If you really need TkTable extention and already installed the
306390 [ponravikumar] Thank you very much for quick reply.

^ Free-money.com:Your Guide to Free Money on the net
306380 [free_money_d] Free Money (www.free-money.com) is a one stop destination in the

^ Hot mangasížNaruto 406, One Piece 505, Bleach 328
306392 [mangaboy002 ] Hot mangasížNaruto 406, One Piece 505, Bleach 328

^ watir , access is denied
306394 [pradeepta.sw] I am trying to insert data into text field of a frame ,however i
+ 306406 [kyleaschmitt] Well, show us the code :)
| 306616 [pradeepta.sw] here is the code that i'm using 2 access a frame
| 306684 [kyleaschmitt] Pradeepta, did you go through the suggestions on this page like Bret suggested?
| 306792 [pradeepta.sw] ya kyle , i have followed all the steps given in watir FAQ,like adding
+ 306410 [bret pettich] Please see the Watir FAQ, which has a section for this question.