120925-122137

120697-123769 subjects 121095-122103

^ Re: bitmaps, GTK and RMagick.
120925 [no spam.plea] I wanted the reverse recently, and I used RMagick to read my png

^ several questions on using gems
120927 [lists zara.6] 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 zara.6] i see. thanks. should've gone and Use The Force (TM) first.
120967 [jim weirichh] require works at a file level.  require_gem works at a package level.  There
120972 [lists zara.6] well, can't the rubygem's Kernel#require hack detect that when the
120974 [jim weirichh] It's not a technical problem preventing the require hack from detecting it,

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

^ rdoc breaking
120939 [jamie dang.c] I'm running rdoc to generate both ri and html formats, but both break.
120950 [dave pragpro] You'll need to email me (off list) the file that causes the error,

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

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

^ Error trying to get going with Rails Todo tutorial...
120953 [abe_ml bozem] 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 bozem] Sure!
| 120964 [jamesUNDERBA] Well, that seems pretty straightforward ...
| 120969 [abe_ml bozem] 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 ccan.de] 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 ccan.de] 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 activeh] 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 highwa] Now, Ruby-GetText-Package manages a catalog-file(mo-file) per a file,
120985 [clr4.10.rand] [gettext local to files]
120986 [mutoh highwa] 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 highwa] 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 nicrea] 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 nicrea] 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 fhwang.] I just bought "Freedom Force", a silly-but-fun superheroes pseudo-RPG.
| 121041 [sdate everes] It was one of those things which started off as a sudden brain wave
+ 121002 [rff_rff remo] 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 kagi.] 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 none.ne] I'm writing a paper on the "rediscovery of dynamic languages".
+ 121033 [mneumann nte] I think stuff like "attr_accessor" is typical for Ruby. It could be
| 121063 [rff_rff remo] I'm not sure samples in ruby would be hard in python and viceversa, but
| 121069 [none none.ne] Thanks for the tips. Today I got the Pickaxe (2004 edition) and I found
| 121124 [lostboard200] ...
+ 121156 [james graypr] I don't know if this is the kind of thing you're after and I don't know

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

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

^ SOT: FreeRIDE
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 yaho] Because of the embedded single quote, this statement does not work.
+ 121000 [flgr ccan.de] irb(main):001:0> %w[it's you're they're]
+ 121001 [jgb3 email.b] irb(main):002:0> %w[it's you they're]
| 121013 [jenjhiz yaho] (blushing) I don't understand ... I was using SciTe, and I couldn't
+ 121004 [dave burt.id] What version of Ruby are you using?
+ 121048 [springer sil] Maybe what you need to do is escape the spaces.

^ [SOLUTION] Object Browser (#8)
121005 [jgb3 email.b] Well, I was kind of waiting to see what other people came up with, but
+ 121006 [mark ociweb.] I'm new to using gems. Can you tell me the command I need to run to get
| 121008 [jgb3 email.b] Unfortunately, ruby-gtk2 is not a gem, nor is it in rpa. So you have to
| + 121021 [rff_rff remo] not hard, and actually your example runs fine :)
| + 121037 [mutoh highwa] See http://ruby-gnome2.sourceforge.jp/hiki.cgi?Install+Guide+for+Windows
|   + 121044 [mailinglists] And fails on step 2 with
|   | 121049 [mutoh highwa] On step 2? Did you do step 3 and 4?
|   | 121050 [mailinglists] Yes.
|   | 121054 [mutoh highwa] Hmm. What versions are the One click installer and GTK ?
|   | 121057 [jgb3 email.b] I just tried it (thank-you, VMWare!), and it worked flawlessly. I'm also
|   | 121060 [mutoh highwa] 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 email.b] Awesome, batsman. Thanks! I figured it wouldn't be easy--I tried to
|     + 121055 [mutoh highwa] Wow, Great ;).
+ 121038 [james graypr] [snip description]
| 121042 [jgb3 email.b] Here are three screenshots. (It's really nothing special to look
| 121096 [flgr ccan.de] I agree heavily. This looks very interesting. Would you be interested in
| 121158 [jgb3 email.b] I'd be happy to make that change, Florian, but I think it might be
| 121185 [ruby brian-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 ccan.de] The remote ones work by running part of an irb session at the server and
| 121199 [gsinclair so] Definitely!
+ 121471 [ruby brian-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 aracne] I'm setting up a photo blog (probably using Hobix, but that's not final yet).
+ 121014 [kbullock rin] It just so happens that I was working on a moblog (mobile blogging)
+ 121022 [matt lickey.] RubyMail and its companion package RubyFilter are geared toward this

^ [ANN] FeedBlender 0.1.0
121009 [sera fhwang.] I've just released FeedBlender 0.1.0. FeedBlender is a program for

