303151-346817

302934-304038 subjects 303363-314857

^ ruby-opengl gem uses ruby1.9, even from gem1.8
303151 [ninja slapha] This is on an Ubuntu Hardy system, on x86_64. Both Ruby 1.8 and 1.9 are=20
303152 [drbrain segm] head -1 `which rake`
303161 [ninja slapha] $ head -1 `which rake`
303230 [drbrain segm] They should have a different shebang line.  Re-run `gem install rake`
303237 [ninja slapha] I just did, and it has a 1.9 shebang. I'm pretty sure I tried this before.
303277 [drbrain segm] Then does `gem env` report 1.9 as the ruby version?

^ Should I Learn Ruby as a First Language?
303170 [mauriceroman] I realize this question has been previously asked in different boards,
+ 303176 [towb gmx.net] <ab0a1bc3-b23c-48b3-a721-2413e4140d33@j22g2000hsf.googlegroups.com>,
| + 303183 [mark mwilden] That is such good advice. Programming and cooking are two areas in
| | + 303222 [kyleaschmitt] Since nobody's posted it...
| | | + 303234 [mark mwilden] As someone who learned UCSD Pascal first, and then went on to
| | | | + 303251 [billk cts.co] Uhhhhhhhh....  From matz, two days ago on ruby-core: [16910]
| | | | | + 303261 [mark mwilden] If you're writing Ruby, as opposed to doing applications programming,
| | | | | + 303262 [TimHunter nc] +1. I read this quote from somebody smart: "C is the atmosphere in which
| | | | | | 303353 [mauriceroman] I will remember this information. Thank you.
| | | | | + 303351 [mauriceroman] Bill,
| | | | + 303335 [rick.denatal] And while learning Latin, might help some learn French up to a point,
| | | | | + 303341 [davebass mus] It's a question of whether you learn top-down, or bottom-up. Different
| | | | | | 303515 [mark mwilden] The trouble with bottom-up is that it will take you forever to reach
| | | | | | 303541 [davebass mus] But you never really understand what you're doing; you end up learning a
| | | | | | 303769 [lloyd 2live4] So true!  In the end, the one that understands more of what is going on
| | | | | | 304336 [mauriceroman] Lloyd,
| | | | | + 303355 [mauriceroman] Thank you for this post.
| | | | | + 303356 [kyleaschmitt] To the first point, I'd actually argue that learning the second
| | | | |   303387 [rick.denatal] I've got no argument with that, my argument is that your first
| | | | |   303403 [kyleaschmitt] Errr.  Lisp 1.5?  I'm going to guess then, you were learning this
| | | | |   303404 [rick.denatal] Early 70s.
| | | | + 303348 [mauriceroman] I agree, although I will devote some time to becoming acquainted with
| | | + 303238 [rubytraining] I *strongly* disagree with this opinion.  If the goal is to start
| | | | 303349 [mauriceroman] I agree. Thank you for your post.
| | | + 303243 [ninja slapha] And that's the point, really. Some say assembler. You say C. I say neither, or
| | | | 303350 [mauriceroman] David,
| | | | 303366 [ninja slapha] I never noticed. I use it as a mailing list, and it's also a newsgroup.
| | | | 303385 [mauriceroman] I was on the Win XP partition using FF (I dual boot and mostly use
| | | + 303333 [davebass mus] This is exactly why we chose C as the first language for electronic
| | | | + 303338 [rick.denatal] But, many don't seem to realize that the other languages are
| | | | + 303352 [mauriceroman] Thank you for your post. As I have mentioned, I believe I will study C
| | | |   303518 [phrexianreap] FWIW, I would suggest K&R to learn C. It seems to be the standard for
| | | + 303347 [mauriceroman] I see what is meant there.
| | + 303337 [mauriceroman] I actually cook a bit :)
| + 303328 [mauriceroman] Thank you for your reply.
+ 303177 [ninja slapha] Depends what you want to do, and how far you want to go.
| + 303206 [phrexianreap] Actually, TinyCC has a C interpreter that you can use to test code, so
| | 303342 [mauriceroman] Thank you for that info, that is good to know, as I have concluded
| + 303336 [mauriceroman] Thank you for your post.
|   303369 [ninja slapha] Still depends -- for example, if you just want to be able to contribute to the
|   + 303371 [shevegen lin] Woot, i love those questions :)
|   | + 303392 [mauriceroman] Thank you for your post . . .
|   | | 303410 [bbxx789_05ss] I was in the same position as you about a year ago--except I have
|   | | + 303415 [bbxx789_05ss] I just wanted to add that I started with C++ and Java.  Unless you plan
|   | | + 303424 [davebass mus] Hear hear. Clarity should win over compactness every time, IMHO. (Even
|   | | | + 303433 [lloyd 2live4] Well, I checked my pockets and found a surplus $0.02 and will toss it in
|   | | | + 303453 [mark mwilden] However, compactness can sometimes add to clarity, simply because you
|   | | + 303691 [ninja slapha] You obviously haven't seen a lot of Perl.
|   | + 303520 [phrexianreap] That goes for any OOP language. Procedural languages like C require more
|   |   303552 [rubytraining] On May 30, 10:10=A0am, forgottenwizard <phrexianrea...@hushmail.com>
|   + 303391 [mauriceroman] I see.
+ 303185 [davebass mus] Once upon a time I used to teach C as a first programming language. In
| 303339 [mauriceroman] Dave,
+ 303196 [ jupp gmx.de] Which programming language to start with is a question that precisely
+ 303203 [elizabethbar] I'm new to this as well. Here's a link to a resource that can maybe
| 303343 [mauriceroman] Thank you for the link! That is pretty interesting, and I believe it
| 303345 [srijayanth g] Ruby is a good first language to learn if you are really really young
| 303386 [mauriceroman] An interesting and helpful post, thank you. I did find a free online
+ 303214 [mkasick-rt c] I usually lump beginner programmers into one of two categories, (i) those
| + 303227 [rodrigo.berm] Excellent answer !
| + 303344 [mauriceroman] Thank you for this post.
+ 303553 [caduceass gm] That type of thing pops up pretty often on this group.
| 303603 [mauriceroman] Todd,
+ 304337 [mauriceroman] Very well, this discussion has played out so to speak, thus I have

^ Merge collections of objects
303174 [johnnybutler] I wonder if there is a quick way to do this.
+ 303184 [davebass mus] Put your employees into a single array.
| 303212 [sepp2k googl] => ["a", "b", "c"]
+ 303186 [aff28 delete] Try the "|" method of Array
| 303188 [shortcutter ] For efficient processing of large collections there's also Set and
+ 303187 [saji apcc21.] Is this what you are looking for?
+ 303233 [rubytraining] It's interesting that you used the word "collections" in your subject
+ 303331 [fox nscl.msu] Unless this is a toy project, it will be important to think about what
  303354 [johnnybutler] Yes ive figured that out.  Its proving a bit of pain especially with has
  303358 [shortcutter ] Here is one way with a slightly different setting: I used a Struct
  303393 [johnnybutler] Thats pretty nice, as you say the struct is pretty similar to the hash
  303408 [shortcutter ] Efficiency large depends on the sizes of collections involved.  Your

^ how to know if the window was closed in Firewatir
303180 [mario betwar] I would like to know how to see if the FireFox window was closed.

^ Antw: Download & use TK GUI application
303182 [Fleck schlei] That depends on the platform you' re using.

^ Gateway -> Mail
303191 [shortcutter ] All,
+ 303193 [shortcutter ] On 28 Mai, 16:12, "shortcut...@googlemail.com"
| 303200 [james graypr] In the past, I would experience periods where Ruby Talk would seem to
+ 303199 [james graypr] I also received it in my inbox (I'm on the mailing list).  The headers
| + 303244 [shortcutter ] Yes, that's correct.
| + 303248 [jgabrielygal] I have been experiencing many problems since last week. There are
|   + 303298 [jan.svitok g] I used to find Philip's messages in my spam folder, I guess because he
|   | 303457 [jgabrielygal] and
|   + 303685 [james graypr] Sorry for the delayed response.  I was on vacation.
+ 303201 [james graypr] Oh and thanks.  ;)

^ Mailing List Test
303192 [shortcutter ] is the list processor still alive?
+ 303198 [james graypr] Seems to be.  You sent this message to the mailing list, right?  I see
| + 303207 [phrexianreap] Looks like it works, since I received it here (via mailing list)
| + 303321 [calamitates ] It has happened several times lately that I receive messages from
+ 303226 [lists gregwi] I haven't received any messages to my email since May 26 2 PM PST. (48
  303232 [lists gregwi] oops. n/m. problem at this end.

^ Memory concerns wrt garbage collection etc
303195 [srijayanth g] I have a script which basically launches several threads, each of them
+ 318440 [rogerpack200] Theoretically as soon as you redefine doc you'll no longer have any
+ 318478 [shortcutter ] I doubt the usefulness of this.  Since Ruby uses green threads chances

^ unsubscribe
303197 [ddong4 gmail] unsubscribe

^ [ADV] New Beta of PickAxe3
303204 [dave pragpro] I've been thinking long and hard about the tutorial section of the
303211 [ryand-ruby z] How about you just push against nonsensical names like Base?
+ 303216 [dave pragpro] class Product
| 303225 [flo andersgr] Actually - to extend the example - i really like the way DataMapper
+ 303275 [cmdicely gma] ActiveRecord, though, is a module, and for good reason. The problem

^ [ANN] roby 0.7 Released
303205 [sylvain.joye] roby version 0.7 has been released!

^ Re: Learn to Program, by Chris Pine
303208 [hummerpj gma] Hey everyone I was having a slight problem with one of the examples in
303213 [eleanor game] You need to reorder your logic slightly so that bword is changed as

^ GServer send/receive limit
303209 [victor.reyes] Team,
303210 [eleanor game] I've never noticed a limit when I've been experimenting. Care to post
303229 [victor.reyes] Well, as I said earlier, I found these pieces of code in a website named
303294 [eleanor game] That would be me, and my cruddy code as well so I guess I'd better
303325 [victor.reyes] Eleanor,
303340 [eleanor game] No problem. Thanks to your help there's now one less bug in my

^ subclass of hash, that times last read
303218 [boris bagofs] but I just tried to write one. The result is below here, and should be a
+ 303247 [ninja slapha] The only bug I've found so far is that it won't work if the user provides a
+ 303327 [davebass mus] My approach would be quite different. I'd use files to store the values

^ Not really a Ruby question, but...
303228 [loadeddesign] I'm using a Ruby script to grab some data from an Oracle database via
+ 303295 [d_rems yahoo] Maybe  Time.now.strftime('%d/%m/%Y')
+ 303302 [shortcutter ] select ...

^ Active Record Connection works from script, but not from Apache CGI...??
303239 [xcampanoli g] where my little @@DBCfg[RAILS_ENV] demonstrably has the correct path to

^ Calling instance method when module included
303242 [leon tim-onl] Maybe a silly question, but is it possible to call instance methods on

^ How do I remove version 1.8.5 so that 1.8.6 will work on os
303245 [robblovell g] I have two ruby installs on os X after migrating from tiger to leopard.
303330 [davebass mus] A common approach is to install in directories that reflect the version

^ Find/Replace In Files Using Lookup Table
303252 [aporter eyeq] I have a directory full of HTML files. Some have anchor tags (<a =20
303263 [rubytraining] Obviously your goal is to this processing.  But are you hoping to use
+ 303274 [ninja slapha] I'd suggest hpricot or REXML if the files are reasonably well-formed and/or=
+ 303288 [aporter eyeq] Thanks, Eric. These are excellent tips.

^ DRb Problems with Mac OS X 10.5.3
303253 [kschrader gm] It looks like the Mac OS X 10.5.3 upgrade breaks DRb when it's trying to
303265 [eric presdo.] I'm running into the same problem too having just upgraded.  Is there a
303268 [kschrader gm] No solution yet, but it looks like something has changed in some
+ 303270 [jsidlosky gm] Damn, I need a fix bad -- Either that or I'm re-installing my entire OS
+ 303293 [akeep robotm] I've not done too much Ruby socket programming, but it seems to be that
  + 303297 [laurent.sans] Thanks for the report, we are of course very sorry about that. Ruby
  | + 303300 [kschrader gm] Laurent,
  | + 303305 [jsidlosky gm] Where does this wonderful piece of code go?
  |   303306 [blaz spletni] I put this just before "Rails::Initializer.run(:set_load_path)" in
  |   + 303361 [preppyl gmai] Anyone else get errors from inserting this code?
  |   + 303376 [preppyl gmai] Incase you get errors and cannot get the hack above, try putting it in
  |     303441 [jsidlosky gm] Yeah that doesn't work either.
  |     + 303444 [kschrader gm] You forgot to require DRb.
  |     | 303970 [dkitchel mac] I had the same problems and this fix makes it possible for mongrel to
  |     | 304106 [aguynamedrya] Yes.  I'm having problems with backgroundrb too, even with the hack.
  |     | 304158 [rubyforum gm] Well, I went and got some answers to my own questions!
  |     | 304182 [dkitchel mac] I just thought I'd tell people what I ended up doing to solve the
  |     + 304308 [weyus att.ne] I put it in environment.rb _outside_ of the config block and it works
  + 306016 [seggy.umboh ] Looks to me like this might not be the reason, as I was able to get it
    308324 [daly.tony gm] Having lots of problems with this bug. Tried some of the fixes suggested
    308329 [cdemyanovich] Apple fixed the DRb problem in the 10.5.4 update, which was released at the
    346817 [travisbell m] Looks like this has re-surfaced in 10.6 (Snow Leopard). Fresh install

^ Re: Is there a easy way to find and replay a match
303254 [ tel jklm.no] foo
303264 [happy.go.luc] I need "aaa=4" in the file instead of just print out
+ 303272 [ninja slapha] No offense, but this was pretty much handed to you. You should be able to get
+ 303276 [ tel jklm.no] File.open('somefile', 'r+') do |file|
  + 303281 [phasis gmail] ruby -i -pe'gsub(/aaa=100/,"aaa=4")' somefile
  + 303419 [happy.go.luc] Thanks a lot, it really helped. But I don't know why if i use regular

^ inclusion of module: differences
303256 [leon tim-onl] I have this code: http://pastie.caboo.se/205063
303319 [calamitates ] p a.class.ancestors # => [Array, InstanceMethods, Enumerable, Object, Kernel]
303405 [leon tim-onl] Wow, thanks Peter! That was very enlightening!

^ Re: How do I remove version 1.8.5 so that 1.8.6 will work on
303257 [robblovell g] I renamed all copies of ruby essentially disabling them and then used

^ Mystified by a YAML/AR interaction...????
303266 [xcampanoli g] I've got the following sequence which when run interactively yields a

^ RGSS
303271 [skulls_r_us8] I'm new to Ruby, and only heard about it through RGSS (ruby game
+ 303273 [ninja slapha] Actually, Ruby has both 'print' and 'puts' -- and they do different things.
+ 303287 [mrobert treb] there is no differences between pure ruby, and rgss. as rgss is just a

^ Looking for a way to access ActiveRecord data in a rails app from another non-rails app with $SAFE=1
303282 [xcampanoli g] I only need to read the data, but I want to use AR if I can, because
303346 [xcampanoli g] It occurs to me that perhaps I should be configuring my Mongrel to just

^ [ANN] win32-pipe 0.2.0
303283 [djberg96 gma] The Win32 Utils Team is happy to announce the release version 0.2.0 of

^ Non standard installed gem question
303301 [Maurice.Diam] Bonjour =E0 tous,
303308 [drbrain segm] $ rm -rf ~/tmp/gems/
303359 [Maurice.Diam] Hum, I also success thank's to your commands (perhaps I've done some

^ Problem with text_width and UTF-8 characters in PDF-writer
303303 [abboura84 ya] I've many problems with the method text_width in PDF-writer. It doesn't
303534 [ottoman01 gm] In my understanding, PDF::Writer does not fully support UTF-8

^ customize a gem method
303309 [abboura84 ya] I want to customize a method of a gem wuthout changing the source code
303412 [sean.ohalpin] require 'rubygems'

^ Strings, postgresql and gsub
303310 [ondemannen g] I'm somewhat stumped at the moment due to problems with inserting
+ 303312 [mikael hoilu] String#gsub interprets the backslashes (for use with e.g. \1). In this =20=
+ 303313 [jgabrielygal] This use of gsub processes the escaping of the sub string twice,
+ 303314 [botp delmont] # irb(main):034:0> s.gsub(/'/, "\\'")
| 303326 [shortcutter ] ... and less performance.  Proper escaping is the way to go.
| 303443 [botp delmont] # > faq. try the block form for less headache.
| 303461 [shortcutter ] robert@fussel ~
+ 303318 [ninja slapha] Somewhat offtopic, but you shouldn't have to do this. First hit off Google for
  303324 [ondemannen g] Thanks to Jes=FAs, Mikael, botp and David for clearing up a few things.

^ unsubscribe
303357 [hawkman gelo] unsubscribe

^ Surprising Extend
303362 [leslieviljoe] I want to make a library which can extend the String class. I don't want to
+ 303364 [shortcutter ] Can you show some real code and real error messages?  Normally there
| 303367 [leslieviljoe] Ah, I was making DOS files on Linux. That thwarted my modulating.
| 303370 [ninja slapha] I'm not sure, but considering that you can extend individual instances, that
| 303373 [leslieviljoe] Oh ok. And then I can use 'extend' when I want to extend an instance.
| 303377 [ninja slapha] String have a working to_hex. You don't have to do anything more than require
| 303399 [leslieviljoe] Yes, that's what I said!
| 303409 [shortcutter ] Actually, no (see above). :-)
| 303413 [leslieviljoe] My response was "Oh ok."
| 303459 [shortcutter ] And you continued "and _then_ I can use extend when I wan to extend an
| + 303475 [robert.dober] The only reason I am here ;)
| + 303509 [leslieviljoe] Oh I see, thanks for that.
+ 303378 [cmshea gmail] It sounds like what you want is include, not extend.  If your goal is
threads.html
top