276846-279082 subjects 277371-412957

^ Escaping non-ASCII chars for RTF export
277152 [mail.dph gma] Greetings,
+ 277158 [raasdnil gma] Ruby RTF library.  Creates RTF documents... might be a good start.
| 277183 [mail.dph gma] I am using the Ruby RTF library currently to generate RTF files.  The
+ 277213 [bbxx789_05ss] A unicode has to be converted into a character language(called an
  277276 [mail.dph gma] This is great information, it's really helped me move in the right
  277307 [bbxx789_05ss] There is one missing piece to the puzzle.  This is what happens behind

^ Fastest way to compute dot product (inner product) in Ruby?
277157 [theosib gmai] Ruby seems to provide some nice, abstract ways of doing some
+ 277170 [gbence alger] You'll find dot product below "Vector multiplication".
+ 277177 [vjoel path.b] require 'narray' # not pure ruby
  277182 [theosib gmai] This doesn't appear to be a standard library.  Is it available through
  277186 [phrogz mac.c] ...

^ Who required that!?
277159 [transfire gm] Is there any way to ask a file what other file require/load 'd it? I
277180 [ara.t.howard] p Kernel.requiree('main')
+ 277188 [transfire gm] Doh! Of course!
| 277220 [shortcutter ] Just out of curiosity: why don't you use the test packages mechanisms
| 277245 [transfire gm] I need to keep them isolated to make sure they all work on their own.
| 277265 [shortcutter ] I am not sure what you mean by "on their own".  Do you expect side
| 277279 [transfire gm] There are a couple of aspects to isolating the tests. The main one is
| 277316 [shortcutter ] Makes perfectly sense to me.  Thanks for the explanation.  This would
+ 277195 [alexg kuicr.] Ara, out of curiosity, is there any reason why you don't write the
  + 277205 [vjoel path.b] Maybe to avoid exposing the constant, H?
  | 277255 [ara.t.howard] yes that's it - holding the state via closure saves namespace.
  + 277315 [sean.ohalpin] It's a preference for code that will work even if someone else wants
    277318 [vjoel path.b] Can you do the latter without breaking gem's require?
    277320 [sean.ohalpin] Yes, that's the point. If you redefine require by chaining to the
    277321 [sean.ohalpin] Scrub that - Joel you're right - it depends on load order. If you use

^ Cryptography Libraries
277160 [fedzor gmail] Hey!
277200 [jeremy hineg] Once the next rubygems comes out I'll be releasing a ruby extension
277296 [rodney inter] I've been using Ruby's OpenSSL library to create and verify RSA digital

^ IOS troubles with binary data on windows
277163 [brandon loud] I'm at a loss.
277168 [brandon loud] I just found an error in my code, but it wasn't causing a problem
277181 [brandon loud] Ok....I confirmed this a few different ways. It may be a new bug.
277230 [shortcutter ] Few remarks: if you post code then you should people give at least the
277256 [brandon loud] The chunk size isn't the problem.
277258 [shortcutter ] Check the documentation, especially the return value of #write.  Note
277261 [brandon loud] It still fails with your your file copying code. Though last night I

^ assertion loop in test/unit?
277169 [tjacobs-sndr] In the following snippet, the first two fields exist, the remaining do
277192 [m_goldberg a] AFAIK the Test::Unit framework always terminates a test method at the

^ Creating an RSA public key from a modulus and exponent
277171 [rodney inter] But, I'm looking for how to create a public key when I have the modulus
277283 [rodney inter] OK, after many hours of playing I've answered my own question and posted
283108 [shandybleu y] How did you get them into that format though? I have been trying the
283124 [rodney inter] response posted on blog.

^ backslash sequences\1\2 in regexs (backreferences)
277174 [bbxx789_05ss] 1)
+ 277179 [mike stok.ca] The double quotes interpolate the \1 and \2 as characters before gsub
| 277197 [bbxx789_05ss] Ah.  So, \1 and \2 are interpreted as octal character codes.  I was
| 277201 [m_goldberg a] No, it's not, That single quotes are required has nothing to do with
| 277203 [ed.odanow wo] You should simply use "double-quote-double-quote"
+ 277191 [phrogz mac.c] Yes. In many Ruby books, in at least one Ruby FAQ, and many, many

^ Ruby on Leopard
277176 [rawn027 gmai] Just FYI the Ruby that ships with leopard is 1.8.6 p36 but it includes

