221212-222396

221011-225351 subjects 221326-225648

^ How to remove empty element in an array
221212 [chen_li3 yah] 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.

^ How to remove empty element in an array
221213 [chen_li3 yah] 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 path.b] array.reject{|element| element.empty? rescue false}
| 221225 [chen_li3 yah] a=[1,2,'','']
| 221253 [pete.yandell] irb(main):001:0> a = [1, 2, 'a', 'b']
| + 221273 [chen_li3 yah] I think this time it should work: regxp for the empty sapce is ^\d*$.
| | 221276 [malvim gmail] I'm sorry, isn't \d used for a digit?
| + 221327 [patrick pksp] 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 segm] RingyDingy version 1.1.0 has been released!

^ Ruby Software Foundation?
221228 [ted94107 yah] Are there plans to start a foundation along the lines of the Apache
221230 [dblack wobbl] There's one already: Ruby Central, Inc.  It was founded in 2002.
221231 [garbagecat10] I can't speak for him but perhaps the OP was referring to the fact that the

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

^ [ANN] Vancouver Ruby Brigade: November 7th
221235 [zedshaw zeds] 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 ] This is just Ruby syntax. It allows both :: and . as operators to
| 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.uni-] 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 path.b] a=[]
| 221926 [michelemende] msg = :reverse
| 221933 [vjoel path.b] Putting the comments in order...
| 221994 [rick.denatal] a.instance_eval {concat [1,2,3,4,5,6,IO,String,Kernel, h]}
| 222045 [vjoel path.b] 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 nosit] 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 gmai] def method_missing(m, args, &block)

^ parseexcel, spreadsheet-excel merger? Gems?
221252 [dsisnero gma] There was indication of the merging of spreadsheet-excel and parseexcel.
221348 [hannes.wyss ] Dominic

^ How do you save the contents of an object?
221255 [steve trippe] Is there an easy way to save the contents of an object in ruby?
+ 221256 [rob ocstech.] Yes, it's called Marshaling.
+ 221258 [TimHunter nc] ri Marshal
+ 221259 [mguterl gmai] Check out these.
+ 221360 [coder68 yaho] 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 rails] 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 gma] 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 scea.] 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 gmail] 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 gmai] 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 kitt] Time#to_s is one of the core methods I have absolutely no qualms
+ 221285 [rbneal allte] Perhaps you mean something like this?
+ 221307 [nospam nosit] Please state the goal, not the imagined solution. There are any number of

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

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

^ Re: Learning ruby - metaprogramming question
221281 [rbneal allte] 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 tidbits] class Hash; alias_method :<<, :merge!; end
+ 221342 [kbloom gmail] The purpose of splat is to convert an array into a list of parameters to a
| + 221359 [invalid gmx.] Kalman
| | + 221361 [dblack wobbl] irb(main):003:0> a = [2,1]
| | | 221367 [lukfugl gmai] I think Kalman was just pointing out that [] (in this case as the
| | | 221373 [dblack wobbl] Right, I didn't pick up on that.
| | + 221781 [robert.dober] Maybe you want to try this
| |   221857 [rick.denatal] But I think that Kalman's point wasn't that there are no :[] methods,
| |   + 222010 [invalid gmx.] Exactly.
| |   + 222112 [robert.dober] You are right about all you were saying, only I did not want to make any
| + 221379 [transfire gm] def foo( **keys )
|   221782 [robert.dober] I want this toy +1
+ 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 maxidoor] On Oct 24, 2006, at 8:55 AM, Just Another Victim of the Ambient
+ 221298 [willpugh sou] I do not know much about the Ruby Garbage collector, but I know Java can
| 221300 [willpugh sou] Just in case you want to learn more, here is a pretty good survey of GC techniques.
+ 221303 [max maxidoor] Conservative garbage collectors can leave some unused data if it
+ 221350 [kbloom gmail] 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 amk.ca] version 2.0.  (Cycles of objects with finalizers aren't collected.)

^ FJSON 0.0.5 released - Works on OSX now
221301 [brian.takita] I released version 0.0.5 of FJSON while at Rubyconf. It now works on OSX. I

^ ruby-prof on amd64
221305 [jeremy bitsw] $ uname -a

^ powerpoint converter??
221306 [mando81 prod] office power point files?
+ 221308 [nospam nosit] No, but if you want to open a PowerPoint file, why not run PowerPoint?
+ 221391 [smartgpx gma] 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 gma] Hey, that's really cool. Now I have to make tests for my app to make

