177307-179621

177067-178686 subjects 177426-182627

Re: [Bulk] nil != []
177307 [vpuz@ro er .] I'm new to ruby but this makes sense to me.  Why should 0 == false?  It's a

Accessing global variable from a function
177311 [vitalyb@gm i] I'd like to access a global variable from within a function, without
+ 177315 [ttt@re ou ce] def func
+ 177319 [in_a_hury@ne] Global variables start with a "$" so just write

Loop weirdness
177318 [lists@tu ni ] I'm going ever so slightly crazy over some looping behaviour. Here's a
+ 177320 [ruby-ml@ma i] I am feeling really dense today so I may be totally off mark, but...
+ 177334 [johan.veenst] ...
| 177338 [lists@tu ni ] Ah yes! Thanks, I didn't spot that. However, I still don't understand
| 177339 [johan.veenst] ...
| 177340 [lists@tu ni ] Okay, so let me get this right... if you do
| 177341 [dblack@wo bl] The length of foo is re-evaluated each time; that's how the decision
| 177345 [lists@tu ni ] Thanks very much! I understand now.
| 177732 [bob.news@gm ] Adding to this I'd say it's generally a good idea not to modify the
+ 177370 [SimonKroeger] Is this what you are trying to do?
  177486 [lists@tu ni ] That's cool (although crowded), but it doesn't fit the bill for me as I
  177489 [shortcutter@] What exactly do you want to do?  Can you describe it other than in
  177492 [lists@tu ni ] These are interesting but unfortunately I need the order of the original
  + 177503 [SimonKroeger] Sorry, missed that.
  | 177550 [lists@tu ni ] The docs say Array#map only yeilds on value: the value of the item in
  | 177562 [simon.kroege] that's the way multiple assignement works in ruby
  + 177779 [bob.news@gm ] Sorry, that slipped by me.

[ANN] OpenGL-0.32g for Apple MacOS X
177327 [james.adam@g] In case anyone needs this, I've uploaded my tweaked version of the
+ 177329 [joevandyk@gm] Has anyone used Ruby + OpenGL for anything of interest?
| 177331 [billk@ct .c ] This is looking like an awesome library.
| 177333 [ilmari.heikk] It was more fun than doing the usual powerpoint thing, and a lot morework too. But now I can extract all the effects and add them tolibrend proper :)
| 177561 [george.mosch] Quite impressive ;-)
+ 177350 [tsuraan@gm i] Trying this, I get
  177368 [james.adam@g] Hmm.... the addition of "--framework Foundation" should prevent this
  177380 [tsuraan@gm i] Now Making glut extend module
  177587 [james.adam@g] I dont' think so - I just compiled it with the normal options and it

Creation of i18n PDF files (from UTF-8 encoded strings)
177332 [kajism@ya oo] I have been playing with PDF::Writer for a while, but wasn't able to
177357 [halostatue@g] support UTF-8 (the underlying specification does not support UTF-8).
177464 [kajism@ya oo] Austin, thanks for your response.

