69942-71079 subjects 70358-84125

freezing Array/Hash length
70075 [surrender_it] I just felt in a problem where I'd like to have a fixed size
70140 [brett_willia] I'm not sure but my first post didn't make it apparently...
70153 [surrender_it] doh! I meant to write "length" not "last"..

70078 [ jupp@gm .d ] Saluton!
70130 [angus@qu va ] FWIW, using mutt in a utf8 terminal, with standard fixed fonts, I can read

asciitic.rb - ISO-8859-* -> ASCII (Was Re: ldsf)
70080 [ jupp@gm .d ] Saluton!

Bug in chdir() in Ruby 1.6....
70081 [sean@ch tt n] Dir.chdir("/tmp") do |d|
70083 [hal9000@hy e] I think this only makes sense if you

GridFlow 0.7.2
70088 [matju@sy pa ] Here is a new release of GridFlow (a multi-dimensional dataflow processing
70119 [0bz63fz3m1qt] These screenshots looks awesome!

[ANN] CursWrap 0.2.1
70101 [vangczung@ya] CursWrap is a ruby module that provides a nicer interface to the
70154 [surrender_it] I forgot if this question was already asked.. could it work with DOS
70164 [vangczung@ya] Try it.  If you get errors while compiling or running with different

Array String.match(Regexp)
70103 [suk@ar ax ka] I'd like to know, what is the easiest way of doing the perlish
+ 70112 [B.Candler@po] foo = "junkdelimabc:def:ghi"
+ 70116 [bob.news@gm ] all, i, j, k = */delim(\S+):(\S+):(\S+)/.match($_).to_a

What does SecurityError actually cover?
70133 [higle@ho ma ] Noob-ish question:  So, what does the exception class SecurityError
+ 70134 [decoux@mo lo] Chapter 20 "Locking Ruby in the Safe" (p. 257)
+ 70135 [gfb@to es ft] Try to increase Ruby safe level and do something with external resources,
+ 70136 [nemo@he lo r] Noob-ish question:  So, what does the exception class SecurityError
+ 70348 [higle@ho ma ] Wow, duh!  Yeah, I had the wrong idea of what SecurityError was

"Ruby" in Japanese Characters
70143 [telemorphix@] as a blithe introduction of a presentation about Ruby I'd like to
+ 70146 [erik@so id o] It's a Ruby mousepad from the Ruby.shop :-)
+ 70147 [denshimeiru-] +def +end        715000 results
+ 70148 [gfb@to es ft] I remember extensive discussion of this issue some months ago on
+ 70151 [telemorphix@] Thanks a lot to all of you for your quick and informative answers :-)

Parsing C++ with Ruby
70144 [deliriousNOS] _Context:_
+ 70200 [sroberts@un ] A recent Dr. Dobbs Journal described extensions made to gcc so that it
| 70242 [deliriousNOS] I had never heard about this, very interesting.
| 70254 [sroberts@un ] I haven't coded in C++ in years, but I tried to write a parser for it
+ 70753 [probertm@NO ] Simon Vandemoortele <deliriousNOSPAM@atchoo.be> did say ...
| 70780 [sroberts@un ] Don't bother, let gcc do it for you and dump the parse tree as xml,
+ 70757 [0bz63fz3m1qt] I am working on a package-installer for freebsd.. I use DAG (digraphs)

raa.succ - independent reviews
70145 [0bz63fz3m1qt] I was just browsing..  interesting :-)
+ 70228 [0bz63fz3m1qt] No replies.. is anyone reading this ?
+ 70232 [batsman.geo@] This all only needs loose integration w/ RAA.rucc. I mean that this
  70270 [0bz63fz3m1qt] freshmeat.. I havn't thought about this, even though I use it :-)

[Q] -Infinity
70149 [rodrigo.berm] Where is the limit of the finite world    ?  =)

