379948-381734

379731-381205 subjects 380157-380543

^ How to View Output - Stop App
379948 [flyingv786 y] Greetings, total noob question I'm sure. I'm trying to run a simple
+ 379951 [shadowfirebi] I think it very much depends what you are using as an editor. Also your OS.
+ 379952 [jeremy bopp.] If you're running ruby without any arguments and then typing your script
+ 379958 [echristopher] I assume you mean that you double-click on the script's icon, a cmd
| 379962 [flyingv786 y] Exactly, thank you everyone! (Didn't notice this before my last reply)
+ 379961 [flyingv786 y] Thanks for the replies. I installed Ruby 1.9.2 on XP.  I did save the

^ TCPSocket, send always transmit an even length message
379953 [dosadnizub g] Just a quick and obscure bug report
+ 379954 [dosadnizub g] ...this is not a flushing issue btw, adding flush at the end yields the
+ 379956 [b.candler po] I think you're using the wrong method.

^ Ruby crashes with mshtml.dll
379966 [zero_human17] I use Ruby 1.9.2.180 and it crashes several time with same error message
+ 379967 [ryand-ruby z] Isn't that a problem with IE then?
+ 379970 [luislavena g] "Windows
+ 379971 [luislavena g] I just attempted a clean 1.9.2-p180 installation, following the
+ 379974 [zero_human17] Thanks for your reply

^ taking content from arrays to open a .3ds file
379973 [borg.stef gm] This is part of my program. what it is intented to do is get the first
+ 379975 [jakekaiden g] i may be misunderstanding what you want to do, but if not - try
| 379979 [borg.stef gm] foo
| + 379980 [hyagni gmail] Your string may have "\n" at last.
| | 379982 [borg.stef gm] yesss yesss yesss it worked!!!! thankss all of you!! This forum is
| + 379981 [anurag08priy] Probably your a[0] contains a new line.
|   379983 [anurag08priy] Sorry. Accidentally hit send before typing in the complete response.
|   379984 [borg.stef gm] yes it worked!! :) thankss, you people are very helpful!
+ 379978 [anurag08priy] machine = "{a[0]}.3ds"

^ [ANN] raindrops 0.5.0 - TCP/UNIX listen queue stats for Linux
379976 [normalperson] Raindrops is a real-time stats toolkit to show statistics for Rack HTTP

^ Re: rendering fonts with ruby
379988 [damn.pepe gm] same thing and also google was not able to answer my needs.

^ blau Mobilfunk Hamburg sucht Ruby Web Developer (m/w)
379991 [sabine.voelk] Ruby Web Developer (m/w)

^ Question about amalgalite and fts3
379995 [jgabrielygal] I was happily using a script that used Sequel and Amalgalite to read a
380217 [jeremy hineg] Apologies for not replying sooner, I do not read ruby-talk every day.

^ Inserting hash value slows down as table gets larger
379998 [phil pricom.] People,
+ 379999 [dave.baldwin] I suspect is it the memory related to object creation for Array.new(2){ =
| 380010 [b.candler po] h1[ "#{a}.#{b}.#{c}.#{d}".freeze ] = 3
| 380032 [phil pricom.] Brian,
| 380051 [b.candler po] Probably not, but at least it persists, and it may be cheaper to make
| 380068 [phil pricom.] Brian,
| 380081 [b.candler po] Either.
| 380093 [phil pricom.] Brian,
| 380682 [phil pricom.] People,
+ 380102 [b.candler po] I don't think that does what you expect. Try it in irb.
  380122 [phil pricom.] Brian,

^ Is there a way to use "minitest/spec" with Rails 3?
380005 [peter.havens] Is there a straight forward way yet to use "minitest/spec" (either
380067 [aaron tender] Probably needs more work to get running with functional / integration

^ Replacing elements in an array?
380007 [jen.bottom g] This question is following on from my post 'making an array of arrays?',
+ 380009 [jgabrielygal] but
| 380027 [jen.bottom g] When I run
| + 380028 [g.diemant gm] So a board is an array of arrays and offspring holds three boards.
| + 380029 [jgabrielygal] ce
|   380045 [jen.bottom g] Thanks to everyone who posted for the advice.
+ 380011 [jp.billaud g] Your code should work just fine. How did you initialize the @offspring
  380022 [jen.bottom g] def create_pop

^ What is p's real behavior?
380008 [raincolee gm] For each object, directly writes *obj*.inspect followed by the current
380012 [jgabrielygal] void
+ 380024 [fxn hashref.] puts and p do not honor $\, print does.
+ 380025 [ryand-ruby z] current
  380026 [ryand-ruby z] current

^ no implicit conversion to float from string
380015 [borg.stef gm] I have this program where there is float numbers in x and y which are
+ 380016 [hassan.schro] Are you sure?
+ 380017 [borg.stef gm] sorry i mean .to_f
+ 380020 [borg.stef gm] yes thanks :)

^ [ANN] launchy 1.0.0 Released
380031 [jeremy hineg] launchy version 1.0.0
380111 [groups inbox] I see that Launchy is correctly using xdg-open when applicable - very
380153 [jeremy hineg] Yup, and it has since day 1 :-).

