202148-236689

201866-203614 subjects 202356-204889

Displaying the load the server is under?
202148 [bjohnson@co ] ...
+ 202151 [jtregunna@bl] Not really... If you limit CPU usage to a certain percentage,
| 202162 [bjohnson@co ] ...
| 202519 [robert.dober] ...
+ 202633 [djberg96@gm ] See sys-proctable and/or sys-cpu, available on the RAA.

using a \ in gsub
202152 [metrix1978@g] "te/st".gsub('/','\')
+ 202153 [halostatue@g] File.expand_path($0).gsub(%r{/}) { "\\" }
| 202155 [metrix1978@g] that would give me two c:\\ruby\\ whatever and if I remove a \ it still
| 202164 [langstefan@g] Are you testing this in irb? You should know
+ 202750 [Rob@Ag le on] ...

[ANN][SoC] GlimR 0.1.0
202169 [ilmari.heikk] == GlimR 0.1.0 - Ruby OpenGL GUI Widget Kit ==
202254 [netghost@gm ] This seems pretty neat, I snagged the gem and ran the little sample
202270 [ilmari.heikk] Thanks for trying it out :)

salt = [Array.new(6){rand(256).chr}.join].pack("m").chomp
202178 [alexandre.hu] This is a line taken from the "authentification" recipe in the 'Rails
202179 [the.mindstor] To my understanding: creates
202181 [mike@st k. a] Close - the pack('m') always pads its result with = if necessary (to
202212 [the.mindstor] I was quite close... thanks for details Mike :-).

Error Message: NameError: uninitialized constant Task
202180 [jsnit@js it ] I am trying to write a samll program in ruby that access a table caled
202241 [jsnit@js it ] Posted via http://www.ruby-forum.com/.

Ruby for office database application
202183 [pedx78@ly os] I have volunteered at my local charity to develop a database
+ 202189 [znmeb@ce ma ] If you have Windows machines, I'd recommend using "Instant Rails". It
| + 202244 [robert.dober] ...
| + 202362 [studlee2@gm ] I agree about the Instant Rails Development comment for Windows users.
+ 202226 [danielbaird@] ...
  202227 [has.sox@gm i] ...

Module#private_filter: critique of dynamic method visibility
202185 [transfire@gm] The following fancy function does some pretty delicate handling of

system() on windows
202186 [rtilley@vt e] I want to capture the string that system("hostname") produces on windows
202188 [logancapaldo] hostname = `hostname`.chomp
202201 [anatol.pomoz] If you want to catch all output including both STDOUT and STDERR you
202204 [wrecklass1@g] Except that the OP said he is on Windows, and unless he is using cygwin
202206 [anatol.pomoz] Did you really try my recipe on Windows???
202211 [wrecklass1@g] I stand corrected. I did try it, but got it twisted up. Yet more

Save me from the method_missing
202195 [transfire@gm] I'm find the the whole method_missing, privative clashing methods,
202197 [rubyfan@gm i] So what is it exactly that you're trying to do?  Are you creating a
202218 [transfire@gm] Basically, albiet a lower-level sort of one. It all goes back to
202245 [ara.t.howard] i use method_missing too but, in this case, you'd have to provide an extremely
202260 [transfire@gm] good food for thought. thanks ara. ...
202335 [ara.t.howard] yes, a bit.  very doable though...
202342 [transfire@gm] Yes, I do constrain the config keys to single word case insensitive
202347 [ara.t.howard] require 'yaml'

Re: Grails
202196 [hawat.thufir] Which is fine :)
202198 [hawat.thufir] Clarify.  Is it that language, java, or the code monkey's themselves to

