Guest User

Untitled

a guest
May 26th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. class String
  2.  
  3. # correct length to non-ascii strings
  4. def length()
  5. self.split('').length
  6. end
  7.  
  8. end
  9.  
  10. # ERROR MESSAGE:
  11. /usr/lib/ruby/1.8/resolv.rb:1783:in `initialize': IPv4 address must be 4 bytes (ArgumentError)
  12. from /usr/lib/ruby/1.8/resolv.rb:1654:in `new'
  13. from /usr/lib/ruby/1.8/resolv.rb:1654:in `decode_rdata'
  14. from /usr/lib/ruby/1.8/resolv.rb:1403:in `get_rr'
  15. from /usr/lib/ruby/1.8/resolv.rb:1308:in `get_length16'
  16. from /usr/lib/ruby/1.8/resolv.rb:1403:in `get_rr'
  17. from /usr/lib/ruby/1.8/resolv.rb:1289:in `decode'
  18. from /usr/lib/ruby/1.8/resolv.rb:1288:in `each'
  19. from /usr/lib/ruby/1.8/resolv.rb:1288:in `decode'
  20. ... 20 levels...
  21. from /usr/lib/ruby/gems/1.8/gems/xmpp4r-simple-0.8.4/lib/xmpp4r-simple.rb:134:in `status'
  22. from /usr/lib/ruby/gems/1.8/gems/xmpp4r-simple-0.8.4/lib/xmpp4r-simple.rb:85:in `initialize'
  23. from ./raker.rb:204:in `new'
  24. from ./raker.rb:204
Add Comment
Please, Sign In to add comment