Skip to content

Instantly share code, notes, and snippets.

@jspillers
jspillers / gtk3_error.sh
Created June 12, 2015 17:17
gtk3 error when requiring gem
➜ ruby gtk3_test.rb
/Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/glib2-2.2.5/glib2.bundle, 9): Library not loaded: @@HOMEBREW_PREFIX@@/opt/gettext/lib/libintl.8.dylib (LoadError)
Referenced from: /Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/glib2-2.2.5/glib2.bundle
Reason: image not found - /Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/glib2-2.2.5/glib2.bundle
from /Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/glib2-2.2.5/lib/glib2.rb:105:in `rescue in <top (required)>'
from /Users/jarrod/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/glib2-2.2.5/lib/glib2.rb:101:in `<top (required)>'
from /Users/jarrod/.rbenv/version
COMP_NAME="OS X Workstation:"
PS1='\n*======================================================================================*\n\[\033[0;34m\] $COMP_NAME \u@\h \d \t \W$(__git_ps1 "(%s)")\[\033[0m\]\n----------------------------------------------------------------------------------------\n\[\033[0;34m\]\w\[\033[0m\] >'
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.3
- RUBY VERSION: 1.8.6 (2009-06-15 patchlevel 287) [java]
- INSTALLATION DIRECTORY: /Users/jspillers/.rvm/gems/jruby/1.3.1
- RUBY EXECUTABLE: /Users/jspillers/.rvm/jruby-1.3.1/bin/jruby
- EXECUTABLE DIRECTORY: /Users/jspillers/.rvm/gems/jruby/1.3.1/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-java-1.5
- GEM PATHS:
~ >rvm use jruby
<w> jruby 1.3.1 is not installed.
<i> Installing jRuby to: /Users/jspillers/.rvm/jruby-1.3.1
<i> Installing jruby-1.3.1...
make: *** No targets specified and no makefile found. Stop.
~
~/.rvm >rm -rf jruby-1.3.1/
~/.rvm >cd gems/
~/.rvm/gems >ll
total 0
drwxr-xr-x 4 jspillers admin 136 Sep 9 15:50 .
drwxr-xr-x 13 jspillers admin 442 Sep 9 16:03 ..
drwxr-xr-x 3 jspillers admin 102 Sep 9 15:50 jruby
drwxr-xr-x 3 jspillers admin 102 Sep 9 15:23 ruby
$gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.6 (2009-08-04 patchlevel 383) [i686-darwin9.7.0]
- INSTALLATION DIRECTORY: /Users/jspillers/.rvm/gems/ruby/1.8.6
- RUBY EXECUTABLE: /Users/jspillers/.rvm/ruby-1.8.6-p383/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jspillers/.rvm/gems/ruby/1.8.6/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-9
# Image Server Configuration
IMAGE_SERVER_APP_CODE = 'dish'
IMAGE_SERVER = "http://204.236.234.214"
BASE_ASSET_HOST = "#{IMAGE_SERVER}/#{IMAGE_SERVER_APP_CODE}"
# Selective External Asset Checking
ActionController::Base.asset_host = Proc.new { |source, request|
# This app server has many images versioned. Some images however live outside
# the scope of this application. In that case, look for them on that app server.
Ipvod data is stored in provided by the rest feed we get for
franchises (http://mv2.sling.com/mediaview/franchise/list.xml).
This data is parsed from each franchise node and stored in two
different tables: ipvods and ipvod_prices
an ipvod belongs to a franchise via the franchise_id column
and one or more ipvod_prices belong to an ipvod via the ipvod_id column
Here is an example:
module SensoryExtension
def feel_sludge?
unless self.feel.empty?
self.feel.unit == RubyWarrior::Units::Sludge || self.feel.unit == RubyWarrior::Units::ThickSludge
end
end
def feel_archer?
unless self.feel.empty?
self.feel.unit == RubyWarrior::Units::Archer