211990-215563 subjects 212555-217197

^ [ANN] Using RubyInline for Optimization
212232 [drbrain segm] png.rb, sprinkle in a little profiling and a little C and make it go
+ 212236 [garbagecat10] ...
| 212249 [cfis savagex] Francis sent me the bug, working of fixing it now....
| 212301 [garbagecat10] ...
+ 212324 [dbatml gmx.d] Nice article, but in this case it is possible to get almost the same
  212376 [drbrain segm] This change gives a broken PNG.  You meant to call #<<, not #<.
  212378 [dbatml gmx.d] Oops, of course I meant #<<. I actually had tested that my changes still

^ Bug in WEBrick::Cookie
212233 [aaron_patter] think that WEBrick::Cookie::parse_set_cookie should return an

^ Re: Using RubyInline for Optimization
212235 [gavin refine] Thanks so much! Writing up and sharing stuff like this is what makes

^ Individual char values in a Unicode string
212242 [tbray textua] I'm trying to figure out how to use [] String or jconv or something
+ 212246 [nospam nosit] Hex numbers are numbers. :)
+ 212248 [djberg96 gma] 't'.unpack("U*") => [116, 246, 20013]

^ Control of Browser
212259 [PeterMeier a] is there a possibility to control a browser like Firefox or IE with ruby?
+ 212261 [znmeb cesmai] Windows or any browsers on non-Windows systems.
| + 212263 [Gennady.Byst] WATIR also drives Safari on Mac OS X
| + 212420 [PeterMeier a] Thanks.
+ 212262 [farrel.lifso] Have a look at Selenium on Rails: http://www.openqa.org/selenium-on-rails/

^ Bignum limits ?
212265 [jcarbaut lap] is there a limit on a Bignum size ?
+ 212266 [jcarbaut lap] It's with ruby 1.8.5. Don't try to print the
+ 212268 [nospam nosit] AFAIK no, apart from increasingly long computation times.
  212270 [jcarbaut lap] % ruby -v
  212271 [nospam nosit] Okay, I think you are seeing a version-specific bug. Any other reader
  212294 [fred lacave.] I've made the test with ruby 1.8.4 : it works fine.  Then, I upgraded to
  212298 [jcarbaut lap] Thanks for the answers.
  212304 [rick.denatal] And it's really not a limit on Bignums in general, just on the argument to ^.

^ A better syntax highlighting color scheme for Ruby code on Vim?
212267 [alder.green ] I've been migrating to Vim recently. It has impressive Ruby/Rails
+ 212269 [nospam nosit] / ...
| 212273 [alder.green ] Actually, all you need it to redefine the color definitions for each
| 212280 [alder.green ] I can't use this particular one as it is aimed at people who use black
| 212309 [nospam nosit] Yipes. Oh well, to each his own. I gave up on white text on black background
| 212316 [hramrach cen] I guess white on black used to be very useful on the old screens that
| 212325 [znmeb cesmai] I've found the typical "xterm/konsole" window on Linux systems is often
| + 212370 [robin nibor.] That's because Vim assumes that there is a bright background. I also had
| | 212397 [znmeb cesmai] Yeah ... that is better. Still, when I edit a Ruby file, the comments
| + 212384 [ruby anthrop] } I've found the typical "xterm/konsole" window on Linux systems is often
|   212392 [perrin apoth] s/with the shell/much at all/
|   212395 [perrin apoth] Y'know, that would look much smarter if I remembered to include the word
|   212396 [znmeb cesmai] Curiously enough, when Red Hat dropped Red Hat 10 in favor of Fedora and
|   212412 [ruby anthrop] } Curiously enough, when Red Hat dropped Red Hat 10 in favor of Fedora and
+ 212278 [piers ompka.] I think there are set of schemes in your directory version of
+ 212287 [hramrach cen] I use the default vim syntax highlighting which links all language
+ 212313 [james.britt ] James Britt
| 212416 [alder.green ] Thanks, that link is very nice. Not sure yet if it helps with my
| 214601 [lukfugl gmai] I've been using the "desert" color scheme (I may be biases as my
| 215015 [alder.green ] Thanks Jacob, and anyone else who contributed to this thread.
+ 212365 [jmg3000 gmai] I assume you're using gvim (which is GTK-based, rather than plain vim).
| 212419 [martindemell] I tried several, but finally settled on denim, which I've been using
+ 212424 [markonlinux ] Long post follows...
  212493 [znmeb cesmai] Oh, yeah? Try and *make* me!
  212726 [markonlinux ] It does sound a bit harsh. Sorry about that ;-)

^ download
212274 [phill pacifi] im keen to try ruby, but cant seem to be able to access the
212277 [phill pacifi] dont worry(not that you were anyway)

