241942-244107

241690-242949 subjects 242196-243432

instance_exec in 1.8
241942 [transfire@gm] How about backporting #instance_exec to 1.8 series.

how to run a command line command
241950 [nephish@gm i] lo there all
241962 [dale.martens] system( 'vim somefile' )
+ 241966 [nephish@gm i] cool enough, works great, thanks
| 242050 [wangdong2@gm] also %x(vim somefile)
| 242055 [perrin@ap th] I wonder how that one escaped my attention.  Thanks for mentioning it.
+ 242071 [ snk@gn .o g] I avoid the latter unless I need the output generated by the command. By

How can I make an FXRuby window stay open for a set amount of time?
241951 [tester.paul@] the desktop.  I would like to make this window go away after a set
241957 [lyle.johnson] Hope this helps,
241979 [tester.paul@] Thanks for the link and the mailing list reference, Lyle.  I didn't

XMLRPC Problem
241964 [dpodkuik@gm ] I am trying to run a small test case here and it times out on me all the
241973 [B.Candler@po] If one side is Linux, try
241984 [alex@bl ck e] $ cat xmlrpc_conversation.rb
242003 [dpodkuik@gm ] HELPFULL!?!! Helpful is not the word. You should be elevated to god-like
242092 [alex@bl ck e] Now now, don't be too hasty - I'm only channelling the wonder of Matz :-)

Safe override of Class#new?
241965 [transfire@gm] class Class
241974 [erikveen@gm ] (Not that I'm a Ruby expert, but anyway...)
242027 [transfire@gm] Ouch. Sigh, any way I seem to slice it, AOP in pure Ruby sucks.
+ 242075 [pit@ca it in] Welcome to the club :-(
+ 242189 [paolo.nusco.] OTOH, do you really want to AOP-ify all Ruby classes? Maybe you can
  242383 [transfire@gm] On Mar 6, 6:10 pm, "Paolo Nusco Perrotta"

how to set gtk2 combo box entry place
241970 [nephish@gm i] OK,
241972 [ruby-lang@da] widget.set_active(3)
241977 [nephish@gm i] cool, thanks very much !

Send fax in windows with ruby
241978 [florentino.a] I newbie in ruby there is any api for send fax by ruby , I already

how to check for group membership in windows?
241986 [donald.ball@] Apologies if this is too off-topic, but I can't think of where else to
+ 242006 [garbagecat10] ...
| 243273 [donald.ball@] Is Net::LDAP preferred over Ruby/LDAP? There are some AD-specific
| 243340 [garbagecat10] ...
+ 243339 [no.spam@pl a] In my experience, the logon call and the underlying LDAP request

garbage collection parameters and statistics
241990 [vinodkone@ya] i was wondering whether there is a mechanism in ruby where we can tune
242188 [drbrain@se m] Only by recompiling gc.c.

silly(?) request
241991 [kyleaschmitt] Does anyone know if it's possible to pipe the output of a command to a
241994 [vince.hetk@g] Try
241995 [kyleaschmitt] Nahh, there must be some slick way of doing this :)
+ 241996 [douglasyman@] I've always been a fan of the
| 241998 [shortcutter@] Why not
| 241999 [kyleaschmitt] Well, partially because the find command was an example.  I want to be
+ 241997 [vince.hetk@g] Sorry, I didn't realize you were probably not handling a huge amount
+ 242000 [shortcutter@] You could set up a DRb server in IRB and make "toruby" an DRb client
  242008 [kyleaschmitt] I think I chose a bad example, I don't want to just find things :) but
  + 242078 [shortcutter@] Yeah, you could use the port number (probably using Unix domain sockets)
  | 242119 [kyleaschmitt] I'm thinking multiple streams maybe useful.  Guess I know what I'm
  + 242086 [B.Candler@po] It seems to me that what you want is not to send the command's output

ruby (rails) and rjb: java File I/O
241992 [raf@te hn .c] I am trying to do file i/o with rails and rjb and can't figure out a

gem install mysql failure
242001 [paul_hammer@] I've been using Ruby with Watir for a few months now to scrape data
242004 [cmshea@gm il] Try one of the mswin32 options instead.  I think the rule is if you
242036 [paul_hammer@] I'm new to gem also.  Is the mswin32 option a command line option to
242039 [cmshea@gm il] Paul,
242184 [paul_hammer@] Thanks for your help.  This has gotten me further.  I selected 1. mysql

Error connecting to Oracle 10g w/ ActiveRecord
242009 [olsonas@gm i] All -
242035 [djberg96@gm ] It's not an AR issue. There's an issue with your Oracle client setup.
242116 [olsonas@gm i] Dan -

Re: [BUG?] $SAFE reset when proc called (1.8.4)
242011 [daniels@pr n] AFAIK, that's the desired behavior - the pr proc was created while

commandline gem
242012 [ara.t.howard] i think it was jim freeze that realased a gem for quickly building commandline
+ 242017 [vjoel@pa h. ] I've got that gem installed and the docs suggest that it includes the
| 242023 [ara.t.howard] thanks a bunch joel - that's great!
| 242064 [vjoel@pa h. ] Nah, not me. I'd consider using this or highline (do they even solve the
| + 242067 [ara.t.howard] of alib) or i would have used it.
| + 242131 [GGarramuno@a] They don't.  Highline is something unique.  It allows the easy
|   242165 [jim@fr ez .o] ...
+ 242022 [ben@bl yt in] You're not thinking of highline, are you?
| 242024 [ara.t.howard] nope, but thanks for reminding me of that! perfect for this talk...
+ 242177 [frdrch@gm il] I like it. :D

