390544-391933

390341-390792 subjects 390752-414085

Can't find right gem config file
390544 [pinit@in er ] I have install ruby-1.9.1 via Macport long time ago. I have upgrade to
+ 390549 [phildobbin@g] <http://lists.macosforge.org/mailman/listinfo/macports-users/>
+ 390552 [ryand-ruby@z] There is nothing to correct. That's the abi compatibility version.

follow uri redirect
390553 [aggouni2002@] I am trying to get an uri redirection but I am getting the same uri
390560 [nosuzuki@po ] I'm not sure but open-uri may follow the redirection.

Step By Step for Ruby
390554 [matcsimpson@] I need a little help with a step by step of Ruby.
+ 390555 [isaacbfsande] Where are you starting from? How much programming experience do you have?
+ 390556 [jakekaiden@y] think of something you want to make...
+ 390557 [onetproducti] Thank you very much both of you.
  390559 [isaacbfsande] I would suggest checking out Chris Pine's book Learn to Program. It is a

I need help with this problem !
390558 [ric.nobrega@] study computer science, so i think that is better start learning now,
+ 390561 [josh.cheek@g] 2011/11/25 Ricardo N=F3brega <ric.nobrega@hotmail.com>
+ 390564 [shevegen@li ] You need to install ruby on your computer.

Simplest way for secure, JSON-based client/server solution?
390563 [robert.feldt] Dear ruby-talk'ers,
390605 [b.candler@po] If you've already decided you want to use ssh to handle the encryption,
390618 [shortcutter@] I can't see that Robert has said this.  He wants SSL but not necessarily SSH.

Does the configure step of compiling work on OS X Snow Leopard?
390566 [andrew.j.gri] I tried compiling the trunk version on OS X Snow Leopard, and it
390577 [ryand-ruby@z] I've currently got r33782 (2011-11-17) checked out and it configures on =
390578 [ryand@ze sp ] with
390579 [andrew.j.gri] Same here - ./configure worked with
390583 [ryand@ze sp ] Should be fixed.

Your best Project
390571 [onetproducti] What is you personal best app/project you have made.
+ 390572 [rubytalk2dav] In Rails, the best one I've put out for public use would be The
+ 390574 [onetproducti] Thats what I don't get how and what do I do with rails I would like to
  390575 [rubytalk2dav] Oh!  There is a better place to ask about Rails things, the

check email accounts with a ruby script
390581 [mcuggy@gm il] I've seen a Ruby script that could check web-based email accounts (e.g.,
390582 [brabuhr@gm i] Years ago I used FireWatir to drive Firefox to hit GMail; Watir

