398504-403783

398310-399051 subjects 398673-399563

How to create an EXecutable file (Linux)
398504 [lists@ru y- ] Can any one please tel me how to create an Executable for the ruby
+ 398505 [ryand-ruby@z] Even if you did compile it, like c, the password would still be accessible..=
+ 398521 [lists@ru y- ] I don't think this is possible yet. (ruby is a interpreted language)
| 398522 [jam@ja an be] It sounds like your question is really "how do I obfuscate a password in a s=
+ 398523 [lists@ru y- ] Maybe you should try to use jRuby, I heard there is a possibility to
| 398524 [lucevers@gm ] We are using JRuby , compile the src file and start the file via a small
| 398527 [matthew@ke w] It's not really "reverse engineering" to run `strings` on an ELF file,
+ 398577 [lists@ru y- ] Another option would be to read your sensitive information from a dot
| 398584 [lists@ru y- ] thats  a way .. thanks for this advise
+ 398581 [lists@ru y- ] Encrypt the password?
| 398583 [lists@ru y- ] what you mant by this ?
| 398592 [lists@ru y- ] Look up the gem "crypt19". It's a nifty encryption tool that you can use
+ 398582 [art@ar ta lo] charset=us-ascii

Save a file by clicking on a link
398506 [lists@ru y- ] I clicked a link to download a file using ruby, now I see the open-save
+ 398513 [lists@ru y- ] I'll assume that you're referring to webdriver and a link within a
| 398528 [lists@ru y- ] What if I am using IE? or Chrome?
+ 398531 [lists@ru y- ] You'd probably write a separate function to determine the most recent
| 403416 [lists@ru y- ] Does latest version of "selenium-webdriver" would support such
| 403418 [lists@ru y- ] Please aboid my last comment. Thank you very much to share this. But
+ 403421 [lists@ru y- ] @profile['browser.download.manager.showWhenStarting'] = false
| 403422 [lists@ru y- ] Okay! Thanks. You are awesome. Okay with "selenium-webdriver" is it
+ 403427 [lists@ru y- ] while @driver.windows.count > 1
| 403430 [lists@ru y- ] With your above code,if three pop-up windows generated for any actions
+ 403431 [lists@ru y- ] My first example closes all except the main window. My second example,
| 403433 [lists@ru y- ] Perfect! No more questions, all understood! Thank you very much :)
| 403499 [lists@ru y- ] #Automatically download files to a given folder profile settings
+ 403500 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
| 403501 [lists@ru y- ] profile['browser.helperApps.neverAsk.saveToDisk'] =
+ 403503 [lists@ru y- ] profile['browser.helperApps.neverAsk.saveToDisk'] =
+ 403504 [lists@ru y- ] I meant go look up the MIME type of the file you're having trouble with,
| 403556 [lists@ru y- ] Is it possible to pause the next set of statements until the download is
| 403566 [lists@ru y- ] I need to rewrite this at some point, it was a quick-fix and doesn't
| + 403611 [lists@ru y- ] Can we rename the files during their download?
| + 403757 [lists@ru y- ] =================================
+ 403613 [lists@ru y- ] During the download, no. After the download, yes.
| + 403624 [lists@ru y- ] Yes, That was the confirmation I was expecting. Hum,If it can be done
| + 403713 [lists@ru y- ] In the webpage there is file : "Christopher Herman BR.bmp"
+ 403716 [lists@ru y- ] the above line what are we doing?
| 403724 [lists@ru y- ] Could you please answer my above said questions?
| 403726 [lists@ru y- ] So that a variable called difference exists for the next line, and is
+ 403720 [lists@ru y- ] difference = Dir.entries(@download_directory) - @current_downloads
| 403721 [lists@ru y- ] Can you do me a favor by re-writing it? I am totally confused here.
+ 403723 [lists@ru y- ] difference = Dir.entries('C:/').reject {|f| f =~ /.part\z/ } -
+ 403762 [lists@ru y- ] Almost everything can be done differently. You just have to tailor the
| 403768 [lists@ru y- ] OMG! Still not working.
| 403772 [sto.mar@we .] I did not follow this thread, but I am pretty sure that
| 403777 [lists@ru y- ] Yes! Exactly this I have followed and made the code working: One change
| 403783 [sto.mar@we .] Bravo!
+ 403769 [lists@ru y- ] Try increasing the interval (to 1 or more for testing purposes). Perhaps
+ 403774 [lists@ru y- ] sleep(0.1) while Dir.glob('(Path)/**/*.part*')[0] != nil
| 403778 [sto.mar@we .] No prompting, please!  :)
+ 403779 [lists@ru y- ] head.empty? = true
| 403781 [sto.mar@we .] You probably mean
+ 403782 [lists@ru y- ] I don't write pseudo-code carefully :)

