268226-274013

267990-282604 subjects 268421-269486

^ Training on the west coast?
268226 [nubyruby gma] Are there any good training offerings coming up on the west coast, ideally
268281 [ara.t.howard] doug fales and i offer custom ruby and rails/ruby courses.  we're in
268448 [nubyruby gma] Unfortunately, it's safe to say that our budget is small enough, that we're

^ Re: simple way to encapsulate class << self ; attr_accessor
268230 [nbitspoken c] Giles,
268279 [logancapaldo] Arrows? What arrows? Those are bitshift operators.
268745 [nbitspoken c] The point is that in this particular case, syntax doesn't just fail to

^ What's the good book for ruby beginner and where can I find a ruby project?
268231 [gchen mathwo] I am a beginner of ruby. Can someone tell me what's the best book for the
+ 268232 [aotianlong g] programming ruby second edition.
+ 268233 [TimHunter nc] This has been the subject of a recent long thread. Look for the thread
| 268238 [m_goldberg a] Here is a URL for that thread: <http://www.ruby-forum.com/topic/123519>
| 268344 [chrisgame ex] Something that detailed how to put ruby, GTK2 and something like
+ 268239 [ja_bowen yah] For a none programmer like myself I found "Beginning

^ The scope of local variables -- where are they?
268234 [celtic sairy] I'm wondering -- where /is/ the scope of local variables? Is there any
+ 268236 [bermonruf gm] I wanna know how to do it so. Some method that receive a simple, just like
+ 268240 [shortcutter ] foo = 10
  268241 [bermonruf gm] I know I can user defined? to test if they are defined, but is there any way
  268304 [logancapaldo] No (except for eval). What do you want to acheive? Whatever it is,
  268311 [ttmrichter g] One use I could see for reflection on local variables is debugger
  268335 [logancapaldo] That's a pretty good example :) (we do have local_variables, but's

^ [ANN] TextualRegexp 1.0.0 Released
268250 [ari aribrown] TextualRegexp version 1.0.0 has been released!
268256 [botpena gmai] heheh. cool. I could have named it TRex though :)
268258 [ari aribrown] Oh, and don't forget -
268261 [dangerwillro] Interesting.

^ [ANN] macaddr-0.0.1
268262 [ara.t.howard] NAME
+ 268273 [bulliver bad] This is too perfect, I was just going to start looking for some code to find
| 268278 [ara.t.howard] funny ;-)
+ 268295 [list.rb gmai] Thanks Ara..
  268297 [ara.t.howard] programs like 'ifconfig' dump out mac addrs in some order - i have no
  + 268302 [list.rb gmai] Actually, it does work. It looks like windows lists the interface assigned
  + 268443 [botp delmont] # Mac.addr            #=> the first address seen in the output

^ [ANN] mms2r 1.1.9 Released
268266 [mikemondrago] mms2r version 1.1.9 has been released!

^ NT Emacs, Cygwin Ruby, and M-x run-ruby
268271 [hiheelhottie] Has anybody gotten NT emacs, cygwin ruby, and M-x run-ruby to work?

^ Fwd: Ruby Quiz Submission [resent in plain text]
268276 [james graypr] ...

^ deleting an item with ajax
268285 [indiehead gm] the form_remote_tag, however don't know how to delete an item from the
268329 [shaiguitar g] ..no, the item was destroyed, but when it tried rendering the partial
268338 [indiehead gm] Thanks Shai, I spent a bit last night going through all my rails books
269920 [indiehead gm] sorted...

^ Webrick ?
268291 [      (none)] I try to use webrick, but I can not find much documentation about it. I
+ 268300 [onepoint sta] webrick.org seems to have disappeared from the DNS.  Does anyone know
| 268328 [      (none)] Thank you for your answers and the links ; I already knew Gnome's guide,
| 268333 [onepoint sta] Interesting!  Maybe a Japanese speaker could phone them and ask why
+ 268301 [smasta earth] The last avaliable mirror of webrick.org at www.archive.org
  268327 [      (none)] Thank you for the archive link ; I will check the avalaible informations

^ Gem Update Problems
268292 [btrichardson] I'm having problems using gem.  I'm on Ubuntu Feisty, and when I try
+ 268293 [jarvo88 gmai] How long have you waited? I had to wait quite some time..
| 268347 [btrichardson] Thanks for responding.  I've waited upwards to an hour while watching it
+ 268455 [drbrain segm] How much memory do you have?
  268462 [mailing.mr g] you have less then 0.5gb ram, poblem is poor implementation of gem tool,
  268567 [drbrain segm] No, it takes about 120MB of RAM for a full index update.