Installation: missing md5.so, etc
70150 [mliang@co .n] I am trying to set up a website. I've installed ruby locally using the
70276 [0bz63fz3m1qt] Does this "require" work for you ?

Is there something of comparable to LWP in Ruby?
70152 [olczyk@in er] Anything with the same complexity and depth?

Persistant data
70155 [matt@bl ck b] Ok, I've been looking at Marshal, PStore, Madelaine and mnemonic.  None of
+ 70157 [rpav@nw in .] If you can hang on for a day or so, I'll release Mephle on Monday.
| 70160 [matt@bl ck b] Well, it sounds a bit complex, but I can certainly wait.  The big thing I
| + 70165 [ahoward@fs .] ~/eg/ruby > cat pobject.rb
| + 70174 [rpav@nw in .] It's actually built to be easy.  It's somewhat sophisticated, but I
+ 70158 [gfb@to es ft] You may want to take a look at mmap library at RAA, or directly at
+ 70161 [surrender_it] # this could be completely wrong
  + 70162 [matt@bl ck b] Not a problem with this application.
  | 70166 [ahoward@fs .] the code i posted does all of this nice and slowly, but also simply as you
  + 70179 [ndrsbngtssn@] These snapshots are an important feature, but not the central part of
    70183 [surrender_it] <snip good & needed explanation>

Newbie question: behaviour of String === String
70156 [weitzhof@in ] Object === Object
+ 70159 [wkb@ai ma l.] Bernhard,
+ 70163 [nemo@he lo r] case obj.class.id

yield self
70167 [ahoward@fs .] recently someone posted a very cool method which, given an object, would yield
70168 [vjoel@PA H. ] Do you mean instance_eval?
70169 [ahoward@fs .] no - i least i think i don't... perhaps i was dreaming?  hope not, it was kind
70175 [batsman.geo@] Do you mean this?
70201 [ahoward@fs .] yes.  thanks!

[ncurses-ruby] How to get more than 8 colors ?
70177 [deliriousNOS] Here is a copy of the question I entered on

Wiki e-mail notification
70180 [dave@pr gp o] Just as an experiment I've turned off e-mail notification of change from
70191 [aredridel@nb] Aha!  Next ruby project, then: Write an RSS-to-mail gateway that does

Human Languages
70192 [aredridel@nb] You know, I've often thought that Ruby would not be so good if there

gutopia status
70193 [surrender_it] I went to the gutopia homepage crawling on google result for something

eBay Auction Education --  leucogenes leontopodium
70194 [0061hbvh5@ly] ...

[OT] terminal colors (Was: [ncurses-ruby] How to get more than 8 colors ?)
70197 [ jupp@gm .d ] Saluton!
70260 [deliriousREM] I get a 404 on this URL.
70267 [ jupp@gm .d ] Saluton!

[ANN] Plugin engine for ruby snapshot
70203 [idan@id ns .] During the last week, I've been in process of making radical(web

can you guess
70204 [ahoward@fs .] raise "NO FAIR RUNNING IT!"
+ 70205 [lopx@ga et .] it seems Ruby doesnt see it as
| + 70207 [ahoward@fs .] yes, that's true.  the question is, what *does* it see it as?  the output
| + 70210 [B.Candler@po] Sure, but then % is an infix operator. You wouldn't expect "* 5" to behave
|   70221 [tim@ba es id] Yes, as does
|   70222 [dblack@su er] That's not strange though, is it?  You've sort of contracted to
|   70223 [dblack@su er] David
+ 70206 [batsman.geo@] % args
  + 70208 [lopx@ga et .] good idea! try this...
  + 70226 [ahoward@fs .] not bad - it took me a few seconds to realize what was going on.  you win -

How do I change directories?
70211 [dcarrera@ma ] How do I change directory from a Ruby program?
+ 70212 [dblack@su er] Dir.chdir
| 70213 [dcarrera@ma ] Thanks.
+ 70214 [heaney@ca le] Ruby has its own chdir; you don't have to ask the system to cd.
  70216 [paul@lu n. e] And if you do, you spawn a shell which will chdir and exits