^ [ANN] Rassmalog 8.0.0
277193 [ snk gna.org] Rassmalog

^ Can't get my regexp to work to test if numerical
277196 [pood.forums ] alright, this seems easy enough.
+ 277198 [bbxx789_05ss] 1) The pattern /^[0-9]$/ matches one digit.
| 277202 [bbxx789_05ss] That's incorrect.  The pattern matches: the start of the line, followed
+ 277199 [m_goldberg a] I would say that you need a better understanding of regular

^ What the hell is the => operator?
277210 [ihatespam ho] ...
+ 277212 [stephan.kaem] It's mostly 'syntactic sugar'. In Ruby you can leave the curly braces {} in a method call away in case the last values form a hash.
+ 277214 [bbxx789_05ss] def methA(arg)

^ Re: the result of Ruby official logo contest
277215 [lefteus gmai] Matz, this is not your regular dissensus, which certainly every logo
+ 277231 [halostatue g] 158
| + 277251 [jeremymcanal] I like that logo because it's versatile.  He's put a "Web 2.0" finish
| | 277253 [shevegen lin] I think that last logo is a bit non-characteristic for Ruby though.
| | 277254 [wemagor2 gma] The winning logo terribly needs work.  OK, so you've picked a logo, but
| + 277292 [perrin apoth] Ignore the surroundings and fluff for a moment.  The core image is
|   277310 [halostatue g] I think the sharp-angled, lying-on-its-drunken-side four-tone ruby in
|   277483 [perrin apoth] What . . . you prefer clutter?
+ 277280 [mortee.lists] mortee
+ 277288 [perrin apoth] Oh, that is *excellent*.
  + 277402 [stack.tcpip ] Quite interesting though it works only for those who has seen old
  | 277422 [paradisaeida] Yep, http://farm3.static.flickr.com/2176/1806344630_72ee335896.jpg?v=1193785158
  | + 277438 [dangerwillro] It's actually quite amusing to read programmers' quibbling over
  | | + 277443 [mortee.lists] There's a saying in my country: you don't have to be a shoemaker in
  | | | + 277462 [dangerwillro] Oh I don't doubt that at all. But it is fascinating to read the
  | | | + 277516 [phrogz mac.c] ...
  | | + 277486 [perrin apoth] Some of us have actually gone to school for digital graphic design.
  | |   277510 [dangerwillro] Sure, there's no doubt about that, but it's probably not the majority.
  | |   277557 [jeremymcanal] Likewise, some of us have been doing design for a number of years
  | + 280616 [paradisaeida] I've had a few weeks to relax.
  + 277533 [pikEISPAMMMs] Hear, hear!
    277537 [james.britt ] Separated at birth?
    277556 [jeremymcanal] I really like that too.  I wish a simple shape was chosen that is
    277704 [rick.denatal] Mais, je sais la vie. On doit savoir la vie pour dire <<c'est la vie!>>
    277710 [patcito gmai] Mais je connais la vie. Il faut conna=EEtre la vie pour pouvoir dire

^ I foolishly used gems.  How do I reset it all?
277217 [ihatespam ho] ...
277221 [peter rubyra] I think the first, somewhat reliable method was installing it on cygwin

^ Get only the non-inherited methods of a class
277233 [toastkid.wil] Does anyone know how to get the methods of a class in such a way as to
277237 [matz ruby-la] Giving false to #methods.
+ 277238 [shortcutter ] I guess when invoked on the class instance then it should probably be
+ 277240 [toastkid.wil] Thanks matz, but why does that return an empty array?  Shouldn't it be
  277241 [matz ruby-la] I thought you want class methods of String class.  If you want to get
  277243 [toastkid.wil] Fantastic, thanks!  And thanks for Ruby :D

^ CSV with Ruby Newbie
277242 [pete.roome g] Hey guys.
+ 277244 [briefcase.sp] Does the book define a "process" function?  The code below would require
| 277247 [pete.roome g] Hmmmm no there is no definition of the function 'process' in the book, i
+ 277248 [wemagor2 gma] That example is making an assumption that you will write the 'process'
| 277252 [pete.roome g] Wayne,
| 277257 [wemagor2 gma] The header variable is just an array of strings, so you can just print
| 277260 [pete.roome g] Ok brilliant that makes sense. Thanks alot for your help!
+ 277249 [rhkramer gma] Have you written/defined a method named "process"--it looks to me like they
+ 277268 [bbxx789_05ss] The book has a bad habit of calling non-existent functions in the
  277269 [bbxx789_05ss] Whoops.  "Methods, methods, methods."

