409266-410455

409061-411292 subjects 410149-411038

Is there a good port of Ruby for Solaris 10?
409266 [lists@ru y- ] Does anyone know of a place to DL Ruby for Solaris 10?
+ 409268 [stu@ru yp og] I was going to create a port. Been busy lately.
+ 409283 [headius@he d] JRuby works well on Solaris 10.
+ 409327 [lists@ru y- ] I was going to suggest loading Ruby into our Solaris test server at
  409328 [manuelramosc] "Package Manager" for 1.8 (abandoned on develop now on MRI)... I have

Method tracker - Need assistance
409267 [kenny@ke ny ] I would like to write an includable method tracker, which logs about added
+ 409269 [max@zo m. om] ...
| 409273 [ryand-ruby@z] be "auto triggered" then create an initialize method in MethodTracker
+ 409270 [ryand-ruby@z] added methods to a class.
  409271 [kenny@ke ny ] Duh... thanks, for pointing out this small detail.

Using a Regexp in String#gsub in C
409272 [mattrogers@s] I've got some code in C that makes a call to String#gsub via rb_funcall
409286 [ammarabuali@] ...
+ 409287 [mattrogers@s] Perfect, thanks!
+ 409291 [ryand-ruby@z] regexp using the string, finally call gsub as usual, passing the regexp =
  409292 [mattrogers@s] That's even better. Thanks!

Read column from text or csv file and append "varchar,"
409284 [lists@ru y- ] I'm trying to use a ruby script to read a column of data from a single
+ 409288 [djonavarro@g] Place text into an array and make varchar a constant zap
+ 409290 [sto.mar@we .] $ cat data.txt

ANN: Sequel 4.1.0 Released
409285 [lists@ru y- ] Sequel is a lightweight database access toolkit for Ruby.

public_methods on a class
409293 [lists@ru y- ] is anyone able to to explain to me why :foo is in the array below?
+ 409295 [ganesh.kalia] In the defination of class B, the part =93< A" tells ruby that class B
+ 409297 [lists@ru y- ] The part I don't understand is behaviour of public_methods.
+ 409366 [lists@ru y- ] It seems that A.public_methods(false) does include all the public

Any projects for a fantastic RoR developer?
409317 [lists@ru y- ] Out of respect for your time, I will get right to the point. I work in

How to use not equal and or
409318 [lists@ru y- ] ingresa = gets.chomp
+ 409319 [mattrogers@s] I believe your logic is wrong here. You want to check if one of "sum",
+ 409321 [rubytalk2dav] BTW, a tip: you can combine these two as "ingresa = gets.chomp.downcase".  :-)
+ 409322 [lists@ru y- ] Ok I got it, Thanks Matt and Dave, also I liked the  tip that combine

[ANN] rake-compiler 0.9.0 Released
409324 [luislavena@g] rake-compiler version 0.9.0 has been released!

[ANN] rake-compiler 0.9.1 Released
409325 [luislavena@g] rake-compiler version 0.9.1 has been released!

Retain scope when rewriting block source with instance_eval
409326 [lists@ru y- ] success.rb works by using the block as is. self.instance_eval &block
+ 409329 [sean.ohalpin] instance_eval by definition evaluates within the scope of the
+ 409338 [lists@ru y- ] That works. Thank you!

How do I know if net:ssh, or net::telnet is even working
409330 [lists@ru y- ] Fogive me, but I'm extremely new to ruby, and programming in general.
+ 409332 [sto.mar@we .] By rescueing all exceptions you explicitly silence any useful
+ 409333 [lists@ru y- ] Wow, what difference that makes. It's still not working, but have much

