Skip to content

Instantly share code, notes, and snippets.

@mschoch
mschoch / gist:965588
Created May 10, 2011 23:10
TrendsAPI - Milestone Detail
{
"number":"MS-785",
"description":"AFATDS Block II (V6.5) Software development and test. Each Software Block is a deliverable. Enhances interoperability, adds new guided munitions and handles the employment of current munitions and weapon platforms. ",
"scheduleVariance":"-31",
"costVariancePercent":"2.62 %",
"costVarianceAmount":"$1.3 M",
"planned":{
"startDate":"04/30/2006",
"completionDate":"10/31/2008",
"totalCost":"$47.8 M",
@mschoch
mschoch / investment_search.json
Created May 14, 2011 20:06
TrendsAPI - Investment Search
[
{
"numResults":2
},
[
{
"UniqueProjectIdentifier":"009-00-01-99-01-0160-24",
"InvestmentTitle":"Grants.gov - Find and Apply",
"AgencyName":"Department of Health and Human Services",
"BureauName":"Department of Health and Human Services",
@mschoch
mschoch / use_document_after_create.m
Created June 16, 2011 20:15
trundle use document after create operation test case
-(void)trundleTestCase {
CCouchDBServer *local = [[CCouchDBServer alloc] initWithSession:nil URL:self.localCouchURL];
CCouchDBDatabase *demo = [[CCouchDBDatabase alloc] initWithServer:local name:@"demo"];
NSMutableDictionary *sampleDocument = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"Marty", @"firstName", nil];
CouchDBSuccessHandler successHandler = ^(id inParameter) {
CCouchDBDocument *document = (CCouchDBDocument*)inParameter;
NSLog(@"Success creating document: %@", document);
@mschoch
mschoch / use_document_after_create_output.txt
Created June 16, 2011 20:19
trundle use document after create operation test case output
2011-06-16 16:11:27.489 CouchpadAdministrator[2248:207] Create a document, should succeed
[info] [<0.94.0>] 127.0.0.1 - - 'POST' /demo 201
1> 2011-06-16 16:11:28.332 CouchpadAdministrator[2248:207] Success creating document: <CCouchDBDocument: 0xc402330> (id:d5550c6013fb685da5c2362708000ae6 rev:1-0ea42c86055137d3fab0630b63ae0646 {
firstName = Marty;
})
2011-06-16 16:11:28.332 CouchpadAdministrator[2248:207] Update document, should succeed, but will fail
[info] [<0.94.0>] 127.0.0.1 - - 'PUT' /demo/d5550c6013fb685da5c2362708000ae6 409
1> 2011-06-16 16:11:28.337 CouchpadAdministrator[2248:207] Failed to create document! Error Domain=CouchErrorDomain Code=-101 "Document update conflict." UserInfo=0xc400430 {json=<CFBasicHash 0xc402730 [0x17f2400]>{type = immutable dict, count = 2,
entries =>
0 : <CFString 0xc4026f0 [0x17f2400]>{contents = "reason"} = <CFString 0xc4003a0 [0x17f2400]>{contents = "Document update conflict."}
@mschoch
mschoch / console.txt
Created June 17, 2011 18:15
iOS Couchbase Running Test Suite from Firefox
2011-06-17 14:13:39.000 trytabfuton[2767:207] Starting the Couch
2011-06-17 14:13:39.002 trytabfuton[2767:207] my bundle path: /Users/mschoch/Library/Application Support/iPhone Simulator/4.3.2/Applications/77EF3CFC-D036-49C1-B5C7-5241320F6F7C/trytabfuton.app/Couchbase.bundle
=PROGRESS REPORT==== 17-Jun-2011::14:13:39 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.33.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
@mschoch
mschoch / console-static-port.txt
Created June 17, 2011 18:27
iOS Couchbase Running Test Suite from Firefox Static Port
2011-06-17 14:19:49.815 trytabfuton[2789:207] Starting the Couch
2011-06-17 14:19:49.817 trytabfuton[2789:207] my bundle path: /Users/mschoch/Library/Application Support/iPhone Simulator/4.3.2/Applications/69A11CE9-9846-470D-9C8E-A82A3E068E45/trytabfuton.app/Couchbase.bundle
=PROGRESS REPORT==== 17-Jun-2011::14:19:50 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.33.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
@mschoch
mschoch / main.m
Created July 3, 2011 19:20
Double percent-encoding of document identifiers
//
// main.m
// TestPercentEscaping
//
// Created by Marty Schoch on 7/3/11.
// Copyright 2011 Hexedit Reality, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@mschoch
mschoch / main.m
Created July 3, 2011 19:20
Double percent-encoding of document identifiers
//
// main.m
// TestPercentEscaping
//
// Created by Marty Schoch on 7/3/11.
// Copyright 2011 Hexedit Reality, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@mschoch
mschoch / log.txt
Created July 16, 2011 21:08
Android Demo Couchapp
07-16 17:04:20.860: INFO/System.out(652): debugger has settled (1366)
07-16 17:04:21.849: VERBOSE/CouchDB(652): Installing release-0.1
07-16 17:04:22.089: VERBOSE/CouchDB(652): MKDIR: /data/data/com.arandomurl.couchapp/couchdb/
07-16 17:04:22.259: VERBOSE/CouchDB(652): MKDIR: /data/data/com.arandomurl.couchapp/couchdb/bin/
07-16 17:04:22.379: INFO/ActivityManager(81): Displayed com.arandomurl.couchapp/.CouchAppActivity: +5s589ms
07-16 17:04:22.389: DEBUG/TabletStatusBar(126): lights on
07-16 17:04:22.520: VERBOSE/CouchDB(652): Extracting /data/data/com.arandomurl.couchapp/couchdb/bin/libmozjs.so
07-16 17:04:23.669: DEBUG/dalvikvm(652): GC_FOR_ALLOC freed 277K, 6% free 6437K/6791K, paused 52ms
07-16 17:04:23.669: INFO/dalvikvm-heap(652): Grow heap (frag case) to 6.832MB for 513744-byte allocation
07-16 17:04:23.759: DEBUG/dalvikvm(652): GC_FOR_ALLOC freed 1K, 6% free 6937K/7303K, paused 44ms
@mschoch
mschoch / android-couchbase-log.txt
Created July 19, 2011 15:56
Android Couchbase Custom App
07-19 11:54:20.190: VERBOSE/CouchDB(2254): Apache CouchDB 1.0.2 (LogLevel=debug) is starting.
07-19 11:54:20.240: VERBOSE/CouchDB(2254): Configuration Settings ["/data/data/com.hexeditreality/couchdb/etc/couchdb/default.ini",
07-19 11:54:20.240: VERBOSE/CouchDB(2254): "/data/data/com.hexeditreality/couchdb/etc/couchdb/local.ini"]:
07-19 11:54:20.270: VERBOSE/CouchDB(2254): [attachments] compressible_types="text/*, application/javascript, application/json, application/xml"
07-19 11:54:20.280: VERBOSE/CouchDB(2254): [attachments] compression_level="8"
07-19 11:54:20.300: VERBOSE/CouchDB(2254): [couch_httpd_auth] auth_cache_size="50"
07-19 11:54:20.300: VERBOSE/CouchDB(2254): [couch_httpd_auth] authentication_db="_users"
07-19 11:54:20.310: VERBOSE/CouchDB(2254): [couch_httpd_auth] authentication_redirect="/_utils/session.html"
07-19 11:54:20.320: VERBOSE/CouchDB(2254): [couch_httpd_auth] require_valid_user="false"
07-19 11:54:20.330: VERBOSE/CouchDB(2254): [couch_httpd_aut