^ Subject: [ANN] rubypython 0.5.1 Released
380034 [halostatue g] rubypython version 0.5.1 has been released!

^ "10 Minutes to Your First Ruby Application" Deconstructed!
380035 [shangbaby gm] I am a newbie to Ruby (That Rhymes!). I am attempting to complete the
+ 380040 [jgabrielygal] First of all: initialize, run, select_launcher and file_type
| 380062 [shangbaby gm] Muchos Gracias Jesus I do appreciate your time. Thank you for responding =
+ 380063 [ryand-ruby z] It might be worth your time to check out Chris Pine's book "Learn to =
+ 380064 [bbxx789_05ss] devX.com is one of the worst websites for learning anything about

^ matching a word in any number of characters
380037 [code apotheo] I have need of some code to match any of a number of words in any number
+ 380038 [ryand-ruby z] number
| 380042 [code apotheo] I find your attitude distasteful.  Have you tried being a pleasant human
| 380043 [andrea andre] Well, good advice is good advice and Ryan gave you plenty, for free. In this
| 380044 [code apotheo] =20
| + 380046 [ryand-ruby z] *asshole*;
| | 380048 [code apotheo] Really?  Please direct me to where I was being an asshole.  If it's on
| | 380050 [code apotheo] Okay, never mind -- I found one instance where you called me an "ass".  I
| + 380047 [andrea andre] I probably expressed myself badly. Certainly, being an asshole is not a
|   380049 [code apotheo] Thanks for clarifying that.  I was uncertain how you meant what you said,
+ 380065 [bbxx789_05ss] They may be able to write perl in their sleep, but they don't know jack
  380066 [code apotheo] =20

^ Net::LDAP Next Release & Project Governance
380052 [halostatue g] I. The next release of Net::LDAP will be on 2011.03.21. If you have

^ Array range values assignment
380053 [sweensonti g] a = ["A","A","A","A","A", "A","A","A","A","A"]
+ 380054 [g.diemant gm] Just
+ 380055 [sweensonti g] I understand that :)
+ 380056 [sweensonti g] b = []
| + 380057 [jeremy bopp.] 3...7.each { |i| a[i] = "B" }
| + 380060 [botpena gmai] in some cases, specifying the starting and  the length may be also handy, e=
+ 380058 [sweensonti g] Jeremy,
+ 380061 [me chaitanya] You can use the fill method in the Array class

^ Taking a model to particular coordinates
380059 [borg.stef gm] So I want to import a model and then take it to particular x and y

^ Missing space leads to different result
380069 [lasso lassow] Yesterday I introduced a bug in one of my scripts after accidentally
380070 [chris chrisk] Removing the space causes the minus to be interpreted as a unary negative
380071 [lasso lassow] Ah...thanks!

^ An Idea of teaching Ruby online using WinK :: Help with Table of Contents
380072 [information.] I have been playing with ruby since some time.

^ accessing object contents
380073 [fleshins gma] given
+ 380075 [mayank.kohal] Override the to_s method in your class and define it to print out the value
+ 380079 [b.candler po] Is that output from irb? irb uses the "inspect" method to display a

^ Method Call from inside a file.
380074 [tridib04 gma] I coded a new method within gc.c file defining as--
+ 380080 [b.candler po] rb_define_method().
| 380125 [tridib04 gma] Where should add this line within that function or create a new one
| 380184 [timr probo.c] Really, 30 seconds with Google would have answered this question 20 times
+ 380534 [tridib04 gma] Okay i searched everywhere in Google but they are suggesting me to
| 380547 [b.candler po] Click on that link. Read it all. Look where they call
+ 380754 [tridib04 gma] Thanks a lot it is working and giving me the desired output.
| 380760 [b.candler po] "Now look at the last function, Init_Test. Every class or module defines
| 380761 [tridib04 gma] Your code will be either compiled into a shared library (.so or .dll),
| 380778 [b.candler po] I believe you're writing C code for use by ruby. Ruby doesn't provide
+ 381734 [tridib04 gma] collection.