^ [Resolved] ruby-frontbase doesn't compile on Mac OS X version 10.5
277250 [lists kalama] 1. Download the gem source (ruby-frontbase-src-1.0.1.tgz) from http://rubyforge.org

^ Help invoking a method of a class
277263 [victor.reyes] ...
+ 277264 [bbxx789_05ss] You need to create an object of the class, and then use the object to
+ 277266 [funkaster gm] first, you're defining a instance method
+ 277270 [JeremyWoerti] I think your going to get an undefined method error even after doing
| + 277274 [victor.reyes] ...
| + 277275 [bbxx789_05ss] arr = Array.new(3) {1}
|   277294 [jeremywoerti] OHHHH, that's the number one, I thought it was the letter L :)
+ 277293 [pdanese Rib-] I can do it now if you like (I just wasn't sure about how long your

^ Database speed issues
277267 [JeremyWoerti] So, I have a bit of a design problem. I have an application that work,
+ 277273 [vasyl.smirno] On Nov 2, 7:45 pm, "JeremyWoert...@gmail.com"
+ 277284 [rabbitblue g] I dunno how fast it is compared to your select statement, but if you can
| + 277289 [JeremyWoerti] haha, you said "call the % method on them." and then used the "&"
| + 277295 [dejan.dimic ] Could you be more specific?
|   + 277304 [shortcutter ] The information given is really weak.
|   + 277324 [JeremyWoerti] Cool. Ok I will explain the best I can the whole entire situation from
|     277451 [shortcutter ] First of all a bit of general advice: in my experience customers are not
+ 277285 [fwmailinglis] ...
  277290 [ysantoso-rub] Rather than duplicating the database, create a temporary table, load

^ [ANN] main-2.5.0
277297 [ara.t.howard] NAME
+ 277300 [mailing.mr g] mayby a changelog?
| 277313 [ara.t.howard] it's down there in HISTORY section - sorry it's so long!
+ 277356 [mailing.mr g] I would like to mention that if you plan on using ActiveRecord with main
  277357 [jan.svitok g] that one looks like a saint emoticon

^ [ANN] HOTP v1.0.0 released
277298 [RubyTalk gma] HOTP v1.0.0

^ ActAsHash
277299 [mailing.mr g] I have no idea if someone hacked something like this already, i tried
277319 [vjoel path.b] ISTR that "@"+index.to_s is slower than "@#{index}".
277327 [mailing.mr g] i think concantation is faster then creating new one and i have no idea
277328 [vjoel path.b] require 'benchmark'

^ How do I tell the difference between a class C and the singleton class of an instance of C
277301 [deanwampler ] ...
+ 277302 [deanwampler ] ...
+ 277303 [ysantoso-rub] C.name ==> "C"
  277305 [deanwampler ] ...

^ Text Manipulation Help
277306 [rawn027 gmai] I am currently trying to write a script that will take the hostnames

^ [ANN] tumblr-0.0.1
277309 [ara.t.howard] NAME

^ Re: [ANN] Rassmalog 8.0.1 - the "shortstop"
277311 [ snk gna.org] In my rush to make the 8.0.0 release yesterday, I forgot to measure how

^ [ANN] tumblr-0.0.1 - tumblr for the command line
277312 [ara.t.howard] (email issues - sorry if double post)

^ installing bleak house on osx
277314 [ara.t.howard] anyone else gotten this?
278745 [alexmle gmai] I'm currently getting this error, help would be appreciated.  Evan
+ 278778 [rick.denatal] Rick DeNatale
+ 278850 [ara.t.howard] i never did get it to build either...
  280938 [taryn sirca.] Ok, I had the same problem and have just fixed it.
  280940 [taryn sirca.] ok - a better solution... add "/usr/local/lib/ruby/1.8/" to your $PATH

^ [ANN] JRuby 1.1b1 Released
277317 [Thomas.Enebo] The JRuby community is pleased to announce the release of JRuby 1.1 beta 1

^ Passing keyword arguments
277322 [transfire gm] Lets say I have a method using the not-so-uncommon keyword options
+ 277404 [transfire gm] Interesting approach. Thanks.
+ 277411 [bbxx789_05ss] def foo(*args)
+ 277413 [lojicdotcom ] How flexible do you need to be with the argument handling? Would
  277419 [transfire gm] Problem is I need *args (an untold amount).

^ [ANN] csspool 0.1.0 Released
277323 [aaron tender] csspool version 0.1.0 has been released!

^ hello world
277329 [hawat.thufir] #5.times { print "Odelay!" }

^ hello world (first method)
277330 [hawat.thufir] #5.times { print "Odelay!" }
277332 [shuaib.zahda] I believe so and u need to create an object and call the method using
+ 277333 [hawat.thufir] Thank you :)
+ 277334 [konrad tyler] ...
+ 277335 [hawat.thufir] Test.rb
  + 277337 [sebastian.pr] require 'test'
  | 277372 [hawat.thufir] Thanks :)
  + 277347 [bbxx789_05ss] There's nothing wrong with that.  I never use irb (or interactive

