Skip to content

Instantly share code, notes, and snippets.

@walter
Created March 8, 2014 00:45
Show Gist options
  • Select an option

  • Save walter/9423310 to your computer and use it in GitHub Desktop.

Select an option

Save walter/9423310 to your computer and use it in GitHub Desktop.
> dump = redis.get("107.77.64.119")
dump = redis.get("107.77.64.119")
WARNING: terminal is not fully functional
- (press RETURN)
=> "\u0004\bo: Geocoder::Result::Freegeoip\a:\n@data{\u0010I\"\aip\u0006:\u0006E(END) q
[18] pry(main)>
[19] pry(main)> dump.present?
dump.present?
ArgumentError: invalid byte sequence in UTF-8
from /u/apps/askthem/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.17/lib/active_support/core_ext/object/blank.rb:105:in `=~'
[20] pry(main)> !dump.empty?
!dump.empty?
WARNING: terminal is not fully functional
- (press RETURN)
=> true
[21] pry(main)> dump.blank?
dump.blank?
ArgumentError: invalid byte sequence in UTF-8
from /u/apps/askthem/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.17/lib/active_support/core_ext/object/blank.rb:105:in `=~'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment