180505-183063 subjects 180881-182450

Class variables and Constants
180688 [merc@mo il .] what is the actual difference between class variables and constants?
180693 [merc@mo il .] Dear Tony,
180701 [dblack@wo bl] Have you tried this?
180705 [merc@mo il .] AAAAAAAHHHHHHHHH!!!!!!!!!!!!
180708 [dblack@wo bl] I think Matz is planning to change class variables in 2.0 so that they
+ 180715 [merc@mo il .] 20
+ 180819 [david@va ln ] I tried to do Poor Man's Traits in Java using static fields. I feel your pain.
  180823 [dblack@wo bl] ...

Whats the difference of ActiveRuby and "regular" Ruby install
180689 [jeisma@pi es] as the subject goes, what's the difference of ActiveRuby and "regular"
180798 [david@va ln ] First things first: there's an ActiveRuby?! Well, not that noone saw it coming
+ 180812 [sigzero@gm i] Looking at the ActiveState site, there isn't an "ActiveRuby" there. So
| 180815 [jeisma@pi es] im talking about wsh scripting with ruby (rubyscript).
| 180836 [hal9000@hy e] My understanding is yes, it's a different installer and
+ 180813 [james_b@ne r] ActiveRuby Script

RUBY :: Unit test
180691 [wallenberg@g] I'm new with ruby.
180694 [akbarhome@gm] ...

Microsoft Access Automation
180692 [leslie@ca ar] Hey everyone
180697 [w_a_x_man@ya] Use Array#transpose.
180700 [leslie@ca ar] Good. I really did search and search before writing my own - and there

How can I search value from xml
180698 [rubybox@gm i] ...
+ 180699 [bob.news@gm ] robert
+ 180714 [bauer.mail@g] require 'rexml/document'
+ 180734 [w_a_x_man@ya] class String
| 180738 [chneukirchen] I hope you are joking...
| + 180740 [w_a_x_man@ya] I hope you're joking.
| + 181187 [ruby-talk@de] Actually, in real-world usage, Mark Pilgrim's Python Feed Parser[0]
+ 180786 [w_a_x_man@ya] class String
+ 180787 [w_a_x_man@ya] class String
| 180792 [   no@no co ] Please stop. To the OP, use rexml.
+ 180845 [w_a_x_man@ya] class String
| 180905 [chneukirchen] Still doesn't support namespaces, entities and CDATA... ;-)
+ 180846 [rubybox@gm i] ...
  180863 [rossrt@ro co] As others say, for now REXML is probably the way to go, but *very* soon
  180866 [makenai@gm i] Every time I've tried to use REXML for something I've found it to be

dirty ranges
180709 [dvandeun@vu ] I'm a new Ruby user (currently at page 68 of Programming Ruby !) and
+ 180808 [david@va ln ] Range code seems to enumerate and determine the maximum by generating all
| 180860 [bob.news@gm ] Having said that I can't see where modifying range members like this is
+ 180831 [g_ogata@op u] You can modify the endpoints if you reference them using #begin and
  180837 [david@va ln ] Pffft. Doesn't even flinch.
  + 180842 [nugend@gm il] Hrmmm.. the second example that Dirk gives is pretty ugly.  I shouldthink that you could simply call clone on the begining value of therange and get a more desirable result.  I don't know if a deep-copywould be required, and if it were, it's only aMarshal.load(Marshal.dump(obj)) away, right?
  | 180870 [dvandeun@vu ] For the people who remarked (quite sensibly, of course) that you just
  | + 181008 [david@va ln ] Commandment <number> of not causing obscure bugs: thou shalt not clobber
  | + 181021 [merc@mo il .] c'mon, it's not _that_ much of a problem!
  + 181058 [g_ogata@op u] You're right; modifying #end is okay.  Not documented, though.  Also
    181078 [dvandeun@vu ] The requirement could be weakened a bit, because you do not need to
    181109 [g_ogata@op u] That's how I figured you would do it.  One of the most common

I'm SYCKened by the SYCK tutorial I found
180711 [ayZIG0106@qa] I am SYCK with disgust...
+ 180741 [mental@ry ia] It's really not his style.  Blame blind chance and indiscriminate
| 180790 [ayZIG0106@qa] You DO realise I was joking, right? :-)
| + 180803 [david@va ln ] And I was almost hoping.
| + 180804 [mental@ry ia] Belatedly.  I'm more than a little sleep-deprived today. :)
| + 181104 [peter@se an ] No, I assumed you were a troll.
+ 181103 [meta@po ox c] You know that REXML has a nice fast stream processing API, right?