^ how to fix assigns(:user) on controller test
268305 [zlai sina.co] Thank you for your help!
268319 [filefrog gma] Are you using fixtures for your tests?  (I assume you are, from the
268394 [zlai sina.co] user_name:asb
+ 268397 [filefrog gma] Therein lies your problem.  You don't have a data item in your
+ 268399 [Rob AgileCon] assert_equal 'newpassword', assigns(:user).password
  268406 [filefrog gma] I can't believe I completely missed the point of this post.  No more

^ [ANN] launchy 0.3.1 Released
268306 [jeremy hineg] launchy version 0.3.1 has been released.

^ Bug in lambda?
268307 [kevin.cline ] This looks like a pretty serious bug.  It seems that lambda-
+ 268308 [wilsonb gmai] This is the expected behavior of Ruby 1.8.
+ 268309 [logancapaldo] Not a bug, it's a "feature". I don't like it either.
+ 268310 [konrad tyler] charset="iso-8859-1"
| 268313 [bermonruf gm] In 1.9 it won't be able to access local scope?
| 268334 [logancapaldo] a = 1
+ 268323 [dblack wobbl] Definitely not a bug. Block parameters use assignment semantics, with
  + 268337 [dolgun excit] I guess you didn't read p. 51 of "Programming Ruby (2nd Ed)".  You can
  | + 268339 [dolgun excit] Whoops.  Methods, methods.....
  | + 268340 [dolgun excit] $z = 100
  + 268351 [bermonruf gm] I think it shouldn't be changed too...
  | 268352 [logancapaldo] I just think it has icky semantics.
  | 268368 [wilsonb gmai] This one is my favorite.
  | 268384 [dblack wobbl] Hey, nothing wrong with that -- it's just like
  | 268385 [wilsonb gmai] I agree, except for the fact that assignments are relatively static,
  | 268386 [dblack wobbl] I've never used h[:x] as a block parameter. That is a bit exotic, and
  | 268390 [wilsonb gmai] I would be OK-er with this if method arguments obeyed the same rules.
  | 268391 [dblack wobbl] It's definitely different from method-param semantics. It's never
  | 268410 [wilsonb gmai] I was referring (poorly) to the fact that lambdas enforce arity but
  + 268429 [w_a_x_man ya] Does this mean that you and Guy and Matz smoked
  + 268485 [shortcutter ] Now I'm curious: how often do you have use for this feature?  I mean,
    268498 [dblack wobbl] I don't think so, but part of the problem for me is that there's no
    + 268520 [wilsonb gmai] I think that the original poster was worried that this script would
    | 268562 [shortcutter ] What output would you prefer?  I don't see how this can print "7" if
    | 268638 [botp delmont] # Actually the original issue was different IIRC, because the block was
    + 268563 [shortcutter ] Ah, ok.  I suspected you had some cool usage for this which I overlooked
      + 268569 [logancapaldo] I note no one has addressed my concern. I feel like there's an
      | + 268613 [dblack wobbl] Do you mean the thing about recursive blocks?
      | + 268615 [shortcutter ] I only see an otter. :-) I can see how block parameter's scoping rules
      + 268639 [botp delmont] # > I don't think so, but part of the problem for me is that there's no
        268648 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
        + 268654 [ news jay.fm] Jay
        | 268889 [dchelimsky g] Brilliant! Way to climb the ladder Megan!
        + 268707 [logancapaldo] It's not though. It's _almost_ like an assignment to x, except when
          268744 [shortcutter ] Actually I believe David is right.  It *is* just an assignment to x
          268816 [logancapaldo] I'm pretty sure everything you said is factual. I still think it's wrong.

^ net/http and binary files
268314 [costi aplusc] I'm using the code from the example
268315 [no spam.plea] The example works on *nix systems, but on Windoze, you must write the
268417 [costi aplusc] Wonderful. Forgot about that... Thank you.

