410149-411038

409266-410455 subjects 410324-410608

Another buffer overflow
410149 [lists@ru y- ] -note (did set ulimit -n 20000 and also done more modifications to
+ 410150 [shortcutter@] You should open a bug for this and make sure to provide the test program
+ 410151 [normalperson] What Robert already said.
+ 410153 [lists@ru y- ] ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
| 410161 [shortcutter@] Go to http://redmine.ruby-lang.org/ and file the bug. You can attach the
+ 410163 [lists@ru y- ] Yeah i figured that out after posed here *facepalm* anyway, i been to

Need help to understand the Method#original_name
410152 [lists@ru y- ] The documentation of
+ 410159 [lists@ru y- ] * proc.c (method_original_name): new methods Method#original_name and
| 410162 [lists@ru y- ] @Hans I am using Ruby2.0.0-p0 in my Ubuntu13.04 system. It is very new
+ 410164 [lists@ru y- ] I'd say since there's the tag [EXPERIMENTAL] in that description, it's

[ANN] zenweb 3.2.0 Released
410154 [ryand-ruby@z] zenweb version 3.2.0 has been released!

[ANN] vlad 2.6.2 Released
410155 [ryand-ruby@z] vlad version 2.6.2 has been released!

[ANN] sexp_processor 4.3.0 Released
410156 [ryand-ruby@z] sexp_processor version 4.3.0 has been released!

[ANN] hoe 3.7.1 Released
410157 [ryand-ruby@z] hoe version 3.7.1 has been released!

Selected element from select_list
410158 [lists@ru y- ] Using Watir,I want to print the selected element from select_list, how
+ 410165 [lists@ru y- ] print browser.select_list(:id => 'my_list').value
+ 410167 [lists@ru y- ] Thank you for your reply, When I use your statement to print the
+ 410168 [lists@ru y- ] If you want the text instead of the value, it's a bit more complex.
+ 410169 [lists@ru y- ] That's the great idea, thank you very much.
+ 410184 [lists@ru y- ] It works perfectly, Thank you very much Once again.

Problem installing rvm
410166 [lists@ru y- ] Hey
410208 [lists@ru y- ] You cannot update an existing Ruby version just by installing RVM "over

Memory Free
410171 [lists@ru y- ] Is there a way to see how much memory is free for a Windows system
410174 [lists@ru y- ] require 'ruby-wmi'
410175 [lists@ru y- ] Nice link.. Thanks Joel.

SSL error no idea what to do
410173 [lists@ru y- ] certificate. I have tried running it without the CA certificate and it
+ 410183 [tony.arcieri] There's any number of things that can go wrong. A code snippet of what
+ 410202 [lists@ru y- ] require 'rubygems'

How to extract the class names?
410176 [lists@ru y- ] module A
+ 410177 [wishdev@gm i] Module.constants.select { |const| Module.const_get(const).is_a? Class }
| 410178 [lists@ru y- ] I am getting error.. :(
+ 410179 [fxn@ha hr f.] This would work
  410180 [fxn@ha hr f.] root.constants(false).map do |name|
  410185 [lists@ru y- ] module A

Use ruby script to determine if there is enough space left on a device
410181 [lists@ru y- ] I want to use FileUtils to copy via ruby.
+ 410182 [normalperson] Nothing pure Ruby.
+ 410186 [fluido@fl id] manages to be pure Ruby, but is also ABSOLUTELY NON-PORTABLE (I work
+ 411014 [lists@ru y- ] syscall(137,fn,b)
+ 411038 [botpena@gm i] try the tools here https://github.com/djberg96/

Ruby + OODB and OODBMS
410187 [lists@ru y- ] I have a question regarding the object oriented database and object
+ 410189 [shortcutter@] From what I am reading I gather it's the latter.
+ 410192 [hassan.schro] Maglev includes its own persistent object store.
  410194 [lists@ru y- ] Thank you, Hassan and Robert.
  + 410196 [shortcutter@] I'd rather use an ORM with a RDBMS - simply because data in a RDBMS is
  + 410197 [hassan.schro] Right, and that's probably your most "plausible blueprint" :-)
    410210 [lists@ru y- ] you're right. For the purpose of design and data modeling it doesn't

uninitialized constant OCI8::Driver
410188 [lists@ru y- ] I have loaded ruby-oci8 and dbi. I did gem install of dbi and oci8.
410200 [kubo@ji ba .] This error is not an issue because nobody define OCI8::Driver.

Using Ajax to access Ruby HTTP server
410190 [lists@ru y- ] from IE/FF/Chrome and display the result XML correctly, however when I
410191 [lists@ru y- ] ok, I got the reason. AJAX should only access the URL in the same
410199 [aleiphoenix@] Does jQuery code running at http://localhost:9000 ? JavaScript , like you
410201 [Carey.Nation] Yep, youre getting nailed by cross site scripting. http://en.wikipedia.org/wiki/Cross-site_scripting

installing mysql-ruby-2.8.2 adaptor
410193 [lists@ru y- ] $ ruby ./test.rb -- [localhost ['user'@'localhost' [password

What are [[:rest]] or [[:req]] in ruby ?
410203 [lists@ru y- ] Method#parameters(http://www.ruby-doc.org/core-2.0/Method.html#method-i-parameters)
+ 410205 [lists@ru y- ] def m(a,b=3,*c,d: 4,e:, **g,&f)
| 410206 [lists@ru y- ] You are really great. I am very much thankful to you..You always helped
+ 410218 [lists@ru y- ] class Foo
  410219 [tamouse.list] (from ruby core)

BigDecimal's #power method behaves strangely
410207 [lists@ru y- ] I'm experimenting with arbitrary precision numbers but I ran into a
+ 410211 [shortcutter@] 4827586206896551724")
| 410212 [lists@ru y- ] 998229840756361333048675137604431608257538375836478005205851705333523733848357300705094580513261348742578974976"
| 410213 [shortcutter@] Then there's probably no way around invoking #round when appropriate.
| 410214 [lists@ru y- ] I'm just trying something with full period primes.
+ 410233 [lists@ru y- ] In the documentation to 'BigDecimal#power', the optional `prec' argument
| 410266 [lists@ru y- ] I have downloaded the Ruby source code for offline documentation with
+ 410238 [lists@ru y- ] Filled-in as the bug report #88818

Binary Search Tree, recursive structure
410215 [lists@ru y- ] class Node
+ 410216 [shortcutter@] You have spaces between method name "new" and the opening brackets. These
+ 410217 [lists@ru y- ] I did the same mistake again. Thank you!

Re: What are ] or [[:req]] in ruby ?
410220 [lists@ru y- ] Ohh! My bad... thanks for the catch! :)

Confusion with the UnboundMethod#source_location method
410222 [lists@ru y- ] I read the UnboundMethod#source_location
+ 410223 [lists@ru y- ] you run the file directly in ruby right? "-" means it was defined in
| + 410224 [lists@ru y- ] Thank you very much "Mr. Expert".. I understood now.
| + 410230 [me@da id wd ] Hey Hans,
+ 410232 [lists@ru y- ] for an external binding or functions that are defined inside C or C++
  410240 [me@da id wd ] Thanks for clarifying for me.

[ANN] loggability 0.7.0 Released
410225 [ged@Fa ri MU] loggability version 0.7.0 has been released!

Need help to understand when should Kernel#Hash return empty hash
410226 [lists@ru y- ] As per the documentation of `Kernel#Hash`
+ 410227 [lists@ru y- ] Hash[["class", "foo"]]
+ 410229 [shortcutter@] You are not invoking Kernel#Hash here but Hash#[].
  410231 [lists@ru y- ] @Robert - basically depending on what Kernel#Hash and Hash#[] methods

Actionmailer - heroku app
410228 [lists@ru y- ] This is a newbie question so please excuse me, I have been working with
+ 410243 [raasdnil@gm ] TestMailer.deliver_test_email=20
+ 410244 [raasdnil@gm ] run
| 410249 [cookrn@gm il] I don't believe the issue is using the '::' vs. '.' notation. Although it
+ 410453 [lists@ru y- ] Thank you both, I had got over my problem using Mail, but I am going to

Why does ruby not have cascade messages?
410234 [lists@ru y- ] As far as I know ruby has no direct way to support cascading method
+ 410236 [shortcutter@] Window.new.instance_eval do
+ 410237 [chris.hulan@] You often see this in Ruby referred to as method chaining, with but it is
+ 410239 [hmaddocks@me] Try 'tap'

Junior Ruby on Rails developer searching for remote job
410235 [lists@ru y- ] I am a junior developer searching for remote job. Please find more
410271 [echristopher] Stefanos, I don't see any attachment. (I'm not sure either whether this

[ANN] dtas - duct tape audio suite for *nix
410241 [normalperson] * http://dtas.80x24.org/README
+ 410242 [normalperson] Btw, I've written an alternate introduction for users already familiar
+ 410253 [tamouse.list] I used to put duct tape on old broken cassette cases, but it still =
  410265 [normalperson] Heh, the idea for dtas-player is really obvious/simple[1].
  410273 [tamouse.list] Oh, hey, not dissing your player =97 it's just the duct tape idea is =

each value in an array dump to new line?
410245 [lists@ru y- ] So I am trying to generate a list of my numbers in a rage and export
+ 410246 [hassan.schro] That way leads to the dark side. Take a moment to meditate and let go of
| + 410250 [lists@ru y- ] OH that's so beautifully simple!, I tried adding "\n" to when adding to
| + 410254 [tamouse.list] On Aug 25, 2013, at 11:39 AM, Hassan Schroeder =
| + 410272 [tamouse.list] On Aug 25, 2013, at 11:39 AM, Hassan Schroeder =
+ 410247 [shortcutter@] But why generate an Array first?  You don't need that.
| 410255 [lists@ru y- ] Robert, clever idea, I hadn't thought about it that way but I believe
| + 410257 [lists@ru y- ] Right!  Well spotted.
| | 410259 [lists@ru y- ] Thanks Robert for these great timely and detailed responses!
| | 410260 [shortcutter@] You're welcome.
| + 410258 [shortcutter@] That is not a good reason IMHO.  Only if creating the sequence of numbers
|   410261 [lists@ru y- ] Well right now I have kept it at generating 80 numbers but the final
+ 410262 [lists@ru y- ] then why would the output come out as?
+ 410263 [lists@ru y- ] It's probably coming from your input. Try replacing "gets.to_s" with
| 410267 [shortcutter@] Good point!  Another reason why working with integers internally would be
+ 410268 [lists@ru y- ] gets.chomp fixed everything.

Need a more compact CSS selectors in Nokogiri search.
410248 [lists@ru y- ] My below code is working fine. But can the same output be achieved with

[ANN] dtas 0.1.I - zero-one-infinity pre-release
410264 [normalperson] Major changes!

[ANN] TeamCity Ruby Client 1.0.0 Released!
410269 [lists@ru y- ] teamcity-ruby-client version 1.0.0 has been released!

extract multiple attributes from ruby array
410270 [lists@ru y- ] I have a student array object which returns multiple attributes. I need
+ 410280 [laise@pi em ] @project.map do |p|
+ 410318 [justincollin] I think you maybe be able to do
+ 410400 [tamouse.list] need

soap5r: attempting to use SOAP::RPC::Driver.new()
410274 [lists@ru y- ] Trying my hand at Ruby.
410275 [tamouse.list] Are you determined to use soap5r? I've had nothing but success (except =
+ 410276 [kamal2222ahm] ...
| 410277 [armeen22@ya ] ...
+ 410304 [lists@ru y- ] Thx for the tip.  I will check into Savon.  I'm a complete Ruby newbie
  + 410305 [fluido@fl id] According to my eight-year experience, Ruby the language has been
  + 410398 [tamouse.list] (except
    410588 [lists@ru y- ] Savon has been working so far.  If I get the time I'll loop back to
    410589 [tamouse.list] Oh, no =97 the crux of the biscuit is *ever* the apostrophe.

unsubscribe
410278 [kamal2222ahm] ...
+ 410279 [Joseph.Chen@] Please unsubscribe me from the list. Thanks.
+ 410288 [atedplummer@] Please unsubscribe me as well.
+ 410302 [pegasus.hu@g] Please unsubscribe me.
  410320 [fdesobry@gm ] Please unsubscribe.
  410339 [myokoym@gm i] Please try to unsubscribe via the following link.

pg gem: LoadError
410281 [lists@ru y- ] I spent a good deal of time trying to get the "pg" installed on my Mac
+ 410282 [fluido@fl id] Did you execute both irb and ruby from the same username? Maybe you
+ 410362 [lists@ru y- ] So I found out what the problem was. I discovered it in another random

A minimal alternative to ERB !
410283 [lists@ru y- ] I have tried to understand how ERB works and I have designed my own
+ 410284 [shortcutter@] irb(main):001:0> '{{a}}{{b}}'.scan(/{%(.+)%}|{{(.+)}}|([^{}]+)/)
+ 410285 [lists@ru y- ] Eagle eye !
+ 410287 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 410300 [lists@ru y- ] You have to know that exists others alternatives.
| + 410309 [stu@ru yp og] Neat way to grok parsing in ruby! Nice script. Thanks for sharing.
| + 410315 [tony.arcieri] Haml is anything but fast. It blows your method caches any time you render
|   410345 [atma@co va e] charset=utf-8
+ 410470 [lists@ru y- ] That's a neat script, Sbastien! Thanks for sharing. Learned something new today. :-)

Ruby without Ruby on Rails
410286 [lists@ru y- ] mean windows applications and tools that can be written with Python. Why
+ 410307 [shortcutter@] Since both are Turing complete you can do the same with them -
+ 410308 [stu@ru yp og] The long answer is yes.
  + 410321 [abinoam@gm i] David Bryant Copeland believes you can "Build Awesome Command-Line
  + 410402 [tamouse.list] Well played.

Window 7 output redirection
410289 [lists@ru y- ] I have a very simple ruby script that uses puts to print to the console.
+ 410290 [fluido@fl id] Redirection is not done by the Ruby interpreter. In Linux, it is a
+ 410292 [lists@ru y- ] Thanks for your reply. I'm aware that the redirection is a feature of
| 410293 [fluido@fl id] If that works, it might be that you are not writing to STDOUT. You may
+ 410295 [lists@ru y- ] Thanks again. Same thing happens when I use a probe script only

what the hack...
410291 [uzleepito@gm] could someone please explain me what the hack is happening here?
410298 [phasis@gm il] It is due to the Ruby operator precedence.

: unsubscribe
410294 [allenlooplee] ...

=?GB2312?B?UmU6ILTwuLQ6IHVuc3Vic2NyaWJl?=
410296 [myokoym@gm i] (I'm not an administrator.)

Re: what the hack.
410297 [lists@ru y- ] $ irb -w
410299 [uzleepito@gm] Thanks, that makes sense.  However, that is just one half of what I don't
+ 410303 [lists@ru y- ] -0.4505495340698077 ** y is parsed as -(0.4505495340698077 ** y)
+ 410306 [strausscasse] ...
+ 410310 [i_cenov@bo e] ...

: : unsubscribe
410301 [allenlooplee] ...

Need help in Hash
410311 [lists@ru y- ] I am a newbie in Ruby and I am trying to learn Ruby these day. I was
+ 410317 [lists@ru y- ] data.each_with_object({"my_hash" => []}) {|(k,v),o| o["my_hash"] << {
+ 410319 [lists@ru y- ] Do as below as I answered you here -

Trying to create a titleize method manually
410312 [lists@ru y- ] I have been trying to create a titleize method that takes a variable
+ 410313 [hassan.schro] I suppose that depends on how you're defining "little words"  :-)
| 410314 [lists@ru y- ] Yes that is true. My goal is titlecase. I just don't really understand
| 410316 [hassan.schro] Your reply makes no sense. The point is that in order to capitalize
+ 410323 [rubytalk2dav] First, as others have pointed out, you need to define what you mean by
+ 410326 [lists@ru y- ] Ok I tinkered around with it a little bit and came up with this
| 410331 [rubytalk2dav] What if it's *exactly* 3?  Then this does nothing.
+ 410327 [lists@ru y- ] def titleize(x)
+ 410328 [lists@ru y- ] Oh thank you for that. I didn't realize I forgot the exclamation point
| 410332 [lists@ru y- ] Of course you can, every Ruby method returns something.
+ 410330 [lists@ru y- ] If your desired outcome is "On the Road", then you're disobeying your
+ 410333 [lists@ru y- ] Dave,
| 410338 [rubytalk2dav] def do_something_to_word(word)
+ 410340 [lists@ru y- ] Dave,
| + 410341 [rahegge@gm i] if it was me, I think this is how I'd go about it, not saying its the
| | 410342 [rahegge@gm i] ok, had to revise that a bit...
| + 410399 [rubytalk2dav] Quite so.  I'm trying to teach you the concepts involved, without
|   410419 [tamouse.list] Seems to me we went around on this last March. Here's my little ditty =
|   + 410424 [lists@ru y- ] Very succinct! I like the way you used send :include.
|   + 410439 [rubytalk2dav] Interesting!  I haven't had cause to use the block-form of gsub
|     + 410440 [rubytalk2dav] Dave Aronson, the T. Rex of Codosaurus LLC,
|     + 410441 [lists@ru y- ] I already showed you that! :p
|     + 410442 [tamouse.list] On Aug 30, 2013, at 8:49 AM, Dave Aronson =
|       410448 [tamouse.list] On Aug 30, 2013, at 10:49 AM, Tamara Temple <tamouse.lists@gmail.com> =
+ 410347 [lists@ru y- ] You should probably make "words_not_to_capitalize" a constant because of
| 410348 [rahegge@gm i] could definitly use some tweaking, buts its a general idea of how I would
+ 410355 [lists@ru y- ] I'd still go with the block form of String#gsub. It has all the elements
+ 410443 [lists@ru y- ] Technically an explicit newline should be followed by a capital letter,
  410444 [tamouse.list] letter,=20

rdoc zerodivide error
410322 [charleshixsn] When I try to use rdoc I'm getting a zerodivide error.  Rdoc claims that
410325 [drbrain@se m] On Aug 27, 2013, at 12:37, Charles Hixson <charleshixsn@earthlink.net> =
410329 [charleshixsn] I'm using rdoc on code that I was in the process of writing.  I got the
410334 [drbrain@se m] On Aug 27, 2013, at 15:23, Charles Hixson <charleshixsn@earthlink.net> =
410336 [charleshixsn] ...uby/cells$ rdoc -a -w 3 -o rdoc --template-stylesheets rdoc.css
410368 [drbrain@se m] On Aug 27, 2013, at 17:25, Charles Hixson <charleshixsn@earthlink.net> =
410370 [charleshixsn] OK.  Thank you.
threads.html
top