157011-158254 subjects 157474-160654

[Ann] SitePoint adds Ruby Forum
157223 [jason.sweat@] Greetings Rubyists,

Trapping TaskManager's kill process on win32
157224 [ggarra@ad an] Is there a way to trap the killing of a ruby windows process killed
157231 [djberg96@gm ] You can't.  Using the "end process" button on the Task Manager calls
+ 157232 [dido.sevilla] Gee, so there's only a SIGKILL on Windows, and no equivalent of a
| 157236 [djberg96@gm ] Well, drat, I *thought* the CreateRemoteThread + ExitProcess combo was
| 157254 [simon.kroege] send a WM_QUIT to the main window if you want the application to exit
+ 157235 [Ara.T.Howard] under *nix you can trap almost all signals - but not this one for that very
+ 157256 [snail@ob me ] Daniel Berger <djberg96@gmail.com> writes

memory measurements
157226 [eric_mahurin] In ruby, is there a portable way to measure memory usage?  Any
157257 [snail@ob me ] Eric Mahurin <eric_mahurin@yahoo.com> writes
157284 [eric_mahurin] I'm a linux guy.  Here's what I do to get the memory of the
157288 [snail@ob me ] Eric Mahurin <eric_mahurin@yahoo.com> writes
157307 [eric_mahurin] I don't care about graphs and such.  Just a method (or several)
+ 157311 [c.r.mcgrath@] ...snipped...
| 157330 [eric_mahurin] It looks to gauge memory usage by counting objects.  Far from
+ 157316 [snail@ob me ] Eric Mahurin <eric_mahurin@yahoo.com> writes
  157354 [scott@al da ] None of the following is in any way a slight on what you have done - it
  157362 [snail@ob me ] Ellsworth <scott@alodar.com> writes

patch for imap.rb -- error handling when waiting for continuation request response
157242 [martin.povol] we are using heavily Ruby IMAP library for communication with cyrus imap
+ 157244 [drbrain@se m] ruby-core@ruby-lang.org and http://rubyforge.org/projects/ruby are
+ 157498 [shugo@ru y- ] Your patch works fine, but I don't want to add the `tag' argument

[ANN] Rails Analyzer Tools 1.1.0
157243 [drbrain@se m] Rails Analyzer Tools contains Bench, Crawler, RailsStat, IOTail and
157457 [chriscodes@g] Or gem install rails if you're using an old version of rubygems ;)

[QUIZ] Math Captcha (#48)
157268 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 157270 [dave@bu t. d] Solutions to the past quiz entitled English Numerals may be handy for this
| 157273 [james@gr yp ] The quiz says that if you read a bit farther down.  ;)
| 157404 [dave@bu t. d] extra credit...
+ 157552 [zimba.tm@gm ] It's a bit out of topic, but I wanted to express an idea I had today and
  157556 [ef@al m. it ] =20

Re: Welcome to our (ruby-talk ML) You are added automatically
157272 [bloomingw@gm] ...

157279 [josh.charles] Hey all,
+ 157281 [robby.lists@] I don't think there is a planet-type site run by anyone in the community
+ 157283 [florgro@gm i] * http://planetruby.0x42.net/
+ 157290 [james_b@ne r] The Internet.
+ 157361 [seths.mailin] The default search is for blogs, and I've heard it's quite excellent

Re: Places for a programmer to live?
157282 [pauldacus@gm] ...

157291 [mkhan@le tr ] unsubscribe

Why is this not a syntax error?
157294 [cribbsj@oa w] Switching back and forth between Python and Ruby bit me in the butt
+ 157295 [decoux@mo lo] You have just written
| 157297 [cribbsj@oa w] Gotcha!
+ 157296 [matz@ru y- a] It's seen as
+ 157482 [vjoel@pa h. ] Syntax hilighting in your editor works wonders on this kind of butt-bite.
  157506 [chneukirchen] It's enough if they properly indent your code. :-)

activerecord question
157298 [beeplove@gm ] ...
157343 [drbrain@se m] Has your answer.
157398 [beeplove@gm ] ...