question about overloading
390584 [vkantabu@gm ] Back in 2007, somebody posted a question asking whether or not it is
+ 390585 [josh.cheek@g] My assumption would be that this code was auto-generated by some sort of
| 390586 [ryand-ruby@z] He's asking about overloading, not overriding.
| 390587 [mikaa123@gm ] There is no way to overload a method in Ruby. That's in part due to Ruby
| 390603 [matma.rex@gm] FXRuby is not written in Ruby (it's a C extension), and this is not
+ 390610 [vkantabu@gm ] Thank you for all your answers!  The last one (posted by Bartosz

Can't require datamapper
390588 [jvalencia@cl] $ gem -v
390589 [jvalencia@cl] Ok forgot it, they changed it to "data_mapper".

Creating 2-D array from 1-D array
390590 [windbreiz@gm] a = [1 , 2 , 3 , 4 , 5 , 6]
+ 390594 [peter.c.r.la] Here are some suggestions, which should help reduce the use of indices
+ 390595 [windbreiz@gm] Thanks a lot for the suggestions.
+ 390597 [josh.cheek@g] # There are some very helpful methods in Enumerable
| 390598 [sandro.pagan] a = [1 , 2 , 3 , 4 , 5 , 6]
| 390613 [m.fellinger@] Beware that this will only work if the odd elements are unique.
+ 390620 [windbreiz@gm] Many thanks for the tips.  You guys are great!

How to call an array from one ruby script to another
390604 [harismahesh@] Can we call an array from one ruby script to another and access array
390606 [josh.cheek@g] Variables that begin with dollar signs are global. So if you namei t
390634 [jakekaiden@y] this is true, but global variables are generally a bad idea - they can

[ANN] rerun 0.6.3 released
390609 [alexch@gm il] rerun 0.6.3 released
390842 [alexch@gm il] as of rerun 0.6.3, it polls 1x/sec for keyboard input (e.g. "c" to

[ANN] UnicodeUtils 1.2.2 - case conversion, normalization and more
390611 [perfectly.no] UnicodeUtils implements Unicode algorithms for case conversion,
390615 [botpena@gm i] uh, very handy. thanks stefan

[ANN] Malt v0.4.0 released
390619 [transfire@gm] Malt 0.4.0 has been released.

TCPServer' s accept method crashes the ruby program
390627 [mohitbansal1] Operating System: Windows XP
+ 390629 [shortcutter@] You do not want to accept nonblocking in this way here.  The accepting
+ 390669 [amritanshu.p] def accept_client(svr)

[ANN] mogilefs-client 3.0.0 released
390628 [normalperson] A MogileFS client library for Ruby.  MogileFS is an open source

[ANN] hoe 2.12.4 Released
390635 [ryand-ruby@z] hoe version 2.12.4 has been released!

[ANN] hoe-seattlerb 1.2.8 Released
390636 [ryand-ruby@z] hoe-seattlerb version 1.2.8 has been released!

Ruby Code help
390638 [tridib04@gm ] I am trying to print out the Garbage Collection behavior. I tried the
+ 390640 [echristopher] ObjectSpace.statistics is only provided by Ruby Enterprise Edition, not MRI.
| 390641 [isaacbfsande] You can use GC.stat to check it in 1.9.3
| 390643 [matma.rex@gm] Then you won't be able to see any information. Use REE or 1.9.3.
+ 390642 [tridib04@gm ] Am using Ruby 1.8.6

Help Needed urgently
390639 [tridib04@gm ] I am able to implement manual memory management in Ruby.I can allocate
390672 [rubytalk2dav] I don't get what you mean.
390940 [tridib04@gm ] I am trying to allow the user to manually allocate and free memory
390955 [sunaku@gm il] Set a breakpoint on that function in GDB instead of printing things.

[ANN] Voyeur 0.1.0 released, a rubygem that converts almost any video format to common HTML5 formats
390648 [hflouw@gm il] Version 0.1.0 release can convert any codecs that ffmpeg can handle to

Loading a faulty ruby file - forcing this
390650 [shevegen@li ] Consider you have two ruby files.
+ 390651 [perfectly.no] You could hook into Object#method_missing and
+ 390656 [shortcutter@] Of course.  An exception always immediately stops execution at the
| 390658 [lockdownking] ...
+ 390668 [shevegen@li ] Hmmm. My approach would only work easily if I'd
| + 390670 [matma.rex@gm] IMO the "proper" way to do this would be to use ruby_parser and
| + 390677 [shortcutter@] You cannot do that because exception throwing code is written with the
| + 390708 [ryand-ruby@z] Your approach TO WHAT?
+ 390747 [transfire@gm] ...

Garbage collection and define_finalizer
390652 [garthy_lmklt] I was wondering if running the (mark and sweep?) garbage collector
+ 390653 [cremes.devli] The finalizer behavior is undefined at the language level because it is runtime-dependent. Try running your code on JRuby or Rubinius. Each has a different GC than MRI and will thus behave differently. The GC in MRI is also different between 1.8 and 1.9 when it was replaced with a more efficient mechanism.
| + 390683 [garthy_lmklt] Thankyou for the fast reply. :)
| + 390815 [headius@he d] That is, in fact, what Hotspot does. If you get a thread dump from a
+ 390655 [shortcutter@] There are no guarantees whatsoever that *any* GC run will collect
  390682 [garthy_lmklt] Thankyou for the detailed reply. :)
  390688 [shortcutter@] You're welcome!
  390726 [garthy_lmklt] It certainly keeps things interesting. ;)

