297791-299153 subjects 298153-305989

fxruby gem install problem
297970 [tomcloyd@co ] I'm trying to install the most recent fxruby gem - I don't understand
+ 297971 [cmdjackryan@] you can simply download them from there.
| 297976 [tomcloyd@co ] Thanks, Phillip. Please see comments below...
| 297993 [lyle@ly ej h] This error (which, unfortunately, is very vague) is indicating that it
| 401284 [lists@ru y- ] This is right on the money.  I had a feeling there was some prerequisite
+ 298001 [thopre@gm il] ...
| 401285 [lists@ru y- ] This is the right thing to do if you want the latest version, also did
+ 298003 [luislavena@g] gem install fxruby -v '1.6.14'

foxGUIb - status?
297977 [tomcloyd@co ] This project - "a GUI creator and code generator for FXRuby" - looks
297996 [meinrad.rech] ...
298019 [tomcloyd@co ] Henon,

CGI - problem with calling methods
297978 [rboell@tu ar] First post here, I hope it is in the right place. I am new to Ruby,
297999 [rboell@tu ar] problem solved, it was a file permissions issue for the Person file. I
298008 [bbxx789_05ss] Yep.  I was doing some tests, and I came to the same conclusion.
298011 [bbxx789_05ss] I guess we might as well post the solution for future searchers.  To

AutoIt over Ruby question - How do I call ObjGet()?
297981 [seannakasone] Here's an example of using autoit inside of ruby.
297989 [david.mullet] I can't offer much help with regard to AutoIt, but you can connect to an
298048 [w_a_x_man@ya] This seems not to work.
298055 [david.mullet] A key distinction here is between window.Name and window.Document.Title
298085 [david.mullet] [Re-posting my reply, as it seems to have been truncated on Google
298089 [w_a_x_man@ya] The problem was that I had no html document loaded; the titlebar

WeakRef -- excessive memory usage?
297983 [David Beswic] program. It had ballooned from about 65mb after startup to 300mb. I
297987 [gancuimian@h] ...
298273 [David Beswic] Thanks for your reply Derek. I can definitely see that the intepreter is
298293 [rick.denatal] 1) The job of the GC is to preserve any reachable objects while
298452 [David Beswic] Thanks for your help Rick.

ERROR: While executing gem ... (Gem::GemNotFoundException) C
297992 [thillaiarasu] am instaling rails its showing rails installed.bu if i tried rails

Instance Variable On-Change
297997 [c00lryguy@gm] I need to make a way to run a method when class' instance variable
298004 [TimHunter@nc] Check out the observer library.
298007 [phil@s1 6. e] why bother with observer if this can be nicely achieved with an
298013 [TimHunter@nc] Good catch! I confess I assumed that the OP would not have asked if a

298005 [ba208@ex te ] unsubscribe baptiste Augui=E9=

Ensuring FTP calls complete
298006 [jamesjreynol] I'm a mid level java guy trying out Ruby.  I'm rewriting a java ftp app
298052 [celtic@sa ry] ...

ANN: DocTest 0.0.1 version code-name: bazooka
298010 [rogerpack200] I have recently coded up an implementation of Doctest for Ruby.
298025 [transfire@gm] I did something like this for a long time. But instead of a test
298026 [rogerpack200] That's a great idea--allow for 'normal' code tests, as well.  Then

mysql module on powerpc mac
298015 [benaroia@gm ] /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.0/mysql.bundle
298235 [rogerpack200] Might be some kind of version conflict between your mysql bundle and
298261 [benaroia@gm ] It could be, but it's not the most important thing in the world so I

[OT] Re: How to check record duplication before saving?
298017 [ara.t.howard] no db actually deals with sets - try to do a query and get the results
298027 [caduceass@gm] I understand that, for example, postgresql and mysql have labeled all
+ 298031 [caduceass@gm] I'll clarify a little (I may have told this little story before).  I
| 298033 [caduceass@gm] Wow.  That sounded incriminating, didn't it!  My apologies for the
| 298035 [ara.t.howard] guess we have something to learn from them!   ;-)
| 298036 [caduceass@gm] Yeah, it's funny.  That may sound like an exaggeration, but after you
| 298038 [caduceass@gm] Oh, I should mention, ara, that the company I worked for charged
| + 298039 [caduceass@gm] I meant "It's actually located in your neck of the woods.
| + 298041 [caduceass@gm] Is there some fascinating reason why the recent mails I've been
+ 298034 [ara.t.howard] yeah that's valid.  i have at least one db where every id is a

