286185-287042

285984-286900 subjects 286400-287328

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

^ Connection Refused~~Please help
286186 [sim9739 hotm] I am new to ruby.
286313 [pstickne gma] Check your firewall(s).

^ parsing a csv using ; => ruby doesn't split the row
286187 [coder montx.] I'm importing CSV files without problems, now, I have some of them that
286188 [giuan.m gmai] CSV.open(arxiu.file_path , "r", ?;) do |row|
286190 [coder montx.] thanks, it works now !
286257 [james graypr] Just to be clear though, what you had originally is the new syntax
286262 [coder montx.] 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 ] charset=US-ASCII;
286197 [pjb informat] Think ahead of time.  I mean, if you want to keep the creation time,
286200 [pversteegen ] Pascal,
286236 [pjb informat] IIRC, on HFS, the creation time is kept.   There's a command

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

^ Create image, send to rails
286207 [macacoangel ] I'm trying to create images at random, not a problem with this, and I can do
286630 [macacoangel ] Thanks, that was helping, but as I was having troubles with rmagic and
+ 286646 [ara.t.howard] you ruby is broken.  this file cannot be missing in a fully functional
+ 286665 [jmrepetti gm] It seems that you don't have building tools, try installing ruby1.8-dev and
  286840 [macacoangel ] Thanks Juan Matias, but it was a little more trickier, had to download the
  286937 [jmrepetti gm] def img
  286947 [macacoangel ] Yeah, that was it... i'm sorry for my stupid error

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

^ Re: Fixnums can have instance variables?  Cool.
286214 [wuzhengchun ] It's really cool.
286215 [jameskilton ] Welcome to Monkey Patching! This is how ActiveResource gives you things
286217 [gwtmp01 mac.] Actually it is a bit different.  Monkey patching is just adding
286258 [sander.land ] You can use it to cache the result of method calls.

^ [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] Speaking only to the point about optimizations in C: there is a lightweight
  |   286373 [ara.t.howard] yeah - agreed on all parts.  however, would a real difference in api
  |   286382 [garbagecat10] Yeah, there's a gem on the Rubyforge EM page: eventmachine_httpserver. Also
  |   286391 [khaines enig] To clarify, I experimented with using it directly in Swiftiply, but went
  + 286417 [ml synthetic] 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 synthetic] Sessions appear to be off by default in merb. Vintage doesn't have
    + 286435 [ezmobius gma] I think you made the classic mistake of comparing a merb template
      + 286438 [ml synthetic] 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] charset="utf-8"
+ 286242 [TimHunter nc] Leaving aside the Numeric extension for a minute, this bit of code
  286243 [dfl_maradent] Yes! This works great!

^ miniunit
286255 [vjoel path.b] How does one actually use miniunit, if the normal test/unit is present?
286514 [drbrain segm] $ gem fetch miniunit

^ Rubygame on Mac OSX
286256 [fedzor gmail] I am having some serious trouble installing Rubygame on Mac OS 10.4.11
286259 [fedzor gmail] 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 path.b] Why didn't it find Thunder Road[1]? (And then maybe Road Trip to
  + 286277 [vjoel path.b] This is not an optimization problem (not as stated so far, anyway).
  | 286294 [vjoel path.b] Actually, what I overlooked is that Rick's original post said he used a
  + 286292 [onepoint sta] I'm surprised  no-one's found a loop  yet.  Is there  one?  What's the
  | 286295 [chris ruby.t] File.readlines('MOVIES.LST').find_all {|line| line.split.first ==
  | 286298 [onepoint sta] 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 gmail] incorrect audio format" whenever I try to make a
286678 [shawn42 gmai] I believe the rubygame sdl werapper only supports wav files at the moment.
286729 [fedzor gmail] 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 segm] 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 path.b] Use ARGF instead of $stdin, and you read files for free.
|   286877 [carlosjhr64 ] Cool!!!  Thanks!  So
|   286879 [vjoel path.b] csv2mp source.txt | ....
+ 286686 [fedzor gmail] I'm really looking to get into DRb, but it's dsl and stuff is a

