124455-128974 subjects 124822-130258

help on making ruby code faster
124607 [lists@za a. ] I use 128bit GUID values a lot, and on my Guid class there's the
+ 124609 [    s@xs .d ] I'm not sure on the effects it will have, but try extracting
| 124615 [lists@za a. ] By constants, do you mean literal constants like '0-9a-z', 'a-z0-9', and
| + 124619 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
| | 124628 [lists@za a. ] I see. Suddenly I want immutable strings like in Python.
| | 124629 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
| + 124622 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
+ 124613 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
| 124625 [lists@za a. ] I applied your suggestions below and it got slightly worse. So I guess
| 124630 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag
+ 124633 [kig@mi fi in] It makes the only-few-conversions case slower and by uses some more
| 124637 [lists@za a. ] Thanks! I missed that.
+ 124683 [martin.anker] faster. I have replaced your internal string representation (the @val)
  124684 [martin.anker] ops, I should have read your first post with more attention :-)
  + 124706 [martin.anker] def self.from_base36(val)
  | 124714 [lists@za a. ] Hey, didn't know that String#to_i takes an argument. Cool...
  + 124711 [lists@za a. ] Well, depending on the situation, I now will reconsider storing the GUID

verifying a network connection
124612 [metz@gm .n t] is there a way in Ruby to find out, whether my computer has built up a
+ 124617 [joaopedrosa@] If you want to see if there is an Internet connection available try to
+ 124627 [zdennis@mk e] A quick and easy solution is the following, which work on a windows machine.
| 124647 [premshree.pi] Interesting... but it seems unncessarily complicated.
| 124753 [ jupp@gm .d ] Your solution *may* solve the problem that Thomas has but it does not
| 124791 [metz@gm .n t] Yes, I described my problem not very precise, but Premshree's solution
| 124803 [premshree.pi] I'm psycic -- I can predict questions. :D
| 124958 [ jupp@gm .d ] Some illusionist (I cannot recall his name) will pay you 1M (USD IIRC)
| 124970 [martindemell] That'd be James Randi
| 125044 [ jupp@gm .d ] Sounds familiar.
+ 124644 [jamesUNDERBA] My laptop run win2k.  I like to start the machine and go make coffee,
| 124725 [    v@vs .r ] Also you may use "nncron", http://www.nncron.ru/
+ 124715 [metz@gm .n t] Thank you all for your help.

RES: Bare-bones Ruby
124618 [ANDRE.LEIRAD] I actually need something similar to Java interfaces, so for example if

RES: Bare-bones Ruby
124620 [ANDRE.LEIRAD] so

RES: Bare-bones Ruby
124624 [ANDRE.LEIRAD] Dependencies are dependencies!
124668 [rcoder@gm il] Andre,

gem oddities?
124626 [ceaser@ro e.] have been migrating a lot of my stuff over to my unix box..
124704 [eule@sp ce c] (In response to news:IqdAd.73$F23.31@newsfe3-gui.ntli.net by Stu)

Connecting to MySQL 4.1.x from Ruby on Windows XP
124635 [johnwilger@g] Is there a library available to allow connections to MySQL 4.1.x from
124636 [joaopedrosa@] If ODBC is enough, I have connected to MySQL 4.1.x on Windows XP with
+ 124638 [joaopedrosa@] Small correction. I meant libmysql.dll, instead of libclient.dll. Sorry.
+ 124641 [johnwilger@g] Thanks, I'll give that a shot.

Restricting file access in Ruby
124640 [John Allen <] Hey, I don't know if this is a subject that's been beat to death or not as
+ 124655 [flgr@cc n. e] I'd suggest using $SAFE and having a custom interface for doing IO that
+ 124837 [usenet@an re] This is what users and permissions on OS level are good for; I think it
  124841 [zdennis@mk e] I concur with Andreas, this isn't necessarily the job for ruby to be