^ Zlib::GzipReader/Writer and strings
121012 [jim freeze.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 freeze.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 bozem] charset="us-ascii"
121016 [abe_ml bozem] Oh, whups. The state of the todo_controller.rb file that evokes this error
+ 121029 [david loudth] class TodoController < AbstractApplicationController
+ 121040 [jgb3 email.b] Declare the scaffolding outside of the method, at the class level, like
  121059 [abe_ml bozem] Thanks for the help Jamis!
  121062 [jim weirichh] Try completely removing the entire index method.  You are overriding the
  121064 [abe_ml bozem] TypeError in Todo#index

^ FreeRIDE question
121017 [lyndon.samso] Firstly, I'd like to say, a great IDE for a great language!
+ 121028 [curt hibbs.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 allard] I'm just about to upload my first rails application onto my production
121019 [drbrain segm] We've been including the whole thing, with a svn:ignore "*.log" set on

^ Instiki problems
121026 [Ryco gmx.net] I have some problems with instiki, which we use as a internal projekt wiki
+ 121031 [Ryco gmx.net] Seems like I am wrong. Previous Snapshots that already include the pages
| 121129 [Ryco gmx.net] 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 gmx.net] Check my first mail in this thread. I looked at the home wiki, but could not
| | + 121141 [rff_rff remo] Maybe someone could provide an up to date patched package and put a link
| + 121147 [david loudth] I'm sorry for your troubles, Ryco. Instiki is indeed not being actively
|   + 121148 [batsman.geo ] Time to pass the patch pumpkin?
|   + 121149 [Ryco gmx.net] Then why does the home wiki say
|     + 121163 [drewry gmail] This type of talk isn't the way to get help out of a normally very
|     + 121164 [curt hibbs.c] This *is* the land of open source.
|       121166 [Ryco gmx.net] Sorry, this came over way to harsh from my side. I read some irony in Davids
|       + 121170 [david loudth] There was no irony. I had more hot pans that I could swing. Something
|       | 121172 [jgb3 email.b] Well said, David. I completely concur. If I write something and make it
|       + 121201 [jan spam.spa] 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 gmx.net] Thanks a lot for your reply, Mauricio!

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

^ Tk widget fixed width
121058 [mark ociweb.] How can I request that a Tk widget have a fixed width?
121088 [nagai ai.kyu] Please give the width to the TkOptionMenubutton object.

^ [ANN] Table Helper for Ruby on Rails
121065 [rb raphinou.] I have put the initial release (0.1) of a table helper for Ruby on Rails

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

^ [Documentation Bug] Method Missing
121072 [ruby brian-s] Just a minor typo in the documentation
121076 [ruby brian-s] Another Thing I noticed. (I checked against the  documentation at ruby-doc org. I hope that is the newest version.)
121078 [pragdave gma] 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 brian-s] And regarding the two snake_case vs camelCase issues is this going to be changed?

^ PostgreSQL database connectivity from ActiveRecord?
121077 [abe_ml bozem] charset="us-ascii"
121099 [mneumann nte] updating to 0.2.2 fixes this.

^ Ruby/FastCGI
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 xch] I haven't seen one, but it may help a little bit to know what gets
  + 121819 [carlwork ycs] I got close to getting it working on Windows but finally gave up and

^ Any WebDav library/wrapper out there?
121082 [usenet kikob] 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 hot] Rake (0.4.11) seems to add a whole bunch of new methods to Object. Why is
121146 [jim weirichh] 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 uni] Modular reductions, modulare inversions, etc.
+ 121197 [unet rexx.co] It's far from complete or optimal, and it's nearly undocumented,
+ 121202 [unet rexx.co] 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 ccan.de] This is available at http://noegnud.sourceforge.net/.flgr/re_english.zip
121098 [Harry_Ohlsen] Thanks, Florian!

^ [Solution] Object Browser (#8)
121093 [ruby brian-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 frees] That is *really* nice.  Very impressive.  Kudos.
+ 121102 [james graypr] I've been unfortunately, very busy this weekend and haven't had time to
+ 121168 [zdennis mkte] Brian, this is very cool....very very cool! Thanks for making this
+ 121183 [jim freeze.o] I particularly liked the clean colorization of the ruby code. What did you use
| 121186 [ruby brian-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 freeze.o] Thanks. Uhh, sorry to be so dense, but (not being an emacs person) it
| 121235 [ruby brian-s] I installed htmlize as part of the debian package
+ 121357 [ruby brian-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 graypr] Brian, I'll kill ya!  I just finished the summary about 15 minutes ago.
  121399 [ruby brian-s] I'd say with all your contributions your ego should be floating quite high ;)
  121408 [ruby brian-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 graypr] Ditto for me.
threads.html
top