388721-391590 subjects 389090-398824

Re: [jruby-user] [Q] limelight + rawr for .exe
388932 [cremes.devli] You are right. I was mixing up some things I read on another web page [1] regarding building double-clickable binaries for JRuby.
388933 [josh.cheek@g] Try using limelight pack feature.   This bundles the production into a .llp

dynamic url after form submit
388934 [yunger7@gm i] I would like the user to fill in a form with first name and last name so

[ANN] Wrong 0.6.0 released
388935 [alexch@gm il] * "eventually" method for async polling assertions

[ANN] redcarpet-manpage 0.0.1
388936 [sunaku@gm il] RedcarpetManpage - UNIX man page renderer for Redcarpet2

[ANN] binman 0.1.2
388937 [sunaku@gm il] binman - UNIX man pages for Ruby bin/ scripts

[ANN] binman 1.0.0
388940 [sunaku@gm il] Sorry for the frequent release announcements.  Now my enthusiasm is
388942 [botpena@gm i] hmm, interesting. now, if only i could combine this w ara's main...
389003 [sunaku@gm il] ...

Which gem is best suited to use when using ruby to test
388943 [andreaswalda] I am working in a medium sized it-company as a tester. We are currentlty
+ 388985 [soman.abhiji] Currently I am using Cucumber to write Acceptance tests.
+ 388991 [steve@st ve ] It depends on what kind of testing you're doing. I tend to use

Netbeans and ruby 1.9.2
388944 [andreaswalda] I work as a tester using Ruby as primary tool

What°«s the best way of checking if an argument has been given or not?
388945 [now@bi wi se] What°«s the best way of checking if an argument has been given or not?
388950 [jakekaiden@y] class A
+ 388951 [now@bi wi se] Perhaps I wasn°«t clear enough.  It shouldn°«t be possible for the
+ 388952 [matma.rex@gm] You can use this syntax, too. "args" becomes an array of all arguments given.
  388954 [now@bi wi se] Your suggestion is valid. though it seems I underspecified my question
  388961 [now@bi wi se] How is this a solution (to anything)?
  388970 [luke.gru@gm ] Hmm, if you really don't want to use the splat *args, you could create a
  388972 [jens.wille@u] class A
  + 388973 [adam@ap es o] What's the situation this code is going to be used in?
  + 388975 [now@bi wi se] Yes, of course!  That°«s the trick I saw too; checking if the optional
    + 388994 [matma.rex@gm] I have to admit that's kinda cool.
    | 388999 [matma.rex@gm] Nothing stops him from using `false` in there? You'd just have to
    + 389000 [jens.wille@u] exactly! but i hardly ever have a use case for this. i usually don't

Signal handling cross-platform
388946 [mynameisjohn] I'm new to Ruby and am coding a program intended to be cross platform-
+ 388968 [luke.gru@gm ] things up first.
| 388978 [jeremy@bo p.] FYI, trapping TERM is not a guaranteed check that the host is shutting
+ 389113 [mynameisjohn] Thanks guys. In the end I opted for Jeremy's solution for it's elegance.
  389115 [cmdjackryan@] Check out the win32-service gem from http://win32utils.rubyforge.org/