XML Parsing the Ruby way.
70215 [aredridel@nb] I've been looking at REXML, and I really like the architecture: A very
+ 70218 [aredridel@nb] The difficulties in mapping objects to XML is partly in XML's
+ 70229 [james_b@ne r] I tend to side with the "it's only a tree if you want to see it that
| 70262 [aredridel@nb] I agree, though I choose to see it as a graph (with a tree being a
+ 70489 [cjh_nospam@m] I've done exactly this for C++ in my XmlBind library. It relies

Ruby misfeature? => CONTEST: solve the following problem
70217 [batsman.geo@] What's the output of the following script?
+ 70227 [ptkwt@sh ll ] OK, I'll admit to cheating by running this script...
| 70233 [batsman.geo@] This happens if you select it and then try to copy/paste '=E0 la X'; it
+ 70237 [dblack@su er] I get no points :-)  I ran the code, and got no output, but then I ran
  70241 [batsman.geo@] The possible misfeature is allowing spaces as delimiters.

File reading and line continuation with '\'
70224 [jim@fr ez .o] Is there an simple way to get ruby to read lines in a file
+ 70225 [jj5412@ea th] File.open(in_filename, "r") { |inFile|
| 70231 [jim@fr ez .o] Hmm... I don't get it.
| 70323 [jj5412@ea th] I misinterpreted your request. I thought you wanted to use \ as the
+ 70236 [B.Candler@po] I guess the simplest is to read the whole file in and process it by removing
| 70240 [B.Candler@po] Alternative solution: how about joining the adjacent strings together
+ 70283 [volty@lo al ] class File

Interesting Robert C. Martin blog entry
70230 [james_b@ne r] "Now I am back programming in Java because the projects I'm working on call for it. But

Regexp and $
70243 [B.Candler@po] I seem to remember some discussion about regexps recently, including Perl
+ 70244 [B.Candler@po] - before a newline
+ 70245 [decoux@mo lo] $ match before \n or the end of string if it's not \n
  70246 [B.Candler@po] s/[\r\n\s]+$//;   # Strip trailing spaces and newlines
  + 70247 [decoux@mo lo] Retrieve the test for regexp from rubicon and run it against ruby, perl,
  + 70248 [dblack@su er] $ echo -e "abc\nabc" | sed -e 's/abc$/def/'
  + 70288 [bob.news@gm ] Did you look at \z, \Z and option "m" (multiline mode)?
    70292 [B.Candler@po] Err, yes. I think perhaps you missed my posting which started the thread, at
    70315 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag

serializing objects to sql
70250 [spam@de k. k] Last night I was wondering why I had to write sql code to store all my
+ 70251 [tim@ba es id] Have you seen db-backed[1]? It's not in the RAA for some reason (although it
| 70257 [spam@de k. k] A very nice library indeed... it provides much of what I was missing,
+ 70263 [surrender_it] I think this could be someway similar to SPL [1] maybe that source

How to undefine a member variable ? (or at least hide it from YAML)
70252 [deliriousNOS] #+v
+ 70255 [nemo@he lo r] 1)  once I've assigned to a member variable there is (to my knowledge) no
+ 70256 [matz@ru y- a] there's remove_instance_variable to remove instance variables.  It's
| 70259 [deliriousNOS] That works well (didn't know it existed).
| 70286 [bob.news@gm ] "Simon Vandemoortele" <deliriousNOSPAM@atchoo.be> schrieb im Newsbeitrag
| + 70353 [surrender_it] maybe you could write an attr-like method to automatically unsets the
| | 70359 [bob.news@gm ] "Simon Vandemoortele" <deliriousREMOVEUPPERCASETEXTTOREPLY@atchoo.be>
| | 70424 [bob.news@gm ] "Simon Vandemoortele" <deliriousREMOVEUPPERCASETEXTTOREPLY@atchoo.be>
| + 70360 [bob.news@gm ] "Simon Vandemoortele" <deliriousREMOVEUPPERCASETEXTTOREPLY@atchoo.be>
+ 70258 [spam@de k. k] If you have a lot of values that come and go, then why not put them in a

Generating a DLL file?
70265 [rich@li hi o] ...
+ 70269 [dcarrera@ma ] Well...  if you don't know what a DLL is, how do you you want one? :)
| 70272 [rich@li hi o] "I felt that it should be possible to create a DLL that sits between the
| + 70273 [dcarrera@ma ] I would probably understand your responses better if I know what a "bot"
| | 70275 [chadfowler@c] The way the game half-life works (and several other Quake derivatives) is
| | 70278 [rich@li hi o] Perfect response. Thanks Chad!
| | 70284 [lyle@us rs s] Even if you could get it all to hang together with a Ruby interface (as
| + 70274 [0bz63fz3m1qt] This sounds like you want to embed the ruby interpreter into a c++
|   70277 [rich@li hi o] I don't know C - or C++... and I'd rather not learn.
|   + 70279 [chadfowler@c] So, the bottom line is that you're not going to be able to do what you want.
|   + 70280 [michael_s_ca] As a professional programmer, I'll never understand this sort of
|   | 70281 [hal9000@hy e] new things (though there's only so much time
|   + 70282 [0bz63fz3m1qt] Yes C/C++ is a bastard language, but unfortunatly unavoidable :-)
|     70291 [B.Candler@po] C is a perfectly good assembly language, and moderately portable. In fact if
+ 70271 [james_b@ne r] ...

c++/ruby debugging advices
70268 [0bz63fz3m1qt] Im embedding ruby into c++ and im having a segfault problem which
70285 [frido@q- of ] That is not very likely. Have you tried to write the FrameWork for
70303 [0bz63fz3m1qt] mmm.. What do you mean about "framework" ?
70336 [0bz63fz3m1qt] Is anyone there?
+ 70340 [brett_willia] You mean other than run gdb?
| 70349 [0bz63fz3m1qt] I use "ddd" a GUI frontend for gdb. This makes stepbystep debugging
+ 70345 [lyle@us rs s] Many of the problems I seem to run into when mixing C++ and Ruby have to
  70347 [0bz63fz3m1qt] Right now I only have *one* instance in c++ of a ruby-class.
  + 70351 [0bz63fz3m1qt] I found out.. (ripped from google.groups)
  + 70365 [frank.schmit] AFAIK, ElectricFence is cross-platform, while Valgrind is
    70369 [0bz63fz3m1qt] I would like to try out Valgrind.. but im running FreeBSD.

Why I haven't learned (and don't really want to learn) C/C++ (was: Re: Generating a DLL file?)
70287 [rich@li hi o] It's easy to understand...
+ 70308 [michael_s_ca] For you. =)
| 70339 [harryo@zi .c] Also, depending on the environment in which you work, knowing at least C could
| 70344 [brian@co ln ] There's that, and the fact that many languages rely on the C stdlib for
+ 70318 [james_b@ne r] Weird to lump C and Java together.
  + 70320 [rich@li hi o] C and Java are statically typed languages. That's all.
  + 70334 [Stephan.Kaem] For example - running Ruby programs. :-)

