Skip to content

Instantly share code, notes, and snippets.

View mark-ellul's full-sized avatar

Mark Ellul mark-ellul

View GitHub Profile
@mark-ellul
mark-ellul / gist:947313
Created April 28, 2011 20:53
Cloudant timeout...
2011-04-28T20:49:46+00:00 app[web.2]: Starting the New Relic Agent.
2011-04-28T20:49:46+00:00 app[web.4]: Stopping due to timeout...
2011-04-28T20:49:46+00:00 app[web.4]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `call'
2011-04-28T20:49:46+00:00 app[web.4]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `select'
2011-04-28T20:49:46+00:00 app[web.4]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `rbuf_fill'
2011-04-28T20:49:46+00:00 app[web.4]: /usr/ruby1.8.7/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
2011-04-28T20:49:46+00:00 app[web.4]: /usr/ruby1.8.7/lib/ruby/1.8/net/protocol.rb:126:in `readline'
2011-04-28T20:49:46+00:00 app[web.4]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:2026:in `read_status_line'
2011-04-28T20:49:46+00:00 app[web.4]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:2015:in `read_new'
2011-04-28T20:49:46+00:00 app[web.4]: /usr/rub
@mark-ellul
mark-ellul / gist:938536
Created April 23, 2011 10:39
Heroku to Cloudant Error
2011-04-23T10:27:43+00:00 app[web.5]: Stopping due to timeout...
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `call'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `select'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `rbuf_fill'
2011-04-23T10:27:43+00:00 app[web.8]: Stopping due to timeout...
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `call'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `select'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `rbuf_fill'
2011-04-23
@mark-ellul
mark-ellul / gist:935075
Created April 21, 2011 17:43
bigcouch make fail
mark@mark-ubuntu-rcm:~/Development$ sudo apt-get install libmozjs-1.9.2 libmozjs-1.9.2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.35-27-generic linux-headers-2.6.35-27
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
libmozjs-1.9.2 libmozjs-1.9.2-dev
0 upgraded, 2 newly installed, 0 to remove and 21 not upgraded.
# Copyright (c) Henry Poydar
# Modified from couchrest-rails
# A Rails plugin for connecting to and working with CouchDB via CouchRest
# https://github.com/hpoydar/couchrest-rails/
require 'sunspot_couch.rb'
begin
@mark-ellul
mark-ellul / Organization.rb
Created March 25, 2011 18:49
Simple model
module RcmEngine
class Organization < CouchRest::Model::Base
include CouchRest::Paperclip
property :description, String
property :name, String
property :remix_organization, Integer
property :subdomains, [String] #These will be used to hook up to the
var logCar = function(car) {
console.log("I'm a "+car.color+" "+car.make);
}
var Car = function(make, colour) {
this.make = make;
@mark-ellul
mark-ellul / gist:853432
Created March 3, 2011 20:11
Excercise 2
(function(strName, container) {
var index;
function log(){
console.log(index);
}
function iterate(){
log();