^ Re: A better syntax highlighting color scheme for Ruby code
212283 [wccrawford g] Wait, what are you looking for then?  Someone who has done the work for
+ 212308 [eero.saynatk] You can just mess with the colour definitions. I use a
+ 212328 [perrin apoth] The impression I get is that he just doesn't want to have to reinvent
  212352 [drjflam gmai] ...

^ unloading objects?
212310 [michael.gors] ...
212686 [phurley gmai] Yes and no,

^ catch all method... e.g perl's autoload
212317 [tmac easystr] ...
212321 [drbrain segm] Does this sound right?
212329 [tmac easystr] ...

^ Ordered contrast for String or Array
212320 [transfire gm] I have two strings: "aabc" and "aacd". I want to get an "ordered
+ 212330 [james graypr] I assume that's an error.  The last to letters match.
| 212346 [transfire gm] It's correct. By "ordered" I mean by sort order (ie. alphabetic) so
| 212347 [transfire gm] Opps... I forgot the comparision array and screwed it up. Let me try
| 212469 [rick.denatal] Here's one way to do it.  There are probably better ways.
| 212529 [transfire gm] Nice! Good use of zip, and using #unpack for the String rendition makes
| 212576 [rick.denatal] Well, I was surprised when I couldn't seem to find a standard String
| 212577 [rick.denatal] rick@frodo:~/rubyscripts$ cat benchstringsplit.rb
| 212578 [rick.denatal] Then on second thought, it looks like the problem with scan was the
| 212678 [rick.denatal] Disregard that last test.  It's been pointed out to me that my code
+ 212335 [wccrawford g] From this, the 'ordered contrast' means that the first different letter,
  212345 [transfire gm] That's right.

^ Class behaviour
212322 [geofflbarnes] Just curious, can I write a class that can check values as they are
+ 212326 [nospam nosit] Sure, just declare accessors in the usual way, then write your own methods
+ 212336 [shortcutter ] class Module
+ 212337 [gavin refine] Do you want the legal values to be different per instance, or set for
  212348 [geofflbarnes] Perfect, thanks for the ideas.  Makes sense...

^ yielding a block to another block
212339 [dchelimsky g] The mocking framework in rspec uses method_missing to capture all the
212350 [eero.saynatk] You cannot currently do that with a block (1.9 and 2.0 will
212351 [eero.saynatk] # One of these days.. *sigh*
212354 [dchelimsky g] Thank you! Can I credit you when I commit this?
212385 [eero.saynatk] Certainly

^ Stalled Rubyist
212398 [jp jeffpritc] I'm still enjoying Ruby now after about six months of learning ruby and
+ 212404 [dblack wobbl] Ruby longa, vita brevis :-)  I think one thing is not to think of it
| 212407 [jp jeffpritc] So David, I got to the "last page of the internet" a few weeks ago.  Are
| 212409 [nospam nosit] By the time you get to the "last page" of Ruby, something even better will
+ 212411 [znmeb cesmai] Well ... yes and no. You're describing what's known as the journey from
| 212453 [jp jeffpritc] Thanks Ed.  This sounds like sage advice.
+ 212414 [drbrain segm] I know a shortcut.

