297791-299153

297513-328159 subjects 297970-401285

getpass
297791 [yanghatespam] ...
297792 [cmdjackryan@] def getpass
297807 [yanghatespam] Thanks for prompting me to provide some context.  getpass() is a
+ 297809 [cmdjackryan@] In that case, you'll need a C extension.
+ 297811 [jeremy@hi eg] Its not the getpass method, but has the same affect using Highline
+ 298042 [kbloom@gm il] getpass() is not a POSIX anything.
  298074 [silverdragn@] Sorry if I'm doing this wrong, but how do I get off the mailing list?
  298078 [caduceass@gm] From http://www2.ruby-lang.org/en/20020104.html ...

intro a new ror website
297798 [moolao@gm il] Posted via http://www.ruby-forum.com/.

Re: rdoc 2.0.0 Released
297801 [moolao@gm il] up

how to assignee each value to correspoding  key while updat.
297806 [bishnuprasad] **--my problem is that i get key and value .but i have to save in

Saving form fields not working
297812 [rajat79@gm i] ...
+ 297813 [julian@co et] I think the problem is with
+ 297814 [julian@co et] By the way, this question should be asked of the rails list, not the
  297856 [rajat79@gm i] ...

var = nil if false; p var.nil? #=> true | bug of the day ?
297815 [ariekusumaat] I tested it using Ruby 1.8.6 patch 111 and also Ruby 1.9.0 (revision 15968).
+ 297816 [dave@pr gp o] Ruby sees you have a local variable called 'var'. It hasn't been given
| 297824 [ariekusumaat] Ok, I got it, thanks Dave.
+ 297817 [cmdjackryan@] 15968).
| 297829 [shortcutter@] Be careful when testing issues that involve local variables in IRB.
| 297837 [ariekusumaat] Oh I see, thanks for reminding Robert.
+ 297823 [d_rems@ya oo] irb(main):001:0> a = 1

[ANN] RubyGems 1.1.1
297819 [drbrain@se m] Release 1.1.1 fixes some bugs.
+ 297822 [ara.t.howard] thanks very much eric - much appreciated!
+ 297861 [matt@ti bi s] Seems to be working just great on my Mac OS X - thanks as always! m.
+ 297901 [ezmobius@gm ] Rock on Eric and the gems team!

need to  call  the script from the excel sheet
297821 [pranjal.jain] I had written a script & I want to run that script via Excel Sheet

how to create random object  to a particular ruby object ?
297827 [bad_good_lio] how to create random object  to a particular ruby object ?
+ 297839 [shortcutter@] Number range?
| 297845 [robert.dober] I am surprised that you are so permissive Robert ;).
| + 297846 [robert.dober] oops, whats going wrong in my brain I was 100% sure that && was a
| | 297850 [dblack@ru yp] I'm not sure what the exact rule is, but for operators I think you
| | 297857 [robert.dober] No David
| | + 297859 [m.fellinger@] Because the use of these operators is that in some cases you don't
| | | + 297862 [robert.dober] Missing the obvious, I was right after all, thank you Michael.
| | | + 297864 [phasis68@ho ] I don't think so.
| | + 297866 [dblack@ru yp] & isn't an operator, though; it's a method. I don't know whether
| |   297874 [robert.dober] I guess that this is the reason of which I fail to see the reason, but
| + 297868 [shortcutter@] I'm not getting the joke here, sorry.  Is it somehow related to the
|   297872 [robert.dober] well I would not consider 0 a boolean, but maybe that was what OP wanted.
|   297876 [shortcutter@] And a random sequence of 0's would look funny. :-)
|   297878 [robert.dober] It does indeed, I am in great form today, but at least you understand
+ 297893 [martindemell] The cleanest way is to add the class method make_random to all your
  297966 [vjoel@pa h. ] module ObjectSpace
  297972 [shortcutter@] This does not work well for Strings because you get only instances that
  + 297982 [shevegen@li ] Actually I think I would not say "side effects", I would rather claim
  | 297990 [shortcutter@] Even if you would not use that term it is the proper CS term for what's
  + 297995 [vjoel@pa h. ] I did say "wrongest" ;)

Match string from possible strings
297831 [johnnybutler] Ive looked about and found some ways to do this but there must be a 1
+ 297834 [bbxx789_05ss] if [string1, string2, string3].include?('Test')
+ 297835 [elof@el f. k] This looks like a potential Ruby Quiz challenge.
+ 297838 [micathom@gm ] Does "match" mean "is equal" or "match a regexp"?
+ 297840 [TimHunter@nc] What's wrong with
+ 297852 [phasis68@ho ] Is this what you want?
| 297853 [johnnybutler] Yes,
| 298305 [pdanese@Ri -] Also, using the facets gem you can turn "include?" around using "in?",
+ 297854 [j.swallow@pr] I am currently looking for Ruby on Rails Web Developers for a permanent