^ module_function :func  vs. MyModule.func?
268316 [dolgun excit] module MyModule
+ 268317 [dolgun excit] module MyModule
| 268318 [dolgun excit] On p. 355 of "Programming Ruby (2nd ed)", there is the equivalent of
| 268320 [filefrog gma] I believe the primary different shows up when the module is included
| 268321 [dolgun excit] module MyModule
| 268325 [filefrog gma] If you look at my code, the MyClass definition creates an instance
| 268331 [dolgun excit] As far as I can tell, your private hello method is irrelevant since you
| 268354 [filefrog gma] If you look back at the original code posting, there were two test
+ 268326 [transfire gm] module MyModule
| 268332 [dolgun excit] Thanks for the response.  Unfortunately, you're speaking a language I
+ 268336 [logancapaldo] module_function is used to help give us namespaces. The most visible
  268343 [dolgun excit] module MyModule
  268468 [botp delmont] On Behalf Of 7stud --
  268478 [dolgun excit] module Test
  268589 [botp delmont] # 1) When the Test module isn't included in order to avoid
  268756 [dolgun excit] (I guess I won't--it's too long)

^ Solving the Zurg puzzle in Ruby
268322 [paul 82ask.c] I recently got distracted by the Escape from Zurg puzzle - a problem
+ 268345 [matthewrudyj] yeah,
| 268500 [paul 82ask.c] Thanks Matthew :-) The thing that impressed me was that what felt like a
| 268515 [noah.easterl] I agree, a very nice solution.  The one aspect you missed out on is
| 268522 [paul 82ask.c] Ah - of course! That makes perfect sense. Thanks Noah.
+ 268555 [lojicdotcom ] Yeah, thanks for distracting me too :) I'm too much of a sucker for
  268582 [lojicdotcom ] I reviewed Paul's solution again, and I like his use of blocks. My
  268587 [lojicdotcom ] I was curious about efficiencies, so to stress the program a bit more,
  268620 [paul 82ask.c] Brian,
  268649 [fred 82ask.c] Replacing
  269245 [paul 82ask.c] who.max {|a, b| a.time <=> b.time}.time

^ ANNOUNCE: Fantasdic 1.0-beta4 released
268342 [mblondel gma] I've just released Fantasdic 1.0-beta4.
268353 [aotianlong g] support!

^ Run UNIX command
268346 [pieter.jongs] I'm looking for a way to execute an UNIX command from a ruby program.
+ 268348 [fwmailinglis] charset="us-ascii"
| 268350 [pieter.jongs] Thank you!
+ 268349 [TimHunter nc] There's a variety of ways to do that, depending on your needs. The
| 268602 [bigboss64 ip] Since the question has been answered, I'd like to pipe in my own two cents.
| 268605 [konrad tyler] charset="iso-8859-1"
| 268682 [fixxie.wits ] in terminal on a mac you just open it and type
+ 268689 [jonas onda.c] irb(main):042:0> `date`

^ [ANN] openobject-0.0.1
268357 [ara.t.howard] NAME
268469 [botp delmont] #      config = openobject do

^ Hash
268362 [rongreen1 ma] What is the purpose of string hash? What would you use it for?
268363 [phlip2005 gm] Run "another test".hash - you get a different number.
268365 [marcel verni] It should be noted though that String#hash isn't garaunteed to be
268367 [rongreen1 ma] Then,again I ask, what is it good for?
+ 268369 [phlip2005 gm] Then I answer again: A tutorial on data structures tells how to use them.
+ 268371 [peter peterc] It's still useful as a hash. Marcel wasn't wrong, but *no* fixed size hash
| 268374 [rongreen1 ma] Peter,
| + 268377 [konrad tyler] charset="utf-8"
| + 268378 [alex blackke] In general, you wouldn't use String#hash, although you might conceivably
| | + 268380 [rongreen1 ma] I think I understand. In other words it's not something I would use
| | | + 268400 [rongreen1 ma] Thanks Bill.
| | | + 268495 [lionel-subsc] You could. Hashes are mainly used to restrict the set of objects you
| | + 268430 [ssmoot gmail] I might suggest you should *never* overwrite String#hash, though you
| |   268591 [rick.denatal] No, just the other way around.  Two object which are equal should have
| + 268388 [michael.bevi] No hash function is guaranteed to be unique for all inputs.  I don't know
|   268414 [rongreen1 ma] When I said it couldn't be used for identity I meant if you can't
|   268419 [phlip2005 gm] You don't need uniqueness. The hash did its job when you can almost
|   268420 [rongreen1 ma] Thank you.
|   268424 [lopx gazeta.] a class whose instances have always the same #hash and #eql? which
|   268432 [ssmoot gmail] Excellent! Thanks! I don't know if I've ever seen it explained so
+ 268376 [mailing.mr g] It's for internal use, it's used in Hash to make accessing and finding