Some methods don't work in WinXP?
124642 [clarke@qu li] Do some methods / functions not work in the WinXP implementation?
+ 124643 [decoux@mo lo] Array#sort return a copy of the array.
| 124670 [clarke@qu li] Can you hear the screams from Connecticut? (USA).
+ 124645 [joaopedrosa@] You need a.sort! if you wish the elements in the array to be changed.
  124648 [premshree.pi] Braces? :)

code generator
124646 [emran.syed@g] Code Generators!!!!!!!
124657 [myfirstname@] Your product is crap and stop spamming USENET.

[bug] DBD::ODBC
124665 [james.cromwe] require 'dbi'
124893 [mneumann@nt ] maybe it's even better to return nil, if column_size is not set.

Re: Nitro 0.7.0 + Og 0.7.0
124667 [george.mosch] Sadly no :( I 'll try to make a simple pure Ruby xslt library

optparse and gets
124673 [rb@ra hi ou ] I'm using optparse.
124691 [nobu.nokada@] opts.parse!(ARGV)

My sister survived - Please donate money.
124680 [mailinglists] i mentioned a few times on this list that i'm married with a woman
124692 [DavidLZhao@g] Amazon.com is running a program where you can donate using your credit

unit testing of methods which do Kernel#exit
124685 [rubytalk@bo ] I ran into a problem -- how to unit test methods that have
124693 [nobu.nokada@] Kernel.exit does it too, so you can catch "exit" by `rescue
124708 [bob.news@gm ] "Nobuyoshi Nakada" <nobu.nokada@softhome.net> schrieb im Newsbeitrag
124712 [rubytalk@bo ] my tests use just assert_* ... but the tested code sometimes exits
124713 [bob.news@gm ] "Michal" <lists+rubytalk@box.cz> schrieb im Newsbeitrag

[OT] Re: RubyForge (was: Best ways to accelerate Ruby's popularity)
124686 [eero.saynatk] Does RF use straight GForge HTML or are there differences?
+ 124687 [jamesUNDERBA] Please, no.  Minimalistic is OK, but the red is overdone.
| 124779 [martindemell] Heartily seconded!
+ 124688 [tom@in oe he] There are a few customizations, but most of those are in the

Ruby USB Drive
124689 [intinig@gm i] For Christmas I got a wonderful present: a 1GB USB drive. Now I feel
+ 124690 [zdennis@mk e] You should generate rdoc from the source of ruby. In case you don't have
| + 124697 [curt@hi bs c] Actually, you can use FreeRIDE on all three platforms.
| | 124710 [intinig@gm i] On max it's textmate, but I'll give FreeRIDE a try :)
| | 124718 [curt@hi bs c] Curt
| + 124709 [intinig@gm i] I prefer Circus Charlie, but mame is going there with some roms :)
+ 124702 [martindemell] Besides which, according to a slashdot poster this is not recommended,
  125597 [bg-rubytalk@] With all due respect to "a slashdot poster", if you're running off a
  125604 [app1tam@up .] How about PIMKI?  I've stuck a PIMKI (repository? Blob? ...?) on my USB

RES: RES: Bare-bones Ruby
124719 [ANDRE.LEIRAD] Thanks, I'll take a look at it. Right now I'm looking at four script
124721 [    s@xs .d ] s.

Santa Clause like you have never seen him before
124720 [djones@tr ad] Santa Clause like you have never seen him before, this is a must see for everyone: http://paddy.home.comcast.net/

unusual rake behaviour
124724 [yogi.kulkarn] I've been getting some odd behaviour in rake. The foll cmd doesn't
124730 [jim@we ri hh] Hmm ... I just tried the code you supplied on a windows box and a debian
124747 [jim@we ri hh] Someone just informed me that in 1.8.2 test/unit does not work with the
+ 124759 [david@lo dt ] I'd much like to hear the story too. Rails has long since committed its
| + 124762 [davehal02@ha] I checked CVS.  There is a recent (Dec. 19) change made by Nobu to
| | 124768 [davehal02@ha] Here's a patch for Rake that provides a workaround for the 1.8.2
| | + 124774 [jim@we ri hh] Thanks ... The fix is in CVS.  I'll test the fix tomorrow on a windows box and
| | + 124776 [yogi.kulkarn] Dave, thanks! that fixes the problem for now.
| + 124798 [ksibilev@be ] I asked this question to ruby-core
+ 124786 [drbrain@se m] What's wrong with ruby -Ilib testfile?
  124804 [jim@we ri hh] You can only explicitly run one script at a time. Most projects have more than
  124845 [drbrain@se m] Oh, right.
  124849 [jim@we ri hh] At first I thought that this wouldn't work because I need to use the -I
  125007 [nobu.nokada@] I did want lib/test/unit.rb to be equal to test/runner.rb, but
  125009 [jim@we ri hh] Actually, for it to be useful to Rake, the list of directories must be put at
  125012 [nobu.nokada@] So, it should be
  125013 [jim@we ri hh] Yes, that would work.

ruby leaks on "special" use of include
124726 [langstefan@g] Just tried to do some fancy (probably inappropriate)
+ 124727 [decoux@mo lo] I hope that you have seen that ::include is recursive
| 124728 [langstefan@g] Thanks for the tip! I must have been blind....
+ 124729 [lthiryidontw] In the normal ruby way to do things, you should replace

gsub (replace path)
124731 [pustoi@sp ls] How can I cut out piece from path in ruby ?
124732 [bob.news@gm ] <pustoi@spils.lv> schrieb im Newsbeitrag

[ANN] Ruby Facets, v0.6.0
124735 [transami@ru ] A N N O U N C I N G

rdoc in rails
124736 [roelandmoors] Would it be difficult (possible) to make a generator for rdoc that
+ 124740 [david@lo dt ] I think RDoc already generates the data in YAML, doesn't it? I too
| 124834 [roelandmoors] I don't think it generates YAML, but it does generate XML. I'm
| 124857 [roelandmoors] I was wrong about the YAML output. The RI generator generates
| + 124861 [jamesUNDERBA] How stable is the file format for the ri YAML data?
| | 124883 [Dave@Pr gP o] The file format is YAML. I don't think there've been any incompatible
| | 124884 [jamesUNDERBA] That's actually what I meant t say; not if YAML itself is stable, but if
| + 124881 [Dave@Pr gP o] To create YAML directly, you could probably just serialize the
+ 124892 [roelandmoors] I created a version: http://roeland.textdriven.com/

rdoc problems on windows
124737 [mental@gm il] I'm having problems doing anything with rdoc on windows. I discovered

RES: RES: RES: Bare-bones Ruby
124738 [ANDRE.LEIRAD] Looks like a viable option. Right now I'm fighting with Ruby, Pike, Ferite,

Distributed application
124741 [lgomez@vf ne] It's my first time posting to this ML so this may be out of place...
+ 124742 [roelandmoors] Maybe you can just create a web application? Then all you need is
| 124860 [sarahtanemba] But rmagick #display does NOT work under windows as well as linux. We
| 124862 [cyclists@nc ] An annoyance, yes, since #display is a handy way to preview images, but
| 124863 [zdennis@mk e] Couldn't the person who wants to use #display just write the
| 124868 [sellberg@go ] No need to find out the browser.
+ 124743 [drbrain@se m] Something must run on the client for the server to see it, or the=20
+ 124748 [lgomez@vf ne] I've worked almost exclusivelly on web applications and do understand
+ 124754 [lgomez@vf ne] - an app-server
  + 124764 [flgr@cc n. e] It sounds a lot like this can be done easily with DRb. It is included
  + 124858 [lgomez@vf ne] Any recommendd resources where I can learn more about xterminals?

irb issue
124744 [lmlourenco@i] I'm not sure if this is a bug but I've stumbled across some strange
124745 [lorenzo_jorq] ...

#send and private methods
124746 [brian@po ke ] I apologize if this has been discussed before and I missed it...
+ 124758 [david@lo dt ] That it's endlessly useful to be able to mindfully sidestep the rules
| + 124770 [mmerlin@bi f] I find that my sympathies lie with the original poster (Brain Palmer) with
| | + 124773 [glenn.parker] Except that, if a private function is irrevocably private, it actually
| | | 124781 [mmerlin@bi f] I agree with Glenn Parker that denying access to private methods will
| | + 124775 [jamesUNDERBA] I agree; any  mechanism for by-passing orderly program control should be
| | | 124818 [transami@ru ] It goes both ways, you need a solid foundation to build on, agreed, but you
| | + 124788 [drbrain@se m] $ ruby
| | + 124801 [mneumann@nt ] I think #send should not be able to call private methods (from a proper
| + 124777 [brian@po ke ] I certainly see what you mean--I can think of cases where it would be
|   124828 [glenn.parker] I expect this would be a fairly easy system to compromise.  Think of all
+ 124760 [jamesUNDERBA] Ruby is (almost) pure OO if that is what you want.  And it behaves that

[ANN] SQLite3/Ruby 0.6
124751 [jamis_buck@b] Just taking a moment to make a quick announcement of SQLite3/Ruby 0.6.

HTTP doesn't work. A bug?
124755 [lists@be tr ] /usr/lib/ruby/1.8/net/protocol.rb:197:in `sysread': End of file reached (EOFError)
125379 [lists@be tr ] I examined the problem thoroughly and now, I can reproduce

[ANN] Tengen 0.1.0
124756 [lrz@gn me or] I am proud to announce Tengen 0.1.0, the first release!
124763 [rff_rff@re o] wow, I was taught the basis of Go nearly two weeks ago, and now I have a
124772 [jeffm@gh st ] I've added this to my bookmarks as something to take a look at later.

Hot 22 Year Old Looking For Love Or More.....Please Contact Me.......... HQ2Y
124766 [jfravnfg@fr ] Im 22 and I really need someone to take care of me.  Please take a look at my home page, you can email me and maybe we could get in touch and have some fun.

Other language websites
124780 [martindemell] Slightly offtopic, but I thought it'd be useful to look to other

124782 [wmorgan-ruby] Some time last month there was talk of a Ruby BitTorrent client. I don't
124991 [mail@ex ep i] I`d like to test your torrent client but had some problems with each of
124992 [wmorgan-ruby] Dear Andreas,
124993 [wmorgan-ruby] Incidentally, I just tried
124994 [mail@ex ep i] The mail with my .torrent file is on it`s way to you. Here is another

Sharing interests with other Ruby programmers (anyone using stumbleupon.com yet?).
124792 [erik@te pn t] And a Firefox extension to use it: (I think other browsers are supported
124796 [gavri.fernan] Stumbleupon kicks Orkut's ass and probably the asses of every piece of

124793 [Bil.Kleb@NA ] I just read Mike Clark's blog entry,
124895 [mike@cl rk a] I'm not aware of a Ruby port of JUnitPerf.  I suspect it would be quite
124905 [david@lo dt ] We actually almost have such a tool. It's been "almost finished" by
124914 [mike@cl rk a] Excellent.  I look forward to it.

seeking hints for fast io
124795 [jeffm@gh st ] I have a class which holds data while it's being manipulated. The
124844 [drbrain@se m] Probably not, String#+ creates new strings, String#<< appends to an
124852 [bob.news@gm ] "Eric Hodel" <drbrain@segment7.net> schrieb im Newsbeitrag
124864 [jeffm@gh st ] I typed this from memory and forgot a line. sout is an array, but I'll
124874 [jeffm@gh st ] Did some simplistic benchmarking,
+ 124876 [eero.saynatk] So are you doing something like this now?
+ 124888 [bob.news@gm ] "jm" <jeffm@ghostgun.com> schrieb im Newsbeitrag

Inheritance of class variables
124805 [eustaquioran] I was talking with chris2 and matju on the irc channel and they gave me
+ 124806 [david@lo dt ] I was quite puzzled by this behavior too. So in Rails I use a module
+ 124808 [decoux@mo lo] it's strange your model :-)))
| 124809 [eustaquioran] Hey Guy!
| 124811 [sdate@ev re ] No, you scared not only becuase you are newbie, but because you were
| 124812 [eustaquioran] So he's kind of a Ruby boogeyman??? :-D
| 124814 [rhkramer@fa ] My brain is not here either (I'm fighting a headache) and I didn't
| 124817 [eustaquioran] No need to say goodbye or write a song ahahah. :-)
| 124833 [rhkramer@fa ] ...
+ 124836 [bob.news@gm ] "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@yahoo.com> schrieb im
| + 124838 [eustaquioran] Thanks for your example! I'm learning about Ruby and taking notes to make a
| | 124850 [bob.news@gm ] "Eustaquio Rangel de Oliveira Jr." <eustaquiorangel@yahoo.com> schrieb im
| + 124938 [rubylang@us ] I think I understand all of the code in this thread (see below) except for the
| | 124971 [bob.news@gm ] "darren" <rubylang@usmstudent.com> schrieb im Newsbeitrag
| | 124979 [rubylang@us ] I'm using 1.8.1, too.  I just retyped it in and it's working now.  Guess it
| + 125049 [jeff@op nd m] I remember seeing this topic posted to the list a while ago. I'm trying to
|   125068 [decoux@mo lo] You probably make confusion between class variable and class instance
+ 126013 [curne@cu no ] Personally I never use class variables, since I consider them

attr / attr_accessor
124807 [markus.werne] I'm quite a newbie in programming. Last year I came to perl and now I'm
+ 124810 [hen_WEG_dami] You can already have that kind of thing.
| 124815 [rff_rff@re o] I /think/ he knew this and was looking for a way to define a bunch of
| 124819 [markus.werne] Hmmm...
| 124823 [hen_WEG_dami] OK, I misunderstood you :)
+ 124909 [discordantus] class Module

[ANN] Nukumi2 0.1
124813 [chneukirchen] I'm proud to release the first public version of Nukumi2 today, 0.1.
124816 [jamis_buck@b] Great job! Congrats, Christian. :) I'll definately be giving this