Capture HTML table data, pass to Ruby, pass back and display result in HTML text field
409331 [lists@ru y- ] Cell A (text) - Cell B (text) - Cell C (checkbox) - Cell D (number) -
+ 409334 [jgabrielygal] I don't know what RubyFrontier is, but if I understand correctly, you
+ 409335 [lists@ru y- ] Thank you for your remarks.
| 409337 [jgabrielygal] Well, the Ruby web app executes in the server, while the user
+ 409339 [lists@ru y- ] -Well, the Ruby web app executes in the server, while the user
| 409340 [hassan.schro] Then this is a JavaScript question and has nothing to do with Ruby.
| 409342 [lists@ru y- ] I use RubyFrontier. This allows one to use ERB on web pages produced by
| 409344 [saji@u- iz .] That is the way RubyFrontier works (as I understand it)!  A framework like
+ 409346 [lists@ru y- ] Thank you all for your assistance (and patience).
  409347 [jgabrielygal] I've read the description about what is Ruby Frontier: it's a static
  409348 [lists@ru y- ] It was kind of you to research RubyFrontier. Thank you.

Rakefile Error - Please Help
409336 [lists@ru y- ] I am attempting to take an interactive ruby test to no avail, I
+ 409341 [hassan.schro] So that should be pretty self-explanatory, no?
| 409349 [lists@ru y- ] able to help me understand what I'm doing wrong? The zip file came from
| 409350 [hassan.schro] It's telling you that it's looking for a file with one of those names in
| 409351 [lists@ru y- ] Sure thing, here's the link.
| 409356 [hassan.schro] Seems to work OK here. Did this error occur the very first time you
| 409357 [lists@ru y- ] Yes it did and there is a rake file in the root directory.
| 409358 [hassan.schro] which ruby
| 409359 [lists@ru y- ] which ruby
| 409360 [hassan.schro] That should be an upper-case V (yes, inconsistent with the others).
| 409362 [lists@ru y- ] Oh ok,  when I did rake -V this was the output (rake, version 10.1.0).
| 409370 [hassan.schro] Again, it seems a little unusual to have plain files with executable
+ 409375 [lists@ru y- ] Cool, I'll try re-installing both. Thanks again for your help!