Finding methods inside a scope
398507 [lists@ru y- ] Suppose I have a scope
+ 398508 [lists@ru y- ] Those are method *calls*, not method definitions.
| 398510 [shortcutter@] Also the call to #plate does not introduce a scope.  If at all the
+ 398511 [lists@ru y- ] I'm instance_eval-ing the plate block and then trying to hook up method
| 398512 [shortcutter@] Yes, that's regular behavior for every object.
+ 398610 [lists@ru y- ] Sorry, I should have posted more code. The code below does not work but
| 398611 [shortcutter@] That line above does not make sense since you can only include a
+ 398613 [lists@ru y- ] What I was trying to do was to define methods inside Events via
+ 398615 [lists@ru y- ] To put it bluntly: I think you've kind of got lost in all that
+ 398616 [lists@ru y- ] Hmm...
  398620 [shortcutter@] Do you mean 12-15 different types of events?

watirweb chrome - unable to find chromedriver executable
398509 [lists@ru y- ] I have kept files from

unexpected kend expecting $end
398516 [lists@ru y- ] str = File.open('rename.rb','w')
+ 398517 [hmaddocks@me] kend means the Ruby keyword 'end'
+ 398520 [lists@ru y- ] I do not think you need the las line "end" and i thing you are not

Add a string end of the line
398518 [lists@ru y- ] i m reading a line from a file
+ 398519 [lists@ru y- ] lastresult = File.open('regex.tmp')
+ 398526 [ixti@me be .] File.open('regexp.tmp') do |fd|

=?windows-1256?Q?Re:_A_Ruby?= =?windows-1256?Q?_Book_(fre?= =?windows-1256?Q?e_to_use)=FE?=
398529 [richard.whit] ...

Watir webdriver, IE on ubuntu
398530 [lists@ru y- ] I can run chrome and firefox, but I have no idea how to have IE on
+ 398533 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
| 398535 [lists@ru y- ] I did it.. but no help.. but I think I need a driver which should be put
| 398544 [jam@ja an be] Always gave me good results. What have you tried so far?
+ 398545 [lists@ru y- ] We'll just have to wait for a reply from someone who has the combination

Sending Email feature - wrt Rails
398532 [lists@ru y- ] I am new to Rails &  I had the rails 3 setup on my windows

FlexMock 1.0.0 Released
398534 [lists@ru y- ] = FlexMock 1.0.0 Released

unsubscribe
398536 [zeke.kirkpat] unsubscribe

deleting directories matching a pattern
398537 [lists@ru y- ] I cannot believe I'm having trouble with this - it should be utterly
+ 398538 [chris.hulan@] what code do you have so far?
+ 398539 [eliezer@ng e] it's pretty strait forward.. loop all over the directories to match any
+ 398540 [lists@ru y- ] require 'fileutils'
  398550 [shortcutter@] I offer

Would you merge repeating code even when it's get more complex?
398541 [lists@ru y- ] very similar. That means some lines do exactly the same once for
+ 398542 [jam@ja an be] Uncle Bob commands: extract methods till you drop. Extract your repeated cod=
+ 398555 [josh.cheek@g] I think the problem here is confusion about object system. I don't see any

Is calling system() from a thread suppose to be safe?
398543 [rgs@ri de .n] Hey there,
+ 398546 [shortcutter@] Can we first look at your call to system and surrounding code?
| 398559 [rgs@ri de .n] system() happens inside vpn_down(). As you can see the main thread is
| 398687 [akr@fs j. rg] It seems Process.waitall takes the child process spawned by system().
| 398891 [rgs@ri de .n] It does!
+ 398634 [lists@ru y- ] Considering the message about conversion from nil to integer, I'd expect
| 398639 [shortcutter@] cmd = "sudo kill -9 -#{@ncui_pid}"
+ 398657 [lists@ru y- ] Can you add a line which puts the cmd value out before triggering the
+ 398658 [lists@ru y- ] I don't know if this is relevant as I don't use VM, but I noticed it in

Add a line into a file at multiple locations above a existing line
398547 [lists@ru y- ] I am working a ruby code to append lines to a existing file at some
+ 398549 [shortcutter@] Just iterate the file line by line and output the new line before you
+ 398553 [lists@ru y- ] The easiest way to do this is to read the file, edit it as a string, and
  398572 [rubytalk2dav] That depends how big the file is.  If it's a gig or two, you might not

Gateway ruby-talk ML -> ruby-forum
398548 [lists@ru y- ] I just noticed that apparently answers on the mailing list side do not

Re: Would you merge repeating code even when it gets more complex?
398551 [lists@ru y- ] I haven't looked to thoroughly but for example this calls for