^ Newbie Books
286276 [mcutshall co] charset="us-ascii"
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 gmai] Yeah,
286291 [cwdinfo gmai] $ irb
286296 [grabber gmai] Thanks much! This really works ;)
286300 [qbproger gma] ele.text.sub('$', '')
286301 [grabber gmai] Thanks

^ 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 gmai] $ ruby /Users/cyril/Downloads/Ruby2JS/test.rb
+ 286293 [mguterl gmai] sudo gem install ParseTree
| + 286321 [mailing.mr g] you might need to run ruby with -rubygems switch, or require 'rubygems'
| + 286322 [z4n9ief gmai] It's perfect,
+ 286324 [mneumann nte] Seems like a Ruby to Javascript converter.

^ Pushing things Arrays
286297 [wally.terrib] I've been learning Ruby and have done a couple of the quizes on the
+ 286311 [pstickne gma] newCcnumber = []
+ 286319 [giuan.m gmai] 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 roch] 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 punchyo] 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 gma] 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 gma] 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 gma] Okay, this idea with the variable binding is pointless in this
286430 [caduceass gm] You might have to use #instance_eval.
286433 [micathom gma] 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 gmail] 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 gma] Thank you.

^ ruby mail help
286362 [djlewis tria] 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 arlross] <50925ed1-4211-4405-b6aa-0e73f896b227@e4g2000hsg.googlegroups.com>,
+ 286383 [alex deletem] 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 gmai] 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 ultras] 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 gma] I was reading about Kernel::exec (and the related Kernel::system
+ 286394 [s.korteling ] exec("C://Program Files/Anything/Foo.exe");
| + 286406 [shevegen lin] heya... you can omit the ; and even the ()
| | 286497 [fedzor gmail] So does giving the full file path automatically make it avoid the shell?
| + 286447 [jjnoakes gma] 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 gmail] 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 gma] Calls to a shell are a VERY bad thing if used incorrectly.
| | 286692 [fedzor gmail] exec([cmd, cmd]) the preferred one?
| + 286626 [jjnoakes gma] Works just fine with one too. Try to stay on topic.
|   286632 [gwtmp01 mac.] system(cmd, "http://www.google.com")
|   + 286677 [jjnoakes gma] Correct. It is only the one argument form that uses the shell.
|   | + 286679 [gwtmp01 mac.] Yes, but in the Unix/C world exec() replaces the existing program and
|   | | 286755 [jjnoakes gma] Well, I argue that exec() without fork() is useful in any world, but
|   | + 286697 [fedzor gmail] Then I retract my previous statement! Thank you!
|   + 286695 [fedzor gmail] system() always go to a shell.
|     286753 [jjnoakes gma] 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 gmail] We in the rubyunix project are currently working on this right now.
| | 286616 [jjnoakes gma] This is a bad idea - an empty argument means something different from
| + 286614 [jjnoakes gma] What a terrible idea. All I want to do is start a command directly
+ 286516 [nobu ruby-la] cmd = "C:/Program Files/..."
  + 286619 [jjnoakes gma] Thank you. This executes the command directly and doesn't use a sub-
  | 286693 [fedzor gmail] How would one pass args here, though?
  | 286751 [jjnoakes gma] Yes, that is right. You can also use the simple form
  + 286687 [fedzor gmail] But wouldn't that affect the program cmd, because it is having
    286752 [jjnoakes gma] No. This code

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

^ Sound Library?
286398 [sheax yahoo.] I'm fairly new to Ruby and programming in general. I wanted to make a
+ 286402 [fedzor gmail] 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 yahoo.] Thanks. I'll look into all of that.
  | 286424 [sheax yahoo.] Sorry somtimes I'm dumb and submit things before I'm down typing. It's
  + 286498 [fedzor gmail] I'm trying to use rubygame right now, but it keeps giving me a
    286562 [sheax yahoo.] I can't even install the gem. I tried through the repository and locally
    286690 [fedzor gmail] You have to have like 3 libs installed. See the rubyforge page.
threads.html
top