177068-178686 subjects 177426-182627
^ Accessing global variable from a function
177311 [vitalyb gmai] I'd like to access a global variable from within a function, without
+ 177315 [ttt resource] def func
+ 177319 [in_a_hury ne] Global variables start with a "$" so just write
^ Loop weirdness
177318 [lists turnip] I'm going ever so slightly crazy over some looping behaviour. Here's a
+ 177320 [ruby-ml magi] I am feeling really dense today so I may be totally off mark, but...
+ 177334 [johan.veenst] The without the breaks if the last "cat[:num] =3D=3D item[:num]" isn't true=
| 177338 [lists turnip] Ah yes! Thanks, I didn't spot that. However, I still don't understand
| 177339 [johan.veenst] def categorise(items)
| 177340 [lists turnip] Okay, so let me get this right... if you do
| 177341 [dblack wobbl] The length of foo is re-evaluated each time; that's how the decision
| 177345 [lists turnip] Thanks very much! I understand now.
| 177732 [bob.news gmx] 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 turnip] 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 turnip] These are interesting but unfortunately I need the order of the original
+ 177503 [SimonKroeger] Sorry, missed that.
| 177550 [lists turnip] 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 gmx] 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 cts.co] 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 gmai] Trying this, I get
177368 [james.adam g] Hmm.... the addition of "--framework Foundation" should prevent this
177380 [tsuraan gmai] 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 yahoo] 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 yahoo] Austin, thanks for your response.
^ Re: [QUIZ][SOLUTION] Port a Library (#64)
177343 [rossrt rosco] (By my calculations it's gone 48 hours now? Hope so, anyway...)
^ YAML in 1.8.3 and 1.8.4
177346 [edder tkwspi] biggest problem seems to be that the --- separator isn't included
177348 [james graypr] This was a common problem with Ruby 1.8.3, but it has been fixed in
177349 [edder tkwspi] Ops excuse my stupidity, I was sure I was already running ruby 1.8.4,
177351 [julesjacobs ] Which syntax do you like most?
+ 177429 [paul iconopl] The one that is closest to working the way I think. :-)
+ 177601 [matthias kl-] I like ruby-syntax.
+ 177628 [zdennis mkte] print a if a == 10
+ 177784 [martindemell] If you want to see a language with really pretty syntax, take a look at
+ 178135 [matz ruby-la] Welcome to the wonderful world of language designers.
^ Scanning for more than one specific character with String#scan
177352 [jeppe88 gmai] aString =3D "1234s * 4234k"
+ 177353 [Nuralanur ao] You can use
+ 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] I'm trying to subclass Ncurses::WINDOW but it just seems to hijack my
^ my coding style
177358 [hawkman.gelo] i was wondering if my rubyness has increased above the 'total
+ 177360 [dblack wobbl] Traditional Ruby indentation is two spaces. One space is a bit of a
| + 177362 [hawkman.gelo] i actually use tabs, but those didn't seem to be copied properly..
| + 177365 [james graypr] 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 granqvi] Jules, this was very helpful. Thanks for taking the time
| 178297 [tomcloyd bes] Hans,
+ 179621 [HectorQuiroz] Thanks Jules,
^ [ANN] Silicon Valley Ruby Conference
177361 [dblack wobbl] I'm pleased to announce that Ruby Central, Inc. and SDForum are
177364 [james graypr] 1. Are other Ruby Conferences planned for this year?
177366 [dblack wobbl] There's RubyConf :-) And RailsConf.
+ 177367 [james graypr] Thanks for the details.
+ 177375 [nshb inimit.] Why the sudden partnership with SDForum?
177376 [dblack wobbl] We were asked whether we'd like to co-produce a conference, and we
177378 [james_b neur] "Ruby also features built-in support for Ajax, which is the technology
177508 [adam thereal] require 'buzzwords/ajax'
177509 [james_b neur] 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 burt.id] 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 gmail] 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 gma] 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 inimit.] -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 gma] Depending on if you need the time component, it may just be eaiser to
| | + 177772 [sethrasmusse] Charlie,
| + 177411 [ezmobius gma] => 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 neur] RUBY_PLATFORM =~ /mingw|mswin32/ ? signal = 1 : signal = "HUP"
^ creating file names with string
177402 [info jayeola] Hey chaps,
177420 [alex.combas ] Well the first thing that struck me is that hardcoding the path
^ Ruby tutorials w/ excercises
177404 [scott mining] I was wondering if there are any Ruby tutorials with excercises at the
+ 177416 [akulbe gmail] 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 gmai] Don't forget http://tryruby.hobix.com/ ...
| 177615 [akulbe gmail] 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 graypr] 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 sea] -Justin
| 177576 [doug.bromley] Thats a fantastic resource! I've never come across it before - I'm
| 177614 [james_b neur] You might also be interested in Jon Bently's Programming Pearls
+ 177558 [lifterx gmai] I highly recommend Why's Poignant guide, you can work through the
+ 177626 [briankbuckle] Check out
177653 [jeppe88 gmai] It's a nice site, but I doubt that it's very challenging to write a program
^ misunderstanding the Passing of references
177405 [tgate mypubl] I'm to to ruby...
177406 [M.B.Smillie ] So far, so good. At the minute, outputModel references a brand new
177407 [tgate mypubl] That's exactly the case. In reading the link you suggest it seems I
+ 177409 [tgate mypubl] 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 gmx] You can as well override or reimplement the #dup method.
^ is it Time bug?
177408 [rootkvi yand] Thursday day in interval given by 2 Time values and see interesting
+ 177410 [vjoel path.b] This is what I get. Looks like it is the effect of the PDT->PST time
| 177414 [pergesu gmai] Damn, you win. Thought I had found an interesting "gotcha" :)
+ 177413 [pergesu gmai] First of all for doing stuff like this I highly recommend checking out
177427 [ljz asfast.c] I don't believe that this is the cause of the problem here. Changing
+ 177428 [ljz asfast.c] ... except on the daylight savings time transitions, of course. In that
+ 177431 [pergesu gmai] ...
^ 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] whoa!
| + 177433 [edder tkwspi] If the differences in functionality between scite and notepad++ are
| | + 177445 [gonchuki yah] same opinion here, i usually go back and forth from windows to linux and
| | | 177456 [hawkman.gelo] just downloaded the preview and tried out notepad++, and now i'm really sur=
| | | 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 free] ...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 gmai] 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 noSpa] Thank you very much!
+ 177798 [netghost gma] Thank you so much for your work on the one click installer. It makes
177841 [dave burt.id] Hope it helps; I haven't had a reason to use it, yet.
^ inheritance from C object with different parameter count
177423 [Geert.Fannes] charset="us-ascii"
+ 177497 [zoso foton.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 foton.e] is
+ 177788 [g_ogata optu] class Base
^ Strange posting about ebooks
177424 [peter semant] For some unfathomable reason I have received four emails containing
+ 177425 [pit capitain] I also received four Emails, but deleted them as spam. I haven't looked
| + 177434 [damphyr free] Oh, they came through my spam filters so I did look at the contents and
| | 177435 [paul iconopl] But the question is, why is somebody sending them out?
| | + 177437 [peter semant] 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 sezn] Ehm, this could be considered a FUD or at least an (uninformed)
| | 177461 [peter semant] The name is placed in the PDF by PragProg when they receive an order by
| + 177463 [mental rydia] I got them too. Same.
| 177466 [kabigon gmai] The same thing happened to me - I got the last three out of the four
+ 177446 [hal9000 hype] He mailed them directly to me, too. :/
+ 177447 [dblack wobbl] Yes, I got them too, with four or five other people on the to list.
| + 177452 [hawkman.gelo] i got them as well...
| | 177453 [dblack wobbl] Yeah, newbies.... Guy Decoux was one of the ones on my to list :-)
| | + 177454 [hawkman.gelo] it seems it was sent to a lot of e-mail adresses, in alphabetical order, al=
| | + 177455 [james graypr] 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 neur] 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 delmont] #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 wjh.har] 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 pragpro] This is really interesting feedback.
| | | | | + 178360 [richard d2p.] Howdy,
| | | | | | 178382 [anne wjh.har] 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 hype] 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 all] I guess that throws out any affirmative defense. And confirms my intuition
| | | | + 178148 [dharple gene] So, did you use your new found knowledge of Ruby, gained from the e-
| | | + 177518 [mental rydia] Everything else aside, there is also the matter of having the
| | | + 177540 [jlsysinc all] It was an overtly malicious act and I hope the owners of the properties do
| | | + 177545 [peter semant] 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 all] I vote we sieze hold of him, press him flat between a printing press and
| | | | + 177553 [peter semant] Get with the times dude. He has to hold an overclocked AMD CPU in his
| | | | + 177786 [bob.news gmx] You reversed the traditional logic - is that on purpose? Traditionally if
| | | + 177568 [matthew.moss] Build a bridge out of 'im!!!
| | | 177573 [rforum gmail] Now, now. You're starting to sound like a bunch of Python (Monty)
| | | + 177574 [hawkman.gelo] if he looks like a duck, walks like a duck, talks like a duck and weighs
| | | + 177585 [mental rydia] Well, if he types like a duck...
| | | 177794 [bob.news gmx] 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 rydia] 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 aracne] 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 wjh.har] I bought the pic axe which I don't like, and it is not the first time I
| 177944 [hal9000 hype] Very interesting. I think you're the first person I've heard say "I don't
| 177970 [anne wjh.har] Yes, I was a clear minority on this one! I was surprise by the response
| 177971 [rossrt rosco] Well, I for one am currently unemployed, and skint (or 'broke' as they
+ 177735 [rosco roscop] 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
| + 177924 [rossrt rosco] 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