Re: [QUIZ][SOLUTION] Port a Library (#64)
177343 [rossrt@ro co] (By my calculations it's gone 48 hours now? Hope so, anyway...)

YAML in 1.8.3 and 1.8.4
177346 [edder@tk sp ] biggest problem seems to be that the --- separator isn't included
177348 [james@gr yp ] This was a common problem with Ruby 1.8.3, but it has been fixed in
177349 [edder@tk sp ] Ops excuse my stupidity, I was sure I was already running ruby 1.8.4,

Syntax
177351 [julesjacobs@] Which syntax do you like most?
+ 177429 [paul@ic no l] The one that is closest to working the way I think. :-)
+ 177601 [matthias@kl ] I like ruby-syntax.
+ 177628 [zdennis@mk e] print a if a == 10
+ 177784 [martindemell] If you want to see a language with really pretty syntax, take a look at
+ 178135 [matz@ru y- a] Welcome to the wonderful world of language designers.

Scanning for more than one specific character with String#scan
177352 [jeppe88@gm i] ...
+ 177353 [Nuralanur@ao] ...
+ 177354 [cameron.mcbr] Greetings,

[ANN] xoxo-rb 0.1.0  (also: [SOLUTION])
177355 [chneukirchen] = xoxo.rb, a XOXO parser and generator for Ruby

subclassing question
177356 [jason.wold@g] ...

my coding style
177358 [hawkman.gelo] ...
+ 177360 [dblack@wo bl] Traditional Ruby indentation is two spaces.  One space is a bit of a
| + 177362 [hawkman.gelo] ...
| + 177365 [james@gr yp ] I sure like it though.  Makes those argument lists stand out.  All my
+ 177363 [julesjacobs@] I have translated your code a bit. You can make it much shorter if you
  + 177369 [SimonKroeger] def find_factors(number)
  + 178288 [hans@gr nq i] Jules, this was very helpful. Thanks for taking the time
  | 178297 [tomcloyd@be ] Hans,
  + 179621 [HectorQuiroz] Thanks Jules,

[ANN] Silicon Valley Ruby Conference
177361 [dblack@wo bl] I'm pleased to announce that Ruby Central, Inc. and SDForum are
177364 [james@gr yp ] 1.  Are other Ruby Conferences planned for this year?
177366 [dblack@wo bl] There's RubyConf :-)  And RailsConf.
+ 177367 [james@gr yp ] Thanks for the details.
+ 177375 [nshb@in mi .] Why the sudden partnership with SDForum?
  177376 [dblack@wo bl] We were asked whether we'd like to co-produce a conference, and we
  177378 [james_b@ne r] "Ruby also features built-in support for Ajax, which is the technology
  177508 [adam@th re l] require 'buzzwords/ajax'
  177509 [james_b@ne r] Seems that way.  People here know that there are multiple Ruby

Premature end of regular expression with non-ascii character
177371 [nick.snels@g] I'm trying to get regular expressions to work with a string that
+ 177373 [M.B.Smillie@] I believe this is a character encoding problem which is fixed in 1.9
+ 177394 [logancapaldo] Are you using $KCODE="u"  at the top of your script?
+ 177718 [dave@bu t. d] You might avoid the syntax error by setting $KCODE = "u" at the start of

Question about Lo4R
177372 [zacharooni@c] I'm having an issue with a Formatter for Log4R.
177374 [tsumeruby@ts] Just a note, the ruby included with breezy is not 1.8.3 release. ruby -v
177377 [alex.combas@] $ cat /etc/lsb-release
177379 [tsumeruby@ts] Exactly, 1.8.3 was released on 09/21/2005. Somebody took a development
177382 [zacharooni@c] It didn't come with the distribution, I installed it via apt-get. Is anyone else getting an error like this?
177390 [naseby@gm il] Have you got Rails installed? It does some monkeypatching to class
177400 [zacharooni@y] Looking at the RubyForge website, this seems to be an open bug.

Rake 0.7.0 breaks "rake engine_migrate"?
177381 [joevandyk@gm] Everything was working fine.  Then I upgraded Rake to 0.7.0.
177384 [james.adam@g] I guess the old rake was more forgiving on some systems, but

relative dates
177383 [cbowmanschoo] today = Time.now
+ 177388 [ezmobius@gm ] Charlie-
+ 177391 [cameron.mcbr] last_week = today - 7*24*60*60
| 177397 [aledonne.lis] This is probably going to be easier with Date than with Time...
| + 177398 [cbowmanschoo] Thanks, I had no idea that it was so simple in Ruby!
| | 177399 [aledonne.lis] Careful!
| | + 177403 [nshb@in mi .] -Nb
| | + 177443 [cbowmanschoo] Your're right! as soon as I implemented it I noticed the seconds change.
| |   + 177478 [alex.combas@] What?! Speed more important than ease of use in Ruby!? Surly you jest sir!!
| |   + 177755 [netghost@gm ] Depending on if you need the time component, it may just be eaiser to
| |   + 177772 [sethrasmusse] Charlie,
| + 177411 [ezmobius@gm ] => true
|   177771 [sethrasmusse] Haha... it appears like you got ignored doubly for having the exact,
+ 177720 [acangianohat] class Integer

stopping servers
177392 [r.mark.volkm] When I run servers like WEBrick or an instance of TCPServer, it's
177396 [james_b@ne r] RUBY_PLATFORM =~ /mingw|mswin32/ ?   signal = 1 :  signal = "HUP"

creating file names with string
177402 [info@ja eo a] Hey chaps,
177420 [alex.combas@] Well the first thing that struck me is that hardcoding the path

Ruby tutorials w/ excercises
177404 [scott@mi in ] I was wondering if there are any Ruby tutorials with excercises at the
+ 177416 [akulbe@gm il] I would recommend you look into the Pragmatic Programmers "Learn toProgram" book.  Its subtitle is "The Facets of Ruby Series".
| + 177421 [alex.combas@] Also, several in here, but not all have exercises
| + 177591 [kabigon@gm i] Don't forget http://tryruby.hobix.com/ ...
|   177615 [akulbe@gm il] I think this is probably more appropriate for someone new toprogramming.  There are posts in this same thread that that mentionthe Code Katas.  I would check those out.
+ 177450 [james@gr yp ] Just to be sure we've covered all the options, there are plenty of
| 177783 [martindemell] Which I'm currently using to teach myself common lisp :)
+ 177511 [collinsj@se ] -Justin
| 177576 [doug.bromley] Thats a fantastic resource!  I've never come across it before - I'm
| 177614 [james_b@ne r] You might also be interested in Jon Bently's Programming Pearls
+ 177558 [lifterx@gm i] I highly recommend Why's Poignant guide, you can work through the
+ 177626 [briankbuckle] ...
  177653 [jeppe88@gm i] ...

misunderstanding the Passing of references
177405 [tgate@my ub ] I'm to to ruby...
177406 [M.B.Smillie@] So far, so good.  At the minute, outputModel references a brand new
177407 [tgate@my ub ] That's exactly the case.  In reading the link you suggest it seems I
+ 177409 [tgate@my ub ] Just to provide some direct information for anyone who might find this
| 177448 [logancapaldo] class Object
+ 177412 [M.B.Smillie@] There is and there isn't: Object#dup and #clone both make shallow
  177734 [bob.news@gm ] You can as well override or reimplement the #dup method.

is it Time bug?
177408 [rootkvi@ya d] Thursday day in interval given by 2 Time values and see interesting
+ 177410 [vjoel@pa h. ] This is what I get. Looks like it is the effect of the PDT->PST time
| 177414 [pergesu@gm i] Damn, you win.  Thought I had found an interesting "gotcha" :)
+ 177413 [pergesu@gm i] First of all for doing stuff like this I highly recommend checking out
  177427 [ljz@as as .c] I don't believe that this is the cause of the problem here.  Changing
  + 177428 [ljz@as as .c] ... except on the daylight savings time transitions, of course.  In that
  + 177431 [pergesu@gm i] ...

