199076-383884

198810-202106 subjects 199382-201143

Blocking read after select
199076 [gwik@gw kz n] I've some trouble reading an IO after a select
+ 199081 [gwik@gw kz n] Could it by related with the fact that require use openssl stdlib
+ 199085 [ara.t.howard] you are calling IO#read, which reads till eof.  try something like
  199086 [gwik@gw kz n] I've already tried that with different values. I also tried with IO#gets
  199087 [gwik@gw kz n] Here is the full code.
  + 199090 [garbagecat10] ...
  | 199091 [gwik@gw kz n] I will look at this but I would like to know why this isn't working.
  + 199092 [ara.t.howard] thread start -609397948/-609397928/-609398078
    199097 [gwik@gw kz n] It actually do work. I don't know why it wasn't i've tried with gets
    + 199103 [cdc@cy he s.] =20
    | 199113 [gwik@gw kz n] iCal require http
    | 199132 [aaron_patter] Give stunnel ( http://www.stunnel.org/ ) a try.  It does what you are
    | 199137 [gwik@gw kz n] Seems to be. If I've seen that sooner I may not have start this program
    + 199123 [ara.t.howard] ipv6?  dns issues?  other than that i dunno - it's fast on my machine.
      199133 [gwik@gw kz n] I'll check
      199134 [gwik@gw kz n] I think I've found a part of the problem.

Regex Comparison Causing Massive Memory Usage
199099 [GENIE@pr di ] Has anyone run into a problem where a regex comparison against a very
+ 199106 [fxn@ha hr f.] Some regexps explode because of a mixture of alternations,
| 199111 [GENIE@pr di ] "My" Regex is not actually mine.  It's in Ruby's SOAP Implementation.
| 199114 [fxn@ha hr f.] Yeah, looks potentially problematic at first sight.
| + 199115 [fxn@ha hr f.] That should be "in each single match", meaning a successful match of
| + 199116 [GENIE@pr di ] Yup.  I figured it was something in the "has to store something at each
| + 199827 [florgro@gm i] I think in this case you can get away by using (?>...) instead of
+ 199107 [jp@je fp it ] I recently wondered about this situation.  My strings were approx one

Large uid's with Etc.getpwnam
199102 [mcgoverp@la ] I beleve there is a bug in Etc.getpwnam.  On our OS X server running 10.4 with ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] we use AD for user management.
199131 [nobu@ru y- a] Does this help?
199136 [nobu@ru y- a] Sorry, the patch for extconf.rb was wrong.
199188 [matz@ru y- a] Commit the fix please.

end_eval
199105 [bachase@gm i] Trying to teach myself some metaprogramming and have been sifting
+ 199109 [halostatue@g] module_eval <<-EOS
+ 199110 [mcgoverp@la ] it's the same as print << -HERE

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

RegEx search/replace over multiple files
199146 [another.prod] Hoping I might be able to get some help on a regular expression
199187 [Nuralanur@ao] ...
199190 [Nuralanur@ao] ...

