388847-389336

388625-389410 subjects 389026-391229

^ table_name can create by variable
388847 [dickyhide gm] I used ruby mysql module and want to save some files into database.

^ [ANN] Http 0.0.1 - talk to the web humanely
388850 [tony.arcieri] Http is on Github: https://github.com/tarcieri/http
+ 388851 [jos catnook.] This looks awesome, thanks Tony!
+ 388852 [josh.cheek g] This would be a necessary feature for most of my use cases.
| 388853 [tony.arcieri] Mea culpa, this is the 0.0.1 half-baked release :)
+ 388859 [robin nibor.] Wow, bold choice for a gem name there :). Can't believe this wasn't
  388865 [matma.rex gm] What about the rest-client gem? Isn't this mostly the same?
  388874 [tony.arcieri] Feel free to substitute "rest-client" for "httparty" in the initial
  388904 [tony.arcieri] Http's goal is to be a unified client and server library complete with

^ why does `a + f b` not parse?
388855 [martindemell] ruby-1.9.2-p0 > 2 + sqrt 5
+ 388856 [ondemannen g] irb(main):011:0> 2 + sqrt 5
+ 388857 [waynefb eart] charset=iso-8859-1
| 388858 [rubytalk2dav] That's the odd part.  Just saying "sqrt 5" works (assuming you've
| 388861 [cmdjackryan ] calls (remember: + is a method, not an operator!).
| 388862 [jakekaiden y] this is a very important point in ruby... `+` is a method (and not an
| 388864 [matma.rex gm] Yes, I think we all know that; the question is, why does 2 + sqrt(5)
| + 388866 [cmdjackryan ] Don't top post, please.
| | + 388867 [shortcutter ] I believe the versions which turn a space into a dot are not valid
| | | 388884 [cmdjackryan ] What about 2.+(2)? It's equivalent to 2 + 2, after all, and not 2(+(2)).
| | | 388890 [shortcutter ] That's a different case because there is an operator between the
| | + 388877 [matma.rex gm] I was writing from my mobile, it was added automatically (I just don't
| |   388885 [cmdjackryan ] That would mean that something like Class.instance_methods(:true).sort
| |   388891 [shortcutter ] Yes, but spaces do not become dots except those before an operator.
| |   388900 [cmdjackryan ] Except that Ruby doesn't have operators. , -, *, ** are all methods.
| |   388903 [b.candler po] From the point of view of the parser, they are operators. From the point
| + 388889 [gwtmp01 mac.] Bottom line is that operators have a higher precedence than argument =
+ 388860 [hanmac gmx.d] + is a method that wants one parameter

^ A .rb file without module, loading it inside a new module at runtime.
388863 [shevegen lin] First my problem in general.
+ 388870 [shevegen lin] Well alright ...
+ 388898 [b.candler po] eval "module NewModule\n" + File.read("foobar.rb") + "\nend"

^ Learning Ruby question regarding Looping
388869 [zerofiftysix] Hey there, I'm new to this forums as well as being new to Ruby. I
+ 388871 [jonanscheffl] 'reply' never gets a chance to change.
| 388916 [michel.reves] "if reply == 'yes'" is not necessary because reply is always not equal
+ 388872 [zerofiftysix] Yes, that makes sense!  Thanks for your help!
+ 388939 [rubytalk2dav] Try thinking like the computer.  Remember, it's wonderfully fast and
  388941 [b.candler po] We used to call it a "dry run", which perhaps sounds less sordid :-)

^ array of hashes
388875 [tcblues gmai] a=Array.new()
+ 388876 [botpena gmai] a.find{|x| x[:name]=="pedro"}[:value]
| + 388878 [tcblues gmai] Thanks!!!!
| + 388879 [peter vanden] I tried this also, but stopped when I figured out that if there is no
|   388897 [b.candler po] That's the nil chaining problem. I usually just write something like
+ 388880 [spiralofhope] Is this what you're looking for?
+ 388910 [shortcutter ] Here's another suggestion: you can use rescue to avoid the error you

^ gem directory not find
388881 [pawan.porwal] I am new in Ruby.This is my first post in this forum and hoping
+ 388883 [percent20 gm] Checkout rubygems.org find a gem you want to install and do
+ 388886 [cmdjackryan ] 1.) Download a copy of RubyGems' .tgz release from
+ 388901 [pawan.porwal] Thanks for your reply.
| 388902 [cmdjackryan ] Well, you'll have to try different releases of RubyGems until you find
+ 388905 [pawan.porwal] install -c -m 0644 rubygems/digest/sha2.rb
| 388906 [henrikloevbo] I'd recommend installing ruby 1.8.7 as well. If the installation is
+ 388907 [pawan.porwal] How to upgrade ruby 1.8.5 to 1.8.7?
| 388908 [cmdjackryan ] Depends on your operating system, really.
| 388909 [henrikloevbo] if you're on windows, use the ruby-installer
+ 388911 [pawan.porwal] x86_64 x86_64 GNU/Linux

^ [ANN] Hackety Hack 1.0.1 for Mac released!
388887 [steve stevek] Hackety Hack v1.0.1 for Mac has been released!

^ [ANN] TestR 14.0.2
388888 [sunaku gmail] TestR - Continuous testing tool for Ruby

^ Re: Assign Java script value to Ruby value?
388912 [bdeveloper01] Is it possible to Assign Java script value to Ruby value?
388938 [rubytalk2dav] Not easily, assuming you're doing client-side JS.  By the time the

^ how to parse yaml object ?
388913 [rajesh.13kit] i am new to yaml.
388914 [shortcutter ] Difficult when one does not have the code that produces this.  I'd try

