338197-338816

337962-340496 subjects 338407-342987

^ return in iterator in lambda
338197 [bterkuile gm] I want to create a conditional mathematical function as a lambda
+ 338199 [robert.dober] Yes there is!
| 338200 [robert.dober] But why did you put something there, now it does not work anymore :(
| 338208 [bterkuile gm] data = Array(1..12)
| 338295 [robert.dober] I am not sure what you want to do?
+ 338214 [vjoel path.b] Enumerable#find may be more appropriate than #each. This avoids the

^ block as string
338201 [default spir] Is there an easy way to get a block / proc / lambda as a string... without
338203 [jameskilton ] There's nothing built into Ruby that will get you this.
338206 [default spir] mmm, I'm looking for a jRuby compatible solution... Ruby2Ruby look like its
+ 338256 [b.candler po] Well, you can remember the string form at the time you define the
| 338267 [default spir] Thanks Brian,
| + 338269 [b.candler po] How about using %{ ... } for the string? Then it looks more like a
| | 338271 [b.candler po] # Slightly enhanced version
| + 338320 [vikkous gmai] RubyMacros is an implementation of lisp-like macros for ruby....
|   338389 [default spir] Thanks guys,
|   338400 [b.candler po] OK - not sure why you're eval'ing it a line at a time though, instead of
|   338404 [default spir] Thanks Brian,
+ 338299 [ryand-ruby z] jruby has their own parsetree equivalent, but I don't know of / doubt

^ [ANN] hoe 2.0.0 Released
338224 [ryand-ruby z] hoe version 2.0.0 has been released!

^ question about embedding ruby 1.9 and handling exceptions
338228 [funkaster gm] I'm embedding ruby 1.9, and so far everything works *almost* ok: there

^ Re: Games for Programmers
338230 [jcmoore pres] ansferring results to their own "printers".
338239 [djberg96 gma] Interesting, thanks!
338319 [jcmoore pres] It's pretty amazing really. Both Hacker and the Cyberpunk manual are
+ 338323 [eleanor game] It brings back some fun memories of the late 80s and the hysteria
+ 338324 [djberg96 gma] possessing
  338417 [jcmoore pres] The fact that this 'incident' provided some of the impetus for
  338418 [eleanor game] The eschaton is immanent, and it will be televised ;p
  338422 [jcmoore pres] I thought it had been re-branded as "The fnord Singularity"
  338429 [eleanor game] I'll see your Vinge and raise you a Tipler...
  + 338434 [phlip2005 gm] What a relief! I thought it was imminent...
  + 338472 [jcmoore pres] You know, I'd like to pursue this but I keep stubbing my TOE
    338474 [eleanor game] ROFLMAO :)

^ Compile Error:  ldap.c:424: error: =?windows-1252?Q?=91LDAP=5FOP?= =?windows-1252?Q?T=5FX=5FTLS=5FPROTOCOL=92_undeclared_=28first_use?= =?windows-1252?Q?_in_this_function=29?=
338231 [xeno.campano] root@leopard:~/libldap-ruby-0.9.7# make

^ Re: Compile Error:  ldap.c:424: error: =?windows-1252?Q?=91LDAP=5F?= =?windows-1252?Q?OPT=5FX=5FTLS=5FPROTOCOL=92_undeclared_=28first_u?= =?windows-1252?Q?se_in_this_function=29?=
338232 [xeno.campano] Sorry.  I should have said LDAP_OPT_X_TLS_PROTOCOL does not exist in the tree

^ Do I need self in this method definition
338233 [chen_li3 yah] I have two hashes. They have the same keys but  different or the same
338236 [matt tidbits] You do if you really want a class method - that is, if you want to be
338237 [chen_li3 yah] Thank you so much. Here is my implement of an instance method. But I
338238 [matt tidbits] Method calls are sent to "self" if they are not sent explicitly to a

^ gserver hogging CPU
338234 [wsc imagexpe] I'm running a server on Mac OS 10.5.7, Ruby 1.8.6, that's almost exactly
+ 338242 [rogerpack200] perhaps profile it with ruby prof, perhaps try other versions of ruby
+ 338245 [ezmobius gma] This last loop looks suspect. You are basically calling
  + 338258 [justincollin] Indeed.
  + 338287 [wsc imagexpe] Ezra, thanks. This worked great! My CPU usage is below 1% now, even with

^ [QUIZ][SUMMARY] Cryptogram II (#206)
338235 [yahivin gmai] There was some discussion on the mailing list about the objective of

^ Re: ruby 1.9 splat in return statement, bug or feature?
338246 [macarui gmai] a = *[1]     #=> 1

^ (none)
338247 [huapeng.yao ] unsubscribe

^ [ANN] ZenTest 4.1.0 Released
338252 [ryand-ruby z] ZenTest version 4.1.0 has been released!
+ 338259 [jcoglan goog] 2009/6/3 Ryan Davis <ryand-ruby@zenspider.com>
| 338297 [ryand-ruby z] fixed and released. thanks for filing a bug.
+ 338270 [jcoglan goog] 2009/6/3 Ryan Davis <ryand-ruby@zenspider.com>
  338298 [ryand-ruby z] um... get off of ubuntu/debian and start enjoying life again? :)

