Ruby on Windows beyong 1.8.6 how to install?357 (4/18/2009 4:31:19 PM) comp.lang.ruby on page http://www.ruby-lang.org/en/downloads/ for Ruby 1.8.7 and beyond, there is no one-click installer, so how do we install it? by unzipping it and setting some path in autoexec.bat or something like tha... SpringFlowers
Ruby 1.9 still cannot list all files on Vista or XP?1744 (4/8/2009 5:59:54 AM) comp.lang.ruby I just tried using Ruby 1.9 and it seemed that it still cannot list all files in a folder on XP or Vista when the filenames contain Chinese characters, Japanese characters, or any foreign characters other than ... SpringFlowers
h() or html_escape() not escape the single quote... risky?266 (9/27/2008 7:28:45 PM) comp.lang.ruby so h() is an alias for html_escape() and they convert the following 4 characters & " into < > & " the single quote is not converted... I just wonder sometimes we happen to wr... SpringFlowers
Moving all files in a folder to another hard drive1340 (8/24/2008 12:33:46 PM) comp.lang.ruby I have some code below to move all files in a folder to another hard drive (which has 2TB of space). It runs well except that whenever a filename has some international characters, then the line if File.file?... SpringFlowers
making Ruby a standard browser side language641 (4/15/2008 1:25:33 PM) comp.lang.ruby it looks like Prototype was made to mimic Ruby in Javascript, and people who use Prototype usually love it. I wonder if Ruby can be made into another browser side language and what can make that happen? If Fi... SpringFlowers
is Mac really virus free? why is there a security patch?3583 (3/19/2008 9:10:16 AM) comp.sys.mac.apps It is usually said that the Mac has no virus... as in "zero" or "none".... now there have been security patches... and so... if there is no vulnerability, then why are there security patches? if there is v... Summercool
newbie question for XML.. why array == 1st element232 (3/1/2008 3:16:52 AM) comp.lang.php it seems quite strange that the array also prints out as element 1 in the array in the following: the second print_r() statement... printing out an array actually prints out the first element... Code: =======... Summercool
shorter form of concat950 (2/4/2008 1:26:25 AM) comp.lang.ruby the following line will concat "1" all the way to "10"... but is there a shorter way... like x . y or must it be this long? p (1..10).inject{|x,y| x.to_s + y.to_s} also... x.to_s + y won't cause y to conve... SpringFlowers
regular expression negate a word (not character)133 (1/26/2008 3:30:19 AM) comp.lang.php somebody who is a regular expression guru... how do you negate a word and grep for all words that is tire but not snow tire or snowtire so for example, it will grep for winter tire tire retir... Summercool
regular expression negate a word (not character)2664 (1/26/2008 1:16:31 AM) comp.lang.perl.misc somebody who is a regular expression guru... how do you negate a word and grep for all words that is tire but not snow tire or snowtire so for example, it will grep for winter tire tire reti... Summercool
[QUIZ] Making Change (#154)10254 (1/25/2008 3:50:38 PM) comp.lang.ruby The three rules of Ruby Quiz: 1. Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. 2. Support Ruby Quiz by submitting ideas as of... james8284(4404)
how does sort work?840 (2/2/2008 11:39:50 PM) comp.lang.ruby I'm confused as to how the sort method works. If I have: a = [ "d", "a", "e", "c", "b" ] I know that a.sort {|x,y| x y } (or just .sort) = ["a", "b", "c", "d", "e"] and a.sort {|x,y| y x } = ["e", "d", "c"... chris.sepic(2)
shorter form of concat950 (2/4/2008 1:26:25 AM) comp.lang.ruby the following line will concat "1" all the way to "10"... but is there a shorter way... like x . y or must it be this long? p (1..10).inject{|x,y| x.to_s + y.to_s} also... x.to_s + y won't cause y to conve... Summercoolness(256)
newbie question for XML.. why array == 1st element232 (3/1/2008 3:16:52 AM) comp.lang.php it seems quite strange that the array also prints out as element 1 in the array in the following: the second print_r() statement... printing out an array actually prints out the first element... Code: =======... Summercoolness(256)
making Ruby a standard browser side language641 (4/15/2008 1:25:33 PM) comp.lang.ruby it looks like Prototype was made to mimic Ruby in Javascript, and people who use Prototype usually love it. I wonder if Ruby can be made into another browser side language and what can make that happen? If Fi... Summercoolness(256)
Moving all files in a folder to another hard drive1340 (8/24/2008 12:33:46 PM) comp.lang.ruby I have some code below to move all files in a folder to another hard drive (which has 2TB of space). It runs well except that whenever a filename has some international characters, then the line if File.file?... Summercoolness(256)
Ruby 1.9 still cannot list all files on Vista or XP?1744 (4/8/2009 5:59:54 AM) comp.lang.ruby I just tried using Ruby 1.9 and it seemed that it still cannot list all files in a folder on XP or Vista when the filenames contain Chinese characters, Japanese characters, or any foreign characters other than ... Summercoolness(256)
Goodbye Ruby - Hello Earth12954 (4/8/2009 10:25:44 PM) comp.lang.ruby Hello Fellow Humans, I want to keep this short, but I could write a book if I wanted to. I am the author of DRP a relatively unpopular and decaying GEM. I am not a very frequent poster to the list and not a p... chromatophore(40)
Ruby on Windows beyong 1.8.6 how to install?357 (4/18/2009 4:31:19 PM) comp.lang.ruby on page http://www.ruby-lang.org/en/downloads/ for Ruby 1.8.7 and beyond, there is no one-click installer, so how do we install it? by unzipping it and setting some path in autoexec.bat or something like tha... Summercoolness(256)