First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[Note: parts of this message were removed to make it a legal post.] To all those who might run into this ... xyz = "abc" Clipboard.set_data(xyz) will quietly append "\000"*i.e. a null char) to xyz upon return. I don't know if this is by design ... but it's a crappy design. ... 9 Aug 2010 21:13
haml view can't find helper function
I have an object called Survey. There is a haml file: \views\surveys\index.html.haml. The last line of the file is: = render :partial => 'parameter_results', :locals =>{:options => chart_options(:n, :age) chart_options is in surveys_helper.rb. The error I'm getting is: undefined method 'chart_options' f... 9 Aug 2010 20:07
Crunching Text Not Working in a Loop
Greetings, folks! I need to be able to capitalize words inside quote marks, as part of a string of words. I need to use proper publishing capitalization protocols which is more involved than simply making the first letter of each word uppercase. Thus the appended script is greatly truncated! I would be very gr... 12 Aug 2010 02:47
Error: Bignum too big to convert into `long'
Hi, I've got a bit of code that I borrowed from here I use it to convert MS timestamps into a ruby Time object. It works fine on Mac/Linux, but not on a Solaris SPARC system. The error is "bignum too big to convert into `long'" and it occurs on the line that begins... Time.... 11 Aug 2010 04:55
SSL Client Certificate error on Mac OS X 10.6.4
Client Certificate error on Mac OS X 10.6.4 -------------------------------------------------------------------------------- I've been trying to connect to a web service over https where the service requires the client to be authenticated using a server signed certificate (note the server's certificate is signed ... 9 Aug 2010 19:00
Overriding ENV[]
$ cat x #!/usr/bin/env ruby class << ENV define_method(:[], lambda { |v| v.upcase }) end p ENV['FOO'] $ FOO=foo ./x "FOO" $ But what if I want to call the original ENV[] inside the new method? -- Jos Backus jos at ... 9 Aug 2010 21:13
Accessing programs through the terminal with ruby
Specifically browsers. I'm trying to get a bunch of different browsers (FF, Opera, Safari, IE, Chrome, and Fock) to all open the same url/file location either 1) Simultaneously or 2) One after the other. Meaning one browser open and when you close it out the next one opens. So basically I need to know if it's pos... 9 Aug 2010 19:00
Hi, I don't understand how to use modules. Could someone explain this to me please ? module Test def yo puts 'yo' end end Test.yo # undefined method `yo' for Test:Module Mickael. -- Posted via ... 10 Aug 2010 19:07
windows stty IRB question
I am on windows XP and when I run IRB ruby version 1.8.7-p249 I get a STTY error G:\>irb stty: Unknown mode: g stty: Unknown mode: icrnl irb(main):001:0> Where can I fix the IRB sty call? Thanks ----------------------------------------------- Robert Keller x7-5628 ------------------... 10 Aug 2010 11:20
error messages from bash aren't captured by ruby interpreter
Hi everyone, How can I write a ruby script in order to capture error messagens from bash commands? if I do this: out = `rm /var/mail/teste2` Errors like "rm: cannot remove `/var/mail/teste2': No such file or directory" won't be stored in "out" string. How can I do that? regards -- Posted via http://w... 9 Aug 2010 16:47
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17