255414-262525

255143-261800 subjects 255634-256345

^ Querying MySQL from a select box form
255414 [robison.bran] I don't even know how to explain the weirdness of this one except to
+ 255415 [dzwell gmail] (Sorry--this may be a double send.)
+ 255515 [onebitcipher] On the security side of things you might want to code some input validation

^ Rakefile question
255419 [magicloud.ma] Dear all,
255468 [rubynando ya] having 2 different tasks that call the same ruby code, and one child

^ Default IRB Directory
255420 [rpgaction gm] I'm new to Ruby, and I've never used a similar language that could be
+ 255476 [email2nilez ] In commnad prompt type irb
+ 255512 [vasudevram g] Create a shortcut on the Windows Desktop for IRB using Windows
| + 255513 [vasudevram g] to do it. From your description it looks like you're not familiar with
| + 255566 [nobu ruby-la] ruby -C "somewhere you want" -S irb
|   257035 [vasudevram g] Cool, didn't know that, thanks. Good thing I came back to look at this
+ 255520 [dejan.dimic ] Can you be more specific what you try to achieve?

^ Advising JRuby code from AspectJ?
255423 [ sue sue.net] We're developing a RESTful web application, and we're looking at running
255498 [deanwampler ] "Advising" methods with behavior before, after, or around the method

^ How to access response code with mechanize
255424 [tjacobs-sndr] I have a code segment which is intended to catch ResponseCodeError
255425 [aaron tender] begin
255490 [lparravi gma] begin

^ Unit testing idiom
255429 [alex blackke] It's always bothered me having code and unit tests in different places -
255463 [rick.denatal] I don't know that I agree with your premise.  While it might seem

^ how to use a ActiveScaffold to list a page not the first one
255431 [gaoxt1983 16] Now I use active scaffold to generate list page, but now I must use

^ executing sudo from ruby
255438 [kazaam oleco] I wanna execute in a script of mine commands like: "sudo apt-get clean"
+ 255441 [fwmailinglis] charset="US-ASCII"
+ 255443 [useless usel] sudoeruser ALL=(ALL) NOPASSWD: /usr/bin/nano,/usr/bin/apt-get
| 255444 [kazaam oleco] thanks for your answers but that are no options here. I know hardcoded
+ 255445 [leslieviljoe] I am not so clear on what you are asking here, but you can perhaps give a
+ 255446 [alex blackke] Wouldn't a setuid root script that actually calls the executable you're
  255448 [kazaam oleco] the thing is that everything needs to be done by this script and no
  + 255451 [alex blackke] After a little experimentation (on Ubuntu), it would seem that the only
  | + 255472 [kbloom gmail] To run your editor, you'd probably need to use the -t option of ssh to
  | + 255514 [d_rems yahoo] How about running job in a cron under root user.
  + 255464 [hutch recurs] If you aren't worried about security, you might try expect. Using
    255487 [kazaam oleco] thanks for the hint but I only found this about
    255504 [hutch recurs] I used the unix version of the command directly. The man page is

^ [Ruby] Has any one created a FaceBook app in Rails
255439 [arjun4ruby g] Has any one created a Face Book app in Rails?  If yes can we get some
255526 [james.herdma] It's on my to-do list.  I'll let you know once I get headed in that

^ [ANN] Garden's Point Ruby.NET compiler 0.8 beta released
255440 [leslieviljoe] Since I see no mention of this on the list, below is the announcement I

^ Bug in String#unpack on windows or ??
255450 [d_rems yahoo] I am trying to save attachment(s) from mail read with net/imap.
255452 [alex blackke] Try File.new('att.tif','wb+').write(att).  From memory, the 'b' in 'wb+'
255453 [fred lacave.] Mode   Meaning
255457 [shortcutter ] That's what I would do for binary files.  It also helps documenting.
255570 [d_rems yahoo] Yep. Thats it. Thank you guys.

^ Passing args from within method_missing
255454 [phillipsds y] I have an hash of code blocks(procs?), @styles, and am trying to call
+ 255460 [stefano.croc] def method_missing style_type, *args
| 255465 [phillipsds y] Certainly does. I knew it would be something simple, just couldn't
+ 255461 [wonado donne] Isn't "@styles [style_type].call(*args)" what you are looking for?
+ 255489 [rick.denatal] def method_missing(symbol, *args)