Ruby X10 Interface to Firecracker CM17A
124820 [jim@we ri hh] I've got my first cut at a Ruby interface to the CM17A firecracker X10
125498 [carlwork@yc ] As I understand it Jim, you are interfacing with the firecracker unit on
125500 [jim@we ri hh] The firecracker connects to the serial port of the computer and I have
125503 [mike@cl rk a] I've tried using several USB-to-serial adapters to connect a
+ 125514 [jim@we ri hh] Hmmm... The firecracker works by toggling the RTS/DTR signals of the RS272
| 125525 [mike@cl rk a] ReadMeOSXUSA18.txt
+ 125526 [carlwork@yc ] Does X10 have a controller that uses some other type of interface?
  125586 [mike@cl rk a] There are a variety of X10 controllers that interface with the computer

GUI toolkit which separates UI specification from driving logic
124821 [gavri.fernan] Is there one for Ruby? Like XUL for Javascript.
+ 124825 [curt@hi bs c] Not that I know of. But just to keep the record straight, JavaScript has
| 124829 [raphael.baud] Just to mention that I would be interested in ruby in mozilla. I have an extension
+ 124827 [rff_rff@re o] I think wxwidget has an xml format named XRC for this.
| 124840 [zdennis@mk e] yes, and wxruby has support for XRC.
+ 124835 [neil@ha ub .] libglade
+ 124985 [devel@ni re ] To add to the previous wxruby posts, wxruby has support for XRC, which
+ 125642 [georgesawyer] "Thinlet Contrib is a collection of example apps, addons, plugins,
+ 125645 [georgesawyer] "Thinlet Contrib is a collection of example apps, addons, plugins,