^ Re: openobject-0.0.1
268364 [transfire gm] Hey dude, the name OpenObject is straight from Facets. And except for
+ 268372 [ara.t.howard] suggestions?
| + 268379 [logancapaldo] Merge the two projects! ;)
| | 268381 [ara.t.howard] they are actually quite a bit different - otherwise not a bad idea.
| | 268827 [transfire gm] I don't see a great deal of difference between Ara's openobject and
| + 268395 [Bil.Kleb NAS] Aren't they both namespaced?  If so, where's the collison?
|   + 268402 [ara.t.howard] who is this 'namespaced' you speak of?
|   + 268404 [logancapaldo] I don't think google understands ruby namespaces, when I go searching
+ 268715 [steven lumos] For that matter, there are at least two others?
  + 268716 [logancapaldo] In retrospect I'm surprised there aren't more.
  + 268717 [shevegen lin] Brainstorming! Sorry, I have to add #comments :)
  + 268823 [transfire gm] calibre-openobject is an older version of openobject. All the calibre-

^ How to get the Client IP address with webrick
268375 [saliktheblan] I need to ensure that the user who has sent the request is the localhost
268489 [shaiguitar g] ... i don't know how to do this via webrick, but u find out the

^ Custom Packets
268382 [ari aribrown] Hey all,
+ 268389 [michael.bevi] Huh?
+ 268398 [ari aribrown] I just don't want to have to install a bunch of libraries on a bunch
  268437 [ari aribrown] You are a god among mortals. Thank you!
  + 268472 [botp delmont] # - Is there a (slightly) easier way to do it, or should I just start
  | 268901 [dido.sevilla] ...
  + 268754 [phlip2005 gm] TCP is (roughly) a layer on UDP. UDP is like a barnacle spawning, sending
    268763 [ari aribrown] Heh, No, I don't want to invent a network protocol however awesome
    273022 [eleanor game] You might be interested in some of the code in my RailsConf Europe

^ Help with Socket (TCPServer) requested!
268387 [victor.reyes] I need your help with sockets.
+ 268392 [mailing.mr g] i understand that server should send some data to client? if that's the
+ 268476 [victor.reyes] Thank you. I will try the suggestions provided.

^ Re: ruby-serialport on OS X?
268396 [tbuser gmail] you are also loading rubygems.  I got around it by not doing a require
268493 [tbuser gmail] Hm, not sure what to tell you then, it works for me.  I'm on a

