Skip to content

Instantly share code, notes, and snippets.

View jakesorce's full-sized avatar

Jake Sorce jakesorce

View GitHub Profile
div id="version_modal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>Change Ruby Version</h3>
</div>
<div class="modal-body center">
<form id="version_form" class="dialog-top pad-bottom">
<div class="pad-bottom">
<div class="btn-group">
<span class="label label-important">Current Version: <span id="version_info"></span></span>
Tracing dependencies for: compiled/tinymce
/home/hudson/canvas-lms/node_modules/requirejs/bin/r.js:10872
throw err;
^
Error: Error: Error evaluating module "undefined" at location "/home/hudson/canvas-lms/public/optimized/backbone.js":
Error: ENOENT, no such file or directory '/home/hudson/canvas-lms/public/optimized/backbone.js'
fileName:/home/hudson/canvas-lms/public/optimized/backbone.js
lineNumber: undefined
http://requirejs.org/docs/errors.html#defineerror
@jakesorce
jakesorce / gist:4709443
Created February 4, 2013 20:24
kill connections commands
drop_command = "select pg_terminate_backend(procpid) from pg_stat_activity where datname='canvas_development';"
drop_command_queue = "select pg_terminate_backend(procpid) from pg_stat_activity where datname='canvas_queue_development';"
system("sudo -u postgres psql -c \"#{drop_command}\"")
system("sudo -u postgres psql -c \"#{drop_command_queue}\"")
system("psql -U canvas -c 'drop database canvas_development;'")
system("psql -U canvas -c 'create database canvas_development;'")
create_pg_extension
system("psql -U canvas -c 'drop database canvas_queue_development;'")
system("psql -U canvas -c 'create database canvas_queue_development;'")
@jakesorce
jakesorce / gist:4710000
Created February 4, 2013 21:46
portal error amber
Error running js:build:
path.existsSync is now called `fs.existsSync`.
Tracing dependencies for: compiled/tinymce
/home/hudson/canvas-lms/node_modules/requirejs/bin/r.js:10872
throw err;
^
Error: Error: Error evaluating module "undefined" at location "/home/hudson/canvas-lms/public/optimized/backbone.js":
Error: ENOENT, no such file or directory '/home/hudson/canvas-lms/public/optimized/backbone.js'
canvas_development already exists rake aborted! uninitialized constant CourseProfile /home/hudson/canvas-lms/vendor/plugins/canvasnet_registration/lib/course_profile_with_canvasnet_fields.rb:1:in `<top (required)>' /home/hudson/canvas-lms/vendor/plugins/canvasnet_registration/init.rb:14:in `block (2 levels) in evaluate_init_rb' /home/hudson/canvas-lms/config/environment.rb:9:in `<top (required)>' Tasks: TOP => db:migrate
Error reading ./app/views/jst/assignments/EditView.handlebars: “assignments.edit_view.description” used as both a scope and a key You should probably run `rake i18n:check' first /home/hudson/canvas-lms/lib/tasks/i18n.rake:211:in `rescue in block (4 levels) in <top (required)>' /home/hudson/canvas-lms/lib/tasks/i18n.rake:199:in `block (4 levels) in <top (required)>' /home/hudson/canvas-lms/lib/tasks/i18n.rake:198:in `each' /home/hudson/canvas-lms/lib/tasks/i18n.rake:198:in `block (3 levels) in <top (required)>' /home/hudson/canvas-lms/lib/tasks/i18n.rake:225:in `call' /home/hudson/canvas-lms/lib/tasks/i18n.rake:225:in `block (2 levels) in <top (required)>' /home/hudson/canvas-lms/lib/tasks/portal.rake:24:in `block (3 levels) in <top (required)>' Tasks: TOP => i18n:generate_js (See full trace by running task with --trace)
rake aborted! Undefined variable: “$borderGray”. /home/hudson/canvas-lms/app/stylesheets/accessible_headers/_profile_show.scss:12 /home/hudson/canvas-lms/app/stylesheets/profile/show.sass:3 /home/hudson/canvas-lms/lib/tasks/css.rake:19:in `block (2 levels) in <top (required)>' /home/hudson/canvas-lms/lib/tasks/portal.rake:11:in `block (3 levels) in <top (required)>' Tasks: TOP => css:generate (See full trace by running task with --trace)
#html
<div id="footer" class="footer center hidden-phone" rel="popover">
<img id="footer_img" src="images/canvas.png" style="" data-original-title="">
</div>
#coffeescript
require "selenium-webdriver"
require "rspec"
include RSpec::Expectations
describe "ConversationsTesting" do
before(:each) do
@driver = Selenium::WebDriver.for :firefox
@base_url = "https://canvas.beta.instructure.com/"
@accept_next_alert = true
rake aborted!
Validation failed: Path has already been taken
/home/hudson/udemodo/lib/tasks/import.rake:19
/home/hudson/udemodo/lib/tasks/import.rake:11:in `each'
/home/hudson/udemodo/lib/tasks/import.rake:11
/home/hudson/udemodo/lib/tasks/import.rake:10
Tasks: TOP => im