334479-375829 subjects 334954-383734

ruby1.9 and ActiveRecord
334717 [andreas_s@ho] ...

Back to Fundamentals
334722 [rubfor@re it] Before this thread I thought I understood polymorphism. Suddenly
+ 334727 [jayeola@gm i] May be a time to look at the So-called GOf "Gang of Fours"'s Design Templates.
+ 334753 [shortcutter@] More precisely: they must have identical /signatures/. This is polymorphism.
  + 334783 [rick.denatal] I'm not disagreeing with you Robert, but I need to point out that the
  + 334838 [albertschlef] I should mention that simple /overloading/ can be achived by delegating
  + 334860 [rubfor@re it] I think this is where we disagree. You seem to be saying polymorphism is
    334866 [shortcutter@] No, that's not what I said.
    + 334881 [rubfor@re it] I've just noticed my email address gets inserted in responses to my
    | 334886 [shortcutter@] As soon as you post to public forums your email address is in public.
    + 334925 [cwdinfo@gm i] One of the key benefits of polymorphism in the context of statically-

Re: Diamondback Ruby - Static Typing for Ruby
334725 [furr@cs um .] We do use the programmer's test suite to augment the typing analysis
334726 [furr@cs um .] Oops, thanks!  (fixed)
334770 [furr@cs um .] The way DRuby detects dependencies is by querying ocamlfind, so if

Unicode Question
334732 [aeldaly@gm i] row = "\0001\0002\0003\000\t\0002\0004\0008\0004\0005\000\t\000C\000o
+ 334736 [nobu@ru y- a] It seems a bug of Ubuntu iconv.  According to Unicode
+ 334740 [james@gr yp ] I've been trying to covering character encodings with a heavy Ruby
  + 334769 [aeldaly@gm i] 75% of my research was made on your blog :)
  + 334884 [ast@at wn ey] I was wondering if you wanted to add a note on how to deal with
    334904 [james@gr yp ] Thanks for the information.  I just added a comment with a link to

[ANN] Lone Star Twitter Conference 2009
334738 [jimfreeze@gm] Greetings
+ 334739 [james@gr yp ] Priceless!
| 334773 [rick.denatal] Does this mean than only 120 characters will be allowed to attend?
| 334774 [james@gr yp ] Rick, did you just reveal yourself as a non-Twitter addict?  (Twitter
| 334784 [rick.denatal] llows
+ 334746 [tony@me io .] So how about that Scala?  I hear it's good because it runs on the JVM,
| 334749 [charles.nutt] Hah, very nice :)
+ 334785 [eleanor@ga e] I'm considering submitting a proposal for some random deep geek thing,

Help On Ruby Integration With C
334741 [revathy.p@an] I m using ruby 1.8.6 on Windows..

[ANN] Released 1.0.0 yoda
334742 [ryand-ruby@z] released yoda version 1.0.0 has been!
334743 [aaron@te de ] [aaron@Jordan ~]$ gem install yoda
334747 [drbrain@se m] $ sudo gem install yoda

kernal::binding problem
334748 [tomcloyd@co ] Trying this for the first time, and, as usual, not quite getting it.
334750 [vjoel@pa h. ] You've got something like this, right?
+ 334775 [rick.denatal] ng,
| 334841 [tomcloyd@co ] So, how do I get M.meth to execute in the namespace of my main? I
| 334845 [cmdicely@gm ] No, it packages it so you can pass it to eval, which is useful if you
| 334846 [tomcloyd@co ] Thanks! That's very interesting, and is exactly what I was looking for.
+ 334840 [tomcloyd@co ] Yes,

