182993-197686 subjects 183379-184524

^ Form issue
183145 [chad.d.johns] I have a dilema. I have an HTML form which is in a test format, and the

^ Ruby's WWW::Mechanize
183151 [aaron_patter] package, but unfortunately I've found a few bugs in it.  I've made

^ [ANN] Tar2RubyScript 0.4.7
183152 [pan erikveen] I just released Tar2RubyScript 0.4.7.

^ Windows Console I/O in Ruby
183153 [matt.hulse g] Is there a Ruby equivalent to the WConio Python Module or similar conio
+ 183186 [adam.shelly ] seems like Ncurses does most of the same things as wconio.
+ 183232 [vanek acd.ne] this may be of use,

^ [ANN]  RubyScript2Exe 0.4.2
183155 [pan erikveen] I just released RubyScript2Exe 0.4.2.

^ [ANN] AllInOneRuby 0.2.9
183156 [pan erikveen] I just released AllInOneRuby 0.2.9.

^ rbtree tests fail on 1.8.2, but not on 1.8.4
183166 [toby cbcg.ne] I dug up the rbtree 0.1.3 tarball from the RAA cache and am trying to
183170 [ara.t.howard] i can confirm the above at least... may have time later to look into it.

^ validatoin image filed
183175 [michaelaugus] I have problem to check the validation of the image field
183179 [f andreas-s.] Please ask this on the Rails mailing list.

^ Ruby c++ extension on intel mac
183183 [reevesg pobo] Hey,
183188 [steve fishar] =20
183191 [ara.t.howard] try

^ Newbie: Rails Controller Attribute Scope
183185 [tim.hennekey] I'm having a hard time figguring out what is wrong with my controller.
+ 183193 [tanner.burso] This is probably better answered on the Rails list, but I'll take a shot.  =
+ 183194 [lopexx autog] In Rails unlike in Struts a new (statefull) instance of your Controller

^ Rails: in_place_editor_field and editing blank fields
183190 [deja homerle] I just started playing with in_place_editor_field and its pretty neat.
183214 [joevandyk gm] 1.  This is a Rails question and should be asked on the Rails mailing list.

^ Bizarre sudden problem with WIN32OLE - could not find specified procedure
183195 [temp lorrima] I've been using win32ole alot for talking to Excel.
183196 [temp lorrima] ok, I;ve found the solution!

^ Best way to start new ruby script?
183197 [m-lists bris] I have a long running process that I want to start from a Rails request.
183221 [shortcutter ] - do it in a thread
+ 183228 [vjoel path.b] Portably, the following works, as long as you don't mind not having
+ 183229 [m-lists bris] Do it in a thread seems like the simplest solution but I don't know if
  183239 [ezmobius gma] Keep in mind that rails and fork don't get along very well. If you
  183261 [ara.t.howard] # all open file handles duped
  183274 [m-lists bris] I ended up doing a simple drb service external to the Rails application.

^ idioms for separating out OS-specific stuff
183199 [joevandyk gm] - get the current user's login name
+ 183204 [logancapaldo] charset=US-ASCII;
+ 183208 [gwtmp01 mac.] class A
+ 183224 [mental rydia] Maybe it would be better to break up the modules by feature rather