^ sorting arrays within an array by the first object in...
255456 [michael.ders] I have a parent array of child arrays.
255459 [james graypr] parent_array.sort_by { |child_array|
255611 [dangerwillro] You have to wonder though... If you need the parent sorted, do you

^ define_method to define a method to pass a block to another method
255458 [jjfraney ver] I would like to define the following method, func, using define_method
255496 [novakps gmai] Sorry I don't have time to work out a more complete answer, but check
255636 [jjfraney ver] Paul,
255685 [george.ogata] Correct.

^ Getting Ruby
255467 [Reid.Thompso] Given that Debian and UBUNTU break ruby up into a multitude of sub
+ 255474 [crowell07 li] On a related topic, it turns out that if you try to compile ruby
| + 255479 [peter peterc] That's not been the case for me installing on Ubuntu, where I only
| | 255493 [rick.denatal] Same experience here.  However it should be noted that although this
| + 255480 [not gentoo.o] # ruby -v
| + 255481 [znmeb cesmai] I suspect your system isn't configured correctly. I've re-compiled Ruby
|   255539 [crowell07 li] Other people have posted that it works fine for them with ruby 1.8.
+ 255500 [akulbe gmail] Here is my tutorial for installing Ruby/Rails on Ubuntu.  I hope this is
  255510 [Reid.Thompso] I guess I was a bit terse in my original email.  What I was hoping to

^ File.new and non-existent directories
255483 [jtkimbell ya] I may be wrong, but after some testing it appears to me that when I
+ 255484 [lparravi gma] You could use Dir::mkdir or FileUtils#mkdir to create a directory
+ 255485 [jameskilton ] You are correct, File.new creates files, not directories.
  255486 [peter peterc] require 'ftools'
  255495 [jtkimbell ya] Thanks everyone for your help!

^ why writing the file is partial
255488 [chen_li3 yah] Thank you for your valuable inputs for my previous post.
255491 [shortcutter ] Reading and writing one file at the time is a dangerous thing to do -
255497 [rick.denatal] Right,  I think what's happening here is that he reads the first line,
+ 255499 [chen_li3 yah] What am I supposed to do if the replacement is not same size?
| 255503 [rick.denatal] Write to another file, then rename when you are done.
| 255537 [shortcutter ] And you can even do it in a one liner.  See ruby's command line options
+ 262525 [chen_li3 yah] Now I work on a small project with deals with process files and upgrade

^ Manual Garbage Collection
255494 [spam woodsc.] building.  For some reason(which I haven't identified but I suspect is
+ 255501 [rick.denatal] Not very likely, the GC if anything tends not to free objects which
| 255536 [cwoods cfene] Ok, I'll see if I can find(and hey, maybe disable) ruby-gnome's
| 255542 [cwoods cfene] If anyone is interested in knowing more, I've continued this thread in
+ 255502 [jameskilton ] You can GC.start to run it manually. If you can I'd recommend trying to

^ Ruby Hash Querying
255505 [kwestin gmai] I am new to Ruby and have run into a small snag. I have a hash like
+ 255507 [kwestin gmai] OK I answered my own question...sorry. But here is the answer in case
+ 255509 [Daniel.Kempk] The ":whatever" is a Ruby-Symbol, and you're trying to kinda "fake" it
  255511 [kwestin gmai] Great thank you. That is too easy. I am liking this.

^ How can I get the local machine's netmask programmatically?
255519 [wolframarnol] I'm working on a Rails app that needs to restrict certain privileged
255530 [jan.svitok g] what operating system? windows/linux(distribution?)/osx?
255547 [wolframarnol] Linux.
255550 [Reid.Thompso] Create a socket and pull it from the socket structure.
255555 [Reid.Thompso] see if this works....????
255627 [list.rb gmai] I spent quite a bit of time last night trying to figure this out to no
+ 255630 [Reid.Thompso] 1) I was previously aware of RubyInline  -- so didn't have to
+ 255632 [Reid.Thompso] ...

^ [ANN] Remindre of Ruby User Group Meeting for Milwaukee tonight at 5:20
255521 [tdjordan gma] "Nothing will ever be attempted, if all

^ Text/GFX rendering. Which lib ?
255522 [mathieu.chap] Dears,
255523 [doodpants ma] On Jun 13, 4:40 pm, "Mathieu Chappuis"
255640 [mathieu.chap] You probably right, as a text-mode afficionados I've neglected such libs.

^ Re: Learn to Program, by Chris Pine
255525 [vineire77 gm] tremendous help. I have a quick question on Chapter 11 - Reading and
+ 255527 [donald.ball ] the 'w' option opens the file for writing.
| 255534 [vineire77 gm] Thanks, donald. I don't know why I missed that before.
| + 255605 [onebitcipher] Probably because it makes more sense to people new to Ruby when the code is
| + 255609 [dangerwillro] You will do well to make notes on File and read/write modes!
+ 255532 [agorilla gma] It's the file 'mode'.  w = write.
+ 255533 [perrin apoth] Looking at it, I see that File.open is sometimes a synonym for File.new,

^ [Ann] Labrador-0.0.1 pre alpha released
255528 [robert.dober] the very diligent folks from RubyForge have approved my request early
255531 [robert.dober] this might be useful ;)

^ question: referencing a variable with a variable
255538 [just_a_techi] I come from a perl background.  I have gotten in the habit of using
+ 255540 [just_a_techi] s/print $$var_name/print $$this/
+ 255543 [gavin refine] In Ruby, a variable is a reference to an object. While you can create
+ 255590 [misaka pobox] I don't think that symbolic references directly supported in Ruby, but
+ 257562 [erik hollens] There are no soft references in ruby. However, you can use symbols to
+ 257569 [robert.dober] Sorry if I am asking something stupid here but my $perl ;) days are

^ mechanize newbie
255541 [bladenut gma] Okay, Ruby in general newbie, but I did the whole shovell project for
255546 [jeff.fry gma] that what you are trying to do is super easy in Watir: http://openqa.org/watir
255608 [onebitcipher] Colin
255642 [bladenut gma] Nathan,

^ ruby/eclipse in a mixed language project
255545 [jeff.fry gma] The shop I'm working for has a bunch of (non-GUI) test automation

^ decrypt challenge - perl encrypt with ruby decrypt
255548 [aktxyz gmail] Ok, so I am trying integrate with someone who is sending me a string
255612 [onebitcipher] The problem with your code is that you are using two different encryption
255869 [martin snowp] des-ede3-cbc       Three key triple DES EDE in CBC mode

^ Twain and sane
255549 [giulianisanc] How to access a scanner using ruby through twain and sane ?

^ Ruby Syntax and SOAP Web Service
255551 [   me me.com] I need a good tutorial to show how to create a RUBY
255565 [bmunat gmail] I never did find a decent tutorial on using SOAP in Ruby. However, I

^ more mechanize
255553 [bladenut gma] Okay, I managed to get mechanize to login for me. Now I am pulling
255564 [aaron tender] puts page.body

^ Dynamically referencing class constants?
255554 [list.rb gmai] How can I do this?
+ 255556 [cdcarter gma] Socket.const_get("SEEK_CUR")
| 255568 [list.rb gmai] A++
+ 255557 [Reid.Thompso] puts "Socket::#{i}"
  255558 [Reid.Thompso] doh!!! sorry, missed the dereference...

^ rubyscript2exe on OS X
255559 [kw codebykev] Anyone using rubsyscript2exe on Mac OS X to generate standard Mac
255580 [ariekusumaat] try use platypus http://sveinbjorn.org/platypus
255615 [kw codebykev] Any examples of Ruby-Tk applications that are deployed in this fashion?
255661 [dangerwillro] Depends what you want to do.

^ ruby chinese character encoding problem with SQL
255560 [bobras747 gm] My SQL query has some chinese characters which are getting messed up.
255577 [AEtzold gmx.] Dear Bob,

^ form handling using ruby
255567 [budhotei gma] I'm a newbie to ruby and web programming. I created a very simple html
255604 [dangerwillro] Hey Mark,

^ How to detach mail attachments with Net::IMAP
255571 [d_rems yahoo] Since documenattion on this topic is very "non existing" I thought I

^ Mail Using SMTP Problem
255572 [dgirdhar arc] Please help me to resolve the following issue. When i am running
255575 [dan fluentra] Remove the spaces from in front of the second 'END_OF_MESSAGE'. The end
255576 [dgirdhar arc] Thanks Dan, it is working.

^ How to functional test a action that render a partial
255573 [gaoxt1983 16] or just update some doms, of cause using rails functional test