388947 [zombiegenera] ...
+ 388948 [jakekaiden@y] i think which tutorial is best is a question of individual tastes and
| 389040 [ml@co va es ] I disliked "Why's poignant guide" to ruby, because since I'm not native English speaker I did not understand all the "jokes" and side-comments and find it a bit frustrating.
+ 388949 [mynameisjohn] I'm new to Ruby but not programming (as a hobbyist rather than a
| 388953 [zombiegenera] Thanks for your kind reply. I already went through hackety hack. It's so sad that "_why" disappeared all on a sudden on mid-2009.
| + 388956 [cmdjackryan@] Phillip Gawlowski
| + 388984 [steve@st ve ] Hackety Hack maintainer here. Thanks for trying it out, we're gearing
+ 389018 [josh.cheek@g] Absolutely not!
| + 389041 [ml@co va es ] I'm not considering my self a programmer, but I messed with ruby at 27-28 (now I'm 29).
| + 389224 [dragriesti@c] Google Josh Cheek.
|   + 389225 [josh.cheek@g] Aww ^_^
|   + 389318 [zombiegenera] ...
+ 389068 [rubytalk2dav] Do you mean you tried C as your first programming language?  Oh you
| 389072 [matma.rex@gm] I strongly advise not to until he actually learns programming first ;)
| 389089 [cczona@gm il] Test-driven learning, even for beginner CS, has a proven track record,
| 389140 [spiralofhope] This approach forces the learner to build very small working
+ 389099 [shevegen@li ] I never liked _why's guide.
+ 389332 [zombiegenera] Thanks all for your kind and informative answers. I'm working on my own
  389336 [josh.cheek@g] Good luck, stay motivated :)

Difference between = and ==
388955 [zombiegenera] ...
+ 388957 [Joec_49@ho m] =3D is for assignment
+ 388959 [chris.hulan@] = is assignment

=?windows-1252?Q?Re=3A_What=92s_the_best_way_of_checking_if_an_argument?= =?windows-1252?Q?_has_been_given_or_not=3F?=
388958 [chris.hulan@] def foo_argchek *args
388962 [chris.hulan@] =?windows-1252?Q?Re=3A_What=92s_the_best_way_of_checking_if_an_argument?= =?windows-1252?Q?_has_been_given_or_not=3F?=
388976 [transfire@gm] =?windows-1252?Q?Re=3A_What=92s_the_best_way_of_checking_if_an_argument?= =?windows-1252?Q?_has_been_given_or_not=3F?=
388977 [transfire@gm] =?windows-1252?Q?Re=3A_What=92s_the_best_way_of_checking_if_an_argument?= =?windows-1252?Q?_has_been_given_or_not=3F?=
388998 [cmdjackryan@] =?windows-1252?Q?Re=3A_What=92s_the_best_way_of_checking_if_an_argument?= =?windows-1252?Q?_has_been_given_or_not=3F?=

Reversing an input
388960 [zombiegenera] ...
+ 388969 [jeremy@bo p.] -Jeremy
+ 389010 [joec_49@ho m] try mystring.reverse, i.e.

Ruby developer in Dublin
388963 [antonio.ruzz] Apologies as this is probably in the wrong place.
+ 389006 [richard.conr] You might be able to get in touch with local developers.
+ 389042 [antonio.ruzz] Thanks Richard,
  389049 [richard.conr] I doubled checked the mailing list, as I am surprised that I missed out

conditional before_save :encrypt_password
388964 [dcastellano1] I am having a problem finding the best way to make a "before_save
+ 388965 [dcastellano1] I am having a problem finding the best way to make a "before_save
+ 388966 [dcastellano1] Sorry,
+ 388967 [chris@s- -u ] You got the wrong Maillinglist, it's Ruby, not RoR, latter got it's own

[Q] clean way to print error & break from loop?
388971 [cremes.devli] I would like an idiomatic way to print an error from inside of a loop and break from that loop in a single statement. I thought I could do something simple with "and" but it doesn't work with Kernel#puts due to #puts returning nil.
388993 [matma.rex@gm] Use a regular multiline if.
388997 [cremes.devli] I like that second solution. Thanks!

Help figuring out appropriate naming scheme (previously 'wedge')
388974 [transfire@gm] Bare with me as I try to articulate this.
+ 389063 [rubytalk2dav] This strikes me as somewhat odd.  As far as I've noticed, TLNs tend to
| 389152 [transfire@gm] On Oct 16, 2:40=A0pm, Dave Aronson <rubytalk2d...@davearonson.com>
+ 389151 [sean.ohalpin] I'd go for LoadHook myself. And steer clear of RbConfig.
  389153 [transfire@gm] Ah, LoadHook. That is a good name. Might well have used it too, except
  389154 [shortcutter@] Why not use the gem's name as namespace, e.g.
  389190 [transfire@gm] rs

