34034-35129

33851-36062 subjects 34207-36127

string::literalize ? (Was, Hi this code)
34034 [jdonner0@ea ] Thanks;  There isn't a string.deregexpify or literalize is there?
34035 [vjoel@PA H. ] irb(main):010:0> pattern = "what???"

The GUI Returns
34036 [vruz@ru y- s] <RANT mood="moderate">
+ 34038 [curt@hi bs c] I would not choose this approach because I would be very concerned about
| 34066 [vruz@ru y- s] Yes, I agree it's too soon for that.
+ 34045 [ptkwt@sh ll ] I think Locana has a lot of potential and it seems to be kind of similar
| 34062 [mdavis@se ai] My view on the least common denominator is to implement all the cool
+ 34049 [ jimm@io co ] How about a full implementation a la Squeak? Take over the whole screen (or
| 34076 [vruz@ru y- s] (or
| + 34094 [ser@ge ma e-] I've just created a mailing list called "rouge".  It is bare bones, but it
| | 34105 [mdavis@se ai] Additionally, there mailing lists for locana.  See locana.org (3/4 down
| | 34115 [ser@ge ma e-] Is Locana an appropriate place to discuss non-Locana GUIs?
| | 34116 [mdavis@se ai] Maybe not, but if the focus is to improve Locana, it could be a good thing.
| | 34127 [ser@ge ma e-] I've been looking at Locana, but it'll need some other back-end on Linux
| | 34129 [mdavis@se ai] Take a look at locana_template.rb at locana.org.  If you fill in the
| | 34161 [ser@ge ma e-] Great, thanks.
| + 34095 [ser@ge ma e-] By the way, I've also set up the list in digest mode.  You can subscribe to
+ 34050 [Laurent.Jull] I fully second Curt Hibbs' opinion on that one. This would probably be
| + 34058 [mdavis@se ai] - locana is 1700 lines of code with documentation
| | 34986 [llothar@ma l] Sorry i don't know what are you counting ??
| | 35010 [curt@hi bs c] Michael is saying the Locana code that interfaces to tk is 1000 lines.
| + 34065 [vruz@ru y- s] [snipmyownpost]
| + 34110 [kero@ch ee .] Slow is relative. I am implementing something I think I will call
|   + 34111 [alwagner@tc ] Albert
|   + 34119 [ser@ge ma e-] This sounds interesting.
|   + 34136 [curt@hi bs c] I definitely look forward to seeing how Ruby-Wise turns out (I have an iPAQ,
+ 34051 [alwagner@tc ] Please search for and read the previous GUI threads before going forward with
| + 34055 [klemmerj@we ] with=20
| | 34056 [alwagner@tc ] I don't think so.  But, if you prefer, you can hang around a week or two and
| + 34061 [vruz@ru y- s] with
|   34064 [tobiasreif@p] Great vision! A good solution would make me start using GUIs for Ruby
+ 34057 [mdavis@se ai] I am very interested in Locana:)  I am trying to get the HTML interface
  + 34069 [vruz@ru y- s] [snipmyownstuff]
  | 34137 [curt@hi bs c] Very well (and succinctly) said!
  + 34087 [ptkwt@sh ll ] I really like that Locana also generates HTML GUIs (or will soon) as well

dump/load a class that has C and Ruby data
34037 [vjoel@PA H. ] I have some classes whose instances have C data as well as Ruby attrs.
+ 34046 [jeremy@ch os] Is there an article anywhere on advanced use of Marshal?  _Programming
+ 34047 [dblack@ca dl] You could put a hook into Marshal::dump, and flag the objects you
  + 34082 [vjoel@PA H. ] Aha! Of course. The special objects are those which include a certain
  + 34200 [vjoel@PA H. ] Well, it turns out that Marshal.dump will raise a TypeError if the
    34203 [vjoel@PA H. ] Actually, you'd want Data_Wrap_Struct instead of rb_obj_alloc or new.

B2B Insider
34039 [b2bbulletin@] <HTML>=0D=0A<HEAD>=0D=0A<META=20NAME=3D"GENERATOR"Content=3D"">=0D=0A<TITLE=

Enterprise use of Ruby
34040 [egabriel@er ] in Ruby (a web-based assessment evaluation and student information
+ 34042 [tobiasreif@p] Perhaps some projects on
+ 34044 [ptkwt@sh ll ] Perhaps you need to create some sort of simulation of your system with the

Formatting
34048 [dcorbin@im e] In C, people use printf to format data nicely for display.  In Java,
+ 34052 [mike@st k. o] If you want sprintf like formatting then % might be useful e.g. (lifting
| 34054 [nobu.nokada@] Also printf, sprintf and IO#printf.
+ 34067 [ser@ge ma e-] <posted & mailed>
  34081 [vjoel@PA H. ] irb(main):001:0> "%s, %s!" % ["Hello", "world"]

OOP overhead (Was: tiny contest...)
34053 [alwagner@tc ] ...
34060 [quadzero@us ] My experience in other languages has been similar.  I once refactored a
34093 [ser@ge ma e-] I'll add another 2 cents to yours.
34106 [gehlker@fa t] While I agree with the thrust of Sean's comment, I have to quibble with a
34117 [Dave@Pr gm t] Agreed, but in this particular case, the code is changing from (say)
+ 34144 [alwagner@ua ] You are right, of course.  But this particular case was a kludged
+ 34201 [alwagner@tc ] I suppose this is closer to the question I was trying to ask.  My first
  34205 [Dave@Pr gm t] At the same time, there's a big push on the XP front to solve today's
  34208 [alwagner@tc ] Boy, ain't that the truth.  In fact that's the story of my life.  I called it

RubyDevGuide & RubyWay
34059 [quadzero@us ] Well I'm just as excited as a little kid at Christmas!
+ 34063 [tom.hurst@cl] Amazon do The Ruby Way for ?23.19 (~$33 USD), but don't do the Developer
+ 34073 [ser@ge ma e-] <sigh>  I like brick-and-mortar, but I find myself shopping more and more
+ 34084 [klemmerj@we ] fatbrain.com has them too.  And for a tad less than amazon.
+ 34170 [alan@di ik t] I've always liked bookpool.com for technical books.

Accessing C structure members from Ruby
34075 [Laurent.Jull] I'm in the process of writing a Ruby Extension for a C library. This C
34089 [vjoel@PA H. ] (2) seems much better.

Problems with Ruby in C
34077 [tyrak@bo gs ] I'm having a problem with getting instance_eval to do what I want it to
+ 34188 [tyrak@bo gs ] I must be missing something really obvious but I'm having a really hard
| 34220 [matz@ru y- a] Because "a" belongs to the toplevel scope.  But as you expected, to
+ 34219 [matz@ru y- a] Ah, first of all, local variables does not belong to any object, so
  34256 [tyrak@bo gs ] Thanks for the answers matz, they helped me understand this a bit
  34308 [tyrak@bo gs ] Nevermind answering the previous question. I think I've figured out a

Ruby DevGuide
34079 [Stephan.Kaem] after reading the online chapter of the Ruby Developer Guide I decided
34152 [ljohnson@re ] I know that they had originally planned to include a CD with the book but

ネォケ┘侫離ニ團テ┘---ネォケゥメオマ犹リニ團テ箙ムラハチマオヌシヌ
34083 [webmaster@gr] ネォケ┘侫離ニ團テ┘---ネォケゥメオマ犹リニ團テ箙ムラハチマオヌシヌ

XML DBMS?
34088 [tomnospamcor] I am currently reading the pragmatic programmers book, seems like an
+ 34097 [ptkwt@sh ll ] I have to admit, I'm not sure what an XML DBMS is (a DBMS that uses XML as
| 34150 [tomnospamcor] Phil,
+ 34406 [lafor@ar ak ] For my experience I can say the best native XML ddbb is Tamino from

net/http or webfetcher with pasworded urls
34099 [ronjeffries@] Is there a way to use webfetcher, or at least net/http, with a
34102 [r2d2@ac .u u] No support for this in webfetcher yet, I'm afraid. Though it doesn't
34118 [ronjeffries@] Hmmm, when I do this it still gives the 401 error.  Got me pretty
34171 [rich@in oe h] Ron,
+ 34194 [ronjeffries@] That did it. I had to see that there was a space between BASIC and its
+ 34251 [aamine@mx ed] Sorry. It's my typo. I've checked in this modification now.

a file name with space for http
34101 [moontoeki@ao] a file name with space for http
+ 34156 [moontoeki@ao] BUT file%20name is CORRECT way to use for 'file name'
+ 34247 [aamine@mx ed] ~ $ mkdir public_html

parsing errors
34103 [dcorbin@im e] Is there any work being done to improve the error messages when you
34135 [hramrach@ya ] If I got "parse error" near the place where the error is it would be

x =~ /pat/, "return type?"
34107 [dcorbin@im e] "if (x =~ /pat/)"  everything is OK.  When I trty to pass this
+ 34109 [dblack@ca dl] It actually returns the position in the string where the match
| + 34122 [pcs3@ma lh s] That sounds like your best bet, basically anything not nil or not false
| | 34140 [dcorbin@im e] Thanks to everyone for the various suggestions.  The code I'm calling is
| | 34142 [dblack@ca dl] OK, now that I know the specifics, I can provide a nicer way to do
| | 34148 [dcorbin@im e] Thanks.  But the rest of thread was still a good education....
| | 34154 [dblack@ca dl] Yes, for me to.  I learned that I have two different installations
| + 34125 [nconway@kl m] (x =~ /pat/) != nil
| + 34133 [r2d2@ac .u u] !!(x =~ /pat/)
+ 34112 [nobu.nokada@] Where `x' is a String, it returns the first position of /pat/
+ 34120 [ser@ge ma e-] if !!x[/pat/]

Large real-world apps? Please respond!
34121 [hal9000@hy e] I've been asked to give an opinion about whether

alias danger
34131 [vjoel@PA H. ] A recent (and helpful) suggestion reminded me of the use of alias in a
+ 34132 [Dave@Pr gm t] That's always been an issue which has worried me.
| 34134 [matz@ru y- a] Me too.  I'm thinking of a solution kinda similar to CLOS's before,
| 34238 [feldt@ce ch ] It would be awesome if Ruby got this. Really, really useful. Are you
| 34239 [matz@ru y- a] I'm expecting Rite will have this feature.  But, you know, Rite is
| 34240 [erik@ba fo s] And you'll write the rest next week???
| 34241 [matz@ru y- a] As I said before, it will take years.  I'm a slow developer.
+ 34187 [vjoel@PA H. ] Found it in RiaN: Module#instance_method. This solves half of the
  34257 [paul@at es .] Sort of, but you won't get access to "self" or to any instance

String quoting %Q
34138 [hramrach@ya ] There's some writing in ProgrammingRuby-0.3a in "Standard Types" about %
34146 [Dave@Pr gm t] I believe that this is a change to the language that happened after we
34153 [nobu.nokada@] It was Oct 16 last year, sorry. :)

FXRuby: switching visible widgets
34139 [dali@ep t. z] I am just trying to put together my first GUI application with FXRuby.
34155 [ljohnson@re ] output.

hash question
34141 [mjais@we .d ] I read in the pickaxe book that I can also use a Regexp as a hash key
34151 [ysantoso@je ] I don't think there will be any improvement. Assuming that the syntax
+ 34159 [barry_shultz] hash.keys.grep(/^b/){|key| print key, " -> ",hash[key],"\n"}
+ 34165 [ser@ge ma e-] I'd expect it to be worse, more like O(2n) rather than O(n), because you're
  34195 [ysantoso@je ] oops, I didn't see that.
  34236 [mjais@we .d ] yes, you are rigth. I left it there by mistake.

Time class and localization
34143 [moumar@ne co] I'm writing ruby programs that must display date and i was surprised to not
34413 [busellim@pp ] Time.new.localtime doesn't do what you expected for displaying the time

Production Mini-plants in mobile containers. Co-investment Program
34149 [newsletters@] The Financial News, February 2002

Epic4/Ruby
34162 [tom.hurst@cl] Rejoice, for you no longer have to put up with that evil excuse for a
34172 [tyrak@bo gs ] heh, that evil excuse for a scripting language was the reason I started
34177 [tom.hurst@cl] What about things like event handling?  Do we have to call the ruby
+ 34186 [ptkwt@sh ll ] And what's wrong with GPL? (he asks, ducking for cover:)... Well, maybe
| + 34191 [tom.hurst@cl] Want the list? :P
| | 34216 [pcs3@ma lh s] Perhaps this wouldn't be as restrictive as it sounds if someone would
| + 34366 [jonas@rf 19 ] Both GPL and LPGL are no-go when it comes to commercial applications if
|   34369 [matz@ru y- a] What's wrong with Ruby's license?  See [ruby-talk:34211]
|   + 34395 [tom.hurst@cl] Some components are not covered by it, which makes working out whether
|   | 34403 [matz@ru y- a] Yes.  Should I use the term "compiled binary"?
|   | 34422 [curt@hi bs c] I'm not sure how it works, but there are a number of opensource projects out
|   + 34441 [jonas@rf 19 ] Nothing wrong if Ruby is not to be used in other situation other than
|     + 34445 [matz@ru y- a] Although I know fuzziness of the license, these three statements below
|     | + 34451 [curt@hi bs c] I, personally, might want to take the time to do that. My boss, on the other
|     | | 34487 [matz@ru y- a] Tell him be reasonable, or you might be reasonable enough not to use
|     | + 34491 [jonas@rf 19 ] What do you mean with FUD against GPL? It's not just my own opinion that
|     |   34492 [matz@ru y- a] First of all, GPL does not necessarily destroy intellectual efforts.
|     |   34494 [jonas@rf 19 ] Like beeing used, for example.
|     |   34496 [matz@ru y- a] Rite will be your hope.
|     + 34454 [tobiasreif@p] ... or an Apache style one?
|       34455 [paul@at es .] Paul
+ 34211 [matz@ru y- a] Ruby is *either* GPL *or* its original terms, which is something like
+ 34259 [tyrak@bo gs ] rbalias cache_no_bans
+ 35129 [tyrak@bo gs ] You don't have to wonder anymore as there are now patches available for

Re: "Powered by Ruby" banner (Shameless begging) - rubyorg.jpg (0/1)
34163 [mike.spamsuc] That would be me ppl ;-)

memoize: patch to get the regression test suite to work
34173 [cbroult@sa i] ...

expect.rb vs Expect (Tcl)...
34179 [hgs@dm .a .u] I have had a look at the expect.rb in the 1.6 library.
+ 34212 [matz@ru y- a] Don't expect too much for 36 lines of code.  Here's my own version of
| 34243 [hgs@dm .a .u] No, but if there were plans it would be silly to duplicate work... :-)
+ 34242 [jfontan@ce g] I've already made an extension of libexpect for ruby, I'm waiting for my

Rinn and Perl CORBA::ORBit
34183 [Selander@th ] Good evening,
34258 [paul@at es .] readlines returns an array of lines.
34262 [selander@pd ] Boy, do I feel stupid...
34264 [paul@at es .] I think you need to _narrow your object reference.
34267 [selander@pd ] Yes, you are right.
34275 [paul@at es .] It is a downcast from a base type to a derived type.

Operator overloading and multiple arguments
34185 [ptkwt@sh ll ] I'm trying to overload the '<=' operator in a class in order to use it for
+ 34221 [matz@ru y- a] How about using a <= [1,2] instead?
+ 34260 [paul@at es .] Oddly enough,
  34293 [ptkwt@sh ll ] Interesting.
  34297 [paul@at es .] Okay.  But be careful, because many operator have lower precedence than
  34313 [ptkwt@sh ll ] Yep.  Already ran into that.  I was going to override 'and' and 'or' so
  34322 [pcs3@ma lh s] I'll bet you liked playing in traffic as a child ;~).
  34328 [ptkwt@sh ll ] ;-)
  34330 [pcs3@ma lh s] Sorry, S-expressions.  Basically any code enclosed in parenthesis: (+ x
  34339 [pcs3@ma lh s] Again sorry, I only expanded the obvious in my last post, I should have

FalseClass / TrueClass singleton methods?
34189 [bhilton@vp p] I am trying to add a singleton method to some FalseClass objects in my
34214 [matz@ru y- a] Could you tell me your version of Ruby?  I think it's fixed in the
34269 [bhilton@vp p] And by 'fixed' do you mean that adding singleton methods to FalseClass
+ 34299 [chr_news@gm ] "true" is the only FalseClass instance - so adding a singleton method to true
| + 34300 [jason@jv eg ] More likely, "true" is an instance of TrueClass ;)
| | + 34309 [chr_news@gm ] Well ``true'' is an instance of TrueClass but it also the only one!
| | | 34316 [paul@at es .] This is not entirely true...
| | | 34318 [chr_news@gm ] Interesting - in cvs that would be
| | | 34337 [matz@ru y- a] Hmm, it should not be possible to remove the internal empty method to
| | + 34311 [chr_news@gm ] ^^^                       ^^^^
| + 34334 [matz@ru y- a] It should be allowed.  I will fix.
+ 34341 [matz@ru y- a] It's too new.  So it must be unknown problem.

Ruby Weekly News
34190 [Dave@Pr gm t] Ruby Weekly News: 02/18/2002

help: dbi.0.0.10/oracle0.2.11 installation -> core dump
34193 [cclee@pr me ] I downloaded the DBI/DBD (for my Oracle8.1.5) and try the following
35042 [cclee@pr me ] Just in case some one run into the same problem or try solving it, I

Object and method in the Kernel module
34196 [benoit.cerri] I'm trying to make jruby behave correctly with regard to global functions.

Weekly RCR Summary
34199 [RubyGarden@t] This is an automatically generated list of Ruby Change Requests.

Ruby, PickAxe, FreeRIDE mentioned on BYTE magazine
34202 [vruz@ru y- s] ...
34228 [curt@hi bs c] Cool!
34231 [rich@in oe h] Just a friend...and darned influential guy ;)
34232 [vruz@ru y- s] I have been bugging Martin Heller (Mr. Programming Language columnist
34235 [rich@in oe h] -Rich

Anonymous class support
34206 [dcorbin@im e] I find Java anonymous classes to be very helpful when writing UnitTests,
+ 34210 [ser@ge ma e-] Well, you can use blocks.  But you're looking specifically to override a
| 34246 [dcorbin@im e] Yes. That's correct.
+ 34223 [vjoel@PA H. ] x = "hello"
+ 34229 [dsafari@xt a] Perhaps the RubyMock project initiated by Nat Pryce can help here? I this
+ 34233 [nobu.nokada@] As written already, you can use blocks, singleton methods, and
  34270 [chr_news@gm ] Unfortunately you cannot use the ladder idiom within method bodies - for
  + 34276 [dblack@ca dl] Playing around with this example, I can't seem to get the parse error
  + 34279 [nobu.nokada@] Well, aboves worked all without any errors on my box.  Both of
threads.html
top