^ Dir copy with rename
255574 [Gilbert.Rebh] i want to copy a dir recursive with all files included,
255582 [skoot ideico] Are you sure the code you posted here is the code you really run?
255585 [Gilbert.Rebh] now i have
255587 [shortcutter ] Your basic flaw seems to be that although the subject talks about "copy
255594 [Gilbert.Rebh] /*
255596 [skoot ideico] The standard procedure with 'find' utility, when performing recursive
255598 [Gilbert.Rebh] /*
+ 255601 [skoot ideico] 1) copy the structure
+ 255669 [charles.nutt] JRuby does have fileutils...are you sure your environment is set up
  255693 [Gilbert.Rebh] Behalf Of Charles Oliver Nutter

^ [ANN] raop-client 0.1.0 Released
255578 [aaron tender] raop-client version 0.1.0 has been released!

^ installed mysql gem on windows but it isn't working
255579 [grehom ntlwo] require 'dbi'
255701 [grehom ntlwo] I waded into this code using the -r debug option and it seems that the

^ Problem using net/ftp om SunOS 5.8 - libgcc_s.so.1 not found
255581 [funkytwig gm] compress_n_ftp.rb: fatal: libgcc_s.so.1: open failed: No such file or

^ Subject: [ANN] textpow 0.9.1 Released
255583 [dichodaemon ] textpow version 0.9.1 has been released!

^ Re: Subject: textpow 0.9.1 Released
255584 [dan fluentra] Hmmmm, can you explain how multiple subtractions in scopes work?
255893 [dichodaemon ] Well, I've found them while debugging the Brilliance themes in
255934 [dan fluentra] Yes, I see them now. OK thanks for the tip.

^ REACH Technologies
255589 [dglmohankuma] <a href="http://www.reach-tech.com">REACH Technologies</a>

^ RAILS: problems loading fixtures
255591 [mark.swinson] I'm having a bizarre problem getting my fixtures to load when running my

^ [SUMMARY] Mexican Blanket (#127)
255593 [james graypr] Several solutions to this quiz called out to RMagick to draw pictures of their

^ [ANN] Ruby2CExtension 0.2.0 -- Now with optimizations
255595 [dbatml gmx.d] I am happy to announce the release of Ruby2CExtension 0.2.0.
255603 [eric.mahurin] Thanks Dominik!

^ "case when" executes a symbol as method
255599 [fla synapps.] I just stumbled upon some interesting behaviour of case when and wanted
+ 255602 [twifkak comc] Syntax/whitespace thing. No special meta-magic.
+ 255607 [dblack wobbl] when "Hello": hello
  + 255657 [fla synapps.] Thanks David and Devin for pointing that out! Looks like the syntax
  + 255921 [drbrain segm] Oh good, now I have a real reason to hate 'when blah:' (besides it
    255933 [nobu ruby-la] Don't mind, it is deplicated in 1.9.

^ [ANN] soap4r-1.5.6
255600 [nakahiro sar] 'SOAP4R' is an implementation of SOAP 1.1 (W3C Note).

^ ezcrypto
255613 [ bob bob.com] require 'ezcrypto'
+ 255616 [jameskilton ] And you are posting this to Ruby-lang why? Sounds like you didn't even try
| 255617 [onebitcipher] The manual actually sucks, but I would still recommend joining the ezcrypto
+ 255643 [james dimsum] Hmmm I get the same problem, seems like it dies if the file is greater
  + 255646 [onebitcipher] Without seeing your code I can only speculate what the root problem is, but
  + 255711 [james dimsum] here's some basic code that will encrypt a file with blowfish and CBC,
    + 255712 [james dimsum] Also note that it does not write the IV at the beginning of the file,
    + 255775 [onebitcipher] It seems like you would need to add padding to this method to encrypt the
      256024 [james dimsum] File.open("test.enc",'wb') do |enc|

^ appending the contents of multiple text files into 1 file
255614 [pdanese Rib-] is there a simpler/more idiomatic way to append/join the contents of
255624 [stefano.croc] File.open('C:\mynewfile.txt','w') do |f|

^ gems on Debian
255618 [seti_out tqu] after installing rubygems package in Debian, i can't seem to use the
+ 255620 [caduceass gm] This may be a dumb question, but I've seen a lot of people missing
+ 255628 [bas van-gils] =20

^ [Rake] call a task of a namespace from an other task.
255619 [stephane.wir] I try to call a task of a namespace from an other task !
255635 [showaltb gma] Well, you're not strictly "calling" the task. You're making it a dependency.
255696 [stephane.wir] yes, sorry.

^ Re: call a task of a namespace from an other task.
255621 [stephane.wir] Ok, I found a solution but I don't know if it's a good solution.

^ help
255622 [mark sitesol] help
255625 [Reid.Thompso] Help is on the way -- should be there shortly.
255782 [dangerwillro] Perhaps we should set up a "helpmarkhenderson" site?

^ Runtime disparity - Same program in Perl and Ruby
255626 [kaldrenon gm] the two versions, though.
+ 255639 [dummy exampl] Did you write it in basic or in Perl?   :-)
| + 255644 [kaldrenon gm] Thanks for the reply, John. There are a number of good tips in your
| | 255868 [bik.mido tis] Just try.
| + 255867 [bik.mido tis] return unless -f and /^\S+_\d{3}/;
+ 255648 [oga_emmanuel] It would help to have a view into the input file an to know what your

^ Building 1.8.6-p36 with Sun Studio 12 compiler
255631 [markea01 sbc] All -
255935 [nobu ruby-la] There are also {get,set,make}_backtrace functions, they have no
threads.html
top