298018 [ara.t.howard] is this consistent with other peoples stdlib hacks?
+ 298023 [transfire@gm] class Hash
| 298028 [ara.t.howard] okay, you should add the block form ;-)
| 298049 [robert.dober] Hmm maybe it is a more consistent approach not to add a block to slice.
| 298050 [transfire@gm] Why not?
| + 298056 [robert.dober] We were talking about getting sliced hashes not sliced key or value
| | 298065 [ara.t.howard] now that does make sense ;-)
| + 298064 [ara.t.howard] because the goal is to return a hash, not an array.... i think some
+ 298045 [djberg96@gm ] Regards,
  298090 [ged@Fa ri MU] Ack, apologies to those who followed the link off that page to a 404.

[ANN] doodle-0.0.9 released
298020 [sean.ohalpin] Doodle 0.0.9 has been released.

Re: doodle-0.0.9 released
298022 [transfire@gm] Doodle looks very promising. I especially like the use on annotation-
298032 [sean.ohalpin] Not at all. The examples focus on data definition because that's what

image_tag mouseover
298024 [moni.sm@gm i] Does anyone know if there is a bug on 'mouseover' for 'image_tag'?
298196 [ryand-ruby@z] #rubyonrails
298250 [moni.sm@gm i] sorry?
298254 [cmdjackryan@] A not-so-subtle hint that the question asked is Rails specific, and

Re: Problem with saving records through the form
298029 [rajat79@gm i] ...

change usage of pp in Test::Unit assertions
298037 [mmalaidini@g] I have some Test::Unit testcases that deal with Date and DateTime. If,
+ 298072 [jan.svitok@g] 1. set Test::Unit::Assertions.use_pp to false, thus using Date#inspect, or
| + 298083 [mmalaidini@g] That made it. I was playing with Date#inspect, but noticed that
| + 298256 [drbrain@se m] 3. create a Date#pretty_print and DateTime#pretty_print method.
+ 298084 [mmalaidini@g] Oh nice, I didn't know about it, I'll give it a try.

