194978-195716

194812-196098 subjects 195231-277474

^ Ruby Weekly News 22nd - 28th May 2006
194978 [timsuth ihug] Ruby Weekly News 22nd - 28th May 2006

^ ASCII art 2.0 (was [QUIZ] Dungeon Generation (#80))
194984 [benjohn fysh] This is a fantastic quiz. I find it very interesting that ASCII art
+ 194986 [rossrt rosco] Ouch. My earliest programming experiences were with basic and logo on
| 194988 [benjohn fysh] get hairy back then. I think that's before I learnt about
+ 195051 [znmeb cesmai] This probably fits more into "coordination languages" than with "ASCII
  195155 [vjoel path.b] IIRC TkCanvas lets you put general Tk widgets on a canvas, connect them

^ A bug in ranges?
195003 [kevin.olbric] I think I may have stumbled upon a minor bug in ranges.
+ 195011 [halostatue g] Character ranges act funny, is all. You're expecting odd behaviour, really.
+ 195025 [robert.dober] ...
  195041 [robert.dober] ...
  195055 [kevin.olbric] I put together a short class to do LetterSeries.  It implements <=> and
  195057 [leavengood g] Just an FYI, this general topic of ranges and strings has been
  195090 [robert.dober] ...

^ Fwd: Quiz submission
195014 [james graypr] ...

^ [ANN] win32-dir 0.3.0
195019 [djberg96 gma] In the ongoing effort to Rubyify as much of the Win32 Utils project as

^ LWP like library for Ruby?
195028 [robert elast] Can anybody tell me does Ruby support perl like LWP programming?
195030 [djberg96 gma] I believe www-mechanize will do what you want.
195060 [xeno eskimo.] Is it called something different in gems?
195062 [xeno eskimo.] root@choochoo:~# gem install mechanize
195069 [logancapaldo] Looks like it failed with the installation of the documentation. It's
195070 [hsanson moeg] Try HTTPAccess2, it works for me...

^ Ske/Sjland Ruby User Group
195034 [christoffer.] I'd just like to announce that Sk?ne/Sj?lland Ruby User Group (SSRUG)

^ Re: What's wrong with Windows? (Was: Re: String segfault with wide character ...
195039 [Nuralanur ao] ...

^ [ANN] id3lib-ruby 0.3.0 (Windows binary gem)
195047 [robin nibor.] The fourth release of id3lib-ruby features a Windows binary gem, which

^ SafeObject protection for standard gotcha's.
195053 [john.carter ] I have just noticed that my codeline has silent breakage all over the
195240 [drbrain segm] a) unit tests would have caught this breakage for you.

^ PNG to OpenGL Texture (libpng)
195071 [xavier-list ] I'm trying to load a PNG file into an OpenGL texture using
+ 195091 [Nuralanur ao] ...
+ 195124 [ilmari.heikk] require 'RMagick'

^ Advanced ping
195075 [peter rubyra] I would like to ping a server, but additionally to a yes/no answer i
195078 [botp delmont] # I remember i did this long time ago in Python by calling the command
195079 [peter rubyra] ;-)) I am already rolling with Ruby, but I can not really remember

^ Equivalent of Python zfill?
195077 [peter rubyra] I need a function which takes a number (x) and outputs a string which
195080 [shortcutter ] => "0000000"
+ 195081 [botp delmont] # in Python this function is ''.zfill(5)
+ 195082 [peter rubyra] Robert,
  + 195083 [botp delmont] # But if "0"*7 is the 'normal' way of doing this, it's OK with me.
  | 195084 [danielbaird ] ...
  + 195085 [makenai gmai] It looks like zfill is primarily used for padding numbers, in which
    195087 [john-rubytal] irb(main):001:0> '8'.rjust(4, '0')
    195088 [rubytalk eac] ...

^ Directory Diff Script
195086 [mr.nicholas.] I am after a directory diff script in Ruby, so I can compare all the
+ 195089 [skurapat ucs] Yes, it's called diff. If you want a GUI try meld or kompare.
| 195110 [skurapat ucs] Whoops, I misread the question. Sorry :-)
+ 195165 [niklas grin.] #!/usr/bin/ruby

^ Iconv buffer overflow?
195092 [vshepelev im] require 'iconv'
195098 [matz ruby-la] I suspect that it's caused by underlying iconv library on your
195104 [vshepelev im] ruby -v
195157 [nobu ruby-la] You use wrong iconv.dll, which is linked against different
195171 [vshepelev im] Nobuyoshi Nakada

^ Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Window
195100 [jesusrubsyou] g = Greeter.new("World")
+ 195128 [christopher.] It's done that way so that it works with a variety of solutions.  It
+ 195146 [james graypr] James Edward Gray II
  195230 [jesusrubsyou] Perhaps it would be more enticing or accurately reflect the nature of
  + 195243 [emartin24 ho] What CMS is it running? It looks nice!
  | 195248 [james graypr] James Edward Gray II
  + 195399 [james graypr] I added "(in your browser)".

^ Installation question
195101 [pal palbergs] I use Mac OS and have installed Ruby. Sorry for a stupid question but
+ 195103 [pal palbergs] I seem to have the main Ruby folder in /usr/lib/ruby. Is that the
| + 195116 [halostatue g] Probably. I don't have a mac, yet.
| + 195117 [TimHunter nc] OS X 10.4.x comes with Ruby pre-installed in /usr. If you installed Ruby
|   195118 [Nuralanur ao] ...
|   195119 [Nuralanur ao] ...
|   195121 [Nuralanur ao] ...
|   195129 [M.B.Smillie ] While these are perfect instructions for any of the fairly standard
+ 195105 [pal palbergs] I have a ruby file in /usr/local/bin. Why?
| 195125 [M.B.Smillie ] This is, in fact, entirely normal.  The file in /usr/local/bin is the
| 195163 [pal palbergs] Thanks for an excellent explanation Matthew. :-) This helps me a lot.
| 195168 [Nuralanur ao] ...
| 195272 [logancapaldo] If I may throw in my two cents,
+ 195112 [halostatue g] % which ruby

^ one click annihilator
195102 [rover.rhubar] Time to upgrade from 1.8.2 to 1.8.4 finally.
+ 195114 [james_b neur] And probably also offer to help fix bugs and add features.
| 195403 [jp jeffpritc] James, I really enjoy your quotes.  This one especially, having just
| 195406 [james_b neur] Thank you.
| 195415 [jp jeffpritc] Actually both ruby and haskell have effected my C a lot more.  I've been
| 195438 [leslieviljoe] Woohoo! Well, someday maybe.
| 195474 [jmg3000 gmai] Actually, in general, "open source" projects (like, say, Apache) -- or
+ 195122 [paul.kraus g] ...
+ 195130 [snowzone5 ho] i've been caught like that with another program. i know that sinking
  195152 [ml.chibbs gm] ...
  195153 [dave burt.id] FWIW, I far prefer this proposal to the alternative of _not_ deleting
  195316 [gregory.t.br] I think that might get mucky, since the directory structure might
  + 195318 [schapht gmai] I think it comes from the fairly useless "home" directories on
  | 195336 [hramrach cen] What is useless about ~ on OS X? You can stuff everything in there
  | 195340 [schapht gmai] I wasn't talking about ~, I'm talking about "~/Documents".  Which
  + 195319 [james_b neur] Where do people put their custom libs, the code they want available to
    + 195322 [agorilla gma] I was under the impression that they 'belonged' site_ruby.
    + 195325 [ml.chibbs gm] ...
    + 195331 [halostatue g] I put them in the ruby application directory ... after I have them in
      195334 [james_b neur] You put your third-party gems into SVN/CVS?  After running 'gem install
      195346 [halostatue g] No. I put *my* code in SVN/CVS. The problem that the OP mentioned was
      195350 [leavengood g] I think C:\ruby is a reasonable default installation location. Adding
      195355 [halostatue g] Um. That's not what I meant to say. It defaulted to C:\ruby but should
      + 195362 [leavengood g] Yep. We have discussed this in other threads recently. For example see
      | 195386 [halostatue g] Hopefully, this will only be a 1.8.2 -> 1.8.4 oddity. It should *not*
      + 195373 [james_b neur] Yes.  And reinstall any code not included with the Ruby distro, such as

^ ANN: Madeleine 0.7.2
195106 [ndrsbngtssn ] What is Madeleine?

