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
<div id="widget"></div> | |
<script src="http://yourapp.com/widget.js?element=widget"></script> |
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 account model: | |
accepts_nested_attributes_for :from_adrs, :allow_destroy => true | |
in from_adr model: | |
validates_format_of :email, | |
:with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, | |
:message => 'email must be valid' | |
form: | |
<%form_for @account do |f|%> |
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
christian@christian-laptop:~/.ssh$ ssh -vvv christph@174.129.41.106 -i ~/.ssh/localhost-key | |
OpenSSH_5.1p1 Debian-3ubuntu1, OpenSSL 0.9.8g 19 Oct 2007 | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to 174.129.41.106 [174.129.41.106] port 22. | |
debug1: Connection established. | |
debug3: Not a RSA1 key file /home/christian/.ssh/localhost-key. | |
debug2: key_type_from_name: unknown key type '-----BEGIN' | |
debug3: key_read: missing keytype |
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
/data/arcticelvis/releases/20100428192000/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract /connection_pool.rb:198:in `checkout': could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it. (ActiveRecord::ConnectionTimeoutError) |
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 File.expand_path('../boot', __FILE__) | |
require 'uri' | |
if ENV['MONGOHQ_URL'] | |
mongo_uri = URI.parse(ENV['MONGOHQ_URL']) | |
ENV['MONGOID_HOST'] = mongo_uri.host | |
ENV['MONGOID_PORT'] = mongo_uri.port.to_s | |
ENV['MONGOID_USERNAME'] = mongo_uri.user | |
ENV['MONGOID_PASSWORD'] = mongo_uri.password | |
ENV['MONGOID_DATABASE'] = mongo_uri.path.gsub("/", "") |
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
source :gemcutter | |
gem 'rails', '3.0.0.beta3', :git => 'git://github.com/rails/rails.git' | |
gem "mongoid", :git => 'git://github.com/durran/mongoid.git' | |
gem "bson_ext", "1.0.1" | |
gem 'devise', :git => 'http://github.com/plataformatec/devise.git', :branch => 'master' | |
#gem 'mongo_session_store', :git => 'git://github.com/nicolaracco/mongo_session_store.git' | |
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
ENV["RAILS_ENV"] ||= "test" | |
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support | |
require 'cucumber/rails/rspec' | |
require 'cucumber/rails/world' | |
#require 'cucumber/rails/active_record' | |
require 'cucumber/web/tableish' |
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
namespace :db do | |
namespace :test do | |
task :prepare do | |
# Stub out for MongoDB | |
end | |
end | |
end |
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
top - 03:08:28 up 19 days, 8:26, 1 user, load average: 0.00, 0.01, 0.00 | |
Tasks: 54 total, 2 running, 52 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.2%st | |
Mem: 7864460k total, 6633188k used, 1231272k free, 531672k buffers | |
Swap: 31463260k total, 84k used, 31463176k free, 1312924k cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
15354 mysql 15 0 2934m 2.7g 5076 S 0 35.7 46:48.13 mysqld | |
13755 christph 15 0 765m 647m 5344 S 0 8.4 258:20.39 ruby | |
11903 christph 15 0 232m 111m 3116 S 0 |
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
[Tue, 01 Jun 2010 15:37:13 -0700] INFO: Starting Chef Solo Run | |
[Tue, 01 Jun 2010 15:37:14 -0700] INFO: {"MANPATH"=> | |
"/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/:/usr/share/postgresql-8.3/man:/usr/lib64/erlang/man", | |
"SHELL"=>"/bin/bash", | |
"SSH_CLIENT"=>"10.208.30.159 53672 22", | |
"USER"=>"root", | |
"CONFIG_PROTECT_MASK"=> | |
"/etc/env.d/java/ /etc/udev/rules.d /etc/fonts/fonts.conf /etc/terminfo /etc/eselect/postgresql /etc/ca-certificates.conf /etc/revdep-rebuild", |
OlderNewer