One-Click Ruby Installer 184-16 preview1 is available!
177415 [curt.hibbs@g] One-Click Ruby Installer 184-16 preview1 is available!
+ 177417 [curt.hibbs@g] Curt
| 177418 [curt.hibbs@g] I should know better than to stay up past my bed time... I just gave
+ 177419 [hawkman.gelo] ...
| + 177433 [edder@tk sp ] If the differences in functionality between scite and notepad++ are
| | + 177445 [gonchuki@ya ] same opinion here, i usually go back and forth from windows to linux and
| | | 177456 [hawkman.gelo] ...
| | | 177757 [surrender_it] it does, even if it is not the latest scite release, I think
| | + 177460 [ml.chibbs@gm] These are good points, I'll check out the new SciTE (as I should have
| |   177521 [damphyr@fr e] ...Lots of pro-Scite comments...
| |   177524 [ml.chibbs@gm] Thanks for the kind words.
| + 177459 [ml.chibbs@gm] Well, I suppose that I should have checked out the new version of SciTE first.
| + 177739 [surrender_it] even the old included one did, they were just disabled by default
| + 177740 [sigzero@gm i] No it isn't. I vastly prefer SciTE to Notepad++.
+ 177430 [pavel.s.soko] Removing # before line "tabbar.visible=1" in SciTEGlobal.properties
+ 177795 [noSpam@no pa] Thank you very much!
+ 177798 [netghost@gm ] Thank you so much for your work on the one click installer.  It makes
  177841 [dave@bu t. d] Hope it helps; I haven't had a reason to use it, yet.