problem insalling mongrel/mysql with Ruby 1.9.1
334752 [tammam56@ya ] I upgraded to Ruby 1.9.1 and I was trying to install Mongrel: gem
334771 [rogerpack200] try their subversion trunk? for mysql you could try mysqlplus (known to

Advice in rake
334754 [peter.meier9] I'm using rake to build a project and during this build process to
334756 [david.gaya@g] desc 'Task that runs the build and other scripts'

ActionMailer outside of Rails to send HTML mails
334757 [peter.tellgr] I am trying to build a small newsletter application.
334762 [eiras.alex@g] Use ActionMailer::Base.template_root =3D ... to set the path your email

Parsing String#dump data?
334758 [ast@at wn ey] I was wondering if there was a better/safer way to parse string data
+ 334763 [robert.dober] Maybe
+ 334765 [shyouhei@ru ] IMHO it is a bad idea to use String#dump when you cannot control those strings.
  334792 [ast@at wn ey] Thanks for the replies.  Actually, as I was doing something else,
  334811 [shyouhei@ru ] irb(main):001:0> t = ""

Error "cannot load Java class"
334759 [ahmed@am nz ] I've created two java classes that I'm trying to call from ruby file. I
334795 [cremes.devli] You need to show us the code too. Show the Java and show the ruby.
334803 [ahmed@am nz ] class Cells < Java::cz.cesnet.meta.jruby.Cells

Maxsize error in exporting excel file
334761 [gani_chinta@] I am having exporting data to excel file from one report in our
334798 [dan@ep rk ab] You need to patch the spreadsheet lib with ruby-ole to fix the MaxSize
335983 [deeparaj12@g] sir,

Installing SWIG on Windows For Ruby 1.8.6
334764 [revathy.p@an] I m running on windows and i have Ruby 1.8.6 installed.
334825 [alex@de et m] The first result from: http://www.google.com/search?q=swig+install+windows

Class variable confusion
334777 [keithsalisbu] module Keith
334779 [keithsalisbu] Or more simply, i would like this to update the variable @greeting, when
+ 334781 [jgabrielygal] Here, you are calling the greeting method (which returns "hello")
| 334787 [keithsalisbu] Legend
| 334788 [dblack@ru yp] It's worth mentioning that none of the code in this thread contains any
+ 334804 [Rob@Ag le on] module Keith

Write output to multiple files
334780 [knirirr@gm i] I have encountered something I thought would be trivial but I can't
334799 [shortcutter@] # untested
334801 [knirirr@gm i] Yes, that looks like just the job, thanks. I was trying something

(Zlib::GzipFile::Error) not in gzip format
334786 [rem.gagnon@g] since now I can't install or update any gems. I got this error.
334793 [rem.gagnon@g] never mind, it looks like we are having dns issue here.
334815 [micheljunio@] gem update --system

Unicode escaping fun & games
334796 [ast@at wn ey] After my last question, I finally sat down and figured out how to easily

Ruby Version History
334802 [brgsousa@gm ] Where can I find Ruby Version History? I need to check differences
+ 334807 [drbrain@se m] ...
+ 334900 [jayeola@gm i] You can pull a truck and run something like `git svn log` in that dir
  334901 [brgsousa@gm ] I am for something like main differences/improvements between stable
  334929 [drbrain@se m] I don't believe those are stored anywhere.  You'll have to construct
  334938 [juan_zanos@t] Ruby's source control system leaves much to be desired.   If you try
  + 334945 [juan_zanos@t] Reflecting on this it seems surprisingly wasteful given the Ruby
  + 334949 [drbrain@se m] Why bother checking out everything?  Know your tools!
    + 334952 [juan_zanos@t] I do.  That's why I avoid using that tool.   Look at your example.
    | 334958 [ryand-ruby@z] unicorns!
    | 334960 [juan_zanos@t] Sadly,  my access to unicorns is limited.
    | 334963 [drbrain@se m] So I guess your magical tool doesn't exist either.
    | 334965 [juan_zanos@t] I could name at least 3 of them.
    + 334957 [juan_zanos@t] If somebody converts this repository to something decent I'll be the

"uninitialized constant Nokogiri (NameError)"
334808 [yooakim@gm i] require 'nokogiri'
+ 334809 [gregory.t.br] require "rubygems"
+ 334810 [phlip2005@gm] require 'rubygems'
+ 334823 [drbrain@se m] Let me guess, you named your program 'nokogiri.rb', don't do that.

PDFWriter and Page Breaks
334824 [michael@we l] I'm sure this is something that someone here has done. More probably,
334865 [d_rems@ya oo] It doesn't. You have to do it by yourself. If it is out of page borders
334887 [michael@we l] That smart text insertion wraps both lines and pages is documented.
335244 [jontyjont@bt] Why don't you try Prawn?
335468 [gregory.t.br] A good idea generally, but keep in mind that the OP will need to do

Is there a better way of doing this
334826 [d_rems@ya oo] I have three classes.
+ 334828 [shevegen@li ] Would Object.const_get not work?
| + 334829 [d_rems@ya oo] To be frank this is the solution that I came to. It is ugly but it
| + 334830 [d_rems@ya oo] by
+ 334832 [vjoel@pa h. ] One idea: define A and B as modules instead of classes. Then, when you
| 334882 [d_rems@ya oo] I am trying this variation for now. And it might look like good until
| 334885 [shortcutter@] Here you are creating a string only.
| 334889 [d_rems@ya oo] Thanks this works now. I had to leave out single quotes.
+ 334833 [ninja@sl ph ] On loading the file? That might not be the best way...
+ 334835 [TimHunter@nc] I'm not sure if this is what you're looking for, but...keep in mind that
  334844 [andrew@an re] def run_class(param)
  334858 [shortcutter@] The question is: of doing what?  You say you want the third class to
  334864 [d_rems@ya oo] What I am trying to do is create a reporting sistem, something like
  + 334867 [andrew@an re] For starters, have a look at how Ruport does it.
  + 334868 [shortcutter@] hy
    334872 [d_rems@ya oo] Can you appoint me to a link, where I could read more about delegation
    334874 [robert.dober] Normally I use Wikipedia as a starting point

Extending ruby classes - Against new methods?
334827 [shevegen@li ] Recently I added
+ 334836 [albertschlef] I don't know; but, after reading your post I sure hope it's true. I
+ 334861 [shortcutter@] Why didn't you choose to add this to module Enumerable?  Restricting
  334880 [shevegen@li ] Hmm, replying to two in one message now ;)
  334888 [shortcutter@] The context is important: as long as you do it for a simply script or

