234804-236863
234645-238016 subjects 234950-260660
Reading Data from a Website
234804 [anon1m0us@ya] No clue how to do this. My program to go to a website and read data and
+ 234806 [andy@pe da c] Look at WWW::Mechanize.
| + 234811 [anon1m0us@ya] Is that a website? Where do I see that stuff?
| + 234817 [andy@pe da c] drudgery.
+ 234825 [peter@ru yr ] It would need some polishing and adding HPricot there (working on it
| 234934 [gavbaker@ac ] After finding your article on screen scraping *very* useful, I'm
| 234938 [peter@ru yr ] I am happy to hear this... Web scraping can be very-very-very tedious,
+ 234920 [boesemar@gm ] Martin
| 234940 [ssmoot@gm il] Probably better to get familiar with Net::HTTP, but when that gets
+ 235183 [alex_f_il@ho] You can try SWExplorerAutomation SWEA (http://webiussoft.com)
IMAP stuff (or POP)
234813 [phil@ba ic i] I've been trying to find a good source of imap or pop information with
+ 234914 [boesemar@gm ] If it is an option for you, try downloading the entire mail and use tmail or
| 235165 [drbrain@se m] No need. The IMAP RFC, like most RFCs, takes a little practice to
+ 235164 [drbrain@se m] I think that BODY[1] means grab the first section of the message
Parsing data trouble
234818 [jplantz@gm i] Late in the day and I've hit a wall. Any help is appreciated.
234837 [matt.gillool] Array_Grid_Header += sth.column_names.collect{|c| c.upcase}
+ 234931 [jplantz@gm i] Hey man. That was what I needed. I still don't have the data parsed
+ 234944 [jplantz@gm i] Hey man. That was what I needed. I still don't have the data parsed
undefined method `refresh' after rubygem 0.9.1 upgrade
234823 [stephen.bann] gem update
+ 234828 [drbrain@se m] gem sources
+ 234829 [stephen.bann] and had this problem
[ANN] fastthread 0.6.2
234847 [mental@ry ia] It looks like I got too creative in 0.6.1 and consequently ran afoul of
+ 234874 [tim.pease@gm] Does fastthread allow you to see who has the lock on the mutex? Sync
| 234960 [mental@ry ia] fastthread is just a re-implementation of the standard API offered by
+ 234888 [dudu@du u. o] Any reasons for not including it in the standard ruby library?
234956 [mental@ry ia] I want to make sure it's sufficiently polished, first. Then I will
Gem install extension in sub-directory under lib?
234848 [reidmo@gm il] I am in the process of setting up the Gem install packages for Ruby WMQ.
234875 [reidmo@gm il] Finally found the solution by digging through other projects on
[ANN] Upcoming Madison, WI Ruby/Rails events
234849 [rsanheim@gm ] We have a bunch of events planned for the next month -- if you are in
234851 [andy@pe da c] Please feel free to add your events to the Chicago Perl Mongers
234853 [rsanheim@gm ] Generally, they are informal meet ups -- attendance has ranged from a
Recursive send
234852 [curtis.summe] I posted this to the Dallas Ruby Brigade, but thought it might be
235362 [dan-ml@da 42] A word of warning: I once thought of using that same functionality in order
235459 [curtis.summe] Well, if you are going to send an unescaped, form submitted value to
235637 [dan-ml@da 42] Heheh. True to a certain extent, but while sending an unescaped string to
[ANN] Rails 1.2: REST admiration, HTTP lovefest, and UTF-8 celebrations
234854 [david.heinem] Get out your party balloons and funny hats because we're there, baby.
234857 [tom@in oe he] Awesome. Props to you and your crew for this superb framework.
[ANN] RSpec 0.7.5.1
234858 [dchelimsky@g] Announcing the release of RSpec 0.7.5.1.
Dir.tmpdr mac os x
234871 [beingthexemp] Hey All,
234873 [beingthexemp] I got it.. I had to require 'tmpdir'.. duh.
234878 [djberg96@gm ] There's nothing 'duh' about it. It should be core. Having to require a
234881 [beingthexemp] ...
WEBrick cookies not persisting?
234882 [beingthexemp] Has anyone had any experience on mac os x with WEBrick and cookies not
235030 [aaron_patter] Have you tried looking at the headers returned from WEBrick? Try using
local variable assertion
234884 [dflanagan@gm] I've started studying Ruby, and while I like it, one thing that bothers
+ 234885 [dflanagan@gm] Funny wordwrapping of the code and comments in that post...
| 234887 [rsanheim@gm ] Without diving too much into the implementation of this, I would say
| 234991 [dflanagan@gm] Rob,
+ 234930 [GGarramuno@a] I think it is more theoretical, as that would indicate you are really
234997 [dflanagan@gm] I disagree. Local variables are used most often. I see a good chance
+ 235003 [ara.t.howard] i've been writing ruby in production 90% of my coding time for nearly 6 years
| 235007 [dflanagan@gm] It changes it because you fail-fast with a NameError rather than
| 235025 [ara.t.howard] but you could fail faster? by the time you decide the names you will use
+ 235104 [GGarramuno@a] Ah, I see. Sorry, I did not catch that from your docs. It is indeed an
Debugger strangeness
234886 [jos@ca no k.] class Foo
rubyforge.org questions
234889 [peter@ru yr ] 1) How do I activate commit diff mails?
+ 234898 [tom@in oe he] Hm... that's a good question. I'm not sure. When I create the svn
+ 234901 [jan.svitok@g] If I understand correctly, those are just normal directories, i.e.
234908 [vincent.four] svn mkdir svn+ssh://your-name@svn.rubyforge.org/project/trunk
234909 [tom@in oe he] Very interesting! I should add this to the RubyForge FAQ...
234910 [peter@ru yr ] Tom,
234912 [tom@in oe he] Hm... yup... any svn experts want to weigh in here? I mean, is it
+ 234913 [peter@ru yr ] With a serious project, absolutely. If you want to make some releases
+ 234915 [vincent.four] symlink is not possible (at least from what I know) in subversion.
+ 234916 [peter@ru yr ] I absolutely agree! Basically this is what I wanted to say :-)
+ 235877 [tom@in oe he] Vincent, thanks for the note. I've added this as the start of a FAQ
235878 [vincent.four] svn mkdir svn+ssh://devel@rubyforge.org/var/svn/project/trunk
+ 235881 [tom@in oe he] Thanks, updated!
| 235885 [peter@ru yr ] A big thanks to both of you guys! Great job.
+ 235933 [ben@bl yt in] You can add -m and a message to each to keep it from opening an editor
transform non-english text
234894 [hugo.mag@gm ] I have a Ruby aplication that deals with non-english text and I want to
+ 234917 [boesemar@gm ] I don't think there is a unified mapping table to transform non-[^a-zA-Z0-9]
| 235096 [hugo.mag@gm ] Thanks for your help.
+ 234921 [fred@la av .] You could try with Iconv to convert from your encoding to ASCII. Quick
235641 [dan-ml@da 42] iconv translit is really nice... when it works. It works on our FreeBSD
www.OutpatientSurgicare.com/video/
234895 [freelapbands] www.OutpatientSurgicare.com/video/
Ruby now listed on Update-Scout.com
234900 [kullmann@el ] Ruby has just been added to Update-Scout.com, an interactive web
OFFTOPIC: How to pronounce Ruby?
234902 [peter@ru yr ] Is it more similar to 'dummy' or 'dubi(ous)'? (or neither :-)
+ 234903 [robert.dober] ...
+ 234904 [stephen.dunc] It's pronounced roo-bee (so, like dubious).
| + 234906 [ariekusumaat] I wonder why Matz didn't give Ruby name with Kanji letters.... and
| | 234907 [dblack@wo bl] Matz has said that a Ruby practitioner is a Rubyist.
| | 235012 [flori@ni e. ] I am still waiting for Matz to record this "I am Yukihiro Matsumoto and
| | + 235422 [ariekusumaat] Thanks David.
| | | 236419 [matz@ru y- a] I pronounce Ruby as lu-bee when I speak in Japanese, and Ruby (as red
| | + 236417 [matz@ru y- a] Maybe at the next conference.
| | 236474 [flori@ni e. ] Yeah, this would be great. It sure will top growing this beard! ;)
| + 236397 [pete@no ah t] Dubious is only pronounced doobious if you're American. :)
| 236399 [peter@ru yr ] Well, I am Hungarian :-) (btw in Hungarian, Ruby is pronounced as in
+ 236428 [gavin@re in ] I believe it is pronounced exactly the way the english word with the
Fwd: Please Forward: Ruby Quiz Submission
234923 [james@gr yp ] ...
multi frame image viewer not updating
234924 [rajsahae@gm ] have just overlooked something simple. I am making a program that has a
234952 [lyle.johnson] It looks like you aren't calling create() on the new FXImageFrame
234992 [rajsahae@gm ] Thanks for the link to the mailing list.
235033 [lyle.johnson] Yes. If you are creating any resource, whether it's an image, an icon,
235065 [rajsahae@gm ] I already call create on the instances of FXJPGImage, I need to call it
235066 [rajsahae@gm ] I read the link, nevermind. Let me work on it some more. . .
235092 [rajsahae@gm ] So I read through that faq, learned a couple things, but I'm still
[QUIZ] Method Auto Completion (#110)
234927 [james@gr yp ] 1. Please do not post any solutions or spoiler discussion for this quiz until
+ 235271 [dontfall@gm ] Last week I was kind of embarrassed that Bob chose to feature my late,
+ 235273 [kbloom@gm il] Returning an array when the answer is ambiguous is a very bad way to do
+ 235275 [ml-ruby@de i] Here is my solution.
+ 235282 [m.fellinger@] My Solution doesn't pass all tests, since i think that when a method
| 235284 [m.fellinger@] somehow it didn't set highlighting to ruby...
+ 235369 [danfinnie@op] ...
235462 [donald.ball@] ...
Automatically Determining "Requires" and "Provides" information for a Ruby script or library
234935 [scott.parker] I'm looking to write a script that examines one or more scripts
+ 234989 [gwtmp01@ma .] I don't think this is technically possible because of the dynamic
| 235022 [scott.parker] I think you are right, so let me amend my request a bit.
+ 235378 [rubyzbibd@ub] I have a tool in the kwala project on rubyforge that attempts to
Copying strings
234941 [ramsayw1@co ] I can't believe this hasn't been answered a thousand times, but I can't
+ 234943 [peter@ru yr ] why not
+ 234947 [w_a_x_man@ya] Your code sample doesn't run at all. Here's one that does.
234976 [ramsayw1@co ] dup did the trick! Thanks a million
[ann] rb-appscript 0.3.0 released
234942 [has.temp3@vi] Announcing the release of rb-appscript 0.3.0, a high-level,
DRb and catching connection close
234948 [kwizou@gm il] I post here as i have a problem that i can't fix with DRb, i made two
Minor Change Proposal for Classes 'Object' and 'Method'
234949 [wonado@do ne] Minor Change Proposal for Classes 'Object' and 'Method'
+ 234953 [matz@ru y- a] Why object_id? Isn't it more useful to return the receiver itself,
| + 234959 [wonado@do ne] I agree, because I'm only interested in the information at all. If you find a
| | 234964 [invalid@gm .] May you elaborate? Where do you need pattern matching here?
| | + 234966 [matz@ru y- a] I think he supposed receiver returns above string, but it doesn't. It
| | | 234968 [wonado@do ne] I see - I thought it is a string, sorry.
| | + 234967 [wonado@do ne] myhi.receiver.match(/:([^>]+)>/)[1] # => "0xb7d5ff40"
| + 234963 [invalid@gm .] I agree here. Furthermore I think that #name would be a better name, in
| + 234972 [matz@ru y- a] Wolfgang's proposal can be divided into three methods.
| + 234975 [brad@br de i] I'm kind of partial to #owner myself.
| + 234979 [ara.t.howard] object.where? "method_name" # returns nil if not defined
| + 234981 [djberg96@gm ] Method#parent
| + 234985 [vincent.four] What about origin ? Or even of ?
| + 234998 [gwtmp01@ma .] Method#receiver
| | 235032 [vincent.four] I vote for the last one too !
| | + 235095 [wonado@do ne] I don't think it works well with "Kernel#origin(name)" because the lookup result
| | + 235114 [wonado@do ne] An additional method "Kernel#origin(name)" will be helpful, if the method is
| | + 235116 [gwtmp01@ma .] I was assuming that Method#origin and Kernel#origin would both
| | | 235118 [wonado@do ne] Sorry, I am a little bit confused in the moment...
| | | + 235120 [gwtmp01@ma .] No. the return value isn't the object_id (a Fixnum). It is a
| | | + 235123 [gavin@re in ] Definitely not. See my other post; #origin (or #owner, or whatever)
| | | 235132 [wonado@do ne] I'm sorry - it came from tom much writing "Method" versus "method" and "class
| | + 235122 [gavin@re in ] Could you explain what you mean by this? I would assume that this would
| | 235140 [wonado@do ne] This is what I need.
| + 235124 [shortcutter@] I opt for "defining_class", because this precisely states what it
| | 235126 [gavin@re in ] 1) The fact that there are some methods which are a pain to type does
| | + 235131 [dblack@wo bl] Uh oh, I think we're headed to 'eigner' :-)
| | | 235139 [gavin@re in ] LOL :)
| | + 235137 [shortcutter@] Exactly.
| | 235144 [dblack@wo bl] I think you're right, because objects don't have methods, only classes
| | + 235147 [gwtmp01@ma .] We are talking about the information encapsulated in an instance
| | | 235149 [dblack@wo bl] I guess I find that a bit anomalous because it's calling a the
| | + 235148 [wonado@do ne] "Method#bind" creates an object which contains a fixed object an a fixed method.
| | 235150 [dblack@wo bl] ...
| | + 235151 [vincent.four] What about 'target', then ? It shows that it is not necessary the
| | | 235235 [shortcutter@] Go for it! "target" sounds perfect to me.
| | + 235153 [gwtmp01@ma .] Yes, but there are two different messages being sent to two different
| | 235155 [dblack@wo bl] My problem with using "receiver" this way is that it's detached from
| | 235166 [dblack@wo bl] I'll add that, though it's a subtle point, I don't think that objects
| | + 235167 [wonado@do ne] This means, that the object bound into a Method object should be named something
| | + 235192 [gwtmp01@ma .] I don't recall any suggestion that objects receive 'methods'.
| | 235238 [dblack@wo bl] I don't view the binding as conditional; I just don't think the word
| | + 235254 [wonado@do ne] I think "a" receives the message "x" only in the first case. The second one
| | | 235262 [dblack@wo bl] ...
| | | 235274 [wonado@do ne] "mo = a.method(:x)" creates a new object "mo" of class "Method", which contains
| | | 235280 [dblack@wo bl] ...
| | | + 235285 [wonado@do ne] I see - I'm not used to use often English since a while, so these details were
| | | | 235296 [robert.dober] ...
| | | + 235347 [matz@ru y- a] "a.method(:x)" looks up a method corresponding message :x, so that we
| | | 235352 [dblack@wo bl] I disagree; I don't think it's natural in context, because "receiver"
| | | 235354 [matz@ru y- a] I am not sure the difference between dynamic and reflective.
| | | 235361 [dblack@wo bl] What I mean is: the object becomes a receiver because it actually
| | | + 235387 [gwtmp01@ma .] In my mind, the Method instance represent that future event. It is
| | | | 235442 [dblack@wo bl] I understand what you mean about the future event, but I'm still not
| | | + 235388 [matz@ru y- a] Ordinary message passing
| | | 235443 [dblack@wo bl] I think the possible confusion can be avoided, so I'd rather avoid it.
| | | 235448 [matz@ru y- a] Hmm, OK, what terminology do you use for "this" (or self) in languages
| | | 235567 [dblack@wo bl] I don't know, in terms of the other languages. I don't think it's
| | | 235575 [matz@ru y- a] The term 'bound_object' is not suitable for the Method object model in
| | | + 235578 [ara.t.howard] 'receiver' makes perfect sense to me. so does 'this'.
| | | | + 235582 [dblack@wo bl] I don't think "this" works for, ummm, this. How would you infer that
| | | | + 235653 [robert.dober] ...
| | | | 235680 [pit@ca it in] To me, the main point of this discussion so far has been whether we
| | | | + 235684 [ara.t.howard] very good points. frankly, i find the 'potentiality' arguments silly since
| | | | | + 235686 [robert.dober] ...
| | | | | | + 235691 [ara.t.howard] sorry to offend - i wasn't even trying to stir the pot! i chose the 's' word
| | | | | | | 235694 [robert.dober] ...
| | | | | | + 235849 [pit@ca it in] ma = a.method(:x)
| | | | | | 235951 [gwtmp01@ma .] In going back through this thread I realized that I hadn't understood
| | | | | + 235715 [dblack@wo bl] m = a.method(:x)
| | | | | + 235721 [transfire@gm] I would avoid using the term 'reciever' for wholly different reason --
| | | | | + 235724 [gavin@re in ] I love the direction and depth that this discussion has taken and
| | | | | + 235757 [robert.dober] ...
| | | | | + 235779 [gwtmp01@ma .] surprise ending. At least it surprised me and I even think David will
| | | | | 235780 [gwtmp01@ma .] If you haven't read the parent message to this, this won't make any
| | | | + 235690 [dblack@wo bl] If I can send people to you when they ask for an explanation of the
| | | | 235699 [gavin@re in ] FWIW, it totally makes sense to me for "m.receiver" to return the
| | | | 235703 [technodolt@g] To me (whom no one knows, or probably cares about), calling it target would imply that it could be changed... calling it receiver correctly implies the context of immutability.
| | | + 235580 [dblack@wo bl] I can give you the very basic idea (and that will save me some further
| | | + 235583 [wonado@do ne] I Think its a typo - you mean "=> MethodData object" !?
| | | | 235584 [dblack@wo bl] ...
| | | + 235603 [ara.t.howard] MatchData ??
| | | | 235651 [dblack@wo bl] Typo :-)
| | | + 235613 [gwtmp01@ma .] I don't understand why you are adding another level of indirection.
| | | 235652 [dblack@wo bl] Just trying to accomodate the "receiver" label in a context where it
| | | 235654 [matz@ru y- a] Perhaps the message was sent to the object a for both cases. In the
| | | 235659 [dblack@wo bl] That's a much more general idea of "receiver" than I'm used to. I
| | + 235356 [gwtmp01@ma .] Sure but I think you've confused the issue a bit by using assignment,
| | 235363 [dblack@wo bl] m = a.method(:x)
| | 235383 [gwtmp01@ma .] Sure, but I wasn't talking about one or the other but the
| + 235491 [chneukirchen] While we are at it, can we please have UnboundMethod#to_proc?
| 235506 [gwtmp01@ma .] This doesn't make sense. Without an object bound to the method
| 235508 [gavin@re in ] class Foo
| + 235538 [gwtmp01@ma .] But 'self' is still defined within that block even if it isn't
| + 235743 [chneukirchen] Anyway, the case was I had a callback that was a module method, and I
+ 236278 [wonado@do ne] I don't know where to put this message into the very large discussion tree, so I
| 236281 [wonado@do ne] Sorry, I didn't recognize, that this was already named. More than 90 posts in
+ 236863 [wonado@do ne] I don't know how you handle "Change Proposals" for Ruby. Implement them silently
threads.html
top