Back in Melbourne circa 2010/11, Jodie, Jared and I used to run a [monthly vegan mentoring group][vegan-month]. I have gone back through the mailing lists and collected much of the curriculum and information from the program into this single document, so that I can distribute it more widely. The program was designed not just to get you through the first month nutritionally, but to expose you to a variety of foods and ideas that may be new to you. It emphasises that veganism is a shift sideways, not a sacrifice.
get canon sdk working with openframeworks | |
1. Register as canon developer & download canon sdk | |
2. EDSDK.framework in canon sdk download doesn't seem to be working. Download the latest EOS Utility from http://usa.canon.com/cusa/support/consumer/eos_slr_camera_systems/eos_digital_slr_cameras/ for you camera. You might not have a previous EOS Utility install or a CD. You can force the installer to install EOS utility: | |
1/ Copy the updater app from the dmg to your desktop | |
2/ Right click and choose Show Package Contents… | |
3/ Delete the file Contents/Resources/Info.datx | |
4/ After that run the updater app again. You should be able to install the EOS Utility |
#this is a very simple, work in progress helper method for stubbing the stripe checkout.js | |
#this creates a fake server that will generate stripe token as if it's coming from stripe. So we can test credit card input | |
class FakeStripe < Sinatra::Base | |
def self.boot | |
instance = new | |
Capybara::Server.new(instance).tap { |server| server.boot } | |
end | |
get '/checkout.js' do |
#Council of Chiefs
9:00PM November 3, 2012
Camp Lazarus
4422 Columbus Pike
Delaware, OH 43015
Goal of the Meeting: To make decisions regarding the specifics of Conclave 2013
class TripsController < ApplicationController | |
class Action < ApplicationController::Action | |
end | |
class New < Action | |
expose(:trip) { Trip.new(params[:trip]) } | |
end | |
class Create < New | |
def call |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD* 150,000 ns 0.15 ms |
Don't be blind when making adjustments for performance. Measure, measure, measure.
New Relic is a great product for monitoring the peformance of your application. They provide performance management for Ruby, PHP, .Net, Java and Python. Today's presentation is going to focus on Ruby and specifically Rails, however, the basic New Relic overview will be applicable to any of the platforms mentioned. Integrating New Relic into your Rails application is as easy as signing up and adding the gem to your Rails application's Gemfile.
When measuring performance in the browser or on the server New Relic provides Apdex scores. Apdex is
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional, | |
# Only full ruby name is supported here, for short names use: | |
# echo "rvm use 1.9.3" > .rvmrc | |
environment_id="ruby-1.9.3-p0@cincirb_katas" |
class BusinessStore < ActiveRecord::Base | |
attr_accessible :website, :name, :address, :phone_number, :online_store | |
has_many :products | |
end |
require 'uri' | |
require 'psych' | |
require 'net/http' | |
require 'meme' # Install meme_generator | |
module Campfire | |
class API | |
attr_reader :uri, :token, :pass |