120697-123769 subjects 121095-122103

Re: bitmaps, GTK and RMagick.
120925 [no@sp m. le ] I wanted the reverse recently, and I used RMagick to read my png

several questions on using gems
120927 [lists@za a. ] 1. If I write a Ruby library (including a gem package) for others, what
120930 [batsman.geo@] require_gem 'foolib' doesn't make much sense anymore: now RubyGems
120954 [lists@za a. ] i see. thanks. should've gone and Use The Force (TM) first.
120967 [jim@we ri hh] require works at a file level.  require_gem works at a package level.  There
120972 [lists@za a. ] well, can't the rubygem's Kernel#require hack detect that when the
120974 [jim@we ri hh] It's not a technical problem preventing the require hack from detecting it,

SWIG and Arrays (of ints)
120936 [omega697@gm ] I'm trying to get SWIG to create a wrapper for some C code.
120979 [tpeters@in a] Passing an array of integers from Ruby to C with SWIG requires
121070 [omega697@gm ] /* This one allocates a cmac, which is the thing I'm going to be
121075 [omega697@gm ] So here's what I have right now.  The only thing that's missing is the

rdoc breaking
120939 [jamie@da g. ] I'm running rdoc to generate both ri and html formats, but both break.
120950 [dave@pr gp o] You'll need to email me (off list) the file that causes the error,

Inner Class Relationship
120940 [james@gr yp ] I have an inner class that needs to send it's parent object (outer
+ 120942 [transami@ru ] If I understand correctly, try passing self of parent to the the inner object
| 120943 [james@gr yp ] I don't know what it is about me and not being able to properly convey
| + 120948 [transami@ru ] Making a guess, you're four objects down a hierarchy chain and want to reach
| + 120962 [neil@ha ub .] class Inner
| | 120963 [neil@ha ub .] I missed a couple 'Proc.new's in there, but the idea should be clear
| + 120987 [billk@ct .c ] How about,
+ 120946 [sera@fh an .] Since you haven't said much about how you're using this, maybe my
  120947 [james@gr yp ] Yes.
  + 120951 [angus@qu va ] [James Edward Gray II <james@grayproductions.net>, 2004-11-21 01.22 CET]
  | 120957 [gfb@to es ft] class Outer
  + 120952 [sera@fh an .] Maybe part of the question has to do with the nature of private-ness in
  | + 120956 [transami@ru ] ( o _  елеще┴
  | + 120960 [zdennis@mk e] I have to go with Francis's suggestion on this. Using Observable to
  | | 120965 [james@gr yp ] It has the exact same flaw actually, update() must be public.
  | + 120966 [james@gr yp ] This is a good point.  I learned my OO in Java, so I'm naturally
  + 120977 [laurent@mo d] James,

Having Ruby 1.8 decide on "File.open" or 'IO.popen'?
120941 [ jupp@gm .d ] To write to (mbox) file I use "File.open('/var/spool/mail/jupp')". To
+ 120945 [neil@ha ub .] "| " are valid characters to start a filename, so how would you
| 121079 [ jupp@gm .d ] SomeClass.open('| /usr/bin/fetchmail')   # Stream
+ 120958 [dga@lc .m t.] Kernel.open("/var/spool/mail/jupp")

Error trying to get going with Rails Todo tutorial...
120953 [abe_ml@bo em] I know this is a retarded problem, but somehow I managed to set things up
+ 120955 [jamesUNDERBA] Can you post the actual command you are running?
| 120959 [abe_ml@bo em] Sure!
| 120964 [jamesUNDERBA] Well, that seems pretty straightforward ...
| 120969 [abe_ml@bo em] I'm almost afraid to ask but could the fact that I'm using Ruby 1.9 cause
| 120970 [tobias.luetk] Try the windows one click installer
+ 120975 [batsman.geo@] Could you try to edit C:/cs/ruby/bin/rails and change line 9 to

Windows - calling system with multiple parms
120961 [colotechpro@] I'm having a problem getting a system call to Windows XP to work. I
+ 120971 [flgr@cc n. e] irb(main):011:0> system("ruby", "-v", "-c", "-e()")
| 120984 [colotechpro@] irb(main):001:0> system("ruby", "-v", "-c", "-e()")
+ 120980 [halostatue@g] system("dcpropgst.bat", @@gsdir, @@gsfontdir, @@prttxt)
| 121003 [colotechpro@] Austin,
| 121035 [flgr@cc n. e] p [@@gsdir, @@gsfontdir, @@prttxt]
| 121110 [colotechpro@] Ah, if only it were that easy. I do a "puts" of those variables before
+ 121143 [lyndon.samso] Cant you do
  121226 [colotechpro@] Same results as before, not passing the 2nd and 3rd parameters.
  121232 [lyndon.samso] Try using literals rather than your class variables.
  121574 [colotechpro@] Good ideas, but I never could make it work with more than 1 parameter.
  121619 [nick@ac iv h] Maybe try forward slashes in the paths in the parameters.  Possibly
  121693 [colotechpro@] Nick, I changed my Ruby program to pass only 1 parm to my batch file,

gettext and require
120976 [clr3.10.rand] Dear Rubyists,
120982 [mutoh@hi hw ] Now, Ruby-GetText-Package manages a catalog-file(mo-file) per a file,
120985 [clr4.10.rand] [gettext local to files]
120986 [mutoh@hi hw ] Of course, if there are other good ideas, I'll change it.
120988 [clr4.10.rand] No. But I can say what I expected: once bindtextdomain is called, my
121036 [mutoh@hi hw ] If you require another libraries which supports gettext as its textdomain,
121045 [clr4.10.rand] There are probably more things to concider than stated already. So I

RVG - a 2D drawing library add-on for RMagick
120978 [cyclists@nc ] I've just uploaded the initial release of RVG - Ruby Vector Graphics. RVG is

wxRuby 0.6.0 is released!
120983 [devel@ni re ] wxRuby 0.6.0 has been released and is now available for
121027 [Meino.Cramer] g++ -fPIC -O3 -mtune=athlon-xp -mcpu=athlon-xp -mfpmath=sse -funroll-loops -fforce-addr -falign-functions=4 -mpreferred-stack-boundary=2 -msse -m3dnow -mmmx  -fPIC `wx-config --cxxflags`   -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I.   -c htmleasyprinting.cpp
121034 [devel@ni re ] The issue is that wxGTK-2.4.2 fails to include the htmlproc.h header

Ruby and the XBox
120989 [phlip_cpp@ya] I'm studying the game industry now. The Lua language has a strong lead for
+ 120990 [mailing-list] Probably right.  Ruby doesn't aim to be only an extension language.
+ 120991 [sera@fh an .] I just bought "Freedom Force", a silly-but-fun superheroes pseudo-RPG.
| 121041 [sdate@ev re ] It was one of those things which started off as a sudden brain wave
+ 121002 [rff_rff@re o] just to point out: a game engine exists that uses ruby has the language
+ 121039 [nathaniel@ta] I think one thing that may hurt Ruby in this market is: it's not
+ 121162 [niklas@ka i.] I am an Xbox programmer and a Ruby enthusiast. As an application
  121187 [tobias.luetk] If you want to see some heavy lua work in action check out the today

Typical/idiomatic examples of dynamic code generation with Ruby?
120992 [none@no e. e] I'm writing a paper on the "rediscovery of dynamic languages".
+ 121033 [mneumann@nt ] I think stuff like "attr_accessor" is typical for Ruby. It could be
| 121063 [rff_rff@re o] I'm not sure samples in ruby would be hard in python and viceversa, but
| 121069 [none@no e. e] Thanks for the tips. Today I got the Pickaxe (2004 edition) and I found
| 121124 [lostboard200] ...
+ 121156 [james@gr yp ] I don't know if this is the kind of thing you're after and I don't know

Inherited Data
120993 [gavin@re in ] As part of the home automation core I'm writing, I need a way to have
120995 [gavin@re in ] I forgot to add: I also need it to be able to support the 'inheritance
122137 [vjoel@PA H. ] class LightSwitch

rails / active record / og: question on tree structures
120994 [itsme213@ho ] Does rails (or active record) have any way to conveniently define and take
+ 120997 [se@di it le ] take
+ 121025 [ gm@na el gr] I dont understant what you want to do, can you explain?
| 121052 [itsme213@ho ] take
+ 121067 [tobias.luetk] I might have missunderstood the question, in this case just ignore me.

120996 [lyndon.samso] Firstly, I'd like to say, a great IDE for a great language!
121180 [Laurent.Jull] Thanks for the kind words!

Newbie Question: Escaping special characters in array of strings
120999 [jenjhiz@ya o] Because of the embedded single quote, this statement does not work.
+ 121000 [flgr@cc n. e] irb(main):001:0> %w[it's you're they're]
+ 121001 [jgb3@em il b] irb(main):002:0> %w[it's you they're]
| 121013 [jenjhiz@ya o] (blushing) I don't understand ... I was using SciTe, and I couldn't
+ 121004 [dave@bu t. d] What version of Ruby are you using?
+ 121048 [springer@si ] Maybe what you need to do is escape the spaces.

[SOLUTION] Object Browser (#8)
121005 [jgb3@em il b] ...
+ 121006 [mark@oc we .] I'm new to using gems. Can you tell me the command I need to run to get
| 121008 [jgb3@em il b] Unfortunately, ruby-gtk2 is not a gem, nor is it in rpa. So you have to
| + 121021 [rff_rff@re o] not hard, and actually your example runs fine :)
| + 121037 [mutoh@hi hw ] See http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install+Guide+for+Windows
|   + 121044 [mailinglists] And fails on step 2 with
|   | 121049 [mutoh@hi hw ] On step 2? Did you do step 3 and 4?
|   | 121050 [mailinglists] Yes.
|   | 121054 [mutoh@hi hw ] Hmm. What versions are the One click installer and GTK ?
|   | 121057 [jgb3@em il b] I just tried it (thank-you, VMWare!), and it worked flawlessly. I'm also
|   | 121060 [mutoh@hi hw ] Thanks.
|   | 121071 [mailinglists] Yes after re-install it works.
|   + 121051 [batsman.geo@] The RPA stuff is on the way (will take a while though).
|     + 121053 [jgb3@em il b] Awesome, batsman. Thanks! I figured it wouldn't be easy--I tried to
|     + 121055 [mutoh@hi hw ] Wow, Great ;).
+ 121038 [james@gr yp ] [snip description]
| 121042 [jgb3@em il b] Here are three screenshots. (It's really nothing special to look
| 121096 [flgr@cc n. e] I agree heavily. This looks very interesting. Would you be interested in
| 121158 [jgb3@em il b] I'd be happy to make that change, Florian, but I think it might be
| 121185 [ruby@br an s] My code is also in need of a good overhaul. It developed while learning how to use a Gtk::TreeView and reflection, so it is not structured very good. I'd love to merge it with Jamis solution, but I can't promise that I'll get time because I'm in the midst of my carreer-finals.
| 121188 [flgr@cc n. e] The remote ones work by running part of an irb session at the server and
| 121199 [gsinclair@so] Definitely!
+ 121471 [ruby@br an s] I'm polishing my solution, and I'm wondering why you are storing object id's instead of object references in the tree? I'd imagine that storing the object reference takes the same amount of space as storing the id. Is it maybe because objects can't be GCed while they are stored in the tree? On the other hand, wouldn't GCing break your program?
  121640 [jamis_buck@b] Well...quite possibly this was due to my massive inexperience with

dealing with email attachments (photos)
121007 [ptkwt@ar cn ] I'm setting up a photo blog (probably using Hobix, but that's not final yet).
+ 121014 [kbullock@ri ] It just so happens that I was working on a moblog (mobile blogging)
+ 121022 [matt@li ke .] RubyMail and its companion package RubyFilter are geared toward this

[ANN] FeedBlender 0.1.0
121009 [sera@fh an .] I've just released FeedBlender 0.1.0. FeedBlender is a program for

Zlib::GzipReader/Writer and strings
121012 [jim@fr ez .o] Is there a way for Zlib::GzipReader or GzipWriter
121023 [batsman.geo@] Just doing  Zlib::GzipReader.new(anIO) (where anIO responds to #read
121073 [jim@fr ez .o] Thanks. I think I was missing the b.finish statement.

Some progress but have hit a new error working through the Todo tutorial... Anyone recognize it?
121015 [abe_ml@bo em] ...
121016 [abe_ml@bo em] Oh, whups. The state of the todo_controller.rb file that evokes this error
+ 121029 [david@lo dt ] class TodoController < AbstractApplicationController
+ 121040 [jgb3@em il b] Declare the scaffolding outside of the method, at the class level, like
  121059 [abe_ml@bo em] Thanks for the help Jamis!
  121062 [jim@we ri hh] Try completely removing the entire index method.  You are overriding the
  121064 [abe_ml@bo em] TypeError in Todo#index

FreeRIDE question
121017 [lyndon.samso] Firstly, I'd like to say, a great IDE for a great language!
+ 121028 [curt@hi bs c] Are you running on Windows? There is a problem like this on windows which is
| 121032 [lyndon.samso] Yup, thanks for the headsup
+ 121061 [dan.o.koral@] Try " STDOUT.sync = true "   at the top of the script - works with RDE
  121181 [Laurent.Jull] I wish it was that simple but it's not where the problem is :-) Thanks

Rails + subversion guideline
121018 [johan@al ar ] I'm just about to upload my first rails application onto my production
121019 [drbrain@se m] We've been including the whole thing, with a svn:ignore "*.log" set on

Instiki problems
121026 [Ryco@gm .n t] I have some problems with instiki, which we use as a internal projekt wiki
+ 121031 [Ryco@gm .n t] Seems like I am wrong. Previous Snapshots that already include the pages
| 121129 [Ryco@gm .n t] Seems like I am not the only one having problems with Instiki. I got a
| + 121137 [rasputnik@he] Have you had a look on the home wiki? There are several patches that should
| | + 121140 [Ryco@gm .n t] Check my first mail in this thread. I looked at the home wiki, but could not
| | + 121141 [rff_rff@re o] Maybe someone could provide an up to date patched package and put a link
| + 121147 [david@lo dt ] I'm sorry for your troubles, Ryco. Instiki is indeed not being actively
|   + 121148 [batsman.geo@] Time to pass the patch pumpkin?
|   + 121149 [Ryco@gm .n t] Then why does the home wiki say
|     + 121163 [drewry@gm il] This type of talk isn't the way to get help out of a normally very
|     + 121164 [curt@hi bs c] This *is* the land of open source.
|       121166 [Ryco@gm .n t] Sorry, this came over way to harsh from my side. I read some irony in Davids
|       + 121170 [david@lo dt ] There was no irony. I had more hot pans that I could swing. Something
|       | 121172 [jgb3@em il b] Well said, David. I completely concur. If I write something and make it
|       + 121201 [jan@sp m. pa] Who would write open-source programs if they had to support it forever?
+ 121132 [batsman.geo@] You could try to find the source of this with something like
  121139 [Ryco@gm .n t] Thanks a lot for your reply, Mauricio!

Blocks, serailizing, and "configure, don't integrate"
121043 [hgs@dm .a .u] I seem to have run into a conceptual barrier, and it has caused me
+ 121046 [bob.news@gm ] Hmmm,
| 121056 [hgs@dm .a .u] Yes, that would solve one of the problems.  I could keep the
| 121074 [bitserf@gm i] I don't see much benefit to be gained from serializing the callback
| 121087 [hgs@dm .a .u] Yes, I was beginning to think something like this but it would be
+ 121080 [ptkwt@ar cn ] Have you looked at nodewrap?
  121085 [hgs@dm .a .u] No, I'll take a look. Thank you.

Tk widget fixed width
121058 [mark@oc we .] How can I request that a Tk widget have a fixed width?
121088 [nagai@ai ky ] Please give the width to the TkOptionMenubutton object.

[ANN] Table Helper for Ruby on Rails
121065 [rb@ra hi ou ] I have put the initial release (0.1) of a table helper for Ruby on Rails

fast shutdown of webrick
121068 [neoneye@ad l] On my box trap(:INT){ s.shutdown } takes some time to complete.
+ 121083 [david@lo dt ] I'm pretty interested in the answer to both of these questions :). The
| 121084 [jgb3@em il b] I haven't done any exhaustive research into this topic, but this is what
| 121091 [gotoyuzo@no ] The attached patch adds a hook to wait till a request
+ 121086 [ljz@as as .c] I'm not sure why you would need the fork.

[Documentation Bug] Method Missing
121072 [ruby@br an s] Just a minor typo in the documentation
121076 [ruby@br an s] Another Thing I noticed. (I checked against the  documentation at ruby-doc org. I hope that is the newest version.)
121078 [pragdave@gm ] The documentation is correct, but the list of methods in Object has
+ 121228 [gsinclair@so] No.  When I get my CVS account back [1], the answer will be yes.
+ 121236 [ruby@br an s] And regarding the two snake_case vs camelCase issues is this going to be changed?

PostgreSQL database connectivity from ActiveRecord?
121077 [abe_ml@bo em] ...
121099 [mneumann@nt ] updating to 0.2.2 fixes this.

121081 [sarahtanemba] Dear Rubyist, I'm yet still trying to use Ruby for simple Web
121128 [rasputnik@he] Briefly, you need to install fastcgi (the development kit)
121145 [gsinclair@so] Wow, sounds easy.  However, there's a meme doing hte rounds that
121152 [rasputnik@he] Hey, *I* managed it :)
+ 121442 [sarahtanemba] the regular cgi with ruby scrips and it works, but then when i tried to
+ 121443 [sarahtanemba] the regular cgi with ruby scrips and it works, but then when i tried to
  + 121503 [gjenkins@xc ] I haven't seen one, but it may help a little bit to know what gets
  + 121819 [carlwork@yc ] I got close to getting it working on Windows but finally gave up and

Any WebDav library/wrapper out there?
121082 [usenet@ki ob] Anyone know a decent Ruby WebDav client library? I need MKCOL, PROPFIND
121104 [rasputnik@he] Not that I know of, but there is ruby-neon, which gives you the next layer

rake problem
121089 [itsme213@ho ] Rake (0.4.11) seems to add a whole bunch of new methods to Object. Why is
121146 [jim@we ri hh] Because 90% (a statistic I just made up) of Rake usage deals with the creation

any ruby libs to do modular integer arithmetic?
121090 [sroberts@un ] Modular reductions, modulare inversions, etc.
+ 121197 [unet@re x. o] It's far from complete or optimal, and it's nearly undocumented,
+ 121202 [unet@re x. o] I forgot to mention that Shin-Ichiro Hara's wonderful

Re: Tales of the Regex (Re: About Regular Expressions)
121092 [Harry_Ohlsen] That's a nice example, but where can we find the module?  I looked on RAA and tried a Google but couldn't find it.  I'm probably just going blind, but ....
121097 [flgr@cc n. e] This is available at http://noegnud.sourceforge.net/.flgr/re_english.zip
121098 [Harry_Ohlsen] Thanks, Florian!

[Solution] Object Browser (#8)
121093 [ruby@br an s] Thanks for the quiz. I always wanted to learn more about the reflection capabilites of ruby, and indeed there is quite a lot to learn. This quiz was not too complicated, but the design of a good gui takes a lot of time. (Especially if you're not accustomed to the toolkit).
+ 121094 [cmills@fr es] That is *really* nice.  Very impressive.  Kudos.
+ 121102 [james@gr yp ] I've been unfortunately, very busy this weekend and haven't had time to
+ 121168 [zdennis@mk e] Brian, this is very cool....very very cool! Thanks for making this
+ 121183 [jim@fr ez .o] I particularly liked the clean colorization of the ruby code. What did you use
| 121186 [ruby@br an s] I use xemacs' htmlize package to convert the ruby-code to html. Then I include a stylesheet. (You can copy that from my page if you want)
| 121198 [jim@fr ez .o] Thanks. Uhh, sorry to be so dense, but (not being an emacs person) it
| 121235 [ruby@br an s] I installed htmlize as part of the debian package
+ 121357 [ruby@br an s] So I took some time and refactored my solution. It now has a modular and extendible structure (at least I hope so). It should be possible to easily write non-gtk ui's and extend the reporting capabilities.
  121361 [james@gr yp ] Brian, I'll kill ya!  I just finished the summary about 15 minutes ago.
  121399 [ruby@br an s] I'd say with all your contributions your ego should be floating quite high ;)
  121408 [ruby@br an s] After reading this again, I want to stress that I'm very happy if someone criticizes my code or points me to weaknesses. I'm doing this to learn, not to boost.
  121430 [james@gr yp ] Ditto for me.