inheritance from C object with different parameter count
177423 [Geert.Fannes] ...
+ 177497 [zoso@fo on e] Hmmm... weird. If you comment the "super()" call in Derived#initialize,=
| 177548 [Geert.Fannes] OK, thanks. At least I am a bit further. Maybe some effort should be invested in documenting the C extension process in clear detail, since it is always very confusing if you want to do things that are a bit more complicated. Are you aware of a good place where I can find detailed information?
| 177652 [zoso@fo on e] is
+ 177788 [g_ogata@op u] class Base

Strange posting about ebooks
177424 [peter@se an ] For some unfathomable reason I have received four emails containing
+ 177425 [pit@ca it in] I also received four Emails, but deleted them as spam. I haven't looked
| + 177434 [damphyr@fr e] Oh, they came through my spam filters so I did look at the contents and
| | 177435 [paul@ic no l] But the question is, why is somebody sending them out?
| | + 177437 [peter@se an ] The pickaxe shows "Prepared exclusively for Yeganefar"
| | | + 177439 [rasputnik@gm] I got these this morning too.
| | | + 177473 [matthew.moss] *nod* Received these as well, prepared for Yaganefar and sent by Mubin
| | |   177474 [matthew.moss] And offhand, best I can tell, it wasn't.
| | + 177458 [kyosuke@se n] Ehm, this could be considered a FUD or at least an (uninformed)
| |   177461 [peter@se an ] The name is placed in the PDF by PragProg when they receive an order by
| + 177463 [mental@ry ia] I got them too.  Same.
|   177466 [kabigon@gm i] The same thing happened to me - I got the last three out of the four
+ 177446 [hal9000@hy e] He mailed them directly to me, too. :/
+ 177447 [dblack@wo bl] Yes, I got them too, with four or five other people on the to list.
| + 177452 [hawkman.gelo] ...
| | 177453 [dblack@wo bl] Yeah, newbies.... Guy Decoux was one of the ones on my to list :-)
| | + 177454 [hawkman.gelo] ...
| | + 177455 [james@gr yp ] I got them too.
| |   + 177498 [tsumeruby@ts] I as well. Perhaps some of our friends at Yahoo can get his IP to track him?
| |   | 177502 [leavengood@g] What's the point? While he has violated copyright he did not appear to
| |   | + 177505 [james_b@ne r] Exactly.  I believe that most of the people on this list would buy those
| |   | | 177512 [tsumeruby@ts] Okay, If I pirated loads of books, what is the point of reading a book many
| |   | | 177515 [leavengood@g] Thank goodness for libraries, right!
| |   | | + 177519 [tsumeruby@ts] /me looks at Homer Libraries yearly spending allowance
| |   | | + 177974 [biyokuantum@] It's me, "the Witch".
| |   | |   + 178030 [matthew.moss] I have very strong opinions about theft/piracy and arguments such as
| |   | |   | 178136 [botp@de mo t] #established earning good salaries who have therefore gotten religion.
| |   | |   | 178171 [martindemell] If you can't, though, almost as valuable is to be able to say clearly
| |   | |   | 178179 [anne@wj .h r] botp is right, all you need to do is listen to the news to see that
| |   | |   | 178334 [chneukirchen] While I don't agree with your view on the Pickaxe, I think you are
| |   | |   | 178359 [dave@pr gp o] This is really interesting feedback.
| |   | |   | + 178360 [richard@d2 .] Howdy,
| |   | |   | | 178382 [anne@wj .h r] And I think it may well do that for me once I understand what is going
| |   | |   | + 178469 [chneukirchen] Yeah, the store itself is not a bad idea, and for, say, 80% it will be
| |   | |   + 178144 [hal9000@hy e] Well, it was an inappropriate action and illegal. Of course,
| |   | |   | 178161 [biyokuantum@] I didn't do it intentionally. I just copied the email addresses and
| |   | |   + 178147 [jlsysinc@al ] I guess that throws out any affirmative defense.   And confirms my intuition
| |   | |   + 178148 [dharple@ge e] So, did you use your new found knowledge of Ruby, gained from the e-
| |   | + 177518 [mental@ry ia] Everything else aside, there is also the matter of having the
| |   | + 177540 [jlsysinc@al ] It was an overtly malicious act and I hope the owners of the properties do
| |   | + 177545 [peter@se an ] For the simple fact that he is a spammer perhaps? 18Mb of spam, you
| |   |   177546 [doug.bromley] I really don't think a witchunt is necessary.  Some people are
| |   |   + 177551 [jlsysinc@al ] I vote we sieze hold of him, press him flat between a printing press and
| |   |   | + 177553 [peter@se an ] Get with the times dude. He has to hold an overclocked AMD CPU in his
| |   |   | + 177786 [bob.news@gm ] You reversed the traditional logic - is that on purpose?  Traditionally if
| |   |   + 177568 [matthew.moss] Build a bridge out of 'im!!!
| |   |     177573 [rforum@gm il] Now, now.  You're starting to sound like a bunch of Python (Monty)
| |   |     + 177574 [hawkman.gelo] ...
| |   |     + 177585 [mental@ry ia] Well, if he types like a duck...
| |   |       177794 [bob.news@gm ] Ducks are known for their horrible handwriting - hence the popularity of
| |   |       177802 [martindemell] Ducks are like doctors - if you think their handwriting's bad, wait till
| |   + 177526 [gregory.t.br] +1
| |     177527 [mental@ry ia] I imagine the listserv would have refused the messages, as their
| |     177531 [janchrister.] I got files 2, 3 and 4 on Jan 29th. I've got the paper copy of all books
| + 177759 [ptkwt@ar cn ] I got them too.  It seems that whoever did this got their list of email
+ 177470 [logancapaldo] I got them also.
+ 177483 [henrik.marte] I got two of them, and deleted them.
| 177764 [anne@wj .h r] I bought the pic axe which I don't like, and it is not the first time I
| 177944 [hal9000@hy e] Very interesting. I think you're the first person I've heard say "I don't
| 177970 [anne@wj .h r] Yes, I was a clear minority on this one! I was surprise by the response
| 177971 [rossrt@ro co] Well, I for one am currently unemployed, and skint (or 'broke' as they
+ 177735 [rosco@ro co ] I did, from the same sender, but in a message to a different group of
| 177881 [halostatue@g] You gather mostly wrong. PDFs themselves cannot contain executable code
| + 177921 [mental@ry ia] That's presuming there aren't any exploitable bugs in Adobe's Javascript
| + 177924 [rossrt@ro co] but missed the part about it only affecting the full Acrobat program.
+ 177826 [interfecus@g] I just got back from holiday to find 3 emails, labelled parts 2, 3 and
threads.html
top