Error loading files
390654 [di3go.bernar] I need to load all my models from rails inside a ruby program that gonna
+ 390657 [shortcutter@] You cannot use a class before it is defined.  A simple solution
+ 390686 [di3go.bernar] Thanks, that solved my problem!

What's wrong with this code?
390659 [kenleytan@ya] I made a program to motivate me for the last day of NaNoWriMo, but it
+ 390660 [kenleytan@ya] Sorry, if it isn't good enough. The file is right here.
+ 390661 [stefano.croc] That error means that there's an else keyword without the corresponding if. In
| 390665 [peterhickman] Sorry I mean "while" :(
| 390663 [peterhickman] Same for the 'if' on the 'If @en_points > @ur_points' line. Ruby is
| 390666 [peterhickman] now =3D Time.new=A0thir =3D Time.new + 20While now !=3D thir=A0 =A0num =3D =
+ 390662 [kenleytan@ya] puts 'Enter your goal words for today'
  390664 [isaacbfsande] Why are you using so many instance variables (atvars or @vars)? If you

Rdoc-data install problem
390667 [stevanity.hf] This is my first post here and Im starting with Ruby only now.
390678 [drbrain@se m] rdoc does not depend on the rdoc-data gem, so you probably installed it =
390684 [stevanity.hf] Thanks for your help. But as you said 1.9.2 does not need rdoc-data gem.

Ruby and ASCII matrix
390671 [amulan91@gm ] I have prepared the following code (it almost works for even size
+ 390673 [jgabrielygal] I get an error here, cause Matrix#[] is expecting an array.
+ 390674 [amulan91@gm ] Thank you.

Simple optparser problem
390675 [ml@co va es ] I'm writing a small script to be handled with optparser. I've read the =
390679 [peter.c.r.la] opts.on('-d', '--database', 'comments go here') do |x|
390680 [ml@co va es ] Thanks for the reply, worked fine!

how do i create a list of modified files in xml
390676 [pillay.mithu] for any directory, i need to create a list of files in it and store in a
390701 [rubytalk2dav] There are a number of possible approaches.

Re: Ruby Future in coming years
390681 [akshay.dce@g] Trout Java
391845 [akshay.dce@g] Posted via http://www.ruby-forum.com/.
391867 [shevegen@li ] Lame exploit attempts. Especially the very idea that it would work is a
391923 [akshay.dce@g] final workspace
391930 [peterhickman] Is there a particular reason why you are positing a 17m zip file of
391931 [echristopher] I think it's spam and/or an exploit attempt, as Marc said; but I don't
391933 [peterhickman] I downloaded it (Workspace_Backup_final.jpg) with wget and ran file

stderr and stdout in separate objects AND PTY
390687 [saku@yt i. i] What are my practical options for popenX or net/ssh to have stderr,

Stupid question
390689 [lollyproduct] I have a really stupid question here, but i'm a newbie so hear me out.
+ 390690 [the.jaba@gm ] I'm sure someone will come up with a better solution, but a quick and dirty
| 390691 [lollyproduct] Thank you.
+ 390696 [sylvester.ke] How about this one?
+ 390702 [rubytalk2dav] If you split on an empty delimiter, you get the characters
| 390704 [adam@ap es o] You can do it with #chars, too.
| 390707 [rubytalk2dav] Oh yeah!  Good catch!  That knocks four chars (no pun intended) off my solution.
| + 390709 [astounding@g] If we're golfing, here's my amateur golf attempt:  *chuckle*
| + 390710 [adam@ap es o] ...
| | 390711 [rubytalk2dav] Aren't you supposed to shout it, like "4!"?  (And would some smart@$$
| + 390724 [josh.cheek@g] More importantly, it's much clearer.
| + 390727 [botpena@gm i] can we cheat? :)
|   390728 [astounding@g] I Admin Tensor's solution modified to support digit strings up to 1149
|   390729 [admin@te so ] Very good, Aaron.  Now, is there any way to replace that "s.size" with
|   + 390735 [rubytalk2dav] ARGH, Verizon's overzealous spamfilter has been eating my replies outbound.  :-P
|   | 390736 [admin@te so ] As Aaron pointed yesterday, if the number of digits is less than or
|   + 390865 [b.candler@po] lambda {|x| x.sum%(48*x.size)}["9"*1149]
+ 390713 [admin@te so ] If the number of digits is less than five, how about this one for Ruby
| 390716 [astounding@g] Clever!
| 390718 [admin@te so ] First of all, to be more exact, I have to say in my previous post "if
+ 390858 [lollyproduct] Thank you everyone for Helping me out.  :-)
  390862 [shortcutter@] If I am not mistaken, everybody in this thread resorted to using a
  390863 [sylvester.ke] I posted a similar version to yours which uses an iterator.
  390864 [shortcutter@] Oh, I'm sorry I overlooked that one.