^ Fwd: Using value from variable in .times method?
380076 [jen.bottom g] I have a variable that stores the population input by a user. I then

^ Re: Using value from variable in .times method?
380077 [johnf bitsbu] Yes. Make sure the value you're storing in @pop is a Fixnum. What's
+ 380078 [b.candler po] Or any Integer value in fact.
+ 380082 [jen.bottom g] I confess I don't know a lot of the technical stuff about class Fixnum,
  + 380083 [hassan.schro] Time to learn :-)
  + 380084 [jeremy bopp.] You should take a little time and learn a bit more detail about numbers
    380098 [jen.bottom g] puts pop.class

^ A question about Ruby 1.9's "external encoding"
380085 [albertschlef] p Encoding.default_external
+ 380099 [shortcutter ] io.external_encoding   =3D> encoding
| 380101 [b.candler po] No, it doesn't.
| 380107 [shortcutter ] ng
| 380110 [b.candler po] None.
| 380144 [shortcutter ] Even if no encoding is used explicitly an encoding must be used
| 380229 [markus fisch] Is it just me or does this, especially point 2, sound highly confusing
| 380237 [shortcutter ] The rule as such is pretty clear IMHO.  It does not meet "naive"
| 380246 [albertschlef] irb(main):043:0> utf =3D "\u05D0"  # Alef
| 380248 [shortcutter ] irb(main):008:0> utf.length
+ 380100 [b.candler po] Depends what you mean by "shouldn't be". The rules for encodings in ruby

^ Re: Week number
380086 [addis.aden g] Maybe this is also a goood way :)

^ Reading a 64-but double in a file
380087 [ralphs dos32] I have a file I need to read.
380089 [jeremy bopp.] Assuming you're running with a 64-bit enabled Ruby and the bytes in the
380097 [ralphs dos32] May the gods bless you, Jeremy.   Exactly the answer I was looking for.

^ newbie understanding blocks
380090 [neubyr gmail] I am learning Ruby and having some difficulty understanding blocks. I
+ 380091 [jeremy bopp.] The round method does not use a block.  As with most methods that don't
| 380092 [neubyr gmail] Thanks for explaining it in detail Jeremy. That's helpful.
| 380095 [jeremy bopp.] No, think of a block as yet another argument to a method.  The value of
+ 380096 [neubyr gmail] Great! Thanks a lot for explaining the workflow here - I wasn't
+ 380120 [bbxx789_05ss] You can think of a block as a method with no name.  A block gets passed

^ Name generator | I need feedback
380103 [justin.domin] I created a name generator in Ruby. Basically, I have a file
+ 380105 [anurag08priy] A better alternative since the block invocation automatically takes
+ 380114 [justin.domin] Thanks a lot anurag! Your answer is exactly what I wanted =)
| 380115 [anurag08priy] It is easier to refer docs for such questions :).
| 380124 [Rob AgileCon] ...But if you need 'w', you can specify the mode yourself rather than
+ 380130 [danfan46 hot] The important thing is not to make the code look smart and condensed.
  380324 [justin.domin] Thanks a lot! Your second methods looks quite effective. I'll study your

^ How to install a gem locally ?
380106 [fabrisss gma] I'm developing a ruby gem that I would like to build and install LOCALLY
+ 380108 [luislavena g] You can verify the gem contents doing "gem spec gemname files"
+ 380109 [sebastian va] Hej Fabrice,
+ 380112 [fabrisss gma] gem build gemname.gemspec
+ 380161 [drbrain segm] The contents command is currently broken.  It will be fixed in the next =
+ 380216 [fabrisss gma] Nice to know, thank you !