Ruby  1.8.7-p72  installation on windows
334847 [revathy.p@an] I m newb looking for help..
335596 [rogerpack200] I'd probably recommend the one click installer of version 1.8.6, just to

Array.find with index
334848 [rob.webinato] How do I find matching expressions and return the match and the index of
+ 334850 [loganathan_g] I think that in find_all method, we don't have any provision
+ 334853 [lasitha.rana] cheers,
| 334854 [loganathan_g] a.rindex{|x|x=="b"}
| 334857 [lasitha.rana] $: ruby -ve 'puts [1, 2, 3].rindex {|e| e == 2 }'
+ 334855 [phasis@gm il] irb(main):001:0> a = [10, 20, 30, 40, 50, 60]

[QUIZ][SUMMARY] Finding Quiz Responses (#200)
334849 [yahivin@gm i] Finding all the responses to this week's quiz was easy: no responses!

Re: Word Search Generator (#159)
334851 [admin@sp to ] Sorry but I couldn't locate the source code of the solution. Can someone

JRuby and eclipse plugin
334859 [ahmed@am nz ] I have a problem with running a ruby script from inside eclipse plugin.

love love love
334862 [priyalove199] SEXY GIRL

Get title from URL?
334871 [cisco.riorda] Anybody have a code snippet that extracts the title from the <title> tag
+ 334873 [dandiebolt@y] ...
+ 334875 [phasis@gm il] require 'rubygems'
| + 334876 [cisco.riorda] Thanks, both work great.
| + 335172 [cisco.riorda] I used this method for a while, and it was fine for most sites.
|   335230 [phasis@gm il] require 'rubygems'
+ 335138 [ruedi@br hn ] require 'open-uri'

installation trouble??
334877 [macrory9@gm ] I am very new to ruby and have hit a wall with the installation. I am

Telugu Movies Review
334879 [telugudream@] Telugudreams.com is an Online Community for Telugu people living

Rack, map (forward) Port to URI
334890 [axyd80@gm il] I want to integrate Site writen in Ruby with Zimbra Mail and some other
334935 [ninja@sl ph ] Probably...

Your early binding is revealed for all to see
334897 [rubfor@re it] You could make that remark for virtually any topic except....
334908 [robert.dober] Brilliant idea, but it must be completely OT!!!

problem with rubygems and rake creating a new gem
334899 [mario@be wa ] Hæ,
334930 [drbrain@se m] It had been deprecated and was giving warnings for some time now.
+ 334950 [ryand-ruby@z] require 'rubygems'
| 335128 [mario@be wa ] Sorry Ryan I don't understand what your are proposing, I don't have a
| 335191 [ryand-ruby@z] Luckily, that is just a string and easy for you to fix.
+ 335127 [mario@be wa ] Thanks Eric,
  335132 [mario@be wa ] Ok it works if I require 'rubygems/package_task'

Sinatra : size of variable '@data' ? Bug ?
334902 [randy11@nu e] I'm working under Windows XP and ruby 1.8.6 patch 227.
334931 [b.candler@po] Firstly, look at the HTML in both cases. Use 'view source' or equivalent
335131 [randy11@nu e] Brian,

Wow:  jruby vs. MRE performance...
334905 [ast@at wn ey] I've been working on an application for a while now using MRE, and for a
334909 [charles.nutt] There are ways to mitigate this, somewhat, but it's also the nature of a

proper way to daemonize
334907 [tim.pease@gm] module Process
+ 334912 [gwtmp01@ma .] What resources are you talking about?  By the time exit is called, the
| 334914 [james@gr yp ] But if that at_exit() handler deletes a file or something=85
| 334917 [gwtmp01@ma .] Well, that is why I put the caveat about 'Ruby object resources'.
| + 334919 [tim.pease@gm] cted
| + 334927 [robert.dober] Well I do see the smiley but still want to point out that "passively
| + 334934 [james@gr yp ] Seems like Tim has a pretty decent example where the behavior doesn't =20=
|   334962 [gwtmp01@ma .] I wouldn't call it buggy, but calling at_exit in a process that
|   334971 [jcmoore@pr s] Something like this perhaps?
+ 334928 [drbrain@se m] require 'webrick/server'
  334932 [tim.pease@gm] Eric, if I had half your brain I'd be twice as smart. Didn't even
  334933 [james@gr yp ] As of Ruby 1.9 Process.daemon() is a core method.  Just one more

Re: Wow:  jruby vs. MRE^?^?^?I performance...
334910 [ast@at wn ey] Since this is a desktop app, if I get anything with over 10s response
334916 [charles.nutt] Odd...if you see it eating up all available memory again find us on

[ANN] win32-clipboard 0.5.0
334911 [djberg96@gm ] The Win32Utils Team is happy to announce the release of win32-clipboard

[ANN] bitRip
334915 [spam@co ez c] Are you tired of permanently browsing a long way through jam-packed

Char conversion when using puts to write file lint by line
334918 [gsmiro@gm il] I'm trying to create a script to generate several win32 registry entries

Q: Architecting large Web service download app in Ruby
334920 [cwdinfo@gm i] Architecting large Web service downloads in Ruby.
+ 334921 [james@gr yp ] I can't say I know for sure, but I'm doubting it.
| 334941 [cwdinfo@gm i] Ok, I looked into it further, and there is a thread safety issue and
+ 334967 [phlip2005@gm] Run the entire downloader from a cron task.
  334975 [cwdinfo@gm i] I hope that's not what my question ass-umes. I am able to get the
  334981 [gethemant@gm] or port XML-RPC so as it works from evented architecture such as

334922 [jgutierrez@i] There's a method in Ruby's net/ftp library called list/ls. Does anyone
334936 [benjamin.lov] You can pass anything you want as it isn't checked. I don't think the FTP
335009 [gnewsg@gm il] have
335010 [benjamin.lov] Of course it does. I should have been clearer in my response :) Apart from

[ANN] Initial release of gem_grep, a gem command plugin
334937 [gabriel.horn] I've written a gem command plugin, gem grep. You'll need the latest
334951 [ryand-ruby@z] This is awesome, but can you release it as a real gem?

(debian,eclipse) GUI created with glade doesn't appear
334940 [lolveley@ya ] - I have debian lenny, with gnome

Odd Ruby/Rubygems/gem path problem
334942 [rps@sa as co] I've spent too much time trying to solve this little problem. I wonder
334947 [drbrain@se m] the -r command line option uses rb_require() the C function, not
+ 334968 [rps@sa as co] Eric, thanks. I am not sure of the implication of that. Are you saying
| 334970 [drbrain@se m] ruby -rubygems -e 'require "shoulda"; ...'
| 335039 [rps@sa as co] Another slight confusion: I've read about -rubygems as well as putting
| 335040 [badboy@he rt] in fact it's just the -r switch with ubygems to load
+ 335024 [ninja@sl ph ] However, 1.9's Kernel#autoload does seem to have that very limitation.

Difference between gem install rmagick and port rb-rmagick
334943 [rps@sa as co] This is an instance of a more general question...
334946 [TimHunter@nc] The software is the same, but the packaging system is different. If you

[QUIZ] Digits of Pi (#202)
334944 [yahivin@gm i] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
+ 334948 [vjoel@pa h. ] Bonus points for determining the first non-trivial ruby program encoded
| + 334973 [dandiebolt@y] ...
| + 334974 [jeff@sc wa c] Interesting idea!
| | 334979 [vjoel@pa h. ] You're right, that didn't make much sense. I was just thinking of "\nnn"
| | 335147 [robert.dober] But that means that the representation of pi contains a ruby  program
| | + 335149 [jeff@sc wa c] Infinite is biiiiiiiig...
| | | 335343 [lecan75228@y] ...
| | | 335348 [caduceass@gm] I'm sorry, but maybe I'm missing something.  Aren't you just restating
| | | 335350 [caduceass@gm] That was a bit unfair.  I thought you were talking about something else.
| | + 335150 [rick.denatal] Been reading Goedel, Escher, Bach again, have we Robert? <G>
| |   335153 [robert.dober] an
| + 334976 [caduceass@gm] Do you mean non-trivial in that it will never fail with the correct
|   334977 [vjoel@pa h. ] I dunno. That's why I said be imaginative :)
+ 335076 [list.push@gm] # Is this cheating ?  :)
| + 335117 [robert.dober] I would say no, but...
| | 335118 [caduceass@gm] ;).
| | 335152 [acooper@pr t] ...
| + 335392 [citizen428@g] require 'rubygems'
+ 335407 [charles.nutt] But it doesn't seem fast enough to get to 100k digits in any amount of