Regular expressions - Again
242013 [joaomiguel.p] I'm really bad with this things called regular expressions, so I'm
+ 242020 [gavin@re in ] irb(main):001:0> str = "This is <title>what I
+ 242279 [jenda@cp n. ] You generaly want to use a HTML parser ... provided that Wuby has one.
  + 242281 [joaomiguel.p] I ended with Hpricot, it's working fine with a few tests I made till
  + 242283 [ruby.hardwar] str = "This is <title>     what I\n\n\n\n    \n   want     </title> and no more"
  | 242285 [alex@bl ck e] str = "This is <title  >what I want</title> and no more"
  | 242299 [ruby.hardwar] Oh, that's quite different.
  + 242286 [alex@bl ck e] I wonder what the first hit from googling "ruby html parser" is?  Ah
    242311 [jenda@cp n. ] Hpricot? How come the name does not surprise me? It's a perfectly clear
    242314 [joaomiguel.p] Why isn't hpricot a good aproach? any other suggestions?
    242317 [jenda@cp n. ] No, it most likely is a good approach. It's just that the name is a bit
    242517 [twinwing@gm ] ...
    242520 [joaomiguel.p] can you tell me the whole story? what is the chunky bacon?
    242522 [alex@bl ck e] Your brain will never be the same again...

Marshal.dump/load limitations on size?
242015 [weyus@at .n ] All,
242018 [khaines@en g] RAM.  That's your only size limitation.
242069 [weyus@at .n ] Any chance that memcached (which uses Marshal) imposes any sort of size
242072 [ezmobius@gm ] Memecahed only imposes the size limitation you set in its config
242332 [weyus@at .n ] memcached does impose a limit of 1MB (actually just under 1MB) on the

Re: [ANN] Rassmalog 3.0.1 - small bugfix
242019 [ snk@gn .o g] There was a small bug in the 3.0.0 release. I've fixed it and uploaded a

Re: nifty one-liner to search ObjectSpace?
242025 [ben@bl yt in] Yup :)
+ 242029 [ben@bl yt in] ObjectSpace.each_object takes an optional argument that restricts it to
+ 242041 [ben@bl yt in] Good call, hadn't considered that.
+ 242044 [ben@bl yt in] I'm pretty sure it's the total number of objects inspected by the call
  242076 [pit@ca it in] require "enumerator"

