218696-261334

218404-362849 subjects 218923-287594

where to start
218696 [pf@au h. et ] I found there are some Ruby programs are running in this development
218697 [tjackiw@gm i] Pet,
218700 [pf@au h. et ] dispatch.rb a ruby script file. But I don't know how this both
218704 [jan.svitok@g] As was said before, you have a rails application. It's not neccessary

Parsing Islamic date
218698 [peter@ru yr ] Is it possible to parse an Islamic date in Ruby by any means? I have
+ 218701 [eden.li@gm i] Hrm, looking around it looks like there's not much out there for Ruby.
+ 218703 [richard.conr] I would look at the various localization libraries for Ruby. Don't

Removing Duplicate Objects from Object List
218705 [jeffnyman_no] Greetings all.
+ 218706 [stephendl@gm] On Oct 9, 12:16 pm, "Jeff Nyman" <jeffnyman_nospam@nospam_gmail.com>
| 218707 [jeffnyman_no] <code>
| + 218709 [has.sox@gm i] ...
| | 218712 [SimonKroeger] yes but you will loose order (if that is important)
| + 218711 [dharple@ge e] You should implement #eql? and #hash methods on your class, and store
| + 218713 [stephendl@gm] On Oct 9, 12:45 pm, "Jeff Nyman" <jeffnyman_nospam@nospam_gmail.com>
| + 218918 [mike@cl ve c] uniq is failing because, even though the attributes of each instance of
|   218924 [ara.t.howard] class Foo
+ 218716 [jeffnyman_no] Thank you to all of you!

gsub and slash-ampersand in the substitution string
218708 [jpatokal@ik ] Greetings,
218710 [zoso@fo on e] I'm not sure, but I think that the problem is that you are using double
218736 [jan.svitok@g] this was discussed several times, try searching for gsub and \\ or

Shortcut for nested modules
218714 [newhoggy@gm ] Thanks
218715 [halostatue@g] That will work if A::B::C exist.
218717 [newhoggy@gm ] testns.rb:5: uninitialized constant A::B::C::D::D (NameError)
218722 [pbattley@gm ] It's the presence of D in the method name that's the problem; any of

Re: [QUIZ] [SOLUTION] Posix Pangrams (#97)
218721 [m_goldberg@a] I woke up this morning with the realization that the code I posted

[ANN] Instant Rails 1.4 final released (with RadRails support!)
218724 [ml.chibbs@gm] This is the final release for Instant Rails 1.4. It corrects the two
218727 [ml.chibbs@gm] In this announcement, I forgot to delete the section "Known Problems".
218728 [sambient@gm ] ...
+ 218768 [ml.chibbs@gm] ...
+ 218770 [ml.chibbs@gm] Curt

Fwd: Please Forward: Ruby Quiz Submission
218725 [james@gr yp ] ...

How to remove  empty space in a string and others
218726 [chen_li3@ya ] 1) I read lines from a file and put them into one string. There are many
218730 [m_goldberg@a] Try gsub(/\s/, '')
218755 [chen_li3@ya ] I have a file called array.txt with many lines and each line is a record
218756 [jeff@da k- i] output = []
218765 [chen_li3@ya ] I need more information about file reading. Which chapter in the

Beginning of day given a Time value
218729 [mguterl@gm i] ...
+ 218732 [m_goldberg@a] How about this?
| 218734 [fred@82 sk c] ActiveSupport has a beginning_of_day method which is basically
+ 218739 [ara.t.howard] require "test/unit"

[ANN] Ruva: Pure-ruby toy (J)VM
218733 [rossrt@ro co] For anyone who's interested in this kind of stuff, I just uploaded my
+ 218767 [toalett@gm i] That is very very cool. I'll definetely be playing with this.
+ 218780 [halostatue@g] So ... anyone up for JRuby on Ruva?
| + 218782 [matt@te hn r] You're a sick man.
| | 218787 [halostatue@g] Thank you.
| | 218789 [matt@te hn r] You are quite welcome.  Hope to see you at RubyConf.
| | 218790 [halostatue@g] I'll be there. Looking forward to it.
| + 218835 [znmeb@ce ma ] As long as it compiles extensions on Windows, sure. :)
| + 218864 [rossrt@ro co] Me! Me!
+ 218792 [chneukirchen] Can it run JRuby? ;)
| + 218795 [vjoel@pa h. ] Why stop there? Can JRuby run Ruva?
| + 218797 [nicksieger@g] ...
|   + 218800 [robert.dober] ...
|   | + 218802 [nicksieger@g] ...
|   | | 218805 [robert.dober] ...
|   | + 218807 [toalett@gm i] Somehow the image of two rubies eating each other seems a bit bizarre,
|   |   + 218809 [robert.dober] ...
|   |   + 218833 [znmeb@ce ma ] Ah, but deep down inside it's all C.
|   |   + 219070 [chneukirchen] I heard Ruby is a popular girls name in some areas... ehem.  :^)
|   + 218865 [rossrt@ro co] Hmm, y'know, there _is_ a JPython I believe.... :D
+ 218815 [Charles.O.Nu] Seriously though, this might have real applications in JRuby. Existing
| 218867 [rossrt@ro co] Yeah, that kind of thing was the reason I started on Ruva last year.
+ 218894 [Charles.O.Nu] I tried to play with it a bit but I don't have Classpath installed. Is
  218912 [rossrt@ro co] Sure is. This gets a dump of a class just as it's read in (before it's

