First  |  Prev |  Next  |  Last
Pages: 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
Executing Password Change over Ruby Net-SSH
require 'rubygems' require 'net/ssh' def passWord(hostname, username, password) begin Net::SSH.start( hostname, username, :password => password ) do |session| puts "\t\t\tBAD" command = "passwd" newword = "" (rand(32) + 32).times { newword << (rand(95) + 32).chr } session.exec( command ) do |channe... 22 May 2010 10:30
curl library?
On 10-05-20 07:30 PM, Eric Hodel wrote: On May 20, 2010, at 10:45, Xeno Campanoli / Eskimo North and Gmail wrote: Among other things we have built the tool around curl facilities like the --trace-time function, and we don't want to mix in new stuff, or add variations in the kind of data we get. Also, all the sw... 25 May 2010 19:04
Importing/exporting google contacts
Hi, I'd like to know if there are other modules than gmail_contacts and the gdata lib to manage Google Contacts. Moreover, gmail_contacts doesn't seem to handle settings attributes (to export contacts from Ruby to GG Contacts). Thanks, Michel ... 21 May 2010 07:17
OMG, why are there so many Strings in ObjectSpace!
I was playing around looking at ObjectSpace in irb and was astounded at how many string objects there are. Why are there 57,000+ String objects?!? hash = {} ObjectSpace.each_object.collect{|t| t.class}.uniq.each{|cla| hash[cla] = ObjectSpace.each_object(cla).to_a.length} hash {Tiger=>1, Gem::SourceIndex=>1, ... 25 May 2010 15:45
Office docs fuzzer
Anyone know Ruby based Office docs fuzzer (word, excel, etc), run on standalone PC (no dedicated servers),no MySQL ... 20 May 2010 08:21
Write to the top of a file
On 19/05/2010 22:28, John Wu wrote: Hi, I want to write some content to an existing file and I want to new content be the first line of the file. How to do that? Hi John, You can't do it directly - there is no insert for disk files. What you have to do depends how big it is. For file that... 22 May 2010 10:32
Immediate need for Business Analyst with Cognos exp in MO
Hi All, Below is a very urgent need, please submit qualified resumes for the below given requirement with rate, Availability and Contact Information to joe(a)zeninfotech.com ASAP Title: Business Analyst with Cognos Positions: Multiple Location: Jefferson City, MO Len... 19 May 2010 14:53
Real life use of each_cons? (... follow up)
Hi there! (following up the discussion from last year) This method actually made my life a lot easier when fitting some data to a table. I had tens of pictures and wanted to show them in rows - three columns each. data.each_cons(3) do |column| column.each do |picture| show picture end end ... 17 May 2010 05:51
difference between $0 and __FILE__
i have a script in my HOME/bin : /Users/yt/bin/path_test.rb my "HOME/bin" is in the PATH then, if from this script, i outputs $0 and __FILE__ with : path_test.rb i got : $0 = /Users/yt/bin/path_test.rb __FILE__ = /Users/yt/bin/path_test.rb and the same outputs with : /Users/yt/bin/path_test.rb... 15 May 2010 07:12
Range on strings.
Hi, If I do - ('A'..'Z').include?('AA') It returns "true", while ('A'..'Z').to_a.include?('AA') (of course) returns "false". Is it intentional or possibly a bug? I'm using ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] on Ubuntu 10.04 x64 ... 17 May 2010 15:46
First  |  Prev |  Next  |  Last
Pages: 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108