Re: RubyGems 1.1.1
297832 [sgwong513@ho] 'Nothing to update' return when I do 'gem system update' on gem version
+ 297833 [sgwong513@ho] Exception `NameError' at
| 297836 [Bil.Kleb@NA ] Does
| 297863 [luc@ho k- on] Does not work for me either...
| 297870 [luislavena@g] If you try to update from a previous version (1.0.1) works without
+ 297926 [drbrain@se m] I waited until it appeared in the index for me before posting.
  298438 [gerardo.sant] $ gem list -r rubygems-update
  298440 [drbrain@se m] sudo gem --version ?=
  298489 [gerardo.sant] $ sudo gem --version
  298700 [drbrain@se m] I fear there may be a bug, does sudo update_rubygems fix it?=
  298705 [gerardo.sant] It seems that the packager didn't include update_rubygems. I found it
  298709 [drbrain@se m] That is the RubyGems 1.1.0 updater, not 1.1.1.
  298712 [gerardo.sant] It worked!

Trying (and failing) to load specific version of gem
297841 [B.Candler@po] I wonder if someone can help with a problem which I'm sure is very simple
+ 297843 [jan.svitok@g] ...
+ 297847 [B.Candler@po] require 'rubygems'

RFC: Suggestion for tools for Ruby 1.9 instruction code manipulator?
297842 [rocky.bernst] Suppose I want to write something that dynamically (i.e. at run-time)

How to duplicate a object changing the class without attributes memory copy
297844 [ibc@al ax ne] headers_array
+ 297967 [vjoel@pa h. ] Why do you need a From class that is distinct from Header? Depending on
| 298016 [ibc@al ax ne] Because in an initial parsing I just get a headers array, whiotu
| 298127 [shortcutter@] IMHO it is more efficient and less error prone if you create
| 298177 [ibc@al ax ne] I'm doing a SIP protocol parser. In SIP a repeated request can be received=
+ 298180 [gwtmp01@ma .] You can not change the class of an object in Ruby.
  298207 [ibc@al ax ne] =20
  298212 [Gennady.Byst] puts header.name.object_id
  298249 [ibc@al ax ne] Ohh, that's annoying for me!
  + 298264 [jgabrielygal] new object.
  + 298306 [Gennady.Byst] You do not change the value, you just assign a reference to a new string. T=
    298322 [ibc@al ax ne] a="AAAA"

Re: how to assignee each value to correspoding  key while up
297848 [bishnuprasad] final solution is

imap.fetch results in segfault (Ubuntu Dapper LTS, amd64)
297851 [alang@cr no ] update (http://www.ubuntu.com/usn/usn-596-1) a mail script I have that

remove me
297855 [ggats11@ya o] Please remove me from ruby talk mailing list.

Sending emails
297860 [lists@pe n. ] Is there a gem for sending emails?
297865 [thorsten@80 ] look for attachment, this should allow to add images, i guess (didn't
297869 [lists@pe n. ] But surely that is a Rails solution, not a Ruby solution?
+ 297889 [rick.denatal] actionmailer is a separate gem like activerecord.
+ 297906 [jftucker@gm ] How about EventMachine with it's SmtpClient, I love it :-)
+ 297911 [cmdjackryan@] No reason that ActonMailer is limited to Eails alone. ;)
  297913 [gthiesfeld@g] You might also want to look at MailFactory
  297916 [cmdjackryan@] Oh, that looks good. Thanks for the tip. :)

Zlib file decompression EOL issue
297871 [pierre-olivi] I'm trying to decompress some .gz files with zlip. Here's the code that

Designing Namespaces
297877 [transfire@gm] I find it curious that whenever I design an application and begin to
297885 [ara.t.howard] child classes should be inner classes - saves a ton of typing
297896 [robert.dober] Very interesting approach Ara, allow me to express some skepticism
298030 [ara.t.howard] i've gone back and forth a few times
298081 [shevegen@li ] Yes documentation is important, especially about teaching other people,

[QUIZ] Word Search Generator (#159, again)
297879 [matthew.moss] Okay, hopefully the third time with #159 is the charm. I decided to
298382 [adam.shelly@] Here's my solution - it's mostly brute force, but it does attempt to

Re: Word Search Generator (#159, again)
297881 [matthew.moss] If you want a list of words to play with (aside from "zero" to

surprise in sub
297882 [matt@ti bi s] irb(main):001:0> s = "\\\\"
+ 297910 [amberarrow@g] s is changing because you assigned to it, not because of using it
| 297938 [matt@ti bi s] You're missing the point... m.
| 297959 [botp@de mo t] # You're missing the point... m.
+ 297950 [celtic@sa ry] ...
+ 297985 [cmdicely@gm ] Nope, using the string (s) as the second parameter of sub did nothing to alter
  + 297994 [caduceass@gm] When I first read the post, I immediately wanted to strike out with a
  + 298059 [matt@ti bi s] I didn't say that s was altered. I said that the string you provide as
    298225 [botp@de mo t] # I didn't say that s was altered. I said that the string you=20

[ANN] Tulsa Ruby Workshop, April 26th
297883 [james@gr yp ] I wanted to get the word out about the upcoming Tulsa Ruby Workshop.

delete_if, select and (lack of) delete_if!, self.POLS == false
297884 [saku@yt i. i] Hey everyone,
+ 297886 [ara.t.howard] array.select{|element| not orginal_condition(element)}
| 297888 [dblack@ru yp] odds = [0,1,2,3].reject {|i| i.even? }
| 297891 [robert.dober] I guess even I could come up with an odd solution. (t'is 1 funny maybe?)
+ 297887 [dblack@ru yp] You should use #reject, which is non-destructive.
  297890 [saku@yt i. i] Thanks everyone for fast reply.
  + 297892 [robert.dober] No, I agree with you but OTOH not many seem to see the need for this
  | 297899 [saku@yt i. i] Hmm yeah, so you'd name them something like this?
  | 297900 [saku@yt i. i] Actually just inside out, reject! should be select(&blk)
  | 297914 [robert.dober] No, not quite
  | 297915 [saku@yt i. i] irb(main):001:0> class Array;def reject!(&blk)
  | 297917 [dblack@ru yp] select is selecting all the even ones, and reject! is rejecting all
  | 297918 [saku@yt i. i] Are you talking about your example or my example? They did different thing,
  | 297920 [dblack@ru yp] Having reject return the non-rejected entries is what I was referring
  | 297922 [saku@yt i. i] Ok, so your intention with your example was to show how you think
  | 297923 [dblack@ru yp] There's no general principle at stake; I'm just saying that if you
  | 297925 [saku@yt i. i] I see what you mean, and I fully agree that changing existing
  | + 297927 [ara.t.howard] think about that
  | | 297930 [saku@yt i. i] I was more thinking something along the lines
  | | 297947 [ara.t.howard] [ 'a', 'a', 'a' ].select{|x| x == 'a'}
  | | 297968 [saku@yt i. i] Yes but if condition needs variable from outer loop (that is, in
  | + 298112 [shortcutter@] irb(main):001:0> a = (1..10).to_a
  + 297898 [dblack@ru yp] So you want a kind of #keep_if ?
    297902 [saku@yt i. i] Just to implement the previous suggestion correctly(tm) this time.

[ANN] ditz 0.2 Released
297894 [wmorgan-ruby] ditz version 0.2 has been released!

Which way is the best way to require another file in .rb
297903 [eddyxu@gm il] I put all source in to lib/ path, and named a lib/foo path for my foo
+ 297904 [saku@yt i. i] Push path to $:?
| 297905 [eddyxu@gm il] push it in every file or in the root file such as bin/foo.rb? if in
| 297908 [saku@yt i. i] Sorry, I misunderstood it as ad'hoc requirement. If it's always
| 297912 [eddyxu@gm il] Thank you all.
+ 297907 [chris.hulan@] The default load path includes '.', so if the file is in the same

Ruby is Almost Ready!
297919 [avdi@av i. r] Down in the dumps because Ruby's just not ready for the enterprise?
297921 [cmdjackryan@] Don't forget Dynamic-UML, where charts mutate to fit your needs...
297924 [gethemant@gm] Although timing is a little late I hope. I was expecting it to be ready
297937 [shevegen@li ] Yeah but you never know. Months later you visit some webpage, and think

How to check record duplication before saving?
297928 [shuhao.tsao@] I am a beginner in ruby programming and I have a minor question about
+ 297929 [dave@pr gp o] Try creating a unique database index that spans the two columns.
| 297940 [shuhao.tsao@] Thanks for your help, but the situation in A=1, B=2 or A=2, B=1 that
| 298021 [rick.tessner] You could try creating a third column.  Let's suppose that you know that
| 298069 [shuhao.tsao@] Thank you everyone, I have found out the solution which is
| + 298070 [ara.t.howard] cannot work - the concept itself is fatally flawed and can never be
| + 298071 [ara.t.howard] bit more on the topic
+ 297932 [cmdjackryan@] Most database systems can handle that, be defining a UNIQUE constraint
  + 297933 [dave@pr gp o] Sure it will- you define the unique index to span the two columns, and
  | 297936 [RubyTalk@gm ] If you are using Rails and migrations
  | 297939 [shuhao.tsao@] Thanks for your help, but the situation in A=1, B=2 or A=2, B=1 that
  | 297948 [caduceass@gm] You probably have a primary key constraint on one of the columns
  | 297998 [caduceass@gm] That probably sounded bad.  Sorry.
  | 298014 [RubyTalk@gm ] I like to use guids for ids.
  + 297943 [shuhao.tsao@] Thanks for your help. I just used Instant Rails 2.0 for developing.
    297946 [cmdjackryan@] As far as I can see, you have to iterate of all the present records to

irb error on osx 10.4.11
297931 [dhuebsch@ma ] irb
+ 297975 [bbxx789_05ss] vim
+ 298002 [has.temp3@vi] Did you build Ruby yourself? If so, note that Tiger's readline is
  298012 [dhuebsch@ma ] The build suggest by Dan fixed the problem. In the dim dark past of my

Looking for Hidden Gems
297935 [james@gr yp ] I'm hunting for some gems that are under loved, off the beaten path,
+ 297951 [znmeb@ce ma ] IIRC NArray has never been packaged as a gem! Talk about under-loved! ;)
| + 297952 [james@gr yp ] Just, to be clear, I'll take non-gems if they are worth the effort.  I
| | 297965 [vjoel@pa h. ] Was surprised by this and by the existence of an rbtree gem. Yay!
| + 297958 [ara.t.howard] narray (0.5.9.4)
+ 297957 [ara.t.howard] require 'gsl'
| 298060 [james@gr yp ] I bet that's great library, but, not being a scientist, I'm probably =20
| 298066 [ara.t.howard] A) it's the single biggest ruby project after rails.  think about that!
| + 298126 [cameron.mcbr] I just want to agree with Ara.  A substantial benefit of GSL is that
| + 299153 [james@gr yp ] Sorry for the delayed response, I've been on vacation.
+ 297961 [drbrain@se m] require 'rubygems'
  + 297974 [botp@de mo t] # $ gem spec -r progressbar | grep date
  + 298061 [james@gr yp ] Thank you Eric.  I will try to comb through this list and see if

Need help in option parser
297941 [kagohaik85@h] I am using optionparser to take in arguement. However, it seems like the
+ 297942 [TimHunter@nc] Depends on what O/S and shell you're using. In most Linux shells those
+ 297944 [RubyTalk@gm ] Try putting 1&2 in quotes "1&2".  & | < > are used by the terminal.
+ 297945 [cmdjackryan@] Try to use a 'dir > text.txt', or 'ls > text.txt', or 'dmesg | grep a'

missing openssl.so in x86_64-linux/
297949 [jnylund@ya o] I am running centos 5.0 (64 bit) and want to run ruby 1.8.6 and rails.
297955 [gethemant@gm] Did you had openssl library and its devel package installed before
297979 [jnylund@ya o] yes, have both, it wouldnt have created the 32 bit version if I didnt

Writing a customised Ruby interpreter with Rice
297953 [celtic@sa ry] I don't normally write on the topic of Ruby itself, but I figure this

snmp Gauge 32 .to_s or .to_i ???
297956 [linux@pi rd ] does anybody have an idea how to tranform a Gauge 32 value into a
298209 [linux@pi rd ] changed the code to the following lines

exec with environment?
297962 [mahatmamanic] I am running a Ruby script which needs to set some environment variables
+ 297963 [ara.t.howard] require 'systemu'
+ 297964 [vjoel@pa h. ] This doesn't do what you want?
+ 297973 [shortcutter@] Homegrown solution would be
  297984 [shevegen@li ] I believe something like
  + 297988 [ara.t.howard] only if you are into clobbering the environment of the parent -
  + 297991 [shortcutter@] This is not what the OP asked for IIRC.  He wanted to modify the
    298362 [mahatmamanic] Yes, apologies if my original question was not clear.  I have a Ruby
    + 298367 [shortcutter@] Are you sure?
    + 298376 [_mwryder@wo ] If you are "permanently" changing the environment have you tried using
threads.html
top