Working with strings - pdf-reader
398552 [lists@ru y- ] I want to get all the strings of character from a given text, suppose
398554 [lists@ru y- ] look into the "split" method for strings. You can create an array by

Re: JRuby 1.7.0.preview2 released
398556 [lists@ru y- ] which means I'm sticking with 1.6 for now.

Compile ruby 2.0 for profiling (gperf)
398557 [lists@ru y- ] I would like to profile ruby 2.0. I compiled it with CFLAGS='-O0 -pg',
398558 [ryand-ruby@z] ...

Parsing unix filenames from STDIN
398563 [david@wi .i ] file.txt
+ 398564 [botpena@gm i] try ARGV, eg,
+ 398568 [sean.ohalpin] require 'shellwords'
  398605 [shortcutter@] 2. One can as well use the usual iteration for reading lines from files.
  + 398622 [sean.ohalpin] Good point. I agree.
  | 398784 [david@wi .i ] Sorry for the delay. Thanks for the pointer to Shellwords and to iteration, guys!
  + 398785 [david@wi .i ] if $stdin.tty?

Webcam as a light sensor.
398567 [lists@ru y- ] How I can do that? I found one lib, but it's only for linux and I need
+ 398573 [lists@ru y- ] You did not even provide the name of the lib.
| 398574 [matma.rex@gm] I believe there are no libraries dealing with webcams in Ruby. Sucks :(
+ 398575 [lists@ru y- ] I found this http://rubydoc.info/gems/camcapture/0.3.0/frames

SQLite3 retrieve id value always [] (nill)
398570 [ml@co va es ] I want to add an entry to an SQLite3 table and then retrieve the 'id' =
398571 [ml@co va es ] forget it :-)

[ANN] text-hyphen 1.4 Released
398578 [halostatue@g] text-hyphen version 1.4 has been released!

What do you use to create Graphs\3D in ruby? GD?GD-2?
398579 [eliezer@ng e] I want to create some graphs from logs I analyze.

Status of Rubinius?
398580 [lists@ru y- ] Anyone knows the status of Rubinius?
398586 [quintus@qu n] As far as I can tell, Rubinius doesn¡Çt lose any momentum. Their

Are jobs allowed?
398587 [lists@ru y- ] Am I allowed to post job openings here? I don't want to be rude. But I
+ 398588 [peterhickman] A reasonable command of japanese would be to your advantage :)
+ 398589 [ixti@me be .] AFAIK there's no such limitations: http://rubyhacker.com/clrFAQ.html
| 398590 [jonanscheffl] If recruiters are permitted to start posting to the list these conventions
| 398711 [ixti@me be .] I partially agree with you. But if recruiters will follow strict
| 398720 [sean.ohalpin] True, but they will still be cluttering up the mailing list archives,
| 398743 [ixti@me be .] Didn't thought about it. Must admit, I'm totally agree now.
+ 398591 [sean.ohalpin] This mailing list is about the Ruby language, not jobs. I for one would
+ 398614 [lists@ru y- ] Got it. Thanks, all. I will reserve my posts for non-recruiting
+ 398759 [transfire@gm] ...

Threading methods & args
398594 [lists@ru y- ] Well, this is my simple port scanner
+ 398595 [sduncan@we a] *) You only launch one thread
+ 398596 [lists@ru y- ] This makes no sense. What you're doing is create a single thread at the

The Ruby greener test challenge - Thank you
398597 [luislavena@g] Back in June I've requested for Ruby developers wanting to help fix
+ 398600 [josh.cheek@g] 68J
+ 398612 [mo_mail@on h] As a user of Ruby also on Windows, I would also like to thank all those

Starting rails pointing to /usr/lib/env
398599 [lists@ru y- ] I am using Ubuntu system in which i had previously installed Ruby
398601 [botpena@gm i] check your path

[ANN] text-hyphen 1.4.1 Released
398609 [halostatue@g] text-hyphen version 1.4.1 has been released!

Re: Ruby On Rails
398618 [lists@ru y- ] FYI, I'm not on the JRuby mailing list but I still saw this. I'm on the

JRuby 1.6.8 needs your help
398623 [headius@he d] By popular demand, we'll be putting out a JRuby 1.6.8!

#passing value instead of constant.
398626 [lists@ru y- ] search="id"
+ 398627 [sduncan@we a] Is this some kind of rails voodoo? What happens if you switch it to;
+ 398628 [matma.rex@gm] In the first example you're using a string, in the second a symbol.

WatirGrid or else?
398629 [lists@ru y- ] I want to distribute testing tasks to diffrent machines (2-3), I am

