Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
avails = [] blocked = [] puts "starting..." blocked_count = 0 for first in ("a".."z") puts "looping first: #{first}".upcase for second in ("a".."z") puts "looping second: #{second}" str = "#{first}#{second}.se" res = `whois #{str}` puts "res size: #{res.size}" if res.include? "*domainname.status: SYSTEM" blocked_count += 1 blocked << str end if res.include? "No data" avails << str p avails end end end p avails p blocked puts "#{blocked_count} blocked domains"
This paste will be private.
From the Design Piracy series on my blog: