272534-273518

272313-280730 subjects 272808-389139

PDF::SimpleTable
272534 [neha.chopra@] Is it possible to have a table inside another table in PDF.
272548 [halostatue@g] Not using PDF::SimpleTable.
272551 [neha.chopra@] then what can be another way of generating pdf in ruby and having a
+ 272556 [halostatue@g] Find a formatter that can do that. Tables aren't a basic feature of
+ 272566 [dangerwillro] You might consider scripting an app that is a page layout or design
| 273401 [martindemell] I've had good results using ruby to generate lout
+ 273375 [andrea.fazzi] * http://deplate.sourceforge.net/

Human readable file sizes
272535 [jgabrielygal] I have a list of files and I need to produce a string containing the
+ 272540 [flyerhzm@gm ] ...
+ 272545 [fwmailinglis] charset="iso-8859-1"
| 272568 [jgabrielygal] Sorry, the above requirements are a simplification. For one I need to
+ 272585 [SimonKroeger] class Numeric
+ 272591 [rabbitblue@g] Posted via http://www.ruby-forum.com/.
| 272705 [jgabrielygal] 000525
+ 272596 [w_a_x_man@ya] On Oct 4, 5:05 am, "Jes=FAs Gabriel y Gal=E1n" <jgabrielyga...@gmail.com>

(Newbie) Override * on Array
272542 [mike_houghto] I've written a simplistic override of the * operator for Arrays so that
+ 272543 [stefano.croc] Usually, operators don't modify the operands, but return a new object with the
| + 272554 [stefano.croc] Sorry, it should be ArgumentError, not TypeError. Looking at ruby standard
| + 272567 [mike_houghto] Thanks for the replies guys.
| | + 272570 [dangerwillro] some things probably shouldn't be overridden.
| | + 272616 [stefano.croc] require 'generator'
| |   272714 [mike_houghto] Ooops! It does work, I was also extending Fixnum and hacking ops in
| + 272780 [lojicdotcom@] Thanks for the tip on SyncEnumerator.
+ 272550 [shortcutter@] No. (see Stefano's reply)

Re: @continuation vs callcc {}
272544 [logancapaldo] Interesting. I'm a little surprised but not very surprised. I wasn't
272555 [robert.dober] Sorry Logan, I just fixed it, and when fixing it I found it strange
272632 [ara.t.howard] "Continuations are the functional expression of the GOTO statement,

[SUMMARY] Probable Iterations (#141)
272561 [james@gr yp ] As a couple of solvers noted, this is an easy problem that's really just about

newbie - mechanize multiple cookies problem with form login
272569 [friofool@gm ] i'm just starting to work with this incredible tool...

Force IRB into interactive mode (to display prompt)?
272583 [ruby@gm il c] I'm implementing a front end for irb that involves running it in a
+ 272595 [dangerwillro] What are you trying to do?
| 272597 [ruby@gm il c] I want to have a pane in my GUI that works like irb.  Basically embed it
| 272720 [pit.capitain] Rob, you could look at fxri (http://rubyforge.org/projects/fxri) how
| 272752 [ruby@gm il c] I've looked at fxri and its UI is launched from the same ruby process
+ 272776 [ruby@gm il c] May have solved my own problem.

[ANN] MasterView 0.3.4 Rails-optimized (x)html template engine
272586 [jeff.barczew] = MasterView - Rails-optimized (x)html friendly template engine

ANN: Facets 2.0
272588 [transfire@gm] Facets 2.0 is out!
+ 272612 [wlh1074@ya o] ...
| 272666 [transfire@gm] Ruby Facets is a large collection of general purpose method
+ 272717 [chauk.mean@g] Great news !
| 272727 [transfire@gm] Yes. That's because the standard rdoc generation makes a mess of
| 272729 [chauk.mean@g] It helps but I don't have direct access to the Internet. It would be
| 272731 [transfire@gm] I see. Hmm... Are you using Linux/MacOs or Windows?
| 272735 [chauk.mean@g] I'm running Windows.
| 272751 [transfire@gm] Okay. At first I was going to suggest a quick hack of using wget to
| + 272758 [deanwampler@] ...
| + 272765 [chauk.mean@g] I got the zip file and it works perfectly. Thanks.
+ 272737 [caduceass@gm] Trans, thanks!  I haven't used this library directly yet, but after
| 272759 [transfire@gm] Hey, thanks for the recognition. It's nice to be useful! :)
+ 272755 [transfire@gm] Just noticed that the Installation section of the README I attached

gsub in [SUMMARY] Probable Iterations (#141)
272602 [roland.crues] I think

FasterCSV warning: alreadery initialized constant CSV
272606 ["none <@ru y] How do I remove the warning?
272613 [james@gr yp ] On Oct 4, 2007, at 12:25 PM, "none <@ruby-lang.org, venkat\""@>(none)
272624 [venkat <venk] begin
272626 [james@gr yp ] You have a bug in that.  A bare rescue will not catch the LoadError =20
272633 [venkat <venk] I changed that to
272636 [james@gr yp ] OK, I'm considering adding more implicit compatibility with the hope

attn: James Edward Gray II, re: Higher-Order Ruby
272614 [perrin@ap th] The page you were looking for doesn't exist.
272621 [james@gr yp ] Sorry for the inconvenience.
272622 [perrin@ap th] Thanks for the information.

question about looking up classes
272629 [donald.ball@] understand. I don't think it's specific to rails, but feel free to
272725 [wayneeseguin] ...
+ 272726 [wayneeseguin] ...
+ 272769 [donald.ball@] Just so. Thanks, I had heretofore been that prepending :: forced global

problem with ruby1.8 and OpenMP in Ruby extension: shared object cannot be dlopen()'ed
272637 [cilibrar@gm ] I am the main developer of CompLearn, an open-source machine learning
272640 [GGarramuno@a] That probably means you have some undefined symbol most likely due to
272912 [cilibrar@gm ] Thanks for this excellent suggestion.  You inspired me to write a much

Add files to array matching pattern
272638 [leon@ti -o l] I wanted to simply add files to an array. The files must match a
272641 [leon@ti -o l] dir = "/home/leon/"; test = Array.new; test =
+ 272643 [leon@ti -o l] i = 0; dir = "/home/leon/"; test = Array.new; test =
| + 272644 [Rob@Ag le on] test = Dir.entries("/home/leon").grep(/filezilla$/)
| + 272645 [dolgun@ex it] d = "./"
| + 272686 [dolgun@ex it] (1..4).each do |x|
| + 272709 [shortcutter@] You need it with your code because the map! will map some values to
+ 272684 [dolgun@ex it] 1) collect adds the value returned by the block to a results array.

Re: MasterView 0.3.4 Rails-optimized (x)html template engine
272639 [GGarramuno@a] This is beautiful.  Thanks for writing this.  It addresses rails one

Mapping an object
272646 [harnish_544@] This is Harnish.  I am looking for a way to map an object.
+ 272647 [hhausman@gm ] result = A.get_arr[0].my_obj
+ 272655 [konrad@ty er] charset="utf-8"

[ANN] RMagick 1.15.9 for Win32
272649 [TimHunter@nc] After about a month in beta and having received no complaints, I've

[n00b] Need a good reference for var-types/string-esc, etc.
272651 [ruby-forum@p] One of the problems with Ruby being so popular is that any google search
+ 272652 [TimHunter@nc] Dave Thomas' _Programming_Ruby_ is the canonical Ruby reference.
+ 272653 [konrad@ty er] charset="utf-8"

Simple ruby web server
272658 [filipedlarca] I'm looking for a simple webserver that could handle basic requests
+ 272662 [konrad@ty er] charset="iso-8859-1"
| 272691 [dusty.doris@] #!/bin/env ruby
| 272697 [james.britt@] Also look at Nitro and Ramaze, both of which make it quite simple to
+ 272696 [dangerwillro] Rails isn't a web server.

Which Image Generation Library?
272660 [winter.ayars] I need to create a small program that generates images and "animations"
+ 272687 [alexg@ku cr ] Cairo can make nice figures and there are Ruby bindings. The bindings
| 272690 [znmeb@ce ma ] I've seen quite a few Petri net animations on the web -- perhaps you
| 272692 [dangerwillro] You could do it with RMagick, it is the Ruby lib for ImageMagick. It
| 272707 [winter.ayars] I was thinking about Javascript, although i sort of wanted to stay away
+ 272743 [wruyahoo05@c] Look at Graphviz. It may do exactly what you want, at least if you

Please i am just new to Ruby...
272661 [olubodunakin] Please i am just new to Ruby and i will like to know how i can go
+ 272663 [TimHunter@nc] RMagick OS X Installer [http://rubyforge.org/projects/rmagick/]
+ 272664 [dolgun@ex it] A good way to  learn is to buy a book that teaches you Ruby on
  272695 [dangerwillro] But do know that learning Ruby itself will make your Rails experience
  272699 [dusty.doris@] On Oct 5, 12:19 am, John Joyce <dangerwillrobinsondan...@gmail.com>
  272700 [dusty.doris@] I'm sorry, I meant "The Ruby Way"

[ANN] Rassmalog 7.0.0
272698 [ snk@gn .o g] Rassmalog

replace a text in base directory
272719 [bad_good_lio] how can replace a text from all files in
272728 [dolgun@ex it] Dir.glob('/Users/me/2testing/dir2/**/*') do |fname|
+ 272746 [bad_good_lio] fine
+ 272768 [w_a_x_man@ya] This botched code bombs.  Don't ever post untest code without
  272771 [dolgun@ex it] lol.
  272816 [dangerwillro] What you want a EULA(gy)?

Mechanize click button
272721 [pradeep.ramk] I'm using "agent = WWW::Mechanize.new"
272723 [dolgun@ex it] There are usually alternate ways of locating a button besides the name

Sizeof(Object)
272733 [nkurtov@gm i] I search the group and found a topic about sizeof(Class)/
272736 [matz@ru y- a] Define sizeof(Object) in Ruby first.  Sum of size of the memory

[QUIZ] Itinerary for a Traveling Salesman (#142)
272740 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 272891 [SimonKroeger] Sorry if i'm just stating the obvious - this quiz isn't about finding a
| + 272898 [james@gr yp ] The goal of this quiz was to come up with a good problem to =20
| + 272900 [m_goldberg@a] It's true that this quiz resulted from James asking for a quiz =20
+ 272922 [eric.mahurin] As far as I know, a genetic algorithm isn't going to guarantee any
| + 272926 [james@gr yp ] Genetic algorithms don't guarantee the solution, that's correct.  But
| + 272951 [m_goldberg@a] You are correct. For the general shortest tour problem, a genetic
| | 273002 [oksteev@ya o] an.tar.gz=0A=0AFor this quiz I pretty much just implemented the GA describe=
| | + 273010 [jamesbkoppel] First, before I get to my main solution, I would like to show that, as Mort=
| | | 273037 [james@gr yp ] (n-1).step(2, -2) do |y|  # I removed a .
| | + 273035 [james@gr yp ] #!/usr/bin/env ruby -wKU
| + 273061 [dave.pederso] ...
|   + 273076 [jamesbkoppel] ain solution, I would like to show that,  =0A>> as Morton pointed out, yes,=
|   + 273092 [james@gr yp ] I did forward your first message to the list, but I'm glad to see you
|   + 273110 [martindemell] The 'pretty' way to do this: [gene.class, gene.city, gene.lat,
+ 273125 [rubify@so to] One more variation of GA theme. For mutationsd I use reversals only, with
+ 273218 [greenpenguin] I'm afraid my solution is rather late since I spent so much time trying
+ 273391 [m_goldberg@a] This is my GA solution to Quiz 142. It is comprised of four files: a
| 273478 [oksteev@ya o] ...
| 273505 [james@gr yp ] That's quite interesting.
+ 273518 [m_goldberg@a] I am posting this because I think there may be some interest in

finding obscure documentation
272741 [lloyd@2l ve ] I have learned that you can turn a number to octal (or whatever) this
+ 272750 [konrad@ty er] charset="utf-8"
+ 272757 [Rob@Ag le on] irb(main):001:0> "173".to_i(8)
| 272772 [lloyd@2l ve ] I think that I found what you are talking about.
+ 272773 [overlord@gm ] A number is not octal or decimal or whatever. String representations of

Hash assignment (what's happening?)
272760 [hquiroz@en .] From within irb, I'm creating a hash and populating it with the
+ 272761 [hquiroz@en .] Oops, the number is being interpreted by ruby as an Octal! Duh.
+ 272762 [dejan.dimic@] I think this could help :-)
+ 272763 [jameskilton@] ...

Refering to an object's 'parent'
272764 [trodwell@ie ] I'd like to check an object's "parent" to see if it has a certain
+ 272766 [wayneeseguin] ...
+ 272775 [ara.t.howard] sure.

Solaris, FastCGI, Apache, and "timeout.rb:52: [BUG] Segmentation fault"
272774 [trevor@um .e] ...
+ 272778 [mental@ry ia] I would strongly recommend against using timeout.rb: there is no
| 272781 [drbrain@se m] Not true.  You can always rescue the Timeout::Error and do proper
| 272792 [mental@ry ia] class Average
| 272795 [drbrain@se m] When you timeout you cannot be sure of where your calculation
+ 272798 [sylvain.joye] A backtrace of the place ruby crashes would help. Could you generate a core

Is there a Status Bar in Tk Ruby
272777 [williams.jay] Does Tk have a status bar?

Ruby Socket: I found a misstake in the doc. Can someone confirm it and who's gonna fix this doc-error?
272779 [kazaam@ol co] require 'socket'
+ 272805 [james.britt@] James Britt
| 272871 [kazaam@ol co] Can noone confirm this?
| 272878 [logancapaldo] It's not even been a full day since your original post. Relax.
+ 272882 [matz@ru y- a] It's already updated in the source.  I guess ruby-doc.org needs update

[ANN] New RubyGems Indexer
272784 [drbrain@se m] Tom Copeland has just deployed my new RubyGems indexer in preparation
272787 [pbrannan@at ] Is the fast index working yet?
272788 [drbrain@se m] The quick index has been in RubyGems since 0.9.2, IIRC, but the way

Tk StatusBar help
272789 [williams.jay] Is anyone familiar at all with Ruby Tk's StatusBar. I have not been

Cant find irb
272791 [lidinsky@ii ] I just installed ruby on Fedora 7, but I can't bring up irb.

Proc comparison
272793 [christopher.] i'm having an issue where i need to compare 2 objects by comparing a
272794 [mental@ry ia] Even though the two blocks have the same contents, they aren't the same

The Case for Multiple-Inheritance
272803 [transfire@gm] So I working on  little lib that's ripe for an adapter pattern, when I
+ 272809 [halostatue@g] I think that you've got a problem here, and it won't be solved with MI.
+ 272810 [mental@ry ia] One reason is to avoid ambiguity about object representations.  Let's
| + 272812 [vjoel@pa h. ] Isn't ivar conflict an argument against mixins just as much as it is an
| | 272916 [mental@ry ia] =20
| | 272927 [sylvain.joye] I think that programmers should have the right to do their own decisions.
| | + 272936 [mental@ry ia] =20
| | + 272939 [halostatue@g] They do, but not all of those ways are possible in Ruby. C++ (as
| |   272970 [ttmrichter@g] Going back to the original model that sparked this: inheritance reflects
| |   272988 [transfire@gm] You're assuming too much from the names. I'm just working on improving
| + 272881 [halostatue@g] You can, sort of. However, I don't get the current mania for appending
|   272920 [mental@ry ia] It's nice for metaprogramming.  However, in many cases these things
|   272937 [halostatue@g] I can see limited use for it; I'm more referring to what seems to be
|   272969 [ttmrichter@g] This goes back to my rant about "just because you have a language
+ 272861 [aldursys@gm ] On Oct 6, 7:45 am, Sylvain Joyeux <sylvain.joy...@polytechnique.org>
| + 272915 [mental@ry ia] The inclusion of modules is also forcibly linearized[1] to avoid the
| | 272919 [sylvain.joye] True and false. You don't control *where* your module ends up in the
| | 272932 [mental@ry ia] Linearization has nothing to do with modules per se.  It's one
| | 273018 [halostatue@g] No, actually, it doesn't provide maximum code reusability. Ruby supports
| | + 273024 [pergesu@gm i] Agreed.  That looks painful.
| | | 273036 [transfire@gm] Bahahahahahahahahaha!
| | | 273038 [pergesu@gm i] You misunderstand me.  What looks painful to me is having the behavior
| | | 273044 [transfire@gm] I see. Well it's a trade-off. Would you prefer a class with 50
| | | 273121 [halostatue@g] Personally? I'd prefer the former. If I was dumb enough to design
| | | 273133 [transfire@gm] Fantastic jobs Austin. Now initialize the class from a YAML file for
| | + 273030 [transfire@gm] Yes it does, b/c if methods are placed in a class, the only reuse if
| |   273120 [halostatue@g] You are 100% wrong here. Not all reuse is defined by mixin or
| |   273132 [transfire@gm] Fair enough, although that's only 50% wrong ;) But the point was the
| |   + 273185 [halostatue@g] No, it's 100% wrong. You said "the only reuse [is] via a subclass." Just
| |   | + 273250 [transfire@gm] Good. this is a much better approach. Obviously we can argue until
| |   | | + 273253 [james@gr yp ] I'll pass.  I don't judge Ruby Quiz solutions.  I just try to find
| |   | | | 273260 [transfire@gm] On Oct 8, 1:45 pm, James Edward Gray II <ja...@grayproductions.net>
| |   | | + 273259 [halostatue@g] Um.
| |   | + 273262 [martindemell] class Monitor
| |   |   273293 [halostatue@g] Fair enough. I think it's an odd enough case, though. Even then, I'm
| |   |   + 273300 [caduceass@gm] [double snip]
| |   |   | 273303 [halostatue@g] If that's what you've taken out of the discussion, then you need to work
| |   |   | 273312 [caduceass@gm] I smell defensiveness.  Maybe I need to work on being more hard-core
| |   |   + 273319 [martindemell] Mostly because the metaphor I was going for was a set of building
| |   + 273187 [halostatue@g] No, it's 100% wrong. You said "the only reuse [is] via a subclass." Just
| |     273196 [mental@ry ia] class FooWithBarAndBaz
| |     + 273211 [rick.denatal] I've been following the drama in this thread with great interest.
| |     | 273258 [ mfp@ac .o g] This is getting OT, but I just wanted to clarify that not all the languages
| |     | 273349 [rick.denatal] Yes, I suppose I should have used something like "in languages in the
| |     + 273239 [transfire@gm] How would you do it? Ok, say we create classes for everything instead,
| + 272918 [mental@ry ia] I=20
|   272924 [sylvain.joye] See the top of my previous post: you're talking about duck typing, which
|   + 272928 [james@gr yp ] Delegation does not mean duck typing.  You are confusing your
|   | 272979 [sylvain.joye] Tell me if I'm wrong, but from a type point of view, delegation is only
|   | + 273015 [pergesu@gm i] What?  Half of the Design Patterns book is about how to use
|   | | 273017 [sylvain.joye] I don't say that delegation does not exist outside duck-typing. And I never
|   | | 273023 [pergesu@gm i] I really really wish you would provide a quick example of what you
|   | | 273097 [mental@ry ia] =3D
|   | | 273103 [pergesu@gm i] Well, neither one gave examples, afaik, and I think this whole thing
|   | | 273115 [transfire@gm] Pat, my program is almost as simple as the first example I gave. Since
|   | | 273118 [pergesu@gm i] The point is that if you "have to make an arbitrary choice of which
|   | + 273019 [halostatue@g] It's possible to use delegation with non-dynamic languages. Hard, but possible.
|   |   + 273098 [mental@ry ia] sible.
|   |   | 273122 [halostatue@g] but possible.
|   |   + 273100 [ news@ja .f ] Why hard?  If you've got function pointers or their equivalent, you have
|   |     273123 [halostatue@g] I was referring to Ruby's #method_missing capabilities more than
|   + 272938 [halostatue@g] You could, of course, override #kind_of? to do what you want.
|     + 272944 [mental@ry ia] Also, even when you have a true "is-a" relationship, "is-a" in the class
|     | 272945 [mental@ry ia] Actually, I guess this applies to having methods in general.  The
|     | 273003 [deanwampler@] ...
|     + 272981 [sylvain.joye] Yes. I could build a MI-like pattern from scratch. I does not seem to be
|       273093 [overlord@gm ] That is not a is-a relationship, it is a sequence that contains
+ 272876 [deanwampler@] ...
threads.html
top