349721-350340 subjects 350210-372853

Regexp: getting the first found
349951 [ahmad.azizan] I'm having some problem comprehending the regexp for my current need.
349956 [ralphs@do 32] Ahmad,
350013 [ahmad.azizan] Thanks for the reply.

Help with this
349954 [nish.patel@h] I have a question to answer but can not find any solution for this
+ 349957 [theadmiral@g] Have a look at 'collect', it should help you out!
| 349960 [nish.patel@h] I am a complete novice at this so would it be this as the solution
| 349962 [marnen@ma ne] Why don't you try it and find out?
+ 349959 [marnen@ma ne] This is obviously a homework problem.  You will learn more if you do not
| + 349963 [nish.patel@h] Yes it is homework problem but I have tryed to find this solution but I
| | 349966 [nish.patel@h] I am completely stuck I dont know what to do...
| + 349969 [usenet-nospa] Agreed.
+ 349970 [usenet-nospa] Okay.

[ANN] xcapclient 1.1 released
349965 [ibc@al ax ne] xcapclient 1.1 has been released

Berkeley DB BDB Install on Windows
349987 [davidhooey@g] I've been scripting in Ruby (and Rails) for about two years now, but
350026 [luislavena@g] That will not work.
350104 [davidhooey@g] Thanks  a lot Luis! Giving it a try. Will post results.
350135 [davidhooey@g] Still working on it. I have installed Ruby 1.9.1 using the ZIP as
350140 [luislavena@g] Well, no, you will not reach progress because you're using VC6-build
350161 [davidhooey@g] Thanks for your help Luis!
350193 [luislavena@g] Can you tell us the content of "lib"?
350213 [davidhooey@g] Thanks Luis,
+ 350215 [davidhooey@g] software/products/berkeley-db/db/ind...
| 350238 [luislavena@g] er/bdb/blob/master/README.textile
+ 350241 [luislavena@g] software/products/berkeley-db/db/ind...
  350256 [davidhooey@g] he
  358709 [schneider.ho] I have exactly the same problem!!! ... Is there any solution yet??? ...
  358710 [luislavena@g] As I said before, please reach out to the author, I'm not familiarized

TypeError: nil is not a symbol error when running tests
349990 [arti.p.singh] Has anyone seen this error before? I have added the method that gives
349991 [b.candler@po] Post the exact exception report using copy-paste, because it will
349993 [arti.p.singh] You were right, I did not assign a value to the global variable

Good or best way to allocate a large array
350007 [ralphs@do 32] I will want/need to create an array of approximately 300K rows and 20
+ 350012 [aldric@tr vo] I don't know when arrays stop being as performant as one could wish. For
+ 350017 [marnen@ma ne] Dude, you want a database.  There's little reason in any language to
| 350019 [ralphs@do 32] Marnen,
| 350023 [marnen@ma ne] Right.  And as far as I know, it will do that when the object goes out
| 350029 [ralphs@do 32] Marnen,
| 350042 [flori@pi g. ] Except that uses aren't counted in Ruby. Ruby has a mark-and-sweep
| 350045 [ralphs@do 32] Florian,
| 350047 [rick.denatal] As Florian said, MRI ruby uses a mark-sweep GC algorithm,  when it
| + 350048 [ralphs@do 32] Rick,
| | + 350053 [flo@an er gr] You can manually kickstart the GC by using GC.start.
| | | 350068 [ralphs@do 32] Florian,
| | | 350078 [flo@an er gr] Ralph,
| | | + 350084 [shortcutter@] Right.  Only the single BigNum and the Array need to be allocated.
| | | | 350094 [flo@an er gr] It was not meant as a complaint, more as an explanation why the behavior
| | | + 350092 [ralphs@do 32] Florian,
| | |   350121 [devel@th -u ] What's about using C or C++ to allocate and deallocate the array? I do not
| | |   + 350124 [marnen@ma ne] Unnecessary.  Just use a database.
| | |   | 350134 [flo@an er gr] Why are you so insisting on a database? In contrast to your opinion,
| | |   | 350138 [marnen@ma ne] Because almost any array that large is better dealt with through a DB
| | |   + 350131 [flo@an er gr] On Nov 10, 2009, at 4:25 PM, Jonathan Schmidt-Domin=E9 - Developer =
| | |   | 350133 [devel@th -u ] I thaught about allocation and deallocation from C. And I think there you have
| | |   + 350136 [ralphs@do 32] Jonathan,
| | + 350060 [marnen@ma ne] Perhaps.  But there's no reason to do this.  Use a database.  Even a
| |   354579 [albertschlef] What a great idea. I suggest we email all the image-processing
| + 350258 [overlord@gm ] In my understanding these are orthogonal concepts. How to find out what
|   350260 [rick.denatal] No, a copying GC doesn't substitute for the sweep phase of mark and sweep.
+ 350036 [shortcutter@] So we are talking about 300,000 * 20 * 8 ~ 48MB which does not sound too
| 350044 [ralphs@do 32] Robert,
| 350069 [shortcutter@] Please do not top post.
| 350071 [ralphs@do 32] Robert,
| 350129 [justincollin] Check the size of an integer.
| 350137 [ralphs@do 32] Justin,
+ 350072 [b.candler@po] If you want to hold this all in RAM, then I think your most
+ 350279 [vikkous@gm i] I'm surprised that no-one has yet mentioned narray; I'd think it's the
  + 350336 [shortcutter@] Actually everybody waited for you to finally come up with your reply.
  | 350382 [ralphs@do 32] I am the OP and there really isn't much more to the problem.
  | 354560 [b.candler@po] You are almost certainly wrong about this. Ruby Hash implementation is
  + 350360 [ralphs@do 32] Could someone point me at documentation on narray, please.
    + 350364 [marnen@ma ne] You could have found it in about 5 seconds with Google.  Please try that
    | 350385 [ralphs@do 32] I am new to Ruby.
    | 350396 [marnen@ma ne] But not to Google, surely.
    | 354557 [jtprince@gm ] Some of the docs do make it look this way, but I think most who have
    + 350378 [vikkous@gm i] No 8-byte integers... maybe you could use two parallel arrays, one for
      350383 [overlord@gm ] Or look into the source, and eventually patch it. It might already

