221205-390063

221010-225351 subjects 221323-395045

OT: Does anyone have an extra shirt from rubyconf?
221205 [nathan.peel@] ...
221455 [matt@te hn r] For some reason, I feel obligated to point out that RubyConf was held in
221472 [mtrier@gm il] Zed says, "Don't be THAT GUY" :)
221473 [mtrier@gm il] Nm, I read it wrong.  Sorry.

How to remove empty element in an array
221212 [chen_li3@ya ] I have an array of [1,2,''] I want change it to [1,2]. I check the
+ 221215 [shortcutter@] You should really get hold of your copy of the Pickaxe.
| 221216 [gavin.kistne] irb(main):001:0> a = [1,2,'']
+ 221217 [halostatue@g] It's "[1, 2, <empty-string>]"? If so, then it's not an empty element.
+ 390035 [kondarao77@y] It is working only for 253 array elemnets, how to increase teh array
| 390047 [shortcutter@] What is "it"?  Please do not hijack old threads.
+ 390063 [shevegen@li ] You should pastie your code somewhere.

How to remove empty element in an array
221213 [chen_li3@ya ] I have an array of [1,2,''] I want change it to [1,2]. I check the
+ 221214 [farrel.lifso] If you only want to get rid of empty strings
| 221220 [vjoel@pa h. ] array.reject{|element| element.empty? rescue false}
| 221225 [chen_li3@ya ] a=[1,2,'','']
| 221253 [pete.yandell] irb(main):001:0> a = [1, 2, 'a', 'b']
| + 221273 [chen_li3@ya ] I think this time it should work: regxp for the empty sapce is ^\d*$.
| | 221276 [malvim@gm il] I'm sorry, isn't \d used for a digit?
| + 221327 [patrick@pk p] Thanks! I was beginning to think I was the only one seeing that
+ 221218 [ulisses.mont] You can Array#reject! if you want to do it in-place or Array#delete_if if you
+ 221280 [seth_ruby@se] How about this?
  + 221304 [pete.yandell] If you just want to delete empty strings (as opposed to strings
  + 221336 [ulisses.mont] <off-topic>

[ANN] RingyDingy 1.1.0 Released
221219 [drbrain@se m] RingyDingy version 1.1.0 has been released!

Ruby Software Foundation?
221228 [ted94107@ya ] Are there plans to start a foundation along the lines of the Apache
221230 [dblack@wo bl] There's one already: Ruby Central, Inc.  It was founded in 2002.
221231 [garbagecat10] ...

ruby & activeTcl run solely from a usb flash drive
221229 [leafhopper8@] All,
+ 221257 [nagai@ai ky ] When I created a CD-R for running Ruby (One-Click Ruby) + ActiveTcl
+ 221484 [vagabond@ca ] I built tcl/tk manually (ActiveTCL has distribution restrictions), built

[ANN] Vancouver Ruby Brigade: November 7th
221235 [zedshaw@ze s] Just a quick announcement to prime the pump that the next Vancouver Ruby Brigade is November 7th.  We are tentatively planning a RubyConf wrap-up, but we're also looking for ideas.

File::open and File.open
221237 [rtilley@vt e] What exactly is the difference between these? :: is a class method while
+ 221238 [jameskilton@] ...
| 221493 [rick.denatal] And when talking about instance methods one sometimes uses
+ 221239 [shortcutter@] The same method (a class method) is called.  It is just a syntactic
  + 221241 [rtilley@vt e] Thank you Robert and Jason. I understand that much better now!
  | 221242 [gavin.kistne] irb(main):001:0> class Foo; attr_accessor :bar; end
  + 221243 [uval@rz un -] I was bitten by it more than once

What's the difference between send and instance_eval?
221249 [michelemende] What's the difference between send and instance_eval (except the
221251 [tim.pease@gm] send can only be used to execute existing methods on objects.
221380 [michelemende] So there is no need for "send"?
+ 221390 [vjoel@pa h. ] a=[]
| 221926 [michelemende] msg = :reverse
| 221933 [vjoel@pa h. ] Putting the comments in order...
| 221994 [rick.denatal] a.instance_eval {concat [1,2,3,4,5,6,IO,String,Kernel, h]}
| 222045 [vjoel@pa h. ] And I'm starting to beat a dead horse here, but using a block leads you
| 222069 [michelemende] I may not understand it well, but I don't like it. The two methods are
| 222075 [gavin.kistne] * Use send when you want to invoke a method, but you have a variable
| 222082 [michelemende] Thanks alot, you nice Ruby-people.
| 222108 [nospam@no it] Yes to one, maybe to the other, results not sorted. :)
+ 221451 [tim.pease@gm] Actually, I use send quite often -- more so than instance_eval. When I
+ 221572 [wilsonb@gm i] def method_missing(m, args, &block)

