390973-403144 subjects 391388-392080

How to call method of one class in another class
391159 [rubythemyste] Any help is appreciated.
391160 [mikaa123@gm ] Since classes are objects themselves, they also have methods. To define clas=
391161 [rubythemyste] I am confused.

Could not create Makefile (Mac OS X 10.7.2)
391163 [wbrisett@at ] Not sure why exactly, but nokogiri installed fine on my desktop, but I've been

How to include Atom format in Httparty
391164 [rubythemyste] Need your help to include Atom format in HTTParty

[ANN] VCLog v1.9.0 released
391169 [transfire@gm] VCLog 1.9.0 has been released.

ANN: american_date 1.0.0 Released
391171 [code@je em e] = ruby-american_date

[ADV] JEG2's Articles on How to Think About Programming With Ruby
391172 [james@gr ys ] I know I haven't been too active on this list lately, but that's because I

To Access One Class method from Another
391174 [rubythemyste] I have two classes say,
+ 391177 [matma.rex@gm] Have you tried reading a Ruby tutorial before asking questions about it?
+ 391179 [jakekaiden@y] hey there,

How to parse the Hash reponse of HTTParty
391175 [rubythemyste] can anyone help me how to parse the hash reponse of a rest web service
391178 [josh.cheek@g] It would be helpful if you posted the request.

Ruby 1.9.3-p0 + Cygwin 1.7.9-1 + posix-spawn-0.3.6: Can't set RUBY_PLATFORM = cygwin
391176 [muraii@ya oo] I've been trying to get jekyll installed within the Cygwin 1.7.9-1
+ 391184 [luislavena@g] Click download, place posix-spawn-0.3.6.gem somewhere accessible by
+ 391220 [muraii@ya oo] Exceedingly helpful. I didn't recognize the platform condition as a
+ 391222 [muraii@ya oo] The issue was that I didn't have rake-compiler installed. I have now

Searching an array for a pattern derived from another array
391183 [chaim@in er ] I've just started using Ruby last week and have a somewhat complex task to
+ 391185 [jakekaiden@y] hey there,
+ 391199 [martindemell] $ irb
+ 391201 [shortcutter@] 1. Write a method which receives two arguments (servers and nics of course).
  391205 [rob@ag le on] task to
  391225 [chaim@in er ] I must say that Ruby is very elegant! I've been scripting in bash for years

Didi you know? - Wirble Reverse
391190 [transfire@gm] ...
391198 [jens.wille@u] true. but it's the default in /brice/, which inherited most of

Fixing Net::TFTP
391191 [reid.ruby-fo] I'm extremely new to Ruby programming.  Forgive me.
391194 [sduncan@we a] What happens if you set non-blocking on the socket and try to catch an
391217 [reid.ruby-fo] Thanks for the help.
391230 [sduncan@we a] And you said that changing the recv buffer size (2**16) made no

[ANN] kgio 2.7.0 - kinder, gentler non-blocking I/O
391197 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

"aaabbccccdadd" => [ [a, 3], [b, 2], [c, 4], [d, 1], [a, 1], [d, 2] ]
391200 [matematika.a] "aaabbccccdadd" => [ [a, 3], [b, 2], [c, 4], [d, 1], [a, 1], [d, 2] ]
+ 391202 [martindemell] "aaabbccccdadd".scan(/((.)\2*)/).map { |a,b| [b, a.size] }
+ 391208 [josh.cheek@g] Anyone else look at String#squeeze and get sad that it didn't take a block?
+ 391212 [shortcutter@] Hm....

[ANN] ruby-oci8 2.1.0
391203 [kubo@ji ba .] Ruby-oci8 2.1.0 is released. This is the Oracle module using OCI8 API.

Problems with Net::Ping
391206 [darkpython@g] I'm trying to make a small program to ping an IP through TCP/ICMP but
391210 [darkpython@g] Fixed.

