157223-159757

157011-158254 subjects 157474-160654

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

^ Trapping TaskManager's kill process on win32
157224 [ggarra advan] Is there a way to trap the killing of a ruby windows process killed
157231 [djberg96 gma] 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 gma] 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 objmed] 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 objmed] 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 objmed] 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 objmed] Eric Mahurin <eric_mahurin@yahoo.com> writes
  157354 [scott alodar] None of the following is in any way a slight on what you have done - it
  157362 [snail objmed] 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 segm] ruby-core@ruby-lang.org and http://rubyforge.org/projects/ruby are
+ 157498 [shugo ruby-l] Your patch works fine, but I don't want to add the `tag' argument

^ [ANN] Rails Analyzer Tools 1.1.0
157243 [drbrain segm] 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 graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 157270 [dave burt.id] Solutions to the past quiz entitled English Numerals may be handy for this
| 157273 [james graypr] The quiz says that if you read a bit farther down.  ;)
| 157404 [dave burt.id] extra credit...
+ 157552 [zimba.tm gma] It's a bit out of topic, but I wanted to express an idea I had today and
  157556 [ef alum.mit.] =20

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

^ Blogs
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 gmai] * http://planetruby.0x42.net/
+ 157290 [james_b neur] 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] ...

^ unsubscribe
157291 [mkhan lextra] unsubscribe

^ Why is this not a syntax error?
157294 [cribbsj oakw] Switching back and forth between Python and Ruby bit me in the butt
+ 157295 [decoux moulo] You have just written
| 157297 [cribbsj oakw] Gotcha!
+ 157296 [matz ruby-la] It's seen as
+ 157482 [vjoel path.b] 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 gma] My piece of code is below, (consider Country is subclass ActiveReocrd::Base=
157343 [drbrain segm] Has your answer.
157398 [beeplove gma] Thanks, Eric.

^ 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 gmx] 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 gmai] As long as you have access to something the likes of sendmail (plenty of
| | + 157341 [patrick.fern] Wow, talk about being dense (me, not you). A simple spoofed email
| | | 157342 [joshknowles ] For future reference you can now add that old email address to your gmail
| | + 157345 [rhkramer gma] This is meant for the OP (or the guy that is trying to unsubscribe an old
| + 157368 [james_b neur] Have you tried spoofing the old address?  If there is a confirmation,
|   157386 [botp delmont] #Wow, talk about being dense (me, not you). A simple spoofed email
|   157441 [lukfugl gmai] Actually, yes. Let's hope no one gets any malicious ideas.
+ 157483 [vjoel path.b] So all those misdirected "unsubscribe" posts were in fact asking me
  + 157486 [twifkak comc] Correct. That is, unless he sends you "subscribe."
  + 157490 [martindemell] martin

^ A windows ole question - howto start an external application
157306 [Nuralanur ao] I would like to make Ruby run an external program - Maple - under Windows  XP,
157318 [snail objmed] Try the Win32 function CreateProcess() - of course via the appropriate
157319 [Nuralanur ao] Dear Stephen,
157507 [damphyr free] Does Maple have an OLE API?
157596 [Nuralanur ao] Dear "damphyr",
157647 [damphyr free] Well, it'S actually very simple - the complex part starts from when you
157718 [Nuralanur ao] Dear Damphyr,

^ net/ftp works manually, fails via cron
157320 [Daniel.Berge] Ruby 1.8.2
+ 157321 [cribbsj oakw] 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 pobox.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 yah] 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 frees] 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] Thought I would post here since the ruby dbi mailing list looks completely

^ 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 d10.ka] <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 yah] I want to put an icon saying "Powered by Ruby" on my web site. Where's the
+ 157379 [james_b neur] Luckily, very little in Ruby is "official".
+ 157936 [ jupp gmx.de] I use portable network graphics (PNG) file that is 87 pixel wide and
  158043 [phlip2005 gm] Google admitted it, but in general most servers will strip it, or