Site is down
180712 [tlamb@sa k. ] Routing Error
180713 [dblack@wo bl] What site are you referring to?
180718 [mtrier@gm il] What does your routes.rb file look like?

Class instance variables, class variables and constants
180717 [merc@mo il .] Thanks to the code in attach, I've figured out what is now completely
+ 180733 [dbatml@gm .d] class A
| + 180779 [merc@mo il .] OK. One hour later, this is became clear...
| | 180820 [david@va ln ] Hardly ever? It's not like you need more instances to always get the same
| + 180827 [dblack@wo bl] There's an interesting discussion of this in an earlier thread; see
+ 180821 [david@va ln ] Nope. Class variables could still be "inherited", but they wouldn't clobber

Re: [QUIZ][SOLUTION] metakoans.rb (#67)
180739 [phurley@gm i] class Module
180750 [tristan.allw] Hey,
180752 [mental@ry ia] Blocks that take blocks aren't possible in Ruby 1.8; you'll have to

can't convert String into Integer
180742 [pere.noel@la] @label_list={}
+ 180822 [david@va ln ] I can't reproduce this. Can you make a simple full code example where this
| 180950 [pere.noel@la] the guy betwwen my chair and the computer ;-)
| 180960 [david@va ln ] Those things are arguably the largest source of bugs in any software
+ 180861 [bob.news@gm ] This gsub is pretty useless as it will replace the string by itself.  What
  180923 [david@va ln ] It strips the double quotes.
  180935 [bob.news@gm ] <david@vallner.net> schrieb im Newsbeitrag
  180949 [pere.noel@la] ;-)

Making my internal speaker beep
180744 [matt.ramos@g] alert, but I can't seem to get it to work.
+ 180745 [james_b@ne r] This works for me on Win2k
| 180748 [matt.ramos@g] Thanks for the quick response.
+ 180747 [matthew.moss] puts "\007"
+ 180784 [w_a_x_man@ya] print "\a"
  180788 [mental@ry ia] -mental
  180797 [w_a_x_man@ya] Or perhaps for "alert".

DB2 Driver on RHEL 4 x86_64
180753 [c_piliotis@y] Having some trouble getting the Ruby/DB2 Driver going on my x86_64
+ 180755 [Daniel.Berge] Is your Ruby 32 or 64 bit (i.e. what does (2**32).class return)?  Was
| + 180769 [c_piliotis@y] ruby 1.8.4 (2005-12-24) [x86_64-linux]
| + 180770 [c_piliotis@y] Oh, and 2**32 returns Fixnum on my x86_64 box.
|   + 180771 [christopher.] I'm using Ruby with DB2.  But I'm using the ODBC interface rather than
|   + 180778 [Daniel.Berge] You've got a 64 bit Ruby then.
|     180796 [c_piliotis@y] /usr/bin/ld: cannot find -ldb2
+ 181011 [c_piliotis@y] If anyone cares, I figured it out...

openssl library?
180758 [lists@tu ni ] Where I work we have an Ubuntu server. I installed Ruby by compiling the
+ 180759 [billk@ct .c ] I don't know why it doesn't build automatically, but whenever I build
| + 180761 [vjoel@pa h. ] Probably, you can just apt-get install libssl-dev.
| + 180762 [vjoel@pa h. ] Probably, you can just apt-get install libssl-dev.
| | 180764 [billk@ct .c ] I think I looked for openssl-dev and hadn't found it.
| + 180773 [lists@tu ni ] Thanks for the info.
+ 180835 [david@va ln ] Can't quite reproduce this. Uninstalling everything ruby-related and

Bluetooth on OSX
180765 [varvello@ya ] I'm trying to connect, over bluetooth, to a mobile device and send a
180972 [varvello@ya ] Any hints?

