391273-392028

391047-392810 subjects 391481-392080

^ [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 gmail] 2011/12/15 Chris Lervag <chris.lervag@gmail.com>
391282 [chris.lervag] " in UTF-8.
391283 [luislavena g] 5" in UTF-8.
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 mail.c] Please read the whole post despite the fact it's little long.
391304 [shortcutter ] John,

^ [ANN] rdoc 3.12 released
391291 [drbrain segm] 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 apotheo] For those interested in the license, the quickest path to get there from
391451 [drbrain segm] 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 vlaamsem] I'm an absolute beginner in Ruby...
+ 391306 [email2vimalr] I don't face this problem.
| 391308 [peter vanden] You most probably _do_ face the problem, but don't see it because the
| 391309 [mike stok.ca] It you're interested in some reading about floating point then =
| 391310 [jan vlaamsem] WOW! You guys are realy fast :)))
| 391311 [peter vanden] I believe there is no need to convert to float (with to_f).
+ 391307 [peter vanden] [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 spoofe] 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 spoofe] 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
| + 391328 [admin tensor] 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 head] FWIW, JRuby's Queue is implemented in Java, primarily because we it's

^ Writing ruby to [LANGUAGE] "compiler"
391337 [shevegen lin] 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] Sometimes we see on code that there's something like,
+ 391340 [isaacbfsande] I will answer your question, but please read up on ruby before asking these
| 391342 [zombiegenera] thanks for the explanation
+ 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 stevek] eval "\"#{a}\""
| 391347 [andrew.bizya] Thank you, Steve. It works fine.
+ 391348 [code apotheo] 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 apotheo] Yeah, I see that now.  I think, for that use case, I'd probably do some

^ memcached gem install problem
391350 [ketan mcs.an] 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 mac.] 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 head] 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 head] 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 scottis] 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 ongh] 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 ongh] 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. :}

^ Encoding problem, YARD and JSON
391364 [transfire gm] I have a Hash object I am trying to convert to JSON using the `json` gem.
391365 [shortcutter ] To me it sounds as if the particular String in question was obtained
391435 [transfire gm] I ended up using #force_encoding to UTF-8 (and duping to unfreeze) every

^ "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 mac.] Are you sure the problem is on line 4?  Seems like it is more likely

^ gtk2 TreeView question
391383 [michel demaz] Does anyone knows how to decrease the default (vertical) spacing between
+ 391384 [hramrach cen] Changing theme?
| 391387 [michel demaz] 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 demaz] I'll do that, thanks.

^ Windows, CreateFile and IO objects
391388 [alex blackke] I'm porting some code from Linux to Windows which relies on direct
391389 [jeremy bopp.] I'm not expert on this, but my quick look in MSDN seems to indicate that
391390 [alex blackke] Drat.  I was afraid of that.
391391 [jeremy bopp.] ld
391392 [alex blackke] Unfortunately I don't - WEBrick::HTTPResponse is the code in question.

^ ruby debugger & displaying backslashes in pathname
391393 [ralphs dos32] As I step through code, the Ruby debugger displays the file:line with forward slashes in the pathname.
391394 [steve stevek] Windows supports both kinds of slashes, so this shouldn't impact you.
391398 [ralphs dos32] Steve,

^ Welcome!
391395 [gmspro yahoo] I joined ruby mailing list today.
+ 391396 [shevegen lin] Brave man.
+ 391399 [josh.cheek g] Welcome :)
+ 391401 [phildobbin g] Greetings, fragrant.

^ ruby interaction with matlab
391397 [rkumar.ee gm] how can we run ruby code in matlab and print results in matlab?
391402 [admin tensor] but to run Ruby code in Matlab, probably you should ask this question in

^ rdb: Where'd 'continue' go?
391400 [ralphs dos32] I'm using rdb to debug a Rails application.

^ Understanding array.clear
391403 [nss118 gmail] I was working a project Euler problem and noticed that when I used this
+ 391404 [astounding g] You just stored the object array1 inside of array 2.
+ 391405 [sduncan weta] So what is happening can be seen by inspecting object ids. In the first
+ 391413 [email2vimalr] In your array2 << array1 statement, generally array2 object refers the
+ 391417 [nss118 gmail] Sam and Aaron,
+ 391418 [email2vimalr] Sorry I did a typo mistake in my reply. The result of the dup should be

^ [ANN] Occupy RubyNation! Our CFP is OPEN!
391406 [gray.herter ] 24th next year. We're an annual two-day, dual-track technical

^ [ANN] graph 2.3.1 Released
391408 [ryand-ruby z] graph version 2.3.1 has been released!
391457 [joelvanderwe] Lookong forward to using this (I never could remember graphviz syntax
391461 [ryand-ruby z] between uses, so I might as well re-learn it in ruby).

^ [ANN] hoe 2.12.5 Released
391409 [ryand-ruby z] hoe version 2.12.5 has been released!
391452 [ged FaerieMU] Awww... no local .hoerc support? :)
391455 [ryand-ruby z] oops! It went in. I just didn't use my comment formatting on the message =

^ I am too noob to embed an interpreter in my MSVC project. Plz denoob me.
391410 [myphatproxy ] I'm trying to embed an interpreter in a DirectX project, so I'm using
+ 391411 [ryand-ruby z] so it looks like you're missing RUBY_INIT_STACK and ruby_sysinit. The =
+ 391414 [myphatproxy ] I'll give it another go round with those, but I think I tried that
| 391415 [whitequark w] You can see the workaround for RUBY_INIT_STACK I have in ColdRuby which
+ 391416 [myphatproxy ] Awesome.  I'll take these docs back with me and see what I can get.
+ 391544 [myphatproxy ] I got it running!  :)

