Skip to content

Instantly share code, notes, and snippets.

View davidjrice's full-sized avatar

David Rice davidjrice

View GitHub Profile
prefix=/app/vendor/cairo-1.12.8
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.12.8
Requires.private: gobject-2.0 glib-2.0 pixman-1 >= 0.22.0 freetype2 >= 9.7.3 libpng x11 xext
{
'conditions': [
['OS=="win"', {
'variables': {
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle
'with_jpeg%': 'false',
'with_gif%': 'false',
'with_pango%': 'false',
'with_freetype%': 'false'
}
@davidjrice
davidjrice / node-canvas-make.log
Created October 4, 2012 11:02
Failure to build node-canvas on heroku using bloomtime/heroku-buildpack-nodejs#cairo
> contextify@0.1.3 install /tmp/build_1lhuqx5qgzdcb/node_modules/fabric/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
gyp http GET http://nodejs.org/dist/v0.8.6/node-v0.8.6.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.6/node-v0.8.6.tar.gz
make: Entering directory `/tmp/build_1lhuqx5qgzdcb/node_modules/fabric/node_modules/canvas/build'
CXX(target) Release/obj.target/canvas/src/Canvas.o
In file included from ../src/Canvas.cc:8:
../src/Canvas.h:19:25: warning: cairo/cairo.h: No such file or directory
../src/Canvas.cc:15:29: warning: cairo/cairo-pdf.h: No such file or directory
@davidjrice
davidjrice / fabric-npm-test-failure.log
Created August 13, 2012 15:54
Test failures in fabric.js under Node 0.6.18
> fabric@0.8.47 test /Users/dave/active/fabric.js
> node test.js
Testing /Users/dave/active/fabric.js/dist/all.js ... done
Errors:
Module: fabric.Text Test: toObject
at Object.<anonymous> (/Users/dave/active/fabric.js/test/unit/text.js:65:5)
class ApplicationController < ActionController::Base
before_filter :fetch_authors_and_categories
#...
private
def fetch_authors_and_categories
Couch.client(:bucket => 'system').pipelined do
@davidjrice
davidjrice / article.rb
Created June 6, 2012 19:01
Couchbase ruby client crash log
class Article < Couchbase::Model
view :by_type
def self.totals
total = { :overall => 0, :audio => 0, :video => 0, :text => 0 }
Couch.client.design_docs["article"].by_type(:group => true, :group_level => 1).entries.each do |row|
total[row.key[0].to_sym] = row.value
total[:overall] += row.value
end
@davidjrice
davidjrice / README.md
Created June 6, 2012 17:00
Vagrantfile for an Ubuntu lucid 32 or 64 bit VM with couchbase 2.0.0.dp4.1

Install Virtualbox

wget http://download.virtualbox.org/virtualbox/4.1.16/VirtualBox-4.1.16-78094-OSX.dmg
open VirtualBox-4.1.16-78094-OSX.dmg
# double click .pkg to install

Install vagrant

gem install vagrant --no-ri --no-rdoc
@davidjrice
davidjrice / Vagrantfile
Created June 6, 2012 12:46
Ubunutu Lucid 64bit with Couchbase Server 2.0.0.dp4
# -*- mode: ruby -*-
# vi: set ft=ruby :
MIRROR = "http://packages.couchbase.com/releases/2.0.0-developer-preview-4"
VERSION = "couchbase-server-community_x86_64_2.0.0-dev-preview-4.deb"
# Vagrant: http://vagrantup.com
Vagrant::Config.run do |config|
# Use 64bit Ubuntu Lucid 10.04
config.vm.box = "lucid64"
function(doc) {
emit(doc.content_type, doc);
}