Skip to content

Instantly share code, notes, and snippets.

@knowuh
knowuh / line_construction_input.json
Created June 26, 2012 20:08
Simplest Activity with one line-construction sequence. (semantic form)
{
"type": "Activity",
"name": "Activity with a line construction tool",
"authorName": "Noah",
"pages": [
{
"type": "Page",
"name": "This is the first page.",
"text": "( we should mandate that pages have names?)",
"panes": [
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:concord-consortium/Smartgraphs.git
<?xml version="1.0" encoding="UTF-8"?>
<testsuite errors="0" failures="2" name="Student can not see deactivated offerings" skipped="0" tests="2" time="3.848014">
<testcase classname="Student can not see deactivated offerings.Student should not see deactivated offerings" name="Student should not see deactivated offerings" time="3.464007">
<failure message="failed Student should not see deactivated offerings" type="failed">
<![CDATA[Scenario: Student should not see deactivated offerings
Given The default project and jnlp resources exist using factories
And the following students exist:
And the following teachers exist:
== Applying role 'lab-server' to ec2-50-17-165-180.compute-1.amazonaws.com ==
[ec2-50-17-165-180.compute-1.amazonaws.com] Passphrase for private key:
Sorry, you can't enter an empty password. Please try again.
@knowuh
knowuh / gist:2831152
Created May 29, 2012 22:22
hudson failure
ERROR: Failed to archive test reports
hudson.util.IOException2: remote file operation failed: /web/hudson.dev.concord.org/slave-2/workspace/Rails Portal Template Zeus staging at hudson.remoting.Channel@101b03b:otto-2
at hudson.FilePath.act(FilePath.java:780)
at hudson.FilePath.act(FilePath.java:766)
at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:83)
at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:122)
at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:134)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
Mysystem2.prototype.render = function() {
var latestState = this.getLatestState();
if (latestState !== null) {
/*
* get the response from the latest state. the response variable is
* just provided as an example. you may use whatever variables you
* would like from the state object (look at templatestate.js)
*/
var latestResponse = latestState.response;
this.domIO.textContent = latestResponse;
@knowuh
knowuh / jshints.js
Created May 8, 2012 18:56
Proposed jshint options for consultants
/*jshint browser:true, curly:true, forin:true, newcap:true, noarg:true, undef:true, sub:true, strict:false */
@knowuh
knowuh / gist:2630243
Created May 7, 2012 20:38
Mysql variables set on seymour (May 7)
SHOW VARIABLES LIKE 'character\_set\_%';
+--------------------------+--------+
| Variable_name | Value |
+--------------------------+--------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
mysql> SELECT character_set_name, column_name FROM information_schema.`COLUMNS` C
-> WHERE table_schema = "sg_authoring_pro"
-> AND table_name = "units";
+--------------------+--------------+
| character_set_name | column_name |
+--------------------+--------------+
| NULL | id |
| utf8 | name |
| utf8 | abbreviation |
| NULL | created_at |
mysql -u root -p<rootpassword> <sparks_database_name> < ./sparks_production.sql