Re: TestR 14.0.0 [and semver]
388979 [sunaku@gm il] I works very well for me because my release numbering is consistent
388980 [sunaku@gm il] It works very well for me because my release numbering is consistent
388986 [transfire@gm] appy birthday!
388992 [ryand-ruby@z] exactly... happy birthday!
388996 [transfire@gm] . happy birthday!

What does this snippet mean?
388981 [zombiegenera] ...
+ 388983 [jeremy@bo p.] The parameter f is assumed to be an IO object of some kind.  Those
+ 389064 [rubytalk2dav] Jeremy already gave you that answer, but I'll help you find many more yourself.

Table of contents
388982 [sasogeek@ya ] I'm supposed to layout table of contents but have my contents stored in
388995 [matma.rex@gm] You are confusing two array access method in the last three lines.

Ruby functions to split numbers
388987 [idealone5@ho] I have couple of requirements to be handled in ruby, it will be
+ 388988 [ian.asaff@gm] ruby-1.9.2-p290 :010 > a = "01234567"
| 389002 [idealone5@ho] How can i auto increment the number, i tried doing
| + 389012 [josh.cheek@g] Strings have implemented on them the method "next" which, for numerical
| | 389124 [idealone5@ho] n.next works perfectly for me, I am using ruby 1.8.7 version.
| + 389102 [shortcutter@] ror.
|   389123 [idealone5@ho] Sorry if I am not clear with my requirement, Let me try to
|   389130 [shortcutter@] se
+ 388989 [jeremy@bo p.] How do you want to work with your numbers within your program?  Do you
| 388990 [idealone5@ho] Thanks, I do not need to be number to be string, i was only trying to
+ 389155 [cidza@ti .i ] if your numbers are Fixnum, maybe you can do

Re: =?windows-1252?Q?What=92s_the_best_way_of_checking?= =?windows-1252?Q?_if_an_argument_has_been_given_or_not=3F?=
389001 [jens.wille@u] well, i guess that depends on your point of view ;) you seem to read

Silicon Valley Ruby Innovator Award - Deadline 10/17
389004 [marc@in es f] We are looking for Ruby developers interested in entering their projects

[ANN] rake-remote_task 2.0.5 Released
389007 [ryand-ruby@z] rake-remote_task version 2.0.5 has been released!

[ANN] vlad 2.2.3 Released
389008 [ryand-ruby@z] vlad version 2.2.3 has been released!

deadlock producer consumer
389011 [aggouni2002@] I make the following test
+ 389013 [justincollin] When you use mutex.synchronize, it's going to lock to mutex. When you
+ 389014 [drbrain@se m] Is there any reason you're not using Queue?
+ 389019 [aggouni2002@] I tried simple Queue and it doesn't work too
| 389020 [sean.ohalpin] Is this the kind of behaviour you're looking for?
+ 389021 [aggouni2002@] thanks Sean,
| 389023 [sean.ohalpin] That's just to show that the producer and consumer threads are
+ 389024 [aggouni2002@] I still have the deadlock problem
  389052 [matma.rex@gm] It can stop its thread, so yes.

[ANN] raindrops 0.8.0 - real-time stats for preforking Rack servers
389015 [normalperson] Raindrops is a real-time stats toolkit to show statistics for Rack HTTP

Getting alias name within method
389017 [sentinel1879] def one