^ [ANN] autotest-rails 4.1.0 Released
338253 [ryand-ruby z] autotest-rails version 4.1.0 has been released!

^ Re: Compile Error:  ldap.c:424: error: ¡ÆLDAP_ OPT_X_TLS_PROTOCOL¡Ç undeclared (first u se in this
338255 [b.candler po] This is standard C debugging, so I don't think it really belongs on a

^ welcome
338261 [wuaiping1234] Posted via http://www.ruby-forum.com/.

^ Module methods
338263 [rps salas.co] ==== File: good.rb ====
+ 338265 [mark thomasz] It looks like what you really want is a class. Is there a specific
| 338266 [rps salas.co] Yeah, I am trying to make as transparent as possible "Domain Specific
+ 338274 [Carey.Nation] Pretty sure that you need to prefix the module methods with the module

^ PacketFu troubles
338268 [rian-nathana] I've got a lot of trouble with PacketFu (from

^ Class Method & Singletons - newbie question.
338272 [sayakyi gmai] Dear Freinds,
338292 [matt tidbits] No, not quite.
338427 [sayakyi gmai] thanks you very much for your explanation and your "Ruby introduction"

^ assign the array returned by String.split to a variable
338282 [nope nothere] i have the following method
+ 338283 [bbxx789_05ss] Prove it.
| 338284 [bbxx789_05ss] str = "hello,world"
+ 338285 [wishdev gmai] You would want something like this
+ 338302 [b.candler po] This means that @arr is nil, that is, you are doing

^ env change, or iconv library self-mutated???
338286 [halfcountplu] I have been trying to use iconv to deal with ISO-8559-1 to UTF-8
+ 338291 [halfcountplu] I've actually rebooted in the hopes that this was something temporary.
+ 338328 [nobu ruby-la] You seem having overwritten something.  Check from where
  338369 [halfcountplu] iconv.rb could be generated at runtime??? since the only thing in the
  338432 [nobu ruby-la] Of course no.  It's generated at compile time and installed.
  338438 [halfcountplu] I built ruby from source in /usr/local.  Ruby installed two directories,
  + 338439 [justincollin] Nobu is one of the main Ruby developers. Yes, you should take him
  + 338441 [nobu ruby-la] OK, then can't you show the iconv.rb which causes the problem?
    338442 [halfcountplu] [root~/ruby/docsearch/app/controllers] gem which -a iconv
    338471 [halfcountplu] I can see what happened now.  The one line script which failed is this,
    338559 [hoooopo gmai] So interisting~~

^ [ANN] ZenTest 4.1.1 Released
338289 [ryand-ruby z] ZenTest version 4.1.1 has been released!
338290 [jcoglan goog] 2009/6/3 Ryan Davis <ryand-ruby@zenspider.com>
+ 338294 [jbarnette gm] Sorry about that! My Perforce -> GitHub script went on unexpected
+ 338301 [ryand-ruby z] github and rubyforge svn are just mirrors. I host code on my perforce

^ Problems with Rubygems on 1.9.0 under multiruby
338296 [jcoglan goog] Trying to get multiruby (from ZenTest) set up on Ubuntu. So far I've run the
338314 [renard nc.rr] the

^ Implementing a DSL (was: Re: Module methods)
338300 [mark thomasz] uages-basics_27.html
338309 [gregory.t.br] Also, the sample chapter of my book has a relevant section about this,
338755 [rps salas.co] Greg, I read the chapter. Excellent stuff. When's the book coming out?
338796 [gregory.t.br] It's already off to the printers so if you pre-order it now you should
338816 [rps salas.co] Posted via http://www.ruby-forum.com/.

^ is ruby only usable for pictures not for documents ?
338303 [dgwauss web.] I searched the last days a lot for finding a plugin or tutorial for
+ 338305 [ben bleythin] Well, you have to store them *somewhere*.  I'd argue that the database
| + 338321 [shortcutter ] A database gives you a few things which may be important for some project=
| + 338330 [phlip2005 gm] The database is not a good fit for large binary files because databases and
+ 338306 [cmshea gmail] attachment_fu can store whatever you give it.  The examples for the
  338308 [gregory.t.br] Maybe we should ship Prawn with an Sqlite database?  ;)

