350147-351724

349907-358710 subjects 350342-351048

^ Roman Numerals (Arrgh!)
350147 [chngth3wrld ] I have a homework assignment where I have to convert an inputted integer
+ 350148 [esperantoca ] I'm not gonna give you the COMPLETE answer to your homework, but think
| 350154 [esperantoca ] I have to say Grennady's way is quite elegant; I didn't even think along
+ 350149 [Gennady.Byst] Well, considering that you at least started thinking on the problem and did=
+ 350150 [Rob AgileCon] Well, as you might have guessed, most of us on the list don't want to
  350152 [Gennady.Byst] Why not that way? It works and it is short ;-)
  350156 [Rob AgileCon] Not that it doesn't work, just that it might be easier/quicker to
  + 350157 [chngth3wrld ] Thanks guys.
  | 350178 [Rob AgileCon] This opens up a great sidebar opportunity to talk about debugging as a
  + 350159 [Gennady.Byst] I respectfully disagree. inject() is a very powerful facility that allows q=
    350177 [Rob AgileCon] Well, I won't argue the fact that inject is a powerful abstraction. I
    350187 [Gennady.Byst] Now you intrigued me ;-). So I am asking directly -- given the following $n=
    + 350188 [paul pollyan] $numerals = [[1000, "M"], [900, "CM"], [500, "D"], [400, "CD"], [100,
    | + 350190 [Rob AgileCon] Oh, sorry.  I meant "What Paul said"
    | | 350191 [paul pollyan] ],
    | + 350192 [Gennady.Byst] , [5, "V"], [1, "I"]]
    |   350195 [paul pollyan] Yes indeed, you can't get doubles of the 2 character strings, because
    |   350206 [eregontp gma] Well, being student as well, I'd love to study Ruby instead of this (****)
    |   350208 [Gennady.Byst] In case you have missed it from yesterday, a slightly modified original sol=
    |   350249 [eregontp gma] I didn't miss it at all, it's quite cool, but very not easy to find directly
    |   350559 [steve studio] I'm going to assume the assignment has long been completed, so here is
    + 350189 [Rob AgileCon] [[1000, "M"], [900, "CM"], [500, "D"], [400, "CD"], [100, "C"], [90,

^ [ANN] upr - Upload Progress for Rack (initial release)
350151 [normalperson] upr is Rack middleware that allows browser-side upload progress

^ Is it a bug?exec "cd"
350153 [axgle 126.co] $ cat into.rb
+ 350155 [wiktor zanoc] 'cd' isn't actually a program. (typically; OS X seems to have it setup as a =
| 350207 [eregontp gma] Ah ?
| 350209 [usenet-nospa] builtin `echo ${0##*/} | tr \[:upper:] \[:lower:]` ${1+"$@"}
+ 350212 [dancrumb gma] That may be the case under Leopard, but for many users of Linux, 'cd'
  350240 [sakuro 2238c] See the last section of the document below to know why external 'cd' exists.
  + 350244 [usenet-nospa] That actually sort of makes sense.  Neat!
  + 350253 [shortcutter ] Also

^ Need a bit of help
350164 [uforacer hot] Hey guys im trying to get this to work but I can't for reason, can you
350194 [Gennady.Byst] Looks like we have another kid with the same homework. It is becoming prett=

^ Connection failure message  trying to run my ruby file
350166 [idealone5 ho] When I am trying to run an ruby automation script, i get

^ Need help to detect error
350167 [adrian lobot] I don't know what am I doing wrong, can anyone help me?
350235 [adrian lobot] Or anyone knows where can I contact some YAML guys to help me with this
350237 [nyarly gmail] That's bizarre.  All that I can see that's different is because the failing
350267 [adrian lobot] Yeah, but I don't know where exactly should I report it. What is the
350612 [nyarly gmail] the reference that's generated by #to_yaml fails if it comes earlier in the

^ Likes Michael Jordan? believed that you also like Air Jordans The  first anniversary for store:2pairs=$79.99 welcome to http://www.crocseshop.com  Eshop Eshop.
350179 [crocsjordan0] Likes Michael Jordan? believed that you also like Air Jordans The

^ The next generation
350182 [lxlx87 gmail] You wouldn=92t use a cell phone today with mid 90=92s technology. And you

^ Re: Ruby Inline over two times slower under 1.9 than under 1.8?
350186 [ shot hot.pl] xample=C2=B9
350196 [rogerpack200] Shameless plug: Also checkout http://github.com/rdp/crystalizer
350228 [ shot hot.pl] =E2=80=A6and who can=E2=80=99t, for some reason, get the canonical example
350255 [rogerpack200] here's a working example (well worked once upon a time).
+ 350278 [vikkous gmai] Yet? Are you planning to release a 1.9-compatible version of
| 350282 [rogerpack200] It's actually pretty high on the "to do" list, though who knows if I'll
+ 350390 [ shot hot.pl] First, thanks a lot to you and Ryan Davis for all your great help!
  + 350471 [rogerpack200] Hmm. Maybe a bug in ruby parser?
  | 350497 [ shot hot.pl] Argh, sorry, I mis-pasted. The problem is with RubyToRubyC#process.
  + 350625 [headius head] e/if I end
    350664 [ shot hot.pl] ce/if I end

^ [ANN] backtracer 0.5 -- get rid of ... 24 levels ... forever
350197 [rogerpack200] Pleased to announce the first public release of the backtracer gem (0.5)
+ 350200 [jordi bunste] ...
+ 350270 [rogerpack200] Thanks!

^ Active_Ldap Base Config Question
350198 [johnsheahan ] I haven't done much with polling AD in the past but I am now trying to
+ 350204 [sven.schott ] Haven't used that particular gem (I use ActiveDirectory myself) but it looks
| 350211 [johnsheahan ] Putting in the full object path renders the same error message, I'm
| 350217 [sven.schott ] Ah, my bad. For every complex problem there is a solution that is clear,
| 350219 [sven.schott ] Sorry I just assumed: are you running rails? That's what I was using it with
| + 350220 [johnsheahan ] Yes, I'm running this directly through ruby version 1.8.6.
| + 350222 [sven.schott ] I just installed and tried it and got the same thing. I read the docs and
|   350225 [johnsheahan ] unfortunately, that doesn't give me a tcp connection either....but
+ 350257 [kou cozmixng] In <f17e4a070c8efbdc879559a9eb7ea0ef@ruby-forum.com>

^ Separate code space/sandbox?
350199 [patrik.sundb] I'm interested in figuring out a way to get a separate scope. I do not
+ 350201 [jordi bunste] ...
+ 350214 [billk cts.co] This isn't very pretty, but...
| 350254 [patrik.sundb] yeah, that doesn't quite fly for my purpose - i want an initialization
+ 350275 [vikkous gmai] Here's a macro which seems to do the job. Comments follow.
  350276 [patrik.sundb] Awesome! I had not seen rubymacros before. I'll dig into this and try to
  350277 [vikkous gmai] If you get stuck or can't understand something, don't hesitate to ask me.
  350280 [rogerpack200] Sweet I want to use macros.  How about one to support ++? :)
  350286 [vikkous gmai] Hmm, I had thought that ruby's immutable numeric types meant this was

^ Rubular Rocks
350203 [transfire gm] It made all the difference in the development of one of my most recent
350205 [djberg96 gma] I second this motion. I've definitely used it for sanity checking. :)
350223 [richard.conr] +1
+ 350226 [wishdev gmai] Not to hijack the thread or anything - but the Firefinder addon to firebug (
| 350236 [richard.conr] I appreciate the hijack. Now back to our scheduling program of unadulterated
+ 350239 [tim.pease gm] recent
  350272 [ralphs dos32] Is that Boulder Colorado?  If so ... is there a meetup or a website,
  350273 [tim.pease gm] Indeed, it is Boulder, Colorado.=20

^ ruby and framework
350210 [teeosx gmail] i must make simple framework in ruby, i know ror is the best, but i
350221 [shortcutter ] Welcome to Ruby!

^ "undefined method in 'targetnamespace='" in wsdl/import after  upgrading to Snow Leopard/1.8.7
350216 [bill.gathen ] I upgraded to Snow Leopard this morning and the 1.8.7 wsdlDriver suite

^ installing bdb-0.6.5 in ubuntu
350224 [donsdgr81 gm] I'm trying to install bdb-0.6.5 on my Ubuntu machine. I was able to

^ exception for program running on ruby code
350227 [ahmad.azizan] I'm trying to get an output from /var/log/syslog for certain amount of
350229 [ahmad.azizan] I think I've got the solution,
+ 350230 [vjoel path.b] require 'timeout'
| 350232 [ahmad.azizan] Thanks for the correction. Actually I'm running javascript interpreter
+ 350231 [vjoel path.b] require 'timeout'

^ forking behaves differently when using apache
350233 [nick nick-br] I want a CGI script to fire off another process and continue executing
+ 350234 [eleanor game] Do you have Apache configured to use preforked workers or to use
+ 350248 [shortcutter ] All sorts of possible reasons: Apache might buffer your output and
  350259 [nick nick-br] 9.10. Is there a particular Apache directive I could use to make it
  + 350263 [shortcutter ] It seems so.  You'll probably have more luck with this question when
  + 350293 [eleanor game] On reflection I suspect it wouldn't make a lot of difference as...

^ HTTPS Post Bad Request
350243 [finist.rus g] Greetings all.

^ Simple problem using Nokogiri xml eaderr
350246 [pc.stephens ] <?xml version='1.0' encoding='UTF-8'?>
+ 350252 [ryand-ruby z] I suggest you look into this. your code works fine for me (tho I'm =
+ 350264 [aaron tender] ^^^^^ Looks like you're using 1.9.0

^ how to find ruby header file without platform dependency.
350250 [jykim altiba] Now I am wondering to have a way to find a location of the ruby header =
350251 [stefano.croc] You can look at the Config module and, in particular, at Config::CONFIG, which
350312 [jykim altiba] thanks stefano. :)

^ Open File Remotely
350261 [homi_us hotm] I know that this question looks like a Webistrano question but since I
+ 350271 [rogerpack200] I doubt it.  You could try farming out to ssh, though...
+ 350281 [vikkous gmai] nd
+ 350294 [ninja slapha] er of any kind
  350592 [homi_us hotm] Thanks All. Finally I've found an easier way to fix this problem. I SSH
  350638 [ninja slapha] It's not that far from how Capistrano was originally designed to work, with

^ Enumerable#find_yield, useful shortcut? better name?
350262 [transfire gm] This method has long been suggested to me as #map_detect. At first I
+ 350266 [aaron tender] I would call the method "unnecessary".  Especially since we already have
| 350269 [shortcutter ] I disagree.  The difference between TMISFAN (the method in search for a
+ 350319 [martindemell] #where doesn't read too badly
| + 350324 [eregontp gma] As Aaron,
| | 350335 [transfire gm] ct
| + 350374 [transfire gm] I agree. But to me #where also conveys the same meaning as #select.
+ 350570 [b.candler po] Unless I have misunderstood, I think there is an almost identical
  350611 [ymendel pobo] You have misunderstood. The desire is to do something when a match is

^ [ANN] a place to write/put ruby tutorials to help core docs!
350265 [rogerpack200] I plan on announcing this more fully later, but here's my attempts at

^ [ANN] servolux 0.8.0
350283 [tim.pease gm] Serv-O-Lux version 0.8.0
+ 350284 [tim.pease gm] Just to follow up to my own post, a small bugfix release has been =
+ 350292 [mguterl gmai] Tim,

^ Unsubscriber
350285 [welithaborge] Unsubscriber W=E9lita Borges da Silva=0A=0A=0A      _______________________=

^ queuing work in a web app (sinatra/webrick)
350287 [g gurpal.co.] I want to make a webapp that allows users to queue bit of work
350288 [g gurpal.co.] Oh and i forgot to mention that the queue can be persisted if u want - i
+ 350289 [g gurpal.co.] snip..
| 350296 [tony medioh.] Are you wanting to farm out work among a distributed network of agents?
| 350304 [g gurpal.co.] not really farm out, i'll check this out but mq sounds over the top for
+ 350309 [richard.conr] There are numerous solutions for this kind of task: BackgroundJob,
  350867 [g gurpal.co.] OK i managed to use Sequel DB. But the backgroundjob api etc seems
  350884 [rob flowof.i] I would guess your culprit for the spike to 100% CPU usage may be your
  350885 [g gurpal.co.] Sure, i got this code from the Oreilly Ruby Cookbook. Is it bad code
  350887 [rob flowof.i] The book seems to be a little outdated - for example, i rarely see

^ DRYing a Regex
350290 [RichardDummy] I've got a routine that works fine at building an array of upper-case
+ 350291 [vikkous gmai] On 11/12/09, RichardOnRails
+ 350295 [james grayso] Well, you don't really need a StringScanner for this simple task.  Your =
| + 350299 [vikkous gmai] ooh! that's even better.
| | 350310 [RichardDummy] ur code
| | 350314 [RichardDummy] Hey Caleb & James,
| | 350320 [mark thomasz] On Nov 13, 2:34=A0am, RichardOnRails
| | 350325 [shortcutter ] TM FDX}
| + 350311 [RichardDummy] On Nov 12, 6:50=A0pm, James Edward Gray II <ja...@graysoftinc.com>
|   350318 [shortcutter ] There's always something to be said for conventions.  The issue with
+ 350298 [vikkous gmai] On 11/12/09, RichardOnRails

^ newbie ..need help with metaprogramming..
350297 [dhavalvthake] doing wrong..can you pl help?
+ 350300 [vikkous gmai] What did you expect it to do, and what did it actually do?
+ 350301 [josh.cheek g] class Testvar
| 350361 [ralphs dos32] Supernewbie question: Where is the documentation for respond_to? ?
| 350362 [josh.cheek g] Then search for "respond_to?" and you will see three classes which define
+ 350571 [b.candler po] Here you are testing if your object has a particular method. The method

^ New Librarys on Windows Mobile(CE) Ruby
350302 [nathanjava a] As everybody knows, there is a Ruby port to Windows CE(Mobile) and I'm
350303 [nathanjava a] Also is good if it's possible to install this new librarys just by

^ erb and js question
350305 [derekbellner] I did some looking around on google and found a fix for setting the
+ 350315 [rubfor recit] I suggest you need the focus () function called by the onload event.
+ 350572 [b.candler po] This isn't really a Ruby question, but briefly: you can emit a
  351640 [derekbellner] Yeah I heard of jquery from my rails beginner class and now I am trying
  + 351648 [b.candler po] jQuery problems don't really belong on a Ruby mailing list.
  | 351702 [hassan.schro] Even though the "language" attribute of the script tag has been
  | 351724 [b.candler po] Hmm. I picked up this practice from "Javascript - The Definitive Guide"
  + 351649 [imedina gros] This message is in MIME format.  The first part should be readable text,
  | 351650 [b.candler po] I think you'll find there is; the code has
  | 351657 [imedina gros] This message is in MIME format.  The first part should be readable text,
  + 351653 [b.candler po] Erm, I missed the obvious thing there, which is that you're not loading

^ Ruby & Physical Computing
350307 [imran.nazir ] dvice on possible prototyping kits I can buy for my experiments that can be=
+ 350614 [adrian lobot] I'm interested in this subject too, so if anyone can share any info,
| 350632 [gabriel.horn] y experiments that can be programmed using Ruby.
| 350633 [rick.denatal] my experiments that can be programmed using Ruby.
+ 351532 [rasputnik he] experiments that can be programmed using Ruby.

^ mod_ruby on windows
350308 [hypermeister] ...

^ scrape html gives partial result
350316 [hawat.thufir] Why does scrape.rb just result in a few lines of html, rather than an
350365 [brabuhr gmai] ing
350366 [hawat.thufir] Ok, thanks, that problem is solved by using text instead of string.
350370 [marnen marne] It depends on the conceptual structure of the application.  I doubt that
350473 [hawat.thufir] Yeah, figured as much.  Partly as an exercise, I'll try for a base

^ Create Api to create document and add,edit,delete text and t
350317 [skrithikaa g] table(add row, modify and delete row)

^ how to copy array in ruby
350321 [avid.piks gm] I am a novice in Ruby programming so this question might look trivial
350322 [jgabrielygal] irb(main):001:0> a = [1,2,3,4]
350381 [avid.piks gm] On Nov 13, 6:34=A0pm, Jes=FAs Gabriel y Gal=E1n <jgabrielyga...@gmail.com>
+ 350384 [minilith gma] In order to help us to figure out what is the problem, you might want
| 350387 [ralphs dos32] Is there a way to make a deep copy?  That is ... in the code below,
| 350388 [ shot hot.pl] If the contents of the array are marshalable, you can
+ 350416 [derrick.fied] you can make it via this method "clone" b =3D a.clone

^ Invitation to join Rubyists.EU!
350323 [javier.cicch] Dear Ruby enthusiasts,

^ Class.new and local variables
350327 [brister pobo] I'm trying to do something similar to the Camping 'R' class generator.
350330 [dblack rubyp] Instance variables are strictly per object. The class you get back
350333 [brister pobo] Wow. I go get coffee and the solution arrives.... excellent! Thanks.

^ just for fun: oneline code for 4 language permutation
350328 [axgle 126.co] %w{ruby c java php}.permutation.to_a
350329 [paul pollyan] .shuffle! is shorter than .sort_by{rand} by 5 characters.
350331 [paul pollyan] And it just did.
350332 [paul pollyan] Actually 1 - ((23/24)^977) is a better lower bound.  I'll shut up now.

^ [ANN] github svn cloner
350338 [rogerpack200] Since several projects of interest to me are still "svn only",

^ html format for unit tests
350339 [allen_abc ya] I am using Ruby unit testing successfully. But what I need is to enable
350353 [marnen marne] I know RSpec will do this (see the command-line options), but I don't
350354 [richard.conr] There are some external github projects that add effective reporting to

^ Module with a class?
350341 [mattbrooks g] I have a file that has a class called "Core" that defines tons of
350344 [nyarly gmail] Some example code would help a lot.  File boudaries notwithstanding it
350350 [jgabrielygal] If I understood correctly, he wants objects of class Hello to call
350355 [mattbrooks g] Judson's response would have been correct if the say method in hello
350358 [jgabrielygal] Yes, you can have class Hello in a different file if you want. In that
350880 [mattbrooks g] Worked perfectly, thanks again.
threads.html
top