This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sinatra 1.3.2 does not work - "http/1.x 1039 ok" code on all pages. | |
sinatra 1.2.7 seems to work. | |
Running with rack 1.3.4, integrity does directly use rack but 1.1 dependency does not seem justified. | |
Using data objects 0.10.7 with do-mysql at 0.10.7 as well. Direct dependency on data objects may not be needed. | |
pony 1.3 does not work: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In your deploy.rb: | |
require 'lib/capistrano_subversion_sync_patch' | |
# Specify minimum version of scm in use. This should be set to the smallest | |
# of versions installed on the machine running capistrano commands and the | |
# machines which are deployment targets. | |
set :scm_min_version, '1.6.0' | |
# To check remote svn version before deployment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.SUFFIXES: .in | |
.in: | |
echo $< to $@ | |
foo: dep | |
bar: dep | |
echo $< to $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ./configure --prefix=~/tmp/rpg | |
building for FreeBSD on localhost.localdomain at Mon Jun 6 13:56:47 EDT 2011 | |
looking for /bin/sh (found) | |
looking for bash (/usr/local/bin/bash) | |
looking for dash (missing) | |
looking for sed (/usr/bin/sed) | |
looking for perl (/usr/bin/perl) | |
looking for ruby (/usr/local/bin/ruby) | |
looking for install (/usr/bin/install -c -o root -g wheel) | |
looking for egrep (/usr/bin/grep -E) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'right_aws' | |
a=RightAws::AsInterface.new | |
a.create_launch_configuration('test1', 'ami-5ae11133', 'm1.small', :user_data => 'foo bar') | |
a.describe_launch_configurations.map { |lc| lc[:user_data] } | |
# => ["Zm9vIGJhcg=="] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** LOCAL GEMS *** | |
aaronh-chronic (0.3.9) | |
abstract (1.0.0) | |
activemodel (3.0.3) | |
activerecord (3.0.3) | |
activesupport (3.0.3) | |
arel (2.0.6) | |
bacon (1.1.0) | |
builder (3.0.0, 2.1.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Sinatra application must be run with mongrel | |
# or possibly with unicorn for the serve action to work properly. | |
# See http://efreedom.com/Question/1-3669674/Streaming-Data-Sinatra-Rack-Application | |
require 'sinatra' | |
get '/wait/:time' do |time| | |
time = time.to_i | |
sleep(time) | |
"Slept #{time} at #{Time.now}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError: undefined method `downcase' for nil:NilClass | |
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:44:in `media_type' | |
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:114:in `form_data?' | |
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:144:in `POST' | |
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:165:in `params' | |
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:408:in `call!' | |
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call' | |
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call' | |
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call' | |
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in `synchronize' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo 'require "rubygems"; require "perftools"' |ruby | |
/usr/local/lib/ruby/gems/1.8/gems/perftools.rb-0.4.0/lib/perftools.so: /usr/local/lib/ruby/gems/1.8/gems/perftools.rb-0.4.0/lib/perftools.so: Undefined symbol "__gxx_personality_v0" - /usr/local/lib/ruby/gems/1.8/gems/perftools.rb-0.4.0/lib/perftools.so (LoadError) | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
from -:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'ruote' | |
require 'ruote/storage/hash_storage' | |
# preparing the engine | |
engine = Ruote::Engine.new( | |
Ruote::Worker.new( | |
Ruote::HashStorage.new)) |
NewerOlder