This file contains hidden or 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
Start from full charge (charged while turned completely off) | |
EVERYTHING off: 4G, Bluetooth, GPS, Wifi, Auto-sync, Hotspot, and automatic brightness | |
No usage other than to manually kill all apps every few hours via Advanced Task Killer. | |
Advanced Task Killer Info | |
------------------------- | |
Auto kill: aggressive |
This file contains hidden or 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
$ export optflags="-arch i386 -arch x86_64"; rvm install 1.8.7 | |
info: Installing Ruby from source to: /Users/woolley/.rvm/rubies/ruby-1.8.7-p174 | |
info: /Users/woolley/.rvm/src/ruby-1.8.7-p174 has already been extracted. | |
info: Configuring ruby-1.8.7-p174, this may take a while depending on your cpu(s)... | |
info: Compiling ruby-1.8.7-p174, this may take a while, depending on your cpu(s)... |
This file contains hidden or 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
Hopefully somebody here can help with this, I've asked a few other places with no success. | |
I've got Snow Leopard running on an older macbook, with Homebrew. | |
My problem is that some native gems have problems compiling for the correct architecture when I use a compiled ruby (e.g. RVM) instead of the system ruby. | |
Under System ruby, it works (mysql_api.bundle can load): | |
$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -v 2.8.1 -- --with-mysql-config=/usr/local/bin/mysql_config | |
$ file /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/mysql_api.bundle |
This file contains hidden or 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 is an example of using RVM's Project .rvmrc file | |
to have it automatically bootstrap your environment, including bundler. | |
This could be further expanded to do anything you require :) | |
The important thing to remember is that the purpose of these files is | |
to allow you to very easily have your 'project context' (aka 'environment') | |
loaded automatically for you when you enter the project in the shell (cd). | |
You can generate the .rvmrc file below by running: |
This file contains hidden or 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
Here's a few more links for future googlers. For now, I'm giving up | |
and using system ruby for this app which needs hpricot: | |
* Crosspost on hpricot list: | |
http://librelist.com/browser//hpricot/2010/6/19/re-hpricot-fwd-hpricot-bundle-won-t-load-on-snow-leopard/ | |
* Link from i5m on hpricot list: | |
http://i5m.co.uk/post/470222727/snow-leopard-and-gems-wrong-architecture | |
* Stack overflow article: |
This file contains hidden or 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
Rails CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then. | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 |
This file contains hidden or 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
gem install nokogiriBuilding native extensions. This could take a while... | |
ERROR: Error installing nokogiri: | |
ERROR: Failed to build gem native extension. | |
/Users/woolley/.rvm/rubies/ruby-1.8.7-p174/bin/ruby extconf.rb | |
checking for iconv.h... yes | |
checking for libxml/parser.h... yes | |
checking for libxslt/xslt.h... yes | |
checking for libexslt/exslt.h... yes | |
checking for gzopen() in -lz... no |
This file contains hidden or 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
#!/bin/bash -xe | |
EBS_DEVICE='/dev/sdh' | |
INSTANCE_ID=$1 | |
AKI=${2:-'aki-5f15f636'} | |
ARI=${3:-'ari-0915f660'} | |
ARCH=${4:-'i386'} | |
SIZE=${5:-10} | |
AZ=${6:-'us-east-1d'} | |
NAME=${7:-"ami-from-$INSTANCE_ID"} |
This file contains hidden or 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
run() { | |
ssh -i $keypair ubuntu@$host $* | |
} | |
run_ensuring_success() { | |
output=$(run $*) | |
if [[ $? != 0 ]] ; then | |
echo "AMIBUILDER: Command failed: $*" | |
terminate_instance | |
exit 1 |
This file contains hidden or 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
[:development,:test].each do |g| | |
group g do | |
gem "sqlite3-ruby", "1.2.5" | |
end | |
end |