writing a poem backwards or in reverse order
389025 [s-unguyen2@h] i would like to write a poem using nano and through ruby I would like to
+ 389036 [jgabrielygal] Use String#split to split the poem into lines. Then iterate from last
| + 389056 [s-unguyen2@h] Alright, thanks so much for your response! Can you show me an example of
| | 389057 [jgabrielygal] I guess, looking at the problem description, that you are learning
| | 389058 [s-unguyen2@h] alright thanks for your advice and tips. I'm familiarizing myself with string and the order of words. Is array applied in this problem or i'm I only focusing on string?
| | 389059 [jgabrielygal] String#split returns an array of strings, so yes, you need to
| | 389078 [s-unguyen2@h] I was able to figure out to program 1 and 3. This was the method I used using array.
| + 389091 [s-unguyen2@h] I'm struggling on how to approach the method using "string#split" I'm unsure of how to divide each line into words and iterating it from last word to first word, and then writing it in reverse order.
|   389092 [botpena@gm i] break down the problem into smaller ones.
|   389093 [s-unguyen2@h] While moon sets
|   389097 [botpena@gm i] s=<<-HERE
|   389114 [s-unguyen2@h] yes, i tried that and it worked out great! thanks so much for your help!
+ 389075 [josh.cheek@g] ...
  389080 [s-unguyen2@h] thanks for your response. I've been trying to write this program
  389082 [josh.cheek@g] This is like your program 1, but just slightly different. You will need to
  + 389083 [s-unguyen2@h] Alright, thank you. Is there a same method but using string?
  | 389085 [s-unguyen2@h] poem_program2.rb:7:in `block in <main>': undefined method
  + 389088 [s-unguyen2@h] poem_program2.rb:7:in `block in <main>': undefined method

'gem install' help please
389026 [sbstn26@ya o] Building native extensions.  This could take a while...
389043 [luislavena@g] "Could not create Makefile due to some reason, probably lack of
389105 [sbstn26@ya o] I downloaded DevKit-3.4.5-20100819-1535-sfx.exe and followed the
389150 [adam.stegman] What is in the log files? Check the directory named at the bottom of =
389196 [sbstn26@ya o] checking for random()... *** extconf.rb failed ***
+ 389197 [cmdjackryan@] This is the pertinent detail of the log.
| 389198 [sbstn26@ya o] I'm supposed to install rdiscount to 'Confirm your Ruby environment is
+ 389236 [adam.stegman] ...
  389251 [sbstn26@ya o] Ruby is installed in the default folder: C:\Ruby192
  389261 [luislavena@g] You didn't read my comment.
  389264 [jon.forums@g] Take a look at https://gist.github.com/1268434 and the two helper files

Shoebox hacked!
389027 [abuyoav@gm i] I was just looking at the shoebox site, specifically at "The Game of
+ 389028 [botpena@gm i] looks ok here. what links are you referring to?
| + 389030 [abuyoav@gm i] Sexcams, sexchat...
| | 389034 [botpena@gm i] i see it. thanks.
| + 389031 [abuyoav@gm i] I just booted into my other OS to make sure I wasn't hacked... The
|   389032 [chris.hulan@] Took a quick look and initially didn't notice the links
+ 389029 [josh.cheek@g] I'm not seeing it.
| 389035 [mike@st k. a] The invention of this game made John Conway instantly famous, and kicked =
+ 389039 [jakekaiden@y] thanks for bringing this up...  i'm forwarding your initial message to
  389046 [steve@st ve ] Hey everyone-
  389050 [code@ap th o] I've browsed around the site a bit, and almost every app page has spam
  389071 [steve@st ve ] Totally. It's actually a really old Rails 1.2 app, and so I'm working

