274498-281353 subjects 274946-297576
^ array help
274728 [JeremyWoerti] I have [1,2,3] and I want to return [1,2] is there already a method
+ 274730 [thomas.adam2] [1,2,3][0..-2]
| 274733 [JeremyWoerti] awesome. So what does the 0..-2 do? how does that work exactly?
| 274734 [thomas.adam2] When you use array subscripts starting from -1, -2, -3, etc, it starts
+ 274731 [JeremyWoerti] well I guess 2 solutions would be either
+ 274739 [lists bertra] In case you really need the array _and_ its reduced version
+ 274771 [lloyd 2live4] I am not sure if you got your answer yet or not, so here goes.
+ 274775 [tony twincod] your problem is a mite unclear, I'll try to cover a few possible
+ 274791 [celtic sairy] irb(main):001:0> [1,2,3][0...-1]
+ 274794 [lists bertra] class Array ; def evth_but_pop ; slice 0, length-1 ; end ; end
^ listing files in remotely with net::ssh?
274736 [gianmh gmail] I want to connect to a remote server which I am able to do fine, I
274801 [cremes.devli] I would take a look at the gl_tail project . It uses net-ssh
^ [ANN] attributes-4.1.0
274738 [ara.t.howard] NAME
^ [ANN] crosstab-0.1.0 Released
274740 [mjudge surve] charset=US-ASCII;
274751 [mguterl gmai] This looks pretty cool, I look forward to checking it out.
274907 [andynu gmail] I'd love to try it however, rubygems is having some trouble resolving the
274930 [mjudge surve] Sorry about that. I mucked up the dependencies list when releasing
^ Mac OS X Leopard Ruby Features
274742 [gwtmp01 mac.] ...
274744 [dangerwillro] Yep, and we will see how well it's done, soon enough.
274754 [binary42 gma] I hear that gem updates work fine. In addition to rails gems, it comes
275783 [lpackham gma] Let's try this again (as posting on groups.google.com appeared to
+ 275807 [laurent.sans] Feel free to report any OSX-related problems at http://bugreporter.apple.com
| 275812 [lpackham gma] charset=US-ASCII;
+ 275930 [linguist gma] I am no longer with Joyent, so if you mailed scott@joyent it wouldn't get to
^ [SUMMARY] Reverse the Polarity (#143)
274746 [james graypr] I was glad to see this problem submitted. I worked on it a ways back when I was
^ High volume DRb server errors
274752 [bryan.duxbur] I've run into an interesting problem using DRb as the frontend for
^ how do i even get started with ruby/tk
274756 [jono.oshea g] I've been using ruby for about a two months now and have a decent
274766 [thomas.adam2] If that doesn't help you, just what is it you're after then?
^ missing methods in Facets?
274757 [mlongo deman] Does anyone know why a lot of the String methods that are supposedly in
^ [ANN] main-2.0.0
274758 [ara.t.howard] NAME
+ 274767 [botp delmont] # Subject: [ANN] main-2.0.0
| 274829 [ara.t.howard] require 'main'
| 274939 [botp delmont] # def run
| 274980 [ara.t.howard] great. in 2.1.0 (on rubyforge now) you can just use 'help!' which =20
+ 274813 [mailing.mr g] Great, I'm looking forward to using this
+ 274814 [jeremymcanal] Fantastic! I always thought there should be a more Ruby-ish way of
^ the level of Ruby programmers vs PHP's
274773 [summercoolne] i asked the same question on Ruby: how do you write some code to print
+ 274779 [shuaib.zahda] do you mean something like this
| 274781 [summercoolne] oh i mean something like
| + 274782 [summercoolne] so it is more like, printing out literally the expression of interest as
| | + 274788 [shuaib.zahda] I know this method (inspect) it does output the values in a human
| | | 274789 [botp delmont] RnJvbTogU2h1YWliIFphaGRhIFttYWlsdG86c2h1YWliLnphaGRhQGdtYWlsLmNvbV0gDQojIGhv
| | + 274887 [mental rydia] I think the best you can do in Ruby without resorting to
| | 275041 [summercoolne] Thanks for all the help.
| + 274807 [bg-rubytalk ] This is one of the few reasons I wish Ruby had macros. Having a
| | 274811 [apeiros gmx.] def debug_eval(code, binding)
| | 274818 [phlip2005 gm] I think there's some way to get the binding without passing it in.
| | 274838 [jameskilton ] Just default-arg it to the top binding.
| + 274860 [ari aribrown] OOOH! I just learned this is CS class!!!!
+ 274793 [mortee.lists] Are you currently looking for an answer, or you have already discussed
| 274841 [hramrach cen] They actually gave you a PHP solution that works for variables (with a
+ 274821 [dan-ml dan42] For the record, what was the solution? I can see how you could do it
| 274848 [hramrach cen] There is a function in PHP that returns name-indexed array of
+ 274878 [perrin apoth] In my experience, the best (and most helpful) PHP programmers are usually
^ Anybody tell me about net/ftp protocol ?
274776 [hariharan.sp] Dear Friends,
274777 [alexg kuicr.] Your code works for me, which suggests there was either a problem
274778 [n.o.t for.em] Probably the OP needs to put the connection in passive mode.
^ Is there any way to send a mail to using tk.
274783 [hariharan.sp] Dear frineds,
274786 [thomas.adam2] I'm not sure I follow you. Tk is just a widget set. Sending email
^ net/ssh makes log4r fail
274787 [manish gslab] For following code snippet, I get following error
^ Complex views
274790 [datenpunk gm] I am coming from seven years of php and I want to try rails now :)
274796 [datenpunk gm] I was wrong here - I think I'll better put this into a rails group.
274802 [phlipcpp yah] Please. I need to complain Rails falls down on this specific problem. A
^ [QUIZ] Time Window (#144)
274799 [james graypr] 1. Please do not post any solutions or spoiler discussion for this quiz until
+ 274833 [kbloom gmail] =-=-=-=-=
+ 275092 [justin.ethie] Here is my solution to the quiz. First I used smaller classes to simplify
+ 275117 [gthiesfeld g] Here's my solutions. I used Runt for the heavy lifting. I just had
| + 275134 [juanger gmai] I considered only when input has day ranges in ascending order ("Mon
| + 275202 [gthiesfeld g] There was a bug in my code. I shouldn't subtract a minute from the
+ 275135 [kbloom gmail] #!/usr/bin/env ruby
+ 275169 [gattster gma] Here is my solution to the time window quiz. Range.create_from_string
+ 275183 [jgabrielygal] This is my solution: nothing spectacular or too clever. The idea was
^ Parse / write XML without changing character encoding
274800 [amir.helzer ] I need to change some things inside an XML document, so I'm reading it
^ simple code
274803 [angel.of.nor] #!/usr/bin/ruby -w
+ 274804 [bg-rubytalk ] Try "if md.nil?" instead.
| 274859 [bbxx789_05ss] if md
+ 274923 [w_a_x_man ya] On Oct 19, 8:44 am, "angel.of.no...@googlemail.com"
+ 274927 [w_a_x_man ya] On Oct 19, 8:44 am, "angel.of.no...@googlemail.com"
^ Q why do I get: uninitialized constant GLUT::BITMAP_8_BY_13
274805 [ruby-forum s] Doing a little open GL from Ruby fails on my production server (Ubuntu)
274863 [gdprasad gma] I am able to run ruby-opengl examples on my Ubuntu desktop.
^ Eval alternative to execute string
274806 [brandtjc tel] I have the following stored in a file Example1.rb
+ 274808 [funkaster gm] If you want nothing to do with the external ruby file, maybe you =20
| 274812 [brandtjc tel] OK, that works and thanks a lot.
| 274816 [funkaster gm] if you have the contents in a string, you could always open a piped
| 275173 [brandtjc tel] Thanks Rolando
| 275174 [thomas.adam2] As a quick aside, I'd ignore anything in PLEAC as far as Ruby goes.
+ 274809 [yermej gmail] Does it have to be a string? Since you don't want it to be part of
^ comapring a systems local time with filetime
274815 [gianmh gmail] basically I have to compare the current system time to some filetime's
^ Is it always the norm to skip 'return'?
274820 [tciuro mac.c] I have a question about skipping the 'return' keyword in a Ruby method.
+ 274822 [damnbigman g] Because Ruby lets you be lazy like that. You can put it in if you want but
| 274827 [tciuro mac.c] charset=US-ASCII;
| 274835 [sepp2k googl] Where does it tell you that? I don't get it. hexdigest could return anything,
| 274837 [tciuro mac.c] charset=US-ASCII;
| 274839 [sepp2k googl] As I said in my other message: every method returns something in ruby
| 274846 [x-ruby-forum] But I think it's still a good idea to use return in order to document
| 274857 [greg cyberfu] If you want to use return, use it. The value returned by a Ruby method
| 274858 [greg cyberfu] What I mean to say is the returned value is always going to be the value
| 274869 [renard nc.rr] On Oct 19, 2:10 pm, Greg Donald <g...@cyberfusionconsulting.com>
| + 274871 [x-ruby-forum] You could also just write y without the return.
| + 274934 [bg-rubytalk ] Actually, I'd say the only reason you should use return in a method
| 274937 [tciuro mac.c] charset=US-ASCII;
+ 274824 [jeremymcanal] Ruby always returns the last value used in the method; it's pretty
| 274830 [tciuro mac.c] charset=US-ASCII;
| 274834 [sepp2k googl] In ruby *all* methods return something.
+ 274831 [peter semant] For the simpler methods it does seem to be a waste to put a return in
| 274912 [ news jay.fm] I think that's not true, and you're mistaking the output of "puts" on the
+ 274913 [sean.ohalpin] Why so many Ruby snippets skip the 'return' keyword?
274919 [pergesu gmai] You're doing great up until
274933 [celtic sairy] I concur. There's nowhere that says that functions should have just one
274961 [alex blackke] "AV Rule 113 (MISRA Rule 82, Revised)
+ 274976 [ news jay.fm] Single-exit actually used to be standard practice, back in the days of
+ 275075 [celtic sairy] I think we're both in agreement and not. Particularly, the exception -
^ extendig ruby: defining classes and creating objects from c
274836 [lbertacco ti] I can't manage to define a new class (actually an exception) and then
274843 [nobu ruby-la] rb_exc_raise(oException);
^ block composition?
274842 [aastanti hot] I'm implementing a plain simple search functionality over an array of
274856 [ara.t.howard] why not something simple like
274872 [aastanti hot] - I haven't thought about using a Time range
274904 [sean.ohalpin] def search_from(start)
^ mtime for ftp
274849 [pbailey bna.] I'd like to go to an ftp site and check the dates of available files
275241 [drbrain segm] I don't think every server supports MDTM.
275268 [pbailey bna.] Thanks. I don't even know what MDTM is. It's obviously part of Ruby's
275461 [drbrain segm] Actually, it looks like you're not passing the filename, but are
^ rsruby with rails
274850 [matteo.zandi] I'd like to call R from a rails application. I already installed rsruby
^ Block iteration issues
274853 [sabon go2.pl] I'm struggling with this stuff and can't find an answer so please
274866 [bbxx789_05ss] - assign element["smth"] through element["smth3"] to @ data.set1_smth
^ What's the ruby way of grouping elements of an array?
274867 [sam.s.kong g] I thought this would be a common need but I couldn't find a method.
+ 274873 [Rob AgileCon] # File vendor/rails/activesupport/lib/active_support/core_ext/
+ 274886 [coder68 yaho] If you require 'action_pack' you get group_by() for free
+ 274922 [w_a_x_man ya] It's pretty simple.
| 275018 [m_goldberg a] That's good, but I think the following modification makes it a
+ 275150 [botp delmont] T24gQmVoYWxmIE9mIFNhbSBLb25nOg0KIyBwZW9wbGUuZ3JvdXBfYnkgZG8gfHBlcnNvbnwNCiMg
^ Ruby Hadoop DFS Client?
274868 [bryan.duxbur] Has anyone seen a Ruby client library for the Hadoop distributed file
^ Puzzle...cleaner way to redefine a method?
274870 [mudsweatande] Here's a puzzle. There must be a cleaner way to do this.
+ 274874 [alex blackke] class Thing
| 274897 [ari aribrown] I have to go to dinner now, but here's something quick you should
+ 274902 [sean.ohalpin] maybe this is slightly cleaner in interface (in that you pass in pre and
274905 [sean.ohalpin] Whoops - apologies for top posting
^ the difference between for-loop and each
274875 [andreas_s ho] Hopefully (I'm sure) somebody can shed a light on this. This caught me by s=
274960 [shortcutter ] The reason for the behavior you are seeing is different scoping. "for"
^ the difference between for-loop and each
274876 [andreas_s ho] Hopefully (I'm sure) somebody can shed a light on this. This caught me by s=
274908 [sean.ohalpin] They are not quite the same. for does not introduce a new scope, whereas
^ Re: extendig ruby: defining classes and creating objects fro
274879 [lbertacco ti] Oh, so ruby was looking for a "new" method not on the class but on the
274918 [nobu ruby-la] It's declared in intern.h which is included by ruby.h.
274938 [lbertacco ti] Thank you. Now it works.
274940 [lbertacco ti] VALUE myrb_raise(VALUE exc, const char *fmt, ...)
274882 [bb147 gmx.de] unsubscribe
^ why I can't update data, but I can insert data into new mode
274885 [zlai sina.co] why I can't update data, but I can insert data into new model.
+ 274888 [tmac easystr] charset=US-ASCII;
+ 274915 [renard nc.rr] you did not define 'name'
+ 274916 [renard nc.rr] OOPS!!! my bad
^ Ruby 3D
274889 [user domain.] binding to a good 3D engine ?
+ 274894 [aredridel nb] Ruby's threading model makes some of the techniques used problematic.
+ 275529 [shawn42 gmai] There is a fairly new and active project called ogre.rb
^ JRuby users out there?
274890 [charles.nutt] Hey, we keep hearing about big and small organizations using JRuby, but
274892 [james.britt ] Nice. Rising Tide Software are very satisfied users of JRuby, and I'll
^ Create matrix with random numbers
274891 [jbornhoft gm] I would like to start evaluating Ruby's capabilities in processing large
274895 [caduceass gm] Not sure what you want exactly, but, maybe...
274928 [jbornhoft gm] What I would ideally like is to be able to specify the size of the
274947 [Rob AgileCon] require 'matrix'
^ Building an extension in C++
274899 [gapjunk gmai] I'm using cygwin to try to build an extension in C++. I've stripped
274901 [mental rydia] Although it is not the source of the problem with the shared object
274973 [gapjunk gmai] Thank you mental!!! It works. I should have figured it out myself,
274975 [shortcutter ] That'll probably suffice. You might get a bit better results by
274982 [gapjunk gmai] Thank you Robert! I agree and understand about catching and
275606 [pbrannan atd] Are you compiling with gcc or g++?
276038 [gapjunk gmai] When I type make the line says
276060 [nobu ruby-la] mkmf.rb in 1.8 doesn't support C++.
276260 [gapjunk gmai] Thank you Nobu!!! Your a genius!
274903 [hacker.herub] #help
^ capture code in a block
274906 [kristoph gma] Greetings,
274921 [konrad tyler] charset="iso-8859-1"
274990 [kristoph gma] Konrad,
^ memory corruption
274926 [rogerpack200] Wondering if anybody's had memory corruption with mingw before. This
274949 [rogerpack200] This line turned out to be the culprit. Rmagick on mingw still had a
^ 1.9 Prime class change request
274929 [erlercw gmai] In mathn.rb, please remove the method Prime.cache and its aliases,
275043 [drbrain segm] ruby-core is the best place for this kind of discussion.
^ iterating through a block; declaring an index/counter within that block
274932 [hawat.thufir] Where does "food" come from in the example below? The declaration is
274935 [bbxx789_05ss] That thing on the right of each, between the braces, is a similar to a
^ Why's (Poignant) Guide to Ruby (is this guy ok?)
274936 [williams.jay] Recently, I was looking for a Ruby guide that could help my son catch
+ 274950 [perrin apoth] He's okay with me. I won't speculate about his mental health, though,
+ 274951 [hawat.thufir] If you like the book, see <http://tryruby.hobix.com/>, by the same
+ 274984 [williams.jay] The website says he is a "freelance professor". Is that like a self
| + 274987 [rick.denatal] You might ponder http://en.wikipedia.org/wiki/Why_the_lucky_stiff
| | 274998 [rick.denatal] But then Matz isn't the one being psychoanalyzed! <G>
| + 275005 [tim.pease gm] If you enjoyed _why's book, then take a glimpse into his everyday life
| 275019 [devi.webmast] I don't know about all his work, but hpricot is fantastic and popular.
| 275021 [phlip2005 gm] The specific deal with Hpricot is nobody wants to parse and write HTML that
+ 275124 [reid.thompso] ...
275125 [reid.thompso] ...
^ ANN: Sequel 0.3 Released
274941 [ciconia gmai] Sequel version 0.3 has just been released. This release includes
^ Why don't we have "C" machines? (was Re: [OT] Re: Should *most* memory be release back to the system?)
274942 [znmeb cesmai] You're right ... memory management technology (hardware or OS) hasn't
275118 [hramrach cen] Actually routers aren't that smart either. IP succeeded because it
+ 275163 [fxn hashref.] ...
| + 275192 [hramrach cen] Thanks for the replies, looks like I have really missed some recent stuff here.
| | 275237 [Joerg.Mittag] Also, one of the first backends for the PyPy Python implementation
| + 275225 [znmeb cesmai] Yet another reason not to learn Haskell. :)
+ 275170 [martindemell] One of the examples in the OCaml book is a small Basic interpreter.
275223 [znmeb cesmai] Both are really Lisp 1.5 with some simple core semantics changes and
275227 [fxn hashref.] In what sense? I don't think Lisp is mostly functional nowadays any
275329 [znmeb cesmai] I'm not sure what "multi-paradigm" means, but Lisp 1.5, Common Lisp and
275463 [perrin apoth] I think, in this context, "multi-paradigm" is intended to mean
+ 275466 [ysantoso-rub] Strictly speaking, Scheme does not have nil. It has empty list, (),
| 275468 [perrin apoth] Thanks. That makes a lot more sense to me.
+ 275476 [flori nixe.p] I think you misunderstood the sentence. In Lisps nil is the empty list
+ 275541 [znmeb cesmai] Well, then, every Turing-complete language is multi-paradigm, right? The
275554 [fxn hashref.] When I mentioned multi-paradigm there was a response to someone