331659-344895

331462-332354 subjects 331848-337271

^ REST vs Parameters (Rails)
331659 [chris-usenet] I'm still trying to get my head around REST based URIs vs slightly more
+ 331661 [jcoglan goog] 2009/3/20 Chris Davies <chris-usenet@roaima.co.uk>
+ 331676 [user domain.] My own understanding of REST concepts is : be CRUD. And being CRUD don't
  331694 [chris-usenet] That's very useful to know, as it doesn't seem to be described in any of

^ Tracing method definition in core and stdlibs?
331666 [lists source] I'm interested in tracing method definition in core and stdlibs.
331688 [shortcutter ] Probably not as many methods of the standard library are define in C
331691 [lists source] ", and
331699 [lists source] Is there any way to accomplish this in 1.8.x?
331733 [shortcutter ] Lack of responses to me indicates that you probably need to hack Ruby's
331740 [lists source] ons

^ SSH SFTP
331673 [greg gladhan] I am trying to download a remote file and preserve the file

^ Difference between 1.8.6(7) RDOC and 1.9.1
331678 [ruby.student] Team,
331715 [justincollin] The new features are at http://ruby-doc.org/core-1.9/index.html
331716 [ruby.student] Great!

^ [QUIZ] Midpoint Displacement (#197)
331683 [yahivin gmai] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 331798 [sandro.pagan] === BEGIN
+ 331989 [michael.c.li] Here's my version. Starts with a flat line and displaces the

^ display computation time in IRB
331686 [jason.lillyw] Is there an easy way to display the time it takes to compute any
+ 331709 [david_v_wrig] If I understand correctly, there is the Benchmark module
| 331712 [jason.lillyw] yes, that is what I wanted. I just didn't know how to ask for it.
+ 331713 [cmshea gmail] On Mar 20, 10:18=A0am, Jason Lillywhite <jason.lillywh...@gmail.com>
  331714 [vjoel path.b] irb(main):005:0> def time

^ self.inherited but wait until subclass is fully defined?
331687 [matt tidbits] Howdy. I am a class. There are certain rules for what you are supposed
+ 331690 [shortcutter ] Even after the class definition methods can be added.  You could catch
| + 331697 [ryand-ruby z] I agree with this in general for Matt's particular problem. The
| | + 331700 [jcoglan goog] 2009/3/20 Ryan Davis <ryand-ruby@zenspider.com>
| | + 344895 [robert.dober] I am not sure I understand. Do you mean "class frozen hook"? I do not
| + 331703 [matt tidbits] That's a good idea, I'll look into it - thanks! m.
+ 344893 [dwineman gma] Is this even a good idea?

^ Troubleshooting Ruby, Netbeans, sqljdbc
331689 [victormac ho] I posting this after doing a good deal of unsuccessful researches.

^ Hash sort
331692 [shandybleu y] I am trying to sort a hash and it seams to be working, the issue is that
331706 [shandybleu y] Figured it out. Part of my issue was that the key - which are string -

^ ruby-odbc and OUTPUT params not working
331693 [christopher.] connecting to an SQLExpress database to run a stored procedure, and

^ Manual dependency management w/RubyGems (Was: hpricot 0.7)
331701 [drbrain segm] $ gem help install
331762 [hirogeek gma] sh-3.2# gem19 install hpricot --source http://code.whytheluckystiff.net
331767 [noway fakenu] Have you checked if latest hpricot version is 1.9 compatible ? May be it
331776 [phlip2005 gm] I got the exact same result, with Ubuntu's out-of-the-box Ruby 1.9.0...
332685 [hirogeek gma] Works fine with hpricot 0.8

^ how to know where ERB stopped?
331702 [matt tidbits] text1
331754 [reitinge in.] The following code illustrates how this could be accomplished (also
331764 [matt tidbits] Very much so, thank you. Grepping and parsing the backtrace is the exact

^ YAML config files with environment specific settings
331717 [calvin98115 ] I need to store settings by environment but started off simply with my
+ 331719 [phlip2005 gm] ...
+ 331720 [phlip2005 gm] Is that a transmission error, or does \\atlas really start in the first text
  331722 [calvin98115 ] That's a transmission error.  Strange thing I just realized for me ( on

^ &   -  FixNum - method doubt
331723 [jazzezravi g] it contains & method
331724 [randall.alex] I am just learning Ruby but it looks like the binary intersection of the
331725 [jazzezravi g] Thank you very much for your quick reply.
331726 [jazzezravi g] And few more ..
331728 [minilith gma] ...
+ 331730 [jazzezravi g] Thanks for your reply.
+ 331731 [jazzezravi g] find the methods like,
  331732 [cmdicely gma] Methods that appear for instances of a particular class may be defined
  331735 [jazzezravi g] Yes. Finally I got exact solution.Thanks for your help.
  332490 [jazzezravi g] I spent more time to find the solution for all methods. So I created one
  332491 [jazzezravi g] one small change

^ Directory monitoring
331727 [loganathan_g] Is there any pre-defined module available in ruby to monitor a given
331743 [phrogz mac.c] Yes, there are at least two.

^ Monitoring the directory
331729 [loganathan_g] Is there any pre-defined module available in ruby to monitor a given
331742 [sean.ohalpin] that
331871 [loganathan_g] Ya both the modules are working fine. Thank you for your reply.

^ Run a Ruby script (.rbw) from a dock shortcut in Mac OS X (Leopard)?
331737 [kpkilburn gm] I can't seem to find out how to do this...  Thanks for any help.
+ 331741 [TimHunter nc] From the Finder, right-click and choose Get Info. On the Get Info
| 331749 [aipir sympat] This looks fine, except you will not find ruby from within the "Choose
| 331768 [TimHunter nc] Well, rats. I can find ruby but OS X doesn't think it qualifies as an
+ 331750 [matt tidbits] Try FastScripts Lite. It's free and gives you a menu of scripts, and you
+ 331782 [kpkilburn gm] Thanks everyone.  I'll give these a try.
  331880 [default spir] Well, rats. I can find ruby but OS X doesn't think it qualifies as an
  331881 [default spir] ok, here is two quick options, both have limitations but they work to some

^ Love poem in code for a Grooms Cake
331744 [jaswitalski ] I am engaged to a programmer.  I, however, know very little about code
+ 331745 [jcoglan goog] 2009/3/21 Jen Switalski <jaswitalski@gmail.com>
| 331746 [codeblogger ] while(true)  I.love(you)
| + 331747 [jaswitalski ] Thanks for the ideas, but since I don't actually know code, could you
| | 331771 [codeblogger ] I didn't even notice the rhyme.
| | + 331772 [vjoel path.b] $ yes "I love you"
| | + 331773 [pjb informat] irb(main):208:0> while(true)
| | | 331775 [phrogz mac.c] On Mar 21, 8:33=A0pm, p...@informatimago.com (Pascal J. Bourguignon)
| | + 331801 [michael.malo] Whenever I've seen anything like this done, it's always been done in C.
| |   + 331826 [transfire gm] Probably a little to long...
| |   + 331827 [michael.malo] I maintain that it should be 'death do *us* part'
| |     332039 [jaswitalski ] All great ideas, thanks everyone!
| + 331748 [djberg96 gma] Let's make it a one-liner.
|   331755 [djberg96 gma] BTW, this isn't "real" code, though it's legal syntax.
+ 331753 [ian.trudel g] Weird! :P
+ 331849 [ninja slapha] Well, you might want to ask over on ruby-sonnets...

^ How is alias magic?
331751 [blambeau gma] Is there any way to create a alias-like method allowing arguments not
331752 [vjoel path.b] Nope, alias is a keyword, not a method, so it has special syntax.

^ installing ruby
331756 [4pbears eart] i just got a new computer with vista home premium, and was wondering if
331759 [phlip2005 gm] I switched from Vista to Kubuntu and the difference was like night and day. I
331783 [shortcutter ] Actually it may be less on cygwin (didn't try yet).  And if you use the

^ [ANN] GemsOnRuby v 0.0.0 (vaporware release / RFP)
331757 [peter.fitzgi] I am pleased to announce the vaporware release of GemsOnRuby gem, currently
+ 331758 [radek.bulat ] ly
| 331763 [peter.fitzgi] Being v. 0.0.0, I haven't actually changed anything from the fork.  :)
+ 331906 [drbrain segm] gem unpack gemname

^ Ruby GUI Libs
331760 [ntwrkd gmail] Is there a nicer GUI framework for Ruby other than RubyGoo?
+ 331761 [shawn42 gmai] rubygoo is made as an add-on to rubygame or gosu.  There are way better
| 331829 [theyojimbo g] If you are looking for a desktop app GUI library, I'd suggest wxRuby2.
+ 331847 [philippe.lan] Have a look at FXRuby, here: http://www.fxruby.com
+ 331862 [stefano.croc] If you mean Qt (http://www.qtsoftware.com, I believe QT stands for QuickTime),
| + 331865 [jaco neottia] Nope. Qt isn't related to QuickTime at all. Qt is the Trolltech toolkit (used
| | 331866 [stefano.croc] I know. What I meant (and reading that sentence again, I understand it is not
| + 331868 [richard.j.da] ime),
| | 331872 [pilz osp-dd.] We're using QtRuby bindings 1.4.10 on Windows and Linux and it works
| + 331884 [th tp1.rub.d] In my experience the Qt bindings are quite nice to use, especially with the
+ 331874 [reid.thompso] there is also
+ 331904 [charles.nutt] Lots of people are using JRuby + Swing now. There's probably 6 different

^ rdoc, link to another class instance method
331766 [pedrolito la] Is it possible that rdoc generates a link to an instance method that is
331909 [drbrain segm] $ cat lib/foo.rb

^ Re: Run a Ruby script (.rbw) from a dock shortcut in Mac OS
331770 [nospam7272 m] You should save the file as a Ruby file, but it must be made

^ please attention!
331777 [sritherjeba ] hai am shiny.love is god.are you friendship me? my details and

^ free windows xp!
331779 [sritherjeba ] HAI AM SHINY PLEASE LISTEN !

^ [ANN] Ruby-GetText-Package-2.0.0
331785 [mutomasa gma] Ruby-GetText-Package-2.0.0 is now available.

^ How #{} works
331786 [zerohalo gma] Can anyone explain this?
+ 331787 [sepp2k googl] "#{ ["b"] }" =3D=3D ["b"].to_s #=3D> true
+ 331789 [minilith gma] => ["b"]
+ 331799 [noway fakenu] Because, since it's embedded in a string Ruby does a .to_s against the

^ REG: A link containing ruby programs
331788 [ext-golla.an] Can anybody suggest a link which contains more programs on ruby.
+ 331791 [TimHunter nc] ...
+ 331792 [sean.ohalpin] Lots of good stuff here: http://codeforpeople.com/lib/ruby/

^ Re: A link containing ruby programs
331790 [billk cts.co] Regards,

^ Newbie needs help with first project
331793 [dochappy gma] I was told about Ruby several weeks ago and started my journey lol. I've
+ 331795 [vikhyatk gma] I think your problem is that the class is named 'Games' but you are
+ 331796 [fixxie.wits ] def
  331797 [TimHunter nc] No, Daniel had it right. A class's #to_s method is expected to _return_
  331800 [dochappy gma] Thanks for all the help. I appreciate it. just had a thought though.
  + 331802 [fixxie.wits ] Yes there is a way to do that...
  | 331830 [theyojimbo g] You could eventually use YAML or XML to store your data and get it back
  | 331840 [dochappy gma] thanks for the example Stefan. it doesn't seem to ask the user to
  | + 331873 [phlip2005 gm] That's syck!
  | + 331878 [jaco neottia] What's wrong with "ri YAML" ?
  | | 331879 [stefano.croc] In my opinion, it's not very informative. True, it does have a (very minimal)
  | + 331888 [fixxie.wits ] OH... If you want the user to enter something you can have something like
  |   331946 [dochappy gma] thanks again . I'll look into those links about YAML
  |   331957 [phasis gmail] 't
  + 331885 [b.candler po] - Marshal.dump and Marshal.load will store an arbitrary graph of Ruby

^ need advice about Blog
331794 [edysusanto_i] need advice about Blog

^ convert PNG to hex
331803 [jeljer me.co] Hey people! ..
+ 331804 [pjb informat] __Pascal Bourguignon__
| 331805 [jeljer me.co] Wohw thanxs for the fast reply Pascal! ...
| 331810 [pjb informat] def to_hex
+ 331806 [phlip2005 gm] Are you asking how to convert the PNG file to one of its colors?
| 331807 [jeljer me.co] yes I want to convert it to one of its colors ... but the image has only
+ 331808 [jaco neottia] Without knowing exactly what you want to do...
  331809 [jeljer me.co] well to explain why I want to do this! :P ..
  + 331811 [jeljer me.co] This is what i now tried (image is ofcourse a array so I did 2 just to
  | + 331812 [ben bleythin] Of course it's not.  The image appears as an array when you view it as
  | | 331815 [jeljer me.co] etc. etc.
  | + 331816 [phlip2005 gm] The summary of your requirements: You have a PNG that looks like an
  |   331819 [jeljer me.co] Haha ok ok ! ... i will confess ! :P
  |   331821 [phlip2005 gm] That's funny. I thought https://github.com/ was a site for random programming
  |   331831 [jeljer me.co] Ok for the people who are interested what the answer is of this verry
  + 331813 [pjb informat] And what's the relationship with lines and hex?
  | 331814 [jeljer me.co] now it is a task I would like to complete..
  | 331818 [pjb informat] Well it's easy enough to do that with the methods I proposed
  | 331820 [jeljer me.co] ah thanxs ! .. I will post the real answer as soon as I have got it ...
  + 331817 [TimHunter nc] With RMagick you can get the pixel values with #get_pixels

^ RMagick error: " no such file to load -- RMagick"
331822 [jeljer me.co] Hee people (again today :P) ...
331824 [serabe gmail] require "rubygems"
331825 [jeljer me.co] PFF !...

^ [ANN] RMagick4J 0.3.7 Happy Birthmonth released.
331823 [serabe gmail] RMagick4J 0.3.7 Happy Birthmonth has been released!
331828 [TimHunter nc] Congratulations and Happy Birthday, Serabe!

^ Cond: Resolve errors without unwinding the stack
331832 [quixoticsyco] Here is a portion of the readme for this new project.  For those

^ [ANN] nokogiri 1.2.3 Released
331833 [aaron tender] nokogiri version 1.2.3 has been released!
+ 331855 [phil pricom.] Building native extensions.  This could take a while...
| 331857 [rasputnik he] yum install libxml2-devel ?
| 331864 [phil pricom.] Dick,
+ 331894 [ara.t.howard] can builder generate nodes like <type>  yet?
  331907 [aaron tender] It's possible, just not easy.  ;-)
  331912 [ara.t.howard] have a look at this

^ send email in ruby
331834 [vetrivel.bks] How to attach the filename in ruby. I have attach 1.txt as a file name .
331835 [david_v_wrig] I haven't personally used this module but looking at the docs,
331836 [scott therei] I would suggest looking at the MailFactory gem (
331854 [d_rems yahoo] r = Ruport::Report.new
331875 [loganathan_g] In the above code, what are the libraries I need to use in require.
331932 [loganathan_g] Awaiting reply................
331953 [loganathan_g] Awaiting reply................
332066 [loganathan_g] Expecting Reply .........
332067 [mo_mail ongh] Obviously, this is not working out for you.  I haven't seen your
332068 [loganathan_g] #! /usr/bin/ruby
332070 [d_rems yahoo] Yep. Thats it.
332071 [loganathan_g] uninitialized constant Ruport::Report (NameError)
332072 [botp delmont] RnJvbTogTG9nYSBHYW5lc2FuIFttYWlsdG86bG9nYW5hdGhhbl9ncHRAeWFob28uY28uaW5dIA0K

^ [ANN] rspec-rails 1.2.1 Released
331837 [dchelimsky g] rspec-rails version 1.2.1 has been released!

^ [ANN] rspec 1.2.1 Released
331838 [dchelimsky g] rspec version 1.2.1 has been released!

^ Reg IO class
331839 [abirami.janu] Should we close the file after reading it?
331844 [shortcutter ] Yes, of course.
331851 [abirami.janu] Thank you for your qucik reply

^ Defining a "followed by" operator or function in Ruby
331841 [andy.elvey p] As part of doing a parsing lib in Ruby, I want to create a "followed
331876 [b.candler po] Are you talking about regular expression syntax?
331939 [andy.elvey p] Thanks very much for that - it should be a big help!

^ [ANN] rspec 1.2.2 Released
331842 [dchelimsky g] rspec version 1.2.2 has been released!

^ [ANN] rspec-rails 1.2.2 Released
331843 [dchelimsky g] rspec-rails version 1.2.2 has been released!

^ Regular expression
331845 [arunkumar in] I know that what i'm going to ask is for the solution for a simple
+ 331846 [ryand-ruby z] regexps are about the worst thing to use in this case. Look at this
| 331850 [arunkumar in] I know that using mechanize or hpricot is a far better option in this
+ 331856 [bbxx789_05ss] s = "<a>hello world</a>"
| + 331858 [bbxx789_05ss] ...oh, yeah.  Normally, a . matches any character except a newline.  The
| + 331859 [bbxx789_05ss] To be a little clearer, the 1 says to return whatever matched the first
+ 331860 [yaserbuntu g] <html>
+ 331870 [arjun4ruby g] Check out the site http://www.rubular.com/
threads.html
top