Distributed testing with Test::Unit and Rinda
218735 [jhosteny@gm ] I have been working on some code to assist with distributed unit testing
218778 [cdcarter@gm ] ...

[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiar ruby syntax
218738 [kbloom@gm il] sqlstatement - Generate complex SQL statements programmatically
218769 [ezmobius@gm ] This sounds really cool. But I don't see any examples really in the
218772 [kbloom@gm il] I've got an example.rb file in the gem (in bin/). I wasn't sure where the
218773 [ara.t.howard] here's the gemspec i use.  it's for directories named 'libname-x.x.x', but you

Posting over https
218740 [boss@ai bl d] I am struggling to post data over https and would be grateful for any
+ 218741 [aaron_patter] Try using Mechanize.  You can post forms over https with it, and you
| 218758 [boss@ai bl d] <snip/>
| 218761 [richard.conr] Its admirable, but I think Net::HTTP is a bit too low level, and requires a
+ 218764 [ara.t.howard] fortytwo :/var/www/html > cat form.cgi
  218885 [boss@ai bl d] Many thanks for the pointers to Mechanize, Hpricot and this fully-
  218900 [robert.dober] ...

Re: Posix Pangrams (#97)
218742 [camerooni@gm] I haven't found a solution with fewer repeated characters, but
+ 218745 [pseudo.meta@] Isn't it supposed to use every letter?
| + 218748 [camerooni@gm] I'm under the impression that it does? What letter am I missing?
| + 218749 [james@gr yp ] Which letters are missing?
|   218752 [pseudo.meta@] Aha! So it does.
+ 218794 [chneukirchen] That's good to know, thank you.

Allow Users
218743 [andrewchinna] Ok so im new to ruby,
+ 218744 [dblack@wo bl] ruby -e 'puts gets.reverse'
+ 218746 [farrel.lifso] word = string.gets
| 218747 [dblack@wo bl] s/string\.// :-)
| 218750 [andrewchinna] Ok Well Can Someone please give me a FULL working script that works with
| 218753 [pseudo.meta@] He just gave you one. Well, nearly. What do you want, blood?
| 218803 [darkintent@g] He probably didn't realize that such a program would be so short. :)
+ 219212 [jtregunna@bl] $stdin.gets.reverse

error: private method `gsub' called for :city:Symbol
218751 [sambient@gm ] ...
+ 218754 [sambient@gm ] ...
| 218759 [tanner.burso] ...
| 218766 [sambient@gm ] ...
+ 218757 [ben@bl yt in] It means exactly what the exception says.  You can't call gsub on a

Should this work? C++/CLI and Ruby UTF-8 Strings
218760 [ssmoot@gm il] I need to convert a .NET Unicode String to a UTF-8 byte-array to create

Re: Posix Pangrams (#97) - Long-Winded solution
218763 [camerooni@gm] After a few optimization passes, I've finally figured out how to get

Webpage to RSS
218777 [bart.braem@g] Does anyone have a ruby based script lying around that would transform
+ 218779 [cdcarter@gm ] ...
| 218869 [gethemant@gm] Rails Recipes Book by Chad Fowler has similar stuff. Almost ready for
+ 218871 [sttmjoc0@fa ] You could use hpricot (http://code.whytheluckystiff.net/hpricot/) to
  218921 [bart.braem@g] Wow hpricot seems pretty nice, I noticed the hype but now I understand...
  218946 [ruby-talk@wh] I'm not sure I understand exactly, but here's my impression of what you're
  219053 [bart.braem@g] The next_sibling and previous_sibling methods are just what I needed.

Stupid TypeError while checking array values
218781 [ryanw@il ve ] Not sure if I'm even close to the mark on this.  Ruby noob here...RACKIN
218783 [ryanw@il ve ] def user_assigned_course(course_id, user_id)
+ 218785 [ryanw@il ve ] HELP! :/
+ 218788 [ryanw@il ve ] *ooops* *blush*
| 218801 [jcribbs@ne p] And if you want to make your code a little bit cleaner, you can take
| 218810 [ryanw@il ve ] Wow, thanks guys!  I better read up on making my Ruby code more
| 218811 [jan.svitok@g] You're welcome. It really helps to browse the docs (e.g.
+ 218791 [jan.svitok@g] 1   def user_assigned_course(course_id, user_id)

Subtle change in ruby 1.9
218793 [rick.denatal] While reading the ruby source code, I found an interesting trivia
218814 [djberg96@gm ] Interesting.

Re: Ruva: Pure-ruby toy (J)VM
218798 [olsonas@gm i] Can JRuby run Ruva running JRuby?

packaging hybrid extension?
218806 [rick.denatal] I'm writing something which is partially written in ruby, but uses an
218812 [ara.t.howard] one idea is to do something like this
218826 [rick.denatal] The problem is that __FILE__ only has the file name, not the path, so
218828 [ara.t.howard] na.  it's always relative to the current directory, so you just need to expand
218837 [rick.denatal] Excellent!  Thanks Ara.

[article] Installing mysql-ruby on windows - russian edition
218818 [s.druzkin@gm] Available at http://jug.org.ua/wiki/pages/viewpage.action?pageId=8479

"def self.method" vs "class << self; def method"
218821 [joevandyk@gm] What's the difference between
+ 218823 [the.mindstor] As far as my understanding goes there is none. The rubies will
+ 218830 [dblack@wo bl] In the general case of class << obj; def x, vs. def obj.x, there's a
+ 218831 [kbloom@gm il] AFAIK nothing. But you can't do the second one with most
| + 218839 [cohen.jeff@g] Can you elaborate a little bit more?
| | + 218840 [gavin@re in ] irb(main):001:0> class C; attr_accessor :foo; end
| | + 218922 [kbloom@gm il] There's no analagous syntax to using
| + 218860 [dblack@wo bl] That's a different matter, though (if I'm understanding your point
+ 218844 [max@ma id or] Such definition evals area of code in scope of object self,

Re: Shortcut for nested modules (RESOLVED)
218824 [newhoggy@gm ] Awesome,

ZenTest/autotest - Problem with controller modules?
218825 [joeat303@ya ] Using rake, my tests all passed. And using autotest they all passed,
+ 218829 [joeat303@ya ] Unable to map class Members::BaseControllerTest to a file
| 218858 [user@do ai .] I'm using ZenTest every day but I'm still running the 3.3 - The latest
| + 218999 [joeat303@ya ] Yeah, I was using 3.3 -- now I'm using 3.4. These messages seem to only
| + 219156 [ryand@ze sp ] And yet... You haven't filed a bug or contributed any data to any
+ 218859 [rsanheim@gm ] Have you tried running that test in isolation?  Via rake

Re: Curses
218827 [sam.overdorf] So how do I go about getting this changed for the Ruby Curses Library?
+ 218836 [guslist@fr e] It has the disadvantage of not being in the standard library. On the
+ 218838 [ruby-ml@ki t] The first step in doing that is NOT top-posting :)

useful at_exit idiom
218841 [ara.t.howard] i'm constantly struggling with the fact that children need to use exit! to
218852 [matz@ru y- a] When a child process is created via fork(), it inherits copies

Installing eruby
218842 [aikscroll@ya] I just learned about embedding ruby into html docs. i managed to add

where to download ruby  latest stable snapshot
218843 [botp@de mo t] the new ruby-lang site is cool. thanks and congratulations to JLong et al.
+ 218846 [kh.wild@wi o] try
+ 218886 [james@gr yp ] James Edward Gray II
  219007 [botp@de mo t] # http://www.ruby-lang.org/en/downloads/

Printing to USB printer in Windows2000
218848 [nbelssne@ya ] ...
218991 [david@va ln ] By Win2K, that's probably a gruesome hack for backwards compatibility

Net::IMAP
218849 [tallison@ta ] What's the difference between AUTH=PLAIN and AUTH=LOGIN
218914 [ jupp@gm .d ] The difference between AUTH LOGIN and LOGIN PLAIN is that AUTH LOGIN

Ruby, Windows or Rmagick error ???
218851 [marinho.tobo] Well i?ve written a little program on my linux machine which uses
218872 [TimHunter@nc] This happens when you install a version of ImageMagick that is not the

Does case/when really use ===?
218855 [eden.li@gm i] Can someone explain why my class's === method is never called in the
+ 218856 [farrel.lifso] In case statements such as
+ 218857 [sylvain.joye] case bla
+ 219106 [kbloom@gm il] === is not commutative (nor is it intended to be), and it actually gets
  219262 [eden.li@gm i] Got it.
  219279 [fxn@ha hr f.] In fact, why not just subclass Array?

Newbie question Canvas or frame
218868 [merrua@ya oo] In ruby-tk
+ 218870 [merrua@ya oo] Ok. canvas is needed to display picture.
+ 218891 [nagai@ai ky ] If you want to show a picture only, you don't need a canvas widget.
  218898 [merrua@ya oo] Ah. Im using TkPhotoImage with canvas and a frame. Is this ok ?
  218928 [nagai@ai ky ] That is OK, if that is what you want. :-)
  219508 [merrua@ya oo] Thank You!

Reciving Packets
218873 [name.goes.he] I'm working on a game made in python and it now sends out packetes to my

Mechanize: save and cancel doesn't work in JSPWiki
218875 [michelemende] I'm trying to submit data in JSPWiki (edit page). I can read the data
218997 [aaron_patter] Can you try turning on logging, and sending the log to the
219035 [michelemende] Ok, done

Ruby IMAP with Cyrus server
218877 [apple.hater@] I'm trying to authenticate to my imap server using the Net::IMAP
218947 [drbrain@se m] You probably need to use an SSL connection.  LOGIN sends a

evaluation in boolean context
218879 [jens.wille@u] would it be possible to modify how an object gets evaluated in
+ 218883 [jens.wille@u] yeah, but that's exactly what i want to avoid ;-)
+ 218884 [shortcutter@] This has come up frequently in the past.  The short story is that there
  + 218888 [jens.wille@u] i've read some of these postings, but felt they didn't add much to
  + 218971 [rick.denatal] Rick DeNatale
    219014 [shortcutter@] Rick, thanks for the interesting read!  My gut feeling told me to better

Fwd: Please Forward: Ruby Quiz Submission
218880 [james@gr yp ] ...

RubyGem download stats have returned
218881 [tom@in oe he] Yay!
218917 [jmg3000@gm i] Thanks Tom.
218926 [tom@in oe he] That's sort of an aggregation of activity on a project - opened/closed
218945 [drnicwilliam] Hear hear.

[GOLF] *args to Hash
218887 [transfire@gm] def foo(*args)

Processing XML (Time Concerns)
218889 [jeffnyman@gm] This is purely an experiential question in nature, so I apologize for
218904 [richard.conr] He is doing some pretty serious work in this regard.
261334 [freestyle_ka] For sure, checkout libxml - it is a great deal faster than REXML. Tim.

Re: *args to Hash
218892 [transfire@gm] GOLF.
218899 [robert.dober] ...

help with LOAD_PATH
218893 [eduardo.yane] echo $LOAD_PATH
+ 218902 [sastph@sa .c] Ruby's LOAD_PATH is a combination of a set of default directories
+ 218907 [eduardo.yane] Solved. I had to export RUBYLIB to modify LOAD_PATH.

Testing for timeout while downloading a website using rio
218895 [Nuralanur@ao] ...

Net::FTP.new silently failing in block form
218903 [djberg96@gm ] Ruby 1.8.5
+ 218905 [decoux@mo lo] open
| 218908 [djberg96@gm ] You're right, that does work.  But, based on the source, why would that
| 218910 [decoux@mo lo] We don't have the same source
+ 218909 [jcribbs@ne p] I looked at ruby-doc.org and it looks like new does not take an optional
  218913 [djberg96@gm ] Oh, you're right!

Stable *source* RPM for Ruby?
218906 [znmeb@ce ma ] Is there a *source* RPM for the latest stable Ruby somewhere on the
218911 [jan.svitok@g] rpmfind.net shows 1.8.5 in FC6 development and in mandriva cooker.
218915 [aredridel@nb] PLD has one, though it's pretty PLDish.
218920 [znmeb@ce ma ] I was hoping for something "Fedora/RHEL" like, since the target system
threads.html
top