262605-271097

262406-277069 subjects 262786-264086

^ encryption (of credit cards)
262605 [joevandyk gm] Ignore the fact that it's a ActiveRecord model and tell me if the
262614 [joevandyk gm] One alternative I came up with is to use some combination of a unique

^ CGI: triggering a file download & having a page appear
262606 [reiff public] I'm fairly new to fast-cgi/CGI programming and I have a particular
262608 [shortcutter ] No. One request, one response.  Maybe you can do a multipart response

^ Re: how to make a[2][3]=4 work?
262607 [fsormok inbo] Thanx Mark

^ Dash in SOAP variable name
262611 [xshabo gmail] First the code of my little script. I am trying to get some infromation
262612 [john johnlea] sounds like you might have found a bug in the soap library.
262616 [xshabo gmail] nope. unfortunately it gives wrong number of arguments (1 for 3)
262628 [dejan.dimic ] You should post your question to http://groups.google.com/group/soap4r
262635 [xshabo gmail] I've done it already.

^ gem installation without documentation
262613 [sy1234 gmail] I've got Ruby running on my palmtop, and I don't want to waste the
+ 262621 [rob rawb.net] I believe you can pass --no-rdoc and --no-ri to the gem command.
+ 262623 [wieczo.yo go] Try "gem help install". It will list you all options including
  262632 [sy1234 gmail] Aha.  I worked through some of the help system but misunderstood how

^ Problem creating SOAP Request
262615 [matthewjsumm] I am trying to do a soap request to the Mapping Service Map24.
+ 262630 [dejan.dimic ] You should post your question on http://groups.google.com/group/soap4r
+ 262642 [nakahiro sar] When you use a Hash as a parameter, you need to start from a parameter name.
  262653 [matthewjsumm] Thanks for your response I really appreciate it.
  262745 [nakahiro sar] should generate request elements with earlier soap4r versions.

^ How to substitute a string with  different size
262629 [chen_li3 yah] I deal with a mixture of text and binary file. I want to search a
262654 [bob.yang.dev] What do you mean 'unpreditable result'? Do you mean that the size of 'str'
262662 [chen_li3 yah] Actually what I try to do is to replace  one string with another string
262664 [a2800276 gma] It sounds like there's some sort of index at the beginning of the file
262865 [chen_li3 yah] I don't know FACS either but I ask the technical services and they say

^ Multiple matching with ()*
262631 [akirosspower] I'm Alessandro from Italy and I started using ruby some days ago,
+ 262636 [jan.svitok g] if "x1A2B3C4Dz" =~ /^(x)((?:\d\w)*)(z)$/
+ 262637 [jan.svitok g] if "x1A2B3C4Dz" =~ /^(x)((?:\d\w)*)(z)$/
| 262640 [akirosspower] Mh well, to me it seems a normal regex processing (i mean, it *should*
| + 262648 [shortcutter ] irb(main):006:0> s="x1A2B3C4Dz"
| | 262652 [akirosspower] Thanks, this is an interesting solution!
| | 262907 [shortcutter ] Give special attention to my usage of the reluctant qualifier which is
| + 262655 [botpena gmai] seems like you have a pattern within a pattern.
+ 262638 [list.push gm] Try this.
| 262639 [akirosspower] Thanks, but i need to match the pattern OR don't match anything.
| + 262643 [list.push gm] str = "lol1a2vasd"
| + 262734 [list.push gm] Sorry, I misunderstood what you wanted.
|   262972 [akirosspower] Yep, it's like this.
|   262980 [ed.odanow wo] I don't think, that this will be "nice"...
|   263325 [akirosspower] Wonderful :)Thanks!
|   263462 [shortcutter ] irb(main):002:0>
|   263464 [ed.odanow wo] I am waiting for this Christmas gift too...
+ 262721 [ed.odanow wo] irb(main):001:0> "x1A2B3C4Dz".scan

^ knowledge management in OSS communities
262633 [zilia.iskouj] Dear members of Ruby Group,
262641 [phlip2005 gm] Thanks; that was well-rounded and thorough!

^ knowledge management in OSS communities
262634 [zilia.iskouj] Dear Members of Ruby Talk Group,

^ Looking for gram.y
262645 [pedz easesof] I am looking for the Bison (or yacc) file used to create ext/syck/gram.c
262780 [jan.svitok g] ...

