380979-382525

380804-382020 subjects 381125-381877

Gem installation issue
380979 [arne.de.herd] I'm running with my head against the wall here. I'm trying to create a
380982 [arne.de.herd] Found it....

Seeking advice
380997 [alex323@gm i] by many different "transports" (JSON over HTTP, Thrift, etc). Depending
+ 381001 [shortcutter@] I'd go for factory pattern.
| 381007 [spoon@ki le ] I interpreted this to mean that the base grid class would not be part
| 381009 [shortcutter@] $ ./TrueGrit.rb
+ 381002 [spoon@ki le ] Use factory pattern
+ 381022 [alex323@gm i] The factory design pattern is sort of what I want, but not exactly.
  + 381033 [jgabrielygal] class Grid
  + 381037 [shortcutter@] I'm not convinced we are actually that far away from what you want.

ruby server 1.9.2
381006 [ecalle1@mi e] i need create a ruby server in version 1.9.2 but I get a lot of errors I
381008 [spoon@ki le ] No one can help you with the information you've provided.
381011 [shortcutter@] And what is a "ruby server" anyway?  Off the top of my head a whole

Compilation error on AIX
381014 [jain.vivek86] bash-3.2# ./configure
381040 [ralf.mueller] <snip/>

Match a pattern multiple times, returning matches, captures and offset?
381015 [markus@fi ch] I'm used to be able to use the following in PHP. What is basically does
+ 381021 [b.candler@po] #{x.inspect}" }
+ 381029 [bbxx789_05ss] If you look at the preamble in the docs for the MatchData class, you can
| 381038 [shortcutter@] When doing nested matching it may be better to use $~ because that is
+ 381081 [bbxx789_05ss] str = "_foo_ _bar_"
  + 381092 [shortcutter@] That's nice!  I wasn't aware of this.  Thanks for sharing!
  + 381095 [b.candler@po] Using 'index' doesn't work if you have multiple captures which have the
    381145 [bbxx789_05ss] begin() and end() are the two elements of offset(), which we've already
    381180 [b.candler@po] That's easy - subtract begin(0) which is the absolute offset of the
    381217 [bbxx789_05ss] The "subtraction method" was thoroughly vetted earlier.

how can i install GNU radiow with USRP2 model E210 for MIMO operation
381016 [adn_ami@ya o] i have been install gnu radio in linux ubuntu properly but i can not
+ 381018 [cmdjackryan@] Phillip Gawlowski
+ 381020 [b.candler@po] Posted via http://www.ruby-forum.com/.

how can i install GNU radiow with USRP2 model N210 for MIMO operation
381019 [adn_ami@ya o] i have been install gnu radio in linux ubuntu properly but i can not

[ANN] RubyGems 1.7.2
381024 [drbrain@se m] rubygems-update version 1.7.2 has been released!

rubyWax 0.11.04 audio player released
381025 [jakekaiden@y] hot off the presses -
+ 381071 [jakekaiden@y] woops, looks like i the screenshot didn't work out...
+ 381072 [jakekaiden@y] screenshot? woops... should be here now
+ 381073 [jakekaiden@y] sorry about broken screenshot...
+ 381080 [spoon@ki le ] Looks cool, will try it out!
+ 381102 [jakekaiden@y] not sure about amarok, looks like it's done in javascript now - but i

[ANN] Rails 3.0.6 has been released (now with more bugfixes)!
381027 [aaron@te de ] ## Rails 3.0.6 contains an important security fix!  Please upgrade!

capture the output of a grandchild
381035 [chandan89@ho] i started a process A through my ruby script using system() on my unix
+ 381036 [b.candler@po] Show your code. Show what B and C are doing, or write replacements in
| 381039 [b.candler@po] ruby -e 'system("/path/to/prog")' >cap.out 2>cap.err
| 381110 [chandan89@ho] thanks dude it worked finally
| 381111 [b.candler@po] system("/path/to/prog >output.file 2>&1")
| 381172 [chandan89@ho] ya u are right, i tried
+ 381108 [chandan89@ho] thanks for the reply

[ANN] Remedy IT launches Open Source collaboration portal for R2CORBA etc.
381041 [mcorino@re e] Remedy IT is pleased to announce the availability of Remedy IT OSPortal,

Proc#== behaviour (from Ruby-Core)
381042 [adam@ap es o] I did ask this question on Ruby-Core a few days ago, but no-one has replied
+ 381067 [adam@ap es o] I decided to just do what I should've done in the first place, and open an
+ 381070 [gwtmp01@ma .] and procs)
+ 381076 [bbxx789_05ss] In case you didn't know, procs and lambdas in ruby are a mess.
  381078 [adam@ap es o] I knew, at least, ever since I read
  381084 [gwtmp01@ma .] ...
  381085 [gwtmp01@ma .] ...