^ MySql limitations??
195108 [harish.tmh g] ...
+ 195109 [harish.tmh g] ...
| 195134 [M.B.Smillie ] 1. Which existing ruby module do you mean?
+ 195148 [zdennis mkte] Mysql will be able to handle millions of rows in a db in a table. It can
+ 195149 [dido.sevilla] MySQL should hold up just fine. I've got a Ruby app backed by a MySQL
  195167 [harish.tmh g] ...
  + 195271 [logancapaldo] If the requirements are that hard and fast it may be worth the effort
  | + 195274 [codeblogger ] ...
  | + 195281 [srinivas.j s] I missed the earlier mails, so I could be repeating something here --
  |   195423 [harish.tmh g] ...
  + 195308 [shortcutter ] Usually the DB is the limiting factor and not the app.  Whether 0.05s

^ Pickaxe doesn't appear to have anything on "x =3D []", ...?
195113 [xeno eskimo.] ...
195123 [dharple gene] Your post is a little cryptic, but I think you are asking about why

^ Saving a PDF locally
195126 [yoche2001 de] I am currently working on a small program, which saves copies of website
+ 195127 [vjoel path.b] Use "wb" instead of "w". On windows, this treats the data as binary
| 195131 [yoche2001 de] well, although I am working on OSX (forgot to mention), I tried your
| 195135 [vjoel path.b] Sorry! I jumped to conclusions about the problem.
| 195138 [yoche2001 de] just ran out of ideas ;-)
+ 195132 [dharple gene] open("http://www.somewebpage.com/atestfile.pdf", 'rb'){|u|
  195139 [yoche2001 de] Thanx, Daniel, your solution is working as well! And it is even shorter!

^ Newsgroup-mailing list bridge
195136 [erlercw gmai] ...
+ 195137 [TimHunter nc] About a month ago, more or less.
+ 195143 [transfire gm] I set up a google group mirror called 'ruby-talk-google'.
  195170 [daniel.schie] I like to read my newsgroups with Thunderbird though...
  195173 [now bitwi.se] How about GMANE (http://gmane.org/)?
  195176 [daniel.schie] Why thank you! It seems to be working fine.

^ Re: [Foxgui-users]Re: FXRuby - Howto remember some default settings as specified by the user ?
195140 [vjoel path.b] IIRC it doesn't cause buffer overflow, it just truncates the data. But

^ It Will Get Better - Article Mini Series
195141 [zdennis mkte] I am writing a mini-series of articles on my site called "It Will Get

^ It Will Get Better - Article Mini Series
195142 [zdennis mkte] I am writing a mini-series of articles on my site called "It Will Get
195164 [botp delmont] # http://blogs.mktec.com/zdennis/
195265 [johnyhwang g] Zach,
195266 [agorilla gma] Also looking forward to more.

^ gmailer reply
195151 [turtlethief ] Is there a way to reply to a message with the ruby gmailer library? I
195156 [phasis68 hot] First you need a msg_id value of the original message.

^ [ANN] rcov 0.5.0: code coverage + callsite info, RubyGems, Rant...
195169 [ mfp acm.org] Source code, additional information, screenshots... available at
195175 [botp delmont] # Source code, additional information, screenshots... available at
+ 195178 [dharple gene] I think a way to open up the file in an external editor would be
+ 195213 [ mfp acm.org] Attractive at first sight, but on second thought I don't think anybody would
| 195256 [botp delmont] # Attractive at first sight, but on second thought I don't
+ 195387 [chris octopo] Seconded! I love it. Thank you bery much. My candidate for the "I
  195392 [schapht gmai] Maybe this is what you mean (I don't know ZenTest), but how hot would
  195427 [ mfp acm.org] $ rake rcov RCOVOPTS="--save"
  195450 [schapht gmai] Bravo!  What's your encore gonna be?
  195477 [ mfp acm.org] *chuckle* You just gave me one idea. I've got a piece of paper on my desk

^ [ANN] Toronto RUG meeting Sun 4 June 2006
195172 [mike stok.ca] The first Sunday of the  month is coming up, which means that the

^ Best practices for library development?
195177 [vshepelev im] I'd like somebody to share their experience in organizing library
+ 195185 [skurapat ucs] See the 'profile' library provided in Ruby core.
| 195187 [vshepelev im] No-no :)
| + 195206 [schapht gmai] Personally, I don't think I'd want my tests run after *every*
| + 195209 [ mfp acm.org] As for coverage analysis: I run rcov before committing to make sure I'm not
|   195212 [vshepelev im] Behalf Of Mauricio Fernandez
+ 195188 [jmg3000 gmai] Yes.

^ Error handling and recovery
195179 [patrick pksp] I have a module which specifically deals with connections to a MSSQL
195181 [now bitwi.se] [Error not being re-raised]

^ exception handling
195182 [tirins.play ] I have a(nother) question concerning exception handling.
+ 195183 [now bitwi.se] require 'yahoofinance'
| 195193 [tirins.play ] So simple!
| 195194 [now bitwi.se] [begin ... rescue ... end]
+ 195186 [daniel.schie] You just need normal exception handling, right?

^ Ruby papers in Linux Journal.
195184 [jf.web3 gmai] Has anybody noticed *that* ? :)
+ 195189 [rmagick gmai] I'm glad I fixed the RMagick gem :-)
+ 195201 [schapht gmai] Not to mention DHH is looking impressively GQ on the cover.  That
| 195205 [a2800276 gma] Also on the cover of Dr.Dobbs...
+ 195217 [leavengood g] Interesting. But I'm a little concerned that none of the Ruby articles
  + 195221 [james_b neur] FWIW, I don't work for Linux Journal, and they've published a Ruby
  | 195228 [toalett gmai] Is your article available somewhere online?
  | + 195235 [james_b neur] James Britt
  | + 195236 [james_b neur] What struck me, though, was that it was the sort of thing they should
  |   195250 [schapht gmai] Amen to that.
  |   195252 [james_b neur] Ironically, they published an article on Ruby by Dave Thomas, back in
  + 195225 [pat.eyler gm] Integration with Ruby --

^ Problem installing ruby in a local (home) directory.
195191 [jmbrook2 unc] ./miniruby ./ext/extmk.rb --dest-dir="" --make="make" --mflags=""
195198 [nobu ruby-la] What does this command show?

^ Newbie Question
195192 [pete777 safe] All,
+ 195204 [a2800276 gma] I'm afraid that if you're new to programming, there isn't really any
| 195208 [schapht gmai] Don't forget "Learn to Program" http://www.pragmaticprogrammer.com/
| 195264 [pete777 safe] Thanks everyone, this helped much to check out these URL's.
+ 195207 [jmg3000 gmai] This list is most often used for folks asking specific questions after

^ Sybase ASE / Active Record...
195195 [Stuart.Holde] Does anybody have any experience getting Ruby to talk to a Sybase ASE

^ optparse "invalid option" problem
195196 [developer mi] 'optparse' seems to continue parsing even after the first invalid
195197 [tony twincod] ...
+ 195202 [developer mi] if I use order!() instead of parse!() then it works the way I need
| 195211 [logancapaldo] And here's how I did it, not bothering to look at the source
+ 195203 [nobu ruby-la] optparse has two modes, permutation and in-order.  It is

^ Trying to download files using WWW::Mechanize
195215 [Daniel.Berge] Ruby 1.8.4
+ 195218 [aaron_patter] require 'rubygems'
+ 195220 [james_b neur] I'm thinking you need to grab the href value, glom it onto the base URL,
| 195222 [Daniel.Berge] That will work, thanks!
+ 195223 [aaron_patter] Hey Dan.
  195226 [Daniel.Berge] Your last post actually led to a solution, but this still helps me as it

^ Best UI library ?
195216 [nomail noval] program). It must be multiplatform and easy to bundle with that small
+ 195219 [lyle.johnson] FXRuby (http://www.fxruby.org/) might feet your needs. It is included
+ 195270 [znmeb cesmai] I like QTRuby ... however, it's very large and full-featured.
| 195278 [piet.haderma] Behalf Of Nuno
| 195279 [nomail noval] Yeah, I tried several one yesterday night and at least this one was very
+ 195282 [v.konrad lse] the ruby-gnome2 web site explains that (under windows one does not

^ Can not connect MS Access Database
195224 [raymond.jaco] What URI should I use?
195227 [will_green u] I have never used DBI, but I suspect that you first need to create an

^ What happened to clrtoeol?
195229 [leslieviljoe] Hey people
195239 [Daniel.Berge] I'm going to go out on a limb and guess "crappy shell environment".
195247 [leslieviljoe] Well there are functions to move the cursor, set colours and output text...
195302 [Daniel.Berge] I've never used curses, so I'm not sure what advantages it has overs
195484 [leslieviljoe] Oooh, thanks for that! I may just write some kind of bridge layer so
195611 [jesusrubsyou] I would be quite interested in this if you ever get something working.
195661 [leslieviljoe] This was one of the projects I was referring to. Once again I took out
195716 [jesusrubsyou] Dunno if you want to bother with it, but just to let you know, I made a
threads.html
top