nokogiri xpath query with text containing "&"
398630 [lists@ru y- ] I am trying to run some xpath queries on a XML file. But it seems
398631 [shortcutter@] That's not true.  The issue is with your understanding (or lack
398633 [lists@ru y- ] Thank you very for your encouragement. I hope you have an understanding
+ 398635 [lists@ru y- ] Question not the capabilities of Nokogiri or ye shall be judged! :)
| 398636 [lists@ru y- ] What are you judging? Such a cruel forum.
| 398637 [lists@ru y- ] That was a joke. And now stop whining, please.
+ 398638 [shortcutter@] You're right.  That was a bit rude.  I apologize.
  398640 [lists@ru y- ] Thank you for the apology. Honestly i could not focus on the rest of it.
  398642 [shortcutter@] I am not sure I understand.  You asked a perfectly legal question.

watirgrid provider error-`gem_original_require': no such file to load
398632 [lists@ru y- ] provider -d watir -c druby://127.0.0.1:11235

force child threads run paralelly?
398641 [lists@ru y- ] I have created two child thread using main thread- child1 and child2.
+ 398643 [shortcutter@] Normally they run in parallel - there are some limitations on MRI
| 398645 [lists@ru y- ] Thank you very much for replying quick!
+ 398644 [lists@ru y- ] ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
| 398648 [tony.arcieri] This version of Ruby (also known as MRI, Matz Ruby Interpreter, and also
| + 398650 [lists@ru y- ] Could you tell me the version's which allow multithread parallelism?
| | 398652 [lists@ru y- ] sudo update-alternatives --config ruby 1
| | + 398654 [headius@he d] There are only four Ruby implementations that can run threads
| | + 398681 [lists@ru y- ] I want to draw attention to my question again, sorry for asking some other things.
| |   398708 [tony.arcieri] rvm install jruby
| + 398651 [andreev00@gm] Sorry for jumping in, but Tony, can you please explain what the idea is
|   + 398655 [shortcutter@] You can still get enough concurrent execution for a large class of
|   | + 398659 [lists@ru y- ] kindly clear me .. my confusion over why people has stopped
|   | | 398661 [wishdev@gm i] Google is your friend
|   | + 398662 [whitequark@w] It does not, at least not by itself. Ruby 1.9 requires a proper
|   |   398663 [tony.arcieri] A minor nit: depending on who you ask, the phrase "green threads" is the
|   |   398665 [whitequark@w] I think that the term "userspace threads" works for any protected-mode
|   + 398660 [tony.arcieri] By mapping Ruby Threads onto native threads, several threads can be
+ 398671 [lists@ru y- ] Use JRuby or IronRuby : they do not use Giant Lock ...

dynamic class resolution?
398646 [lists@ru y- ] The following is going to start off sounding Rails-specific, but if you
+ 398647 [lists@ru y- ] I guess the subject of the post was poorly titled. It probably should
+ 398656 [ryand-ruby@z] You probably want to look at const_missing. Watch out and make sure you alwa=
  + 398704 [lists@ru y- ] Thanks, Ryan! Looked into that more yesterday and learned about
  + 398722 [lists@ru y- ] Ok, I figured it out and put it up on GitHub and Rubygems if anyone is

Re: Welcome to our (ruby-talk ML)         You are added automatically
398649 [gildas.malom] ...

[ANN] OverSIP Proxy released
398653 [ibc@al ax ne] This is the first SIP (RFC 3261) proxy/server fully programmable in
398669 [botpena@gm i] +1 hacker ;-)

nokogiri/ruby and troublesome characters in url
398664 [lists@ru y- ] I'm very new to using ruby, and I can't seem to figure something out
+ 398667 [abinoam@gm i] (In my setup) the line...
+ 398697 [lists@ru y- ] Thanks for the reply Abinoam.
| 398952 [abinoam@gm i] Dear Sybren,
+ 399085 [lists@ru y- ] Are you testing your code by inserting an href by hand, something like

version of ruby compatible with watirgrid and multithreading
398666 [lists@ru y- ] Please suggest me version of ruby compatible with watirgrid and

Regex Non Greedy Match
398668 [lists@ru y- ] I am trying to get a non-greedy match, but am unable to do so.  What may
398670 [lists@ru y- ] re = /@\[Subject:\d+\|(.*?)\]/
398683 [shortcutter@] In this case we can also use a character class which excludes closing
398705 [lists@ru y- ] Excellent!  Thanks very much, Robert!

What is happening here, Batman?
398672 [lists@ru y- ] to the roman-numeral question. This one is new to me, given the material
+ 398678 [lists@ru y- ] 1) 'D' * 3 = repeat string 'D' three times = 'DDD'
+ 398679 [andreev00@gm] 1) basically it takes your 1999 and convert it to the Roman numerals, see
+ 398706 [matma.rex@gm] The first line sets the variable "roman" to an empty string. The
threads.html
top