Ruby and threading
389037 [cartercheng@] Is the current ruby 1.9.2 multithreaded at the OS level?
+ 389038 [josh.cheek@g] For MRI, yes, but it has a global interpreter lock. Here's a blog that
| + 389044 [cartercheng@] Thanks for the reply. I was looking over the YARV implementation in 1.9.3rc1
| | 389048 [steve@st ve ] Hey Carter-
| | + 389074 [sandor.szuec] or MacRuby.
| | + 389216 [regis.aubare] or IronRuby !
| + 389195 [josh.cheek@g] A great followup to this post, explains why the GIL exists
|   + 389200 [sandor.szuec] I think it's pretty obvious, that implementations without GIL should
|   | 389203 [josh.cheek@g] That's the point, to show why the GIL is useful.
|   | 389206 [steve@st ve ] It's not useful, it's hiding a problem: your code isn't thead-safe.
|   | 389213 [josh.cheek@g] When it's in a lib you don't control, it's useful. A wrapped C lib is
|   | 389215 [tony.arcieri] The GIL doesn't eliminate the importance of writing thread safe code, it
|   + 389482 [headius@he d] Ok, I can't let this one sit.
|     + 389484 [josh.cheek@g] intended to point out what the GIL does, since many people don't seem to
|     | + 389485 [headius@he d] It's not an unreasonable decision to consider Clojure, but the rules
|     | + 389494 [cremes.devli] ...
|     + 389496 [shortcutter@] Actually it is not possible to provide thread safe collections out of
+ 389055 [axyd80@gm il] Is there any big projects using jRuby? It seems that jRuby is available
| + 389066 [josh.cheek@g] Obtiva (who is now owned by Groupon) gave a JRuby workshop at Red Dirt Ruby
| | 389077 [richard.conr] In London there are a few big name companies following this MO.
| | 389095 [cartercheng@] I gather then the 1.9.2. implementation at present does not "exploit" OS
| | 389121 [halostatue@g] You gather incorrectly. Ruby 1.9.2 does use underlying OS threads. For
| + 389067 [tony.arcieri] JRuby is being used at several companies including LinkedIn and Square. It
| + 389070 [steve@st ve ] I've done some consulting work, and JRuby was being used heavily.
+ 389129 [axyd80@gm il] Maybe it's a stupid question, but I can't get it - what's the point of
| + 389131 [tony.arcieri] Threads can still run simultaneously, they just can't make changes to Ruby
| + 389132 [josh.cheek@g] "MRI 1.9 uses the same technique as MRI 1.8 to improve the situation, namely
| + 389133 [shortcutter@] No, with a GIL no two threads can concurrently hold the lock.  But a
+ 389514 [axyd80@gm il] I don't understand this. Ruby has no support for parallel execution
  + 389536 [steve@st ve ] removed, and then Ruby would _not_ be limited to running on one core.
  | 389540 [matthias@wa ] The GIL discussion is very similar to the memory ordering property of processors
  + 389539 [tony.arcieri] So use JRuby or Rubinius if you want real multicore concurrency. Problem

'compiling' ruby code into an msdos exe file
389045 [joec_49@ho m] Anybody done this? I would like to 'compile' ruby for packaging
+ 389047 [steve@st ve ] There are five or six projects that do this, with varying degrees of
+ 389065 [joec_49@ho m] Where do I get a working copy of rubyscript2exe...the ones I downloaded
  389069 [matma.rex@gm] Unless you have a good reason to stay with rubyscript2exe, I suggest

How to unit test COBOL using Ruby
389051 [balakrishnan] I would appreciate any COBOL unit test tutorail (I am a newbie to Ruby).
389053 [richard.conr] You might want to start with basic COBOL unit testing in general. If you
389054 [isaacbfsande] I have a friend who tested COBOL with ruby by outputing the COBOL crap, and

Customizing Listbox text in Shoes
389061 [ros.obrien1@] I'm writing a shoes app ("Policeman" release) that contains a listbox
389062 [ros.obrien1@] Just testing that I'll get an email notification when someone replies...

rspec 2.7.0 is released!
389076 [dchelimsky@g] We're pleased to announce the release of rspec-2.7.0. Release notes for each

yet another way to call ruby script from DLL
389079 [zhoran@in ox] I've searched that forum for the subject and found that most questions

I fixed this - but why does it work?
389081 [edwin.gallow] 1 filename = ARGV.first
+ 389084 [zhoran@in ox] probably, because File.size(target) calls the *class method* which is
| 389086 [peter@va de ] That's what I assumed too ... (based on the printed documentation in
+ 389087 [edwin.gallow] I appreciate the help so far. I tried it in Windows under Cygwin and in
  389096 [peter@va de ] OK, that explains. In ruby 1.8.7 it works as documented in the