Skip to content

Instantly share code, notes, and snippets.

@aronr
aronr / App layer tests in CSPACE-5183 branch
Created May 18, 2012 22:56
CollectionSpace P/NP schema change-related test failures
Failed tests:
testAllUISpecs(org.collectionspace.chain.csp.webui.main.TestUIRecords)
testMisc(org.collectionspace.chain.csp.webui.main.TestUIRecords)
Tests in error:
testAuthoritiesSearchList(org.collectionspace.chain.csp.persistence.services.vocab.TestOrgThroughWebapp)
testAuthoritiesSearch(org.collectionspace.chain.csp.persistence.services.vocab.TestNameThroughWebapp)
Tests run: 65, Failures: 2, Errors: 2, Skipped: 0
@aronr
aronr / gist:2763357
Created May 21, 2012 17:13
person-search template
<div class="fl-container-flex fl-fix information-group info-column">
<div class="fl-container-flex fl-fix content main">
<div class="info-column">
<div class="info-column2-50 fl-force-left">
<div class="info-pair">
<div class="header">
<div class="label csc-person-termDisplayName-label"></div>
</div>
<div class="content clearfix csc-preferredPA-personTermGroup">
<input type="text" class="csc-personAuthority-termDisplayName"/>
@aronr
aronr / gist:2763366
Created May 21, 2012 17:14
person-search uispec
{
".csc-person-foreName-label": {
"messagekey": "preferredPA-foreNameLabel"
},
".csc-person-gender-label": {
"messagekey": "person-genderLabel"
},
".csc-person-group-label": {
"messagekey": "person-groupLabel"
},
@aronr
aronr / gist:2764031
Created May 21, 2012 19:10
person search uischema
{
"person": {
"properties": {
"genders": {
"items": {
"properties": {
"_primary": {
"default": true,
"type": "boolean"
},
@aronr
aronr / gist:3829229
Created October 3, 2012 19:28
Nuxeo DB after running services tests, late in v3.0 (7ee4c2180e9c3e5415bf673ca6a311a6364ebeb4 as of 2012-10-01)
nuxeo=# SELECT schemaname,relname,n_live_tup FROM pg_stat_user_tables ORDER BY n_live_tup DESC;
schemaname | relname | n_live_tup
------------+--------------------------------------------------+------------
public | hierarchy | 462
public | fulltext | 132
public | hierarchy_read_acl | 132
public | misc | 131
public | dublincore | 131
public | ancestors | 130
public | content | 54
diff --git a/services/JaxRsServiceProvider/pom.xml b/services/JaxRsServiceProvider/pom.xml
index b112a0d..a0f7709 100644
--- a/services/JaxRsServiceProvider/pom.xml
+++ b/services/JaxRsServiceProvider/pom.xml
@@ -22,18 +22,15 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
- <scope>provided</scope>
</dependency>
@aronr
aronr / app-test-results-2013-02-05.txt
Created February 6, 2013 03:10
CollectionSpace App layer test results with latest services and app builds as of approx. 7:00 pm on Tue, Feb 5. 2013.
$ mvn clean test
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.collectionspace:general-utils:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:maven-jetty-plugin is missing. @ line 45, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 36, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.collectionspace:svcapp:1.0-SNAPSHOT, /Users/aron/Documents/CollectionSpace/source/cspace-app/application/pom.xml, line 56, column 12
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.collectionspace:csp-api:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:maven-jetty-plugin is missing. @ line 57, column 15
@aronr
aronr / gist:7763527
Created December 3, 2013 03:41
Puppet: reading values from YAML configuration file
http://puppetlabs.com/blog/module-of-the-week-puppetlabs-stdlib-puppet-labs-standard-library-part-4
[aron@lips-128-32-191-42 ~/Documents/VirtualMachines/Vagrant-VMs/mark]$ vagrant up
Bringing machine 'cspace' up with 'virtualbox' provider...
==> cspace: Importing base box 'ubuntu/trusty64'...
==> cspace: Matching MAC address for NAT networking...
==> cspace: Checking if box 'ubuntu/trusty64' is up to date...
==> cspace: Setting the name of the VM: mark_cspace_1418265751397_79664
==> cspace: Clearing any previously set forwarded ports...
==> cspace: Clearing any previously set network interfaces...
==> cspace: Preparing network interfaces based on configuration...
@aronr
aronr / low-flow-showerhead-cost-savings-algorithm.txt
Last active June 19, 2017 23:22
Algorithm (and/or heuristics) for low-flow showerhead cost savings calculator
A quick discussion of a generic algorithm for a low-flow showerhead
water and energy savings calculator:
0. First thoughts.
The easiest way to think about these costs, for a current or
prospective customer, are likely to be in:
* Savings per month. (We think of mortgage or rent payments; utility,
car, cell phone contract payments, etc., in monthly terms.)