^ redefining methods
262646 [ara.t.howard] i was playing with this last night, thought some here might be
+ 262680 [dohzya gmail] redefining :foo do
| 262685 [ara.t.howard] absolutely.  and when define_method takes a block that would indeed
+ 262690 [pit.capitain] alias_method_chain, I can't comment on which is better, so just a few
| + 262700 [Bil.Kleb NAS] Yes.
| + 262702 [ara.t.howard] indeed you could/would.  just playing now.  patches welcome! ;-)
| + 262711 [ara.t.howard] i played some cannot seem to come up with a way to avoid having the
|   + 262713 [robert.dober] Wow can you read my mind :), you fixed it already!! Very impressive
|   + 262723 [pit.capitain] Ara, I didn't mean you don't need a stack of modules, but you don't
|     262901 [ara.t.howard] updated (and new commenting finally ;-) )
|     262965 [pit.capitain] Thanks, Ara, but it's still your original idea and design. I only
+ 262712 [robert.dober] As Etienne and Pit pointed it out (guys are you using 1.9 and pointing

^ Unexpected behavior with multidimensional arrays
262651 [aarmbruster ] I need a 3-dim array. The following attempt shows some unexpected
262686 [tim.pease gm] This is a very good question -- a classic in the ruby-talk archives.
262694 [aarmbruster ] Thanks Tim,
+ 262697 [alex blackke] If it's the object is an immediate (like a Fixnum, or a symbol) you
+ 262699 [tim.pease gm] In ruby, constructing an array and adding the same object multiple
  262701 [dzwell gmail] I agree with you on this point. However, I can't think of a situation
  262705 [aarmbruster ] Hmm,

^ Bug that eats sql
262656 [hellolinus g] I might have found bug that eats sql.
262739 [dzwell gmail] You'll have better luck with your question in the Rails forum/mailing
262789 [hellolinus g] I submited it as bug http://dev.rubyonrails.org/ticket/9158

^ Re: Australia or Canada, which one is the best country for a
262657 [aarmbruster ] can't speak for Australia, never been there.

^ Shut down Ruby interpreter as last command of a script?
262665 [sunburned.su] Is there a command I can issue in the last command of a script to shut
262687 [tim.pease gm] exit
+ 262688 [sunburned.su] Thanks Tim.
+ 262689 [sunburned.su] Thanks Tim.

^ ActiveRecord without Rails
262668 [ari aribrown] BEGIN { puts "hey all" }
+ 262670 [vshepelev im] Corresponding chapters of AWDwR[1] are the best source AFAIK (despite the
+ 262671 [robby.lists ] * http://intertwingly.net/blog/2005/08/09/Rails-Confidence-Builder
+ 262674 [wieczo.yo go] Here's a console app using it
+ 262675 [ben bleythin] What do you need to know?  You can (more or less) just install
| 262703 [Reid.Thompso] in case you're not limiting yourself to ActiveRecord...
+ 262676 [mark ociweb.] ...

^ Making a XML::Parser App Multithreaded
262678 [nappin713 ya] since it uses only one core.  Maybe this is more of a SAX question, but
262906 [shortcutter ] Not the parsing part, because there is no way that you can parallelize
263109 [nappin713 ya] It's pretty much the parsing that I need to speed up, so it looks like

^ [QUIZ][SOLUTION]Crossword Solver (#132)
262679 [jamesbkoppel] Sorry for the delay; ruby-talk-ctl suddenly decided to stop working for me.=

^ posting problem
262681 [mark ociweb.] ...

^ help with string matching
262706 [sdsurfgeek g] logdate = "#{@calendar1.year}-" + (@calendar1.month + 1).to_s +
+ 262709 [nobu ruby-la] Isn't "2007-7-30"?
| 262715 [sdsurfgeek g] Yes, it logdate is returned as a string.
+ 262710 [dzwell gmail] What is logdatepattern, and what is its relation to logdate?
| 262716 [sdsurfgeek g] Apologies, I tried to pear down the post and left that out accidentally.
| 262718 [dzwell gmail] I don't know what @calendar1 is, so I can't reproduce this, but I
| 262719 [sdsurfgeek g] You guys are geniuses! Thanks Nobu & Dan Z!
+ 262720 [gthiesfeld g] => "2007-07-30"
  262722 [sdsurfgeek g] logdate = "#{@calendar1.year}-" + (@calendar1.month + 1).to_s +
  262724 [gthiesfeld g] Easier to read, I think. Or if you're using a Date object, you could
  262729 [sdsurfgeek g] I see. Also easier to imagine the output when you call it as %Y-%m-%d.
  262732 [gthiesfeld g] Ahh, I made some pretty bad assumptions about what you were trying to
  262733 [sdsurfgeek g] Oh, no. Your suggestions were great. I combined your earlier suggestions

^ Candlestick charts in Ruby
262708 [amslonewolf ] stock/technical charts using Ruby?
262753 [znmeb cesmai] You could probably hack something up pretty quickly on Windows if Excel
262765 [znmeb cesmai] Now that I think of it, point and figure charts might make an
262767 [znmeb cesmai] More info ... it doesn't look like "oocalc" does candlesticks. However,
262817 [james graypr] suggestion@rubyquiz.com

^ Tk: setting window class
262717 [marcin studi] I need to set (or at least have a sensible value of) X window class for
262854 [nagai ai.kyu] I'm very sorry. That is a bug. The 'classname' argument doesn't work.
262873 [marcin studi] Thanks. This works.

^ find search word within a string
262726 [ribi schwing] I would like to search in a string a user-defined word and I want to
262728 [tim.pease gm] String#scan

^ problems with archive-tar-external
262730 [a.l.w.kuijpe] as a ruby newbie I am trying to build a small script using Daniel
262735 [dzwell gmail] "include" has a lower case "i".
262798 [a.l.w.kuijpe] guess I was quite tired. Thx!

^ clean urls, without directory structures....not sure what its called.
262731 [thredden gma] I have just recently learned the practice of clean uri/urls, combined
262737 [sam sammorri] Take a look at your .htaccess file. You could easily set up some rewrite

^ change method Array.new? (Was: Unexpected behavior with multidimensional arrays)
262736 [dzwell gmail] What would you guys think about removing the second parameter from
+ 262824 [tim.pease gm] Submit an RCR  => http://rcrchive.net/
+ 262831 [kaldrenon gm] Anecdotal evidence doesn't exactly merit a real rebuttal, but I found
+ 262835 [dblack rubyp] I love not confusing newcomers, but at the same time I don't think
  262952 [dzwell gmail] I do like more than one way to do things, but the confusion created by

^ Any experience with Bluehost?
262740 [joviyach gma] I am looking for hosting for RoR, but I'd also like to be able to do
+ 262751 [perrin apoth] I've had nothing but good experiences with Bluehost so far.  I hear
+ 262768 [bsimmers cmu] I had Bluehost for a while and they aren't great for Rails sites.  They
  + 262770 [perrin apoth] Hmm -- hostingrails.com looks pretty good.  I'm going to have to check it
  + 262925 [joviyach gma] Thanks! I will definitely check that out. I am just getting started
    262927 [wayneeseguin] charset=US-ASCII;
    270322 [toastkid.wil] I'm disappointed with bluehost because
    + 270329 [wayneeseguin] charset=US-ASCII;
    | 270334 [toastkid.wil] Thanks for the recommendation Wayne, but i'm a poor student and can't
    | 270395 [wayneeseguin] charset=US-ASCII;
    | + 270416 [toastkid.wil] hmm, looks interesting.  My app is in the amateur rather than pro league
    | | 270433 [wayneeseguin] charset=US-ASCII;
    | | 270436 [toastkid.wil] I guess what i meant was "would it be suitable for a student, who can't
    | + 270441 [alex blackke] If EC2's an option, then any old virtual machine would probably do the
    + 271097 [celtic sairy] Have a look at Dreamhost. They're alright, I use them.

^ Running Ruby Program from Mac OS X Desktop
262742 [alex.decaria] I have a Ruby program on my Mac desktop and when I double click on it,
+ 262744 [ari aribrown] You need to use the command line. Open up Applications -> Utilities -
| 262752 [dangerwillro] You need to set the permissions to make it executable.
+ 262759 [ruby-talk do] It kind of depends on what your looking for.  If your wanting to run
+ 262766 [rubyforum we] Look at Platypus which does exactly what you want.
+ 262777 [matt tidbits] You need to give the program the .command extension and set it to open

^ [ANN] Last Call for the Hoedown!
262746 [ntalbott gma] The Ruby Hoedown, the first southern regional Ruby conference,

^ Tweak RDoc to transclude a function into another function's documentation
262747 [phlip2005 gm] A recent post here, by Robert Dober, showed how to tweak RDoc to add a raw

^ TK for web application
262748 [gyg22 163.co] Is TK suitable for rails "web" application?It seems that TK is for
+ 262750 [parvindersin] helo
| + 262754 [gyg22 163.co] TK is used to build graphic user interface.
| + 262755 [diegoslice g] ...
|   262764 [gyg22 163.co] thank you!
|   262779 [knut.wehr go] what do you mean with "more attractive"? If you would like to improve
+ 262788 [deBeer scien] I have used tcl/TK on the web once or twice via the tcl-plugin (
+ 262795 [nagai ai.kyu] When you want to run a Tk GUI on a client browser,
  262800 [gyg22 163.co] Thank you!Your explaining have made me clear about TK in ruby.I have to
  + 262803 [rphillips en] I have a fondness for OpenLaszlo, and OpenLaszlo can produce either
  + 262806 [dangerwillro] You just need to learn CSS.

^ Railless ActiveRecord
262749 [ari aribrown] Hey all. More ActiveRecord trouble.
+ 262758 [gregory.t.br] I show how to do this on page 2 of my "How to build simple console
| + 262762 [ari aribrown] Thanks! The ActiveRecord::Schema part was what I needed.
| + 262763 [ari aribrown] Also, is there anything special I need to do when creating a column
|   262807 [dangerwillro] Yes.
|   262830 [ari aribrown] has_many :platypi?
|   262871 [dangerwillro] Ari,
+ 262760 [dangerwillro] Rails uses something called migrations.
+ 262888 [luke madstop] FWIW, I'm also using ActiveRecord outside of Rails, it might help to
  262893 [ezmobius gma] Luke-
  262895 [luke madstop] I do have concurrency set to be allowed, and yes, I'm using a

^ [ANN] ar_mailer 1.3.1 Released
262769 [drbrain segm] ar_mailer version 1.3.1 has been released!

^ Using .Net SOAP service
262771 [hasham2 gmai] I am getting this error while trying to access .NET based SOAP Web
262776 [ben benburke] p driver.GetVals(SOAP::SOAPString.new("136"))
262811 [hasham2 gmai] Thanks Ben,
262928 [nakahiro sar] Thanks Ben for answering.

^ Re: ar_mailer 1.3.1 Released
262773 [hasham2 gmai] Cool! I earlier had to use rail mail plugin to spool email messages in

^ [ANN] Ruby-VPI 18.0.0
262778 [ snk gna.org] Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI

^ Dynamic method call
262782 [andrea.masch] I'm trying, for the purpose of making something similar to a grammar, to do
+ 262784 [has.sox gmai] To call an arbitrary method on an object use send
+ 262785 [phillipsds y] I'm not sure of why you need to implement it like this, but that's up
  262791 [andrea.masch] Thank you very much guys, it worked. I was doing this for the purpose of
  + 262827 [gregory.t.br] method_name(2,3) if condition
  | + 262882 [andrea.masch] the problem is that method_name is a static call, i need to make it dynamic
  | | + 262883 [gregory.t.br] I still don't quite understand the problem you're tring to solve, but
  | | | 262960 [andrea.masch] Ok, Gregory, now i understand that i didn't explain very well. The only part
  | | | + 263001 [james graypr] if_is_true(condition) { do_something(...) }
  | | | | 263041 [gregory.t.br] and
  | | | | 263138 [botp delmont] # do_something(..) if condition
  | | | | 263144 [gregory.t.br] Sure, that could be helpful, but I'm not sure how you came up with
  | | | + 263002 [promos burch] This may be slightly different, but I am calling a method dynamically
  | | |   + 263005 [stefano.croc] If the content of the tool variable are exactly the method names, then you
  | | |   + 263006 [dblack rubyp] Unless I'm missing a subtlety, you could also do that as the somewhat
  | | |     + 263021 [promos burch] Thanks for the shortcuts - I didn't know either of these techniques
  | | |     | 263352 [deanwampler ] You could still get the same benefit by setting up a hash of name-value
  | | |     + 263039 [wayneeseguin] charset=US-ASCII;
  | | + 262886 [dohzya gmail] def sendif( args, &bloc )
  | |   263368 [bas van-gils] Damn, that's elegant!
  | |   263438 [gregory.t.br] sendif 1 < 2, :then => [:p, "gagne"],  :else => [:puts, "perdue"]
  | |   + 263439 [evanwebb gma] if 1 < 2
  | |   | 263441 [gregory.t.br] Full ack, though if you look through some of the mess we have seen in
  | |   + 263478 [dohzya gmail] sendif 1 < 2, then: [:p, "gagne"], else: [:puts, "perdue"]
  | |     263479 [robert.dober] let us make it cheaper then
  | |     263578 [dohzya gmail] the 2 arguments are valued BEFORE calling the function...
  | + 263211 [novakps gmai] Andrea,
  |   + 263243 [dchelimsky g] Actually, we already have integration with Watir built into spec/ui
  |   + 263279 [andrea.masch] Thanks a lot, Paul, I'll take a look for sure
  + 263213 [dblack rubyp] if 5 is greater than 3
    263284 [andrea.masch] Yes, probably i started this post not imaging it would be difficult to
    263346 [gregory.t.br] What still bugs me is that you are using a dynamic call where there is no need.
threads.html
top