[ANN][CONF] RubyConf India 2011 - Registrations Now OPEN
381044 [ola.bini@gm ] Registrations for RubyConf India 2011 are now open!

Error installing dbi-0.4.5.gem:
381047 [sbellana@ya ] Trouble while installing dbi gem and it showing as Error installing
381079 [hyagni@gm il] You fail to install the specific version of deprecated.

String#each_*slice* methods (like Enumerable#each_slice)
381048 [astounding@g] I find I periodically need to iterate over slices of a string.
+ 381052 [sutniuq@gm .] ================================
| 381053 [astounding@g] =3D=3D=3D=3D=3D=3D=3D=3D
| 381055 [astounding@g] Looking more closely on the use of str.scan vs str.chars.each_slice
+ 381077 [bbxx789_05ss] str = "hello world"

Pathname: moving files & directories
381051 [simon@si on ] This came up at work a while ago and our IT dept. said it was
+ 381056 [shortcutter@] # untested
+ 381057 [jeremy@bo p.] 1. Make a copy of a representative sample of the data with which you'll
+ 381064 [simon@si on ] Thanks to both of you. As suggested I'll copy the files and experiment

Windows 2008 Server: Reading Text File with Ruby.
381058 [storm8000@gm] New Ruby user here.
381059 [jh_ruby-lang] As it starts with a UTF-16 LE Byte order marker, that's a pretty good
381060 [storm8000@gm] Thank you.
381061 [jh_ruby-lang] I'm not at all familiar with dealing with encodings on Windows, but
381063 [storm8000@gm] Thanks - I tried utf-16.  Unfortunately it gives a "Unsupported encoding
+ 381065 [jh_ruby-lang] require 'iconv'
| 381066 [storm8000@gm] 08\x005\x008\x009\x009\x003\x004\x005\x009\x002\x00\n\x00\n\x00\n\x00\n\x00\n\x0
+ 381069 [fred@la av .] ruby -e 'puts Encoding.list'

[ANN] RCAP 1.0.0 - Common Alerting Protocol for Ruby
381068 [farrel.lifso] The Common Alerting Protocol is a lightweight standard to facilitate

[ANN] test-loop 9.4.0 and 10.0.0
381074 [sunaku@gm il] test-loop - Continuous testing for Ruby with fork/eval