ANN: FreeRIDE 0.5.0 Final Release
70289 [curt@hi bs c] The final release of FreeRIDE version 0.5.0 is available for download! For
+ 70329 [jj5412@ea th] I'll bet there is a glaringly obvious Download link somewhere that I
| 70331 [curt@hi bs c] You need to installed FOX, FXScintilla, and FXRuby (make sure you build
+ 70342 [surrender_it] just tested Win32 version (linux version si for tomorrow :)
| + 70354 [curt@hi bs c] It looks like the debugger plugin has its autoload property set false. Edit
| | 70362 [curt@hi bs c] .../freeride/plugins/rubyide_tools_fox_debugger/plugin.yaml
| | 70379 [STUCKNER@MU ] Thanks Curt for those pointers. My debugger now functions (hurrah!)...but
| | 70380 [curt@hi bs c] My fault here -- there are actually two plugins that need autoload set to
| | 70387 [STUCKNER@MU ] First of all I want to congratulate all who chipped in on the FreeRide
| | 70390 [curt@hi bs c] Thanks!
| + 70355 [curt@hi bs c] Yes, we have a bug report on this one. For now, just use your mouse to grab
|   70367 [surrender_it] ok, works thanks
+ 70394 [surrender_it] Is code folding in the editpane planned ?
  70395 [curt@hi bs c] Yes it is. In fact, I think Rich Kilmer might already be working on it.

Ruby Weekly News
70299 [Dave@Pr gm t] Ruby Weekly News: 04/28/2003

Can I add more than one command by using ruby -pe '    '?
70304 [veetai@ya oo] Can I add more than one command by using ruby -pe '    '? ( I 'm sorry
70305 [dblack@su er] $ ruby -pe 'sub!(/a/,"b"); $_.capitalize!'
70383 [mike@ra do .] [mike@ratdog mike]$ ruby -p -e 'sub!(/a/,"b")' -e '$_.capitalize!'

Is there any project use ruby to wrap C++ library without using SWIG?
70306 [veetai@ya oo] Is there any project use ruby to wrap C++ library without using SWIG?
+ 70319 [gfb@to es ft] Pickaxe has a very good example of what you are asking about. See also
+ 70322 [pbrannan@at ] I have one that I hinted at during the last Ruby conference, but I have

Remember Mother's Day 11th May 2003
70307 [home@pr nc .] This is a multi-part message in MIME format

ruby web programming tutorial
70309 [kgergely@ml ] Is there some "Using Ruby for Web Pages" like tutorial for newbies?
70338 [0bz63fz3m1qt] Simon Strandgaard

'relaxed' array syntax
70310 [kgergely@ml ] There's a feature in perl, which I like (pls don't flood :)
+ 70311 [B.Candler@po] Err, yes it works exactly like that in Ruby - try it!
+ 70312 [dblack@su er] Don't you have Ruby installed? :-)
+ 70313 [michael_s_ca] With all due respect, a 10 second test would have told you the

Ruby Conference 2003 pre-registration now open!
70314 [dblack@su er] The Conference will be held in Austin, Texas, November 14-16, 2003.

Re: FreeRIDE 0.5.0 Final Release
70316 [STUCKNER@MU ] I just want to be clear about something. Does the integrated debugging

Running OpenGL on Mac OS X
70317 [james@la ya ] I couldn't see any info describing this process on the web, so i'm

File#split bug?
70324 [jim@fr ez .o] Is this a bug in File#split?
+ 70325 [dcarrera@ma ] dcarrera ~ $ touch jfn
| 70333 [angus@qu va ] ~jfn is the home directory of user jfn.
+ 70326 [gfb@to es ft] It seems like '~' here is not treated as a special symbol. To have it
+ 70327 [nobu.nokada@] File.split doesn't imply File.expand_path.

70335 [claudiawilli] MRS.CLAUDIA D. WILLIAMS & FAMILY.

Manipulate IE via Ruby? ...
70337 [christopher.] I want to tinker with the concept of Windows Automation as described in chapter
70346 [james_b@ne r] I would think that msdn.microsoft.com would have the IE object model.
70350 [chrismo@cl b] manipulated

[ANN] xml-simple 1.0.0
70341 [contact@ma k] Yo!
+ 70356 [botp@de mo t] cool, simply cool.. many thanks for the contrib...
+ 70361 [mvondung@gm ] Thanks! That's exactly what I was looking for. Awesome. :)