I hereby claim:
- I am daffydowden on github.
- I am richarddowden (https://keybase.io/richarddowden) on keybase.
- I have a public key whose fingerprint is 0D87 4FF5 439E A840 44B6 6F0B 005D B4FB 41F5 81D4
To claim this, I am signing this object:
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
Database files have to be updated before starting the server, here are the steps that had to be followed: | |
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
brew unlink postgresql | |
brew install postgresql@9.6 | |
brew unlink postgresql@9.6 | |
brew link postgresql |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Vertical centering with Flexbox + margin fallback | |
* Lea Verou & David Storey | |
*/ | |
html, body { height: 100%; } | |
body { | |
width: 100%; /* needed for FF */ | |
margin: 0; |
# List all users | |
cat /etc/passwd | cut -d: -f1 | |
# List all non-system users | |
awk -F: '{if ($3>=500 && $3<=1000) print $1}' /etc/passwd | |
# List all groups | |
cat /etc/group | cut -d: -f1 | |
# Add an existing user to a group - http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/ | |
# usermod -a -G ftp tony |
rvm use [version]@[directory] --create --rvmrc | |
# From: http://onelinetidbits.posterous.com/rvm-automagically-create-rvmrc |
# Spree setup instructions | |
# Setup the default preferences | |
if Preference.table_exists? | |
# Site defaults | |
Spree::Config.set(:site_name => 'Classy Site Name') | |
Spree::Config.set(:default_seo_title => 'Marketing Stuff') | |
Spree::Config.set(:default_meta_description => 'Longer Marketing Stuff') | |
Spree::Config.set(:default_meta_keywords => 'Marketing, Stuff') | |
➜ UCA git:(master) ✗ rake db:schema:load --trace | |
/Users/Richard/Developer/.rvm/gems/ruby-1.9.2-p180@spinnaker_uca/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_ | |
** Invoke db:schema:load (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
Mysql2::Error: Table 'uca_development.contributortypes' doesn't exist: SHOW FIELDS FROM `contributortypes` | |
/Users/Richard/Developer/.rvm/gems/ruby-1.9.2-p180@spinnaker_uca/gems/activerecord-3.1.0/lib/active_record/connection_adapters/mysql2_adapter.rb:283:in `query' | |
/Users/Richard/Developer/.rvm/gems/ruby-1.9.2-p180@spinnaker_uca/gems/activerecord-3.1.0/lib/active_record/connection_adapters/mysql2_adapter.rb:283:in `block in execute' | |
/Users/Richard/Developer/.rvm/gems/ruby-1.9.2-p180@spinnaker_uca/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:244:in `block in log' |
(function(scope){ | |
// Code | |
var index; | |
function log(){ | |
console.log(index); | |
} | |
function iterate(){ | |
log(); |
source 'http://rubygems.org' | |
# Bundle edge Rails instead: | |
gem 'rails', '3.1.0.rc5', :git => "git://github.com/rails/rails", :branch => "3-1-stable" | |
gem 'mysql2' | |
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31' | |
gem 'devise' | |
gem 'spree' |