^ Compiling Ruby 1.9.1 zlib issue on Windows
338307 [jdezenzio gm] I just have a strange issue and it's probably a step that I'm missing
+ 338315 [luislavena g] The zlib file you downloaded needs to containg include headers and
| 338317 [jdezenzio gm] Says..
| 338322 [jdezenzio gm] I fixed it Luis.
| 338326 [jdezenzio gm] Now I have an issue with rails and it appears to be related to iconv.so
| 338354 [luislavena g] Well, your doing so many things at the same time that is hard to
| 338371 [jdezenzio gm] Thanks Luis..
| + 338373 [jdezenzio gm] Also, I forgot to add..
| | 338437 [luislavena g] And there are like 15 more, including readline :-D
| | 338463 [jdezenzio gm] Thanks Luis,
| | 338465 [jdezenzio gm] I know you both have been working heavily on the installers.  I was
| | 338537 [luislavena g] What you're commenting is in the lines of a net based installer, like
| + 338436 [luislavena g] uby...]
+ 338316 [jdezenzio gm] In case someone asks, the headers for zlib are located in C:\Program

^ Is Congruence the right term?
338311 [xeno.campano] Congruence in math has the implication that things are basically like even if
338329 [xenogenesis ] is http://en.wikipedia.org/wiki/Duck_Type the term you're looking for?

^ [ANN] JRuby 1.3.0 Released
338313 [Thomas.Enebo] The JRuby community is pleased to announce the release of JRuby 1.3.0

^ recommend ruby numerical library
338318 [jason.lillyw] I've been using RubyGSL library for numerical calculations. I just

^ Intel Introduces ULV Processor, Presses Thin and Light Laptops
338332 [whatnext gma] intel introduced three standard-volt processors, a ULV processor and a

^ Intel Introduces ULV Processor, Presses Thin and Light Laptops
338333 [whatnext gma] intel introduced three standard-volt processors, a ULV processor and a

^ why is require 'rubygems' sometimes needed?
338335 [jason.lillyw] I noticed that some libraries (such as wx or gnuplot) need to have
+ 338336 [jona.hunt777] If it's not a gem, you don't need require 'rubygems'.
+ 338337 [cwdinfo gmai] The most obvious reason to include rubygems is if you need some of the
| 338338 [jason.lillyw] Yes, that makes sense. Thanks for the explanation.
+ 338339 [justincollin] Just as a note (as your question has already been answered), requiring
  338419 [markus fisch] How so? I.e., what has been changed that the libraries are automatically
  + 338423 [drbrain segm] RubyGems is built-in.
  | 338425 [shevegen lin] As trivial as it may sound, but this extra line in my code was one
  + 338431 [Usenet Googl] Nothing. You still need the RubyGems library for that. But, in 1.9

^ private method calls...why can't you use self.priv_method syntax?
338340 [timrandg gma] Why is it that when you call a private method, you cannot use
338342 [jballanc gma] In Ruby, private means that the method cannot be called with an
338390 [timrandg gma] Josh, thanks for the clarification. I guess I just have to accept the