^ Help compiling Ruby Java Bridge on OS X?
212406 [jared.r.rich] I'm stuck so I thought'd I ping out to see if anyone else has done
212645 [rickhg12hs g] Is your JAVA_HOME environment variable set?
212796 [jared.r.rich] JAVA_HOME is not set. The main page (http://rjb.rubyforge.org/) says
212801 [yvonthoraval] ...

^ Problem with gem or ruby 1.8.5 or fxruby or maybe 64bit ????
212415 [marinho.tobo] Well i have a little problem. I just recently installed ruby 1.8.5 and rubygems 0.9 and Fox 1.6.4 and fxruby 1.6.
212484 [vjoel PATH.B] Your gem list shows that you don't have any other gems installed. Have
212602 [marinho.tobo] Well pdf-writer gem seems to work. Maybe its a 64 bit problem. Fox
212991 [halostatue g] I don't know if there is a binary gem distributed for FXRuby, but if

^ [C ext] default value ???
212421 [pere.noel la] i'm writting a C ext to Ruby.
+ 212430 [robin nibor.] Robin
| 212434 [pere.noel la] thanks a lot !
+ 212431 [nobu ruby-la] Define the method as -1 arity, and use rb_scan_args().
  212433 [pere.noel la] thanks a lot !

^ Re: One-Click Ruby Installer for Windows 1.8.5-21 released
212422 [b72912000 gm] I have just discovered ruby and was interested to see what its
212448 [djberg96 gma] It seems that the narray package also comes with some pure Ruby libs as
212572 [b72912000 gm] Thanks Dan!

^ This is only a "new topic" test - please ignore
212426 [RichardDummy] This is only a "new topic" test - please ignore
+ 212444 [david vallne] Failed.
| 212472 [shortcutter ] Funny that you said this.  It's an exact copy of a reply I gave recently
+ 212479 [robert.dober] ...
  213032 [david vallne] I wonder if us not ignoring him just sundered the fabric of reality
  + 213110 [ravingsane g] Oh, is _that_ where that star went?
  + 213112 [robert.dober] ...

^ Re: [QUIZ SOLUTION] Happy Numbers (#93)
212435 [karlvonl rcn] ...
212438 [makenai gmai] ...
212439 [sander.land ] I solved the question of the happiness of 1 by simply giving 10 and

^ [QUIZ SOLUTION] Happy Numbers (#93)
212440 [kbloom gmail] require 'enumerator'
+ 212476 [eric.duminil] class Integer
| 212487 [email55555 g] ( Resend it. It seems lost on last time ... )
| 212505 [email55555 g] Here is my simple solution, not thread safe, not optimize for finding
+ 212828 [tim hoolihan] My solution.  Not nearly as short as the others, and I didn't implement

^ How to properly bind context menus to canvas in Ruby/Tk?
212442 [jw raven.ink] I am trying to bind context-menus to a Tk canvas.  The canvas itself should
+ 212451 [nospam nosit] / ...
| 212597 [jw raven.ink] Thanks for your reply, Paul!
| 213202 [nospam nosit] / ...
+ 212732 [m_goldberg a] I tried running your code on my system which is OS X 10.4.7 running
  212803 [jw raven.ink] Thanks for the reply, Morton!
  212810 [m_goldberg a] By left clicking -- either on or off the menu. Which menu don't you
  212983 [jw raven.ink] Don't work here.
  213060 [m_goldberg a] I think the reason my code works differently from yours is because I
  213078 [jw raven.ink] - If I use the same variable, always the last allocated menu wins.
  213124 [m_goldberg a] You _can_ see different menus if you change the posted version of
  213159 [jw raven.ink] Well, I tried and I see different menus only when I use different
  213187 [m_goldberg a] I find the behavior of your code as I see it under OS X to be what I

^ Fwd: quiz 93 solution
212452 [james graypr] ...

^ Already stalled in Pick Axe book - could use some help
212459 [iroar hotmai] I'm running Ruby version 1.8.4 on Windows XP Home Edition. I'm entering
+ 212461 [james.britt ] I just tried this on WinXP, ruby 1.8.4 (2005-12-24) [i386-mswin32]
| 212464 [robert.dober] ...
+ 212466 [eero.saynatk] Your code seems to be fine--however, you mention using
| 212471 [iroar hotmai] irb(main):001:0> class Song
| 212516 [nospam nosit] It may be time for you to create a Ruby source file. "irb" is a very useful
+ 212546 [chris.hulan ] ...snip
  + 212547 [dez dsl.pipe] Actually, #@ is a shortcut, when it is an instance variable.
  + 212579 [gavin refine] The curly braces are not needed for class, instance, or global

^ Fwd: Already stalled in Pick Axe book - could use some help
212460 [dez dsl.pipe] That should be 'puts song.to_s'. Your program is creating the string,

^ Invoking External Program
212467 [brian.kejser] I've been able to launch an external program and read standard output
212485 [jan.svitok g] 1. try using Timeout.timeout [1] but I'm not sure how successful
212651 [brian.kejser] Comments made inline ....

^ Controlling USB-RS232 interface
212473 [jzakiya mail] Before reverting to C, et al, can I use Ruby to do this?
+ 212489 [hramrach cen] The driver for your usb-serial adapter should make it appear as a
+ 212515 [gavin refine] ...
+ 212517 [nospam nosit] / ...

^ [ANN] Ruby Reports 0.5.2
212490 [gregory.t.br] = Ruport 0.5.2 : The "I need to test more on Windows" edition =

^ Exploring Metaprogramming
212501 [michael.gors] ...
+ 212512 [logancapaldo] class Creature
+ 212518 [logancapaldo] Sorry I seem to have under estimated what you wanted.
  212525 [michael.gors] ...
  212537 [ben iagu.net] I'm doing a very similar thing, but my approach was different. I have

^ [ANN] Exporting Netvibes bookmarks to Del.icio.us
212502 [drnicwilliam] Here is a script for importing bookmarks into Delicious in Ruby. It also

^ debugger problem on windows xp
212506 [rand nada.kt] I am new to Ruby and have just tried using the debugger for the first

^ Does an instance know his own name?
212508 [geofflbarnes] If a class has built checks and raises an exception if it finds
+ 212486 [eero.saynatk] No and no (at least, no sensible way). You are dealing with
+ 212526 [jtregunna bl] Instances don't have names.
| 212538 [marinho.tobo] I think the problem with an instance knowing his own name is the possibility of an instance having more than one name. How whould the instance now, which name you want ? The object id on the other hand is afaik sort of unique.
| 212649 [rick.denatal] Yep.
+ 212737 [interfecus g] You can identify an object by its object_id. Variables are just
| 212739 [logancapaldo] It is sort of possible to find out someone's name. The following of
+ 212771 [gavin refine] huey = Nephew.new

^ 'gem install' vs. 'ruby install.rb'. A few questions.
212510 [gejtoo gmail] First, a little disclaimer : I don't know jack on ruby, gem, rails or
212986 [halostatue g] AFAIK, there's no fakegem capability in RubyGems, which is essentially
214316 [vg customdyn] The sqlite3-ruby gem is working for me now on FreeBSD, but in case it

^ Ruby OSA "AppleScript" for the Macintosh
212511 [gavin refine] Are you a Macintosh scripter who hoped that the title of this message
+ 212519 [logancapaldo] I think you left your google at home <g>: http://www.fobj.com/rubyaeosa/
| 213194 [gavin refine] I wish that were true. I probably should have mentioned why that isn't
+ 213164 [pere.noel la] #!/usr/bin/env ruby

^ how to hide part of the source passwords etc
212514 [exksajpmremo] I do some stuff that encapsulate calls to various systems
212513 [nospam nosit] Have the user of the program enter a password, rather than include the
212548 [exksajpmremo] If you create a windows user based on datas stored in a
212592 [nospam nosit] It is difficult to understand the goal as you have explained it. As I
212826 [exksajpmremo] Well If i want to let users do say runas something it must
212875 [cdc cyphers.] How about ruby2scriptexe?
212982 [rick.denatal] And compiled C code or the like isn't necessarily that safe either.

^ [QUIZ Solution] Happy Numbers (#93)
212524 [fugalh xmiss] in a 1.5 speedup when executed over the numbers 1 through 10,000.

^ ActiveRecord has_many fails on children
212533 [inanc.gumus ] I have two models and they have has_many and belongs_to relationships.
212543 [drbrain segm] You want to ask this question on the Rails list, this list is for

^ Ruby IRC client
212535 [mksm.sama gm] The other night I was talking to a friend over IRC about how simple
212581 [james graypr] Ruby makes a fine IRC language.  I used an IRC Bot as an example in a

^ [ruby-graphviz] Error: Could not find/open font : Times-Roman
212541 [pere.noel la] after installing on Mac OS X 10.4.7 graphviz using dp and, afterwards,

^ [ANN] ActiveRecord Extensions 0.0.4 Released!
212542 [zdennis mkte] ActiveRecord Extensions 0.0.4 Is Released

^ [SOLUTION] Happy Numbers (#93)
212544 [helge.elvik ] ...

^ using rcov in already running program
212545 [skurapat ucs] How can I use rcov from an already running Ruby program?
212590 [ mfp acm.org] I've never used rcov with an embedded Ruby interpreter, but something like
212604 [skurapat ucs] [code snipped]
212638 [ mfp acm.org] What about something like this?
212671 [skurapat ucs] This is good. Please proceed with this approach.
212795 [ mfp acm.org] Alright then, I'll document the available report generators ("formatters")
212806 [skurapat ucs] This would agree more with RubyGems convention.

^ concurrent input from GUI *and * from irb
212554 [wuttke1 web.] I am currently redesigning a program that shall accept input
+ 212561 [lyndon.samso] ...
+ 212569 [kero chello.] ...
| 212575 [benjohn fysh] Do you know the model view controller design pattern? Also look at
+ 212591 [nospam nosit] IMHO you are better off writing a GUI that handles events from both the GUI
  212712 [wuttke1 web.] Thank you, Kero and Paul, for your comments.
  212719 [nospam nosit] / ...
  + 212724 [hramrach cen] Well, I guess Kernel::eval is not useful for user input.
  + 212756 [wuttke1 web.] my user should be able to define variables, to define functions, to
    + 212760 [logancapaldo] Of course it is. irb is built on top of eval. (irb is AFAIK, pure
    | 212765 [hramrach cen] Thanks
    + 212779 [gruppen erro] engl.: have a look on how fxri is dealing with that problem. there you
    + 212959 [kbloom gmail] Yes, just like some of the examples that float around here of people
    + 212973 [nospam nosit] A lot of user-entered code can be packed into an "eval" entry and then