222274-224308
222053-223497 subjects 222477-225207
^ reading variables in a file
222274 [ogrecio gmai] I'm thinking of migrating from Fortran to Ruby. Do you think i should go
+ 222277 [farrel.lifso] File.open(file) do |f|
+ 222278 [rtilley vt.e] irb(main):001:0> x = 'Peter 4 1990'
+ 222279 [naPOLeon.Pol] var = Array.new
+ 222283 [hgs dmu.ac.u] You might just want to do the text processing in ruby, and invoke
+ 222284 [kabigon gmai] That entirely depends on what the application is, if you currently use a
^ Recommendation for a beginner's ruby book/tutorial
222282 [eric.mahurin] For someone who knows very little programming, what is the best book to get
+ 222286 [Gemma.Camero] I would say the best online book to go for is "The Little Book of Ruby"
+ 222287 [TimHunter nc] Welcome to Ruby!
+ 222288 [louis.j.scor] I was poking around with the "Try Ruby!" tutorial the other day for
+ 222395 [james.britt ] James Britt
+ 222464 [tom.armitage] another vote for the Chris Pine, probably in online form but you might
^ Upgrading to v1.8.5 on Mac 10.4
222314 [behmannlist ] Just in case anyone else is still having trouble upgrading to v1.8.5
222327 [pere.noel la] some times...
^ Bug segmentation fault
222321 [wai-kee.chun] I am trying to display the contents of large array (over 1000 rows)
+ 222324 [gavin.kistne] I have no idea if it will make a different, but do you realize that by
| 222333 [djberg96 gma] True, but it shouldn't segfault in any case. I'm curious what the
| 222346 [shortcutter ] require 'pp'
+ 222356 [tim.pease gm] ruby --version
+ 222607 [matz ruby-la] This kind of bug is often too difficult to track without error
^ classless methods
222328 [bitdoger2 ya] what class does a classless independent method belong too?
+ 222334 [djberg96 gma] Kernel.
| 222355 [djberg96 gma] Whoops. Make that Object.
+ 222344 [transfire gm] Not Kernel, it becomes a private method of Object class.
| 222347 [nicksieger g] irb(main):001:0> def hello; "hi"; end
| 222350 [gavin.kistne] irb is messing with your head here. Try the same as a standalone Ruby
| 222354 [nicksieger g] Good catch, thanks for the correction.
+ 222351 [ruby-ml kitt] Ruby can tell you.
+ 222364 [matt tidbits] <http://www.rubycentral.com/faq/rubyfaq-7.html#ss7.4>
222366 [jason.merril] And since Object is an ancestor of pretty much everything in ruby,
+ 222373 [gavin.kistne] You're being fooled by some tricks that irb plays to make itself work.
+ 222381 [matt tidbits] But that's just a vagary of how irb works. You couldn't do that in a
222387 [hgs dmu.ac.u] Why not? say_hello is now a method of Object, an ancestor of [1,3,5].
222389 [matt tidbits] matt-neuburgs-imac-g5:~ mattneub$ ruby
+ 222438 [srdjan.marin] def widget(tidbit)
| 222441 [toalett gmai] # test.rb
| 222466 [srdjan.marin] very good point, I guess in my post I made a mistake of not thinking
+ 222944 [hgs dmu.ac.u] Thank you. Saw the other post about that being a private method after
^ adding soap element attributes
222343 [ajtongen war] I have a question that I hope will be simple for someone to answer.
222598 [nakahiro sar] Unlucky.
222961 [ajtongen war] Thanks Hiroshi, that got me started. Soap4r is great, I just wish this
223470 [nakahiro sar] You need to define the service as a document service when you want to
^ To folks who talked to me about Ruport during RubyConf
222349 [gregory.t.br] We've got a great thread going on on Ruport mailing list where people
^ unable to send to the mailing list
222352 [pbrannan atd] All the messages from pbrannan@atdesk.com to ruby-talk@ruby-lang.org in
+ 222357 [tim.pease gm] It seems to be working now :)
| + 222359 [pbrannan atd] It's working because I'm sending via www.ruby-forum.com rather than
| + 222384 [hgs dmu.ac.u] No, it was posted from a forum -- you trimmed that bit.
+ 223005 [pbrannan atd] testing...
223006 [pbrannan atd] So I'm able to work around the problem by modifying my .muttrc to relay
^ how to get only the duplicatet items from an array
222360 [nico nico-la] is there a oneline to get only the duplicatet item from an array?
+ 222367 [nospam nosit] / ...
| + 222370 [gavin.kistne] a = [1, 1, 2, 2, 3, 4]
| | 222377 [nico nico-la] thanks, yes sir,
| | 222390 [rtilley vt.e] irb(main):006:0> a = [1,1,2,2,3,3,4,4]
| | 222523 [william.fisk] => ["a", "b", 7, 77, "a", "ba", 3, 7]
| + 222378 [nico nico-la] thanks paul,
+ 222372 [wilsonb gmai] irb(main):001:0> h = Hash.new(0)
+ 222383 [mike rubywiz] => [1, 2]
^ can there be a "with" construction?
222362 [matt tidbits] Some languages have a "with" construction, where undefined methods are
+ 222368 [nospam nosit] Not AFAIK. IMHO the ultimate "with" construction is to create a class or
+ 222369 [lukfugl gmai] system.startup.instance_eval do
| + 222374 [Gennady.Byst] Something like this?
| | + 222375 [gavin.kistne] def with( obj, &block )
| | + 222380 [lukfugl gmai] 1) I don't think we really want to redispatch NoMethodErrors for
| + 222382 [matt tidbits] def with(ref, &block)
| 222385 [Gennady.Byst] Hmm... I must have misunderstood the OP. I somehow thought that in
+ 222386 [johnwilger g] $with_receivers = []
| 222434 [johnwilger g] OK, it was bothering me enough that I went ahead and fleshed out a
+ 222391 [invalid gmx.] class Object
| 222398 [invalid gmx.] Kalman
| 222400 [vjoel path.b] See also the discussion of #then yesterday on ruby-talk. It's defined
| 222728 [invalid gmx.] It seems that this pattern has been quite popular for some time already.
| 222811 [poopdeville ] I suppose I'll cast my vote for either "with" or "suchthat" or even ":"
| 222938 [invalid gmx.] Yes, that's too why I like »with«.
| + 222940 [gavin refine] To be clear, 'eigenclass' was one (popular) suggestion among many for
| | 222985 [darkintent g] Is the behavior the original poster asks about analogous to the the
| + 223015 [poopdeville ] Whoops, sorry. I read your sentence as saying it was *impossible* to
+ 222410 [pbrannan atd] See [ruby-talk:41867] and the following thread.
222416 [bitdoger2 ya] shouldn't this .with method be better evaluated with the method_missing?
^ [ANN] Ice for Ruby Preview Release
222371 [marc zeroc.c] The Internet Communications Engine (Ice) is a modern, object-oriented
+ 222665 [emiel vandel] This rocks. I've been kind of waiting for this a while now. :)
+ 222718 [ruby ml.icem] This sounds really neat - alas, I have one question about it - according
^ Re: MountainWest RubyConf 2007: Call For Papers
222393 [djberg96 gma] Where will it be held?
222448 [james.britt ] Where on the map will this be?
^ RubyForge down...
222404 [jfperusse gm] I can't access the RubyForge website...
222409 [collinsj sea] It works for me.
222411 [jfperusse gm] Strange... I have no problems with other sites. RubyForge hangs Firefox
+ 222414 [collinsj sea] It seems a little slow, but I can ping it and view it. Are you using
| 222417 [jfperusse gm] I was trying http://rubyforge.org.
+ 222419 [ara.t.howard] your dns is hosed.
222423 [djberg96 gma] Undoubtedly caused by someone not paying attention to Quebec's locale
222426 [james graypr] <dies laughing>
222428 [jfperusse gm] "H h!" ;)
^ What are closures, continuations?
222408 [joeat303 yah] - Ruby has closures -- which seem to be returning procs from functions?
+ 222412 [collinsj sea] Closures are tricky, but you can think of them as blocks of code, or a
| + 222420 [joeat303 yah] One more question -- what are lambdas? ;)
| | + 222424 [gavin.kistne] Closures are functions that retain access to local variables declared in
| | | 222425 [gavin.kistne] Another name for anonymous functions - functions declared on the fly
| | + 222430 [matt tidbits] This is a term from LISP. It basically just means a function that you
| | + 222472 [Joerg.Mittag] Actually, it is a term from Lambda Calculus, which existed long before
| | | 222479 [toalett gmai] The lambda calculus took it from the Greek Alphabet, who adapted it
| | | + 222480 [sylvain.joye] A lambda is not necessary a closure. A lambda is an anonymous function (and
| | | + 222484 [louis.j.scor] Right. It's best just to think of lambda as a way to get anonymous
| | + 222482 [pere.noel la] is that "lambda" name derived from lambda calculus in modern logic, or
| | 222548 [kmgaughan ei] The former. The lambda calculus was on the scene long before Lisp was a
| + 222481 [pere.noel la] could we say they work as anonymous class in java ???
| 222486 [shortcutter ] There are some similarities but also restrictions. For example you can only
| 222490 [pere.noel la] u're right !
+ 222431 [matt tidbits] <http://www.rubycentral.com/faq/rubyfaq-11.html>
+ 222436 [toalett gmai] Continuations represent "the rest of the computation". Try googling
| + 222443 [gavin.kistne] [snip crazy example]
| | 222455 [louis.j.scor] Err...closures and continations? =)
| | 222461 [joeat303 yah] Obsfucated code contests? ;P
| + 222491 [pantulis gma] This example reminded me of Modula-2's coroutines. Are these
| 222493 [brad bradedi] Since continuations represent the state of the computation including
+ 222499 [gdprasad gma] Prasaad
^ Re: How can I populate header values in SOAP document?
222429 [Brian.Hartin] Thanks Jeremy! This worked pretty well. I still have to hardcode the
^ Another nail in CygWin's coffin (attached)
222432 [znmeb cesmai] Austin is basically right -- *nobody* should use CygWin as a Windows
+ 222435 [ruby philip.] I haven't followed this thred so don't know if it's been mentioned, but if
| 222440 [rob ocstech.] I believe coLinux was mentioned a few times in that thread ;)
| 222451 [gethemant gm] "Austin is basically right -- *nobody* should use CygWin as a Windows
+ 222494 [tomp earthli] Actually, I think Cygwin is a pretty reasonable platform for porting
| 222515 [halostatue g] So. Is your company's product open source? Because if it isn't, and
| + 222518 [tomp earthli] Thanks for your concern, but I didn't say we were using the Cygwin
| + 222519 [reid.thompso] Actually that would only be true if they were distributing it without a
| + 222552 [rob ocstech.] I think this is where we got off track.
+ 222514 [robert.dober] Ed, Austin what shocks me is that you claim to know what somebody else
+ 222558 [charles.nutt] d. realize how maddeningly frustrating it is when the Windows tool is
222751 [hramrach cen] I use msys [1] when I want something like unix environment on Windows.
222753 [ara.t.howard] i've compiled both the gnu scientific library, narray, and rbtree packages for
222827 [znmeb cesmai] Yeah, the R Windows folks use MSys and eschew CygWin. I should try
^ upgrade on OS X
222442 [tmac easystr] charset=US-ASCII;
222478 [hutch recurs] The ruby as shipped by apple is not in the same place on disk as the
+ 222524 [znmeb cesmai] Has a bug been filed on this? Is it unique to Macs, or will any gcc 4
| 222620 [hutch recurs] Yes, it is 'well' known to apple and the GNU folks. My understanding
+ 222660 [tmac easystr] charset=US-ASCII;
^ Killing a windows process
222444 [joevandyk gm] I'm starting a bunch of processes using win32/process
+ 222445 [gavin.kistne] ...
+ 222447 [phurley gmai] signal = 4 # or 9 if you really want to take it out :-)
224308 [joevandyk gm] I'm using win32/process's Create function to start a new Windows
^ SouthWest RubyConf?
222453 [james.britt ] Is anyone aware of, or interested in helping prepare, plans for a U.S.
+ 222759 [adam thereal] I'm toying with the idea of organizing one in Dallas, TX. Not sure
| + 222763 [dblack wobbl] Since we had a RubyConf in Austin, I guess RubyConf is "really
| + 222786 [sam powersou] I'm in Houston, TX, so I would be interested ... pending knowledge of
+ 222766 [christopher.] I would be willing to run the idea up the flagpole around Durango,
+ 222848 [mike clove.c] Yeah - I'm interested in helping.
222942 [pat.eyler gm] I was just extrapolating from your comment about missing denver and
+ 222945 [znmeb cesmai] It's addicting? *Now* you tell me!
+ 222946 [dblack wobbl] That's correct; RubyConf is still a going concern, but Ruby Central
+ 222947 [james graypr] Great progress Pat. The first step is admitting that you have a
| + 222948 [pat.eyler gm] You make it sound like I want to recover or something. ;^)
| + 222950 [jeff schwabc] Who says it's a problem? :)
+ 222969 [james.britt ] That's the goal, at least. Have more Ruby events, smaller and more
| 223033 [gilesb gmail] This does seem like a good thing. I may be planning to go to
| 223036 [pat.eyler gm] The 20th through Easter are all bad times here as well.
+ 223156 [james.britt ] That's the goal, at least. Have more Ruby events, smaller and more
^ Ruby on AIX. Again.
222458 [matt technor] Since AIX now supports RPM as a package format, I would like to build a
^ regex blindness
222459 [josselin wan] I was blind yesterday .. could not find what's wrong in this regex (and
+ 222463 [nospam nosit] State the problem, not the solution. Describe the exact requirements to be
+ 222465 [shortcutter ] irb(main):001:0> /(?:x)/
| 222574 [josselin wan] thanks for your advice, removing the k flag was the k-point..
+ 222646 [chneukirchen] Yes, try /@/.
^ Efficient parsing of large Excel documents in Ruby
222460 [weyus att.ne] All,
+ 222462 [doktormadsen] You should definitely use win32ole. This way, you can cut down memory
| 222510 [matt tidbits] Interesting. Just as a note, everything that happens on that page can
+ 222512 [ssmoot gmail] I agree with Christian, but with a twist.
| 222517 [weyus att.ne] I was definitely thinking about using win32ole/Excel to convert this
| 222522 [znmeb cesmai] Have you tried unixODBC? It seems to work fairly well, although there
| + 222531 [weyus att.ne] Ed,
| + 222577 [weyus att.ne] Hpricot? I thought that only parsed HTML? Can you say a little more
| 222579 [weyus att.ne] Ah, are you saying that I can "publish" the Excel file into HTML through
+ 222526 [znmeb cesmai] Yes, there is a native way of doing this in VBA from a macro, which you
+ 222556 [charles.nutt] Another rough option would be using JRuby or one of the Java bridges to
222576 [weyus att.ne] Charles,
222585 [charles.nutt] We appreciate the vote of confidence, and you're probably right about
+ 222770 [weyus att.ne] I'm looking at RJB and it appears that it only loads the JVM into memory
| 223230 [weyus att.ne] Recently, I was confronted with a task in one of the apps. I'm building
| 223231 [znmeb cesmai] That seems to me to be an awfully roundabout way of doing things. I
+ 222807 [ssmoot gmail] Using WIN32OLE is actually simpler than c# since you have access to the
^ regexp to match CJK characters
222467 [0xcafebabe 1] How can I write a regexp to match CJK characters?
222505 [nospam nosit] print "Yes!" if varname =~ /^CJK$/
222509 [david vallne] post.
222516 [0xcafebabe 1] Yes, so how can write the regexp? thanks a lot
222538 [ jupp gmx.de] Which encoding?
222562 [0xcafebabe 1] UTF-8
222626 [dido.sevilla] You may need to use the Oniguruma patch. I believe this is necessary
222687 [matz ruby-la] Regular expression comes with 1.8 does support UTF-8.
222689 [foamdino gma] does this mean though that you must do a match on an escaped character
222691 [matz ruby-la] You don't have to escape, if you specify -Ku or $KCODE='u'.
^ [ANN] Ruby-VPI 9.0.0
222468 [skurapat ucs] Version 9.0.0 (2006-10-28)
^ how to import variable from other .rb file?
222469 [vipeak gmail] tool_mysql='X:/mysql.exe'
+ 222470 [jan.svitok g] 1.
| + 222471 [jan.svitok g] Except for the numbering ;-) Is seems I'm doing too many things at once...
| | 222473 [vipeak gmail] Thanks so much for you professinalism.
| + 222474 [vipeak gmail] Is here anyone who can help me?
| + 222475 [dblack wobbl] If by "help" you mean change the way eval works, then no :-) Jan
| + 222476 [shortcutter ] What exactly does not work? Did you by chance test in IRB? That cannot be
| 222513 [ruby-ml kitt] be=20
+ 222527 [vjoel path.b] Using $globals or CONSTANTS is fine for simple programs, but these
222532 [vjoel path.b] $ cat config.rb
222568 [vipeak gmail] Ruby didn't has import method
threads.html
top