314224-364982

314055-350564 subjects 314491-382320

Oniguruma question
314224 [kenneth.m.mc] For those adventurous souls who are already using Oniguruma...
+ 314234 [shortcutter@] Your reasoning about ".+" is wrong. Non greedy matching does only mean
| 314263 [kenneth.m.mc] I'm writing a library to make re's easier to use :-) This is in the
| 314298 [shortcutter@] This one won't match after "aa".  Instead it will match "aa".  I do not
| 314345 [kenneth.m.mc] It was part of a unit testing suite. I did figure out where I was
+ 314290 [perrin@ap th] =20
  314291 [kenneth.m.mc] 'Cause I'm a Ruby newbie who's still learning this stuff :-)
  314296 [perrin@ap th] Ah!  I understand.

"Pointer" to an object? (i.e. reflect changes to original)
314235 [41mortimer@g] I've already made a post similar to this on the Rails list, so I
+ 314242 [dblack@ru yp] Assignment means breaking the binding between the identifier and the
+ 314257 [calamitates@] ...

can not use AR to save french and japanese
314238 [lanwen.bangb] i had a strange problem that i can not use ActiveRecord to save french

[ANN] Mack Framework 0.7.1
314241 [markykang-ru] The distributed web application framework has reached version 0.7.1.

[ANN] Ruby Manor: Now with less vapour
314248 [murray.steel] ...

[ANN/ADV] "Scripted GUI Testing with Ruby" book
314250 [undees@gm il] Been meaning to post this here, and the one-month milestone seems as

[ANN] rutema 0.9.0 Released
314251 [damphyr@fr e] rutema version 0.9.0 has been released!