Re: metakoans.rb (#67)
180766 [interfecus@g] class Module

Yaml & SortKeys in 1.8.4
180767 [rm_rails@ch ] IIRC, in a previous version, I was able to make more
180768 [vjoel@pa h. ] In the interim, you can load the following patch whenever you want to

camping error
180772 [alex.combas@] Trying to learn to do cool and interesting. But failing at it. Any ideas?The camping.rb is just a horrible condensed mash otherwise I wouldpost the significant lines of code from the file, here is my error.

RailsConf 2005 podcasts
180774 [bryan@ra ls ] I'm looking for a downloads of ALL podcasts from RubyConf2005.
+ 180775 [agorilla@gm ] Bill Guindon (aka aGorilla)
+ 180776 [james_b@ne r] Subject line says otherwise.
  180782 [ezmobius@gm ] Bryan-
  180911 [bryan@ra ls ] Thank You, that's just what I wanted. :)

How to make Ruby on Rails working with appache 2.0?
180777 [mark.shen@ti] I need to know how to set Ruby on Rails working with Apache web server.
+ 180805 [steve@wa ts ] Thanks for your message about Ruby on Rails.  I think you'll find
+ 180806 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://segment7.net
  180878 [Todd.Linnert] Cathy,

perl equiv.
180780 [tallison@ta ] It's rather complete as a server.
181055 [shortcutter@] Do these help?
181529 [tallison@ta ] I installed the debian package for ruby dbi but there's nothing in the 'ri'
181576 [halostatue@g] It works very similarly to Perl's DBI module.

My "ri" died!
180789 [merc@mo il .] $ ri

accents and String#tr
180791 [fxn@ha hr f.] def self.normalize_for_sorting(s)
+ 180824 [david@va ln ] david@chello082119107152:~$ irb
+ 180873 [robin@ni or ] My guess is that the "tr" method treats its arguments as a string of

[ANN] HighLine 1.0.2 Released
180799 [james@gr yp ] =======================
181267 [james@gr yp ] ...but we unfortunately introduced a new one.  ;)
181596 [james@gr yp ] updated to 1.0.2, I strongly recommend going up to 1.0.4 now since a