Using % for printng strings
409343 [lists@ru y- ] %{Here is number #{class InstantClass
409345 [sto.mar@we .] You do not do anything with the string.

Regex to extract numbers
409352 [lists@ru y- ] I have an array of links like this
+ 409353 [lists@ru y- ] Given that you're using a link, the best way would likely be to use
+ 409354 [lists@ru y- ] /ENETCONSULTA/frmGerenciaPaginaFRE.aspx?NumeroSequencialDocumento=5335&CodigoTipoInstituicao=2
  409355 [sto.mar@we .] /NumeroSequencialDocumento=(?<number>\d+)/ =~ s
  410063 [shortcutter@] irb(main):011:0> s =

Why does the next() method behave this way?
409363 [lists@ru y- ] I might be getting tripped up on something not important, but hopefully
409364 [lists@ru y- ] z is 9
409365 [tamouse.list] On Aug 4, 2013, at 11:32 PM, Suicidal Penguin <lists@ruby-forum.com> =

Errors during make check 2.0.0_p247 on RH Linux
409367 [lists@ru y- ] I searched the Ruby forum and other Googling without success :-(
410074 [lists@ru y- ] A little bit more information, but no complete solution yet!

Bridging Language
409368 [lists@ru y- ] How do bridge python to ruby?
409369 [mcpierce@gm ] Can you be more specific? Do you mean use pure Python code from within

Finding config settings in windows
409371 [lists@ru y- ] Hey All.

parsing json not work in variable
409372 [lists@ru y- ] openorders = Btce::TradeAPI.order_list
+ 404590 [lists@ru y- ] {"success"=>1, "return"=>{"29777582"=>{"pair"=>"ltc_rur",
+ 404599 [lists@ru y- ] my problem is that I do not need all that data, and only those tedious
+ 404600 [lists@ru y- ] h = JSON.parse(openorders)
+ 404602 [lists@ru y- ] Big thx. All work. h[ 'return' ].keys  This is Great
+ 404604 [lists@ru y- ] Original
| 404606 [jgabrielygal] 2.0.0p195 :006 >   h['return']
+ 404607 [lists@ru y- ] openorders['return']['29777582']['pair']  This is it!
+ 409373 [sandor.szuec] openorders = Btce::TradeAPI.order_list

Creating variable inside a class
409374 [lists@ru y- ] All I want to do, is to create a new variable called data_dfp inside the
+ 404593 [abinoam@gm i] data_fp is defined at the MyDocument and not at the parser.
+ 404596 [tamouse.list] When you did this, you created a new class that inherits from Nokogiri::XML::SAX::Document
+ 409376 [sduncan@we a] ^^ I'm not sure what this is supposed to mean.
  404589 [lists@ru y- ] I with I knew it too...
  404591 [sduncan@we a] Cool, go forth and conquer =]

How to insert tags ?
409999 [lists@ru y- ] Dear Professionals !
+ 410000 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 410001 [atma@co va e] charset=utf-8

How to test whether IO object is open for writing
410009 [lists@ru y- ] Given an object of type IO (respectively File), what is the easiest way
+ 410010 [sinm.sinm@gm] ...
+ 410011 [lists@ru y- ] Thanks a lot!

YAML: Find line number of key?
410017 [quintus@qu n] I°«ve been digging around in Psych°«s lowlevel interface the last few
410040 [abinoam@gm i] I don't have experience with psych but taking a look at the
410041 [quintus@qu n] This looks very good! Thank you for your help, I?ve even resorted to

Install gem after switching Ruby version via RVM
410035 [lists@ru y- ] Cucumber gem installed and it executes when ruby version is set to
410037 [hassan.schro] Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

[ANN] R2CORBA 1.4.1 released. Now provides Ruby Gem support!
410036 [mcorino@re e] Remedy IT is pleased to announce the release of version 1.4.1 of

GTK3 on Windows 7 (x64)
410038 [lists@ru y- ] Is it possible to install GTK3 on Ruby 2.0.0 x64 + DevKit Windows 7 x64?
+ 410042 [kou@co mi ng] It is not possible for now.
+ 410043 [lists@ru y- ] Thanks for the information, we will wait ....

libkernel32.dylib: image not found
410044 [lists@ru y- ] I am encountering the error message below, in RubyMine when executed on

Mantenha contato comigo atravs do LinkedIn.
410045 [marlonglopes] ...

Confusion with Fixnum addition with :inject method
410046 [lists@ru y- ] ## Why does not the output of a is 5 ?
+ 410047 [fxn@ha hr f.] Because
+ 410048 [sinm.sinm@gm] Fixnum (http://www.ruby-doc.org/core-2.0/Fixnum.html) objects have immediate value. This means that when they are assigned or passed as parameters, the actual object is passed, rather than a reference to that object. http://www.ruby-doc.org/core-2.0/Fixnum.html
| 410051 [fxn@ha hr f.] Fixnum <http://www.ruby-doc.org/core-2.0/Fixnum.html> objects have
| 410052 [sinm.sinm@gm] class A
| + 410053 [fxn@ha hr f.] It is not.
| + 410054 [fxn@ha hr f.] Ah, I believe you actually mean numerics are *immutable*.
|   410059 [sinm.sinm@gm] ...
+ 410057 [lists@ru y- ] Thanks to all of you for your time to explain me the logic.

How does Ruby do calculations?
410049 [lists@ru y- ] Could anybody please give me an answer to the following?
+ 410050 [fluido@fl id] If you just add a .0 in the right place...
+ 410058 [lists@ru y- ] Thank you, your answer totally cleared up the misunderstanding.
+ 410065 [kaspar.schie] You're doing integer math, which can be weird, since it truncates the
  410067 [josh.cheek@g] 1/2 + 1/2.0  # => 0.5

SciTE Issue, "puts" doesn't show up until user input for "gets"
410060 [lists@ru y- ] I'm having a bit of trouble with SciTE. I'm new to Ruby and I've been
410076 [alexandermcm] ...
410094 [shortcutter@] Why?  Why are you especially suggesting to define a local variable called
410097 [lists@ru y- ] Thanks robert! That fixed the problem. I appreciate it.
410098 [shortcutter@] You're welcome.

[ANN] ZenTest 4.9.3 Released
410062 [ryand-ruby@z] ZenTest version 4.9.3 has been released!

Please explain: Weird to_s behaviour
410064 [kaspar.schie] regards,
410066 [justincollin] Not sure about a "good" explanation, since I don't quite understand the
410068 [rubytalk2dav] Excellent catch!  If you change the 1 to "1" (i.e., make it a string),

How to make Ruby code into website?
410069 [lists@ru y- ] I made a small amount of simple code and would like to know how to
+ 410075 [lists@ru y- ] For a website running Ruby code you'll probably want Ruby on Rails.
+ 410077 [alexandermcm] ...
+ 410078 [atma@co va e] charset=utf-8

Re: ZenTest 4.9.3 Released
410070 [lists@ru y- ] Great job, keep going ..

Method dispatching issue with mixins
410071 [lists@ru y- ] I'm working on a large codebase in ruby 1.8.7 and I'm encountering a
+ 410072 [abinoam@gm i] Dear Constantin,
+ 410081 [shortcutter@] It's hard to come up with explanations since your information is a bit

doing chris pine learn to program - chapter 7 challenge feedback
410073 [lists@ru y- ] html/css/javascript and some php experience).
+ 410079 [abinoam@gm i] I hope you don't be angry but I took your question as an exercise for myself.
+ 410080 [lists@ru y- ] Thanks for taking the time to look at the code. I have no problems with
+ 410082 [tamouse.list] This is a good way to do things.=20
+ 410084 [lists@ru y- ] I think you should take a look at some methods of sorting and choose
| 410087 [abinoam@gm i] Just committed and pushed (my) exercise.
| 410089 [sto.mar@we .] I think you should take a look at some methods of sorting and choose
| 410090 [sto.mar@we .] Please ignore my last mail...
| 410095 [lists@ru y- ] Thanks for the feedback!
+ 410096 [lists@ru y- ] @Abinoam Jr

Ruby 2.0.0 x64 My programm without interpreter
410083 [lists@ru y- ] How to compile a program written in Ruby, in my version of Windows 7 is
+ 410085 [lists@ru y- ] You need to post the error message otherwise it's difficult to diagnose.
+ 410101 [lists@ru y- ] Okey, compilation is completed, the software produces errors when

[ANN] mime-types 1.24 Released
410086 [austin@ru yf] mime-types version 1.24 has been released!

FW: SciTE Issue, "puts" doesn't show up until user input for "gets"
410088 [cjsiam@ms .c] ...

Gem Install/SSL Certificate Verify Failed
410099 [lists@ru y- ] Unable to download data from https://rubygems.org/
410104 [lists@ru y- ] .... I switched my environment to Ruby 2.0 (on the same machine) and the

def is not recognized as an internal or external command.
410100 [lists@ru y- ] yesterday I installed ruby and I have tested a simple function using
410102 [echristopher] It sounds like you're typing Ruby commands (e.g. def) at the Windows
410103 [lists@ru y- ] oops, that was it! Thank you so much @Eric!

email failure messages
410107 [tomcloydmsma] Anyone else getting persistent failure messages from
410119 [echristopher] Yes. I assume cellopointgw is another subscriber to this list, whose
410137 [sinm.sinm@gm] I'm getting this trash too.

Name keeps printing on new line
410108 [lists@ru y- ] days ago so I could use it with RPG Maker VX Ace. Now im just practicing
+ 410109 [stefano.croc] That's because the string returned by gets includes the newline (you can
+ 410110 [ryand-ruby@z] practicing
+ 410111 [lists@ru y- ] Awesome it worked thank you very much.

Output each line of an Array to text file
410112 [lists@ru y- ] In order to shuffle the contents of a text file, I read each line of the
+ 410113 [tamouse.list] File.write("shuffled.txt", File.readlines("somefile.txt").shuffle.join)
+ 410114 [lists@ru y- ] Cor! Thanks tamouse_m!!
  410115 [fxn@ha hr f.] You can also shell out to shuf(1) (needs coreutils).

Gem Install/SSL Certificate Verify Failed
410116 [lists@ru y- ] "Gem Install/SSL Certificate Verify Failed".

Dynamic updates to console.
410117 [lists@ru y- ] I organized output to the console, but made it quite inconvenient, the
+ 410120 [justincollin] Although it will be a big step up in complexity, you probably want
+ 410121 [tamouse.list] ...
+ 410131 [shortcutter@] The easiest solution seem to be not to mix data retrieval and display.  If
+ 410132 [lists@ru y- ] What to choose ruby curses or ruby ncurses. Where can I see examples.
  410133 [shortcutter@] Der Sinn Deiner Worte ist dunkel.

Is there a ruby library that can connect to the following connection string
410118 [lists@ru y- ] Is the a ruby library that's able to connect to the following kinds of
410136 [lists@ru y- ] I use Sequel to connect to and query SQL Server 2008 databases, using

If statement not working
410123 [lists@ru y- ] Ok so i am trying to get my if statement to work but my console keeps
+ 410124 [chris.hulan@] have a look at the docs
+ 410125 [lists@ru y- ] I dont understand any of that.
| 410127 [stu@ru yp og] Looks like you need to convert your string into an integer.
| 410130 [shortcutter@] OP may also want to do
| 410134 [stu@ru yp og] Robert
| 410142 [shortcutter@] Kind regards
+ 410126 [tamouse.list] I'm curious, are you running your program by double-clicking it in a =
| 410128 [chris.hulan@] If you are going to be a coder you need to learn to read code and docs
+ 410129 [lists@ru y- ] There was also this thread <https://www.ruby-forum.com/topic/4412932> a

[ANN] sqlite3 1.3.8 Released
410135 [luislavena@g] sqlite3 version 1.3.8 has been released!

install evenmachine - Windows 7
410138 [lists@ru y- ] I am trying to install evenmachine but get this error. I have
410148 [Carey.Nation] You are missing a linux kernel.  Sorry :)...  I'm on windows too, and as far as I can tell, you just can't.  Event machine relies on linux kernel stuff that just doesn't exist.  Kind of like trying to build win32ole on a linux box.  Just isn't going to work.
410170 [shortcutter@] Can you build it on a recent Windows box? ;-) I haven't heard about OLE in
410172 [Carey.Nation] Dunno, is my win7 box recent enough?  Ole is still there, they just call it=

playsongruby@gmail.com
410140 [lists@ru y- ] Aashiqui 2 tum hi ho.my name bilal .Dosto Ki Kami Ko Pehchante Hain Hum.

Need help on Object#respond_to?
410141 [lists@ru y- ] I just have seen from the documentation of Object#respond_to?
+ 410143 [lists@ru y- ] It means that from the outside of Object#respond_to?, "not defined" and
| 410144 [lists@ru y- ] Ok.. Let me tell you why I asked this question and why the documentation
| 410145 [lists@ru y- ] What's not clear about this?
| 410146 [lists@ru y- ] Yes there is a point of doubt. So you mean the `false` is returned by
+ 410147 [lists@ru y- ] Yes, as far as I can see from the C code, all that the
+ 410160 [lists@ru y- ] #respond_to_missing? is needed when you want to use #method_missing with
  + 410195 [lists@ru y- ] very interesting..when I tried your code,got a method object,instead of
  + 410455 [lists@ru y- ] From some efforts I put,I can tell you that #respond_to_missing? is no
threads.html
top