159521-160420 subjects 159917-162899

ruby9i bind_param errors
159704 [crdiaz324@gm] I've been looking around and I just can't seem to find too much
159706 [crdiaz324@gm] By the way, this is failing as soon as it tries to bind the first param.
159767 [crdiaz324@gm] Ok, I feel like an idiot.  I just found my error.  There is no problem

GNU readline with suggested text
159737 [theaney@ca l] Say I am using GNU readline to get a line of input like so

indent for Ruby, to reformat it
159745 [phlipcpp@ya ] I'm writing a Ruby script and I'm too lazy to type the indentations and
+ 159746 [jqshenker@gm] Um..... Vim!!! ;-)
| 159747 [phlipcpp@ya ] I will use it, just this once, if you divulge which bizarre series of
| + 159748 [martindemell] gg=G
| | 159751 [phlipcpp@ya ] Thanks. That did... something. Now I clean the tabs up with MSDev.exe, and
| | + 159752 [jqshenker@gm] Vim's Ruby indentation has actually worked very well for me, althoughthe syntax coloring gets confused at times. And yes, Vim detects the.rb and indented accordingly.
| | | + 159759 [phlipcpp@ya ] It seems to have identified SH scripts. It broke everything up at bizarre
| | | | + 159760 [david@va ln ] Hack up three lines of Emacs Lisp to get the Emacs ruby-mode to do the
| | | | | 159779 [theaney@ca l] Yes, that's what I meant.
| | | | + 159762 [jqshenker@gm] There's something wrong with your Vim install, because it does workwell for me. Get the latest Vim-Ruby stuff athttp://vim-ruby.rubyforge.org/ . Oh, and the prepackaged vimrc filesalmost never work very well...
| | | + 159833 [dougkearns@g] If you report them as bugs someone might try and fix them. ;-)
| | |   159834 [jqshenker@gm] Well, I just updated and most if not all went away! I am a reallyhappy camper now. But!!!... if I do find any *real* bugs (i.e. notfrom 2 yrs ago) I'll let someone know for sure ;-).
| | + 169387 [fkc_email-ne] Not so hard really, if you add 3 lines to your init file ( I seem to
| + 159750 [jqshenker@gm] Ok! Just pop it open, then type 'G=gg'. See more Vim indenting tricks athttp://www.vim.org/tips/tip.php?tip_id=83
|   159758 [khaines@en g] I use vim a lot, but have never asked it to indent my code for me.  And
|   159793 [gsinclair@gm] With a modern setup, bad results are an exception rather than a rule.
|   + 159795 [jqshenker@gm] Just fyi, to update your vim-ruby stuff, do:$ gem install vim-ruby$ vim-ruby-install.rb (point it at your vim install path if you didn't set $VIM)
|   + 159799 [khaines@en g] The machine(s) are hardly ancient.  One is a Gentoo box that has not had any
|   + 159802 [khaines@en g] to install, and then make sure your .vimrc is setup to make use of what you
|     159811 [martindemell] set nocompatible
+ 159749 [theaney@ca l] I let ruby-mode.el do it
| 159753 [james_b@ne r] Does that go and install vim for the user?
+ 159922 [jussij@ze se] The Zeus for Windows IDE will do auto-indenting.

How to call Ruby function in javascript?
159755 [wanjun@gm il] anyone could help? Thanks
159756 [david@va ln ] God is in the details. What are you trying to do?

Looking for a parser generator
159763 [ehames@gm il] I'm looking for a nice parser generator which given an EBNF grammar
+ 160074 [ruby-lang@wi] (...though not the generator itself).
+ 160488 [probertm@ac ] Depending on what you are after, the EBNF and attributes, one of

159764 [sandhya1205@] ...

cross compiling Ruby
159766 [kero@ch ll .] What an EuRuKo doesn't make you do...

[SOLUTION] Text Image (#50)
159775 [SimonKroeger] This solution uses the RMagick lib to read the image and
159778 [james@gr yp ] Wow, I really like that!  Too cool.
+ 159780 [cyclists@nc ] [SOLUTION] Text Image (#50)
| 159790 [leavengood@g] I'm surprised how easy this Quiz was because of ImageMagick and
| 159792 [james@gr yp ] Indeed.  I only found RMagick two weeks ago, but it impressed me
+ 159894 [SimonKroeger] Thanks, yes it turned out better than expected.
  159908 [rascal1182@g] I tried this one out.  I'm not sure if I was successful or not...

Newbie Hint for the day: .keys.sort
159776 [john.carter@] If, like me, you make heavy use of the ruby Hash type, you quite likely to

facets gem error
159784 [briankbuckle] Typing "gem update" on the command line is producing the error message
159810 [transfire@gm] Interesting. That's the development directory --all sorts of
159845 [briankbuckle] Cool.  The error is gone.  One thing however -- the version number is
159933 [transfire@gm] Yes. It is.

[ANN] BitStruct
159789 [vjoel@pa h. ] (Exerpt from the docs at the project page,
+ 159796 [vjoel@pa h. ] Someone asked offline about block-based initialization, and BitStruct
+ 160978 [taria@th -a ] [I really wish I knew how to make eudora do attribution lines automatically...]
  161018 [vjoel@pa h. ] Not yet. I haven't needed variable sized arrays of anything except

local_variable_set ?
159803 [hal9000@hy e] No, this isn't April Fool's Day. I'm seriously wondering
+ 159804 [dblack@wo bl] binding[:alpha] = 123
| 159806 [dblack@wo bl] Maybe not, though.  I guess the idea would be that the caller is
+ 159809 [twifkak@co c] Well, it's feasible now.
| 159842 [ mfp@ac .o g] The eval("lambda{|x| #{lvar} = x}", somebinding).call(val) trick won't
| 159855 [twifkak@co c] Point.
+ 159826 [jeremy@bi sw] a954f8aaf698a0b9

[ANN]  Ruby Code & Style
159812 [james_b@ne r] The newest on-line resource for serious Ruby information has gone live.
+ 159831 [surrender_it] <snipall>
+ 159853 [james@gr yp ] I've read, and enjoyed, the first article.
| 159858 [james_b@ne r] CTRL +
| + 159864 [Ara.T.Howard] vim does this from the command line.  this converts a directory full of ruby
| | 159865 [james_b@ne r] Ah so!  See, vim has *everything* !
| + 159867 [hgs@dm .a .u] First read that as "me too" then realised it's a Firefox reference.
| | 159895 [ezra@ya im -] There is also the syntax gem that does great ruby highlighting in html.
| + 159982 [gavin@re in ] Heck, with a bit of work, someone could do a variation on http://
+ 159886 [john.carter@] Thanks! Good Stuff!
  159893 [james_b@ne r] Hmm. Given that the first issue has an article on PDF::Writer ...

New Ruby'zine launced
159813 [ptkwt@ar cn ] I haven't seen this mentioned yet...
159815 [jqshenker@gm] It just was mentioned five minutes ago ;-).

159814 [CBlair1986@g] I'm looking to take something like
+ 159818 [greg7224@gm ] irb(main):001:0> "/123/456/789/0ab/cde/fgh/ijk/lmn/opq".split("/")
+ 159820 [michael.dain] your_input.split.map {|line| line.split('/')[1..-1] }
  159822 [greg7224@gm ] Yeah, this is probably what you're looking for.  A quick explanation of
  159824 [mvette13@gm ] ...
  159827 [greg7224@gm ] In the original post, it looks like he wanted an array for each line...
  159829 [CBlair1986@g] Yes, that's exactly what I wanted. Thanks, you all.

QtRuby OS X Tiger
159817 [fugalh@gm il] QtRuby is neat, and pleasantly easy to get working on Debian, which
+ 159849 [caleb@ae -t ] Yeah, this is a bug that didn't make it into the book (because I fixed it
| + 159868 [fugalh@gm il] Ok, good to know I didn't break anything.
| | 159869 [caleb@ae -t ] Will do.  I also updated the qtruby and korundum releases at rubyforge
| | 159870 [caleb@ae -t ] And by "this bug", I mean the one that causes the compile time error.
| + 159875 [fugalh@gm il] I figured this one out. Somehow My DYLD_FALLBACK_LIBRARY_PATH got set
| + 159876 [fugalh@gm il] I figured this one out. Somehow My DYLD_FALLBACK_LIBRARY_PATH got set
+ 160009 [fugalh@gm il] Ok, I figured out the strange behavior and QtRuby is finally working
  161775 [wrong@so al ] this is impossible. i tried to get qtruby working a couple weekends,
  161893 [fugalh@gm il] Hmm, not sure. I didn't get these errors. You are following the
  162408 [wrong@so al ] thanks for the help. still can't get it though. i wonder what i'm
  162765 [fugalh@gm il] cc -dynamic -bundle -undefined suppress -flat_namespace -L/opt/local/

How to overload Object's methods automagicaly?
159839 [zbl@op ra ai] I am playing with a Synchronized class that automates resource locking
159843 [bob.news@gm ] You can iterate all instance methods, alias each one and create a new one
159994 [zbl@op ra ai] Eurica!
160012 [bob.news@gm ] And which method do you invoke then if you undefined all those methods?
160163 [zbl@op ra ai] If I invoke to_s() on Sync object, then method_missing()  will be
160173 [bob.news@gm ] Well yes, but from what I understand from your postings your aim is to
160380 [zbl@op ra ai] I want to use method_missing() to call the original methods
160409 [bob.news@gm ] Where is this a contradiction?
+ 160415 [Ara.T.Howard] i only think at most half of what i write.  is that bad?  ;-)
| 160430 [brockweaver@] ...
+ 160568 [zbl@op ra ai] When MonitorMixin is used any transaction can be treated as single

Re: [bulk]: How to overload Object's methods automagicaly?
159841 [r_mueller@im] What about the "methods" method? You get an Array whith all the method-names of the current object.

159848 [tranqy@gm il] ...

ruby on rails problem
159857 [kamran.remin] i installed ruby1.8 and ruby on rails on my linux (debian) box. Im using
159859 [james_b@ne r] James

[ANN] KirbyBase 2.3 Production Version
159871 [cribbsj@oa w] I would like to announce the production release of version 2.3 of
+ 159905 [ezra@ya im -] Hey thanks Jamey. This stuff is great! Keep 'em coming.
| 159914 [jcribbs@tw i] Thank you!
+ 159915 [hal9000@hy e] Jamey -- once again thanks for all your hard work. You rock.
  159924 [jcribbs@tw i] Man, I was hoping that flattery would get me somewhere!

Honolulu Ruby Users Group
159872 [sam@ne ro ri] Just to let you know that we're setting up a Ruby User's Group in
159873 [Daniel.Berge] If *only* I could attend. :)

How to use Session
159880 [csjasnoch@wi] I do not understand how Session works.
159889 [Ara.T.Howard] starting at the top directory
160011 [victor.reyes] ...
160021 [Ara.T.Howard] i'm certainingly willing for that to happen.  an RCR maybe?

help with htree
159892 [Ara.T.Howard] i'm trying use the htree library for a relatively simple task in the hope that
+ 159896 [Ara.T.Howard] irb(main):019:0> HTree("<hr/>").display_html ''
| 160007 [hutch@re ur ] Thanks for the pointer to HTree.
+ 159983 [gavin@re in ] Not answering your question: why not use regexp?
  159986 [Ara.T.Howard] i already have a working version.  i just wanted to learn htree.  it's very
  159993 [gavin@re in ] Certainly, if your input is likely to have such. It would be illegal

Sort pseudo-lists
159897 [pete.boardma] - imagine it's aspiring to be a list of sublists, with 4 reals in
+ 159898 [james@gr yp ] Well, if you can count on the data format, the following is pretty
| + 159959 [pete.boardma] Thanks, James - simple, elegant, and nearly perfect! Is it easy to
| | + 159961 [martindemell] That's actually the default behaviour, so you can just say arr.sort
| | | 160008 [bob.news@gm ] Strictly speaking that's wrong: the code above and arr.sort are not
| | | 160010 [james@gr yp ] Making Martin's answer right on.
| | | 160014 [bob.news@gm ] Erm, yes.  My fault!  Apparently I'm not able to read news properly any
| | + 159962 [w_a_x_man@ya] a = "{{2.1, 2.2, 9.5, 2.1}, {2.1, 2.2, 2.4, 2.2}, {2.1, 2.2, 2.1,
| + 159963 [w_a_x_man@ya] arr.sort_by{|x| x.first }
| | 159972 [dblack@wo bl] arr.sort
| + 160107 [meta@po ox c] I'd just like to remind everyone that if the data is input by users,
+ 159899 [Ara.T.Howard] buf = "{{3.1, 1.3, 2.5, 2.1}, {2.1, 3.1, 2.4, 2.2}, {1.4, 2.2, 2.1, 4.2}}"
+ 159966 [pete.boardma] Thanks for these answers!
+ 159977 [pete.boardma] One more thing - I forgot that I need to get the result back to a
  + 159981 [simon.kroege] a = [[1.4, 2.2, 2.1, 4.2], [2.1, 3.1, 2.4, 2.2], [3.1, 1.3, 2.5, 2.1]]
  | 159985 [pete.boardma] Cool - didn't realise Ruby had mapcar stuff. Haven't got that far in
  + 160069 [ruby-ml@ma i] Kernel#p actually prints stuff, using #inspect rather than #to_s. So,
    160103 [pete.boardma] Right, so I can get access to the form shown by 'p'. Great!

verifying proper vim-ruby install
159900 [r.mark.volkm] The message above came from another thread.
159912 [mailing-list] Can you _please_ take vim-ruby related stuff to the vim-ruby
+ 160004 [r.mark.volkm] On 10/10/05, Nikolai Weibull
| + 160034 [mailing-list] What kind of an answer did you expect?  If the gem installed without
| + 160037 [dougkearns@g] Well, just to annoy Nikolai, I'll respond here... ;-)
+ 160056 [r.mark.volkm] On 10/10/05, Nikolai Weibull
  160059 [r.mark.volkm] Never mind. I see in the reply from Doug that this is the list for me
  160174 [gsinclair@gm] I created that list and intended it to be for developers.  User
  160177 [mailing-list] That assumes that every project maintainer/developer actually listens to
  + 160180 [gsinclair@gm] It [what happens during a vim-ruby install and how to verify it] is
  | 160185 [mailing-list] And then what?  At some point one has to sink or swim.  If the installer
  + 160181 [hgs@dm .a .u] ...
  | 160190 [mailing-list] ^^-- Why, oh, why?
  + 160194 [dougkearns@g] Sheesh, I'm really getting tired of these vim-ruby threads on
    160221 [mailing-list] Sorry, ;-)

argc *argv[] in Ruby
159901 [raw73@po zt ] Does Ruby have something like C has argc and *argv[]?
+ 159902 [chriseskow@g] ...
+ 159904 [chriseskow@g] ...
  159950 [bob.news@gm ] Adding to that there's also ARGF which is a single IO like object that

pre-Ruby-Conf dinner Thursday night
159903 [sera@fh an .] Hey everyone,
+ 159906 [gregory.t.br] Count me in.  I actually wanted to hunt you down anyway because though
+ 159907 [twifkak@co c] _why seems to see something special in the Ch? Caf?. Touristy things
| 160536 [daniel.amela] ...
+ 159909 [james_b@ne r] Sounds good.
| + 159911 [twifkak@co c] Coincidentally, the Ch? Caf? is vegetarian.
| + 160054 [hober0@gm il] If you don't mind the cultish aspects to it, Jyoti-Bihanga on Adams Ave.
+ 159910 [binary42@gm ] Sounds fun, though, we might have too many takers for one group (all
+ 159918 [adam@th re l] I'm planning on attending.  (You can see my lovely mug in the
| + 159920 [hal9000@hy e] While we're there, we're all Californians. My system has never been
| | 159921 [adam@th re l] From what I've gathered in reading PyCon summaries, Sprints are
| | 159923 [james_b@ne r] I'm interested in getting my head around Mousehole.
| | 160378 [george.mosch] Still some bugs to hunt down, I am afraid :(
| + 159925 [twifkak@co c] Sure. Never done one before, so, you know, I might suck, but sure.
| | 159929 [adam@th re l] Awesome!  I'm really pumped others are interested in this.  I've
| | 159930 [james_b@ne r] Well, the wiki page doesn't require invites, making it a bit more open
| | 159931 [adam@th re l] Tell it to the wiki!  http://www.rubygarden.org/ruby?
| + 159928 [gregory.t.br] Since when is a problem for New Yorkers to eat at Midnight?
+ 160060 [hober0@gm il] There are a bunch of good food options right near the hotel. On El Cajon
+ 160117 [byrd.timothy] Though I can't come to the conference - in class all day Saturday - I'd
| 160122 [hal9000@hy e] Assuming you didn't try to sneak into the conf or anything, I'm sure
| 160306 [wilsonb@gm i] We'll have to remember to check for authorized barcode tattoos at the door.
| 160486 [byrd.timothy] Ha!  Well, much as I'd like to attend the conf, I'm not going to miss
+ 160330 [hal9000@hy e] Mine lands at 8:20, so there may be some of us "latecomers"
| + 160400 [halostatue@g] Curt, are you coming from Phoenix on America West? Because that's when
| | 160412 [curt.hibbs@g] ...
| | 160426 [halostatue@g] Very cool. See you this evening.
| + 160495 [gregory.t.br] I'm stuck in Dallas on standby.  I fell asleep in a chair in my friends
+ 160386 [Bil.Kleb@NA ] I might show up: You guys treated me well last year.
+ 160434 [jeremy@hi eg] I'll be there,
  160459 [wilsonb@gm i] As will I. I'm sitting in my point-of-origin airport right now.

[ANN] el4r-0.9.3 - EmacsLisp for Ruby
159913 [rubikitch@ru] El4r enables you to write Emacs programs in Ruby as well as in EmacsLisp.

Facebook... only 154 to go?
159916 [hal9000@hy e] I added my own pic just now. You should, too...
160062 [wilsonb@gm i] It seems like we've got two separate revisions going, neither of which
+ 160071 [rubyhacker@g] Hmm. How did we end up with two?
+ 160073 [halostatue@g] I suspect that one of these is in the tarpit. If your title bar says
  + 160077 [jamis@37 ig ] Okay. That's really annoying. I understand the purpose of the tarpit,
  + 160084 [billk@ct .c ] To clarify, does case matter here?  My title bar says "Ruby: ..."
  | + 160086 [halostatue@g] Case matters. I'm not sure that this is a case of the tarpit, having
  | | 160092 [wilsonb@gm i] OK.. I made an account, and now the title bar says 'Ruby', rather than 'RUBY'.
  | | 160093 [james_b@ne r] Just how *does* one log in?  The log in page (I think I found it)
  | | + 160273 [wilsonb@gm i] I went to the "Preferences" page, linked from HomePage, and set some.
  | | | 160289 [matt@te hn r] Ok, I've figured that out.  Now where do I store the picture to link to?
  | | + 160277 [halostatue@g] It's in the tarpit, but as soon as you have the cookie, you can
  | + 160094 [james_b@ne r] And where is the hoodwink.d layer so we can all leave snarky comments
  |   160111 [ruby-talk@wh] Uh... I thought I added that?  hum?... ohhhh, you must be stuck in the
  |   160280 [leavengood@g] I feel like I really shouldn't feed the _why, but I almost passed out
  + 160121 [hal9000@hy e] Well... I see "Ruby:" on both, but "RUBY" on neither.