^ html designing?
277331 [hariharan.sp] Dear Friends,
277464 [bladenut gma] There is a Ruby on Rails mailing list. That's the one you want.

^ new instance (uninitialized constant)
277336 [hawat.thufir] I need to indicate where to find the Song class.  With a module?  I'm
277338 [m_goldberg a] require 'Song'
+ 277849 [hawat.thufir] Thanks, Morton :)
+ 277851 [phrogz mac.c] require 'Song.rb'

^ Using flickr API to download photo
277339 [jonathan.clw] following
277455 [mattfoster c] You probably don't have permission to download the photo in its

^ Fine grained management of timers.
277341 [snacktime gm] We have a rails app that does async requests to backend data stores.
277351 [jan.svitok g] ...

^ Rss feed <index> item error
277348 [baur79 gmail] i'm new in ruby
277353 [kou cozmixng] In <1194082144.258243.176010@k79g2000hse.googlegroups.com>
277379 [baur79 gmail] thanks a lot, for your big help!

^ Delete files in a directory
277350 [thehcdreamer] the people who works for this site.
+ 277355 [stefano.croc] ...
| 277445 [thehcdreamer] Thank you Stefano, it work good for me!
+ 277535 [andrea.fazzi] require 'fileutils'
  277549 [thehcdreamer] Thank you!

^ [OT] Re: JRuby performance questions answered
277352 [ mfp acm.org] Neither fish nor greens, fowl or libertarians
277375 [caduceass gm] The switching of nouns may have more to do with culture than language roots.

^ Unicode illegal characters problem
277359 [AEtzold gmx.] Dear all,
277360 [ruby-lang da] Your data is not UTF-8, from the error, most likely iso-8859-1 (or 15)
277363 [AEtzold gmx.] Dear Jonathan,
+ 277364 [ruby-lang da] I believe that's a "feature" of ruby iconv.
| 277367 [AEtzold gmx.] Dear Jonathan,
| + 277368 [ruby-lang da] Further, its a *feature* of iconv on **Linux**. On my FreeBSD box I
| | 277398 [angus quovad] [Jonathan Hudson <jh+ruby-lang@daria.co.uk>, 2007-11-03 18.45 CET]
| + 277403 [bbxx789_05ss] How does that clarify things for you?  I read the other thread, and that
+ 277405 [bbxx789_05ss] ic_translit = Iconv.new('US-ASCII//TRANSLIT', 'UTF-8')
+ 277407 [bbxx789_05ss] ic_translit = Iconv.new('US-ASCII//TRANSLIT', 'UTF-8')
  277409 [AEtzold gmx.] Dear 7stud,
  277435 [bbxx789_05ss] First of all, even posting messages about unicode is hard to do because
  277446 [AEtzold gmx.] Dear 7stud,
  277467 [bbxx789_05ss] 1) Who says I'm viewing your current post with the same display device
  277539 [AEtzold gmx.] Dear 7stud,
  277595 [bbxx789_05ss] Unfortunately, you don't get it.  I have no idea what the encoding is on

^ [ANN] VimMate 0.6.6
277362 [guillaume.sp] A new version of VimMate is now available: Version 0.6.6

^ Rubyforge and httpclient
277370 [transfire gm] I know I've asked this before, but I'm still at a loss. Does anyone
277376 [konrad tyler] ...
277504 [bobgus rcn.c] Invalid signature
277507 [transfire gm] Stange. I doubt the two are related though. If you're talking about my