^ Ruby OS
338344 [max sparkyma] I was considering porting the Ruby 1.9 VM to bare metal (something
+ 338348 [ko1 atdot.ne] I know one laboratory trying to such a kernel (where I had been when I'm
+ 338356 [Usenet Googl] I don't know for YARV, but I know that there was a thread on the
+ 338359 [eleanor game] My colleague and I have been toying with a similar idea for a couple
+ 338361 [kyleaschmitt] Umm, have you thought perhaps of using an existing kernel and just
  + 338364 [dylan.star g] A peek inside the mind of a genius. Why not use existing code and increase
  | 338380 [eleanor game] Minix has a few shortcomings, but in general this approach is doable.
  | 338440 [dylan.star g] Yes, but just the interpreter, from there you could set up a multi tasking
  | 338470 [eleanor game] I'm not sure it would even be that difficult - at least in principle -
  + 338684 [max sparkyma] I suspect that this would be the most practical approach, and probably,
    + 338708 [eleanor game] Well keep us informed on how it goes. I could really use a bare-metal
    | 338715 [mo_mail ongh] I wish I had the time :(
    | 338728 [eleanor game] It's the one thing there's never enough of.
    + 338714 [hramrach cen] What would you want the bare-metal port to do? If you just want to run
      338765 [max sparkyma] I agree with most of what you've said, and yes, I don't want to spend
      338778 [hramrach cen] Note that on Linux many drivers (filesystem, USB, parallel, ...) can

^ Ruby Execution
338345 [rubfor recit] If you have a script with a lot of classes, does the interpreter read
338350 [b.candler po] Yes. Everything is done at runtime.
338351 [b.candler po] P.S. If you want to defer loading of classes until when they are used,
338355 [rubfor recit] Is this the norm? I would have thought it would be a real problem
+ 338365 [b.candler po] Once a library has been require'd once, then the fact that this has been
+ 338412 [shortcutter ] Maybe this additional bit of information helps.  When you run a Ruby

^ READYSTATE_COMPLETE  	=  	4
338346 [lanejer gmai] I am trying to use this but not sure how to implement it. I just want to
338347 [justincollin] '=' is for assignment, '==' is for comparison.
338349 [lanejer gmai] `const_missing'
338352 [justincollin] But the previous code is not going to work - you need to get the

^ Nested HTTP params on ruby HTTP requests
338353 [davebcn gmai] I'm using ruby HTTP classes to send POST requests to a server. The
338367 [b.candler po] Well, firstly, you didn't say what framework is parsing this form data.
338368 [b.candler po] Of course, I meant
338383 [davebcn gmai] params = {:a=>[{:d=>:e, :b=>:c}]}
338403 [b.candler po] Then I've lost you, because that all seems to be working fine (both
338448 [davebcn gmai] you're not lost I explained myself terrible, my fault ;).

^ Lose 45 lbs in just 30 days easily !
338357 [inuvin101 gm] Lose 45 lbs in just 30 days easily !

^ webrick-webdav gem: error in number of arguments to get_handler
338358 [falkenhagen ] I am getting an error when I try to use a fresh install of the webrick-

^ Why can't I write variables to a file?
338362 [graham.stow ] Help please! I'm a Ruby newbie and can't get the variables in the following
338363 [andrew andre] ng
338377 [graham.stow ] Thanks Andrew! Works fine. (I'm too use to Perl where you just provide the

^ upload file via browser
338372 [henders254 g] I want to write a program to let people upload files to my computer
338375 [default spir] only for file uploading,  the most efficient way would be with rack.Look
338379 [b.candler po] For just an occasional file upload, even a CGI would be fine -

^ Hemorrhoids Treatments & What I Recommend
338376 [inuvin101 gm] If you've tried many types of hemorrhoid solutions then you probably
+ 338378 [serabe gmail] Finally! This was what I was looking for when I joined this mailing list!
+ 338382 [charles.john] "Worth *seeing*"??

^ Change file permissions via FTP
338384 [skatz82 gmai] I have to upload a file via FTP and then change its permissions, i'm
338699 [njus larshau] Not tested, but have you tried something like this?
338703 [skatz82 gmai] Thanks Lars,

^ Can't install sqlite3-ruby gem in Windows
338386 [nova.pon gma] I'm also having problems installing the sqlite3 gem on Windows.  I
338435 [luislavena g] ww.sqlite.org/download.htmland extracted them to
+ 338464 [johnts chart] This is not quite true. I have several versions of Visual Studio on this
| + 338535 [luislavena g] Because you also need to correct the extconf.rb in the source file and
| + 338603 [rogerpack200] Luis' fork does build with mingw.
+ 338497 [nova.pon gma] Thanks so much! That worked

^ ANN: Sequel 3.1.0 Released
338387 [code jeremye] Sequel is a lightweight database access toolkit for Ruby.

^ Deaf Calculus
338391 [lynx557 gmai] Hey, I am trying a variation of Deaf Grandma program that takes off of
338392 [lynx557 gmai] Instead of putting .capitalize, you put .upcase
338411 [caduceass gm] Just a hint.
338416 [b.candler po] I think you want puts array[rand(array.size)], otherwise the last
338430 [caduceass gm] Yes, yes; must read the docs before responding :-)

^ Use methods from a library in my own class
338393 [jason.lillyw] I want to create a class that uses the RubyGnuplot library that can
338394 [vjoel path.b] Untested...
338402 [jason.lillyw] Thank you. That is a great idea and it works!
+ 338405 [vjoel path.b] obj.send(symbol [, args...])        => obj
+ 338406 [vjoel path.b] Something like this?

^ and in ternary operator
338395 [ghotrapa yah] i would like to do something like the following
+ 338397 [vjoel path.b] result = false ? nil : (x=1; x+=10; x)
+ 338398 [pvande gmail] If the goal is to always run the truthy condition and optionally some
+ 338399 [funkaster gm] since you always "do_a", why no execute it always?
+ 338415 [b.candler po] 'and' is very low precendence operator, and also will only do_b if the
  338433 [nobu ruby-la] You need a semicolon instead of a comma.
  338460 [b.candler po] Sorry, that's me with my C head on :-)

^ Ruby-opengl and key presses?
338396 [tmcdowell gm] Hey, how would I go about detecting arrow key presses? It doesn't even

^ How to capitalize first word of a string?
338401 [balaa_uk yah] I have a string that I would like to capitalize and add bold html tag to
+ 338413 [shortcutter ] Do you mean
+ 338414 [matt tidbits] Sure, that's a good way. A little-known feature of "split" is the
  338426 [shevegen lin] Didn't know that one. :)
  338496 [balaa_uk yah] Thanks for taking time to reply. much appreciated.
threads.html
top