^ Re: Large scale sites? Anyone? Anyone?
157355 [none none.co] A very simple solution would be to just have the system output static html.
+ 157357 [ezra yakima-] Hey Sean-
| + 157360 [snacktime gm] Do you mean simultaneous users or actually completed requests per second?
| | 157364 [nospam nowhe] 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 none.co] You might want to look into things like gzip compression and maybe a site
| | | 157408 [bob.news gmx] 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] Depending on the structure of the site, maybe you could just start with a
| + 157397 [mvondung gma] The ad at the start that pretends to be a Windows system message is a
|   157399 [ezra yakima-] 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 gmai] Try this: str[0 ... str.index("<br />")]
| 157378 [twifkak comc] 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 neur] 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 neur] Have you tries brute-force regexp?
+ 157392 [phlipcpp yah] REXML is a DOM-style parser, not a transformer.
| 159757 [itsme213 hot] If you expect to be doing a variety of transformations, I would recommend
+ 157437 [m-lists bris] /Marcus
  157461 [mikeleonard ] Thanks for the replies. Actually, it was Fowler's article that piqued

^ Implementing method_missing in C and blocks
157383 [drjflam gmai] I'm implementing a CLR <-> Ruby bridge using Managed C++ and the Whidbey
157385 [nobu.nokada ] static VALUE
157425 [drjflam gmai] Thanks Nobu! That's exactly what I needed.

^ 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 neos] I was reading PickAxe and came across the very cool concept of "once"
+ 157402 [transfire gm] Maybe #memoize.
+ 157439 [james graypr] 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] I havent yet tried it out, but if this doesn't work, it's not too hard to

^ OpenClass
157401 [zenlinux gma] it seemed like a good idea at the time but honestly, hindsight being 20/20 =
+ 157403 [transfire gm] An interesting variation on OpenStruct. In my work with such things
+ 157409 [bob.news gmx] I don't see the advantange of this syntax over
  + 157411 [zenlinux gma] me either, that was sort of my point hindsight being 20/20, seemed like the
  | 157500 [transfire gm] Well, it just a differnt way to think about coding  --prototypes vs
  | 157501 [zenlinux gma] i have a friend who discovered a great use for it, let you know how it goes=
  + 157416 [dougkearns g] name = "Robert"
    157434 [bob.news gmx] => 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 gmx] 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

^ self.puts?
157420 [ dez mac.com] 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 mac.com] Ah - I knew it was semantics! Thanks for your explanation. It makes
157433 [bob.news gmx] 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 d10.ka] You're not on your own worrying about assumptions ;)

^ anyone has basic site??
157429 [glenn.brutyn] hey,
157438 [james graypr] 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 infoethe] ...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] Dear Glenn,
| 157447 [glenn.brutyn] thanks
+ 157448 [bob.news gmx] pdf.Cell(100,h, @product.price.to_s , 0,1)
  157456 [twifkak comc] pdf.Cell(100,h, "#{@product.price}", 0,1)
  157459 [bob.news gmx] Although I agree to the rest of your posting this variant is inefficient if
  157464 [twifkak comc] 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 moulo] Perhaps best to use marshal_dump/marshal_load
| 157549 [vjoel path.b] 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 path.b] 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 tonesoft] 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 gma] ARG i'm a ruby pirate into swiggery and eye arrr bee.
+ 157488 [martindemell] Did it by hand in the end - didn't take long at all (though longer than

^ MD5 function
157467 [sandhya1205 ] Can anyone tell how to implement MD5 function(NOT algorithm) in Ruby.I just want to hex MD5 a string.It would be of great help.
+ 157471 [1337p337 gma] require 'digest/md5'
+ 157472 [kballard gma] require 'digest/md5'
  157479 [hobe gmail.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 nessie] I'm a little bit new to the wonderful world of ruby and have a small
+ 157473 [kballard gma] module M
| 157477 [mroth nessie] Thank you very much.
+ 157475 [jeremy bitsw] module M
| 157478 [mroth nessie] 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
threads.html
top