^ Ruby reusability
388915 [bharaths qua] I have created two classes and i am calling methods from one class to
388918 [steve stevek] Make @selenium into $selenium. Initialize it outside of both tests,
388923 [bharaths qua] Thanks it worked

^ Re: translation from Python
388919 [k.dorsel gma] wc = {} #Creates a new empty dictionnary. A ruby Hash
388924 [shevegen lin] Always remember that while python has sane syntax (compared to

^ [Q] limelight + rawr for .exe
388920 [cremes.devli] I have a limelight [1] application that I would like to package up with rawr to make a double-clickable Windows application. The problem I am having is that limelight and rawr are a bit at odds in two respects.

^ Announcing Ruby-related content on minituku.net
388921 [hide netlab.] Dear ruby-talk readers,
389060 [rubytalk2dav] Why drop the s and not use minitsuku.net?  It's available, and will be
389073 [shyouhei rub] "tuku" is also an accepted spelling, see http://en.wikipedia.org/wiki/Kunrei-shiki_romanization
389191 [tor netlab.j] Thank You very much for the input!
+ 389210 [eric.findlay] For non-native Japanese speakers, I think 'Minitsuku' is definitely
| 389211 [code apotheo] I guess I would qualify as a non-native not-quite-speaker.
+ 389214 [matt technor] Personally, I find the Japanese names starting with Ts to be very

^ [ANN] ReUser v0.2.0 released!
388922 [isaacbfsande] ReUser is a gem. It provides your classes with a DSL for declaring and

^ How to run a configure script from ruby and check for errors
388925 [shevegen lin] Ok, I downloaded it and extract it. Then I change to the
388927 [shortcutter ] What exactly do you mean by that?  Do you expect the output in result
388930 [jon.forums g] FWIW, I use 1.9's open3 lib in a custom git cmd to slurp combined

^ [ANN] binman 0.0.1
388926 [sunaku gmail] binman - UNIX man pages for Ruby bin/ scripts

^ Reading CSV files into arrays and then comparing
388928 [khalidaslam ] I am working on a small project which requires two 2-dimensional
388929 [shortcutter ] For that Arrays are not well suited since the lookup is slow.  Rather
389005 [khalidaslam ] Thanks robert,
389009 [khalidaslam ] I am having some trouble in making a hash using appropriate keys as

^ [ANN] binman 0.1.1
388931 [sunaku gmail] binman - UNIX man pages for Ruby bin/ scripts

^ 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 gmai] 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 gmail] * "eventually" method for async polling assertions

^ [ANN] redcarpet-manpage 0.0.1
388936 [sunaku gmail] RedcarpetManpage - UNIX man page renderer for Redcarpet2

^ [ANN] binman 0.1.2
388937 [sunaku gmail] binman - UNIX man pages for Ruby bin/ scripts

^ [ANN] binman 1.0.0
388940 [sunaku gmail] Sorry for the frequent release announcements.  Now my enthusiasm is
388942 [botpena gmai] hmm, interesting. now, if only i could combine this w ara's main...
389003 [sunaku gmail] You could write a Rake task to mimic binman's Rake task which pre-compiles

^ 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 stevek] 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 bitwi.se] What=E2=80=99s the best way of checking if an argument has been given or no=
388950 [jakekaiden y] class A
+ 388951 [now bitwi.se] Perhaps I wasn=E2=80=99t clear enough.  It shouldn=E2=80=99t be possible fo=
+ 388952 [matma.rex gm] You can use this syntax, too. "args" becomes an array of all arguments given.
  388954 [now bitwi.se] ven.
  388961 [now bitwi.se] How is this a solution (to anything)?
  388970 [luke.gru gma] Hmm, if you really don't want to use the splat *args, you could create a
  388972 [jens.wille u] class A
  + 388973 [adam apresco] What's the situation this code is going to be used in?
  + 388975 [now bitwi.se] Yes, of course!  That=E2=80=99s the trick I saw too; checking if the option=
    + 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 gma] things up first.
| 388978 [jeremy bopp.] 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/

^ Beginning
388947 [zombiegenera] charset="us-ascii"
+ 388948 [jakekaiden y] i think which tutorial is best is a question of individual tastes and
| 389040 [ml convalesc] I disliked "Why's poignant guide" to ruby, because since I'm not native =
+ 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 =
| + 388956 [cmdjackryan ] Phillip Gawlowski
| + 388984 [steve stevek] Hackety Hack maintainer here. Thanks for trying it out, we're gearing
+ 389018 [josh.cheek g] Absolutely not!
| + 389041 [ml convalesc] I'm not considering my self a programmer, but I messed with ruby at =
| + 389224 [dragriesti c] Google Josh Cheek.
|   + 389225 [josh.cheek g] Aww ^_^
|   + 389318 [zombiegenera] charset="UTF-8"
+ 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 gmail] 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 lin] 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] charset="us-ascii"
+ 388957 [Joec_49 hotm] =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] charset="us-ascii"
+ 388969 [jeremy bopp.] -Jeremy
+ 389010 [joec_49 hotm] 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-4-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 gmail] I works very well for me because my release numbering is consistent
388980 [sunaku gmail] 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] charset="utf-8"
+ 388983 [jeremy bopp.] 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 yours=

^ Table of contents
388982 [sasogeek yah] 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 bopp.] 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 tin.it] 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 investf] 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 segm] 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] to
| | 389057 [jgabrielygal] I guess, looking at the problem description, that you are learning
| | 389058 [s-unguyen2 h] t =
| | 389059 [jgabrielygal] String#split returns an array of strings, so yes, you need to
| | 389078 [s-unguyen2 h] t =
| + 389091 [s-unguyen2 h] t =
|   389092 [botpena gmai] break down the problem into smaller ones.
|   389093 [s-unguyen2 h] While moon sets
|   389097 [botpena gmai] 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
threads.html
top