Ray Tracing for acoustic analysis
390692 [daniel.boote] I'm looking to write a ray tracer in Ruby that can be used for acoustic
390695 [dave.baldwin] A bit of an open question!  I have written ray tracers for image =

RubyInstaller: What is your environment?
390693 [luislavena@g] If you have trouble viewing or submitting this form, you can fill it out
390694 [kc9cmt@ea th] Survey Below.

[ANN] Neapolitan v0.4.0 released
390697 [transfire@gm] Neapolitan 0.4.0 has been released.

[ANN] rest-core 0.8.0 released
390699 [godfat@gm il] # rest-core <https://github.com/cardinalblue/rest-core>

[ANN] rest-more 0.8.0 released
390700 [godfat@gm il] # rest-more <https://github.com/cardinalblue/rest-more>

errors with respond_to? and inject
390706 [stkfdt@gm il] This is my first post, and i hope i use the correct topic.
+ 390714 [sduncan@we a] The first error is pretty straight forward to sort out. The #respond_to?
| 390717 [stkfdt@gm il] Thx for ur response Sam
| 390719 [sduncan@we a] I won't pretend to know what is happening under the hood, but my simple
+ 390720 [stkfdt@gm il] Well it makes sens
+ 390721 [peter.c.r.la] Adding some print statements in the inject helps trace what is
+ 390722 [stkfdt@gm il] Nicely done
+ 390723 [stkfdt@gm il] Quick question though
  390734 [peter.c.r.la] You need respond_to? if you may pass in a non-Item instance to be added to an Item (or rather, as this is Ruby, an instance which does not respond to the 'price' method).  Myself, I would try not to do that, but that depends on the design of the rest of your program.

calling a SOAP service behind NTLM
390712 [tmays.awhast] years.

[ANN] DCell 0.0.1: Distributed actors for Ruby
390715 [tony.arcieri] DCell is a distributed actor framework for Ruby. Somewhat similar to DRb,
390783 [code@ap th o] I think it's missing a license notice.  Is it licensed under the same
390802 [tony.arcieri] Yep. Thanks for the heads up. I went ahead and added the MIT license
390824 [code@ap th o] Excellent.  Thank you.

break from a loop which is run on a xml
390730 [pillay.mithu] how do i loop through a xml and break when i find the node with a
+ 390731 [jakekaiden@y] try to reduce your code to an executable snippet and then post that -
+ 390776 [shortcutter@] Use a proper XPath expression.  Other than that I second what Jake said.
+ 390920 [pillay.mithu] sorry guys..its company code cannot make it public.neways i figured out
  390930 [shortcutter@] Then strip it down / change it to a simple case which shows the