can opengl work with an object method?
180800 [anne@wj .h r] I started with robot.rb in the sample folder of opengl-0.32g
+ 180807 [billk@ct .c ] ...
+ 180809 [logancapaldo] GLUT.DisplayFunc(upperarm.method(:traversetree))
| + 180817 [ilmari.heikk] Except that GLUT insists on getting a Proc :|glut.c:22    if (!rb_obj_is_kind_of(arg1,rb_cProc) && !NIL_P(arg1)) \         rb_raise(rb_eTypeError, "GLUT.%s:%s",#_funcname,rb_class2name(CLASS_OF(arg1))); \
| | 180927 [logancapaldo] ...
| + 180856 [spam2@no ea ] GLUT.DisplayFunc(upperarm.method(:traversetree).to_proc)
+ 180825 [g_ogata@op u] It doesn't work because `upperarm.traversetree' calls #traversetree
  180867 [anne@wj .h r] Thank you to the four of you, this list is just amazing to help folks

Newbie: need suggestion for "the ruby way"
180801 [yanping.jia@] #!/usr/local/bin/ruby
180937 [CodeSlapper@] It might be more helpful to show what kind of output you want, rather
+ 181031 [yanping.jia@] thanks a lot.
+ 181053 [shortcutter@] require 'find'
  181168 [yanping.jia@] yes, this is what i want.

YAML's handling of Bignum's in 1.8.4
180810 [rm_rails@ch ] Is there any reason why 1.8.4's YAML exposes what seems to
180999 [drbrain@se m] $ uname -a

ANN: Second drop of RubyCLR bridge
180811 [drjflam@gm i] ...
+ 180814 [tanner.burso] Any idea if this will, or will be capable of working with mono?
| 180816 [drjflam@gm i] ...
| 180833 [tanner.burso] ...
| 180840 [magicmat@gm ] Oh man, if this means we can finally write true-blue Windows GUI apps
| 180875 [drjflam@gm i] ...
+ 180991 [jgbailey@gm ] This is a great step forward. I've done a lot of Windows Forms work and
  + 181009 [jgbailey@gm ] ...
  + 181045 [yangfreecode] dynamic constant assignment
    181060 [drjflam@gm i] ...

[ANN] SwitchTower 1.0.1, SwitchTower Extensions
180839 [jamis@37 ig ] SwitchTower is a utility that can execute commands in parallel on

Need help understanding exceptions handling from C extensions
180841 [jacobrepp@gm] I'm working on the test cases for my AIO extension library on windows
180849 [jacobrepp@gm] rbaio.c(1279): ruby error: NoMethodError: ???

Fwd: [ANN] Ruby Reports 0.3.8 Released
180847 [gregory.t.br] = Ruport 0.3.8, The "Officially no longer vaporware" Release =

Idiomatic Ruby: Enumerations
180848 [listrecv@gm ] For some variables, we need to be able to choose from enumerations.
180859 [bob.news@gm ] I would not use a class variable here as it does not seem needed.  A simple

Re: [ANN] Ruby Reports 0.3.8 Released
180852 [gregory.t.br] I may have accidentally X-Posted this.  Sorry :-/

Idiomatic Ruby: Enumerations
180855 [listrecv@gm ] For some variables, we need to be able to choose from enumerations.

is there a seperate mailing list for novices?
180857 [info@ja eo a] After having writen many lines of bloat.... Is there a seperate list
+ 180862 [bob.news@gm ] You can just post them here.  If you feel more comfortable going to a
+ 180868 [phurley@gm i] To second what has already been said, don't run away, join the fun.
+ 180871 [ news@ja .f ] comp.lang.php.

Ruby Weekly News 13th - 19th February 2006
180858 [timsuth@ih g] Ruby Weekly News 13th - 19th February 2006

Re: lazy.rb 0.9.5 -- transparent futures!
180865 [minkoo.seo@g] [root@poseidon tmp]# ruby -v
180872 [jim@we ri hh] The installatiof of the lazy software is OK ...
+ 180909 [minkoo.seo@g] Still, no luck.
| + 180915 [rossrt@ro co] Haven't followed this thread all the way, but I'm assuming you must have
| + 180922 [logancapaldo] require 'rubygems'
+ 180946 [mental@ry ia] DIVERGES is a nodoc'd constant which is used internally.  If anyone can
  180968 [ruby-forum-r] Did you try   # :nodoc:  ?
  180993 [jim@we ri hh] The BlankSlate class in Builder handles this without resorting to the
  + 180997 [mental@ry ia] Hmm, that sounds more like it.  Any chance of a separate BlankSlate gem?
  | 181023 [jim@we ri hh] gem install blankslate --source http://onestepback.org/betagems
  | 181025 [guslist@fr e] irb(main):004:0> require 'blankslate'
  | 181041 [jim@we ri hh] Dang!  Autorequire bit me again.
  | 181163 [mental@ry ia] Invalid object explicitly tagged !ruby/Object: "requir"
  | 181217 [jim@we ri hh] Ahhh ... Interesting.
  | 181356 [jim@we ri hh] Yep, it was a bug in the new RubyGems server-side indexing software.
  | 181380 [nugend@gm il] Mental, could I perchance persuade you to add an optional parameter to
  | 181456 [mental@ry ia] future {
  | 181556 [nugend@gm il] Good idea, thanks!
  | 181588 [minkoo.seo@g] I'm sorry if this bothers you, but I have no idea what "circular
  + 181003 [ajohnson@cp ] That does appear to plug it -- and I even recall looking at

How can I evaluate and visualize code instead of running it.
180869 [anne@wj .h r] I am using a tree and traversing down a tree to generate opengl code
+ 180877 [bob.news@gm ] "anne001" <anne@wjh.harvard.edu> schrieb im Newsbeitrag
| 180969 [anne@wj .h r] Thank you Robert. I can see that it would be cleaner to
| 181054 [shortcutter@] You'll have to separate the generation code from the invocation code.
+ 180912 [billk@ct .c ] require 'opengl'
  180987 [anne@wj .h r] Thank you very much Bill Kelly for your response.

Using RMagick to extract IPTC data from JPEG file
180876 [jeremy.chata] I'm relatively new to Ruby and RMagick. I want to extract IPTC
180879 [rmagick@gm i] Send a JPEG with an IPTC profile in it to rmagick AT rubyforge DOT org
180888 [jeremy.chata] Before sending you an image, I want to try by myself :)
180892 [rmagick@gm i] RMagick simply provides an interface to the ImageMagick API. The doc
180899 [jeremy.chata] It's Ok, I've just found it!
180910 [jeremy.chata] Oups! I was wrong finally. get_exif_by_entry only returns EXIF
181049 [guest@no he ] The iptc_profile attribute of the Image class. (see post of rmagick!)
181062 [jeremy.chata] I'm currently working on it! Writing a class to format the binary IPTC
181123 [jeremy.chata] J?r?my

Question about String.unpack
180880 [jaco@ne tt a] typedef struct {
+ 180956 [logancapaldo] there isn't really a "clean" way to do this, since you are doing
| 180957 [jacobrepp@gm] I'm curious about binary protocol parsing in ruby and have scratched
| + 180966 [logancapaldo] ...
| + 181073 [ruby-talk@ba] Yes, I've needed one of these too (read + write).  My application was
+ 181042 [drbrain@se m] Your struct says char name[30] not 32...
  181051 [decoux@mo lo] Yes, but there is alignement
  + 181070 [phurley@gm i] I would suggest that Z30xx would be a better choice.
  + 181091 [jaco@ne tt a] Thanks...