errors when using sqlite3's query and prepare methods
350016 [robert.citek] I'm trying to prepare a sql statement to send to sqlite3 via ruby and
350051 [zyzygy@te st] Look carefully at the error messages.  In the case that works you are
350079 [robert.citek] irb(main):014:0* db.execute( "select * from foobar" ) do |row|

FXRuby table and color questions
350025 [leslieviljoe] Does the Fox toolkit support partial transparency? None of the
350039 [lyle@ly ej h] Not as far as I know.
350171 [leslieviljoe] Ok, thanks!

Readout and Edit Cookies
350028 [chhab@gm .d ] First I send a Form with Net::HTTP.post_form.
350043 [chhab@gm .d ] I found the solution! Mechanize

Understanding Threads...
350030 [mattw922@gm ] I am writing an app that retrieves multiple web pages in one method
350031 [jameskilton@] Thread#join simply says "Wait here until this thread has finished
350033 [nyarly@gm il] I completely agree with Jason's diagnosis.  I'd like to make two
350041 [shortcutter@] Even better: we have Thread.value.  If you join only from a single

wrong number of arguments in initialize
350032 [arti.p.singh] I tried to initalize my methods and I get an error
+ 350040 [anthony.metc] You define intialize to ask for 3 arguments, you don't give any of them
+ 350050 [kcy5b@ya oo ] ...
+ 350076 [b.candler@po] Open that file in a text editor, go to line 59, and you'll see

wxRuby - tabular data with extra widgets
350037 [anthony.metc] I am needing to display a table of data.

File size vs. Directory size problem
350064 [T.w.oliver@g] Got a bit of a problem I dont know how to go about.
350065 [sven.schott@] puts File.size(i) unless File.directory?(i)
350066 [t.w.oliver@g] I completely missed the directory method haha. Thank you sir.
350169 [shortcutter@] old_array = Dir["#{old}/**/*"]

Programmers motivation: academic research
350067 [mark.pith@st] Dear Ruby community,
350085 [james@gr ys ] This questionnaire is very repetitive.  Questions like "Will working on =
+ 350116 [shortcutter@] I haven't looked at the survey but it is common practice to state the
| 350139 [tomcloyd@co ] I want to offer agreement with Robert's comment. As someone with formal
+ 350162 [mark.pith@st] Thanks James for taking the time to participate in our research. And
  350172 [aldric@tr vo] Remember that you're talking to people who hate repeating themselves...
  + 350202 [marnen@ma ne] Not only that, but we hate repeating ourselves. :D
  | 350218 [josh.cheek@g] Sure there may be merit to similar questions when quizzing some groups of
  + 350245 [mark.pith@st] Ah I'm sorry, I didn't know you hated others repeating themselves as

[ANN] RubyInstaller Release Candidate 1 - 1.8 and 1.9 releases  signed!
350073 [luislavena@g] I'm pleased to announce the first Release Candidate of the latest

(Installed Ruby 1.9.1) can't get gem working
350074 [michelle@mi ] RUBY VERSION: ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]
350077 [reachme@ch r] I would recommend using the new RubyInstaller instead of the old mswin32
350080 [michelle@mi ] Thanks a lot Charles, works perfectly. :-)

Re: called_from 0.1.0 released
350100 [rogerpack200] Also fails on 1.9.  I know there was a commit recently to allow
350102 [transfire@gm] Have you submitted this to Ruby core?