^ Chunky Bacon
221311 [joeat303 yah] WTF, I ask. I know it's in why's Poignant guide, but...WTF?
+ 221312 [ovidiugabrie] ???
| 221314 [tafftoo gmai] I think I saw chunky bacon on sale at Tesco last week
| 221315 [foamdino gma] <homer>
+ 221318 [a2800276 gma] Nonsense Poertry. Advanced Dadaism in Computer Literature?
| 221340 [twifkak comc] 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 refine] Unless it becomes so chunky as to be considered Ham.
| | 221371 [Gemma.Camero] however. One must
| | + 221372 [patrick pksp] 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 dmu.ac.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 cesmai] 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 gmail] 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 yah] 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 gmai] I don't get it either.  It's quite a mental image though! ;)
| | | |         | 222015 [tafftoo gmai] Ok this was mainly to satisfy my own curiosity but...
| | | |         | + 222017 [tafftoo gmai] ...
| | | |         | | 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 gmai] As the tall fox puts it's "The only thing the world will know me for is
| | | |         | | | 222145 [rick.denatal] Another one for us oldsters.
| | | |         | | | + 222176 [hal9000 hype] That is the funniest thing I have heard today.
| | | |         | | | + 222235 [james2mccart] LMAO
| | | |         | | | + 222342 [phlipcpp yah] She was with Why, right?
| | | |         | | + 222028 [phlipcpp yah] This thread is the very first thing I thought of when I woke up this
| | | |         | |   222180 [no.spam plea] What I'd like to know is...
| | | |         | + 222048 [patrick pksp] Just seeing those lyrics brings to mind the MTV video that was produced
| | | |         + 222027 [paul plsys.c] Probably too young; the Ruby community is not ageist :-).  Men At
| | | |         + 222175 [hal9000 hype] 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 hype] ?? If you asked me to pass the HP, I would hand you
| | | | 221849 [james2mccart] Alternatively you could offer up some Daddies.
| | | | 221914 [rossrt rosco] Now, _thats_ more like it. :)
| | | + 221731 [jeff schwabc] 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 schwabc] Interesting.  If there were a "House of Representatives" sauce, I doubt
| | |   | + 221759 [znmeb cesmai] Insert politically incorrect joke here. :)
| | |   | | 221769 [robert.dober] I have been elected by all non native speakers following this thread (myself
| | |   | | 221771 [Gemma.Camero] Thank you...?
| | |   | | 221777 [robert.dober] ok, but did you have to publish my photo-id ;)?
| | |   | + 221916 [hal9000 hype] Depends... is it made from real representatives?  ;)
| | |   + 221812 [hgs dmu.ac.u] in this context.
| | + 221485 [cameron soyc] My mom was upset that they stopped selling HP at the store.
| + 221385 [vjoel path.b] ...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 cesmai] Ruby-red eggs and ham!
+ 221394 [smartgpx gma] For the same reason that  "42", %w(foo bar baz quux) and Godot all make
| + 221402 [znmeb cesmai] quux makes sense?
| | 221446 [m_goldberg a] QUUX [Invented by Steele.  Mythically, from the Latin semi-deponent
| | 221487 [znmeb cesmai] 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 semant] 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 semant] 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 yah] 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 gmail] oh yeah, that's crystal clear.
|     + 221831 [gavin.kistne] ROFLMAO :)
|     + 221844 [znmeb cesmai] I remember when the sign at McDonald's rolled over to "One Billion
+ 221851 [jeff schwabc] Maybe it's a spoonerism of "bunky chacon," which I suppose would be a

^ Using ActiveRecord to determine database structure
221313 [heylonga goo] 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 gmx.d] First there is Ripper. It works by putting its own hooks into parse.y and

^ Re: Great step for Ruby CI. Cerberus 0.3.0 released.
221323 [anatol.pomoz] You should to add tests to your application even if you do not use
221332 [zimba.tm gma] Sorry, it was some kind of humor. I NEED to start writing tests but

^ Ruby in a Nutshell .. worth it?
221325 [ebonakDUH_ h] I know this is somewhat out-dated, but is it worth getting?
+ 221331 [emiel vandel] This was the book that got me hooked on Ruby. It's a really
| 221333 [ebonakDUH_ h] Are those significant changes? How soon is the next version
| + 221338 [peter rubyra] Definitely. Absolutely. Doubtlessly.
| | 221475 [cameron soyc] I couldn't understand the Pickaxe book. It was divided into weird sections
| + 221339 [emiel vandel] It would give you a feel for the Ruby language but would
+ 221334 [peter rubyra] I came accross Ruby a few months ago when this book was already outdated
| 221337 [ebonakDUH_ h] he he .. nice way of putting it ;-)
+ 221349 [mathieu.chap] I use it everyday. 200 pages is compact. And French Oreilly book have
+ 221469 [ebonakDUH_ h] Thanks everyone!
+ 221511 [ezmobius gma] Hal Fulton's new book "The Ruby Way" #2 is absolutely excellent. I
  + 221514 [ebonak-a- t-] thanks for the recommendation, I'll have to take a look,
  + 221527 [hal9000 hype] Thanks for the kind remarks, Ezra...
  | + 221580 [ebonakDUH_ h] I was just looking for your book on amazon, 2nd edition is coming out
  | | 221595 [hal9000 hype] Odd... I thought there was one at Amazon and/or awprofessional.com --
  | | 221666 [ebonakDUH_ h] Thanks .. that would be great.
  | + 221583 [znmeb cesmai] Lucky indeed ... I just went to Addison-Wesley and the book is not yet
  + 221530 [gilesb gmail] I have version 1 of this. I like it better than Pickaxe, the Nutshell
threads.html
top