^ globals outside of OO scripting
183200 [rtilley vt.e] When writing methods as functions (I know they're methods pretending to
+ 183202 [elven swordc] No, you still need to use either global or instance variable syntax, since
| 183209 [rtilley vt.e] OK, but the script works wheter I use $ for globals and @ for instance
| + 183218 [gwtmp01 mac.] Whether you use globals or top-level instance variables for a small
| | 183238 [rtilley vt.e] class Thing
| | + 183240 [logancapaldo] You can't, that's kind of the point. You can write accessors (or
| | + 183241 [drosihn gmai] class Thing
| |   183245 [rtilley vt.e] Thanks for the examples and info guys!
| |   183249 [logancapaldo] Depends. Why are you accessing it outside the class? If its to change
| |   183280 [rtilley vt.e] It's a filepath (c:\name_of_file) I only wanted to define the path once
| |   183417 [logancapaldo] class NeedsAPath
| + 183230 [lukfugl gmai] I'm curious what your script is then. Because the variable will not be
|   183231 [lukfugl gmai] D'oh, I should have actually tested that *before* posting. This
+ 183205 [logancapaldo] No
+ 183207 [ara.t.howard] but why?  at the very least do

^ assert_raise question
183201 [seanacarley ] Currently, assert_raise expects you to know exactly what kind of exception
+ 183206 [jim weirichh] +1
+ 183225 [drbrain segm] For a given input a method should only raise one class of exception.
  183242 [jim weirichh] The reason I would like it is that the test is the specification of the
  183269 [eastcoastcod] +1 again.

^ Modular Ruby
183203 [elven swordc] Im looking for a framework or some other means of un-/loading ruby code into
+ 183212 [julian.kamil] Bernhard, I am working on such a "sandbox" for the Pandora project.
+ 183219 [shortcutter ] I think this is not possible using plain ruby because you can always
  183227 [elven swordc] Thought so.  Well, I guess I'll fiddle around with a TCL-like-approach
  183279 [botp delmont] #It's not done, yet, but when it does, it will allow "client side" Ruby
  183305 [julian.kamil] My plan is the following...

^ [OT] Re: idioms for separating out OS-specific stuff
183210 [vjoel path.b] I've been wondering how to do that, either on 2.4 or 2.6. What are you
183213 [joevandyk gm] I don't have the code in front of me, but there's a file in /proc

^ My Ruby talk @ work..
183226 [steve waits.] I just finished my "Learn Ruby" talk for the programmers here at work.
+ 183233 [ara.t.howard] very nice.  i'm stealing your template.  ;-)
| 183235 [steve waits.] Excellent!  Maybe we could bundle it into a "Ruby Tutorial Kit"?
+ 183234 [cohen.jeff g] Looks great, Steve.  Thanks for publicizing it.
| 183236 [steve waits.] Thanks.
| 183243 [cohen.jeff g] And it's much better than the "it's an immutable string" explanation,
| 183247 [logancapaldo] Enums are typed in C++, to a certain extent (better than C anyway),
+ 183257 [r.mark.volkm] I like the way you mixed in a little mixin humor.
| 183265 [steve waits.] Thanks..  I do like the Mixin.  :)
+ 183258 [dave burt.id] Your section on control structures is a little broken. You have "loop do ...
| 183268 [steve waits.] Oh yikes!  It's just a poor example and it's what I get for working
| 183270 [dave burt.id] While we're on errata, the @instance_var in the section on Variables may be
| 183272 [steve waits.] Cool.. thanks for all the feedback Dave!!!  I'll look at
+ 183327 [jesusrubsyou] I only read the first 20% or so (for lack of time at the moment), but I

^ Problem Solving Skills for Engineers
183237 [bparanj gmai] I have been a software developer for the past 10 years now. I get job
183302 [chneukirchen] Did you find a solution against the spam problem?
183418 [bparanj gmai] It has a subject line and if you don't like it you don't have to read
+ 183422 [dharple gene] Are you seeking how to develop problem solving skills? ;)
+ 183428 [ruby crazyte] You didn't "send it to the general group" - you sent it to the Ruby-talk
+ 183470 [tdenkinger g] You mean you thought you were sending us something we wanted to read?

^ catch throw ?
183244 [BPaatsch act] I just started using catch and throw. Therefore this question might be an
+ 183248 [logancapaldo] They have to be in the same call chain.
+ 183259 [ara.t.howard] p catch('answer'){ load 'b.rb' }

^ Displaying Marshalled Object from HTTPServlet::FileHandler
183250 [aaronbecker1] When I browse the marshalled files in the directory browser, I would