Installing Rails:  MySQL issue?
350106 [btickler@ya ] The step for MySQL
+ 350107 [btickler@ya ] P.S. This configuration installs Ruby, Rails, MySQL, Mongrel, Git, and
| 350111 [howardrobert] No, it is pretty difficult to start an apocalyptic flame war with this
| + 350112 [aldric@tr vo] There was recently a conversation about this; the gist of it was that
| + 350113 [marnen@ma ne] Not quite.  SQLite is the default for Rails, but only because it makes
| + 350122 [btickler@ya ] Thanks, I will post this there, too.
|   + 350125 [johnsheahan@] I updated gems to the latest version and all my ruby scripts that use
|   + 350132 [luislavena@g] Contrary to common approaches. MySQL 5.0.x is pretty stable (5.0.83 is
+ 350117 [luislavena@g] Please now use official gems.rubyforge.org without specifying

Changing screen resolution through Ruby
350109 [ankur.s20@gm] Thanks in advance to all the helpers.
+ 350114 [marnen@ma ne] Do you need to change screen resolution, or simply window size?
+ 350115 [sutniuq@gm .] For Windows, there's a WinAPI function I think, but I don't know about
  350165 [ankur.s20@gm] Yes I need to change screen resolution itself like from 1280 X 800 to
  350170 [sutniuq@gm .] I've searched through Google and the Windows API, and found that this
  350174 [ankur.s20@gm] Thanks Marvin,

[ANN] Prawn 0.6 Released
350110 [gregory.t.br] [This announcement is about Prawn, a pure ruby PDF generation library

[ANN] Localmemcache-0.4.4: Bugfixes for OS X and Autorepair
350141 [schween@sn f] Version 0.4.4 brings fixes for coredumps on OS X and bugs in the

Calling a subprocess with specific arguments and capturing its  output?
350142 [quinxex@gm i] could help with a problem I've never managed to solve. I'm writing a
+ 350143 [gabriel.horn] def backtick(cmd,*args)
| 350145 [quinxex@gm i] Thanks! That's a very nice solution, and more concise than I would
+ 350144 [billk@ct .c ] One possibility might be to let Shellwords handle the
| 350146 [quinxex@gm i] Thanks, Bill. I'm glad to hear that the standard library will be
+ 350160 [tony@me io .] Why is this any harder than?
  350168 [quinxex@gm i] That comes a lot closer to working than I had expected ;)
  + 350183 [shortcutter@] If you are on 1.9, escaping is superfluous: you can pass an Array of
  + 350185 [james@gr ys ] what the system shell is? I'm not sure whether all unix shells have =

Roman Numerals (Arrgh!)
350147 [chngth3wrld@] I have a homework assignment where I have to convert an inputted integer
+ 350148 [esperantoca@] I'm not gonna give you the COMPLETE answer to your homework, but think
| 350154 [esperantoca@] I have to say Grennady's way is quite elegant; I didn't even think along
+ 350149 [Gennady.Byst] Well, considering that you at least started thinking on the problem and did=
+ 350150 [Rob@Ag le on] Well, as you might have guessed, most of us on the list don't want to
  350152 [Gennady.Byst] Why not that way? It works and it is short ;-)
  350156 [Rob@Ag le on] Not that it doesn't work, just that it might be easier/quicker to
  + 350157 [chngth3wrld@] Thanks guys.
  | 350178 [Rob@Ag le on] This opens up a great sidebar opportunity to talk about debugging as a
  + 350159 [Gennady.Byst] I respectfully disagree. inject() is a very powerful facility that allows q=
    350177 [Rob@Ag le on] Well, I won't argue the fact that inject is a powerful abstraction. I
    350187 [Gennady.Byst] Now you intrigued me ;-). So I am asking directly -- given the following $n=
    + 350188 [paul@po ly n] $numerals = [[1000, "M"], [900, "CM"], [500, "D"], [400, "CD"], [100,
    | + 350190 [Rob@Ag le on] Oh, sorry.  I meant "What Paul said"
    | | 350191 [paul@po ly n] ],
    | + 350192 [Gennady.Byst] , [5, "V"], [1, "I"]]
    |   350195 [paul@po ly n] Yes indeed, you can't get doubles of the 2 character strings, because
    |   350206 [eregontp@gm ] Well, being student as well, I'd love to study Ruby instead of this (****)
    |   350208 [Gennady.Byst] In case you have missed it from yesterday, a slightly modified original sol=
    |   350249 [eregontp@gm ] I didn't miss it at all, it's quite cool, but very not easy to find directly
    |   350559 [steve@st di ] I'm going to assume the assignment has long been completed, so here is
    + 350189 [Rob@Ag le on] [[1000, "M"], [900, "CM"], [500, "D"], [400, "CD"], [100, "C"], [90,

[ANN] upr - Upload Progress for Rack (initial release)
350151 [normalperson] upr is Rack middleware that allows browser-side upload progress

Is it a bug?exec "cd"
350153 [axgle@12 .c ] $ cat into.rb
+ 350155 [wiktor@za oc] 'cd' isn't actually a program. (typically; OS X seems to have it setup as a super obscure shell script)
| 350207 [eregontp@gm ] Ah ?
| 350209 [usenet-nospa] builtin `echo ${0##*/} | tr \[:upper:] \[:lower:]` ${1+"$@"}
+ 350212 [dancrumb@gm ] That may be the case under Leopard, but for many users of Linux, 'cd'
  350240 [sakuro@22 8c] See the last section of the document below to know why external 'cd' exists.
  + 350244 [usenet-nospa] That actually sort of makes sense.  Neat!
  + 350253 [shortcutter@] Also

Need a bit of help
350164 [uforacer@ho ] Hey guys im trying to get this to work but I can't for reason, can you
350194 [Gennady.Byst] Looks like we have another kid with the same homework. It is becoming prett=

Connection failure message  trying to run my ruby file
350166 [idealone5@ho] When I am trying to run an ruby automation script, i get

Need help to detect error
350167 [adrian@lo ot] I don't know what am I doing wrong, can anyone help me?
350235 [adrian@lo ot] Or anyone knows where can I contact some YAML guys to help me with this
350237 [nyarly@gm il] That's bizarre.  All that I can see that's different is because the failing
350267 [adrian@lo ot] Yeah, but I don't know where exactly should I report it. What is the
350612 [nyarly@gm il] the reference that's generated by #to_yaml fails if it comes earlier in the

Likes Michael Jordan? believed that you also like Air Jordans The  first anniversary for store:2pairs=$79.99 welcome to http://www.crocseshop.com  Eshop Eshop.
350179 [crocsjordan0] Likes Michael Jordan? believed that you also like Air Jordans The

The next generation
350182 [lxlx87@gm il] You wouldn=92t use a cell phone today with mid 90=92s technology. And you

[ANN] backtracer 0.5 -- get rid of ... 24 levels ... forever
350197 [rogerpack200] Pleased to announce the first public release of the backtracer gem (0.5)
+ 350200 [jordi@bu st ] ...
+ 350270 [rogerpack200] Thanks!

Active_Ldap Base Config Question
350198 [johnsheahan@] I haven't done much with polling AD in the past but I am now trying to
+ 350204 [sven.schott@] Haven't used that particular gem (I use ActiveDirectory myself) but it looks
| 350211 [johnsheahan@] Putting in the full object path renders the same error message, I'm
| 350217 [sven.schott@] Ah, my bad. For every complex problem there is a solution that is clear,
| 350219 [sven.schott@] Sorry I just assumed: are you running rails? That's what I was using it with
| + 350220 [johnsheahan@] Yes, I'm running this directly through ruby version 1.8.6.
| + 350222 [sven.schott@] I just installed and tried it and got the same thing. I read the docs and
|   350225 [johnsheahan@] unfortunately, that doesn't give me a tcp connection either....but
+ 350257 [kou@co mi ng] class Group < ActiveLdap::Base

Separate code space/sandbox?
350199 [patrik.sundb] I'm interested in figuring out a way to get a separate scope. I do not
+ 350201 [jordi@bu st ] ...
+ 350214 [billk@ct .c ] This isn't very pretty, but...
| 350254 [patrik.sundb] yeah, that doesn't quite fly for my purpose - i want an initialization
+ 350275 [vikkous@gm i] Here's a macro which seems to do the job. Comments follow.
  350276 [patrik.sundb] Awesome! I had not seen rubymacros before. I'll dig into this and try to
  350277 [vikkous@gm i] If you get stuck or can't understand something, don't hesitate to ask me.
  350280 [rogerpack200] Sweet I want to use macros.  How about one to support ++? :)
  350286 [vikkous@gm i] Hmm, I had thought that ruby's immutable numeric types meant this was

Rubular Rocks
350203 [transfire@gm] It made all the difference in the development of one of my most recent
350205 [djberg96@gm ] I second this motion. I've definitely used it for sanity checking. :)
350223 [richard.conr] +1
+ 350226 [wishdev@gm i] Not to hijack the thread or anything - but the Firefinder addon to firebug (
| 350236 [richard.conr] I appreciate the hijack. Now back to our scheduling program of unadulterated
+ 350239 [tim.pease@gm] recent
  350272 [ralphs@do 32] Is that Boulder Colorado?  If so ... is there a meetup or a website,
  350273 [tim.pease@gm] Indeed, it is Boulder, Colorado.=20