parseexcel, spreadsheet-excel merger? Gems?
221252 [dsisnero@gm ] ...
221348 [hannes.wyss@] Dominic

How do you save the contents of an object?
221255 [steve@tr pp ] Is there an easy way to save the contents of an object in ruby?
+ 221256 [rob@oc te h.] ...
+ 221258 [TimHunter@nc] ri Marshal
+ 221259 [mguterl@gm i] ...
+ 221360 [coder68@ya o] As a further aside to saving with yaml, yet another fantastic little
| 221363 [farrel.lifso] You don't need RoR for that. Merely including yaml will give objects
+ 221370 [gustav@ra ls] I posted an article/tutorial on marshalling objects and saving them to
+ 221663 [guoxianghao@] Use YAML you can store/load the content of a Ruby object without any
  221745 [jrunning@gm ] The built-in Marshal class is designed for this very thing, and

Modules and foo
221260 [curtis.schof] I have some questions about some things that i don't understand..
221410 [nwiger@sc a.] Do you mean "class InstanceMethods"? Modules are collections, often of
221494 [curtis.schof] I'm following a pattern that Rails uses for the "Acts As" code.

Difficulty installing ruby gem termios
221263 [jonathan.wal] I've just put a fresh install of kubuntu 6.06.1i on my computer.  I'm
221265 [jonathan.wal] For future reference, this is the error one gets when gcc is not
221341 [kbloom@gm il] The proper solution to this problem would thus be to install the package

Override Time#to_s -- how?
221266 [ben.vinegar@] Hey everyone,
+ 221272 [wilsonb@gm i] What do you mean by 'without modifying the Time class itself'?  Isn't
| + 221274 [cies.breijs@] irb(main):001:0> class MyTime < Time
| + 221282 [ruby-ml@ki t] Time#to_s is one of the core methods I have absolutely no qualms
+ 221285 [rbneal@al te] Perhaps you mean something like this?
+ 221307 [nospam@no it] Please state the goal, not the imagined solution. There are any number of

Re: [SPAM]  Override Time#to_s -- how?
221270 [collinsj@se ] You mean output time objects a certain way?
221271 [collinsj@se ] I meant,

Re: Building a Ruby track for Linuxfest Northwest
221277 [znmeb@ce ma ] Well, given that it's here in Portland, and given that I should be at
221284 [zedshaw@ze s] Bellingham!  Oh I am so there.  Now to think up a new talk.

Re: Learning ruby - metaprogramming question
221281 [rbneal@al te] I have found Chapter 13, Ruby Dynamics, in Ruby for Rails by David A.
221320 [luc.juggery@] Thanks a lot Brian,