Hello
381075 [moemonty@gm ] I'm new to the Ruby community, but I am very adamant about joining.
+ 381082 [spoon@ki le ] Do you use ruby at work?
| 381208 [badlands_200] ...
+ 381086 [badlands_200] ...
| + 381106 [stu@ru yp og] details?
| + 381155 [badlands_200] ...
|   + 381157 [oscartheduck] No one is willing to help? That doesn't sound like the ruby on rails
|   | 381161 [oscartheduck] Open your cmd.exe and type in "where gem". You should get an output similar
|   | 381206 [badlands_200] ...
|   | 381218 [oscartheduck] That should tell you whether you have gem installed so that you can access
|   | 381256 [badlands_200] ...
|   + 381263 [badlands_200] ...
|     + 381267 [vmanis@te us] run and write my program?
|     | 381311 [badlands_200] ...
|     + 381308 [badlands_200] ...
|       + 381312 [vmanis@te us] parts of ruby and ruby on rails. I would like this disk.
|       + 381313 [jakekaiden@y] i don't know of any disk, but maybe some of this will help...
|         + 381314 [vmanis@te us] you=20
|         | 381322 [badlands_200] ...
|         | 381347 [badlands_200] ...
|         | + 381351 [cmdjackryan@] To put it bluntly: All easy(-ish) to use and learn scripting languages
|         | | + 381352 [vmanis@te us] just to hard to download, and to work with.
|         | | + 381358 [martindemell] He does raise a good point - it would be nice to have a classic 3 pane
|         | |   + 381359 [sebastian.ba] Are you working with Windows?
|         | |   | 381386 [badlands_200] ...
|         | |   | + 381390 [vmanis@te us] No.
|         | |   | | 381455 [oscartheduck] I'm working with James Nathan to get him up and running.
|         | |   | | 381462 [martindemell] FreeRIDE hasn't been worked on in years, and can be considered
|         | |   | | + 381463 [martindemell] And RadRails is worth a look too, if you're specifically interested in
|         | |   | | | 381466 [oscartheduck] My tactic when introducing new folks to ruby is to not shy away from the
|         | |   | | + 381532 [badlands_200] ...
|         | |   | |   381570 [vmanis@te us] Ruby Programs to see if they are up and running.
|         | |   | |   381684 [notthinking@] How about redcar, it sounds an awful lot like what some people are
|         | |   | |   381685 [echristopher] ERIC supports Ruby now.
|         | |   | + 381461 [code@ap th o] Not even slightly.  The *only* thing you need to install that is not
|         | |   + 381360 [cmdjackryan@] So, a package like NetBeans 6.9, then, which includes an IDE (I don't
|         | |     381364 [martindemell] Yep, though NetBeans is way overkill for the task. Something small and
|         | + 381366 [sophrinix@gm] Before you give up, checkout
|         + 381316 [badlands_200] ...
|           381317 [vmanis@te us] gems documentation server, start command prompt with ruby. now with free =
+ 381159 [jakekaiden@y] if you still have problems, you should mention what system you have
  381162 [badlands_200] ...
  381166 [cmdjackryan@] Does the installer at http://rubyinstaller.org/ not work?

Hash Surprises with Fixnum, #hash, and #eql?
381087 [no@sp m. le ] Folk,
+ 381099 [shortcutter@] There's still a lot missing for a number replacement.  Please see
| + 381107 [cmdjackryan@] 3 - 2j [+|*] 45^(j * e * 44=B0).
| | 381109 [shortcutter@] Why bother, it has been done already.
| | 381115 [cmdjackryan@] loat!
| | 381116 [shortcutter@] Float!
| | 381117 [cmdjackryan@] Given that there are infinitely more irrational than rational numbers,
| | + 381121 [shortcutter@] Well, even with technical inheritance ("kind of") sub often add state
| | | 381123 [cmdjackryan@] But that's a failure of implementation, isn't it?
| | | 381124 [shortcutter@] That too, but the root cause lies in the area of the incompatibility
| | | 381126 [cmdjackryan@] That's why Complex adds to #to_f, to enable the #to_f functionality
| | + 381132 [b.candler@po] Isn't this the old "ellipse is_a circle, or vice versa" debate?
| |   + 381150 [vmanis@te us] And a lot of what is done by practitioners using object-oriented languages
| |   + 381175 [shortcutter@] ACK, ACK and ACK.
| + 381182 [no@sp m. le ] What's wrong with the case you use in that blog post? But as it turns out,
|   + 381187 [shortcutter@] You mean, make HexNum a subclass of Integer?  Yes, actually that's
|   | 381233 [no@sp m. le ] No, I don't mean making HexNum a subclass of Integer, but making it an
|   | 381269 [headius@he d] Top-replying with a general observation: you can't please everyone all the time.
|   | 381274 [no@sp m. le ] Yes.
|   | 381337 [shortcutter@] I think Charly got it exactly right.
|   | 381393 [no@sp m. le ] I'm trying to express a logical programming paradigm, for users
|   | + 381399 [headius@he d] Perhaps I'm missing something. Should I be seeing different results than this?
|   | | 381402 [no@sp m. le ] That result is reasonable, using MRI. Interesting, and nice, that it
|   | | 381416 [headius@he d] This is JRuby 1.6.1.
|   | | 381469 [no@sp m. le ] Yep... same as 1.6.0 and 1.5.6. What's you point?
|   | | 381506 [headius@he d] I'm confused...you made it sound as though JRuby results would be
|   | | 381510 [no@sp m. le ] I presented results from MRI 1.8.7, JRuby 1.6.0, and Rubinius,
|   | | 381876 [headius@he d] "That result is reasonable, using MRI. Interesting, and nice, that it
|   | | 381970 [no@sp m. le ] Charles,
|   | | + 381995 [shortcutter@] Please keep in mind that in a multithreaded environment there is
|   | | | + 381997 [no@sp m. le ] Oh get real. This is a single variable which may, during the course of
|   | | | | + 381999 [shortcutter@] In multithreaded applications the change frequency is not important.
|   | | | | + 382005 [wishdev@gm i] Good Morning,
|   | | | + 382233 [headius@he d] In this case, I'm not using a synchronized, atomic, *or* boolean
|   | | |   382240 [shortcutter@] Is redefinition per thread a standard JRuby feature or is this
|   | | |   382272 [headius@he d] It's something I've thought about, a la Groovy's "categories"
|   | | + 382232 [headius@he d] Well, it has to get the value from somewhere. In JRuby, the
|   | |   382434 [no@sp m. le ] Ouch. No wonder it hurts. I hadn't looked into the internals of JRuby,
|   | |   382525 [headius@he d] None of the JRuby runtime is native code, and obviously that's how
|   | + 381405 [shortcutter@] I have run the code and I haven't missed the fact.  Right, that wasn't
|   |   381468 [no@sp m. le ] Yeah, I get that argument, and I agree with it. But it's a general rule,
|   + 381228 [fxn@ha hr f.] El 8 Apr 2011, a les 09:30, Clifford Heath <no@spam.please.net> va escriure:=
|     381232 [no@sp m. le ] Thanks, that was the problem (/me hides face).
+ 381153 [mazi.ayisigi] s=FDn=FDf varm=FCmk=FCn oldu=F0u kadar ger=E7ek bir Tamsay=FD (subclassed =

Packing and unpacking unsigned integers of arbitrary size as binary strings
381088 [astounding@g] I see there's a 'w' option to pack for packing arbitrary sized
381100 [b.candler@po] => 12345678901234567890
381101 [b.candler@po] => "\253T\251\214\353\037\n\322"
381133 [astounding@g] Nice, using the conversion via hex string is faster for

can we use direct ruby instaed of javascript ?
381090 [sathish.sale] i am a ROR Developer .
+ 381091 [dhruva.sagar] I am sure there are quite a few projects out there to do what you wish to.
| 381114 [hramrach@ce ] Another option to use might be JRuby.
+ 381093 [sathish.sale] thx , but i thing HotRuby is dead. There are no updates from last 3
| 381094 [dhruva.sagar] Hmmm, I only know of that.
+ 381112 [rubfor@re it] If you have been to any large corporate's offices of late, you would
+ 381113 [whitequark@w] I have a project called ColdRuby which is essentially a Ruby 1.9
| 381136 [code@ap th o] I don't see any license listed.  Did I overlook it?
| 381147 [whitequark@w] The Ruby license, of course. It is implicit.
| 381160 [code@ap th o] I haven't looked closely enough to know which way this goes, but one of
| + 381167 [julian@co et] I think it might be actually quite interesting for the original poster =
| | 381195 [josh.cheek@g] That is incredibly cool! But can you really implement *any* language? What
| | + 381196 [spoon@ki le ] My take here is full of handwaving.  I'll admit I've never of O-Meta
| | + 381199 [spoon@ki le ] Also, if you've already proved the program shouldn't crash due
| | + 381285 [hramrach@ce ] This is incredibly cool but can you really translate any language into
| |   + 381289 [cmdjackryan@] Of course. Otherwise, the code wouldn't be executed on a CPU, after all.
| |   | 381291 [hramrach@ce ] And since it can execute on something as limited and poorly designed
| |   + 381298 [wruyahoo05@c] Yes but some language features would depend on a run-time library.
| |     381301 [spoon@ki le ] That would be the STG machine I was talking about, which definitely
| |     381302 [spoon@ki le ] Sorry, I'm an idiot.  Had a brainfart... really you could write a naive
| + 381186 [whitequark@w] Please, treat all my words about implicit license as a form of bad
+ 381257 [axyd80@gm il] Do we actually need to have full ruby spec implemented? Don't forget
+ 381293 [josh.cheek@g] Accidentally went off list for a bit.
  381297 [cmdjackryan@] YARV generates byte code. The byte code is interpreted by the Ruby VM.

uninitialized constant Fileutils (NameError)?
381096 [tluedeke@ex ] I do not understand what is going on here - I've done this a multitude
+ 381097 [hyagni@gm il] Simple spell miss.  The class name is "FileUtils" with an upper U, not
+ 381098 [stefano.croc] It's FileUtils (note the capital U), not Fileutils.

convert string to datetime
381103 [jeff_yq@ya o] Can anybody tell me how to convert a string format like "20110309" to a
381104 [jgabrielygal] ruby-1.8.7-p334 :001 > d = "20110309"
381105 [b.candler@po] Or DateTime.strptime, if you want to be explicit about the format.
381156 [jeff_yq@ya o] Thanks mate, it works :)

Windows directories not recognized by ruby?
381118 [kalmanh@gm i] What's wrong with this code?
+ 381119 [now@bi wi se] You may want to escape your reverse solidus (backslash), or, better
+ 381120 [cmdjackryan@] est_ruby" (\t is is the escape sequence for a tab character)
| 381128 [regis.aubare] ForwardSlash works since MSDOS !
+ 381122 [paul@ho ly r] It's the way Ruby handles your strings. You are using double quotes,
+ 381141 [koulikoff@gm] You should use File.directory? File.join(%w[c: test_ruby])
threads.html
top