90770-91100

90574-92940 subjects 91019-92852

^ newbee question about "missing" hash methods +, += and <<
90770 [linux marcre] I'm wondering if there is a special reason for the class Hash not to have the methods +, += and <<
+ 90776 [decoux moulo] What do you do if the key exist ?
| 90778 [hal9000 hype] I have seen this discussion before.
| + 90780 [decoux moulo] ruby -e 'p [1]+[2]==[2]+[1]'
| | + 90787 [linux marcre] and "delete" is even more obscure when we have "-" : e.g.
| | | + 90790 [decoux moulo] Well, it's more : no arguments for Hash#<< and Hash#+
| | | | 90796 [linux marcre] I read somewhere that the result of the "shift" method is unpredictable because there is no fixed
| | | | 90797 [decoux moulo] and I hope that you have read that it don't exist a method
| | | | 90802 [linux marcre] X-Newsreader: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.9)
| | | | 90804 [hal9000 hype] Notice there is a smiley. Apparently a small joke.
| | | | 90812 [linux marcre] no I meant the method "shift" and indeed there is no method "unshift" for hashes (in ruby, in php,
| | | | + 90815 [hal9000 hype] Hmm. I suppose I can see both sides of this.
| | | | + 90820 [djd15 po.cwr] class Hash
| | | |   90843 [linux marcre] yes, I know. it was only a suggestion to put it in the  base syntax / a question why it is not in
| | | + 90795 [bob.news gmx] "benny" <linux@marcrenearns.de> schrieb im Newsbeitrag
| | |   90801 [linux marcre] dito with
| | |   90846 [bob.news gmx] "benny" <linux@marcrenearns.de> schrieb im Newsbeitrag
| | |   90849 [linux marcre] I wasn't successful in deleting a key from hash, which is an hash on its own.
| | |   90855 [djd15 po.cwr] #!/usr/bin/ruby
| | |   90863 [linux marcre] ok, thank you for your explanation: I learn a lot from that!
| | |   90872 [bob.news gmx] "benny" <linux@marcrenearns.de> schrieb im Newsbeitrag
| | + 90788 [hal9000 hype] Yes, yes. :) But at least they have the same contents.
| + 90792 [sroberts uni] % irb
+ 90783 [bob.news gmx] "benny" <linux@marcrenearns.de> schrieb im Newsbeitrag
  90786 [linux marcre] ok

^ ./configure problem
90774 [william m4tr] uname -a
90785 [matz ruby-la] Try this patch.
+ 90808 [william m4tr] Thank you for your reply but how do you "try this patch"? Should I add
| 90814 [linux marcre] usually you can patch a patch with
| 90816 [william m4tr] Thank you again, now I feel even more stupid. I tried with this. Cut out
| + 90817 [william m4tr] Sorry my fault, "patch" is a script/pgm I shuld have looked in the old
| + 90818 [linux marcre] "patch" is the name of the program you use to change the files and "patch.file" was the name I took
+ 90836 [news-1075254] I get exactly this error if the gcc packages are not installed - fresh

^ Looking for Win32OLE sample code (Tables in Word)
90791 [jim freeze.o] I am looking for some sample code (or OLE reference)
90819 [chad chadfow] # Hi
90854 [robertm spel] change "Word" to "word"
90868 [chad chadfow] # > require 'win32ole'