^ Accessing class instance variables from an instance?
391420 [shareef jall] I'm writing a class to encapsulate a 'job'. The job will have variables
+ 391436 [myphatproxy ] An instance variable is prefaced by @, where a class variable is
| 391437 [cremes.devli] I think he is  looking for class instance variables.
+ 391445 [myphatproxy ] Isn't that just a more complicated way of doing roughly the same thing?
| 391446 [steve stevek] Class variables are bad. Usually.
+ 391450 [myphatproxy ] That's interesting.  I never considered how they'd behave under
+ 391454 [myphatproxy ] Actually, now that I'm thinking about it the existing behavior sort of
| 391456 [josh.cheek g] I don't see any point in that, class ivars seem sufficient to me. What
| 391460 [shortcutter ] rs
| 391467 [josh.cheek g] Yeah, sorry, it was late. The need I actually come across isn't state
| 391468 [shortcutter ] You can also say HTTParty.get(...) inside instance methods.
| 391492 [garthy_lmklt] I've run into this kind of thing before, and it does impact me
| 391505 [shortcutter ] class Object
| + 391507 [garthy_lmklt] I like that. I hadn't thought of it myself- it's one of those "of
| + 391508 [steve stevek] y,
|   391509 [shortcutter ] ly,
|   391510 [steve stevek] Argh, I always do this. It thinks it's a keyword. Derp.
+ 391458 [myphatproxy ] Probably a better way than adding a new var type but it could be more
+ 391462 [hanmac gmx.d] <<self is very bad because it starts an multiline string
| + 391465 [adam apresco] Huh?
| + 391466 [steve stevek] In this case, it is not.
+ 391478 [myphatproxy ] Concerning an attr for civ's, would it really be detrimental, though?
| 391479 [shortcutter ] Do you mean an attr_accessor like method for a class instance itself?
| 391583 [myphatproxy ] Yup.
+ 391495 [shevegen lin] I once spent almost two hours locating a bug.

^ "System" command
391421 [leo.mmcm gma] I was messing around with the "system" command in Ruby!
+ 391422 [jeremy bopp.] output = `ls`
+ 391423 [leo.mmcm gma] Like the shell?
| + 391424 [jeremy bopp.] If you're asking about my efficiency comment, check out the glob and
| | 391441 [leo.mmcm gma] Thanks, yes of course. LS was just a trial to understand the mechanism
| + 391433 [myphatproxy ] I laughed.  :)
|   391440 [leo.mmcm gma] I never studied informatics, many assumptions that you usually do could
+ 391444 [garthy_lmklt] If you're playing around with "system", checking out "IO.popen" and
+ 391496 [jakesmmrs2 g] You can use the %x[] construction to get the output of a system command

^ Starting my programming/Ruby adventure some words of wisdom please
391425 [calum0macrae] So, I've been wanting to start programming for a very long time, but
+ 391426 [lrodriguezsa] I started with this tutorial/book http://pine.fm/LearnToProgram/ :)
+ 391427 [steve stevek] The best books by far is http://pine.fm/LearnToProgram/
+ 391428 [lake lakeden] I can recommend Chris Pine's "Learn to Program" .
+ 391429 [wbrisett att] I don't know where Peter's book stands in the print world. He gave us copies of
+ 391430 [calum0macrae] Excellent! Thank you all for your replies!
+ 391432 [myphatproxy ] First of all, congrats on deciding to learn the dark arts.  Ruby is my

^ why the warning, charlie brown?
391434 [transfire gm] ?>   def initialize
391439 [joelvanderwe] Scoping, apparently...

^ [ANN] mechanize 2.1 Released
391438 [drbrain segm] mechanize version 2.1 has been released!

^ [ANN] minitest 2.10.0 Released
391447 [ryand-ruby z] minitest version 2.10.0 has been released!

^ [ANN] minitest-excludes 1.0.0 Released
391448 [ryand-ruby z] minitest-excludes version 1.0.0 has been released!

^ [ANN] return_bang 1.0 Released
391449 [drbrain segm] return_bang version 1.0 has been released!
391477 [sutniuq gmx.] Where is this different from the builtin catch/throw mechanism?

^ ruby Programming Help
391463 [wearybands g] Hey Everyone
391470 [shortcutter ] And the question is?

^ RDoc - Multiline description list...
391471 [mcpierce gma] # [create] Indicates if the address should be created; values are
391472 [mcpierce gma] operties;

^ Re: Ruby Readline - do something when a key combination is pressed
391473 [shevegen lin] Hmm. This seems useful. Can someone explain how this works?

^ irb (with irbtools) problem including a module
391474 [davmaz gmail] if I inline a module (put it at the beginning of a program) everything
+ 391475 [davmaz gmail] if I inline a module (put it at the beginning of a program) everything
+ 391476 [davmaz gmail] I found the solution. Duh! I wasn't "requiring" the file before I

^ Re: return_bang 1.0 Released
391480 [sunaku gmail] It skips all ensure clauses in the call stack; throw() does not.
391482 [sutniuq gmx.] Ah, I see. Thank you.
threads.html
top