On accidental unsubscribe messages
157299 [Daniel.Berge] I think we get enough unsubscribe messages on this list that they should
157303 [ruby-talk@wh] The list should continue as is.  When I get an unsubscribe message, my
+ 157317 [curt.hibbs@g] Hmmm... I once unsubscribed from one email address and subscribed
| 157324 [patrick.fern] Hmm... on an unsubscribe-related note, does anybody know how I might
| + 157332 [bob.news@gm ] How did you manage to get your old mail address defunct but it still
| | 157334 [patrick.fern] It's an old university account that I'm no longer allowed to send mail
| | 157339 [lukfugl@gm i] ...
| | + 157341 [patrick.fern] Wow, talk about being dense (me, not you). A simple spoofed email
| | | 157342 [joshknowles@] ...
| | + 157345 [rhkramer@gm ] This is meant for the OP (or the guy that is trying to unsubscribe an old
| + 157368 [james_b@ne r] Have you tried spoofing the old address?  If there is a confirmation,
|   157386 [botp@de mo t] #Wow, talk about being dense (me, not you). A simple spoofed email
|   157441 [lukfugl@gm i] Actually, yes. Let's hope no one gets any malicious ideas.
+ 157483 [vjoel@pa h. ] So all those misdirected "unsubscribe" posts were in fact asking me
  + 157486 [twifkak@co c] Correct. That is, unless he sends you "subscribe."
  + 157490 [martindemell] martin

A windows ole question - howto start an external application
157306 [Nuralanur@ao] ...
157318 [snail@ob me ] Try the Win32 function CreateProcess() - of course via the appropriate
157319 [Nuralanur@ao] ...
157507 [damphyr@fr e] Does Maple have an OLE API?
157596 [Nuralanur@ao] ...
157647 [damphyr@fr e] Well, it'S actually very simple - the complex part starts from when you
157718 [Nuralanur@ao] ...

net/ftp works manually, fails via cron
157320 [Daniel.Berge] Ruby 1.8.2
+ 157321 [cribbsj@oa w] Did you add it to the root user's crontab or your user account's crontab?
| 157329 [Daniel.Berge] Nope, whoops, that was it.  I think I goofed the crontab, too, which is why I
| 158359 [meta@po ox c] Handy tip: Always use Logger for cronned scripts.
+ 157322 [Ara.T.Howard] path to ruby is fubar under cron?  what's the shebang line and cron line?

YAML with comments
157327 [phlipcpp@ya ] I like the existing YAML system very much for Ruby. However...

to_str in string.c # rb_str_to_str()
157333 [byrd.timothy] I have a Bignum object and I tried calling StringValueCStr() to get it
157340 [cmills@fr es] No, it should be to_str.  All objects implement to_s since all classes
157375 [byrd.timothy] I would like to get the string representation of an arbitrary Ruby

postgres dbd driver for ruby dbi
157344 [snacktime@gm] ...

Tracer question
157348 [bart.massche] require 'tracer'
157349 [bart.massche] Sorry, code should be

woa! There is no Object just a Kernel
157350 [transfire@gm] Object.instance_methods(false)
157359 [dooby@d1 .k ] <PickAxe I and, I dare say, II - "Class Object">
157371 [transfire@gm] Thanks daz,

Anyone using yajb in production?
157351 [pat.eyler@gm] We're looking at it for a managment tool that needs to talk to JMX,

powered by Ruby icon?
157352 [phlipcpp@ya ] I want to put an icon saying "Powered by Ruby" on my web site. Where's the
+ 157379 [james_b@ne r] Luckily, very little in Ruby is "official".
+ 157936 [ jupp@gm .d ] ...
  158043 [phlip2005@gm] Google admitted it, but in general most servers will strip it, or

Re: Large scale sites? Anyone? Anyone?
157355 [none@no e. o] A very simple solution would be to just have the system output static html.
+ 157357 [ezra@ya im -] Hey Sean-
| + 157360 [snacktime@gm] ...
| | 157364 [nospam@no he] Well, basically the site currently serves about 160,000 visits/day,
| | + 157366 [joevandyk@gm] Rails + Caching should be a perfect fit for you.  Just expire the
| | + 157372 [none@no e. o] You might want to look into things like gzip compression and maybe a site
| | | 157408 [bob.news@gm ] But keep in mind that gzip compression increases load on the server
| | | 157412 [david.heinem] That's your key. As long as there's no state, scaling doesn't really
| | + 157413 [snacktime@gm] ...
| + 157397 [mvondung@gm ] The ad at the start that pretends to be a Windows system message is a
|   157399 [ezra@ya im -] Are you talking about the pop-under add? God I hate that thing.
+ 157450 [martindemell] Yeah, having a CMS app where writers and editors can add/edit content, and

[ANN] nbfifo-0.0.0 - non blocking fifos for threads
157358 [Ara.T.Howard] URIS

Creating directories
157365 [joevandyk@gm] There seem to have been a bunch of filesystem-related releases
157367 [Ara.T.Howard] require 'fileutils'
157373 [joevandyk@gm] Thanks!
157376 [Ara.T.Howard] require 'logger'
157393 [joevandyk@gm] Every time I start the application, I want to create a new log file
157395 [Ara.T.Howard] oops.

trimming strings
157370 [jonathan.ott] folks->
+ 157374 [florgro@gm i] Try this: str[0 ... str.index("<br />")]
| 157378 [twifkak@co c] Document-class: Regexp
+ 157377 [joevandyk@gm] Your question is sort of unclear.  So I'm not really sure what you're

RubyGarden wiki overrun by spam
157380 [james_b@ne r] how to roll back to an earlier version of the page.
157502 [halostatue@g] I've taken care of this, this time around. What you do is you "view

REXML Question
157382 [mikeleonard@] I'm looking at REXML as a possible alternative to some things I've been
+ 157388 [james_b@ne r] Have you tries brute-force regexp?
+ 157392 [phlipcpp@ya ] REXML is a DOM-style parser, not a transformer.
| 159757 [itsme213@ho ] If you expect to be doing a variety of transformations, I would recommend
+ 157437 [m-lists@br s] /Marcus
  157461 [mikeleonard@] Thanks for the replies. Actually, it was Fowler's article that piqued

Implementing method_missing in C and blocks
157383 [drjflam@gm i] ...
157385 [nobu.nokada@] static VALUE
157425 [drjflam@gm i] ...

DRb DNS Problems
157389 [caldridge@gm] DRb server trying to yield data to the fully qualified domain name of
157595 [rubyzbibd@ub] [Snip more details]
157742 [caldridge@gm] Thanks for the reply. --Glad to see I'm not going crazy.

"once" methods
157400 [stevena@ne s] I was reading PickAxe and came across the very cool concept of "once"
+ 157402 [transfire@gm] Maybe #memoize.
+ 157439 [james@gr yp ] This is usually called memoization, but I'm not aware of a standard
  + 157444 [transfire@gm] I looked at the RCR, I think once is something a little more low level
  + 157445 [rascal1182@g] ...

157401 [zenlinux@gm ] ...
+ 157403 [transfire@gm] An interesting variation on OpenStruct. In my work with such things
+ 157409 [bob.news@gm ] I don't see the advantange of this syntax over
  + 157411 [zenlinux@gm ] ...
  | 157500 [transfire@gm] Well, it just a differnt way to think about coding  --prototypes vs
  | 157501 [zenlinux@gm ] ...
  + 157416 [dougkearns@g] name = "Robert"
    157434 [bob.news@gm ] => nil

Strange problem in Rails application in production mode
157405 [Guilhem.Vell] I have a very frustrating problem running a Rails application in

[OT] gmail style reply-to (was: Re: On accidental unsubscribe messages)
157406 [bob.news@gm ] I didn't know this feature.  Sounds like Google's version of Reply-To.  I

Ruby on Rails image problem
157417 [glenn.brutyn] hey, i am new to ruby, and i want to try this out
157423 [Guilhem.Vell] You can put all your images inside public/images, which is created by

How to do css in ruby on rails
157418 [glenn.brutyn] how must u do that, anyone got an example???
157422 [Guilhem.Vell] if you put <%= stylesheet_link_tag "style" %> in the head section of

157420 [ dez@ma .c m] I am trying to convince myself that Ruby is fully OO [I'm not
157421 [langstefan@g] Both find the private method "puts", which is defined in the
157424 [ dez@ma .c m] Ah - I knew it was semantics! Thanks for your explanation. It makes
157433 [bob.news@gm ] self.send(:puts, "foo")

[ANN] Vim/Ruby Configuration Files, 2005.09.24
157427 [dougkearns@g] G'day folks,

ubygems, but no rubygems  (was Re: [ANN] RDE 1.0.0 released)
157428 [dooby@d1 .k ] You're not on your own worrying about assumptions ;)

anyone has basic site??
157429 [glenn.brutyn] hey,
157438 [james@gr yp ] You also might have more luck asking a question like this on the
157455 [chriscodes@g] I can see pointing to the rails list because it's a rails question,

A big thank you to HostingZero...
157431 [tom@in oe he] ...for hosting a RubyForge file release mirror, and thanks specifically

fpdf in ruby
157432 [glenn.brutyn] this is the controller
+ 157435 [glenn.brutyn] found my problem
+ 157436 [robby.lists@] I don't see this link in my blog post, I apologize.

News is Nice
157440 [transfire@gm] What a nice site!
157512 [christophe.g] Well, thanks, but all the merit goes to Tim. I only help out a bit since
157555 [transfire@gm] Okay, though no dount he's glad for your help.

cannot convert Float into String
157442 [glenn.brutyn] i am making a pdf file, retrieving an product for the db and print the price
+ 157446 [Nuralanur@ao] ...
| 157447 [glenn.brutyn] thanks
+ 157448 [bob.news@gm ] pdf.Cell(100,h, @product.price.to_s , 0,1)
  157456 [twifkak@co c] pdf.Cell(100,h, "#{@product.price}", 0,1)
  157459 [bob.news@gm ] Although I agree to the rest of your posting this variant is inefficient if
  157464 [twifkak@co c] I'll buy that. It is, however, more convenient in a longer string such

image in pdf
157443 [glenn.brutyn] i do this and he cant find it
157462 [halostatue@g] Um. Which PDF creator are you using? I'd guess that you're using FPDF
+ 157509 [glenn.brutyn] i get this error using fpdf
| 157516 [halostatue@g] Which operating system are you using?
+ 157510 [glenn.brutyn] and another thing, how can i do footers and headers in fpdf???

deleting a record from table
157451 [glenn.brutyn] hey, me again
157453 [robby.lists@] def delete

Concerning Marshalling
157458 [christophe.p] I was trying to marshal some objects, however some of these objects
+ 157508 [decoux@mo lo] Perhaps best to use marshal_dump/marshal_load
| 157549 [vjoel@pa h. ] That's a good suggestion. The marshal_dump/marshal_load pair can be very
+ 157568 [Ara.T.Howard] for some reason the mailing list seemed to have eaten my post about this so
  157797 [christophe.p] Guy and Joel:  Thank you for your helpful comments, this was exactly
  157908 [christophe.p] Concerning tracking references.
  158501 [vjoel@pa h. ] class Node

Re: swiggery
157463 [steven.jenki] I have to head out to run some errands, but here are some quick hints.
157465 [martindemell] Thanks for the reply, Steve, and particularly for that bit - I hadn't
157466 [gfb@to es ft] SWIG is especially good for a small task as you can get it done in no
157468 [steven.jenki] SWIG is good for a small task if you know SWIG. I use %rename and
+ 157469 [zenlinux@gm ] ...
+ 157488 [martindemell] Did it by hand in the end - didn't take long at all (though longer than

MD5 function
157467 [sandhya1205@] ...
+ 157471 [1337p337@gm ] require 'digest/md5'
+ 157472 [kballard@gm ] require 'digest/md5'
  157479 [hobe@gm il c] Don't use the digest/* modules.  They're slower than the openssl ones
  157505 [chneukirchen] However, note that not everyone has OpenSSL installed (mostly due to

Mixin of class methods?
157470 [mroth@ne si ] I'm a little bit new to the wonderful world of ruby and have a small
+ 157473 [kballard@gm ] module M
| 157477 [mroth@ne si ] Thank you very much.
+ 157475 [jeremy@bi sw] module M
| 157478 [mroth@ne si ] This looks very nice. Thank you!
+ 157480 [Ara.T.Howard] module M
  + 157524 [michelemende] class Module
  | 157529 [sean.ohalpin] This is fine if you want to add the foobar method to ~all~ classes and
  + 157594 [michelemende] Why the "other" return (see question mark above)? It seems to work