Re: cast_off-0.4.0 released
391207 [rogerpack200] As a note, there may have been a related work several years ago (though
391213 [kc9cmt@ea th] I am now getting three copies of each posting to the forums.

redmine.ruby-lang.org -> bugs.ruby-lang.org
391214 [shugo@ru y- ] redmine.ruby-lang.org has been moved to bugs.ruby-lang.org.

perf optimization using profile results
391216 [cremes.devli] I need some help with optimizing a set of libraries that I use. They are ffi-rzmq, zmqmachine and rzmq_brokers (all up on github).
391218 [cremes.devli] ...
391234 [headius@he d] A couple quick observations.
391238 [cremes.devli] Yes. The call to zmq_poll is essentially time spent blocked on I/O.
+ 391247 [headius@he d] Actually, it may not be a singleton object/class, now that I think
| + 391251 [shortcutter@] e." I know what a singleton is, but I don't understand your use of it in th=
| | 391255 [headius@he d] For CPU, yes. This is not CPU profiling, however, and runhprof does
| + 391260 [cremes.devli] Okay, so I should look for lines where I execute "Class.new {}" in my code. Off the top of my head, it is *rare* that I call Class.new directly; it's almost always via an actual class constant name.
|   + 391263 [headius@he d] 4  1.57% 42.08%    159840  999    159840   999 325078 org.jruby.MetaClass
|   + 392810 [cremes.devli] ...
+ 391292 [cremes.devli] For those of you following along, I was able to shave off another 50 microseconds per client. I learned a few things along the way.
  391297 [normalperson] Exactly.
  391367 [headius@he d] Indeed. Array#[] is slower on JRuby because String#[] uses backref

Servers, Threads, and the Ruby Way -- Architecture Question
391224 [epasquali@ho] I'm currently trying to program something I have no experience in ANY
391226 [epasquali@ho] [snipped, it is long!]
+ 391233 [tony.arcieri] Celluloid is a library for making concurrent objects that each run in their
+ 391259 [shortcutter@] You do not need two processes.  One process with multiple threads is
  391267 [epasquali@ho] what you're saying and it makes sense. I've also decided that I won't

how to generate a pdf calendar?
391227 [danbus@sh nz] I want to generate a pdf calendar, and I have incoming calendar data
391228 [kclair@pi kl] 1. use an html -> pdf generator such as wkhtmltopdf or princexml (and
+ 391235 [reid.thompso] the ruby bindings to libharu may be useful also
+ 391314 [danbus@sh nz] Interesting.  Do the html to pdf generators use the html 5 standard when
  391315 [kclair@pi kl] Each one does it differently, so you'd have to look at the individual

[ANN] minitest 2.9.1 Released
391236 [ryand-ruby@z] minitest version 2.9.1 has been released!

How to pass a list of conditions as parameters
391237 [thescholar@h] Im unsure how to explain this one so I'll do my best.
+ 391239 [sduncan@we a] Nothing pretty or fancy here, but seems to do it? Note, I think the hash
| 391249 [shortcutter@] But what is the desired output?  That's crucial for the solution (see below=
| 391265 [sduncan@we a] Having the expressions as strings means you can very easily load them
| 391266 [shortcutter@] But it helps understanding to explicitly mention this fact.  That was
+ 391244 [thescholar@h] Thank you very Sam! It seems there are still a lot more I need to learn
| 391245 [sduncan@we a] ...
+ 391246 [thescholar@h] The technology I'm using uses a version inferior to 1.9.x, fortunately
+ 391261 [regis.aubare] require 'pp'

remove ends of array and interleave
391242 [sherri@vs un] I have some problems getting a couple of elements working right... I
+ 391252 [shortcutter@] What exactly is your problem?
+ 391253 [g.diemant@gm] Is your problem, that a gets altered?

ruby sharepoint
391254 [dickyhide@gm] I want to create a ruby script (on linux) that can upload folder/file to
391256 [peter.hicks@] Have you looked at Sharepoint's functionality that will take an attachment
391533 [dickyhide@gm] Could you tell me how to do that by using Ruby script?

How to build platform specific gems?
391257 [martin@an le] Dear All,
391258 [luislavena@g] spec.platform = Gem::Platform::CURRENT

[ANN] RSpecOnTap v0.1.0 released
391262 [transfire@gm] RSpecOnTap 0.1.0 has been released.

round float to integer if whole number
391268 [liquid98@gm ] I'm looking for a way to pick out the whole numbers (ff) in the function
+ 391269 [g.diemant@gm] ff.floor =3D=3D ff
| 391270 [liquid98@gm ] thanxs Gunther!
| 391278 [shortcutter@] irb(main):006:0> x = 1.0
| 391281 [g.diemant@gm] You're right, but floating point numbers don't work reliably (as one
| 391294 [frosty@un uc] I would think the most accurate way to do it would be to convert the
+ 391317 [liquid98@gm ] Converting to a string was also one of my ideas. Although it was not
  + 391322 [shortcutter@] Yeah.  I'd go with a proximity check like
  + 391334 [g.diemant@gm] Converting to a string isn't better as directly comparing the numbers,

[ANN] net-wrong - experimental Ruby 1.9.3+ net/* monkey patch
391273 [normalperson] The goal of this project is to obsolete itself and improve Ruby itself.

Newbie: Calling methods from a dll
391276 [imran.nazir@] I am trying to call methods from a dll. I know this works with Python. I
391289 [imran.nazir@] Jesus, it was easier than I though.

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

Encoding woes with command promt output
391279 [chris.lervag] Im working on a script which is going to be printing some non-ascii
391280 [phasis@gm il] 2011/12/15 Chris Lervag <chris.lervag@gmail.com>
391282 [chris.lervag] Well, I've tried marking the file with # Encoding: UTF-8 as well, but it
391283 [luislavena@g] Did you check your console is actually using TrueType fonts?
391286 [chris.lervag] Thanks for the suggestion. I changed to unicode as suggested (chcp

[ANN] cdo.rb - Calling module for the Climate Data Operators
391285 [ralf.mueller] What is it?

[ANN] jobQueue-1.0.3
391288 [ralf.mueller] * Determination of maximal number of cores supports IronRuby

I need help with understanding the part of the documentation
391290 [doark@ma l. ] Please read the whole post despite the fact it's little long.
391304 [shortcutter@] John,

[ANN] rdoc 3.12 released
391291 [drbrain@se m] home :: https://github.com/rdoc/rdoc

Writing My Own Sorting Method (New to Ruby)
391296 [emekapatrick] Super new to Ruby (learning using the Chris Pine book) and trying to
+ 391319 [jakekaiden@y] surely there are other (and better) ways to do this, but one idea that
| 391320 [rubytalk2dav] I haven't been reading this thread closely, so forgive me if my
| 391323 [jakekaiden@y] good point!  open hand to forehead...
+ 391344 [jakekaiden@y] startarray = %w[abc abcdef abcd a abcde efgh def]

[ANN] rdoc_osx_dictionary 2.0.0 Released
391298 [ryand-ruby@z] rdoc_osx_dictionary version 2.0.0 has been released!
391313 [code@ap th o] For those interested in the license, the quickest path to get there from
391451 [drbrain@se m] from

[ANN] rubygems-sandbox 1.1.1 Released
391299 [ryand-ruby@z] rubygems-sandbox version 1.1.1 has been released!

regexp detect repeating number
391300 [aggouni2002@] 252525252525 or 123123123
+ 391301 [vderyagin@gm] regexp = /(\d+?)(?=\1)/
+ 391335 [aggouni2002@] Thx,
  391336 [vderyagin@gm] group (\d+?) 'reluctantly' (as opposed to 'greedy') matches some

[array].include?(word) not working
391302 [shrianand85@] I tried running the code to remove stop words from text variable. The
391303 [shortcutter@] You do not need all the semi colons at line ends (that is a Perlism

Rounding error?
391305 [jan@vl am em] I'm an absolute beginner in Ruby...
+ 391306 [email2vimalr] I don't face this problem.
| 391308 [peter@va de ] You most probably _do_ face the problem, but don't see it because the
| 391309 [mike@st k. a] It you're interested in some reading about floating point then =
| 391310 [jan@vl am em] WOW! You guys are realy fast :)))
| 391311 [peter@va de ] I believe there is no need to convert to float (with to_f).
+ 391307 [peter@va de ] [Dutch: Dag Jan, welkom op de lijst]

[Ann] kramdown 0.13.4
391316 [t_leitner@gm] ## About kramdown

Nokogiri::XML::Builder XML attribute ordering
391318 [jhart@sp of ] Just to get it out of the way, yes, I've searched the lists and yes, I am
391333 [paradisaeida] While we are near the topic.
391407 [jhart@sp of ] It appears that the same problem exists with Builder.  From

FSSM gem to watch directory
391321 [raymondke99@] I'm setting up my application to watch a directory in the application

ruby 1.9 threading performance goes non-linear
391324 [joelvanderwe] Two threads connected by a queue, passing one fixnum at a time, doing
+ 391325 [normalperson] Adding "Thread.pass" after q.push seems to improve things as it
| + 391326 [whitequark@w] I wonder if we can make a more efficient Array by making it a circular
| | + 391327 [normalperson] It would require a lot of changes to existing C code in both Ruby itself
| | | 391329 [whitequark@w] Yes, RARRAY_PTR will break. This is unacceptable.
| | | + 391331 [normalperson] Tried a singly linked list, but object allocation overhead sucks :<
| | | | 391332 [normalperson] Btw, it's in the "ll-queue" branch of git://bogomips.org/ruby
| | | + 396843 [lists@ru y- ] Well, I actually did it, see https://github.com/ruby/ruby/pull/133
| | + 391328 [admin@te so ] Is there some C++ STL-like data structure in Ruby?  Or is it a good idea
| |   391330 [whitequark@w] Array _is_ std::vector, and Hash, again, is exactly std::map, if you
| + 391368 [headius@he d] FWIW, JRuby's Queue is implemented in Java, primarily because we it's
+ 396850 [lists@ru y- ] Ok, I've updated patch, and now array is a real circular buffer both

Writing ruby to [LANGUAGE] "compiler"
391337 [shevegen@li ] Say I write something in Ruby. Then I want to translate this code
+ 391351 [matma.rex@gm] Use a parser. There is ruby_parse gem, just perfect for the occasion.
+ 391356 [josh.cheek@g] You'd probably need to build a lexer/parser that can understand this subset

ruby multithread
391338 [aggouni2002@] I am trying to use multithreading with multi acces webpage/database
+ 391366 [shortcutter@] Well, then maybe you have an issue in your application design.  Can
+ 391382 [b.candler@po] *If* you are using a library of C extensions, and your platform is MRI
+ 391442 [aggouni2002@] Thank you for your answer and sorry for the late,
| 391443 [tony.arcieri] t1=Thread.new{work(url1)}
| 391459 [shortcutter@] This is unsafe, because you reuse "url": because of the scoping rules
+ 391464 [aggouni2002@] Thx,
  391469 [shortcutter@] This is just plain wrong - even in MRI and even in 1.8.  Please read

def initialize
391339 [zombiegenera] ...
+ 391340 [isaacbfsande] I will answer your question, but please read up on ruby before asking these
| 391342 [zombiegenera] ...
+ 391341 [jakekaiden@y] there are lots of good tutorials available online, including but

[ANN] Brite v0.7.0 released
391343 [transfire@gm] Brite 0.7.0 has been released.

Single quoted string to become double quoted - is it possible?
391345 [andrew.bizya] Imagine I have single quoted string:=20
+ 391346 [steve@st ve ] eval "\"#{a}\""
| 391347 [andrew.bizya] Thank you, Steve. It works fine.
+ 391348 [code@ap th o] Why do you need to use single quotes?  If you just want to avoid using
  391349 [andrew.bizya] 'bla
  + 391352 [josh.cheek@g] data = '
  | 391357 [gsinclair@gm] string = "blah blah blah NAME blah blah blah"
  + 391358 [code@ap th o] Yeah, I see that now.  I think, for that use case, I'd probably do some

memcached gem install problem
391350 [ketan@mc .a ] I am trying to install ruby gem memcached on a linux server in my

Re: [SPAM] Writing ruby to [LANGUAGE] "compiler"
391353 [reid.thompso] see
391354 [reid.thompso] also see
391355 [echristopher] 4) cast_off

Ruby, SAFE, method interception, and plugins
391359 [garthy_lmklt] I am working on an embedded Ruby application that may support
+ 391360 [garthy_lmklt] A quick addendum: I forgot to mention that I'm quite comfortable using
+ 391369 [gwtmp01@ma .] being able to limit the damage they can cause is also important. I'm not =
| 391370 [garthy_lmklt] I'll give it a shot. :)
+ 391371 [whitequark@w] I want to note that $SAFE value is set per-thread[1], so you can load
| 391373 [garthy_lmklt] Thanks for that- that confirms my current (somewhat limited)
+ 391372 [headius@he d] There's a number of folks using JRuby for this, most notable the
| 391374 [garthy_lmklt] I have no realm experience with JRuby, although at a glance it might be
| 391375 [headius@he d] JRuby does support FFI, for calling C libraries, so one approach to
| 391377 [garthy_lmklt] Thankyou for the additional information. :) As mentioned there would be
+ 391431 [mark@sc tt s] I haven't watched this presentation yet, so obviously can't comment on
  391453 [garthy_lmklt] I've just finished watching it- thanks for that. :) The sort of problem

Scheduling jobs on PCs after work hours
391361 [mo_mail@on h] There's a task that I want to do and while I can explain it to people, I
391362 [garthy_lmklt] I haven't looked at it in some time, but Condor is something that may
391376 [mo_mail@on h] Thanks for this!  I was looking for something that used Ruby, but Condor
391378 [garthy_lmklt] It's been a while, so my knowledge is probably somewhat outdated now. :}
407229 [fromano@pa b] ...
407305 [mo_mail@on h] ...

Encoding problem, YARD and JSON
391364 [transfire@gm] ...
391365 [shortcutter@] To me it sounds as if the particular String in question was obtained
391435 [transfire@gm] ...

"Have your program add one to the number" ?
391379 [fe.depaula@l] I'm starting to learn Ruby using the Learn to Program book by Chris
+ 391380 [garthy_lmklt] You might want to convert "new_number" from an integer into a string
+ 391381 [g.diemant@gm] A number will not  automaticly be converted to string. You have to do
+ 392024 [jeffbrown711] but we are not wanting to add it in string format, we want to say the
+ 392028 [gwtmp01@ma .] Are you sure the problem is on line 4?  Seems like it is more likely

gtk2 TreeView question
391383 [michel@de az] Does anyone knows how to decrease the default (vertical) spacing between
+ 391384 [hramrach@ce ] Changing theme?
| 391387 [michel@de az] There was an extra space : "text_renderer.ypad = 0" does the trick,
+ 391385 [jakekaiden@y] try posting this question on the Gnome2 section of the forum, which is
  391386 [michel@de az] I'll do that, thanks.