Skip to content

Instantly share code, notes, and snippets.

View gmcintire's full-sized avatar
:shipit:

Graham McIntire gmcintire

:shipit:
View GitHub Profile
383) Error:
test: when logged in getting the new user page should respond with redirect. (UsersControllerTest):
NoMethodError: undefined method `stubs' for RuckusACL::Lookup:Class
/test/functional/../../lib/ruckus_acl/acl_test_helpers.rb:58:in `mock_acl_lookup'
/test/functional/../../lib/ruckus_acl/acl_test_helpers.rb:69:in `mock_salesforce_permissions'
/test/functional/../../lib/ruckus_acl/acl_test_helpers.rb:94:in `stub_premium_sf_user'
/test/functional/../test_helper.rb:42:in `send'
/test/functional/../test_helper.rb:42:in `login'
/test/functional/users_controller_test.rb:17:in `__bind_1288297806_536008'
shoulda (2.10.3) lib/shoulda/context.rb:380:in `call'
# POST /admin_training_classes
def create
@training_class = TrainingClass.new(params[:training_class])
if params[:online] == 1
@online_course_location = TrainingLocation.find_by_location('Online')
@training_class.training_location = @online_course_location
else
@training_class.enddate = @training_class.startdate + @training_class.duration
set :stages, %w(staging production)
set :default_stage, 'staging'
require 'capistrano/ext/multistage'
set :application, "support"
set :scm, "git"
#default_run_options[:pty] = true
#set :ssh_options, { :forward_agent => true }
set :user, "deployer"
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: support_production
pool: 5
username: #####
password: #####
test: &test
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="kennethreitz"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
My company would like to use tropo to build a "Dial In Dictation" application.
Each user would be given a phone number (i was told by Tropo that their system could support unlimited simultaneous calls so i assume one number is enough for all our users)
You would have to design a system that would only allow Users with "user id's" to enter the system.
Example: Caller A is given an ID of 1234. After caller A calls 1-800-123-xyzz (Tropo Number) they will be greeted by a Automated Voice that says "Please Enter your user ID followed by the pound sign" After they enter their User ID the system will validate them as a legitimate user and they can then begin dictating/recording their message.
I was also told that Tropo does not have any restrictions on how long the message can be; and thus i assume Users can leave 2-3 hour long recordings without any problems. After the recording is complete the audio file and the transcript should be sent to a designated server/FTP.
GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.3)
actionpack (= 3.0.3)
mail (~> 2.2.9)
actionpack (3.0.3)
activemodel (= 3.0.3)
activesupport (= 3.0.3)
BASIC BAECHU KIMCHI
--------------------------------------------------------------------------
Baechu (Napa cabbage) kimchi is one of the staple foods in Korea. Spicy
and tangy, it is typically served as a side dish, with rice, but is also
found in various Korean soups and stews.
This basic version has just the fundamentals; once you're comfortable
with this version, you might try adding shredded carrots, Daikon radish,
pickled baby shrimp, or any number of other things. Search around online
=item decrypt($value)
Uses the private key to decrypt the string. Returns the decryoted string or undef on failure.
You should generally not have to worry about calling this, as the system handles this for you.
=cut
sub decrypt {
my ($self,$value) = @_;
@gmcintire
gmcintire / latlongtogrid.rb
Created January 19, 2011 05:25
Converts Lat/Long in decimal to 6 digit Gridsquare
def degrees_to_dms(dec)
deg = dec.floor
remainder = (dec - deg) * 3600
min = (remainder/60).floor
sec = remainder - (min*60)
a = [deg, min, sec]
end