[ANN] JRuby 0.9.8 released
242026 [Thomas.Enebo] The JRuby team is pleased to announce the release of JRuby 0.9.8.
242125 [charles.nutt] We are actively looking for folks with pure-Ruby Rails apps (i.e. no

[ANN] ActiveRecord-JDBC 0.2.3 Released
242057 [nicksieger@g] ActiveRecord-JDBC version 0.2.3 has been released!

[ANN] New "Ruby for Windows" Installer
242058 [mailinglists] this is the first release of an alternative "One Click Ruby Installer" for windows.
+ 242066 [vjoel@pa h. ] Can you briefly describe the effects of these patches?
| 242068 [mailinglists] There are calls to a function pointer (which can be
| 244107 [nobu@ru y- a] It should be replaced in init_stdhandle().  Doesn't it work?
+ 242245 [dave@bu t. d] Would you consider adding the SQLite DBMS itself (for one or both of the
| 242471 [mailinglists] They are both included. The extensions (.so files) are statically linked
| 242490 [dave@bu t. d] That's a pretty quick implementation of my suggestion, Lothar; are you
+ 243885 [nightphotos@] I've missed seeing your posts on Ruby-Talk for the last 6 months or

rbconfig (LoadError)
242061 [olsen.chris@] I am trying to install ruby on ubuntu Edgy, but this is the error that
242088 [B.Candler@po] I don't think you're trying to install Ruby - I think you're trying to
242105 [olsen.chris@] Ooops my mistake, it is rubygems that I am installing, but I have
+ 242107 [B.Candler@po] Yes, but make sure you have "ruby1.8-dev" (note the -dev) and "libruby1.8"
| + 242110 [olsen.chris@] It is the dev files that I have.  For some reason in the i486 dir the
| + 242114 [olsen.chris@] This is what is on my system at the moment.
|   242118 [B.Candler@po] Do you have "libruby1.8" installed?
|   242193 [olsen.chris@] Yip that was the problem, it thought it was installed, but some files
+ 242108 [olsen.chris@] Where is the rbconfig file supposed to be?

Re: New "Ruby for Windows" Installer
242063 [cmshea@gm il] On Mar 5, 9:06 pm, Lothar Scholz <mailingli...@scriptolutions.com>
242103 [sigzero@gm i] Why the GTK stuff and not wxRuby? I have been out of the loop for a
242143 [mailinglists] I haven't seen a real wxruby application now and the website still
242144 [djberg96@gm ] On Mar 5, 10:56 pm, Lothar Scholz <mailingli...@scriptolutions.com>

Yahoo!'s Ruby Developer Center
242065 [lojicdotcomN] "Welcome to the Ruby Developer Center
242096 [richard.conr] Brian it's not bad. Their HOWTO section is the most useful
242102 [james@gr yp ] Yeah, I wish they would have shown a little open-uri usage though.  I
242106 [richard.conr] I have had fun with the various Ruby HTTP & web automation libraries,

Re: [ANN] Rassmalog 3.1.0 - the mutant
242070 [ snk@gn .o g] Since nobody had yet obtained the 3.0.1 release, I secretly took
242759 [robbie.wilhe] oh i like offline generated pages. seems nice. regarding the search
242784 [ jupp@gm .d ] I do not know about you but when *I* browse the Web I either use a
+ 242793 [dangerwillro] JavaScript's return as Ajax is often little more than Flash without
| 242798 [robbie.wilhe] me hates animations. js or flash. skipskipskip.
+ 242797 [robbie.wilhe] so, you're no fun :)

Best way to determine the memory footprint of an object
242074 [weyus@at .n ] I'd like to be able to estimate how much memory a given object requires.
+ 242080 [shortcutter@] Marshal doesn't text - the output is binary.  But there's another
+ 242128 [ mfp@ac .o g] for normal objects the memory footprint is around 100 bytes plus 20 bytes per

Thread reading from a pipe blocks other threads, why?
242079 [andlind@gm i] I'm implementing an application where the main Ruby program spawns off
242124 [ara.t.howard] it can't be done using popen and threads with current ruby.  search the
242136 [andlind@gm i] Thanks for the reply!
242140 [mental@ry ia] I'm working on an implementation of actors for Ruby (as part of an omnibus concurrency library).  While it doesn't eliminate shared state from the language, in principle it makes it possible to avoid in many cases.

Ruby Weekly News 26th February - 4th March 2007
242089 [timsuth@ih g] Links are at http://www.rubyweeklynews.org/20070304.html.
242090 [hhausman@gm ] Yay! Let me be the first to say that it's great to see this again.
+ 242208 [urban@be to ] +1
| 242215 [perrin@ap th] += 1
| 242218 [peter@ru yr ] +5
+ 242357 [robert.dober] I wanted to say that before, so I did ;)
+ 242445 [timsuth@ih g] Thanks everyone for the feedback. It really helps with the motivation.

Re: How do I find a Windows process with a specific Window Title?
242091 [akalmykov@op] 1) Check that some file is being open or exists

can say the login window code how to check the loigin names
242093 [damod.php@gm] iam new one to ruby
242112 [halostatue@g] This mailing list is for general Ruby questions; your question is

pls help me am new  how can i set session and cow can i retrive from it
242095 [damod.php@gm] set the session
242111 [halostatue@g] This mailing list is for general Ruby questions; your question is

Are there texinfo documentations available?
242098 [nospam@sp mg] i would like to integrate the doc into emacs. Are texinfo docs of the
242099 [chris.lowis@] I had the idea to write a texinfo output style for rdoc. I haven't yet

mssqlclient returns nil for money, decimal, numeric fields
242101 [d_rems@ya oo] Only real and float field types return values as they should.
242145 [bauer.mail@g] The mssqlclient works well enough for a demo at this point, but is not

[ANN] rcairo 1.4.0
242104 [kou@co mi ng] I released rcairo 1.4.0 that supports cairo 1.4.0 release at

Require within a module: path question
242113 [olsonas@gm i] All -
242123 [B.Candler@po] No - they just have to be relative to any of the directories in $: (the load

remove duplicates of array of  object based on a attribute
242115 [senthilkumar] how to remove duplicates of an array of objects based a
+ 242120 [brabuhr@gm i] module Enumerable
+ 242122 [gavin@re in ] require 'set'
| 242126 [gavin@re in ] Huh...actually, the hash-based one seems faster than the Set-based
| 242173 [gavin@re in ] And faster still, by a hair, is a last-in approach. Upon reflection,
+ 242138 [pit@ca it in] senthil, please don't take this personally, your question is OK, but the
+ 242158 [erikveen@gm ] And here's the inevitable one-liner... :}
  242170 [gavin@re in ] Not that we're golfing, but I like this one better in terms of one-
  242172 [gavin@re in ] Hash[ *a.map{ |o| [ o[:id], o ] }.flatten ].values
  242191 [erikveen@gm ] Not bad...
  242192 [brabuhr@gm i] Hash[ *a.map{ |o| [ o[:id], o ] }.flatten ].values

Attributing an old time stamp for a new file.
242117 [pbailey@bn .] I need to read some data from some older files and put that info. into
242121 [ara.t.howard] touch(list, options = {})
+ 242127 [Rob@Ag le on] Unless there's a way to specify to FileUtils.touch the value of the
| 242135 [pbailey@bn .] Nope, I'm on Windows. Having a "touch" like that would certainly be
+ 242134 [pbailey@bn .] Thanks. ri verbage is rarely clear to me. These sample lines definitely
  242142 [B.Candler@po] Not really. The first creates an empty file called 'timestamp'; the second
  242147 [pbailey@bn .] Thanks, Brian! Well, no, "make" is meaningless in DOS or Windows,
  + 242148 [B.Candler@po] Time. (atime and mtime are last accessed time and last modified time,
  + 242149 [Rob@Ag le on] newfile = "#{oldfile}.txt"
  | 242154 [pbailey@bn .] Thank you all, gentlemen.
  + 242150 [wfroelich@db] The "t" is the accesstime and modified time you want to set the file to.
  + 242167 [shortcutter@] This general statement is wrong.  *You* might not have make on your

Library documenting tutorial
242132 [vshepelev@im] Is there something like tutorial on documenting my own libraries with RDoc?
242139 [tim.pease@gm] If you have a copy of the Ruby source code, Matz has a nice
242141 [vshepelev@im] Yeah, I understand.

RDOC: several related modules in several C files
242146 [vshepelev@im] I have a pretty large extension I want to document with RDoc.
243953 [max@ma id or] while creating documentation, I've concatenated all data in one file and
244008 [vshepelev@im] Max Lapshin
244010 [max@ma id or] These shortcuts seems to be one of the greatest problem. The only way to
244011 [vshepelev@im] Max Lapshin
244012 [max@ma id or] Yes, RDoc seems to be a rather confusable thing =)

Error when specifying proxy
242151 [behrangsa@gm] When I set the HTTP_PROXY env var to
242152 [stefan@ma li] It should be

Permission of files installed from rubygems
242153 [andre@di ir ] I have some system administration libraries that I would like to

Nuby ?: How to create XML request with Ruby
242157 [dmjmusser@gm] ...
+ 242160 [dan.stevens.] For creating XML, I suggest looking at REXML
+ 242161 [alex@bl ck e] Is this for a specific protocol, like SOAP or XMLRPC?  They both have
  242164 [dmjmusser@gm] ...
  242168 [richard.conr] Net/HTTP, REXML (or XmlSimple), open-uri are all libraries that allow you to

Parallel installations of 1.8 and gems
242166 [rick.denatal] I'm trying to get both ruby1.8.5 and ruby1.8.6 installed on the same

Automatic Benchmark Iterations
242176 [gavin@re in ] When performing a benchmark comparison of several techniques, this
+ 242180 [alex@bl ck e] def foo
+ 242185 [shortcutter@] This is one option - doesn't even require changing existing methods...
+ 242186 [tim.pease@gm] AdaptiveBenchmark.

Re: Metaprogramming and module question
242178 [gavin@re in ] On Mar 6, 2:24 pm, "Pedro Del Gallego" <pedro.delgall...@gmail.com>
+ 242181 [pedro.delgal] Good, i think i get it. Good example
+ 242182 [rick.denatal] And a good way to do this automatically and make including the

Soap4r
242187 [jack.boespfl] Not sure if this is a problem with the soap4r library, or the web

[OT] Komodo XPI Challenge
242190 [djberg96@gm ] All,

Paul Graham explains Ruby symbols
242195 [ramalho@gm i] "Symbols are effectively pointers to strings stored in a hash table.
242344 [rick.denatal] I find this a little too implementation-centric a description.
+ 242371 [bruparel@me ] I think of symbols is immutable strings that are useful only in
| + 242377 [ruby@an hr p] Symbols are what they are. If you need to think of them with some metaphor,
| | + 242386 [bruparel@me ] Nice.  Thanks.
| | + 242410 [robert.dober] Nice indeed  but for a simple mind as mine #3 just works well!
| | + 242573 [halostatue@g] I think that this is an awful article (and said as such in the
| + 242451 [perrin@ap th] "Immutable strings" doesn't work so well, since a string literal is
|   + 242453 [gwtmp01@ma .] This doesn't sound right to me.  String literals are part of the
|   | + 242476 [perrin@ap th] True -- I fudged the facts a little bit.  I should have done that
|   | + 242661 [twifkak@co c] Silly rabbit.
|   + 242468 [B.Candler@po] Well maybe that's technically right, in the sense that the source code
|     242477 [perrin@ap th] True -- which brings it back to the "strings are fleeting" thing.
+ 242450 [perrin@ap th] Unfortunately, there's no way to differentiate a string literal from a
| + 242452 [gwtmp01@ma .] I'm not sure that the problem you are describing has anything to do with
| | + 242479 [perrin@ap th] Umm . . . I don't see how any of that has anything to do with whether or
| | + 242543 [dblack@wo bl] I'll add yet another way of thinking about symbols, namely that they
| |   + 242572 [martindemell] I like to use this analogy too. An integer has a string
| |   + 242618 [rick.denatal] As Obi-wan Kenobi would say, "that's (only) true from a certain point of view."
| |     242634 [dblack@wo bl] Sure, though it's no more specifically a limitation of the
| + 242620 [rick.denatal] lets see
|   + 242622 [rick.denatal] With an itchy trigger finger.
|   + 242648 [perrin@ap th] . . . which brushes up against implementation.
+ 242632 [joswig@co po] Actually it's five in Common Lisp: Value, Function, Name, Property
  242720 [rick.denatal] On 3/8/07, joswig@corporate-world.lisp.de
  242745 [joswig@co po] Lisp 1.5 is not really in use anymore.
threads.html
top