324046-328182

323881-326028 subjects 324199-327836

^ Re: scRUBYt! 0.4.1
324046 [jzakiya gmai] d!

^ Anyone knows this warning?
324047 [youhaodeyi g] I have checked the SOMEDIR and its permission mode is 777. Does anyone
+ 324052 [b.candler po] 7   7   7
| 324054 [youhaodeyi g] why does ruby check its permission? I do want this path writable. how
| + 324059 [b.candler po] Because not heeding this warning is approximately the same as posting
| + 324107 [driodeiros g] Why not? Ruby is letting you know that something bad can happen.
+ 324112 [tim burlyhos] World read, write and execute is a bad thing if you're on a shared
+ 324140 [ryan endpoin] I understand that you want this directory to be world-writable, so this

^ Bug with Ruby/Tk  encoding (ruby-1.9.1-rc1)
324055 [Maurice.Diam] Bonjour =E0 tous,
324110 [nagai ai.kyu] I can't regenerate the error.
324219 [Maurice.Diam] uired)>'
324220 [nagai ai.kyu] I see.
324338 [nagai ai.kyu] It may be abnormal. However, Ruby/Tk will rescue it.
324382 [Maurice.Diam] comp.lang.ruby
324677 [nagai ai.kyu] Please use Tk::TK_PATCHLEVEL

^ SystemStackError
324062 [markonlinux ] What is a SystemStackError?
324068 [shortcutter ] robert@fussel ~

^ Order notes starting at C thru B rather than A thru G
324064 [toastkid.wil] Say i have a bunch of note objects, which have a 'name' string, eg 'A'
324066 [b.candler po] Define a <=> operator in your class.
324067 [toastkid.wil] thanks!
324070 [shortcutter ] An alternative approach is to do

^ Implementation of Aggregation and Composition
324069 [dendicus gma] I would like to implemente the "Aggregation" - as in
+ 324072 [shortcutter ] class Foo
+ 324075 [b.candler po] Wikipedia says that Composition is where a structure directly includes
  324077 [tjnogueira o] It's right. And , dont worry , but probaply  you can not implements some
  324089 [b.candler po] Depends what you're talking about. Certainly some "design patterns" for
  324092 [tjnogueira o] Exactly.The fact of some patterns be irrelevant in ruby is one of some
  324094 [siss.cy gmai] Many thanks, Robert Klemme and Brian Candler! Now I see how to process!

^ [ANN] Rack 0.9, a modular Ruby webserver interface
324073 [chneukirchen] Today we are proud to release Rack 0.9.
324076 [charles.nutt] Pretty much all the JRuby-based deployment options support Rack through

^ add 10 minutes to parsed time stamp?
324079 [mmc_collins ] How can I add 10 minutes to this time stamp? Thanks. MC
+ 324081 [shortcutter ] Here ServerTime is a String and hence cannot do any time related
+ 324082 [Rob AgileCon] First of all, Ruby treats names beginning with an uppercase letter as
  324276 [jarmo.p gmai] irb(main):001:0> require 'active_support'
  324277 [Rob AgileCon] Since the OP thoughtfully asks this question in the Ruby list and not
  324279 [jarmo.p gmai] Of course if s/he doesn't want it then s/he won't use it. I didn't try
  327020 [u.alberton g] You're not forbidden to talk about other libs. It's just that there
  327096 [mark thomasz] It can be argued that ActiveSupport is not Rails. For example, I often
  327161 [rick.denatal] I've done the same myself, but...

^ non-blocking gets in Windows
324084 [king_duckz y] but I was wondering if anyone came up with a workaround or something.
324096 [billk cts.co] I believe this works in ruby 1.9.1, now that native threads are used.

^ Novice question about rdoc
324087 [blambeau gma] I've got a stupid problem with rdoc, and I don't find any answer on
324090 [b.candler po] #   Rebuild the rdoc files from scratch, even if they are not out
324176 [ryand-ruby z] *nod*

^ method def
324095 [anita saturn] def active=(val)
324215 [rogerpack200] looks like you know what you're doing.  What context is this?

^ Can I return the value of val with: def active=(val)?
324098 [anita saturn] How to return the value of val?
+ 324100 [TimHunter nc] rb(main):009:0> class Foo
+ 324101 [gwtmp01 mac.] It isn't clear what you are trying to accomplish.  In your example,