strange "NoMethodError" ???
202199 [pere.noel@la] /path/to/MacSOUPSwitcherTK.rb:91:in `prefs_setup': undefined method

[ANN] Cerberus Continuous Integration tool released
202202 [anatol.pomoz] Cerberus is a Continuous Integration (CI) software. Cerberus could be
202456 [arjen@wa sj ] Dear Anatol,
202544 [anatol.pomoz] RubyGems help in simplification of installation a lot. Let's say 'thank

Finding the size of a file on web server?
202209 [CBlair1986@g] I'm writing a little script to help automate downloading videos off of
202221 [martin@sn wp] Well, this depends on what you want to do - do you want to ask for the
202256 [CBlair1986@g] Well, the first method doesn't work, and the second method isn't

Newbie question on an I/O loop
202210 [jkdaniels@ro] I got a question that's puzzling me. Am new to Ruby but programming for
+ 202217 [robert.dober] ...
+ 202232 [steverummel@] I tested this on a file that was 29,184 bytes - it worked fine.
+ 202237 [decoux@mo lo] moulon% /usr/bin/ruby -e 'p "%c" % 0x1A'
  202286 [jkdaniels@ro] Thank you Guy, Steven, and Robert for solving the problem. I appreciate

[Ann] Greenbar 1.0.1
202225 [dcorbin@ma h] Greenbar is an open source project intended to aid in the writing of

Re: salt = .pack("m").chomp
202229 [alexandre.hu] Much thanks to you two :)

Work with FTP
202234 [akeem@uk .n ] Such problem (itself with Ruby has arisen is familiar with recent time

Win32, open3 and fork
202239 [Nuralanur@ao] ...
202634 [djberg96@gm ] The open3 library that's included as part of Ruby's standard library

Re: Why Ruby over Python? --> How about a Ruby Success Stories site?
202246 [vasudevram@g] I guess Disney qualifies as a reasonably-large company.
+ 202247 [dblack@wo bl] David
| 202251 [vasudevram@g] Thanks! That's a fair-sized and interesting list.
| 202285 [josselin@wa ] btw  'Ajax is seen'...  [quoted]  Ajax cannot be compared to Python,
| 202314 [vasudevram@g] Just FYI - that bit (about Ajax) was not stated by me but by the person
+ 202252 [garbagecat10] ...

additional requirements for a Ruby env
202250 [the.mindstor] I know there are Ruby libs outthere that are coming with C extensions.
+ 202253 [garbagecat10] ...
| 202418 [TimHunter@nc] This sounds like a suggestion for a Ruby extension compile farm. That's
| 202422 [garbagecat10] That's exactly what I had in mind. If the farm had at least one of every
+ 202333 [the.mindstor] Guys any hints for this? Sorry for pushing it to the top, but I am
| 202340 [alex@bl ck e] - Rely on the kindness of others to provide Win32 builds of C extensions
| + 202344 [ mfp@ac .o g] You can also use extensions compiled using mingw with mswin32 (VC6) binaries,
| | 202345 [alex@bl ck e] I know that's the theory, but aren't there a few libs that fail under
| + 202348 [the.mindstor] By following the thread and considering the fact that my system relies
| | 202380 [halostatue@g] Binary incompatibilities from Microsoft.
| | + 202388 [ara.t.howard] (applause from audience!)
| | | 202391 [the.mindstor] Sorry but I still don't get it.... why do I need to compile Ruby
| | | 202396 [SimonKroeger] Because your extension is (statically) linked against (if you use the
| | + 202395 [SimonKroeger] yes, but as far as i know the problem isn't with the resulting dll's (not
| + 202407 [ml.chibbs@gm] ...
|   202410 [ara.t.howard] why is that though?  a VC2005 will still result in a broken ruby that will be
|   + 202413 [the.mindstor] Man I haven't thought that my initial question (for which I was a
|   + 202487 [ml.chibbs@gm] ...
|   + 202707 [halostatue@g] No, it won't allow. But that's because Ruby needs to provide that
+ 202343 [yakumo9275@g] the problem is that the ruby setup.rb method assumes ruby is running on

Re: rlogview, chainsaw, and log4r
202258 [listrecv@gm ] Is there anyway to save those receivers in chainsaw, so that when I
203436 [scott.deboy@] Yes...see the 'view example receiver configuration' button on the

Alternative to open-uri?
202261 [CBlair1986@g] I'm using open-uri to open a very large web file. This is all fine and
+ 202262 [garbagecat10] ...
+ 202264 [akr@fs j. rg] open-uri use Tempfile for large file.  (> 10k)

yahoo-ruby ImageSearch can't get Thumbnail
202265 [moore.joseph] I'm attempting to use yahoo-ruby to access the yahoo api and get

Net::HTTP client side sessions?
202267 [jbresnik@gm ] Been looking through Net::HTTP for a way to manage a session [i.e.
202271 [aaron_patter] Have you tried looking at WWW::Mechanize?  It will maintain your cookies
202352 [jbresnik@gm ] Perfect - thanks Aaron

[ANN][SoC] Ruby Reports 0.4.17
202274 [gregory.t.br] == Ruport 0.4.17 ==

[ANN] Ruby-GetText-Package-1.7.0
202276 [mutoh@hi hw ] Ruby-GetText-Package-1.7.0 is now available.

n00b Q: Obfuscation and locking the source
202280 [dh.evolution] I have been doing some Ruby on and off this year, so I am still a n00b.
+ 202282 [james.herdma] ...
| 202289 [rubytalk@ea ] ...
+ 202304 [james.britt@] This was discussed on this mailing list not too long ago (and on
  202328 [dh.evolution] I did, all I found were jokes about how ruby is already obfuscated, and
  + 202330 [james@gr yp ] It's important to remember how easily the determined person will get
  | 202334 [dh.evolution] I'll agree with that.  Thanks.
  + 202366 [billk@ct .c ] Had you seen the ZenObfuscate post?
  | + 202383 [dbatml@gm .d] Have you seen Ruby2CExtension (http://ruby2cext.rubyforge.org/) ?
  | | + 202386 [billk@ct .c ] Nice !!!
  | | + 202560 [ryand-ruby@z] So can ZenObfuscate.
  | + 202927 [u.alberton@g] Have you already taken a look at the Street Performer Protocol[1]?
  + 202373 [james.britt@] Weird; seems the word "obfuscate" didn't really figure into the
    202385 [kenosis@gm i] Here's the link to a thread I started on this topic a couple of years

Rdoc with hyperlinks
202281 [listrecv@gm ] More often than not, I find when browsing rdoc, that I need to see the
+ 202476 [kbloom@gm il] In general, you should not rely on knowledge of the source code to
| 202489 [listrecv@gm ] Ken - I certainly agree in theory.  However, in practice, that is often
+ 202496 [gavin@re in ] which has a link to its own source file, and thus is self-documenting
  202602 [groups@gr nd] In general, you should not rely on knowledge of the source code to
  + 202730 [listrecv@gm ] Thanks, greatly appreciated!
  + 202948 [drbrain@se m] Can you turn this into a patch?
    203008 [2006@ho el .] Short answer: "no".
    203035 [logancapaldo] diff -u your_version_with_changes.rb original_version.rb > your.patch
    + 203036 [logancapaldo] Ack!!! I lied. I always mix that up.
    | 203102 [jmg3000@gm i] diff -ur foo_original foo_modified > foo_mychanges.patch
    + 203153 [drbrain@se m] Make your changes, test them, then run cvs diff -u and send the
      203200 [listrecv@gm ] I think we should have options for linking to the actual file (in the

Re: Groovy Book
202283 [kalim1998@ya] Looks like there's a Groovy book coming...Groovy is the scripting
202284 [headius@he d] ...

Globalize-rails plugin
202291 [olontsev@gm ] I've just downloaded it and installed.

Net::HTTP Performance....
202292 [bjohnson@co ] ...
+ 202293 [ola.bini@ki ] Yes, and yes. The fix is basically to go into your
| 202295 [flori@ni e. ] Ruby being Ruby, you can also just reopen the class and redefine the
+ 202297 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://blog.segment7.net

Printing Barcodes from Ruby
202294 [listrecv@gm ] I'd like to be able to generate barcodes from Ruby (to a PDF document).
+ 202298 [oliver.march] - install GNU barcode from
| 202323 [csaba@ph ny ] You might as well try to use GrailTeX (
| 202339 [chneukirchen] Awesome stuff, thanks a lot!
+ 202337 [lists@mi el ] I think you can embed some font (I am not sure what is name of font) to
| 202349 [listrecv@gm ] That would certainly be the easiest - easier than converting from
| + 202377 [lists@mi el ] I see there are plenty of barcode Code 39 true type fonts available and
| + 202401 [rgkaufman@gm] Right now we're using the method described here ->
|   202447 [listrecv@gm ] Rob,
|   202559 [rgkaufman@gm] I agree with you that the create_fdf method is kind of a "magic" hack,
+ 202999 [guido@so ne ] (DataMatrix) generation thingy in JavaScript.
+ 203143 [halostatue@g] I hope to be able to add this to PDF::Writer in the future. Don't hold
  203198 [listrecv@gm ] Great, I really appreciate that.
  236689 [plex27@al ce] i'm italian and I must generate a barcode into a PDF file.

Catch ^c/signals? blocks?
202301 [eliteforce@e] I'm kinda new to ruby and have a few questions.
202302 [ola.bini@ki ] I would recommend that you lookup either the method Kernel#trap, the
202306 [eliteforce@e] does ctrl-c also send a signal to the process? (i guess so)
202307 [ola.bini@ki ] Yes, C-c generates a SIGINT in most common operating systems.
202308 [eliteforce@e] Okay, thank you very much!
202311 [pedrocr@gm i] I think there's no difference in behaviour. There is a difference in

How can I parse binary files?
202310 [fabio@sf ra ] How can I accomplish this in Ruby?
+ 202312 [farrel.lifso] String#unpack.
+ 202317 [martin@sn wp] In addition to parsing this yourself using ruby's String#unpack
  202338 [fabio@sf ra ] I've found bit-struct very intresting, anyway I cannot figure how to
  + 202341 [ara.t.howard] without even looking at the docs i'd guess you could do
  | 202389 [SimonKroeger] This looks like a nice way.
  + 202392 [martin@sn wp] First off, the other message's advice about your field sizes should be
    202398 [martin@sn wp] I forgot to open the file in binary mode, and forgot an inspect call.
    202448 [fabio@sf ra ] require 'bit-struct'
    202449 [fabio@sf ra ] - Filename (23 bytes including terminating NUL character)
    + 202493 [martin@sn wp] Okay, first off I apologize but I lead you astray.  Apparently it's
    | + 202499 [fabio@sf ra ] Martin Thank you very much: you solved my problem like a charm!
    | + 204883 [vjoel@pa h. ] Just one comment below on Daniel's solution...
    + 202495 [chris.hulan@] Looks like you need to investigate #unpack.
      202521 [martin@sn wp] That's fine if you want to pull out each field in succession yourself,
      + 202532 [chris.hulan@] My ref to BinaryReader wasn't a slight against BitStruct, I haven't
      | + 203568 [fabio@sf ra ] This time I'm trying to write a binary file.
      | | + 203590 [martin@sn wp] I'm not sure.  It appears to be a bug in bit-struct.  Here's a
      | | + 203591 [jan.svitok@g] Q2: have look at Time.parse or ParseDate in stdlib. Keep in mind that
      | | | 203619 [fabio@sf ra ] Thank you all!
      | | + 204884 [vjoel@pa h. ] The problem is, unfortunately, not something that can easily be fixed in
      | + 204887 [vjoel@pa h. ] Good point about setting the default endianness for all fields in a
      + 204892 [vjoel@pa h. ] 1. Padding.
        204936 [martin@sn wp] Well, the main issue is that I thought it was a bit clumsy to have to

Strangeness with ruby-web and sqlite3
202315 [hhausman@gm ] I'm getting everything up and running on win32 with ruby-web and
202319 [simon.kroege] just a guess: is your html-server account allowed to write
202320 [hhausman@gm ] Man, good guess.

First ruby code, need hint on iterator
202316 [gerald@fr bb] #!/usr/bin/ruby
+ 202326 [leslieviljoe] I think it's ok to duplicate a single line. If you are worried about
+ 202327 [wrecklass1@g] Keep a count of total characters processed, and output if that is the
+ 202359 [sander.land@] If you want to do things with 16 bytes at a time, you might as well
  202379 [gerald@fr bb] Delightful ! It's hard to think outside the box if you mainly have been

Ruby Gems and the Mysterious 403 Error
202325 [derek.perrau] ...
202331 [yvonthoraval] ...
202365 [derek.perrau] ...

[ANN] Northern Virginia Ruby user's group meeting 7/19/06
202329 [tom@in oe he] For those in the northern Virginia/DC area, there's a Ruby user's group

Re: Negative Sleep (#87)
202332 [miken700@ya ] This is what negative sleep basically meant for me: if we are negative

[ANN] ruby-debug 0.2
202346 [ksruby@gm il] ruby-debug 0.2 is now available.

[ANN] RubySSPI 0.0.2 - Enabling Windows NTLM/Negotiate proxy authentication
202350 [jgbailey@gm ] ...

mystery regexp
202351 [nntp.m.ttwel] I found this regexp in the docs for the OptionParser class, and I don't
+ 202353 [greg.kujawa@] Check out http://www.zenspider.com/Languages/Ruby/QuickRef.html#11 for
| 202358 [nntp.m.ttwel] There ya go.  Thanks.
+ 202355 [jason.sweat@] \A    start of subject (independent of multiline mode)
+ 202357 [james@gr yp ] That's a look-ahead assertion, ensuring there is at least one

irb and readline
202354 [listrecv@gm ] I'm getting funny behavior when using irb (readline) on Windows.  When
+ 202364 [jgbailey@gm ] ...
+ 202378 [gavin@re in ] Since you asked, yes, I experience this too. You're not alone.
| 202408 [listrecv@gm ] What is the correct place to submit this as a bug report, then?
+ 202423 [botp@de mo t] # I'm getting funny behavior when using irb (readline) on Windows.  When
| 202490 [listrecv@gm ] I'm running exact same ruby/irb vers, and still get this.  Not always -
+ 202669 [dave@bu t. d] irb --noreadline. As an added bonus, that means I can paste text with
  + 202735 [listrecv@gm ] Good tip.  The only problem is that this breaks tab completion also,
  | + 202763 [sean.ohalpin] Enables or disables command line editing on DOS system
  | | 202799 [listrecv@gm ] I believe that there is still a cmd.exe running in the background,
  | | 202809 [sean.ohalpin] Nope. It's spawned directly. Make sure you don't have cmd.exe running,
  | | 202845 [listrecv@gm ] Got it.  So, is there anyway to shut off history from the windows
  | | 202846 [listrecv@gm ] I was able to lower buffer size and number of buffers to 1, but it
  | + 202931 [dave@bu t. d] You can use the old command.com shell (Windows XP still includes it)
  + 202771 [gavin@re in ] Nice, that solves it for me, too.
    + 202781 [jgbailey@gm ] ...
    + 202933 [dave@bu t. d] You can either add the --noreadline parameter to the ruby calls at the
threads.html
top