^ What Linux distribution to choose for learning Ruby and Ruby on Rails
268403 [slavof gmail] I apologize forward for somewhat dumb question...
+ 268405 [mailing.mr g] debian or ubuntu - ubuntu is based on debian and is more widnows like
| + 268412 [perrin apoth] Ubuntu is more distinctly GUI-oriented in a "Windows-friendly" way.
| | 268415 [james.britt ] If you are still using a Windows box you can get either VMWare Server or
| + 268416 [dusty.doris ] Simple.  Which ever one you like best.
| + 268471 [pietia.moo g] it depends from some reasons. firsly - your experience in linux ,
| + 268750 [gethemant gm] NOO  _never_ install rubygems from apt tree, its broken.
|   + 268759 [qpadla gmail] You are totally right. It's mostly unusable. It was very strange for me for
|   + 269173 [ shot hot.pl] Why not? I=E2=80=99m using them with great success. They land in /var/lib/g=
|     269182 [caduceass gm] Some get lucky.  I've had nothing but heartache using the apt tree for
|     269199 [znmeb cesmai] It's probably *better* with Gentoo than most other distros and it's
|     + 269200 [phrexianreap] Symlink should work for any /usr/bin/ruby issues if you install is
|     | 269201 [fwmailinglis] charset="us-ascii"
|     | + 269204 [phrexianreap] gem install was what I was thinking of, actually.
|     | | 269206 [perrin apoth] Actually, I think Debian is using 1.8.5 currently on the stable version.
|     | | 269208 [fwmailinglis] charset="us-ascii"
|     | + 269216 [znmeb cesmai] Feature loss? Maybe. Unfixed bugs are rare in an enterprise OS like RHEL
|     + 269203 [perrin apoth] One of the things I like about *BSD, actually, is the tendency for
|       269578 [qpadla gmail] This is true. I am often find my self using ports on FreeBSD where on
|       274013 [garciatjm gm] yo creo que eso depende de la persona mmm... por k puedes tener
+ 268411 [fwmailinglis] charset="us-ascii"
+ 268413 [znmeb cesmai] 1. Have you considered staying on Windows and installing "Instant Rails"
| 268418 [slavof gmail] Thanks for all answers... :)
| + 268425 [znmeb cesmai] Yes ... I guess I would pick the distro that "most" of the hostings use.
| | + 268427 [reid.thompso] From http://www.mono-project.com/FAQ:_General
| | | 268439 [znmeb cesmai] Thanks!! If my day job ever decides to make me a .NET developer, I'll
| | | 268444 [reid.thompso] I was running gentoo on a 700 mhz laptop til it died a couple of weeks
| | | 268451 [znmeb cesmai] Yeah, I've looked at Sabayon -- it's a Gentoo derivative. I'm not a big
| | | + 268457 [dangerwillro] Ubuntu (gnome desktop) or Kubuntu (KDE ) if you want easy to get it
| | | | 268510 [perrin apoth] MacOS X isn't precisely a BSD Unix.  It uses a Mach kernel (not a BSD
| | | + 268545 [ezmobius gma] I have to step in here with a small data point about Gentoo on
| | |   268595 [znmeb cesmai] You should definitely brag about that on the Gentoo Weekly News. As far
| | |   268606 [perrin apoth] Much as I prefer Debian over Gentoo, I don't know that I'd say you could
| | |   268611 [znmeb cesmai] It's a couple extra lines in the config file for apt-get to point to the
| | |   268614 [bob proulx.c] Ensure that all of the build dependencies are installed and available,
| | |   268625 [slavof gmail] Thank you very much for all answers and for interesting discussion.
| | |   + 268633 [felipe.contr] I'm a Fedora user and I don't know Ubuntu Server Edition but my best
| | |   + 268637 [dzwell gmail] Because you are new to Linux, I would steer you away from Ubuntu Server
| | |     268826 [phrexianreap] I'm going to jump in here with a few quick comments.
| | |     268832 [fwmailinglis] charset="US-ASCII"
| | |     268841 [phrexianreap] Thing is, most people would prefer to use the GUI to the command-line.
| | |     269039 [dzwell gmail] Yeah, but even that is too much for most people. We forget that
| | |     269040 [lionel-subsc] There's one aspect of the OS choice that I don't think was mentionned in
| | |     269084 [phrexianreap] He could also just grab a Knoppix LiveCD to play with, if he wants to
| | + 269086 [alexey.verkh] Sorry for self-promotion. RubyWorks stack is trying to take care of
| + 268584 [charles.nutt] There's very little about JRuby that feels like Java. It smells pretty
+ 268433 [transfire gm] If you are new to Linux, Ubuntu or Kubuntu is very likely the best
| 268436 [znmeb cesmai] Isn't Arch a Debian derivative? There are lots of Debian derivatives,
| + 268445 [matt technor] All of my systems are CentOS, but if you don't care about long term (5+
| + 268447 [transfire gm] Nope. Arch is not based on Debian. Arch is it's own creation, probably
|   268513 [perrin apoth] No . . . the "real source code action" would be in a BSD Unix (FreeBSD,
|   + 268517 [lionel-subsc] go with *BSD instead of Gentoo or whatever. I'm actually interested
|   | 268539 [perrin apoth] FreeBSD, among other things, tends to provide far greater system
|   + 268525 [transfire gm] I never quite understood the BSD fanfare. Is it really that much
|     + 268530 [lionel-subsc] IMHO (even if I consider the docs really important) what defines a
|     | + 268532 [dangerwillro] perhaps headaches.
|     | | 268541 [perrin apoth] That door can really swing both ways, and may be more related to
|     | + 268540 [perrin apoth] I'd say there are really four primary aspects to separating distributions
|     |   268596 [znmeb cesmai] You've left out what I consider is another big win for *BSD -- the
|     + 268537 [perrin apoth] There are distinct differences between BSD Unix and Linux based OSes, not
+ 268474 [mark.gallop ] I used Gentoo at home and work for a few years and loved it. I had tried
| 268514 [perrin apoth] Also, keep backups.  I've run into a couple of smaller derivative
+ 268600 [bigboss64 ip] Any Linux Distro will do, if you prefer *not* to actually have to learn much
threads.html
top