^ Newbie automation testing web services with ruby
324099 [lucasdavidwi] First post on this group and I hope you guys are as helpful as the
324216 [rogerpack200] You could try soap4r or try and custom brew you own I suppose...

^ Simple Regexp help
324102 [zmanods hotm] How can I test a word to make sure it ONLY contains certain characters?
324103 [tim burlyhos] If you only want a-z, set the character class to start and end the
+ 324105 [s.korteling ] You can also test for the opposite, anything not in the range a-z.
+ 324118 [shortcutter ] irb(main):001:0> s = "foo\n"
  + 324156 [zmanods hotm] Robert thanks \A and \z is what I was looking for.
  | 324162 [jgabrielygal] \A matches the beggining of the string and \z matches the end of the string.
  + 324168 [tim burlyhos] Not knowing exactly what the OP wanted, it was only a quick example, so

^ unsubscribe
324108 [nolanmeng gm] unsubscribe

^ unsubscribe
324109 [nolanmeng gm] unsubscribe

^ difference between *options and options
324111 [sijo maxxion] I saw below code
324113 [justincollin] This code might be a little deceptive, but if you look closely

^ Could not understand this: 3.class is Fixnum or Class
324114 [sentinel.200] I stored the class of a variable in a variable and later checked in a
+ 324119 [botp delmont] RnJvbTogUnVieSBSYWJiaXQgW21haWx0bzpzZW50aW5lbC4yMDAxQGdteC5jb21dIA0KIyBjPTIz
+ 324121 [stefano.croc] The case expression uses the === operator of the objects in the "when"
| 324124 [sentinel.200] Thanks. Actually both replies side step the issue I have at hand.
+ 324123 [justincollin] Case statements do not use the equality operator (==), they use the

^ wot is the syntax of form tag?
324120 [itismohsinal] wot is the syntax of form tag?
324130 [b.candler po] Posted via http://www.ruby-forum.com/.

^ what would be the easiest/fastest way to convert Hash keys
324122 [jarmo.p gmai] I was wondering, what would be the easiest and fastest way to convert

^ A question about running external program
324125 [youhaodeyi g] output=`uname -r | sed 's/\([^\.]*\.[^\.]*\)\.*.*/\1/'`
+ 324128 [justincollin] The sed command is not being ignored. The issue is that the backticks
| 324137 [b.candler po] I think that's not quite right, because \\1 is still converted into a
+ 324129 [b.candler po] That's not a smart question.
+ 324135 [albertschlef] Instead of strugling with shell-escaping, you can do the regexp part in

^ a good career choice ?
324127 [waterinmylun] been trying to find a job doing HTML and CSS or Flash, but to no
+ 324133 [wbsurfver gm] What was your BS in ? Are you a CS major ?
| 324136 [wbsurfver gm] I should also say that basicaly Rails makes it easier to hook in
| 324172 [tim burlyhos] In response to that, C and C++ are older than Perl and are always going
| 324272 [wbsurfver gm] There are some perl modules around that maybe do some things ruby
| 324285 [tim burlyhos] At this point, most language debates come down to opinion and
| + 324292 [0limit rock.] c++ /java -vb-will get you work always
| | 324305 [tim burlyhos] <top posting fixed>
| + 324317 [wbsurfver gm] There will be work in perl for many years no doubt, before I found
|   324320 [tim burlyhos] Your entire response is based on your own opinions.  I don't recall care
|   + 324319 [tim burlyhos] Wow, I can't type at all today.
|   + 324324 [wbsurfver gm] It's my opinion when I am an employee, when management makes a
|   | 324332 [tim burlyhos] You said you wouldn't want to work with a company that developed new
|   | 324708 [albertschlef] 13 years ago I was programming in Perl (v5). I loved it. Until I had to
|   | 324709 [tim burlyhos] Honestly, I'm okay with people not liking one language over another.  As
|   | 324712 [albertschlef] I was referring to the \*HANDLE syntax. I didn't understand it. At that
|   | + 324713 [albertschlef] Oops, pardon me. I didn't notice your name too is Tim. I was referring
|   | | 324715 [tim burlyhos] No, no, that's me... (just kidding).  I thought you were being humorous.
|   | + 324714 [tim burlyhos] Perl's OO isn't that great, still, and definitely wasn't back then.
|   + 324325 [list.rb gmai] Too long, didn't read
|     + 324333 [tim burlyhos] So, you "top post" in reply and quote the entire text that was "too long
|     + 324388 [rhkramer gma] Well, I'm glad you quoted the whole thing, at least. ;-)
+ 324134 [fox nscl.msu] Better job?  Well what sort of job is your ideal?
+ 324171 [synfinatic g] Finding a job right now is hard- especially for entry level positions,
+ 324703 [coder68 yaho] Ryan,