[JOB] Softwareentwickler/-in, prometheus-Bildarchiv, UniversitçÕ zu K÷Ín
390733 [jens.wille@u] We, the prometheus image archive at the University of Cologne

ANN: Sequel 3.30.0 Released
390737 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

Is it useful to run GC.start periodically?
390738 [ibc@al ax ne] makes sense to periodically (i.e. each 2 minutes) run GC.start
390739 [steve@st ve ] If you don't know if you should run GC.start, then you shouldn't be

GC.malloc_allocated_size and GC.malloc_allocations not available (#if CALC_EXACT_MALLOC_SIZE)
390740 [ibc@al ax ne] #if CALC_EXACT_MALLOC_SIZE
390742 [normalperson] Enabling that breaks any C extensions that (incorrectly) mix
390743 [ibc@al ax ne] Thanks for the explanation, good to know.
390744 [ibc@al ax ne] #define CALC_EXACT_MALLOC_SIZE 1

Ruby 1.9.3: GC.stat meaning
390741 [ibc@al ax ne] Can I assume that the memory consumed by my Ruby application is

yaml.h is missing / Failed to configure psych.
390745 [r@al m. it e] I'm doing a fresh sandboxed install of Ruby 'n Rails 'n such.  The
+ 390766 [luislavena@g] You missed to tell Ruby's configure to use the $SANDBOX/usr location.
| 390775 [r@al m. it e] @luislavena: That was exactly the problem -- thank you.  I did the build
+ 390767 [aaron.psamue] In Unix or Linux the case may be needing to update ldconfig to tell the

RTensor v0.0.1 Released
390746 [admin@te so ] Just for fun, I created another multi-dimensional matrix which I call
+ 390786 [code@ap th o] It does not appear to come with a license.
| 390787 [admin@te so ] It is an executable only for Windows.  Do we usually put a license?  If
+ 390812 [admin@te so ] I have added the license which is based on "Modified BSD License".
| 390825 [code@ap th o] Thank you for clarifying that.
+ 390895 [admin@te so ] I just updated rtensor_sup.rb to ver 0.0.1.B by adding methods "sum",
+ 390913 [admin@te so ] And also the tentative tutorial contains more sections (I added
+ 390996 [admin@te so ] and I have updated rtensor_sup.rb to ver 0.0.1.D by fixing the function
+ 391093 [admin@te so ] and I have updated rtensor_sup.rb to ver 0.0.1.E by adding the function
+ 391107 [admin@te so ] Regards,

embedded ruby event hooks
390748 [steve@rt w. ] We have been running ruby for about 7 years as an embedded interpreter
390751 [ryand-ruby@z] tell
390814 [steve@rt w. ] Thanks Ryan

Why are there so many similar/identical methods in core classes
390749 [k.dorsel@gm ] Let's look at the Array class and start with method aliases.
+ 390750 [isaacbfsande] It is to make Ruby a language that is more natural. As a dev, I love it
+ 390753 [josh.cheek@g] IDK for all of them. Some are actually different, to_s and inspect are
+ 390760 [shortcutter@] No, you can't.
+ 390827 [shevegen@li ] Of course there is a reason for it. It is called aliases.
| 390857 [shortcutter@] An alias is not the same as using a C pointer.  A C pointer has one
+ 390828 [shevegen@li ] that newcomers to Ruby often find parts of it too complicated.
  + 390836 [josh.cheek@g] O.o
  | 390843 [klauer@gm il] Not to mention that development of stdlib will move to gems (
  + 390846 [hanmac@gm .d] i do not share your opinion.
  | 390866 [b.candler@po] Have you actually measured it, or are you just guessing?
  + 390856 [shortcutter@] You are not talking about syntax: you are talking about interfaces of
threads.html
top