^ accessing DLL help - Wintel platform
90794 [brian.leroy ] `[]': Unknown symbol "eximSignoffA". (RuntimeError)

^ rjni
90798 [intc_ctor ya] Please _do_ release it.  Perhaps you won't be having time to work on
+ 90810 [surrender_it] can I say that I agree?
+ 90821 [batsman.geo ] I have to confess it's not a matter of time -- it's just that I'm facing
  90882 [intc_ctor ya] Would it be premature optimization?  In other words, do you have all
  90888 [batsman.geo ] The main slowdown comes from overloading. Simple methods can be
  90906 [intc_ctor ya] Can a tool like Swig help to automate the process?  I wouldn't want to

^ MiniRubyWiki in action?
90803 [phlip_cpp ya] After "releasing" early MRW releases, I'm curious if it has seen
+ 90813 [ddwoske yaho] I would have used it, but my ISP does not offer Ruby.  Don't worry, I'm
| 90830 [phlip_cpp ya] The big problem is MRW couples to its own little server.
| 90831 [thomas_adam1] 'aswiki' and 'hiki' are two things you might want to look into.
+ 90850 [mail vrtprj.] A nice tool! Thanks for providing it. I use it on memory-constrained

^ Virus Alert
90828 [vcheck-servi] A virus (WORM_MIMAIL.R in readme.zip) detected in the message you (ruby-talk@ruby-lang.org) sent to sato@rcep.dpri.kyoto-u.ac.jp. The message was forwarded to sato@rcep.dpri.kyoto-u.ac.jp with an action "quarantined".

^ RubyForge scheduled maintenance tonight...
90833 [rich infoeth] RubyForge will be offline from 2100 to 2130 27 Jan EST (0200-0230 28

^ little client & server apps in Ruby for downloading authorized files
90838 [ruby hitmedi] I'm about to try a little test project in Ruby, but want to make sure
90853 [usenet andre] Why not simply use a http server? If you already have one running, write

^ Virus found in a message you sent
90841 [Symantec_Ant] A virus was found in a message sent by this

^ packing booleans
90842 [vjoel PATH.B] Does anyone else think it would be nice to be able to pack/unpack
90847 [bob.news gmx] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag
90903 [vjoel PATH.B] That's nice. I'd still prefer something built into pack, so that this

^ ruby-dev summary 22625-22687
90844 [ko1 namikila] This is "ruby-dev summary" of last week: 22625-22687.
90856 [aamine lover] My intent is not on "--help", but "--version".

^ float types
90845 [elathan phys] if (TYPE(arg1) == T_FLOAT)
+ 90848 [decoux moulo] Write it
| 90852 [elathan phys] Actually I want to check the arguments' types before calling the
| + 90869 [lyle knology] For the more general case (where both 42 and 42.0 pass), perhaps you
| + 90871 [nobu.nokada ] if (!NIL_P(val = rb_check_convert_type(arg1, T_STRING,
+ 90870 [matz ruby-la] No, Ruby C API do not processing mathematics.  It handles structure of

^ Does a function like pythons dir() excist for ruby ?
90859 [asbjoert ifi] I am using interactive Ruby for quick testing my swigged c++ module. In
+ 90861 [nobu.nokada ] $ ri instance_methods
+ 90877 [surrender_it] better :)

^ Your message has been received.
90862 [Sen.Hansen l] Thank you for your recent email.

^ Not Supported Type Array?
90874 [khaines enig] I am trying to use the OCI8 driver for Oracle with dbi to do some very,

^ Ruby & gd
90875 [me privacy.n] I'm posting again and again... after a friend of mine doesn't manage
+ 90878 [rasputnik he] Stick an entry for /usr/local/lib in
| 90885 [me privacy.n] Well, I did. But nothing changed :-(
| + 90886 [cbroult sapi] did you run
| + 90889 [mike stok.co] did you re-run ldconfig after updating /etc/ld.so.conf?
| | 90898 [me privacy.n] well, I did not.
| + 90890 [ahoward fatt] did you run ldconfig?
+ 90901 [Ephaeton gmx] A lacking -Wl,-R /usr/local/lib in the compilation (aka ``rpath'').
| 90956 [rasputnik he] Agreed (my OS, NetBSD , doesnt do system library hacks like that.
+ 90904 [nobu.nokada ] Are GD headers in /usr/local/lib?

^ Why does DBI insist on using it's own date/time classes?
90876 [david loudth] I can't seem to figure out why DBI uses its own set of date/time
+ 90880 [ahoward fatt] indeed, why not just use the existing classes directly and bypass dbi
| 90881 [ruby-talk pc] because it's a bit of a problem to deal with classes like these.  and a
| 90905 [nobu.nokada ] What about DateTime class?
+ 90942 [mneumann nte] Class Time cannot handle dates before the year 1970. And class Date

^ hostname -> www.codeforpeople.com
90879 [Ara.T.Howard] i set the host name on cfp by
90887 [ahoward fatt] please ignore.   sent this the wrong way.   sorry for the noise.

^ Undeliverable message returned to sender
90884 [Content Filt] This message was created automatically by mail delivery software.

^ PK Forum (Pakistani Community) Launched
90891 [noreply pkho] Dear Sir/Madam

^ Type
90892 [Noixe email.] Is there a method to know a type of object?
+ 90893 [Gavri_F info] $ri Object#class
+ 90894 [chad chadfow] # Hello,
+ 90895 [mike stok.co] you can call class e.g.
+ 90896 [neoneye adsl] Welcome to Ruby.  You don't have to excuse.. your English is ok.
+ 90899 [lyle users.s] You made a very good guess ;)
  90900 [Gavri_F info] POLS at work, ladies and gentlemen!  :)

^ Redirecting stdout from within a Ruby script.
90907 [DDouthitt cu] I have a script which has been running just fine, and uses stdout to print its data.
90908 [nobu.nokada ] STDOUT.reopen(IO.popen("/bin/mail #{ENV['USER']}", "w"))
90969 [ddouthitt cu] Thanks!  Yet another reason to love Ruby ;-)

^ naif question: ruby and mysql
90910 [probertm nos] I have the need to get information from a MySQL database and I'd like to
+ 90933 [neoneye adsl] I am wondering why you are not able to do that?
+ 91029 [timsuth ihug] * mysql-ruby: a wrapper around the C libmysqlclient library.

^ vimrc for Ruby or rubytidy
90913 [tjk annapoli] Does someone have a '.vimrc' file they will share
90914 [gsinclair so] Look in VimExtensions and VimRubySupport in the Ruby Wiki.  Then reply to
+ 90919 [gsinclair so] Having done that, I'll say that: (a) perltidy looks extremely useful; (b)
+ 90937 [sroberts uni] class Bar

^ I'm... confused
90915 [michael_s_ca] x = {
+ 90917 [david.naseby] [ :c => "c", :d => "d" ] # === Array.new( :c => "c", :d => "d" )
| 90923 [michael_s_ca] Yes, thanks everyone for the explanation.  I suspected as much, but relied too heavily on my background with /other/ languages.  =)
+ 90918 [nobu.nokada ] Yes, => always means hash element.
+ 90921 [zdennis mkte] Michael you are using hash syntax. Hence the  =>.  If you supply => Ruby

^ Project: in Ruby, Perl?
90916 [zdennis mkte] We've got a small project coming up at work that will deal with a MySQL
+ 90924 [tjk annapoli] Readability and re-usability will be better with Ruby.
+ 90927 [ptkwt aracne] Sure you can do OO Perl... you could probably do OO Assembly too if your
| + 90938 [mailinglists] As far as i know the complete OO System will be rewritten in an
| + 90939 [peter semant] We do all our work in OO Perl and I can't say that it has ever been a
|   90943 [michael_s_ca] last
+ 90930 [bob.news gmx] "Zach Dennis" <zdennis@mktec.com> schrieb im Newsbeitrag
+ 90931 [louis DELETE] Why have you ruled out J2EE? All the concurrency and transaction and
| + 90951 [zdennis mkte] Louis,
| + 90957 [rasputnik he] Unfortunately, so are a lot of features you *dont* need.
+ 90932 [khaines enig] As a guy who made his living with writing lots and lots and lots of Perl
+ 90946 [flgr ccan.de] Moin!
+ 90953 [aero6dof yah] With an eye towards long term maintenance, the standard Ruby
  90958 [peter semant] This is also a con. Perl has lots of prewritten modules that will save

^ Bignums and return
90934 [andre digira] def fact1(n)
+ 90947 [decoux moulo] the short answer : you don't want to know.
| 90962 [andre digira] Thanks for the explanation, Guy :)
| 90965 [decoux moulo] Well, this is a *C* function call which is added, return is like an operator
+ 91027 [jason.hutche] Well, I'm guessing that the behaviour without the explicit returns is
  91030 [andre digira] That gives me the same results the explicit return version gave me.
  91031 [decoux moulo] Well, here the explanation
  91045 [markjreed ma] Does Ruby not have even a basic peephole optimizer?
  91091 [decoux moulo] actually ruby don't use bytecode.
  91100 [markjreed ma] previous.gsub('bytecode', 'trees')

^ Virus Alert
90940 [Mailscanner ] The mail message (file: doc.scr) you sent to dsn@srasys.co.in contains a virus. (on the network)

^ ruby for wince
90941 [ropebu web.d] has someone create ruby for wince 3.0 with arm or xscale processor
90945 [joey joeygib] If I can ever get eVC++ installed I was going to try to compile it

^ Undeliverable message returned to sender
90944 [Content Filt] This message was created automatically by mail delivery software.

^ why won't ruby chomp for me?
90948 [emmanuel.tou] I was wondering.. IIRC, Perl came up with this "\n" in the end of
+ 90949 [decoux moulo] Well, I know nothing in this strange P language but this is not really the
| + 90952 [steven.jenki] I suppose any language can define it any way. But it seems clear that
| | 90954 [sroberts uni] Modelled after, but supposed to be easier to use than C, and gets() is widely
| + 90955 [mike stok.co] The real reason is that it was possible in ancient perls to miss the
+ 90950 [sroberts uni] This is an interesting observation, but its not the reason. perl does it
| 90970 [emmanuel.tou] so this is why so many tools insist on a final carriage return at the end of a
+ 91001 [nsb034 lostr] I too find the chomp an ugly perlism.  Has anyone written code that
  + 91003 [nobu.nokada ] It should be another method, I guess.
  + 91014 [ahoward fatt] it might not be agood idea when lines are empty... but i suppose it would

^ [ANN] rjni: using Java from Ruby through JNI (was Re: choosing ruby?)
90959 [batsman.geo ] Due to popular demand I have cleaned my latest code, added some API
90960 [tom infoethe] Very cool.  Do you suppose someone could move it over to the rjni
90964 [batsman.geo ] Sure, I was the one who registered it ;)
90968 [batsman.geo ] Done. From now on, the latest version of rjni will also be available at

^ Extensions & rpath [was: Re: Ruby & gd]
90961 [Ephaeton gmx] True. But being a NetBSD user myself, I prefer to kick all those lazy

^ Read-Only Array Access
90963 [gavin refine] still remains for me.
+ 90966 [bob.news gmx] "Gavin Kistner" <gavin@refinery.com> schrieb im Newsbeitrag
+ 90967 [ahoward fatt] first - why not freeze the objects in the array?  or simply give an access

^ time comparison
90971 [snowzone5 ho] to get the time in a format i can use i did
+ 90972 [guslist free] t3 = t2 - 24 * 2600 * x      # - for Time work on the seconds
| + 90973 [guslist free] With 3600 seconds in an hour, it even works better!
| + 90975 [markjreed ma] 3600.  There are 3,600 seconds in an hour, not 2600. :)
| | 90980 [hal9000 hype] Not in funkadecimal. :)
| | 90989 [guslist free] If accuracy really matters to you and funkadecimal doesn't fancy you,
| + 90990 [snowzone5 ho] i had something like that originally but i was getting something about not
|   91035 [kjana dm4lab] How about the following?
+ 90974 [markjreed ma] You can do math on t1 and t2 as if they were numbers.  The result is in

^ Why is  def foo?  legal but  @foo?  illegal?
90976 [gavin refine] Can someone tell me why you can define a method with a question mark in
90978 [chrismo clab] Don't know if it is possible, but I know the above won't work because
+ 90979 [kapheine hyp] =20
+ 90993 [gavin refine] What? You don't need a public setter function to set the value of an

^ Emacs comments
90977 [guillaume.ma] # Nice comment
90991 [matz ruby-la] Can you try the attached patch?
90994 [guslist free] Works great. Thanks for your quick response.

^ Checking the parameters "type"
90981 [imodev softh] I've trying to find out how to check the class of a parameter. Right, I
+ 90987 [surrender_it] look on raa for types.rb and strongtyping modules. These will make it
| 91069 [imodev softh] El Jueves, 29 de Enero de 2004 22:44, gabriele renzi escribióº
+ 91000 [ jupp gmx.de] class TestClass

^ [ANN] Tracery - a ruby interface to ptrace syscall on linux
90982 [basile-news ] Dear All,

^ wierd cgi behaviour in PP Ruby 1.8.0
90983 [damphyr free] Well it's the short calm period before the storm of an upcoming product
90985 [walter mwsew] I believe cgi.params will return an array of values.  So if the url
90986 [damphyr free] too much blabla

^ fallbacks using contiuations
90988 [vjoel PATH.B] Here is an amusing little control structure that shows off ruby's
91023 [jim weirichh] Stuff like this is so cool ...
+ 91033 [neoneye adsl] Nice nicE!
+ 91075 [avi beta4.co] I posted an implementation of Amb back in November, but I don't think
  91080 [jim weirichh] It seems that the amb function has been very popular lately.  I just

^ rescue *[]
90992 [vjoel PATH.B] Shouldn't these work the same?
90995 [nobu.nokada ] I think rescue without arguments implies StandardError, not
90997 [vjoel PATH.B] Agree.
91002 [nobu.nokada ] Actually, any arbitrary expression can be placed there instead
91004 [vjoel PATH.B] irb(main):006:0> begin; raise; rescue []; end
+ 91006 [matz ruby-la] The *[] trick is the only way (I think) for "nothing should be
| 91009 [vjoel PATH.B] class FooErr < StandardError; end
+ 91008 [nobu.nokada ] irb(main):001:0> def to_be_rescued; []; end

^ amrita and checkboxes
90996 [michael_s_ca] How does one control whether or not a checkbox is "checked" using amrita?  I'm familiar with using the a(:attr => value) form for modifying an attribute WITHIN a tag, but this attribute is either present or absent, it doesn't have a value as such.

^ Virus Alert
90998 [Mailscanner ] The mail message (file: readme.zip) you sent to stefania@luckynewsletter.com contains a virus. (on the network)

^ Re: amrita and checkboxes - solved
90999 [michael_s_ca] I'm an idiot, apologies for the earlier message.  I had failed in my test script to do the second t.expand() call...

^ Ruby and Perl Integration
91005 [ws johnwlong] All this talk about RJNI has gotten me thinking. Has anyone attempted to
91007 [thomas_adam1] The two are so very similar in many respects (heck, perl is probably
91010 [ng johnwlong] I would think their similarities would make it easier to integrate them. I'm
+ 91011 [zdennis mkte] John,
+ 91012 [harryo qiqso] There's already a similar thing for Python that works quite seamlessly, doing automatic conversion between Ruby/Python data types etc.
| + 91017 [ptkwt aracne] What's it called?  If it's doable between Perl & Python it should be
| | 91020 [harryo qiqso] The URL is
| | 91021 [harryo qiqso] It says "This is a module to call Perl functions from Ruby programs."
| + 91025 [surrender_it] I suppose that lib was designed as of python 1.5 . Python changed in
+ 91013 [mailinglists] And this is a logical mistake. Even if Perl is near Ruby in a few ways
  91015 [ng johnwlong] automatically
  + 91016 [thomas_adam1] This is harder than it sounds, especially with perl as TMTOWTDI. You'd
  + 91018 [ptkwt aracne] Perhaps, but I suspect that if it worked well enough that no one would
    91034 [sera fhwang.] Well, it would be one more option, wouldn't it? Right now you have two
    91048 [intc_ctor ya] Yes, it would be an option and it might introduce more Perl
threads.html
top