Re: "Pointer" to an object? (i.e. reflect changes to origina
314252 [41mortimer@g] Okay, but...well, I'll comment more on this in a minute.
314255 [dblack@ru yp] It's a radical change because it adds a completely new axis to the
314265 [41mortimer@g] Peter,
+ 314275 [41mortimer@g] Impressive.  It works exactly as it should.  Both lambda and proc work
+ 314283 [dblack@ru yp] Yes; the lambda carries its local scope with it, so wherever it's
  314330 [B.Candler@po] Not exactly.
  314333 [dblack@ru yp] I think the statement as written is correct: lambda and proc are the

soap4r - where to get it ?!
314254 [mailforgilbe] need soap4r + httpclient to access a microsoft
+ 314256 [mailforgilbe] OK, gem install ... worked as root
| 314266 [       m@t. ] have th time to have a deeper look at it, but it may be worth a try.
| + 314267 [mailforgilbe] OK, thanks, somehow didn't see the rubyforge link
| + 314269 [mailforgilbe] OK, thanks, somehow didn't see the rubyforge link
| + 314270 [mailforgilbe] OK, thanks, somehow didn't see the rubyforge link
+ 314259 [ruby@th ma z] not 404... site seems to be down right now. Try
  314271 [mailforgilbe] Ok, thanks, that works.
  314312 [      m@r. o] yes.

Is this a sensible implementation for Array#group_by ?
314260 [toastkid.wil] I was looking for a method to split an array into smaller arrays based
314264 [adam.shelly@] It seems sensible to me, although I'd use a hash instead of a
+ 314277 [s.korteling@] (...)>
| 314305 [toastkid.wil] ah...we're still on 1.8.6 round these parts.  We need to change up
+ 314304 [toastkid.wil] I thought about a hash first, but for some reason shied away from a hash
+ 314306 [erikveen@gm ] Indeed, Facets does have an Enumerable#group_by. And it has an
  314309 [toastkid.wil] Facets - investigates again... now that is *very* good indeed.  Wow.  I
  314311 [shortcutter@] If I would want to do it myself, then I'd probably do

ActiveRecord::StatementInvalid in UserController#login
314261 [simon.slater] I am trying to implement the authentication code that is in the book
314262 [maran.hidske] def self.authenticate(login,password)

Access webservice on IIS with kerberos
314273 [mailforgilbe] i need to access a webservice running on

Testing the Gateway
314278 [james@gr yp ] Please ignore.

Rinda: random ECONNREFUSED error
314281 [andreas_s@ho] ...
314287 [jcmoore@pr s] Good question. I can never get primary() to work either.
314335 [andreas_s@ho] ...
314369 [jcmoore@pr s] I wish I knew for certain...I spent some time looking at it a few months

Re: convert ascii codes in a string to a string of character
314284 [renard@nc rr] irb(main):029:0> a="abcdef"

Need help translating Ruby code
314294 [hekevintran@] have a Ruby program that uses the mechanize library to connect to a Web
314342 [damnbigman@g] ...

CUDA bindings?
314295 [jzakiya@ma l] I was wondering if anybody has (is thinking of) creating CUDA
+ 314347 [jan.dvorak@k] I was thinking about that few months back, but didn't really get to it due to
| 314786 [matt@te hn r] Actually, I am interested and I'll be a number of the folks on the Beowulf
| 336432 [   exn@bk ru] I'm interested too =)
| 336433 [tony@me io .] I know the Rubinius people were interested in using GPU-type features or
+ 345254 [jinx@ji xd s] Not quite CUDA, but I've written a very simple OpenCL wrapper library
  364982 [kappa@ps la ] I think this posting falls into the category of being a replay to a

[ANN] Drake: Distributed Rake
314299 [quixoticsyco] = DRAKE -- Distributed Rake
+ 314308 [ninja@sl ph ] My first reaction was, "So hows is this different than Rake again? Rake has
+ 314343 [jos@ca no k.] Does Drake properly clean up its children if it is aborted with SIGINT? ISTR

[ANN] CompTree: Parallel Computation Tree
314301 [quixoticsyco] = CompTree: Parallel Computation Tree

[ANN] MacRuby 0.3
314303 [laurent.sans] It is a great pleasure to announce the immediate availability of
314341 [nineclue@gm ] ...
314361 [laurent.sans] Thanks for the report, it was a bug in the installer process. I fixed

collect
314310 [sijo@ma xi n] I have to collect mail addresses like below
314315 [sijo@ma xi n] Here I tried like

Re: Drake: Distributed Rake
314313 [quixoticsyco] The same thing you do with a Makefile that isn't j-safe: (1) write the
+ 314316 [quixoticsyco] I forgot to mention that there is a good reason for the gem-only
+ 314346 [ninja@sl ph ] Still going to be a fair number of cases of (3), I imagine: use locks to
| + 314353 [transfire@gm] Hmmm.... this is not backward compatible. Things could go very badly
| | + 314355 [forall.x@gm ] % gem install drake
| | | 314358 [forall.x@gm ] % sudo chmod +x /var/lib/gems/1.8/gems/drake-0.8.1.11.0.1/bin/drake
| | | 314382 [quixoticsyco] It must be pulling the old rake libs.  In all my tests the gem has won
| | + 314373 [quixoticsyco] There is a mathematical reality we cannot avoid, from which
| | | + 314376 [martindemell] Yes! If you want it differently, you write in the ordering explicitly
| | | | 314377 [quixoticsyco] Yes, however my point was that if we agree this
| | | | 314378 [martindemell] A --file-order-implies-dependency flag might get us there in a lot of
| | | | + 314379 [quixoticsyco] STR
| | | | | 314381 [jos@ca no k.] I'm misremembering. SIGINT seems to work okay, it's SIGTERM that leaves
| | | | | 314557 [jim@we ri hh] What would be a good way to fix this?
| | | | | 314642 [jos@ca no k.] I'm probably being naive, but couldn't rake catch SIGTERM and handle it the
| | | | + 314391 [quixoticsyco] But I thought we just agreed those two forms should be the same?  Now
| | | |   314404 [martindemell] They *should* be the same, but if we're discussing legacy rakefiles
| | | |   314415 [transfire@gm] *should*? How is one correct and the other not? They are just
| | | |   + 314435 [jim@we ri hh] Just to clarify:  In standard rake x, y and z will be invoked by task a
| | | |   | 314446 [transfire@gm] Ah, so by design you consider it a bug. You could have fixed that from
| | | |   | 314452 [jim@we ri hh] (1) Guarantee that rake will invoke the prerequisites in the defined
| | | |   | 314495 [transfire@gm] F =3D []
| | | |   | + 314508 [drbrain@se m] They aren't potentially broken, they are broken.  If it happens to
| | | |   | | + 314511 [forall.x@gm ] did you do it?
| | | |   | | | + 314536 [drbrain@se m] I evaluated a prerelease copy.  I've not yet tried this release.
| | | |   | | | + 314537 [quixoticsyco] Did you see my response above?  What is the output when you run drake
| | | |   | | + 314546 [transfire@gm] There's no such thing as luck in computer programming.
| | | |   | + 314558 [quixoticsyco] Underspecified dependencies + parallel execution =3D=3D ambiguous behavior
| | | |   |   314561 [transfire@gm] They are only unspecified according to an interpretation of how things
| | | |   |   314564 [quixoticsyco] Trans,
| | | |   + 314556 [jim@we ri hh] Because one assumes a dependency that is not explicitly declared.  Rake
| | | + 314562 [ninja@sl ph ] That's not always the problem. Given that Rake itself doesn't guarantee any
| | + 314380 [transfire@gm] I thought someone else might notice it and elaborate but there is
| |   314441 [jim@we ri hh] As stated before, assuming execution order amoung dependencies is a bug
| + 314371 [quixoticsyco] If by "non-thread-safe libraries" you mean a library whose Rakefile is
| | 314560 [ninja@sl ph ] Which is, by the way, one of the most irritating things about Makefiles.
| + 314439 [jim@we ri hh] Actually, multitask will run all of the tasks dependencies in parallel,
+ 314438 [jim@we ri hh] I'm not quite sure what you are saying here, but if you are trying to
  314554 [quixoticsyco] I did not mean to imply there was something wrong with standard Rake.

Extending standard library by priority queue or search tree
314317 [artem.vorozt] I'd like to have guide for C++ programmers who wants to learn Ruby.
314327 [shortcutter@] Bad idea since this will change the character of Hash completely -
314359 [vjoel@pa h. ] require 'rbtree'
314364 [artem.vorozt] Thank you all!

FXRuby run error under NetBeans
314318 [MAwiniarski@] Greetings,
+ 314337 [lyle@ly ej h] FXRuby only works with the traditional C-based Ruby interpreter; it
+ 314366 [lrlebron@gm ] You may want to check which ruby platform your Netbeans project is set
  314449 [MAwiniarski@] True. I've change Ruby Platform to pure ruby and it works.

postgres (or pg) closes backend on exit
314319 [han.holl@gm ] ...

smpp
314321 [pizzato@pi z] does anyone have some experience with SMPP in Ruby?
+ 314322 [farrel.lifso] The only API I've ever seen is  http://rubyforge.org/projects/ruby-smpp/
| 314325 [pizzato@pi z] I see it too. but I don't want to use Eventmachine. any ideas?
| 318039 [augustzf@gm ] EventMachine is awesome and harmless and that's why ruby-smpp uses it.
+ 314437 [no@sp m. le ] Not SMPP, but my gem that wraps libwbxml might help. Simply
+ 363158 [ineedme@gm i] try this

Expectations : help
314334 [michel@de az] def expect_true &block

Local variable in loop affects callcc
314349 [suranap@gm i] I was trying to do some simple backtracking, but it kept failing for
+ 314351 [dblack@ru yp] I haven't unraveled it entirely but I believe it's not about the local
| 314357 [suranap@gm i] anyway because x is not used. I want to do something with the value of
+ 314497 [sean.ohalpin] Like David, I haven't fully unravelled this myself, however it appears
| 314565 [jim@we ri hh] Ko1 once showed me a trick with continuations and local variables.
+ 314690 [pit.capitain] If you change the #testcc method a little bit, you can see what's
  314723 [suranap@gm i] I modified your code to verify that the continuation is jumping back
  314806 [pit.capitain] What I wanted to show with the modified example is that AFAIK local

unsubscribe
314354 [dipen001@ho ] ...

How to access a method in the parent class
314367 [ibc@al ax ne] module M
314370 [jcoglan@go g] ...
314372 [dblack@ru yp] ...
314374 [ibc@al ax ne] Thanks a lot. Maybe I should re-desing the code to avoid using things so

problems with oniguruma lookahead
314375 [ruby_forum@g] Ruby 1.8.6 with Oniguruama installed and working (everywhere else, this
314419 [shortcutter@] irb(main):001:0> s="<p><b>'Algebra'</b><br>"
314472 [ruby_forum@g] Ah, thank you very much.  My regex learning was with PHP (PCRE, not

yield/block question
314384 [kenneth.m.mc] This is something I know how to do in Python, but it's got me
+ 314386 [martindemell] array.flatten.each {|i| yield i}
| 314389 [kenneth.m.mc] Very elegant, with the drawback that it requires flattening a
+ 314388 [serabe@gm il] What about this?
  314390 [kenneth.m.mc] Perfect, just what I was looking for. Thanks,
  314420 [shortcutter@] This can be generalized to Enumerable.  Still a handicap is that this

modal dialog handling
314385 [huyingtuo@gm] I'm using watir 182(the version that supports modal dialog) to automate

YAML doesn't seem to be working properly
314393 [eric-ruby-ta] ...
+ 314453 [brabuhr@gm i] $ ruby -v
+ 314467 [shortcutter@] 1.8.7
+ 314550 [eric-ruby-ta] I'm not 100% sure that's the culprit, but it seems highly likely.  I'm

about String.sub
314394 [kdream95@gm ] in javascript
+ 314401 [botp@de mo t] # in javascript
+ 314416 [tpreal@gm il] str.sub!(/aaa\((.+)\)bbb/){'AAA(' + $1 + ')BBB'}

MyndSnare - Conditioned: Human Album Launch
314399 [kpkrishnamoo] ...
+ 314406 [kpkrishnamoo] ...
+ 314407 [kpkrishnamoo] ...

Ruby Bug? Windows and UDPSocket and Errno:ENOTCONN
314402 [john.carter@] If I have a pair of Win2k Ruby processes bouncing UDP packets back and
314410 [billk@ct .c ] @@ -28,7 +28,6 @@
314544 [john.carter@] I thought, hmm, I'm pretty sure thats what I tried first....

How to pick up dropped script automatically, active records.
314405 [marc.hoeppne] I have been using Ruby for a while now - so I have a reasonable
+ 314459 [raasdnil@gm ] I recently made a similar system.
+ 314466 [ruby@th ma z] What you want is a message queue solution. These do exactly what you

How to change the owner of a method in a block?
314422 [ibc@al ax ne] class A
314425 [etaern@ya oo] def initialize(&blk)
314426 [ibc@al ax ne] Really great :)
314427 [botp@de mo t] # >> Benchmark.realtime { instance_eval 'a=123; a2=a*2; a3=a*3' }
314430 [ibc@al ax ne] You are right!
314542 [botpena@gm i] well, we can try again :)
314553 [ibc@al ax ne] e.

problem in window service
314424 [slogeshwaran] Actually i am new for ruby, i done mail sending  application in

invalid char '\220' in expression
314428 [MAwiniarski@] Greetings,
314429 [larsch@be un] By coincience, I stumbled over the exact same error message yesterday
+ 314450 [MAwiniarski@] I'm using it with NetBeans Rails project, running Rake Task db:create
+ 314509 [MAwiniarski@] Maybe *.so files needs to be saved in a different encoding (ASCII,
  314515 [jan.svitok@g] .so is usually renamed dll file (on windows) or the library itself (on
  314615 [MAwiniarski@] While using gems with NetBeans,
  315758 [MAwiniarski@] The answer to topic question is to use pure Ruby interpreter in

[ANN] Rake 0.8.2 Released
314431 [jim@we ri hh] = Rake 0.8.2 Released

Ruby equivalent of Integer.toHexstring(int) method in java
314440 [anilkandimal] gives the same output as given by Integer.toHexstring(int),but unable
+ 314443 [shortcutter@] irb(main):001:0> 123.to_s 16
+ 314447 [dandiebolt@y] ...

Templates in Ruby
314442 [harshad@gs a] I have a created a dll using c# .net. I am trying to access this dll

can play wav file on XP but not on Vista
314445 [chen_li3@ya ] I know this is not a Ruby-related question but I wonder if anyone there

Re: Ruby equivalent of Integer.toHexstring(int) method in ja
314448 [etaern@ya oo] if you don't like the ruby way , you could call that method directly

Error when running an exe created with rubyscript2exe
314451 [pihentagy@gm] I've successfully created an executable with rubyscript2exe and

Please explain that
314454 [pilz@os -d .] Can you please explain this behaviour ?
+ 314455 [fxn@ha hr f.] On the one hand a leading "0" in an integer literal like that tells
+ 314456 [rimantas@gm ] fix.to_s( base=10 ) -> aString
+ 314457 [gregory.t.br] => 57
| 314460 [fxn@ha hr f.] In fact the application itself has no sense of bases, applications
| 314463 [gregory.t.br] Right, I was mainly referring to the defaults for interacting with
+ 314458 [jan.svitok@g] It's not an octal number anymore when it's parsed. It's just a number.
+ 314468 [ruby@an hr p] Check the docs for Fixnum#to_s. It takes a base argument, which defaults to

Difference between "sleep()" and "Thread.stop"?
314461 [ibc@al ax ne] sleep
314462 [shortcutter@] #sleep resumes automatically after a given time, #stop does not.
314464 [ibc@al ax ne] sleep  # This sleeps forever
314469 [shortcutter@] I wasn't aware of that.  Learn something new every day. Thanks!

How to operate on 2 arrays simultaneously?
314470 [wpdster@gm i] There has got to be a more elegant solution than this.  Suppose I have
+ 314471 [james@gr yp ] a.zip(b).map { |l, r| l + r }
+ 314473 [ara.t.howard] a = 0,1,2
| + 314478 [wpdster@gm i] Arrghh!
| + 314480 [shortcutter@] Well, if you want to avoid the temp Array you can do
+ 314474 [dandiebolt@y] a=[1,2,3]
| + 314475 [jcribbs@ne p] Take a look at the zip method.
| + 314476 [matt@ti bi s] So did I until the other answers in this thread taught me about zip! :)
|   + 314477 [ara.t.howard] be careful with zip
|   | + 314485 [martindemell] zip takes a block, even in 1.8, though sadly it yields without
|   | + 314505 [matt@ti bi s] Everything in Ruby is a pointer. If a[0] is a pointer to a "big long
|   |   314512 [ara.t.howard] not really
|   |   314516 [vjoel@pa h. ] It's less dramatic when the entries are not nil (or fixnum etc)--I think
|   |   314518 [ara.t.howard] true enough - my point is that the block form is much better when the
|   |   314635 [matt@ti bi s] Definitely relevant, too, since the block form is quite sufficient for
|   + 314479 [dandiebolt@y] Instead of .zip I use .transpose as it is easier to remember and makes more sense mathematically
+ 314649 [peter.bunyan] Posted via http://www.ruby-forum.com/.
  314654 [caduceass@gm] Yeah, that's probably what I would do for a simple script.  I haven't
  319740 [aarmbruster@] I just ran into a similar problem, and I thought it fits into this
threads.html
top