Rubyscript2exe windows executables, on Linux.
298040 [SxKorean@gm ] $ ruby rubyscript2exe.rb HelloWorld.rb
+ 298043 [keletmaster@] I don't think you can do that. Try running it under Wine.
+ 298044 [cmdjackryan@] Compile Ruby with the MinGW32 cross compiler tools. AS to how to obtain
+ 298053 [jftucker@gm ] If you alternately pack the executable using 7za.exe (from the extras
| 298076 [shevegen@li ] I actually *think* it is possible but I never tried it on my own.
| 298106 [SxKorean@gm ] god@box:~$ ruby -v
| 298113 [jan.svitok@g] you'll need to rewrite dependency collecting.
+ 298120 [erikveen@gm ] RubyScript2Exe can't cross compile directly. However...

mod_rails --  where do logs go?
298046 [jhonovich@gm] I just set up mod_rails (http://www.modrails.com/).  Install was easy.
298047 [cmdjackryan@] However, Apache modules stuff their logs into apache's log (not
298075 [jhonovich@gm] I got it working.  It seems mod_rails is logging to log/production.logs,

[ANN] doodle version 0.0.10 released
298051 [sean.ohalpin] This release fixes a bug in setting class and singleton attributes

umask vs umask
298054 [djberg96@gm ] Windows XP Home
+ 298057 [cmdjackryan@] Could that be because Windows is not a *NIX?
+ 298062 [phasis68@ho ] SGksDQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KRnJvbTogIkRhbmllbCBCZXJnZXIi
  298096 [djberg96@gm ] k.
  298104 [phasis@gm il] Yes, I tested with VC++ 9.
  298176 [djberg96@gm ] umask_test.rb:4:in `initialize': LoadLibrary() function failed for
  298213 [phasis68@ho ] ...
  298399 [djberg96@gm ] I gave this a shot, copying msvcr80.dll and
  298407 [phasis@gm il] The version # '8.0.50608.0' in the ruby.exe.manifest must be same to the
  298413 [djberg96@gm ] r where ruby.exe runs.
  298429 [phasis@gm il] As I tested with msvcr90.dll on VC++ 9.0 compiled ruby,

Basics to test Unit
298063 [jayeola@gm i] =begin
+ 298067 [cdemyanovich] ...
+ 298211 [mvanholstyn@] ...

Mysql gem on Mac OSX 10.4
298068 [lukas.mosser] Ok so I just installed ruby and rails and everything everything would
298234 [rogerpack200] Traditionally I have to build it using

[ANN]  Monday, 14 April: Phoenix Ruby User Group Meeting
298073 [james.britt@] April Phoenix Ruby User Group Meeting

[ANN] Gosu 0.7.9 on Windows/Mac, also: Ludum Dare timed gamedev compo  again!
298079 [julianraschk] Gosu is a free 2D game development library for Ruby and C++, available

Deleting first lines of Array
298080 [wvs_chaos@gm] I'm new to Ruby, and so I was trying some stuff I was used to do with
+ 298082 [shevegen@li ] What is the error message you recieve, and what is the content of the
| 298088 [dblack@ru yp] $ ruby -e "class dpkg; end"
| 298185 [robert.dober] dpkg = Class::new{...}
+ 298086 [dan@da fi ni] @installedPackageList is an IO object, not an array.  You need to read
  298179 [wvs_chaos@gm] and thanks for your fast reply!
  298206 [dan@da fi ni] Anytime.

ruby/tk and loop delay
298087 [redman@ac es] I am writing a card game in ruby/tk.
+ 298099 [bbxx789_05ss] require 'tk'
| + 298102 [bbxx789_05ss] sed to use sleep() for some reason?
| + 298105 [bbxx789_05ss] Try using the calling the update() method on the widget.  I can't get
+ 298103 [nagai@ai ky ] The callback operation for button click is only one event.
  298114 [bbxx789_05ss] Isn't after() supposed to accomplish the same thing?  Why doesn't
  298215 [nagai@ai ky ] Probably, you misunderstand about 'update'.

gets.chomp....... not function
298094 [gade_vd@ya o] heloo.... i m a beginner of ruby...
+ 298095 [dan@da fi ni] Can you post your code?
| 298097 [gade_vd@ya o] puts ' What is your full name?'
+ 298098 [keletmaster@] The Windows command prompt closes after the program is done running
  298100 [gade_vd@ya o] Thanks... can u teach me how to run in step by step.... sorry but i
  298101 [cmdjackryan@] Start -> Run... -> cmd<enter> -> help<enter>
  298117 [shevegen@li ] For testing purposes you should use irb (irb.bat or whatever the name on

ruby execution
298107 [sumantacapta] can i execute ruby program step by step?
+ 298108 [cmdjackryan@] That is not a feature of C, but the IDE you are using.
+ 298118 [TimHunter@nc] ruby -r debug mypgm.rb
| 298130 [victor.reyes] ...
| + 298133 [rmagick@gm i] That appears to be a feature of the ruby-debug library. A quick Google
| | 298169 [victor.reyes] ...
| + 298579 [tomcloyd@co ] Sure. Having recently learned the wonders of ruby-debug, I can tell you
+ 298217 [michael.broo] In addition to the other good suggestions made by others, you may want
  298218 [allergic-to-] Sorry for the side track, but how good/complete is the Linux version of
  298227 [michael.broo] I can't speak to the Linux version because I've only tried (and
  298567 [allergic-to-] Thanks, Michael, for the suggestion.  I'll consider checking out the
  298580 [tomcloyd@co ] Consider also trying the "community" (free) version - which is full

how to execute a method every few seconds
298109 [dark_sgtphoe] I'm playing around with making a small test game with what little Ruby
+ 298110 [cmdjackryan@] On every update (tick in your game, be it screen redrawing, or turn,
| 298146 [jftucker@gm ] Can I make a very very strong suggestion that the design de-couples
+ 298143 [kbloom@gm il] You could use a thread
  298220 [dark_sgtphoe] yeah, I can see what you're saying, Ken, I was just trying to get an

This Week in Ruby (April 14, 2008)
298111 [acangiano@gm] Cheers,
298228 [michael.broo] Thanks again for an excellent edition of the newsletter.  Keep up the

Problem in array
298115 [pranjal.jain] I am facing a small problem in array.
+ 298116 [stefano.croc] Use a valid index and make sure the element of the array you're testing is not
+ 298119 [shortcutter@] raise "Invalid positive" if array.any? {|x| x > 0}

[Registration opened] Workshop on Self-sustaining Systems (S3) 2008
298121 [Schmidtwisse] I'm simply forwarding this to the list. I am sure some readers are

How to reliably setup require path
298122 [chrisjoha@gm] I'm writing my first Ruby command line application (beyond a simple
+ 298140 [transfire@gm] myapp/
+ 298201 [vjoel@pa h. ] I'd do a couple of things differently (and I've used this pattern in a
  + 298243 [chrisjoha@gm] Thanks alot for your answers, both of you. They have cleared things up
  | 298308 [vjoel@pa h. ] You could use that for global initialization. For example, if you're
  + 298260 [drbrain@se m] The simplest way is `ruby -Ilib bin/myapp` from the root of the
    + 298310 [vjoel@pa h. ] - making your app double-clickable (or hash-bang executable from the
    + 298316 [vjoel@pa h. ] Also, it's fragile with respect to the cwd. You have to be in myapp/ to
      298445 [chrisjoha@gm] Exactly, and this was my original problem as well.I think I'll go with
      298451 [drbrain@se m] My solution works if ordinarily you distribute myapp as a gem as you
      298527 [vjoel@pa h. ] Eric, how does that work? Does gem install put a stub in your bindir
      298551 [drbrain@se m] Kernel#gem activates rake (adds its load_paths to $LOAD_PATH) so that

Dynamically referring to a Class
298123 [gaudimila@ya] I have several classes in my application, e.g. Person, Employer, Office.
+ 298124 [stefano.croc] Object.const_get(cls).find
+ 298125 [eustaquioran] [taq@~]irb
| 298134 [fedzor@gm il] Also, if you want, you can ditch the string.
| 298137 [eustaquioran] Yeah, but seems that on his problem he needs a string to find the class, so he
+ 298139 [robert.dober] Hmm others have told you how to do what you wanted. I however wonder
  298141 [shevegen@li ] I am not to judge about his design, but I believe using .send and
  298152 [robert.dober] Oh I did not want to judge, I am always having strong opinions loosely
  298192 [rick.denatal] Whether or not send and const_get are metaprogramming aside, I think
  298194 [flo@an er gr] Actually, in Ruby 1.8, this is a real issue. In Ruby 1.8, #const_get

Stupid question about the Stick gem.
298128 [ttmrichter@g] So, I installed the stick gem and gave it a run through its paces.  I
298135 [transfire@gm] include Stick::Units
+ 298136 [calamitates@] (You just beat me to it...)
+ 298138 [ttmrichter@g] That's definitely magical!  :D

Windows Automatization
298129 [aart85@gm il] ...
298131 [keletmaster@] You could use the AutoItX library in conjunction with Ruby.

Rails gem site seems borked.
298132 [ttmrichter@g] $ gem install rails
298257 [drbrain@se m] The output of gem env will help.
298733 [sonny.chee@g] - RUBYGEMS VERSION: 1.1.1
298734 [sonny.chee@g] ... incidentally, I get the same broken pipe error message regardless
298844 [drbrain@se m] Please run with --debug.
300960 [sonny.chee@g] Hey Eric,
301253 [sonny.chee@g] Okay... I finally fixed my problem by installing the Linux 64 bit
318938 [mauro.gerens] Since I'm junior in Linux, can you please help me installing 64 bit
318954 [sonny.chee@g] I'm no Linux install guru, Meir.  But Google, is your friend (and mine.)

Rake : conditional logic based on namespaces?
298142 [rasputnik@he] ...

issue running watir on 64 bit winxp
298144 [jrohrman@pr ] I am having an issue running watir test scripts on 64 bit winxp that
298150 [luislavena@g] AFAIK, noone.
300474 [debuke@gm il] [BUG] Segme
300478 [luislavena@g] That is xp sp2 32bits, or what?

noob 'why doesn't this work' question
298145 [nospam7272@m] I'm a new Ruby user with a background in Applescript, Hypertalk
+ 298147 [jgabrielygal] Every time you delete an element, all the values to the right are
+ 298148 [jg@co ne ti ] Start counting at 0
+ 298149 [luislavena@g] Actually no, when you #delete_at one element from an array, the
| 298151 [nospam7272@m] Ah, yes. I knew it was something simple.
| 298160 [doodpants@ma] Another approach would be: instead of deleting each item, put nil at
| 298175 [shortcutter@] Btw, the conventional way in Ruby is to use "size_list" instead of
+ 298197 [perrin@ap th] sizeList[0] =3D 0
| 298198 [shevegen@li ] I guess he is starting to _learn_ which could explain what he
| 298208 [nospam7272@m] Basically, I'm trying to get a list of files/folders along with
| + 298216 [botp@de mo t] # And thanks to everyone who responded. 101 ways to do this would
| | + 298245 [Paul.McArdle] irb(main):001:0> a = [0,1,2,3,4,5,6]
| | | 298246 [botp@de mo t] # irb(main):001:0> a =3D [0,1,2,3,4,5,6]
| | + 298247 [botp@de mo t] # irb(main):004:0> sizeList.group_by.with_index{|e,i|
| + 298253 [jgabrielygal] Another solution could be, instead of having 2 arrays, to have
+ 298283 [robinpeder@g] sizeList =3D [0,1,2,3,4,5,6]
  298295 [beholdthepan] ...