325579-343833 subjects 325987-333106

^ [RedCloth] Adding a class to a link with Textile
325786 [pedrolito la] <a class='first' href=...>
325787 [pedrolito la] Actually it does work, I made a typo during my tests.

^ Scope resolution operator
325797 [rabbitblue g] (The code I will demonstrate is Rails-based, but the question is
325808 [stefano.croc] According to "The Ruby Programming Language", ::Something is a shortcut for
+ 325810 [rabbitblue g] You may not be familiar with Rails but you certainly know Ruby. That is
+ 325947 [shortcutter ] ARGF
+ 326063 [overlord gmx] ,----

^ Not sure why this is failing, barring a typo:
325801 [alex.m.mcphe] class Animal
+ 325804 [mguterl gmai] Your method is named get_color, you're trying to call the method
+ 325805 [severus post] No.

^ [ANN] freeVikings 0.8
325803 [severus post] == What is it?

^ Question about BlankSlate.reveal
325812 [gregory.t.br] I've been working on a chapter for "Ruby Best Practices"[0] about the
325876 [shortcutter ] From what you write caching a bound method seems a bad idea because it
+ 325886 [gregory.t.br] I think you missed that the local variable was at the class level.
| 325900 [shortcutter ] Right, you stated so in the text and then I got confused by
| + 325904 [dblack rubyp] Sorry -- I posted my reply to your earlier post without having noticed
| + 325905 [gregory.t.br] Technical Blaag at: http://blog.majesticseacreature.com
| + 325906 [gregory.t.br] Cool.  This is what I'm going to go with in my chapter.  I emailed Jim
+ 325903 [dblack rubyp] Let's say you do BasicSlate.reveal(:meth). Then you do slate.meth. At

^ Listing installed gems
325813 [shiloayalon ] I'm trying to find out if there's a simple way to list all the gems I
325814 [stefano.croc] Doesn't
325815 [shiloayalon ] Bingo, must have missed that in the gem --help (yup, feeling dumb right
325847 [tomcloyd com] technically, the correct command, I believe is "gem list --local" or
325848 [Rob AgileCon] $ gem list --local ra
+ 325850 [tomcloyd com] * gem list -l ra => lists all local gems BEGINNING with "ra"
+ 325864 [luc honk-hon] % gem list -l ".*ra"
  325875 [Rob AgileCon] Good to know!  I like when my own advice comes back even better!

^ How to pop up a Download Window
325816 [saurav ciphe] I have to show window as like you got on click of save(or by pressing of
325820 [b.candler po] This is not a Ruby question, but it's something I was trying to do
325958 [richard.conr] This is a problem I faced recently enough. The proper solution is to set

^ unalias a method?
325817 [promos burch] I needed to alias a method (alias_method) to change its behavior during
+ 325819 [mike.gold.44] class Foo
| 325840 [promos burch] Thanks Mike.  Perhaps that's what I said, but that's not what I meant...
| + 325844 [gregory.t.br] Hopefully this does what you'd expect.  -greg
| | 325851 [promos burch] Hey Greg!  That works great from Terminal - thanks.
| + 325854 [mike.gold.44] In that case, maybe push/pop would make things easier.
|   325856 [promos burch] Didn't work.
|   325857 [mike.gold.44] The |&block| syntax is supported on 1.8.7+.  Rewriting MethodStack for
|   325858 [promos burch] I had to laugh out loud on that one.  Thanks Mike!
|   325881 [mike.gold.44] My last comment sounded more glib than intended.  Since I've already
+ 325846 [ryand-ruby z] alias the old method back. A really messy example of this is heckle

^ unsubscribe my email address from all ruby forums
325825 [wlh1074 yaho] unsubscribe my email address from all ruby forums

^ Re: Question about BlankSlate.reveal [SOLVED]
325826 [gregory.t.br] As it turns out, I was able to stop the method from binding to a
326016 [shortcutter ] Greg, thanks for sharing the result of your investigation!

^ [ANN] Inochi 0.2.0
325828 [ snk gna.org] Inochi 0.2.0

^ [ANN] Rumai 2.0.1
325830 [ snk gna.org] Rumai 2.0.1

^ How can I get the arguments passed to the caller.
325832 [stefan.kanev] Hey guys.
+ 325833 [pjb informat] I don't think this is possible.
+ 325834 [jcoglan goog] I think the closest you're going to get is for the calling function to pass
  + 325843 [stefan.kanev] So, suppose I want to get evil and go dig into frames and so on. I've seen
  | 325849 [robert.dober] Depends, for methods with *args and optional arguments you have
  + 325865 [b.candler po] In which case, it might as well just pass its args instead :-)
    325953 [stefan.kanev] Thanks for the advice. I would have never had thought of something as
    325963 [shortcutter ] IMHO you can't because the current value is only known by method
    326164 [stefan.kanev] And I have to override Array#each. I'll also need to override #map, #select

^ creating  facebook
325835 [isitcbh yaho] what about creating facebook with rails !
+ 325836 [isitcbh yaho] what about creating Google map with rails !
| 325837 [isitcbh yaho] what about creating website forum with rails !
| 325838 [isitcbh yaho] Posted via http://www.ruby-forum.com/.
| 325842 [iwasinnamukn] well go and do it then...
| 325845 [ryand-ruby z] so you have a sig about top posting yet don't know not to feed the
+ 325839 [badboy heart] what about creating Youtube with rails ?!
+ 325859 [alex deletem] What about destroying facebook with ruby? That would be so much cooler.

^ Whats wrong with this script?
325853 [tommy.nordgr] #!/usr/bin/ruby
325855 [sepp2k googl] HTH,
325863 [overlord gmx] That seems to be another reason not to use global variables.

^ [ANN] Mr Bones 2.3.0 (Calcaneus)
325860 [tim.pease gm] Mr Bones version 2.3.0

^ [ANN] logging 0.9.5
325861 [tim.pease gm] logging version 0.9.5
325862 [severus post] It would be nice to see comparison of Logging and Log4r.
325951 [tim.pease gm] /me makes mental note to write up a blog post ... after I create the =20
+ 325954 [rupert rupes] ...
+ 325975 [tomcloyd com] OMG, Tim, you're right! And it's a jewel. I use it all the time -

^ Need help for Ruby DBI and PostgreSQl
325870 [pujari.manis] I am trying to access aPostgreSQL database from a Ruby program.
+ 325872 [raasdnil gma] require returns false when the library has already been loaded.
| 325874 [pujari.manis] Thanks Mikel,
| 325877 [overlord gmx] That's strange. Maybe the keyboard on that computer is broken. Try
+ 325879 [b.candler po] You need to show the exact error message you got.
  325883 [pujari.manis] Try 'ruby setup.rb --help' for detailed usage.
  325899 [b.candler po] You didn't show the command line you typed. But the following works just
  325948 [pujari.manis] Thanks Brian.
  325955 [b.candler po] * your operating system version, your ruby version, and the dbi version
  326017 [pujari.manis] problem.
  326018 [b.candler po] Thank you. The problem is simply that you were following information on
  326032 [pujari.manis] Thanks Brian, for all the information.
  326037 [b.candler po] Perhaps in different locations, but otherwise it should all work the
  326050 [pujari.manis] thanks a lot for the information

^ xml
325871 [kd_harish ya] i am new ruby on rails n i am currently working on xml with Ruby on
325880 [b.candler po] Problems with Rails and/or ActiveRecord would best be asked on a Rails
325950 [kd_harish ya] Sir,
325957 [b.candler po] No, that's wrong, and it explains why your data is getting serialized as
326337 [jarmo.p gmai] You are correct. I just had similar problem as OT.

^ minimal ruby install
325882 [rfiorentino ] I submitted a similar request over on the rails forum, but feel this is
325885 [m.fellinger ] minimal footprint and rails?
325887 [rfiorentino ] Right...good question. At a minimum I need to support DB access and
325890 [rmagick gmai] I love Ruby, but for embedded applications you might check out Lua. I

^ net-smtp timeout error
325888 [djberg96 gma] Ruby 1.8.6-p114
325889 [usenet a13.f] nc mailhost.foo.com 25
325915 [djberg96 gma] It turns out there was a bad, hard coded mailhost value in the

^ non-invasive templating solutions in ruby?
325893 [metaperl gma] would like to know which dynamic html generation systems exist in Ruby
+ 325894 [phlip2005 gm] Everyone uses eRB there. Except those who use HAML, or certain other systems,
| + 325896 [metaperl gma] t's CSS
| + 325897 [metaperl gma] This was a good review of ruby templates -
+ 325898 [b.candler po] Amrita works like that. I haven't used it for a long time, and it

^ How do I use Erubis?
325901 [jonsdenni gm] I have been using eruby for embedded ruby in html, and I am moving to a
325929 [b.candler po] To paraphrase: you are asking "how to I get my webserver to use erubis

^ Page crawling and URL grabbing
325910 [leahy16 gmai] Hey guys,
+ 325928 [jgabrielygal] Generally speaking, regular expressions are not the best tool to extract
+ 325931 [trednu gmail] Try Mechanize.
  325988 [leahy16 gmai] That's great, or it sounds great. Is there any documentation aside from
  325990 [lyon2003 lyc] mechanize is very easy and intuitive ... you could basically learn to

^ Conventions in ruby and the principle of least surprise
325911 [einarmagnus ] library that so far has had me surprised. I know Matz doesn't say that
+ 325912 [matz ruby-la] Correct.
| 326340 [julian coret] Awesome :) perhaps these little gems of what certain things mean as a
+ 325926 [b.candler po] save_block(:say_hello) {
  325934 [d_rems yahoo] My convention is use {} in oneliners. In all other examples I use
  325977 [ryand-ruby z] {} for block values I care about (think map), do/end for regular block
  + 325991 [mike.gold.44] funcs = []
  | 326095 [phlip2005 gm] Curiously, Ruby departs with 40 years of Structural Programming tradition - the
  + 326591 [rick.denatal] Yes, it's the "I care about' that matters, a subtle distinction to the

^ passing hash as arguments
325916 [jason.lillyw] Is this the best way (though contrived) to use a hash as an argument in
325917 [micathom gma] def state_name_age(feeling, info=3D{})

^ Help on Directory Iteration
325918 [revathy.p an] now in my form i have given date field and search button.
+ 325919 [shortcutter ] Dir.foreach(File.join("ChatHistory",f)) do |p|
| + 325920 [revathy.p an] Thanks for the timely reply
| | 325932 [revathy.p an] Posted via http://www.ruby-forum.com/.
| | 325980 [shortcutter ] remember.guy do |as, often| as.you_can - without end
| + 325933 [revathy.p an] if params[:first_name].blank? and params[:second_name].blank? and
+ 325923 [botp delmont] RnJvbTogTmV3YiBOZXdiIFttYWlsdG86cmV2YXRoeS5wQGFuZ2xlcml0ZWNoLmNvbV0gDQojICAg
+ 325936 [b.candler po] You can get a list of all files and subdirectories under a subdirectory

^ nokogirl on ubuntu: failed to build gem native extension
325921 [edrd.dantes ] I want to give a try to nokogiri with mechanize as it seems to have
325922 [radek.bulat ] Search and install package named ruby-dev. Notice also that it's
337604 [gheorghiua g] Have similar problem and tried to install ruby-dev but it is not in my
+ 337606 [charles.john] Cheers--
| 337719 [gheorghiua g] Tried it and also followed this site http://whomwah.com/tag/howto/ for
+ 337785 [drbrain segm] $ gem list -r nokogir
  337796 [gheorghiua g] nokogiri (1.2.3)
  337799 [drbrain segm] IIRC, Mike Dalessio always typed "nokogirl" instead of "nokogiri", so =20=
  337818 [mike.dalessi] 2009/5/28 Eric Hodel <drbrain@segment7.net>
  337833 [gheorghiua g] LOL -with tears in my eyes! Worked on a wget today, with the help of my
  338111 [gheorghiua g] The issue on my installation was that libxml2 appeared in my /usr/lib64

^ A test suite for DRb
325930 [dido.sevilla] I've been working on a version of distributed Ruby that makes use of

^ Name Extraction
325938 [revathy.p an] i have following string
+ 325940 [tjnogueira o] I think you can do this with regular expressions.
+ 325944 [jgabrielygal] irb(main):001:0> a = "jayabharathy@angleritech.com~Vs~kannan@angleritech.com"
+ 325946 [shortcutter ] Something like this can work, depends of course on the names that you

^ saving ActiveRecord/form changes
325952 [thewdata_sa ] Greetings everyone,
325956 [b.candler po] I'm afraid the Rails mailing lists/groups are elsewhere. This is the

^ Ncurses: Take the input from certain spot?
325960 [tmcdowell gm] I've set up a basic window that goes along the bottom of the term

^ problems with rake and sh
325962 [hunkybill gm] I am using ssh to login to my Amazon EC2 server, and using a rake task
326074 [rogerpack200] maybe run it within bash or sh -c or so... [?]
326075 [hunkybill gm] It does run fine in bash... the whole point for me is to use Ruby inside
326377 [jarmo.p gmai] Maybe Net::SSH could help you: http://net-ssh.rubyforge.org/

^ A bug in Ruby regexp lib?
325966 [x11 arturaz.] ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
325968 [tim burlyhos] href=\"http://www.myspace.com/djmamania\">www.myspace.com/djmamania</a>
+ 325969 [tim burlyhos] href=\"http://www.myspace.com/djmamania\">www.myspace.com/djmamania</a>
+ 325970 [x11 arturaz.] Ah, thank you. It seems that Ruby is parsing that string after getting

^ read a ruby script like you would read a text file
325967 [mmc_collins ] I want to read each ruby script in a directory (btw there a hundreds of
325981 [shortcutter ] What do you mean by "read"?  Do you want to execute the Ruby code in
325982 [mmc_collins ] Thanks Robert,

^ Ruby interpreter not working
325971 [w.dresh gmai] I think this problem will be best explained by simply showing you the
325972 [stefano.croc] Look closer at this.
326014 [lyon2003 lyc] I think Charles was being ironic , making fun of the python guys . It's
326026 [robert.dober] And I felt actually bad, adding the smiley, just to discover it was
326056 [rodrigo.berm] def new ...would be the "least surprise way" of doing it.

^ Re: [initialize keyword] Ruby interpreter not working
325973 [rodrigo.berm] I've come across into this mistake several times.
+ 325976 [tomcloyd com] Actually, English isn't all that easy for us English speakers either. If
| + 325978 [phlip2005 gm] Thank God the Brits have not foisted their phonetically incorrect 'initialise'
| | 326011 [martindemell] I must admit, I did that one a lot when I was learning Ruby. `init`
| + 325996 [robert.dober] This is really something ugly, biting me very often. Actually I
|   326009 [yaserbuntu g] Nice.
|   326012 [robert.dober] That seems a good idea too. I guess it is important to let each tool
+ 325997 [tim burlyhos] I don't suspect there are many languages that would create aliases by
+ 326003 [charles.nutt] Sure, how about we name it __init__

^ replacing callcc by catch/throw
325974 [thomas faun.] in his book ``The Ruby Programming Language'' Mats discourages from
+ 326020 [b.candler po] Well, I don't really understand what's going on, but I observe from the
| 326092 [thomas faun.] I've looked for the simpliest example to demonstrate the diffence.
| 326146 [b.candler po] OK, I see the problem now. If you use the same symbol everywhere, this
| + 326202 [thomas faun.] That's not enough. Now recursion comes into place: multiline_tail can
| | 326243 [b.candler po] Oh yes - sorry for being dense. So the attraction of callcc is it
| + 326359 [thomas faun.] The lexicographical scope lets one see, if a locally created object is
+ 326223 [charles.nutt] In an almost totally unrelated vein, I just committed support for
| 326263 [robert.dober] My question is, and apologies if I am being stupid here, what is the
| 326302 [charles.nutt] We pass more specs? :)
+ 326244 [akr fsij.org] The argument of catch is optional in Ruby 1.9.
  + 326246 [b.candler po] ... and I see that even with an explicit tag, it doesn't have to be a
  + 326358 [thomas faun.] Fine! I like that much more than it is in Ruby 1.8. Imagine a Ruby
    326405 [robert.dober] Bad design IMHO
    326440 [charles.nutt] The funny thing is that that's basically what the "downward" callcc

^ Super User Can't Change UID?
325983 [james graypr] Why would the super user not be able to switch UID's?
+ 325984 [michel.boave] This works on my gentoo without any problem. Try to became root and
| 325985 [james graypr] $ sudo sh
| 325993 [Rob AgileCon] It works for me on Ubuntu and Mac OS X also.
| 325998 [james graypr] Were you using Apple's bundled Ruby or something you compiled?
| 325999 [Rob AgileCon] Apple's /usr/bin/ruby.  (I'd answered before I saw your
| 326000 [james graypr] $ sudo ruby_dev -r etc -ve 'Process.uid = Etc.getpwnam("james").uid'
| 326001 [ezmobius gma] It fails for me on my self compiled ruby 1.8.6 on osx but the built
+ 325992 [james graypr] Another data point on this odd issue:  Apple's bundled Ruby (I'm on OS
| 326029 [djberg96 gma] Are you on 10.4.x?
+ 326005 [djberg96 gma] I seem to recall that setreuid() is busted on OS X, 10.4.x anyway. I
  326047 [james graypr] I'm on Mac OS X 10.5.6.
  326057 [ezmobius gma] Does something like this not work for you?
  326064 [james graypr] This worked.  Thanks so much Ezra.