^ Strange behavior with a little racks app in thin
324131 [kazaam oleco] # test.ru
324138 [b.candler po] Are you sure the right-hand side should be quoted? Look at the actual
324141 [kazaam oleco] $ telnet 127.0.0.1 3000
324225 [b.candler po] Ah, then thin doesn't like numbers as header values.

^ How does MP4 encoding work ?
324132 [wbsurfver gm] I am curious on how MP4 files are encoded and why is it that I can

^ Replace HTML Problem
324142 [michael.d.va] I am using the in_place_editor_field method with scriptaculous and I am
324214 [rogerpack200] Not quite sure [might want to ask in rails group] but my first suspect

^ Re: Changing date backward messes up threaded sleep
324143 [eclubb valco] For the record, this is not an issue with ruby 1.9.1.  The native

^ Puzzling behaviour with range...
324147 [raphael.clan] I've been over (some of) the documentation, and I can't figure this one
+ 324148 [stefano.croc] The point is that 1..4.class is parsed as 1..(4.class), that is 1..Fixnum
+ 324151 [sepp2k googl] Two values that are comparable to each other.
  324158 [raphael.clan] Thanks for the reply!
  + 324160 [acooper prit] Well it all comes down to the principle of least surprise in the end,
  | 324237 [davebass mus] Well, at least one of us likes parentheses.
  + 324180 [shortcutter ] What you call "assumptions" is actually "precedence".  The syntax of the

^ Multiple commands in shell
324149 [gustav vonsy] I'm trying to run multiple commands in the shell from ruby but I can't
+ 324153 [sepp2k googl] system "cd /dir; ls"
| 324166 [gustav vonsy] Works great. Thanks a million!
+ 324154 [badboy heart] Ruby provides excellent classes for this called Dir and File (and maybe
+ 324167 [dusty.doris ] [dusty@dustylaptop:~] $ pwd
| 324181 [shortcutter ] Here's another way to do it using a here document by having multiple
+ 324169 [thopre gmail] two seperate calls do not work because every system-call creates a new

^ ruby mysql error
324150 [almigo10 gma] and whenever I run the server and it tried to hit the DB, I get the
+ 324213 [rogerpack200] one click installer
+ 325807 [iprash gmail] ok, i had this problem and solved it.
  326332 [nickcwebb8 g] Brilliant! I have been struggling all evening with this problem, and
  327853 [azimuth-ruby] => Booting WEBrick...
  328182 [rogerpack200] the suggestion above was to install mysql 5.0.x

^ Beginner Help -- Txt game
324178 [ezrickknight] Last time I posted here I was delightfully surprised at the
324258 [Aldric Giaco] It doesn't look too bad from my point of view (but I've only been coding

^ tictactoe and choice
324183 [kerny404 gma] I was trying to code the classic tictactoe in ruby.
324197 [lists aquott] You should add a call to srand before the call to random_play. It
324221 [kerny404 gma] Thanks a lot now it's working pretty nicely
324223 [jgabrielygal] # board = []
324243 [kerny404 gma] On 8 Gen, 10:09, Jes=FAs Gabriel y Gal=E1n <jgabrielyga...@gmail.com>

^ Libraries that need a new home
324184 [djberg96 gma] As many of you know, Guy Decoux passed away last year. Consequently,
+ 324202 [tim.pease gm] Ara and I had a conversation about this last month. I've adopted the
| + 324245 [djberg96 gma] Excellent, thanks Tim.
| + 324540 [djberg96 gma] Excellent, thanks.
+ 324244 [transfire gm] If no one else wants to do it, I can maintain a project for the bzip2
  324246 [djberg96 gma] Please do. Where will you be hosting so people can find it?
  324250 [transfire gm] I'll set up a Rubyforge project.

^ Creating custom lib/tasks folder for rake files?
324185 [ethergraphic] How can I setup my own lib/tasks folder (similar to rails) so that all
+ 324186 [robertrevans] Add your rake tasks to lib/tasks and they should automatically be
+ 324187 [chris.lowis ] Something like this at the top of your Rakefile, perhaps?
+ 324188 [hassan.schro] `rake --help` is pretty informative :-)

