Skip to content

Instantly share code, notes, and snippets.

<script src="//fast.wistia.com/embed/medias/ab42nzynqw.jsonp" async></script><script src="//fast.wistia.com/assets/external/E-v1.js" async></script><div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;"><div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;"><div class="wistia_embed wistia_async_ab42nzynqw seo=false videoFoam=true" style="height:100%;width:100%">&nbsp;</div></div></div>
@nickws
nickws / gist:1792983
Created February 10, 2012 21:22
kaminari error
vagrant@gentoo32 /vagrant/emotio/dennissprint1 $ bundle exec rails s
git://github.com/denysonique/kaminari.git (at master) is not checked out. Please run `bundle install`
vagrant@gentoo32 /vagrant/emotio/dennissprint1 $ bundle
Fetching git://github.com/denysonique/kaminari.git
/home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:243:in `mkdir': Read-only file system - /home/vagrant/.bundler (Errno::EROFS)
from /home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:243:in `fu_mkdir'
from /home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:217:in `block (2 levels) in mkdir_p'
from /home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:215:in `reverse_each'
from /home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:215:in `block in mkdir_p'
from /home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:201:in `each'
@nickws
nickws / gist:1221874
Created September 16, 2011 11:07
Cannot find rails
vagrant@gentoo32 /vagrant/emotio $ rails s
/home/vagrant/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [actionpack-3.1.0, activemodel-3.1.0, activerecord-3.1.0, activeresource-3.1.0, activesupport-3.1.0, addressable-2.2.6, arel-2.2.1, bcrypt-ruby-3.0.1, bcrypt-ruby-2.1.4, builder-3.0.0, bundler-1.0.18, capybara-1.0.1, capybara-webkit-1.0.0.beta4, carrierwave-0.5.7, childprocess-0.2.2, coffee-script-2.2.0, coffee-script-source-1.1.2, coffeebeans-1.0.1, curb-0.7.15, curb-openuri-0.2.1, database_cleaner-0.6.7, devise-1.3.4, diff-lcs-1.1.3, erubis-2.7.0, execjs-1.2.6, factory_girl-2.1.0, factory_girl_rails-1.2.0, faraday-0.6.1, ffi-1.0.9, guard-0.7.0, guard-rspec-0.4.5, guard-spork-0.2.1, haml-3.1.3, hike-1.2.1, hpricot-0.8.4, htmlentities-4.3.0, i18n-0.6.0, jquery-rails-1.0.14, json-1.6.0, json_pure-1.6.0, launchy-2.0.5, mail-2.3.0, metaclass-0.0.1, mime-types-1.16, mocha-0.10.0, multi_json-1.0.3, multi_xml-0.2.2, multipart-post
@nickws
nickws / gist:1221851
Created September 16, 2011 10:58
rake output
postgres@gentoo32 /vagrant/emotio $ rake db:migrate --trace
(in /vagrant/emotio)
rake aborted!
no such file to load -- bundler/setup
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/vagrant/emotio/config/boot.rb:6
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/vagrant/emotio/config/application.rb:1
Nick-Smiths-MacBook:newmotio Nick$ /usr/bin/curl http://download2.osgeo.org/libtiff/tiff-3.9.5.zip -o ~/Library/Caches/Homebrew/libtiff-3.9.5.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1792k 100 1792k 0 0 20616 0 0:01:29 0:01:29 --:--:-- 21227
Nick-Smiths-MacBook:newmotio Nick$ brew install imagemagick
Also installing dependencies: libtiff, little-cms, jasper
==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.5.zip
File already downloaded in /Users/Nick/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/libtiff/3.9.5 --mandir=/usr/local/Cellar/libtiff/3.9.5/share/man
==> make install
@nickws
nickws / gist:1206854
Created September 9, 2011 17:47
libtiff down
Nick-Smiths-MacBook:ImageMagick-sl Nick$ sh install_im.sh
---------------------------------------------------------------------
ImageMagick installation started.
Please note that there are incompatibilies with MacPorts.
Read: http://github.com/masterkain/ImageMagick-sl/issues/#issue/1 - reported by Nico Ritsche
---------------------------------------------------------------------
Downloading http://heanet.dl.sourceforge.net/project/freetype/freetype2/2.3.12/freetype-2.3.12.tar.gz
######################################################################## 100.0%
Downloading http://heanet.dl.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz
######################################################################## 100.0%
@nickws
nickws / gist:1206078
Created September 9, 2011 12:24
rmagick gem fail
Installing rmagick (2.13.1) with native extensions /Users/Nick/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/Nick/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /Users/Nick/.rvm/gems/ruby-1.9.2-p180/bin:/Users/Nick/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/Nick/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/Nick/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/Nick/Applications/postgres/bin
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
#ERROR
ActionView::Template::Error (undefined method `voter_emotions' for nil:NilClass):
1: .subject_box{"data-emotions" => subject.voter_emotions.map{|e| e.name}.join(' ')}
2:
3: %p.title
4: %a{:href => "#"} #{subject.title}
app/views/profile/_subject_box.haml:1:in `_app_views_profile__subject_box_haml__657605790416744297_2168763000'
app/controllers/profile_controller.rb:79:in `fetch_subject'
@nickws
nickws / gist:1099324
Created July 22, 2011 12:10
database.yml
development:
adapter: postgresql
database: emotio-dev
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
@nickws
nickws / specific item
Created April 13, 2011 16:11
specific item
<!-- The id attribute specifies a unique id for the content.
For example, the blog post ID in the case of a blog -->
<div class="emotiobar" id="mycontentid"></div>