^ text editor
183251 [dan freeeze.] hey all, does anyone know where I can find a good text editor for code?
+ 183252 [tyellow yip.] Posted via http://www.ruby-forum.com/.
| + 183264 [mark_rogers ] If you are on Mac OSX, try subethaedit.
| | 183344 [rhkramer gma] If you're on Linux, but coming from Windows, consider nedit.
| | 183407 [glenn.ruby g] Crimson Editor, up until now, has been my favourite.
| | 183438 [danielbaird ] Ditto with ConTEXT, I like it a lot.  Windows only, so only use it if you'r=
| + 183442 [garcia.serva] Emacs is a hard beat . Download a few extension modules and your off,
|   183577 [igor.sarzisa] I use Window Xp and i have tried JEdit, SciTe, Cream/Vim, UltraEdit,
+ 183262 [horndude77 g] www.vim.org
+ 183275 [gk cutcopy.c] try vim (hard to learn)
+ 183284 [rob motionpa] It's not an editor it's an IDE but I find eclipse with the RDT (ruby
+ 183285 [rwoliver2 gm] Dan,
+ 183286 [google erikv] NOTEPAD.EXE
| 183332 [doodpants ma] Notepad isn't a good text editor for *anything*. While it's true that
| 183337 [ruby crazyte] That's why I've replaced all my links to notepad.exe with notepad2.exe
+ 183296 [heimdall uni] There are millions of threads about this topic, but ok, here's a short,
| 183303 [thinkdiv goo] Not to forget:  - ActiveState Komodo
+ 183323 [jesusrubsyou] Pistos.horn.toot do ||
+ 183335 [reevesg pobo] I like TextMate on OSX.
+ 183756 [jussij zeuse] It has programming specific features like code folding,

^ Re: Displaying Marshalled Object from HTTPServlet::FileHandl
183254 [aaronbecker1] Looks like I just need to inherit from HTTPServlet::FileHandle and

^ Ruby and XSLT
183260 [derek.mahar ] What Ruby libraries are available to parse and process XSLT?  How does
183263 [zengke ce-la] Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/>
184248 [tobycatlin h] I am trying to use ruby-xslt under windows.
184261 [tobycatlin h] After more searching on forums and other pages it seems that ruby-xslt
+ 184265 [r.mark.volkm] You might be better off to use Apache Xalan or Saxon. Both are
+ 184269 [smerk fi.mun] If your tranformations are really simple,
| 184277 [tobycatlin h] thanks, guys. I'll take a look at Xalan and see what i can do.
+ 184278 [rossrt rosco] Not that this is much help right now, but I recently did some work

^ Convert String to Hash
183288 [nick.snels g] I get a string inputted in my program, which I convert to a hash-like
+ 183289 [elven swordc] no, you can't pass it to Hash.new directly, you'd have to write a parser for
| 183291 [rob motionpa] *throws banana ad Bernhard*
| 183294 [elven swordc] Well, in certain local-only low-security scenarios it might be of use. I
| 183299 [nick.snels g] thanks for all the replies. I used the eval method and it worked!! The
+ 183290 [rob motionpa] Use YAML.
+ 183292 [lopexx autog] sql = '"table_alias" => [],"original_string" => "select * from table"'
  183293 [rob motionpa] Argh!

^ [Newbie] Immutable objects
183298 [ebuffer dele] Still working on the basics... for my card game, I want the Card objects
+ 183311 [bob.news gmx] It's not sufficient, you'll have to freeze those strings, too.  Note that
| 183322 [delete.ebuff] Ah, I see - in C# "where I come from", strings are immutable. Of course,
| 183374 [g_ogata optu] For things like @suit -- which I take it can only take one of four
| 183480 [delete.ebuff] Thanks - this is starting to feel like playing an adventure game where
| 183482 [bob.news gmx] Alternatively you could use constants
| 183489 [ebuffer dele] Ah, yes, I guess it's like physical exercise - "no pain, no gain"
| 183492 [bob.news gmx] Actually I believe this is how learning works: basically it's trial and
+ 183315 [james graypr] As a Ruby rule of thumb, you make an immutable object just by
  183325 [delete.ebuff] Thanks - that answers my real question, 'how do you make an object

^ [ADV] New version of Rails Recipes beta book available
183306 [dave pragpro] For your cooking pleasure, I'm happy to announce that Chef Fowler has
183308 [Bil.Kleb NAS] Can you put the reorder link on that page to
183324 [dave pragpro] I email subscribers separately with that link.

^ Enums (was: My Ruby talk @ work..)
183309 [florgro gmai] name="enum.rb"
183415 [logancapaldo] Looks pretty cool.

^ nuby question: sorting with nils
183312 [ljw1001 gmai] def <=> anItem
183318 [farrel.lifso] def <=> anItem
183321 [farrel.lifso] Actually you can shorten it a bit further if you use
+ 183329 [toby cbcg.ne] Speaking of this very topic, I am having an issue where I want to sort
| + 183338 [cameron.mcbr] as a quick alternative, sorting by several attributes is pretty easy
| + 183339 [farrel.lifso] I don't think you can access the attributes of a Struct from inside it
+ 183333 [ljw1001 gmai] Actually, the weird thing is that the dates were never nil, but the

^ [SUMMARY] The Golden Fibonacci Ratio (#69)
183317 [james graypr] Before we get into discussing this week's solutions, allow me this brief

^ c++ extension
183331 [reevesg pobo] I am trying to understand some aspects of writing a ruby extension in
+ 183476 [rickhg12hs g] I've been a total wimp about accessing C/C++ libraries from Ruby.  I
+ 183502 [caleb aei-te] You need to wrap your class into a Ruby structure in order for this

^ unextend ?
183334 [dvandeun vub] A very short and simple question: is there a function to "unextend" an
+ 183401 [logancapaldo] I don't believe there is an unextend method, however if you're
| 183445 [itsme213 hot] Any idea why not? I currently use extend much like your traits example, and
| + 183456 [logancapaldo] charset=US-ASCII;
| + 183508 [dvandeun vub] I must say I appreciate the QuasiExtender as a useful hack, but it
+ 183511 [rossrt rosco] Might this suffice?
| 183546 [logancapaldo] I get  the feeling that could be dangerous. Since you do it in the
| 183547 [rossrt rosco] Certainly. I think 'unextending' is bound to be so - I get the feeling
| 183552 [logancapaldo] I was thinking more along the lines of implementing the "overriden"
+ 183650 [jimfreeze gm] Have you tried #dup?

^ Problem Solving Skills
183336 [bparanj gmai] I have been a software developer for the past 10 years now. I get job

^ Does Ruby TK have an HTML rendering "widget"? (was Re: Looking for good reads on Ruby TK GUI programming)
183343 [rhkramer gma] Sorry for piggybacking here, but I thought someone reading this thread might
+ 183348 [c.groner gma] Randy,
+ 183356 [nagai ai.kyu] One of such widget is "Tkhtml" (http://www.hwaci.com/sw/tkhtml/).
  183941 [rhkramer gma] Thanks!
  183957 [nagai ai.kyu] I think so too.
  184017 [rhkramer gma] Wonderful!  Thank you very much!

^ Test Harness?
183346 [tdenkinger g] I'm starting to feel my way around in Ruby after having been a Perler for a
+ 183351 [james graypr] Making a test suite is trivial.  Just add a final like "ts_all.rb" to
| 183354 [alex.combas ] perhaps this will also helphttp://www.zenspider.com/ZSS/Products/ZenTest/
| 183358 [pat.eyler gm] t.test_files = FileList['test/test*.rb']
+ 183355 [jim weirichh] require 'rake/testtask'
+ 183363 [r.mark.volkm] In addition to the other suggestions you've received, there's always
+ 183376 [rossrt rosco] $ ruby -e "Dir['test/tc*.rb'].each { |tc| require tc }"
| 183421 [nugend gmail] Is there a way to pass Rake tasks arguments?
| + 183430 [rossrt rosco] $ cat Rakefile
| + 183440 [jim weirichh] This page: http://rake.rubyforge.org/classes/Rake/TestTask.html pretty
|   183464 [tdenkinger g] Thanks to everyone for the ideas on this.  I've implemented the rake
+ 183412 [drbrain segm] testrb (which comes with Ruby and Test::Unit) does this for you.  You

^ ruby float calculations
183347 [flash3001 ya] irb(main):001:0> 0.29 - 0.38 + 0.1
+ 183349 [ara.t.howard] #include <stdlib.h>
| 183362 [flash3001 ya] Forget about this... it has already been answered... I should have been
+ 183350 [cameron.mcbr] d1 = 0.29 - 0.38 + 0.1
  183360 [flash3001 ya] Thanks for your answers. It's clear now. Expecially this link on the IBM

^ Error calling block in sub class
183359 [ruby-forum a] I am creating a base collection class that will allow the assignment of
183380 [rossrt rosco] I think it's because you're saving the block for later use, and slightly
183403 [ruby-forum a] That's spot on.  Modified my code like you said and it worked perfectly.

^ Can't get net/smtp to send outside of LAN?
183364 [info johnale] I am trying to use net/smtp to send a mail message.  What I am finding is
183366 [greg.kujawa ] I think you are forgetting login credentials such as
183375 [info johnale] but is this necessary???
183384 [greg.kujawa ] Are you 100% sure there is no username/password combo stored in a
+ 183386 [info johnale] Yes there is nothing set in mailers from three different platforms. 2 other
+ 183389 [info johnale] another follow up.... the code I posted does not work from the same usr same
+ 183414 [logancapaldo] charset=US-ASCII;
  183458 [botp delmont] #if usr@domain is outside the LAN the mail never gets sent
  183519 [greg.kujawa ] Exactly. That was the point of my earlier post regarding trying to send
  183877 [info johnale] Please see the [SOLVED] to this thread.  It really had nothing to do with

^ Ruby and .NET
183367 [joevandyk gm] I've written a couple Ruby programs that run on Linux using
+ 183368 [greg.kujawa ] Check out http://rubydotnet.sourceforge.net/.
| 183369 [mtrier gmail] The progress on John Lam's Ruby to .NET bridge is much further along.
| 183370 [mtrier gmail] Let me clarify, when I originally looked at it.  I haven't checked out
+ 183373 [cribbsj oakw] Joe, just curious why you wouldn't just use the Windows version of
  183378 [florgro gmai] Look&Feel are pretty much OK as well if you change the GTK renderer to WIMP.
  + 183405 [drjflam gmai] My RubyCLR bridge should let you do what you're looking for - the drop
  + 183419 [joevandyk gm] Hm... I'll have to see how ruby-gnome2 operates on Windows.  I really