'**' as hash splat?
221287 [transfire@gm] a = [2,1]
+ 221294 [matt@ti bi s] class Hash; alias_method :<<, :merge!; end
+ 221342 [kbloom@gm il] The purpose of splat is to convert an array into a list of parameters to a
| + 221359 [invalid@gm .] Kalman
| | + 221361 [dblack@wo bl] irb(main):003:0> a = [2,1]
| | | 221367 [lukfugl@gm i] I think Kalman was just pointing out that [] (in this case as the
| | | 221373 [dblack@wo bl] Right, I didn't pick up on that.
| | + 221781 [robert.dober] ...
| |   221857 [rick.denatal] But I think that Kalman's point wasn't that there are no :[] methods,
| |   + 222010 [invalid@gm .] Exactly.
| |   + 222112 [robert.dober] ...
| + 221379 [transfire@gm] def foo( **keys )
|   221782 [robert.dober] ...
+ 221377 [r.gebauer@wo] we can do by using method Hash::[] instead of literal {}
| 221653 [r.gebauer@wo] sorry for (twice) rubbish
+ 221378 [r.gebauer@wo] we can do by using method Hash::[] instead of literal {}

[ANN] Ruby Reports (Ruport) 0.6.0
221291 [gregory.t.br] = Ruport 0.6.0 Release, the "That Guy" edition =

Ruby's garbage collector...
221293 [ihatespam@ro] Is there a name for Ruby's garbage collecting strategy?
+ 221295 [max@ma id or] On Oct 24, 2006, at 8:55 AM, Just Another Victim of the Ambient
+ 221298 [willpugh@so ] I do not know much about the Ruby Garbage collector, but I know Java can
| 221300 [willpugh@so ] Just in case you want to learn more, here is a pretty good survey of GC techniques.
+ 221303 [max@ma id or] Conservative garbage collectors can leave some unused data if it
+ 221350 [kbloom@gm il] If it's mathematically impossible for a garbage collector to find every
| + 221352 [shortcutter@] In fact Java's GC is much more complex.  It uses mark and sweep among
| + 221557 [rick.denatal] It depends on how you define unused.
+ 221634 [dido.sevilla] On 10/24/06, Just Another Victim of the Ambient Morality
  221641 [shortcutter@] Um, this sounds pretty contradictory.
  221645 [dido.sevilla] Oops, I meant to say *Python* and Perl. :)
  222396 [  amk@am .c ] version 2.0.  (Cycles of objects with finalizers aren't collected.)

FJSON 0.0.5 released - Works on OSX now
221301 [brian.takita] ...

ruby-prof on amd64
221305 [jeremy@bi sw] ...

powerpoint converter??
221306 [mando81@pr d] office power point files?
+ 221308 [nospam@no it] No, but if you want to open a PowerPoint file, why not run PowerPoint?
+ 221391 [smartgpx@gm ] The online version of Programming Ruby (aka 'the pickaxe') has an item

[ANN] Great step for Ruby CI. Cerberus 0.3.0 released.
221310 [anatol.pomoz] I am glad to announce 0.3.0 release of Cerberus CI tool. This release is
221319 [zimba.tm@gm ] Hey, that's really cool. Now I have to make tests for my app to make

Chunky Bacon
221311 [joeat303@ya ] WTF, I ask. I know it's in why's Poignant guide, but...WTF?
+ 221312 [ovidiugabrie] ???
| 221314 [tafftoo@gm i] ...
| 221315 [foamdino@gm ] <homer>
+ 221318 [a2800276@gm ] Nonsense Poertry. Advanced Dadaism in Computer Literature?
| 221340 [twifkak@co c] OMG. YOU JUST BROKE CHUNKY BACON.
+ 221357 [aredridel@nb] Chunky bacon! Chunky bacon!
| + 221362 [leslieviljoe] The chunkier the better. Chunky bacon is always the best bacon.
| | 221366 [gavin@re in ] Unless it becomes so chunky as to be considered Ham.
| | 221371 [Gemma.Camero] however. One must
| | + 221372 [patrick@pk p] Most yanks on this forum don't know what HP is. We're not referring to
| | | + 221375 [Gemma.Camero] Another northerner I presume? Lancashire?
| | | | 221382 [thomas.adam2] Ha!  I prefer Waitrose, but alas, it is out of my price range.
| | | | 221383 [Gemma.Camero] Southerner!
| | | | 221384 [Gemma.Camero] Although back to the initial question wtf (excuse my language) has any
| | | | + 221392 [xennocide@ya] Another brit here.  Vegetarian too, but can still appreciate conceptual
| | | | + 221453 [hgs@dm .a .u] an intro to Ruby with Cartoon Foxes.  Some of the oddness works like
| | | | + 221533 [rick.denatal] Hmmmm, I never considered the possibility that why might be a brit.
| | | |   221539 [znmeb@ce ma ] HP is a sauce? Now I think I've seen it in the grocery stores here in
| | | |   + 221581 [rick.denatal] Vegemite includes folate (or folic acid) which the FDA only allows in
| | | |   + 221613 [halostatue@g] Yes. It's actually a couple of different "steak" sauces, but when
| | | |     + 221644 [Gemma.Camero] any
| | | |     | 221647 [spoooq@gm il] I have to delurk and admit to being both Australian and living in
| | | |     + 221674 [james2mccart] Vegemite (similar to Marmite) is
| | | |       221876 [rick.denatal] It's not clear whether or not it's really banned.  It seems to be
| | | |       + 221879 [joeat303@ya ] Joe
| | | |       + 221998 [james2mccart] I sing it every morning before I hit the keyboard, 200 technicians in
| | | |         222000 [Gemma.Camero] Am I too british or too young to understand?
| | | |         + 222012 [tafftoo@gm i] ...
| | | |         | 222015 [tafftoo@gm i] ...
| | | |         | + 222017 [tafftoo@gm i] ...
| | | |         | | 222019 [Gemma.Camero] Yes I know the song!
| | | |         | | 222020 [Gemma.Camero] And again, what has any of this got to do with coding!
| | | |         | | + 222023 [tafftoo@gm i] ...
| | | |         | | | 222145 [rick.denatal] Another one for us oldsters.
| | | |         | | | + 222176 [hal9000@hy e] That is the funniest thing I have heard today.
| | | |         | | | + 222235 [james2mccart] LMAO
| | | |         | | | + 222342 [phlipcpp@ya ] She was with Why, right?
| | | |         | | + 222028 [phlipcpp@ya ] This thread is the very first thing I thought of when I woke up this
| | | |         | |   222180 [no.spam@pl a] What I'd like to know is...
| | | |         | + 222048 [patrick@pk p] Just seeing those lyrics brings to mind the MTV video that was produced
| | | |         + 222027 [paul@pl ys c] Probably too young; the Ruby community is not ageist :-).  Men At
| | | |         + 222175 [hal9000@hy e] I don't know. How old are you, and how British are you?  ;)
| | | |           222239 [james2mccart] Age may as yet be indeterminate but I think we can resolve that
| | | + 221517 [hal9000@hy e] ?? If you asked me to pass the HP, I would hand you
| | | | 221849 [james2mccart] Alternatively you could offer up some Daddies.
| | | | 221914 [rossrt@ro co] Now, _thats_ more like it. :)
| | | + 221731 [jeff@sc wa c] I'm not sure I like being called a "yank."  It's too much like "jerk."
| | |   + 221742 [thomas.adam2] "Houses of Parliament" brown sauce.
| | |   | 221749 [jeff@sc wa c] Interesting.  If there were a "House of Representatives" sauce, I doubt
| | |   | + 221759 [znmeb@ce ma ] Insert politically incorrect joke here. :)
| | |   | | 221769 [robert.dober] ...
| | |   | | 221771 [Gemma.Camero] Thank you...?
| | |   | | 221777 [robert.dober] ...
| | |   | + 221916 [hal9000@hy e] Depends... is it made from real representatives?  ;)
| | |   + 221812 [hgs@dm .a .u] in this context.
| | + 221485 [cameron@so c] My mom was upset that they stopped selling HP at the store.
| + 221385 [vjoel@pa h. ] ...and eggs and chunky bacon!
|   + 221386 [gavin.kistne] If you read "Why's Poignant Guide to Ruby" you'll soon learn how Chunky
|   + 221400 [znmeb@ce ma ] Ruby-red eggs and ham!
+ 221394 [smartgpx@gm ] For the same reason that  "42", %w(foo bar baz quux) and Godot all make
| + 221402 [znmeb@ce ma ] quux makes sense?
| | 221446 [m_goldberg@a] QUUX [Invented by Steele.  Mythically, from the Latin semi-deponent
| | 221487 [znmeb@ce ma ] Guy Steele makes sense?
| | + 221524 [m_goldberg@a] <launching reply and shifting position rapidly>
| | + 221526 [james2mccart] Since this seems to have become a bit of a brit flashmob... any south
| |   221649 [peter@se an ] Well I live in Brighton, what we gonna talk about or shall we just bitch
| |   + 221650 [Gemma.Camero] Please don't bitch about Java! I just left a fantastic java project and
| |   | 221677 [james2mccart] Gemma, couldn't you leave the panda at home, or check it into a kennel
| |   + 221680 [james2mccart] We can add some bitching about how all these Londoners have ruined the
| |     221694 [peter@se an ] I would like to add French language students to the agenda. I have quite
| |     221697 [Gemma.Camero] I'm going to one in manchester on the 14th November but it could be good
| |     221698 [Gemma.Camero] They can cause a lot of damage when they're pining, these Panda's...
| + 221555 [gregory.t.br] i always wondered what came after baz!
|   221816 [joeat303@ya ] Futhermore...what exactly IS chunky bacon? Bacon cut up into chunks, or
|   + 221820 [gavin.kistne] My personal interpretation has always been thick slices of (normal)
|   + 221823 [tim.pease@gm] I asked Widipedia. Chunky bacon just redirected me to the entry for
|     221829 [gilesb@gm il] oh yeah, that's crystal clear.
|     + 221831 [gavin.kistne] ROFLMAO :)
|     + 221844 [znmeb@ce ma ] I remember when the sign at McDonald's rolled over to "One Billion
+ 221851 [jeff@sc wa c] Maybe it's a spoonerism of "bunky chacon," which I suppose would be a

Using ActiveRecord to determine database structure
221313 [heylonga@go ] for a project i have to write a program that determines automatically

Parsing ruby-code with the ruby-interpreter itself
221322 [cies.breijs@] at the moment most code editors are using sets of regexps, and other
221344 [dbatml@gm .d] First there is Ripper. It works by putting its own hooks into parse.y and
threads.html
top