285984-286900 subjects 286400-357620

Regexp for matching UTF-8 characters without close tag
286185 [j.prabawa@gm] string = "\302</u>"
286211 [giuan.m@gm i] require 'iconv'
286218 [j.prabawa@gm] My apologies. It seems that I have oversimplied the problem due to my
286254 [giuan.m@gm i] You have a broken utf-8 docoment (a read the Matz reply)
286332 [j.prabawa@gm] Thanks Tiziano :)

Connection Refused~~Please help
286186 [sim9739@ho m] I am new to ruby.
286313 [pstickne@gm ] Check your firewall(s).

parsing a csv using ; => ruby doesn't split the row
286187 [coder@mo tx ] I'm importing CSV files without problems, now, I have some of them that
286188 [giuan.m@gm i] CSV.open(arxiu.file_path , "r", ?;) do |row|
286190 [coder@mo tx ] thanks, it works now !
286257 [james@gr yp ] Just to be clear though, what you had originally is the new syntax
286262 [coder@mo tx ] ok, thanks again, I was using that syntax from some docs, and I didn't

common variable in a more than one process ?
286189 [bad_good_lio] is there any way to access a common variable in more than one processes
286202 [shortcutter@] Depends on the usage.  For values that change often you could use DRb.
286247 [mailing.mr@g] You can set variables before fork.

A file's creation date
286194 [pversteegen@] ...
286197 [pjb@in or at] Think ahead of time.  I mean, if you want to keep the creation time,
286200 [pversteegen@] Pascal,
286236 [pjb@in or at] IIRC, on HFS, the creation time is kept.   There's a command

[ANN] RubyKaigi 2008 in Tsukuba, Japan and CFP
286198 [l.g.chin@gm ] RubyKaigi 2008, the 3rd annual Japanese Ruby Conference, is scheduled
286265 [dave@pr gp o] I was invited last year, and I have to admit that I was nervous about

Create image, send to rails
286207 [macacoangel@] ...
286630 [macacoangel@] ...
+ 286646 [ara.t.howard] you ruby is broken.  this file cannot be missing in a fully functional
+ 286665 [jmrepetti@gm] ...
  286840 [macacoangel@] ...
  286937 [jmrepetti@gm] ...
  286947 [macacoangel@] ...

Re: RubyKaigi 2008 in Tsukuba, Japan and CFP
286213 [dejan.dimic@] It would be beneficial if screen casts would have at least English

