First  |  Prev |  Next  |  Last
Pages: 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
Net::SSH - how to respond to a prompt before first command?
Hello, I'm trying to connect, using SSH, to a server that immediately after login executes a script that requires input from user. The script is asking the user to select the target username that the shell should switch to. I'm using WinXP to run the script, the target server is running HP-UX and the user is swi... 10 Jul 2008 09:16
Overloading the []-Operator
Hi, I'm trying to overload the [ ] operator. It works fine for read-only access: def [](acc) @myValues[acc] end However, I'd also need write access. I've tried: def [](acc)=(value) @myValues[acc] = value end And get a syntax error on the first line. I'd appreciate any help. Matt -- Poste... 11 Jul 2008 07:52
problem in rubygems installation
Dear all, while installing rubygems(1.2.0) in windows I am getting the below error. command used: ruby setup.rb /lib/rubygems/spec_fetcher.rb:1:in `require': no such file to load -- zlib (Loa dError) from ./lib/rubygems/spec_fetcher.rb:1 from ./lib/rubygems/source_index.rb:10:in `require' ... 15 Jul 2008 14:22
Error using sqlite gems
Why i can't use sqlite3-ruby gems? it gives me this error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- sqlite3-ruby (LoadError) but i installed it! by the way, when it asks me wich version of gem I want to install: 1. sqlite3-ruby 1.2.2 (m... 10 Jul 2008 16:31
Killing a ruby script gracefully
I have a Ruby script that uses Event machine to listen on a port for incoming data. When data is received, the script saves it to the database. How can I kill this script gracefully? I want to make sure that the data is not being processed or saved the to DB when I kill it. script looks something like: #!/u... 10 Jul 2008 12:22
Install gems on shoes
Hi, I'm trying to use shoes, but I need to install some gems on it. How can I do it? thanks -- Posted via http://www.ruby-forum.com/. ... 10 Jul 2008 09:16
In place edit mode activation?
Laurent Julliard wrote: Hello, Does anybody knows if there is a way to activate the 'in place edit mode' from within a Ruby script that would have the same effect as using the -i option on the command line? Use $-i="" : [~/tmp] cat >foo foo [~/tmp] cat dash-i.rb $-i="" [~/tmp] ruby -r dash-i... 10 Jul 2008 03:08
Problem with hash in function
Somehow I'm missing something really basic. Why is following function now working? def foobar(args) puts args.id end foobar ({:id => "MyID"}) #=> some random number (e.g. -616990888) -- Posted via http://www.ruby-forum.com/. ... 10 Jul 2008 02:02
Meta_data from Raw Image files and *.psd files
I'm not sure about the canons, but on my nikon I can grab the meta data from the jpeg thumbnail from my nef images (nikon's raw file). It doesn't give me everything mind you, but it does have a fair amount of data. I can't recall the name of the program I was using to grab the info with, jpeginfo might actually be... 9 Jul 2008 23:59
Setting a cooking from an eruby .rhtml file
I also tried inserting the cookings at an intermediate page that redirects, and I'm having no luck with that either, though I can simply use the plain CGI object to do it inside of a <% %> pair. ... 10 Jul 2008 08:14
First  |  Prev |  Next  |  Last
Pages: 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292