^ The best practices to learn Ruby
380116 [fs_tigre hot] I'm currently trying to learn Ruby by watching tutorial reading books an
+ 380121 [jakekaiden g] i'd say the best way to learn ruby, just like anything else is to dive
+ 380123 [fs_tigre hot] Thanks a lot for your comments!
+ 380129 [code apotheo] Here's an article that discusses some of the books and other resources
+ 380136 [steve stevek] I specifically run a project about teaching Ruby: http://hackety-hack.com/
| 380137 [larocque.bra] Every time I've used hackety-hack, I've always run into show-stopping bugs.
| 380138 [steve stevek] Windows? My bad, I'm working on the stability. Damn Ruby 1.9.1... of course,
+ 380139 [fs_tigre hot] Thank you all very much for your help.
| 380141 [chris chrisk] Running the script requires a Ruby interpreter of some kind.  So the author
+ 380148 [fs_tigre hot] Thank you all very much!
| 380152 [shortcutter ] Well, is there anything writing textual log files where you work?  If so
+ 380151 [gregory.t.br] There are lots of ways to practice, and a lot of places to do it. It
+ 380178 [fs_tigre hot] Thank a lot Gregory Brown for the good info.
| 380181 [cmdjackryan ] Well, depending on your personal pain-threshold, there's several Ruby
+ 380183 [jakekaiden g] don't be afraid of the gui!  (screenshot attached)  all-ruby, and it
+ 380195 [fs_tigre hot] Wow! nice, was it done all in Ruby? What did you use as GUI, FXRuby,
| 380200 [jakekaiden g] thanks - yep, all done in ruby (i don't know anything else!)  i use
| 380202 [josh.cheek g] That is incredibly cool and inspiring ^_^
+ 380201 [jakekaiden g] thanks - yep, all done in ruby (i don't know anything else!)  i use
+ 380204 [fs_tigre hot] Thanks a lot for the info!
+ 380333 [matt tidbits] It wasn't easy, so after I finally figured out what was going on, I
+ 380357 [fs_tigre hot] Thank you I'm currently reading your tutorial, very nice.

^ Need to find list of things in a file
380117 [flethuseo gm] I am wondering how would you make a program to find a list of things
+ 380118 [bbxx789_05ss] Sorry, you don't add anything to a file--you can only read a file and
+ 380119 [usenet istik] first file

^ Logical OR in Ruby
380126 [paul.sholtz ] I'm looking at some source code, to try and understand it.
+ 380127 [pat.eyler gm] yes.
+ 380128 [adgar carbon] More specifically, || returns the second operand when the first operand =
+ 380145 [stefano.miol] Yep, as others told you.
+ 380147 [colinb2r goo] which (providing I'm reading Rick DeNatale's blog correctly) tells us that

^ Can't pass test test_drbssl.rb after compilation
380131 [andrusha gma] I want to package ruby.
380132 [andrusha gma] 14838 pts/3    SN+    0:00  |                                   \_

^ String split into an array
380133 [skully gmx.c] is it possible to do something like that in ruby?
+ 380134 [rimantas gma] is it possible to do something like that in ruby?
+ 380135 [skully gmx.c] just write *nodes like

^ Re: rubygems-update 1.6.0 Released
380140 [rogerpack200] Cool thanks for the release.
380162 [drbrain segm] more=20
381603 [rogerpack200] Yeah with some benchmarking this doesn't seem to be the general problem,

^ Ruby Summer of Code
380142 [dsisnero gma] Google is starting their summer of code again.  Is ruby going to have a
380150 [serialhex gm] I would also like to know if there is going to be a Ruby Summer of Code.

^ unable to run ruby in eclise helios
380143 [chitrapu.bha] I want to Debug/Run ruby and Watir scripts in eclipse helios.I  have

^ scope of assignments with lambda
380149 [r alum.mit.e] This isn't a question -- it's just a comment that I find it awesome and
+ 380171 [durham.coho ] For a real eye-opener, see this discussion from 2007.
| 380175 [albertschlef] Thanks. Here's an alternative link, for those who have trouble with the
| 380228 [markus fisch] Thanks that you mention it, I was able to see that groups was loading
+ 380172 [bbxx789_05ss] How does recursion grab you?
  380224 [r alum.mit.e] @7stud: Pardon if I wasn't clear in my OP, but I was asking about
  + 380230 [bbxx789_05ss] My point was that a recursive method seems harder to explain than your
  | 381604 [r alum.mit.e] Yeah, well, I apologize, but that was my typo.  I meant "I *wasn't*
  + 381610 [kevin.mahler] "The scoping of variables in assignment" is exactly the same in both

^ Run CGI scripts in own webserver
380156 [kevin_de_val] Does anybody know how I can run ruby cgi scripts in my web server. I
+ 380165 [sophrinix gm] CGI is part of standard lib. try ruby uses it (until i can get a sessions
| + 380176 [albertschlef] He can use Sinatra or some other Rack-based framework. Rack supports the
| + 380179 [sophrinix gm] the /public directory is the ruby CGI 1.9.2 based version. it will show you
+ 380170 [cmdjackryan ] That depends on your webserver. Apache has the fast_cgi module, which
| 380177 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
| 380180 [cmdjackryan ] Which I failed to parse completely. *d'oh*
+ 380189 [b.candler po] See also RFC 3875
threads.html
top