[ANN] Vintage 0.0.1 - The super slim, micro web framework based on the idea of the old Merb
286221 [jeremymcanal] Vintage is a very small web framework based on the original idea of
+ 286227 [james.britt@] How does it compare to Nitro or Ramaze (neither or which requires you to
| 286234 [jeremymcanal] It's much simpler than Nitro.  It doesn't offer MVC at all, doesn't
| 286244 [james.britt@] Interesting; what attracted me to Nitro and Ramaze is that you can, if
| 286245 [jeremymcanal] Yeah I considered making MVC available but I think I'm going to stick
| 286431 [james.britt@] It looks quite slick, and I'll be poking around with it some more.
+ 286304 [jeremymcanal] I ported the Mongrel handler to Rack tonight and only sacrificed about
+ 286346 [ara.t.howard] this doesn't smell right.  on even a modest box i would expect merb
  + 286347 [jeremymcanal] No I didn't run those in production, but that's mostly because Vintage
  | 286350 [ara.t.howard] i can see you line of thinking, still, rails and merb both are
  | + 286357 [jeremymcanal] Right.  The point was to show how much _lighter_ it was rather then
  | + 286372 [garbagecat10] ...
  |   286373 [ara.t.howard] yeah - agreed on all parts.  however, would a real difference in api
  |   286382 [garbagecat10] ...
  |   286391 [khaines@en g] To clarify, I experimented with using it directly in Swiftiply, but went
  + 286417 [ml@sy th ti ] Before Jeremy even had a chance to port Vintage to Rack I swiped the
    + 286421 [ara.t.howard] unless you have session turned off you have to use the cookie and
    | 286436 [ml@sy th ti ] Sessions appear to be off by default in merb. Vintage doesn't have
    + 286435 [ezmobius@gm ] I think you made the classic mistake of comparing a merb template
      + 286438 [ml@sy th ti ] Thanks, still kicking merb's hubcaps.
      + 286567 [jeremymcanal] Well, to be all technical and whatever, Vintage's RequestContext

Convert bignum to numeric and formatting
286224 [dfl_maradent] I'm trying to format a Bignum such as 1012345556 into 1.012.345.556
+ 286226 [stefano.croc] Bignum is a subclass of Integer, which is a Subclass of Numeric.
| 286231 [dfl_maradent] So my question is, I'm afraid, how can I install the Numeric extension?
| 286233 [stefano.croc] gem install -r extensions
| 286237 [dfl_maradent] Ok,
| 286238 [stefano.croc] Yes, I forgot to add that you need to use
| 286239 [dfl_maradent] Ok, this works with the "require" statement (I've put it in
| 286246 [stefano.croc] ...
+ 286242 [TimHunter@nc] Leaving aside the Numeric extension for a minute, this bit of code
  286243 [dfl_maradent] Yes! This works great!

286255 [vjoel@pa h. ] How does one actually use miniunit, if the normal test/unit is present?
286514 [drbrain@se m] $ gem fetch miniunit

Rubygame on Mac OSX
286256 [fedzor@gm il] I am having some serious trouble installing Rubygame on Mac OS 10.4.11
286259 [fedzor@gm il] Yes, it turns out it does.

Chain, Chain, Chain (was Re: zed shaw zed shaw zed shaw)
286261 [rick.denatal] Okay,  I've been playing with doing this programatically.  I'm not yet
+ 286263 [tim.pease@gm] Saw that one in the theaters. Save your money and wait for the torrent.
+ 286268 [vjoel@pa h. ] Why didn't it find Thunder Road[1]? (And then maybe Road Trip to
  + 286277 [vjoel@pa h. ] This is not an optimization problem (not as stated so far, anyway).
  | 286294 [vjoel@pa h. ] Actually, what I overlooked is that Rick's original post said he used a
  + 286292 [onepoint@st ] I'm surprised  no-one's found a loop  yet.  Is there  one?  What's the
  | 286295 [chris@ru y. ] File.readlines('MOVIES.LST').find_all {|line| line.split.first ==
  | 286298 [onepoint@st ] D'oh!  Neat!  Any twofers?  (Nitpick: the code should eliminate single
  + 286303 [rick.denatal] Well first of all, because thunder road isn't on that list.

Rubygame Music and Audio Formats
286266 [fedzor@gm il] incorrect audio format" whenever I try to make a
286678 [shawn42@gm i] ...
286729 [fedzor@gm il] test.rb:9:in `load_audio': Error loading audio music from file `/

Metalink (XML) library for Ruby?
286270 [anthonybryan] Would anyone be interested in working on a Metalink library for Ruby?
+ 286342 [devi.webmast] Metalinks are very cool. There's some folks working on a wget
| 286716 [anthonybryan] On Jan 6, 2008 10:24 AM, Daniel Brumbaugh Keeney
+ 286828 [rene.leonhar] I would like to help porting my library to Ruby.
  + 286829 [frederick.ch] None of that's terribly difficult, I'd be happy to lend a hand (and I
  + 286869 [anthonybryan] Rene, that would be great if you & Fred could collaborate.

Marshal Pipe
286273 [carlosjhr64@] I've just re-discovered pipes.
286515 [drbrain@se m] You've written the core of DRb, which is these data pipes expanded to
+ 286553 [carlosjhr64@] Eric, thanks for your comment.
| + 286569 [shortcutter@] That line makes you eligible for a "useless cat award".
| | 286606 [carlosjhr64@] Thanks for your performance improvement suggestion.
| | 286610 [shortcutter@] No, this is not a problem because Marshal.load will take care of this
| | + 286620 [carlosjhr64@] ruby -e '10.times {|i| Marshal.dump(i, $stdout) }' | ruby -e 'until
| | + 286623 [carlosjhr64@] ruby -e '10.times {|i| Marshal.dump(i, $stdout) }' | ruby -e 'until
| + 286642 [ara.t.howard] check out ruby queue (rq) - it uses that paradigm but, instead of
|   286658 [carlosjhr64@] Yaml is find over internet connection where transmission time is high
|   286699 [shortcutter@] What does #pipe do?  Why don't you use a block for the processing of the
|   286708 [carlosjhr64@] <shortcutter@googlemail.com> said:...
|   286851 [carlosjhr64@] class MarshalPipe
|   286872 [vjoel@pa h. ] Use ARGF instead of $stdin, and you read files for free.
|   286877 [carlosjhr64@] Cool!!!  Thanks!  So
|   286879 [vjoel@pa h. ] csv2mp source.txt | ....
+ 286686 [fedzor@gm il] I'm really looking to get into DRb, but it's dsl and stuff is a

Newbie Books
286276 [mcutshall@co] ...
286278 [TimHunter@nc] buy the book. If you have questions, ask them here. There are many
286302 [jason.w.bail] McKenzie, it sounds like I am about four weeks ahead of you.  I hadn't

html parser with regex, how to solve?
286280 [grabber@gm i] ...
286291 [cwdinfo@gm i] $ irb
286296 [grabber@gm i] ...
286300 [qbproger@gm ] ele.text.sub('$', '')
286301 [grabber@gm i] ...

Ruby/IRB not seeing installed Gems, thoughts?
286282 [matthew.d.wi] Using "gem query --local" I'm returned a list of installed gems, one of
286287 [luislavena@g] On 5 ene, 22:21, Matthew Williams <matthew.d.willi...@gmail.com>
286289 [matthew.d.wi] Thanks, what a major duh moment.  Just needed a second set of eyes.

About rb2js converter...
286290 [z4n9ief@gm i] $ ruby /Users/cyril/Downloads/Ruby2JS/test.rb
+ 286293 [mguterl@gm i] ...
| + 286321 [mailing.mr@g] you might need to run ruby with -rubygems switch, or require 'rubygems'
| + 286322 [z4n9ief@gm i] It's perfect,
+ 286324 [mneumann@nt ] Seems like a Ruby to Javascript converter.

Pushing things Arrays
286297 [wally.terrib] ...
+ 286311 [pstickne@gm ] newCcnumber = []
+ 286319 [giuan.m@gm i] yes
  286331 [wally.terrib] Thanks. That was it. I suspected I was overlooking something simple. Now

Re: broken gems uninitialized constant Gem::CommandManager (
286308 [dtilley@ro h] Thanks for the replies. I ended up reinstalling gems and now things

Ruby Mentor project
286326 [thomas.adam2] I've been listed on the ruby mentors wiki [1] for some time now, and
+ 286338 [sonoflilit@g] The RubyMentor was an idea of mine, and a community member named
| 286341 [thomas.adam2] Ah, OK.   So it has fulfilled its original remit if nothing else then.
+ 286380 [wieczo.yo@go] Thank you for mentioning it!

Execute Ruby code stored in database
286327 [petr@pu ch o] I've got a hypothetical question, and im hoping someone can answer it.
+ 286329 [gethemant@gm] One obvious way is to use 'eval'
+ 286596 [dangerwillro] There could be a few ways to do this.

Programmatically creating a local variable using a symol
286336 [micathom@gm ] Where are variables actually stored? Or rather: how do I create a new
286339 [halostatue@g] Why do you want to do this with a local variable?
286348 [micathom@gm ] First, I'd like to know a little bit more about ruby. And I would
286351 [ara.t.howard] invert the var binding: make them instance variables and it falls out
286428 [micathom@gm ] Okay, this idea with the variable binding is pointless in this
286430 [caduceass@gm] You might have to use #instance_eval.
286433 [micathom@gm ] This is about what I try to avoid. Some interpreters make variables
286434 [charles.nutt] There is no way in either Ruby 1.8 or Ruby 1.9. The names of variables

add rankings to array?
286353 [spicyjalapen] Example (rate on points field) - convert
+ 286356 [carlosjhr64@] # How about just
| 286358 [spicyjalapen] Yes, I see how to sort an array, but that will produce (unless I am
| 286367 [kbloom@gm il] Assuming you have the array above after sorting, make a pass across it as
+ 286359 [shortcutter@] data = [
  286365 [spicyjalapen] Great, thanks!

Problems with Windows Console IO was Re: problem with sockets
286360 [jftucker@gm ] Thank you.

ruby mail help
286362 [djlewis@tr a] I'm trying to send simple messages with attachments.  The mail goes

Intercepting events with wxRuby/wxWidgets
286363 [wolf.rainer@] I have a question concerning wxRuby/wxWidgets. I'm getting my feet wet
+ 286376 [alec@ar ro s] <50925ed1-4211-4405-b6aa-0e73f896b227@e4g2000hsg.googlegroups.com>,
+ 286383 [alex@de et m] As noted, wxruby-users is a better place to ask questions specifically
  286387 [wolf.rainer@] this sounds like the method doesn't actually perform the veto, it just

using HPricot to parse a fiddly table
286368 [adam.dullent] I'm fairly new to Ruby, previously I was an average programmer in Java,
286378 [cwdinfo@gm i] eles = doc.search('table table table td')
286399 [adam.dullent] Thanks for your reply. Afraid not, no handy names or ids. The code you

ci_reporter xsl
286371 [aidy.lewis@g] Could anyone provide any xsl for ci_reporter xml please?
286409 [nicksieger@g] ci_reporter's xml was modeled after Ant's JUnit task, so you could use

DateTime new_offset unexpected results
286374 [plant@ul ra ] I'm new to ruby, but I'm pretty sure this isn't a problem with me.
286484 [caduceass@gm] Output your dstStart and dstEnd values while you run the program
286502 [ruby-forum@i] Thanks for your reply.
+ 286570 [caduceass@gm] And only with Rational(-6, 24) during the rise event?
| 286902 [ruby-forum@i] Although I'm not sure what this proves, I did this, and the two class
| 286934 [caduceass@gm] Simple.  Just wanted to see if your dstStart and dstEnd vars were
| 286948 [ruby-forum@i] Ah, I see. What I was doing to confirm that I had entered the test
| 286973 [caduceass@gm] By this last statement, I meant if you were entering the if condition
| 287034 [ruby-forum@i] @ut = DateTime.new!(2454535.05902777)
| 287040 [caduceass@gm] March 9 at (6 - 6) is when your clock changed at midnight.
| 287042 [caduceass@gm] On Jan 10, 2008 9:59 PM, Todd Benson
+ 286577 [dirk.traulse] group_id=426
  286904 [ruby-forum@i] Building ruby myself is a little outside my comfort zone. In my opinion,

Ruby's Kernel::exec (and system and %x)
286375 [jjnoakes@gm ] I was reading about Kernel::exec (and the related Kernel::system
+ 286394 [s.korteling@] exec("C://Program Files/Anything/Foo.exe");
| + 286406 [shevegen@li ] heya... you can omit the ; and even the ()
| | 286497 [fedzor@gm il] So does giving the full file path automatically make it avoid the shell?
| + 286447 [jjnoakes@gm ] The problem is not the slashes; the problem is how Ruby passes the
+ 286451 [caduceass@gm] Works just fine for me without the semicolon.
| + 286503 [fedzor@gm il] The problem is that `` and system() make calls to the shell. He is
| | 286521 [caduceass@gm] Which I don't really see the reason for.  I know I spouted off in
| | 286617 [jjnoakes@gm ] Calls to a shell are a VERY bad thing if used incorrectly.
| | 286692 [fedzor@gm il] exec([cmd, cmd]) the preferred one?
| + 286626 [jjnoakes@gm ] Works just fine with one too. Try to stay on topic.
|   286632 [gwtmp01@ma .] system(cmd, "http://www.google.com")
|   + 286677 [jjnoakes@gm ] Correct. It is only the one argument form that uses the shell.
|   | + 286679 [gwtmp01@ma .] Yes, but in the Unix/C world exec() replaces the existing program and
|   | | 286755 [jjnoakes@gm ] Well, I argue that exec() without fork() is useful in any world, but
|   | + 286697 [fedzor@gm il] Then I retract my previous statement! Thank you!
|   + 286695 [fedzor@gm il] system() always go to a shell.
|     286753 [jjnoakes@gm ] No, not true. system() always lets the Ruby process continue on after
+ 286483 [aledonne.lis] exec('start "" "C:\Program Files\Anything\Foo.exe" ')
| + 286488 [caduceass@gm] Just remember that there are length limitations on WinNT 4 servers for
| | 286504 [fedzor@gm il] We in the rubyunix project are currently working on this right now.
| | 286616 [jjnoakes@gm ] This is a bad idea - an empty argument means something different from
| + 286614 [jjnoakes@gm ] What a terrible idea. All I want to do is start a command directly
+ 286516 [nobu@ru y- a] cmd = "C:/Program Files/..."
  + 286619 [jjnoakes@gm ] Thank you. This executes the command directly and doesn't use a sub-
  | 286693 [fedzor@gm il] How would one pass args here, though?
  | 286751 [jjnoakes@gm ] Yes, that is right. You can also use the simple form
  + 286687 [fedzor@gm il] But wouldn't that affect the program cmd, because it is having
    286752 [jjnoakes@gm ] No. This code

cannot execute ruby files without wrapper in a cron
286385 [junkone1@gm ] whenever i try to execute a ruby file thro cron, i have to write a

Sound Library?
286398 [sheax@ya oo ] I'm fairly new to Ruby and programming in general. I wanted to make a
+ 286402 [fedzor@gm il] What library have you found that plays sound?
+ 286416 [dangerwillro] You'll probably need a C/C++/Obj-C library to do this fast enough to
  + 286423 [sheax@ya oo ] Thanks. I'll look into all of that.
  | 286424 [sheax@ya oo ] Sorry somtimes I'm dumb and submit things before I'm down typing. It's
  + 286498 [fedzor@gm il] I'm trying to use rubygame right now, but it keeps giving me a
    286562 [sheax@ya oo ] I can't even install the gem. I tried through the repository and locally
    286690 [fedzor@gm il] You have to have like 3 libs installed. See the rubyforge page.