extenion problems :(
199150 [bailey.d.r@g] I started to write a  vector extension to ruby, as a way to get familiar
+ 199202 [phasis68@ho ] static VALUE V3Alloc(VALUE klass)
+ 199212 [nobu@ru y- a] Vector3 *v = ALLOC(Vector3);

[SOLUTION] [QUIZ] pp Pascal (#84)
199151 [email55555@g] require 'enumerator'

ActiveRecord outside rails
199152 [lokean.darke] I am making web application, not based on ROR, but using ActiveRecord
199168 [leslieviljoe] There are some good sites on this, and it's pretty easy.
199216 [mtrier@gm il] Also, check out Chad Fowler's excellent book "Rails Recipes". It's

Fwd: Please Forward: Ruby Quiz Submission
199163 [james@gr yp ] ...

Where is HTML::XMLParser ?
199170 [Eric.Armstro] I've seen it mentioned as maybe being in
199220 [aaron_patter] Mechanize uses HTML::XMLParser to parse HTML.
+ 199329 [Eric.Armstro] Thanks much, Aaron.
+ 199331 [Eric.Armstro] The online documents don't even mention the

Fwd: Please Forward: Ruby Quiz Submission
199177 [james@gr yp ] ...

Re: pp Pascal (#84) [SOLUTION]
199182 [miken700@ya ] # Pascal's Triangle (#84)
199281 [martin@sn wp] This with the zeros is what I did in my first solution; however, I

Quick quesiton abt an array of characters..
199192 [jbresnik@gm ] This seems like it'd be obvious but haven't had any luck with it..
+ 199193 [collinsj@se ] Same...
+ 199195 [TimHunter@nc] irb(main):006:0> r = []

Diagnosing Ruby seg faults
199201 [pollak@gm il] ...
199203 [drbrain@se m] Compile ruby with -g and run under gdb.

eruby binaries for mswin32
199208 [parakin@ro e] Could anyone help me find a mswin32 binary of eruby?  I must develop on
+ 199227 [shugotenshi@] I don't understand why you can't use ERB. It may be that there are no
| 199351 [parakin@ro e] Matthew, thanks for your response.  One of the main reasons I don't
+ 199361 [wilsonb@gm i] I just built this using the free version of Visual C 2k3.
  + 199369 [parakin@ro e] Woo-hoo!!!  Thank you, thank you, thank you.  It works ... including my
  + 383884 [gamh03122002] Thanks a lot, i was searching a binary for eruby, and i was sure to have

Win32 Extension Issues Wanted!
199211 [halostatue@g] Everyone. I had a conversation with folks from Microsoft today about
+ 199213 [billk@ct .c ] I'm not sure if this is the sort of information you're looking
| 199215 [halostatue@g] Not specifically. However, part of what I really want to try to get
| + 199218 [ara.t.howard] imho microsoft would be __extremely__ hard pressed to deliver here: the issue
| + 199248 [ml-ruby@th p] I'm not sure this is possible. This has come up quite often in the Perl
|   199257 [halostatue@g] I understand this. However, I spent 45 minutes on the phone with the
+ 199255 [djberg96@gm ] The only build issues I've had relate to nmake.  It doesn't seem to be
  + 199258 [halostatue@g] This may actually be a problem with the Makefile for bdb or pl-ruby,
  + 199260 [phasis68@ho ] Do you want to find
    199266 [Daniel.Berge] That's the one, thanks!
    199271 [SimonKroeger] please, can we have that in readme.ext ?

[Solution] [QUIZ] pp Pascal (#84)
199221 [bpf@me ia mi] # Great list. This is my first solution submission.

Method to check contents of a window
199222 [arvindhr@my ] I am using Win32OLE to use sendkeys method in ruby to automate a desktop

string manipulation
199223 [msivakumar@b] How to add "-" between the numbers
+ 199229 [alex@bl ck e] irb(main):001:0> str = "123456789123456789"
| + 199232 [ben@ia u. et] That's awesome! But doesn't guarantee 2 digits at the start (who knows what
| | 199243 [pbattley@gm ] str.gsub(/(?:^\d{2}|\d{4}(?=.))/, '\0-')
| | 199247 [ben@ia u. et] Although it's derivative, if you sacrifice a little precision (bad inputs
| + 199355 [jp@je fp it ] I really like Alex's solution to this.  As a newbie, I always attempt
|   + 199357 [phurley@gm i] Try String#each_byte and then .chr the numeric byte value.
|   | 199374 [jp@je fp it ] no sign of string#insert there
|   | + 199380 [M.B.Smillie@] rubycentral seems to be using the 1.6 versions of the documentation
|   | + 199397 [phurley@gm i] Always try ri.
|   + 199370 [ben@ia u. et] I've not been programming ruby for long, so these nasty oneliners amuse me
+ 199372 [logancapaldo] require 'enumerator'
+ 199419 [martialis@bi] irb(main):001:0>  s = 123456789123456789.to_s
  199466 [Rob@Ag le on] building on the ActionPack helper number_with_delimiters

Iconv and incompatible encodings
199226 [alex@bl ck e] All this talk of Unicode handling has brought up a problem I run into
199233 [pbattley@gm ] Yes, there is. Add //IGNORE to the destination encoding to ignoreunavailable characters, or //TRANSLIT to transliterate them intocombinations of ASCII characters (e.g. `e for ).
+ 199236 [alex@bl ck e] Ooh, that's nice.  Thanks for that.  I guess it's wishful thinking to
| 199242 [pbattley@gm ] #!/usr/bin/env rubby$KCODE = 'u'require 'unicode'
| 199249 [alex@bl ck e] Hah!  That's fantastic :-)
+ 201092 [dan-ml@da 42] Can anyone else get this to work? Instead of "caff`e" I just get "caff?"
  201100 [pbattley@gm ] What's your platform?
  201115 [dan-ml@da 42] ubuntu breezy with ruby 1.8.4
  317570 [ruby@gm il c] I have also a problem with iconv. I'm under linux (configured with utf-8
  317572 [james@gr yp ] Try adding the -KU switch to Ruby, to put it in UTF-8 mode.
  317578 [ruby@gm il c] $ ruby -KU -e "require 'iconv'; puts
  319309 [ruby@gm il c] I was going crazy with this problem. I searched a lot and found some
  319356 [nobu@ru y- a] GNU libiconv seems to need the locale set.
  338275 [ ono@ja a. l] - locale.c -------------------------------------------
  338577 [nobu@ru y- a] First of all, option after // is GNU iconv local extension.
  338586 [ ono@ja a. l] Nobuyoshi,
  338594 [nobu@ru y- a] It affects library functions, such as printf(), and can cause
  338598 [ ono@ja a. l] Of course, but FileUtils.rm_rf '/' can do harm as well, but it is still

newbie doesn't understand why's example
199253 [bitdoger2@ya] in why's poignant guide to ruby...
+ 199256 [decoux@mo lo] #collect return an Array : this mean that ruby will call Array#join rather
| 199262 [bitdoger2@ya] ....your one-liner below is even more confusing for this newbie...i
| + 199263 [decoux@mo lo] Well write it like this
| + 199267 [marcmigge@go] ...
|   + 199268 [helge.elvik@] This one got me a bit also at first, but it's like others have said.
|   + 199269 [bitdoger2@ya] all of you, have all been some help here...but i'm still confused and
|     + 199274 [decoux@mo lo] Well, here a recursive function
|     | 199275 [semmons99@gm] ...
|     + 199276 [marcmigge@go] ...
+ 199265 [its.sec@gm .] collect returns an Array, as has been said.
+ 199278 [phurley@gm i] I am probably "old school," but when learning new things -- seeing is
  199293 [bitdoger2@ya] thanx patrick...i guess i'm 'old school'....dave
  199352 [botp@de mo t] # all of you, have all been some help here...but i'm still confused and

[ANN] id3lib-ruby 0.4.0 (Unicode fixes)
199264 [robin@ni or ] Release 0.4.0 of id3lib-ruby fixes problems with reading Unicode frames.

European Rubyists
199279 [halostatue@g] As I've detailed in my blog, I am going to Europe on vacation in the
199301 [aidy.rutter@] there is an active London ruby_user_group.

RedLetter Ruby Journal
199282 [pat.eyler@gm] Has anyone who subscribed to the RedLetter gotten their
+ 199294 [seanacarley@] ...
| 199300 [aidy.rutter@] Sam told me that there were not enough writers for the Ruby journal but
+ 199296 [pat.eyler@gm] hmm, http://redletter.therubyjournal.com/ still exists, I'm not
+ 200330 [seanacarley@] ...
  200385 [steve@wa ts ] Did you do anything special?  I've still got jack.
  200430 [seanacarley@] ...
  200457 [steve@wa ts ] It must have helped because I've seen nothing of my money.  And, I
  200460 [steve@wa ts ] Apologies to whoever Sam Flywheel is.. the PayPal payments for the vapor

Speaking of eql? (was: Ruby and Java equality usage)
199283 [martin@sn wp] Note something that's peripherally related to == and eql? is the
199292 [Stephen.L.Mo] I would reword that slightly.  You should override hash if you eql?.
199303 [martin@sn wp] def eql?(other)
199306 [martin@sn wp] Never mind.  I was misled by the html ruby manual on my system which

how to wrap methods of WIN32OLE objects
199298 [fxn@ha hr f.] WIN32OLE.new('InternetExplorer.Application')
+ 199302 [jgbailey@gm ] ...
| 199335 [fxn@ha hr f.] Oh great! I will base the project on this instead of using the raw
+ 199332 [bpettichord@] Navigate is not a method. Instead it is handled by method_missing which
  199334 [fxn@ha hr f.] Ah, thank you, now I see how it works.

Define External Superclass in a extension
199304 [ceaserlarry@] I'm trying to learn how to create a ruby extension. I've read the
+ 199311 [tim.pease@gm] This has worked for me in the past ...
+ 199313 [logancapaldo] See rb_const_get. It'll be something like

Re: pp Pascal (#84)
199305 [miken700@ya ] I like that solution. I was thinking that I wanted something like this
199307 [matthew.moss] I don't think people are examining the memory issue because of this
199337 [martin@sn wp] I'm now tempted to /really/ go the opposite route, and make the
199345 [matthew.moss] OMG WTF BBQ!

Rake tasks for Trac?
199314 [james.britt@] Before I reinvent too many wheels, has anyone cooked up, or know about,
+ 199320 [mgreenly@gm ] I haven't but I'm curious?
| 199346 [james.britt@] Adding tickets, for one thing.
+ 199325 [jim@we ri hh] Posted via http://www.ruby-forum.com/.
| 199338 [james.britt@] Cool.
+ 199924 [careo@fa tm ] I've worked with tying a Rails app to Trac in a number of ways,
  199925 [james.britt@] I looked at the Trac XML-RPC a bit, and decided against trying to

gem update problem with mysql
199315 [snacktime@gm] Every time I run gem update, it prompts me to install mysql.  Even

URI::InvalidURIError when using curly brackets
199316 [richardleona] I've been experimenting using open-uri to retrieve HTML from various
+ 199319 [ara.t.howard] irb(main):001:0> URI.parse(URI.encode("http://www.google.co.uk/search?q={3F2504E0-4F89-11D3-9A-0C-03-05-E8-2C-33-01}"))
| 199321 [ara.t.howard] irb(main):002:0> f = open uri
| 199324 [richardleona] If you try that after passing it to URI.encode then the HTML I download
+ 199330 [james.britt@] Browsers lie.

[ANN] na_str-0.0.0 : combining narray with mmap for persistant numerical data
199317 [ara.t.howard] NAME
+ 199426 [tim.pease@gm] Ara, for the uninitiated among us, could you please explain what
| 199527 [matz@ru y- a] rb_str_new4() creates a new string that shares internal memory region
+ 199666 [vjoel@pa h. ] This is very cool, but won't the name be confusing?
  + 199667 [ara.t.howard] i open to suggestion - ideas?  this first one was just a whack at it anyhow -
  + 199668 [ara.t.howard] maybe na_map?
    199808 [chneukirchen] What about ActiveMMappedNArray?  *scnr*.
    199823 [ara.t.howard] heh.

[ANN] RubyScript2Exe 0.4.3
199322 [erikveen@dd ] I just released RubyScript2Exe 0.4.3.

gems.rubyforge.org/yaml corrupt?
199341 [jsn.s.rubix.] i sent this query to rubygems-developers@rubyforge.org, but now that i
199344 [jsn.s.rubix.] it seems to work now - i don't really get what happenned.
+ 199348 [jperkins@sn ] I was getting a similar error earlier this afternoon and it seems to
+ 199353 [jim@we ri hh] The gem index is rebuilt periodically.  It could be that the build of

Ruby Reports 0.4.11
199343 [gregory.t.br] == Ruport 0.4.11 ==

REXML and Excel XML  :)
199350 [gibson_andre] I set myself the task of being able to parse a random xml file generated
199393 [hutch@re ur ] @doc.root.elements.each('ss:Worksheet') {}
+ 199413 [hutch@re ur ] [Sorry if this is a duplicate, something appears to have gone wrong
+ 199436 [gibson_andre] BAM! :) thanks, I never noticed that. Is that an XML standard thing? if
  199714 [hutch@re ur ] It is definitely not required by XML to do this. Though I never

Why Include and Require?
199358 [coolboarderg] ...
+ 199359 [sitharus@si ] require loads the files, include includes a module in to a class.
+ 199360 [joninsb@gm i] ...

Fwd: Please forward: Ruby Quiz submission (v2.0)
199363 [james@gr yp ] ...

QInputDialog syntax
199365 [gqs@we tn t.] I'm new to Ruby and QtRuby. I have used kdevelop to create my first Qt based
+ 199367 [znmeb@ce ma ] I highly recommend
+ 199385 [pgquiles@el ] @re = Qt::RegExp.new( "^[\\d\\w][-,&/\\d\\s\\w]*")
  199453 [gqs@we tn t.] Thanks for your code snippet but Richard Dale posted to me directly an example

Ruby Weekly News 19th - 25th June 2006
199379 [timsuth@ih g] Use the link above for a nicer version of this newsletter that's formatted

How to model Hibernate multi-table inheritance with ActiveRecord?
199381 [m-lists@br s] I have this "old" database mainly modeled for Hibernate. The java model
+ 199384 [peter.krantz] Depending on how your model looks, one idea would be to use RBatis
| 199514 [m-lists@br s] Heh, I'm not scared of SQL. I've actually used iBatis (I used to be a
+ 199386 [alex@bl ck e] I'd have SomeAsset and AnotherAsset instances each hold a delegate Asset
| + 199408 [m-lists@br s] If I do like that I have to search in several different tables when I
| | 199456 [pertl@gm .o ] Read about polymorphic associations...
| + 199440 [lukfugl@gm i] I agree with Alex here. While inheritance was what the tables were
|   + 199460 [pertl@gm .o ] delegation is powerful, no question...
|   | 199467 [lukfugl@gm i] Woah... no one said inheritance was bad. Indeed, inheritance is what
|   | 199491 [pertl@gm .o ] Why should that be the case?
|   | + 199497 [m-lists@br s] But still, even if you override the default name of the table you map to
|   | + 199500 [lukfugl@gm i] As Marcus mentioned, this lets you *change* the table for the model,
|   + 199506 [m-lists@br s] I sort of like this solution but I have one problem. Querying. Say I
|     199510 [lukfugl@gm i] This is a good point. I actually noticed it in your earlier reply to
+ 199390 [pit@ca it in] I don't know ActiveRecord, but are you allowed to add a (SQL) view to
+ 199516 [m-lists@br s] 1) implement method_missing in Asset and delegate to [other]Asset where
threads.html
top