^ functional programming
324194 [fbogdanovic ] I'm starting to learn functional programming with Ruby.
+ 324207 [phlip2005 gm] Wouldn't learning OO programming in Haskel be easier?
| 324228 [fbogdanovic ] I know Ruby programming well but I wanted to add funtional paradigm in my
| 324234 [b.candler po] If you know Ruby well - and you obviously understand functional
| + 324268 [znmeb cesmai] Well then ... just as "it's possible to write FORTRAN programs in any
| | + 324273 [pjb informat] Common Lisp.
| | | 324378 [deanwampler ] And Scala (if you like static typing - gasp! ;), OCaml and F# (I believe).
| | + 324310 [b.candler po] I did mean half the speed, i.e. OCaml is slower.
| |   324617 [w_a_x_man ya] Don't take Ed seriously.  You will find that he never posts any
| |   324620 [znmeb cesmai] Not to the mailing list ... but to RubyForge :)
| + 324604 [w_a_x_man ya] src = {:one,1, :two,2}
+ 324263 [list.push gm] Since you are using Ruby, here is one Ruby way;
+ 324280 [fbogdanovic ] Thank you guys for your answers. Ruby is my favourite language mostly
+ 324312 [pjb informat] You would have first to define the concept of list.  Indeed, the other
| + 324339 [mike.gold.44] I like how you sneaked in the parentheses.  It's a clever way to get
| | 324615 [w_a_x_man ya] There you have it.  Hierophants of Commune Lisp are utter irrational.
| | + 324618 [w_a_x_man ya] utterly
| | + 324619 [mike.gold.44] Ironically, a distinguishing characteristic of zealotry is the
| + 324351 [fbogdanovic ] In Ruby everything is an object. That's my favourite Ruby's feature. And you
| | 324359 [pjb informat] In Lisp too, everything is an object.  But there are several kinds of
| | 324362 [fbogdanovic ] I meant, every expression is an object. Not sure that's the case with clisp.
| | 324380 [pjb informat] Expressions, in ruby are nothing.        Expression in lisp are objects.
| | 324496 [fbogdanovic ] So you want to say that common lisp is pure object oriented like ruby ?.
| | 324500 [pjb informat] Well, beside being multiparadigm, yes, Common Lisp includes the best
| + 324606 [w_a_x_man ya] You have certainly proved that everything is 10 times as hard
|   324629 [pjb informat] No, you're wrong.  All the above code IS RUBY!
+ 324353 [fbogdanovic ] [1,6,4,7,8].inject {|a,b| if a < b then a else b end}
| 324363 [pjb informat] One difficulty is that vectors are difficult to handle with purely
| + 324366 [kerny404 gma] Very interesting discussion, I love ruby and I love also haskell,
| | + 324368 [fbogdanovic ] Only the bits of a program that are appropriate for that.
| | + 324375 [james graypr] That's a great question.
| | + 324381 [pjb informat] Who cares about processing time?  The processors are faster and faster
| | | 324390 [b.candler po] Perhaps most importantly, Ruby doesn't optimise tail recursion (although
| | | 324472 [mike.gold.44] Pascal was making a simulation of first-class functions in ruby.  The
| | | + 324474 [b.candler po] For the benefit of this duffer, could you briefly explain the
| | | | 324479 [mike.gold.44] It has already been shown.  You need to make a sincere effort to
| | | | + 324490 [b.candler po] You mean this bit?
| | | | | 324498 [pjb informat] That's because Matzacred lisp lacks macros, because it's not an homoiconic
| | | | | + 324502 [b.candler po] No. I was trying: (1) to understand what the underlying problem was that
| | | | | | + 324513 [pjb informat] lambda makes an anonymous function. I didn't want to use an anonymous
| | | | | | | + 324521 [b.candler po] But you can store the lambda under a name. My knowledge of Lisp is very
| | | | | | | | 324524 [pjb informat] This is Scheme, not Lisp.  Scheme is a lisp-1, not a lisp-2.  In Scheme,
| | | | | | | | 324552 [b.candler po] plus4.call(2), or more briefly, plus4[2]
| | | | | | | | 324602 [mike.gold.44] Can you give an example of where the difference is "very useful"?  In
| | | | | | | | + 324603 [mike.gold.44] I see this is a bad idea due to the cases where the lambda is not a
| | | | | | | | + 324674 [b.candler po] 10.times { |x| puts x }
| | | | | | | |   324721 [mike.gold.44] If by "roughly" you mean "not", then yes.  Blocks are not lambdas, they
| | | | | | | |   324729 [pjb informat] The reason is because Ruby is a lisp-2.  The same name can be used to
| | | | | | | |   324785 [mike.gold.44] No, that's not the reason.  It is because Ruby allows method invocation
| | | | | | | |   324838 [pjb informat] It wouldn't matter if we had not to distinguish calling a named
| | | | | | | |   324843 [dblack rubyp] f = lambda {}
| | | | | | | |   324852 [pjb informat] It's clear, f() calls the def f.
| | | | | | | |   + 324853 [dblack rubyp] Right -- that's my point :-) I thought that you were suggesting the
| | | | | | | |   | 324900 [pjb informat] No such suggestion.  It's just a classification. You have languages
| | | | | | | |   + 324872 [gwtmp01 mac.] (f())()
| | | | | | | + 324532 [pit.capitain] def foo(x)
| | | | | | |   324535 [pjb informat] Ok.  Last time I tried, I got confusing results.
| | | | | | + 324600 [mike.gold.44] mean = lambda { |*args|
| | | | | |   + 324605 [vjoel path.b] mean = lambda { |ary|
| | | | | |   | + 324609 [w_a_x_man ya] mean = proc{|a| a.inject{|s,x| s+x} / a.size.to_f }
| | | | | |   | | 324621 [dblack rubyp] I believe that's the same as what Joel just posted (give or take some
| | | | | |   | + 324613 [mike.gold.44] Sure, you can solve a different problem than the one I gave.
| | | | | |   |   + 324623 [vjoel path.b] Sorry, I may not have followed the discussion very well.
| | | | | |   |   | 324625 [mike.gold.44] 'mean' stands for anything.  I should have called it 'some_func'.  You
| | | | | |   |   | 324627 [dblack rubyp] Can you give an example of the kind of meaning-changing you mean --
| | | | | |   |   + 324630 [pjb informat] Lisp is not like that.
| | | | | |   |     324644 [mike.gold.44] I had hoped it was a given that nothing can be done to actually make
| | | | | |   + 324672 [b.candler po] OK, I think I see what you're getting at. You've written a lambda with a
| | | | | |     + 324697 [pjb informat] At the function definition site, it's the same, you can decide whether
| | | | | |     + 324723 [mike.gold.44] This is another repeat of previous comments by others in this thread.
| | | | | |       324725 [gwtmp01 mac.] And I suspect that programming in an object oriented manner is probably
| | | | | |       324728 [mike.gold.44] Yet I have found small-scale use of functional concepts to be useful in
| | | | | |       + 324743 [b.candler po] I don't think you'll find any disagreement there. One of the things I
| | | | | |       | 324787 [mike.gold.44] But the different languages shape the thought processes.
| | | | | |       | 324828 [b.candler po] Of course - and dabbling with Lisp and Erlang have undoubtedly been
| | | | | |       + 324800 [gwtmp01 mac.] charset=US-ASCII;
| | | | | |         324808 [mike.gold.44] I pointed you to the post where I called the idea silly.  Are you
| | | | | + 324607 [w_a_x_man ya] foo = proc{|x| "#{x.size} items: #{ x.join ' & ' }" }
| | | | + 324497 [shortcutter ] Frankly, I find this reply of yours at least unhelpful if not hostile
| | | + 324482 [martindemell] There are two, not-really-identical things that people mean when they
| | |   324499 [pjb informat] The interest of writting purely functionnal code is not relative to a
| | + 324616 [robert.dober] Yes or let us say you will be wrong very soon :).
| + 324367 [fbogdanovic ] I would like if this sort could be made of Ruby functions; inject,select,
|   324614 [w_a_x_man ya] def merge list1, list2, &less
+ 325023 [fbogdanovic ] I started to learn Common Lisp and I saw that it is a great language.
  325042 [pjb informat] Good, go on! :-)
  325044 [mike.gold.44] define_method lets you implement objects using locals bound to a
threads.html
top