Add the following gems to your Gemfile
:
gem 'activeresource'
gem 'newrelic_api'
Update your bundle:
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |
apt-get install zlib1g-dev | |
apt-get install g++ | |
export VENV=$VIRTUAL_ENV | |
mkdir $VENV/packages && cd $VENV/packages | |
curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-core-1.0.16.tar.gz | |
curl -O http://oligarchy.co.uk/xapian/1.0.16/xapian-bindings-1.0.16.tar.gz | |
tar xzvf xapian-core-1.0.16.tar.gz |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
// RootViewController.m | |
// TabRSSReader | |
// | |
// Created by Saima on 1/28/11. | |
// Copyright 2011 it. All rights reserved. | |
// | |
#import "RootViewController.h" | |
#import "TabRSSReaderAppDelegate.h" |
class Avatar < ActiveRecord::Base | |
attr_accessor :content_type, :original_filename, :image_data | |
before_save :decode_base64_image | |
has_attached_file :image, | |
PAPERCLIP_CONFIG.merge( | |
:styles => { | |
:thumb => '32x32#', | |
:medium => '64x64#', |
// | |
// EchoPrint Cocoa Example | |
// Created by Jim McGowan on 08/07/2011. | |
// jim at bleepsandpops dot com | |
// | |
// A simple example of using the EchoPrint Codegen to fingerprint an mp3 file and | |
// look for a match on EchoNest. For OS X or iOS. Error checking removed for brevity. | |
// | |
// Requires the 'Other C Flags' XCode build setting "-x objective-c++" to compile as Objective-C++ | |
// |
/* | |
File: Reachability.h | |
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
Version: 2.2 - ARCified | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
("Apple") in consideration of your agreement to the following terms, and your | |
use, installation, modification or redistribution of this Apple software |
/* | |
Distributed under The MIT License: | |
http://opensource.org/licenses/mit-license.php | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to |
core@core-01 ~ $ etcd -addr 192.168.65.101:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.101:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine1 -name machine1 | |
core@core-02 ~ $ etcd -addr 192.168.65.102:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.102:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine2 -name machine2 -peers 192.168.65.101:7001,192.168.65.103:7001 | |
core@core-03 ~ $ etcd -addr 192.168.65.103:4001 -bind-addr 0.0.0.0 -peer-addr 192.168.65.103:7001 -peer-bind-addr 0.0.0.0 -data-dir machines/machine3 -name machine3 -peers 192.168.65.101:7001,192.168.65.102:7001 |